Files
threshing-atlas/analysis
ekcSchianoandClaude Opus 5.5 e10312ab02
CI / test (pull_request) Successful in 2m3s
Known answers for the bot: the guide's encounter answers and the bot's own results, by choice text (#35)
analysis/known/build_known.py writes data/public/known_answers.json from pdf_encounters.json and tree.json;
solver.js knownAnswer(known, offered, { target, sceneColour }) matches a screen's choices against it (the guide's
paraphrases by their words, the bot's texts exactly) and returns a pick when one choice is clearly on the guide's
recommended path to the target, plus the evidence for every choice to hand to Clef. Rebuilt daily, checked in CI,
and sent to the bot with the route model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
2026-11-19 13:32:09 +00:00
..

analysis

Making sense of the data.

Folder What it does
stats/measures.yaml Declarative. What the site measures: outcomes and their denominators, route targets and comparison groups, the bonding-encounter contexts, the route map's stages, the filter presets and the route thresholds.
stats/site_stats.py Computes every number the Atlas page shows for every preset and writes data/public/stats.json; the page computes nothing itself.
stats/stats_core.py The statistics themselves: rates with Wilson intervals, odds ratios with Fisher's test and Benjamini–Hochberg, Mantel–Haenszel, ridge logistic models that adjust for data source and chase goal. Tested against known answers (tests/core/test_stats.py).
network/ build-graph.js combines every source into data/public/graph.json (the decision-variable graph and the bot's scene graph). CI fails if the committed graph is out of date.
reports/ Generated reports. POLICY.md is written by planner/policy_report.py; do not edit it by hand.