Skip to content

fix(cognition): a DoD that can't RUN is infra, not a model miss (systemic hardening) - #2472

Merged
joelteply merged 1 commit into
canaryfrom
fix/dod-infra-not-a-miss
Aug 25, 2026
Merged

fix(cognition): a DoD that can't RUN is infra, not a model miss (systemic hardening)#2472
joelteply merged 1 commit into
canaryfrom
fix/dod-infra-not-a-miss

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The right-concern fix for the astropy false-failure class: run_dod → DodVerdict{Pass,Fail,InfraError}. A grader that could-not-run (missing workspace, refused/not-found command, infra exit) is marked infra — not re-driven, not scored as a miss, not taught — while a genuine red stays a real miss. Protects every dod-graded activity, projects included. Narrow classifier + test.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… — the right concern

Joel (2026-08-25): 'harden ALL benchmarks, and really the system — these are
issues they'd have in projects. Make sure it's not coded into the wrong
concern.' The astropy-13236 false-failure was the symptom; the disease was
run_dod returning a flat (bool,String) that collapsed 'she failed the tests'
and 'the grader itself could not run' into one ok=false — so a harness fault
(missing workspace, refused/not-found command, wrong cwd) scored as a MODEL
miss AND taught her 'I failed'. That hits EVERY dod-graded activity, real
projects included, not just benchmarks.

Fix at the constraint: run_dod → DodVerdict::{Pass, Fail, InfraError}. A narrow
classifier (dod_output_is_infra: substrate-refused / no-such-file /
command-not-found / could-not-read / permission-denied / exit 127/4/5) marks a
could-not-RUN as infra; a genuine red (pytest '5 failed', AssertionError,
FAILED) stays a real miss. The verify loop short-circuits infra (no re-drive —
nothing to fix), and the grade path routes it to the infra_faults counter →
InfraUnavailable (no phantom score) and SKIPS teaching (a harness fault teaches
nothing). Same protection the gold gate gives, now on the DoD's own execution.

Complements the adapter /Users/joel/Development/continuum fix (#2471): that makes THIS instance's path
resolve; this makes the whole CLASS never mis-score. Battery: dod_infra +
run_dod + eval::tests + ratchets green (32 passed, EXIT=0).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 25, 2026 16:12
@joelteply
joelteply merged commit 5366b00 into canary Aug 25, 2026
5 checks passed
@joelteply
joelteply deleted the fix/dod-infra-not-a-miss branch August 25, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant