Repository navigation
fix(genome): a gene she trained never leaves her head by silence, and holds her next fill only while it settles (card 70a35a29) - #4917
Merged
Conversation
joelteply
commented
Oct 10, 2026
joelteply
left a comment
Contributor
Author
There was a problem hiding this comment.
Good at ef9f6ba (the commit after the #4916 merge), pending green. Both consequences close at their roots. No expiry runs anywhere: expire_stale, the sentinel's call and TRIAL_WINDOW_MS are gone, so a gene leaves her head only by retirement. And both hold sites (job_create's on_trial, durable.rs::trial_open_for) use the one is_settling, so the two-rules-churn from #4794 can't come back. The tests pin the important properties: past the window both genes are still in genes_for_turn, and a settled gene releases the bucket while staying Trial.
Two things, neither blocking:
- The two hours stands in for the evidence the hold waits for. The hold exists so the next fill doesn't fork a gene "nobody has used yet". Wall-clock time doesn't measure use: if she's idle for two hours the hold releases having learned nothing, and if she's busy, two hours holds a bucket after the evidence is already in. Once §3d's fitness exists, the release reads "this gene has a fitness reading" (its first replayed turns), with the window only as an upper bound. Until then, a line in the
SETTLE_WINDOW_MSdoc marking it as the interim, and naming what replaces it, would keep it from hardening into a tuned constant. - Stale wording:
is_settling's doc says it's "the only trial that holds a bucket or awaits a decision", but nothing awaits a decision now. Also,credit_card/arm_ofstill tally arms that can no longer differ. Since every card runs the gene, the stable arm never fills, so the gate can't decide. That's harmless, and it can go when §3d's fitness replaces the gate.
joelteply
added a commit
that referenced
this pull request
Oct 10, 2026
…ing', never a tuned constant (Cormac on #4917) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…competence's next fill for two hours and never leaves her head by silence Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… holds her next fill only while it settles (card 70a35a29) With the card arm no longer judging (#4916), a Trial row never reaches a verdict. Two consequences Cormac found on #4916: the seven-day "no verdict" expiry (expire_stale, on the sentinel's cadence) would have taken every gene out of her head a week after it loaded (gene 1 on 2026-10-17); and the trigger's hold on a bucket behind a gene "on trial" (job_create's on_trial -> Decision::Await, durable.rs trial_open_for -> Took::Awaited) would have held a competence's next fill forever. Under §3d a trained gene is hers until retired by fitness. So: TRIAL_WINDOW_MS, is_stale, is_live and expire_stale are gone, the sentinel runs no expiry, and the Expired state stays only for rows that already carry it. The one thing the old hold was for stays, bounded: a gene that JUST LANDED settles for SETTLE_WINDOW_MS (two hours) while her turns tell what it does, and holds its competence's next fill for that long so a fill cannot fork a child of a gene nobody has used yet (card 17dc0a7b); past the window the fill decides on its own against the resident gene (Reuse / Fork / Mint). is_settling replaces is_live at both hold sites. Took::Awaited and Decision::Await keep their wire shape. Tests: a landed gene settles and is never expired, and both stay in her head; a fill while a landed gene settles is held, and a settled one releases the bucket with the gene still hers; job_create's Awaited test holds as written (a fresh trial is settling). 91 tests green across gene_trial, training_trigger, job_create and competence. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ing', never a tuned constant (Cormac on #4917) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
70a35a29/no-expiry-no-trial-hold
branch
from
October 10, 2026 15:30
92944f9 to
eb38b83
Compare
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.
Stacked on #4916 (merge that first; this diff then shrinks to its own commits).
Why. With the card arm no longer judging (#4916), a Trial row never reaches a verdict. Cormac found two consequences: the seven-day "no verdict" expiry would have taken every gene out of her head a week after it loaded (gene 1 on 10-17), and the trigger's hold behind a gene "on trial" would have held a competence's next fill forever.
Fix. Under §3d a trained gene is hers until retired by fitness.
TRIAL_WINDOW_MS/is_stale/is_live/expire_staleare gone and the sentinel runs no expiry (Expiredstays for rows that already carry it). The one thing the old hold was for stays, bounded: a gene that just landed settles forSETTLE_WINDOW_MS(two hours) while her turns tell what it does, and holds its competence's next fill for that long so a fill cannot fork a child of a gene nobody has used yet (card 17dc0a7b); past the window the fill decides on its own against the resident gene.is_settlingreplacesis_liveat both hold sites (durable.rstrial_open_for, job_createon_trial).Took::AwaitedandDecision::Awaitkeep their wire shape. §3d names the window.Tests. A landed gene settles and is never expired, and both stay in her head; a fill while a landed gene settles is held, a settled one releases the bucket with the gene still hers; job_create's Awaited test holds as written. 91 tests green locally across gene_trial, training_trigger, job_create and competence.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo