Skip to content

feat(cognition): each turn's receipt names the genes it ran with (the integrated promotion gate, slice 1) - #4473

Merged
joelteply merged 1 commit into
canaryfrom
feat/a-gene-is-judged-on-the-live-engine
Sep 27, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/a-gene-is-judged-on-the-live-engine

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel, 2026-09-27: "The point is integrated not parallel." A trained gene is not judged in
a separate eval harness scoring a copy of her mind; it is judged in her own work, on the
same engine, in the same rooms, by the activities' own outcomes. That needs every turn to
say which genes produced it. GenerationReceipt.genes: each requested adapter at a
non-zero scale (path, else name); empty = the base model. Read from the request before it
is sent. Rows written before read as empty, which is what they ran.

This is slice 1 of the integrated promotion gate: page a candidate gene into her live
genome on a seeded share of her real turns, credit each turn's room outcome to its
receipt's genes, promote or retire at a boundary.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…the room's outcome is credited to them (the gene is judged in her own work)

Joel, 2026-09-27: "The point is integrated not parallel." A trained gene is not judged in
a separate eval harness scoring a copy of her mind; it is judged in her own work, on the
same engine, in the same rooms, by the activities' own outcomes. That needs every turn to
say which genes produced it. GenerationReceipt.genes: each requested adapter at a
non-zero scale (path, else name); empty = the base model. Read from the request before it
is sent. Rows written before read as empty, which is what they ran.

This is slice 1 of the integrated promotion gate: page a candidate gene into her live
genome on a seeded share of her real turns, credit each turn's room outcome to its
receipt's genes, promote or retire at a boundary.

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

Copy link
Copy Markdown
Contributor Author

@fable #4473 read at 5422f1d (Cormac): right, and my word follows at a green lib (3 of 7 checks running). Not built.

  • genes_of reads the request's adapters before it moves, keeping each non-zero scale (path, else name) in request order. A zero-scale entry reaches no graph, so it isn't credited. #[serde(default, skip_serializing_if = "Vec::is_empty")] makes old rows read as the base model, which is what they ran.
  • "Asked" equals "ran" on every lane path I traced. The OpenAI-compatible adapter probes the lane and FAILS LOUD when the backend can't page LoRA or a requested adapter isn't loaded (lora_scale_vector), so a served receipt means every named gene reached the graph. The airc remote path ships the whole TextGenerationRequest, adapters included, and the serving node's adapter makes the same check. A faulted receipt carries its genes too, and its outcome says it faulted.

For the gate (slice 2), not this PR: AnthropicAdapter ignores active_adapters. A gene-carrying request that reaches it runs on the base model, and its receipt would still name the gene. The receipt records the served provider, so the gate should credit only receipts from providers that apply adapters (or genes_of could be emptied where lora_capabilities says none). Otherwise a placement fallback silently credits a gene with a base-model turn.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

joelteply added a commit that referenced this pull request Sep 27, 2026
…ome that worked them, and the gate promotes or retires (integrated gate, slice 4)

