Skip to content

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
joelteply merged 3 commits into
canaryfrom
70a35a29/no-expiry-no-trial-hold
Oct 10, 2026
Merged

joelteply merged 3 commits into
canaryfrom
70a35a29/no-expiry-no-trial-hold

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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_stale are gone and the sentinel runs no expiry (Expired stays 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. is_settling replaces is_live at both hold sites (durable.rs trial_open_for, job_create on_trial). Took::Awaited and Decision::Await keep 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

@joelteply joelteply left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_MS doc 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_of still 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 and others added 3 commits October 10, 2026 10:30
… 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
@joelteply
joelteply force-pushed the 70a35a29/no-expiry-no-trial-hold branch from 92944f9 to eb38b83 Compare October 10, 2026 15:30
@github-actions github-actions Bot added size: M and removed size: L labels Oct 10, 2026

@joelteply joelteply left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good at eb38b83, pending green. Diffed the rebased code against ef9f6ba: identical apart from the interim doc lines on SETTLE_WINDOW_MS, which say what I asked.

@joelteply
joelteply merged commit 6542f42 into canary Oct 10, 2026
7 checks passed
@joelteply
joelteply deleted the 70a35a29/no-expiry-no-trial-hold branch October 10, 2026 15:55
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