Reddit comment runs in the route model and the odds; Black report gate wording; cite both megathreads
- planner/policy.yaml: `reddit comment` is a model source. Only runs that break a game rule (the rule_flags checks) are left out; partial runs are kept. Its own reporting-bias group, and out of the low-bias sample (riders posting a run pick the notable ones). 77 of the 82 runs are used. - analysis/stats/measures.yaml: the site statistics use every source answered in the form's terms (form, "Report a run", Reddit comments). - analysis/black/evidence.py: a shadow run is "off the gates" only when an answer contradicts a gate (3); runs that do not say are counted separately (14). - croissant isBasedOn lists both megathreads (pipeline.yaml `cite`). - Rebuilt: policy.json, stats.json, BLACK.md, black.json, croissant.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
75f11378e2
commit
d606ed1651
@@ -31,18 +31,21 @@ def low_bias(r, lb=CONFIG["low_bias"]):
|
||||
"""Kept in the low-bias sample: every run of an always-kept source, bulk logs, and riders not chasing a rare dragon."""
|
||||
if r["source"] in lb["always"]:
|
||||
return True
|
||||
if r["source"] in (lb.get("never") or ()):
|
||||
return False
|
||||
if r["source"] == "reddit spreadsheet" and "bulk" in lb["entries_kept"] and r["entry"] not in (None, "Form"):
|
||||
return True
|
||||
return r["goal"] not in lb["rare_goals"]
|
||||
|
||||
|
||||
def drop_flagged(runs, cfg=CONFIG.get("drop_flagged") or {}):
|
||||
"""Without the flagged runs of the sources read automatically from free text (planner/policy.yaml drop_flagged)."""
|
||||
sources, keep = set(cfg.get("sources") or ()), tuple(cfg.get("except") or ())
|
||||
"""Without the runs of the sources read automatically from free text that break a game rule
|
||||
(planner/policy.yaml drop_flagged): every other run is kept, however partial."""
|
||||
sources, rules = set(cfg.get("sources") or ()), tuple(cfg.get("rules") or ())
|
||||
|
||||
def problems(r):
|
||||
return [f for f in (r.get("data_flags") or "").split("; ") if f and not f.startswith(keep)] if keep else [f for f in (r.get("data_flags") or "").split("; ") if f]
|
||||
return [r for r in runs if r["source"] not in sources or not problems(r)]
|
||||
def impossible(r):
|
||||
return any(rule in f for f in (r.get("data_flags") or "").split("; ") for rule in rules)
|
||||
return [r for r in runs if r["source"] not in sources or not impossible(r)]
|
||||
|
||||
|
||||
def clean(o):
|
||||
|
||||
Reference in New Issue
Block a user