Where a card's verdict settles her staged credit (training_producer::settle_card_credit),
her open gene trials hear it. genes_that_ran reads the card's receipts: only generations
SERVED by an engine that applies adapters count (a cloud call ignores the gene, a fault
ran nothing; Cormac on #4473), and a card no such engine served credits no arm. The card
goes to the candidate arm if the trial's gene ran on it, the stable arm otherwise, once
per card (a re-graded instance does not count twice).

The gate (pure): nothing until both arms have 6 settled cards; then PROMOTED when the
gene's cards passed at least as often as her genome's (integer cross-multiplication, a
tie is no worse), RETIRED otherwise. The decision is written on the trial (the adoption
receipt, with its counts); a retired gene leaves the adapter manifest so the serving
engine retires it in place (adapter_manifest::unregister); either verdict joins the
fitness ledger (progress/<persona>.jsonl, source "her-work") that gene recall ranks by.
Probe genome.trial.decided.

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

Copy link
Copy Markdown
Contributor Author

@fable #4473 at 5422f1d: APPROVED (Cormac), 8/8 green. Receipts name the genes that reached the graph on every lane path; the Anthropic case is the gate's filter (#4476).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply
joelteply merged commit 4284ebe into canary Sep 27, 2026
8 checks passed
@joelteply
joelteply deleted the feat/a-gene-is-judged-on-the-live-engine branch September 27, 2026 19:40
joelteply added a commit that referenced this pull request Sep 27, 2026
…ome that worked them, and the gate promotes or retires (integrated gate, slice 4)

Where a card's verdict settles her staged credit (training_producer::settle_card_credit),
her open gene trials hear it. genes_that_ran reads the card's receipts: only generations
SERVED by an engine that applies adapters count (a cloud call ignores the gene, a fault
ran nothing; Cormac on #4473), and a card no such engine served credits no arm. The card
goes to the candidate arm if the trial's gene ran on it, the stable arm otherwise, once
per card (a re-graded instance does not count twice).

The gate (pure): nothing until both arms have 6 settled cards; then PROMOTED when the
gene's cards passed at least as often as her genome's (integer cross-multiplication, a
tie is no worse), RETIRED otherwise. The decision is written on the trial (the adoption
receipt, with its counts); a retired gene leaves the adapter manifest so the serving
engine retires it in place (adapter_manifest::unregister); either verdict joins the
fitness ledger (progress/<persona>.jsonl, source "her-work") that gene recall ranks by.
Probe genome.trial.decided.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Sep 27, 2026
…ome that worked them, and the gate promotes or retires (integrated gate, slice 4)

Where a card's verdict settles her staged credit (training_producer::settle_card_credit),
her open gene trials hear it. genes_that_ran reads the card's receipts: only generations
SERVED by an engine that applies adapters count (a cloud call ignores the gene, a fault
ran nothing; Cormac on #4473), and a card no such engine served credits no arm. The card
goes to the candidate arm if the trial's gene ran on it, the stable arm otherwise, once
per card (a re-graded instance does not count twice).

The gate (pure): nothing until both arms have 6 settled cards; then PROMOTED when the
gene's cards passed at least as often as her genome's (integer cross-multiplication, a
tie is no worse), RETIRED otherwise. The decision is written on the trial (the adoption
receipt, with its counts); a retired gene leaves the adapter manifest so the serving
engine retires it in place (adapter_manifest::unregister); either verdict joins the
fitness ledger (progress/<persona>.jsonl, source "her-work") that gene recall ranks by.
Probe genome.trial.decided.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Sep 27, 2026
…ome that worked them; the gate promotes or retires (integrated gate, slice 4; stacked on #4475) (#4476)

* feat(genome): her work decides the gene: settled cards credit the genome that worked them, and the gate promotes or retires (integrated gate, slice 4)

Where a card's verdict settles her staged credit (training_producer::settle_card_credit),
her open gene trials hear it. genes_that_ran reads the card's receipts: only generations
SERVED by an engine that applies adapters count (a cloud call ignores the gene, a fault
ran nothing; Cormac on #4473), and a card no such engine served credits no arm. The card
goes to the candidate arm if the trial's gene ran on it, the stable arm otherwise, once
per card (a re-graded instance does not count twice).

The gate (pure): nothing until both arms have 6 settled cards; then PROMOTED when the
gene's cards passed at least as often as her genome's (integer cross-multiplication, a
tie is no worse), RETIRED otherwise. The decision is written on the trial (the adoption
receipt, with its counts); a retired gene leaves the adapter manifest so the serving
engine retires it in place (adapter_manifest::unregister); either verdict joins the
fitness ledger (progress/<persona>.jsonl, source "her-work") that gene recall ranks by.
Probe genome.trial.decided.

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

* fix(genome): a card credits only a trial it was worked under: after the trial opened, on its base, one genome throughout (Codex on #4476)

credit_card credited a settled card to every open trial of the persona, reading "the
gene did not run" as the stable arm, so a card worked before a trial opened, or on
another base, counted against that trial. arm_of now decides per trial from the card's
turns (CardTurn: staged_at_ms, and each llama-server-served generation's model and
genes): every turn staged after the trial opened, only generations served on the
trial's base read, the gene on all of them → candidate, on none → stable, on some →
neither. A card that says nothing about a trial is not credited to it.

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

* fix(genome): the gate looks only at checkpoints and promotes only a likely gain; a card counts only in the arm it drew (Cormac on #4476)

Ties promoting at 6 cards per arm promoted a no-effect gene 61-71% of the time
(Cormac's numbers), and promoted genes become the next baseline: drift. The gate now
computes P(her cards pass more often with the gene) exactly (two Beta posteriors, uniform
priors, Evan Miller's closed form) and looks only when both arms reach 10, 20, 30, 40
settled cards, each checkpoint once (the trial records it): promote at >= 0.975, retire
below 0.10, and at 40 anything not promoted retires. Simulated: a no-effect gene is
promoted 3-8%, a harmful one 1%, a +0.2 gene about half the time within 40 cards.
Looking after every card instead let chance cross the bar (6-11% at the same bar).

A card now counts only when the genome that worked it matches the arm it drew; one that
drew the gene but ran without it (an unreadable trial file that turn) is no evidence.

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