Test the bot's call chain in CI; send the experiment plan and screen tree to the bot (#26)
CI / test (pull_request) Successful in 45s
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
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
||||
"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",
|
||||
"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",
|
||||
|
||||
Reference in New Issue
Block a user