CI / test (pull_request) Successful in 45s
tests/core/bot_contract.test.js copies the bot's AtlasPolicy.advise (DragonKind src/atlasPolicy.js at ebe134a2) and plays the bot's own recorded screens through it for every colour, sample and goal; checks the Black is routed through both gates and up the tree; checks every assignment of the experiment plan is playable; checks the known answers' shape. Added to npm run test:unit. push-policy now also sends data/public/experiments.json and tree.json, which docs/BOT_INTEGRATION.md says the bot reads (Solver.assign, screenPick) but which were never delivered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
23 lines
1.4 KiB
JSON
23 lines
1.4 KiB
JSON
{
|
|
"name": "threshing-atlas",
|
|
"private": true,
|
|
"description": "Route probabilities and path-finding for the Dragonkind threshing",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "node site/build.js",
|
|
"dev": "node site/build.js && python3 -m http.server 8000 -d dist",
|
|
"test:py": "python3 -m collection build --check && python3 planner/build_experiments.py --check && python3 analysis/black/evidence.py --check && python3 analysis/tree/build_tree.py --check && python3 analysis/known/build_known.py --check && python3 analysis/overlap/overlap.py --check && PYTHONPATH=core python3 -m unittest discover -s tests/core -p 'test_*.py' && python3 -m unittest discover -s tests/collection -p 'test_*.py'",
|
|
"test:unit": "node --test tests/core/graph.test.js tests/core/advisor.test.js tests/core/known.test.js tests/core/bot_contract.test.js",
|
|
"test": "npm run test:py && npm run test:unit",
|
|
"graph": "node analysis/network/build-graph.js",
|
|
"policy": "python3 planner/build_policy.py && python3 planner/policy_report.py && python3 planner/build_experiments.py && python3 analysis/black/evidence.py && python3 analysis/tree/build_tree.py && python3 analysis/known/build_known.py && python3 analysis/overlap/overlap.py",
|
|
"cycle": "python3 -m collection cycle",
|
|
"stats": "python3 analysis/stats/site_stats.py",
|
|
"collect": "python3 -m collection update",
|
|
"build-data": "python3 -m collection build"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|