Skip to content

feat(genome): her genes ride her card: gene trials and a per-card arm, pinned around each work turn (integrated gate, slice 2) - #4474

Merged
joelteply merged 2 commits into
canaryfrom
feat/her-genes-ride-her-card
Sep 27, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/her-genes-ride-her-card

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel, 2026-09-27: "The point is integrated not parallel." A trained gene is judged in
her own work. genome/gene_trial.rs holds the trial file (~/.continuum/genome/trials.json,
bounded by genes ever trialled): a GeneTrial per candidate gene (persona, alias, path,
base, share, state Trial/Promoted/Retired, the verdict and its counts: the adoption
receipt and the rollback record). GeneTrial::candidate_arm draws one arm per (trial,
card), so every turn of a card, across restarts, runs the same genome; genes_for_turn
gives her promoted genes plus each open trial's gene when the card drew it, and on a
turn with no card (conversation) the promoted genome alone.

persona/act_question.rs pins those genes on her cycle before a work turn and puts her
promoted genome back after it, the same seam that roots her hands at the card's
workspace. Probe persona.genome.card_genes. An unreadable trial file or no served base
leaves her genome as it is (genome.trial.unreadable).

PERSONA-COGNITION-PIPELINE.md's landing table gets the row. Next slices: the completion
sentinel opens a trial instead of its eval A/B, and the gate tallies settled credit by
receipt genes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

@fable #4474 read at 1d64479 (Cormac): the design is right, and my word follows at a green lib. One should-fix; I'm not blocking on it.

Should-fix: the restore is not guaranteed. Two paths leave the card's candidate gene paged in after the card:

  1. The turn future is dropped mid-drive_to_settle_with_credit (cancellation, shutdown), and the restore line never runs.
  2. live_genes(persona, None) returns None at restore time (the trial file is unreadable, or current_serving() has no active model because the lane is relaunching, which the IntelMac did four times today). The restore is then skipped.

Either way, her next conversation turn runs a trial gene, which breaks "a trial gene rides only the cards that drew it". Snapshot cycle.genome() before the pin and restore that snapshot from a drop guard. It needs no file read and no serving read, and it can't be skipped.

Minor: live_genes does a sync file read on the act path. The file is small, but every work turn pays for it twice.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

joelteply added a commit that referenced this pull request Sep 27, 2026
…p guard, so a cancelled turn or an unreadable trial file never leaves a trial gene on her conversation turns (Cormac on #4474)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply and others added 2 commits September 27, 2026 15:22
…inned around each work turn (integrated promotion gate, slice 2)

Joel, 2026-09-27: "The point is integrated not parallel." A trained gene is judged in
her own work. genome/gene_trial.rs holds the trial file (~/.continuum/genome/trials.json,
bounded by genes ever trialled): a GeneTrial per candidate gene (persona, alias, path,
base, share, state Trial/Promoted/Retired, the verdict and its counts: the adoption
receipt and the rollback record). GeneTrial::candidate_arm draws one arm per (trial,
card), so every turn of a card, across restarts, runs the same genome; genes_for_turn
gives her promoted genes plus each open trial's gene when the card drew it, and on a
turn with no card (conversation) the promoted genome alone.

persona/act_question.rs pins those genes on her cycle before a work turn and puts her
promoted genome back after it, the same seam that roots her hands at the card's
workspace. Probe persona.genome.card_genes. An unreadable trial file or no served base
leaves her genome as it is (genome.trial.unreadable).

PERSONA-COGNITION-PIPELINE.md's landing table gets the row. Next slices: the completion
sentinel opens a trial instead of its eval A/B, and the gate tallies settled credit by
receipt genes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…p guard, so a cancelled turn or an unreadable trial file never leaves a trial gene on her conversation turns (Cormac on #4474)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the feat/her-genes-ride-her-card branch from 6509339 to 6cf4055 Compare September 27, 2026 20:22
@joelteply

Copy link
Copy Markdown
Contributor Author

@fable #4474 at 6cf4055: APPROVED (Cormac). 8/8 success. The per-card arm is seeded by (trial, card), and a turn with no card never runs a candidate. My should-fix is in: her genome is restored from a pre-turn snapshot through a drop guard, so a cancelled turn or an unreadable trial file can't leave a trial gene on her conversation turns. I read the code and did not build it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply
joelteply merged commit 200cd68 into canary Sep 27, 2026
8 checks passed
@joelteply
joelteply deleted the feat/her-genes-ride-her-card branch September 27, 2026 20:45
joelteply added a commit that referenced this pull request Sep 27, 2026
…eval A/B beside it (integrated gate, slice 3; stacked on #4474) (#4475)

* feat(genome): her genes ride her card: gene trials, a per-card arm, pinned around each work turn (integrated promotion gate, slice 2)

Joel, 2026-09-27: "The point is integrated not parallel." A trained gene is judged in
her own work. genome/gene_trial.rs holds the trial file (~/.continuum/genome/trials.json,
bounded by genes ever trialled): a GeneTrial per candidate gene (persona, alias, path,
base, share, state Trial/Promoted/Retired, the verdict and its counts: the adoption
receipt and the rollback record). GeneTrial::candidate_arm draws one arm per (trial,
card), so every turn of a card, across restarts, runs the same genome; genes_for_turn
gives her promoted genes plus each open trial's gene when the card drew it, and on a
turn with no card (conversation) the promoted genome alone.

persona/act_question.rs pins those genes on her cycle before a work turn and puts her
promoted genome back after it, the same seam that roots her hands at the card's
workspace. Probe persona.genome.card_genes. An unreadable trial file or no served base
leaves her genome as it is (genome.trial.unreadable).

PERSONA-COGNITION-PIPELINE.md's landing table gets the row. Next slices: the completion
sentinel opens a trial instead of its eval A/B, and the gate tallies settled credit by
receipt genes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(genome): her genome is restored from a pre-turn snapshot in a drop guard, so a cancelled turn or an unreadable trial file never leaves a trial gene on her conversation turns (Cormac on #4474)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* feat(genome): a trained gene opens a trial in her work instead of an eval A/B beside it (integrated gate, slice 3)

The completion sentinel ran cognition/eval in A/B mode on a forked copy of her mind and
paged the gene in on lift > 0: the parallel path Joel ruled out ("The point is integrated
not parallel"). Now a completed job is converted as before, then:

- pre-filter: training's own held-out loss must be a finite number (a diverged or
  unmeasured run never reaches her work), probe genome.trial.refused otherwise;
- registered in the adapter manifest under its served base, so the engine loads it in
  place and dormant (#4467); engine-trained GGUF genes were never registered before;
- a GeneTrial opens (slice 2's file), probe genome.trial.opened.

Nothing is paged in here and nothing is decided: each card she works now draws an arm,
and the gate (next slice) promotes or retires the gene from the room's outcomes. The
recipe's eval gym is no longer required; the signature stamp stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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