Files
threshing-atlas/package.json
T
ekcSchianoandClaude Opus 5.5 d2ffb84b5e Solver: best decisions per dragon colour, and the bot advisor
- packages/core/src/solver.js: decision tree with perfect recall over the
  community form's choices; chance events (first dragon, deaths, shadow,
  meadow dragon, encounter outcome) depend on earlier choices through
  hierarchical Dirichlet back-off with empirical-Bayes concentration per
  event; backward induction for P(colour this attempt) and Dinkelbach for
  P(colour) / (P(colour) + P(other colour)); 200 posterior draws for
  credible intervals and "still best" rates; cross-fitted held-out check.
- Only genuine attempts inform encounter outcomes (goal / Malek intent).
- data/public/policy.json (all runs and a low-bias sample) and the readable
  docs/POLICY.md; published on Pages with solver.js for the bot.
- Bot advisor: re-solves from any history, maps advice onto screen text,
  reports margins so ties can be randomised. docs/BOT_INTEGRATION.md.
- Tests on a synthetic world with known answers; daily source update now
  rebuilds the policy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
2026-11-01 22:34:38 +00:00

24 lines
1001 B
JSON

{
"name": "threshing-atlas",
"private": true,
"description": "Route probabilities and path-finding for the Dragonkind threshing",
"license": "MIT",
"workspaces": [
"packages/*"
],
"scripts": {
"build": "node scripts/build-site.js",
"dev": "node scripts/build-site.js && python3 -m http.server 8000 -d dist",
"test:js": "node tests/run_engine.js data/public/form_responses.json tests/out",
"test:py": "cd research/python && python3 clean.py && python3 analyze.py",
"test": "npm run test:js && npm run test:py && python3 tests/compare_runs.py && python3 tests/compare_results.py && python3 tests/compare_routes.py && node --test tests/graph.test.js tests/solver.test.js",
"graph": "node scripts/build-graph.js",
"import-bot": "node packages/ingest/bin/import-bot.js",
"check-sources": "python3 research/python/update_sources.py",
"policy": "node scripts/build-policy.js && node scripts/policy-report.js"
},
"engines": {
"node": ">=18"
}
}