Repository navigation
fix: self-improvement instruments report what happened (trace-corpus guards, failure classes, selftest could-not-judge) - #854
Merged
Merged
Conversation
…guards, failure classes, selftest could-not-judge) trace-corpus: freeze creates its baseline exclusively and refuses an existing path; harvest validates --since/--until as real dates with since <= until (exit 2); help/--help/-h print the usage with the flags and exit 0. Failure register: the remote lane writer, the composite image row and the accelerator forward stamp the reason code from the defer class the result carries; a deferred row with no reason is filed with a fixed placeholder; legacy rows are classed by the harness's own sentences (wall timeout, step budget, queue deadline, stalls, failed verification, schema, seat down, lane placement, 503/429 dispatch refusals). gate selftest: a deferred or failed scorer seat call is "could not judge": exit 2, no receipt, an existing --out left alone, the defer reason named. The A/B path is unchanged. Also: ledger and recipe-audit usage text, LF for the embedded gate schema, and the self-improvement, measurement-gate and failure-register pages (plus the docs that cited the deleted docs lint test). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…" through the sentence rules "other" is what Record files when no member named the row at write time, so it is the one stamp a later build may read better. Every other stamp is still read as stamped. On a real 30-day register the other count goes from 157 to 55 (no_eligible_node 1 to 76, queue_full 22 to 49). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merged
dmmdea
added a commit
that referenced
this pull request
Nov 12, 2026
One change, merged to main through its own pull request (#854) after one security pass (nothing to fix) and green CI: - trace-corpus: freeze creates its baseline exclusively and refuses an existing path; harvest validates --since and --until as real dates; --help exits 0. - Failure register: the remote lanes, the composite image row and the accelerator forward stamp the reason code from the defer class the result carries; rows written before the stamp, and deferred rows stamped "other", are classed from sentences the harness itself wrote. On one real 30-day register the "other" count goes from 157 to 55. - gate selftest: a scorer whose seat call deferred or failed could not judge: exit 2, no receipt, an existing --out left alone. - ledger and recipe-audit usage text, LF for the embedded gate schema, and the self-improvement, measurement-gate and failure-register pages. Deletes: changes/unreleased/fix-rsi-instruments.md Co-authored-by: dmmdea <dmmdea@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
The self-improvement instruments (trace corpus, failure register, gate self-test) must report what happened. An audit that ran every free verb against real data found the statistics sound and four places where an instrument misreported: a frozen baseline could be overwritten silently, impossible dates were accepted, a seat that could not answer read as a scorer that mis-ranks, and 154 of the 157
otherrows in a 30-day failure register were capacity and placement defers whose class the door had dropped.Scope
trace-corpusargument and freeze guards,gate selftest's could-not-judge path, the failure register's writer stamps and read-time rules, usage text,.gitattributesfor the embedded gate schema, and the three system pages.compactionOutcomeScoreris unchanged).What changed
trace-corpus.freezecreates its baseline exclusively and refuses an existing path (exit 2).harvest --since/--untilmust be realYYYY-MM-DDdates with since on or before until (exit 2).help,--helpand-hprint the usage and exit 0.ledger.CodeForLaneDefer: error class and the harness's own sentence first, the wire class when neither names the row). A deferred row with no reason is filed asdeferred: no reason recorded.otheris read through the same rules, becauseotheris the stamp for "no member named it"; every other stamp is read as stamped.gate selftest. A scorer whose seat call deferred or failed could not judge: exit 2, no receipt, an existing--outleft alone, the reason named. It used to print a receipt withpassed: falseand replace the file.ledgerandrecipe-auditusage text; LF forced oninternal/eval/*.jsonsogate schemaprints the same bytes on every checkout.The real run and its output
Built binary against a real delegation log and ledger:
Local gate:
go build,go vet ./...clean;internal/ledgerandinternal/pairworkloadspass; the root andinternal/pipelinesubsets that cover the touched code pass (trace-corpus, gate, failure register, ledger, recipe-audit, leak gate, changelog fragments; accelerator, defer and reason rows). The full root and pipeline packages did not finish on the build box inside the 10-minute timeout, so CI is the gate for the rest.Not exercised: a real accelerator or lane defer written by the new stamp (checked by build, vet and the existing ledger and pipeline tests), and the self-test under a held GPU lease (an unreachable seat takes the same code path).
Blast radius
Readers of
ledger --failures: class counts move out ofotherinto existing classes, andclass_derived_rowsrises. Callers oftrace-corpus freezethat re-froze onto an existing file now get exit 2. Callers ofgate selftestthat treated exit 1 as "seat busy" now get exit 2 for that case. No config key, no wire format and no ledger schema changes.Risk
Low. One new ledger behaviour on the write path (the fixed placeholder on a deferred row with an empty reason); the rest is read-side classification and verb guards.
🤖 Generated with Claude Code