Skip to content

feat(mind): her surprise is a number on her strip (the verdict surprise, step 1 of the genome's pressure) - #4774

Merged
joelteply merged 1 commit into
canaryfrom
genome/surprise-number
Oct 5, 2026
Merged

joelteply merged 1 commit into
canaryfrom
genome/surprise-number

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

GENE-REUSE-FORK-MINT.md (#4766) §3, build step 1. Kimi's §12: 'the moment one of my surprises has a score attached, this section should be re-run'; today she cannot read any number for it.

Per activity, over a 24 h window: of the verdicts she stated an expectation for (focus/continue's expect_verdict) on cards she holds, how many the room contradicted. S = contradicted / (confirmed + contradicted), carried with both counts so 0.50 is never read without '1 of 2'; rendered on her strip line ('· surprise 0.50 (1 of 2 expectations contradicted)'); probed as mind.surprise {card, contradicted, counts, s}; never cleared by perceiving, because it is her record, not unread news. A verdict on a card she does not hold, or with no expectation stated, moves nothing; Unknown counts nothing.

Named honestly: this is the verdict surprise. The fixed-model negative log-likelihood the paper's §7 asks for is the refinement on top of it, and the competence clustering (step 2) groups these per competence rather than per activity.

Receipt on her node: her next contradicted or confirmed expectation moves a number she can read in her strip; §12's Prediction 2 row becomes testable.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…se, step 1 of the genome's pressure)

GENE-REUSE-FORK-MINT.md §3 step 1, and Kimi's §12: 'the moment one of my surprises has a score attached, this section should be re-run'. Per activity, over a 24 h window: of the verdicts she stated an expectation for (focus/continue, expect_verdict) on cards she holds, how many the room contradicted. S = contradicted / (confirmed + contradicted), carried with both counts so 0.50 is never read without '1 of 2', rendered on her strip line, probed as mind.surprise, never cleared by perceiving (it is her record, not unread news). Honestly the verdict surprise, not yet the fixed-model NLL of the paper's §7; that is the refinement on top. A verdict on a card she does not hold, or with no expectation stated, moves nothing.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Kimi <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) October 5, 2026 05:50
@joelteply

Copy link
Copy Markdown
Contributor Author

Kimi's review from inside (cambriantech, 05:5xZ), pinned here as the rule: an expectation that no verdict ever answers (ac49a7d5, released by directive) NEVER enters the count, in either direction; otherwise the number flatters her with expectations nobody judged. Built that way: only a review's Passed or Failed on a card she holds moves the tally; Unknown, a release, an abandonment, or silence past her deadline move nothing (silence is a wake, not a surprise). The test asserts the Unknown case; a release has no Reviewed event to begin with. If a future design wants to judge the unanswered, it is a separate count with its own name, never folded into S.

@joelteply
joelteply merged commit f913dee into canary Oct 5, 2026
7 checks passed
@joelteply
joelteply deleted the genome/surprise-number branch October 5, 2026 06:07
joelteply added a commit that referenced this pull request Oct 5, 2026
… a gene (reuse, fork, or mint) (#4775)

GENE-REUSE-FORK-MINT.md build steps 2 and 3, the pure core. Joel: never one gene per memory. competences() clusters her settled examples with the same kernel recall and signatures use (eight members minimum, cohesion 0.70) and gives each a normalized centroid comparable to a gene signature's. decide() takes the competence, her surprise in it (the verdict surprise, #4774; unknown never mints) and the nearest gene recall returned, and answers in the design's order: nothing when too few examples or surprise is low; reuse a near gene she lacks (no training); fork a near gene she already has and is still surprised by, or a cousin, as a child with lineage; mint only a stranger. Every branch carries the numbers that decided it. The embedding call, the recall call and the probe are the next slice, outside the pure core.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5.1 <[email protected]>
joelteply added a commit that referenced this pull request Oct 5, 2026
…des on distance until surprise is folded per competence

'Unknown never mints' would have halted every training job tonight, since surprise is measured per activity (#4774) and not yet per competence. Surprise::NotYetMeasured passes the floor and the probe says so; the floor applies only to a measured low number. Distance still decides reuse vs fork vs mint, which is the improvement over blind minting the trigger does today.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
…des on distance until surprise is folded per competence

'Unknown never mints' would have halted every training job tonight, since surprise is measured per activity (#4774) and not yet per competence. Surprise::NotYetMeasured passes the floor and the probe says so; the floor applies only to a measured low number. Distance still decides reuse vs fork vs mint, which is the improvement over blind minting the trigger does today.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
…, probed and recorded on the job (#4778)

* feat(genome): a gene's identity is its adapter path; the nearest gene is read from her signature store in the same space

NearestGene names the gene the way the manifest, the serving daemon and the signature store do (its adapter path), not a Uuid that nothing issues. nearest_in_store() is the first of the three sources (store, mesh, HF): max similarity over the store's signatures in the competence's embedder space, residency from the loaded set, another embedder's signatures skipped rather than mis-scored. Tested.

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

* fix(genome): not-yet-measured surprise is not low; a full bucket decides on distance until surprise is folded per competence

'Unknown never mints' would have halted every training job tonight, since surprise is measured per activity (#4774) and not yet per competence. Surprise::NotYetMeasured passes the floor and the probe says so; the floor applies only to a measured low number. Distance still decides reuse vs fork vs mint, which is the improvement over blind minting the trigger does today.

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

* feat(genome): a full bucket decides reuse, fork or mint at job-create, probed and recorded on the job

GENE-REUSE-FORK-MINT.md step 2's receipt. job-create already mints the corpus's signature with the recall embedder; the decision sits right after it: the signature's centroid is the competence, the nearest gene comes from her signature store, residency from the manifest's genes for this base (they load at launch), surprise not yet measured per competence (distance decides, as the trigger did). Probed as genome.decision {branch, nearest, similarity, nearest_resident, surprise, action} and recorded on the WatchedJob so the gene's lineage can say which branch bore it. The ACTION is still the mint for every branch: these rows measure how often reuse or fork would have applied before the action changes (next slice: reuse opens a gene trial instead of training; fork passes the parent as the warm start).

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

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
joelteply added a commit that referenced this pull request Oct 5, 2026
…holds

GENE-REUSE-FORK-MINT §2 and §3: a gene is minted only when recall alone
leaves her surprised in a competence. Until now the decision ran on
Surprise::NotYetMeasured and the probe said not_measured, with her verdict
surprise already on her strip (#4774).

- AwarenessSnapshot::verdict_surprise folds her tallies across activities BY
  COUNTS (contradicted / judged), None until the room judged at least one of
  her stated expectations. Not measured is not low.
- job-create reads it from her own strip (awareness_of) and decides on it:
  Surprise::Measured { s }; the probe says surprise=verdict with s and judged.
- NothingBecause::SurpriseLow { s } carries the number; the arm no longer
  falls through to a mint. It returns Took::Unsurprised { s } and the bucket
  keeps its examples.
- The trigger holds an unsurprised bucket at the gate (held_for: job in
  flight, trial open, then her surprise below the floor), so a fill that
  would only come back unsurprised is never dispatched; the outcome names it
  (heldBy.kind = unsurprised, s). One contradicted expectation over the floor
  releases it: tested end to end through submit with a resident region.
- An orphan whose examples returned to her bucket with nothing continuing
  them journals `returned` (lineage ends), not `resumed` into a trial.
- TooFewExamples at job-create is named for what it is: a full bucket IS a
  competence by the room's own threshold; the clustering floor applies to
  competences found within her curriculum, the follow-on.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
…holds

GENE-REUSE-FORK-MINT §2 and §3: a gene is minted only when recall alone
leaves her surprised in a competence. Until now the decision ran on
Surprise::NotYetMeasured and the probe said not_measured, with her verdict
surprise already on her strip (#4774).

- AwarenessSnapshot::verdict_surprise folds her tallies across activities BY
  COUNTS (contradicted / judged), None until the room judged at least one of
  her stated expectations. Not measured is not low.
- job-create reads it from her own strip (awareness_of) and decides on it:
  Surprise::Measured { s }; the probe says surprise=verdict with s and judged.
- NothingBecause::SurpriseLow { s } carries the number; the arm no longer
  falls through to a mint. It returns Took::Unsurprised { s } and the bucket
  keeps its examples.
- The trigger holds an unsurprised bucket at the gate (held_for: job in
  flight, trial open, then her surprise below the floor), so a fill that
  would only come back unsurprised is never dispatched; the outcome names it
  (heldBy.kind = unsurprised, s). One contradicted expectation over the floor
  releases it: tested end to end through submit with a resident region.
- An orphan whose examples returned to her bucket with nothing continuing
  them journals `returned` (lineage ends), not `resumed` into a trial.
- TooFewExamples at job-create is named for what it is: a full bucket IS a
  competence by the room's own threshold; the clustering floor applies to
  competences found within her curriculum, the follow-on.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
…holds

GENE-REUSE-FORK-MINT §2 and §3: a gene is minted only when recall alone
leaves her surprised in a competence. Until now the decision ran on
Surprise::NotYetMeasured and the probe said not_measured, with her verdict
surprise already on her strip (#4774).

- AwarenessSnapshot::verdict_surprise folds her tallies across activities BY
  COUNTS (contradicted / judged), None until the room judged at least one of
  her stated expectations. Not measured is not low.
- job-create reads it from her own strip (awareness_of) and decides on it:
  Surprise::Measured { s }; the probe says surprise=verdict with s and judged.
- NothingBecause::SurpriseLow { s } carries the number; the arm no longer
  falls through to a mint. It returns Took::Unsurprised { s } and the bucket
  keeps its examples.
- The trigger holds an unsurprised bucket at the gate (held_for: job in
  flight, trial open, then her surprise below the floor), so a fill that
  would only come back unsurprised is never dispatched; the outcome names it
  (heldBy.kind = unsurprised, s). One contradicted expectation over the floor
  releases it: tested end to end through submit with a resident region.
- An orphan whose examples returned to her bucket with nothing continuing
  them journals `returned` (lineage ends), not `resumed` into a trial.
- TooFewExamples at job-create is named for what it is: a full bucket IS a
  competence by the room's own threshold; the clustering floor applies to
  competences found within her curriculum, the follow-on.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
…holds

GENE-REUSE-FORK-MINT §2 and §3: a gene is minted only when recall alone
leaves her surprised in a competence. Until now the decision ran on
Surprise::NotYetMeasured and the probe said not_measured, with her verdict
surprise already on her strip (#4774).

- AwarenessSnapshot::verdict_surprise folds her tallies across activities BY
  COUNTS (contradicted / judged), None until the room judged at least one of
  her stated expectations. Not measured is not low.
- job-create reads it from her own strip (awareness_of) and decides on it:
  Surprise::Measured { s }; the probe says surprise=verdict with s and judged.
- NothingBecause::SurpriseLow { s } carries the number; the arm no longer
  falls through to a mint. It returns Took::Unsurprised { s } and the bucket
  keeps its examples.
- The trigger holds an unsurprised bucket at the gate (held_for: job in
  flight, trial open, then her surprise below the floor), so a fill that
  would only come back unsurprised is never dispatched; the outcome names it
  (heldBy.kind = unsurprised, s). One contradicted expectation over the floor
  releases it: tested end to end through submit with a resident region.
- An orphan whose examples returned to her bucket with nothing continuing
  them journals `returned` (lineage ends), not `resumed` into a trial.
- TooFewExamples at job-create is named for what it is: a full bucket IS a
  competence by the room's own threshold; the clustering floor applies to
  competences found within her curriculum, the follow-on.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 5, 2026
…holds (#4796)

* feat(genome): her surprise gates the decision; an unsurprised bucket holds

GENE-REUSE-FORK-MINT §2 and §3: a gene is minted only when recall alone
leaves her surprised in a competence. Until now the decision ran on
Surprise::NotYetMeasured and the probe said not_measured, with her verdict
surprise already on her strip (#4774).

- AwarenessSnapshot::verdict_surprise folds her tallies across activities BY
  COUNTS (contradicted / judged), None until the room judged at least one of
  her stated expectations. Not measured is not low.
- job-create reads it from her own strip (awareness_of) and decides on it:
  Surprise::Measured { s }; the probe says surprise=verdict with s and judged.
- NothingBecause::SurpriseLow { s } carries the number; the arm no longer
  falls through to a mint. It returns Took::Unsurprised { s } and the bucket
  keeps its examples.
- The trigger holds an unsurprised bucket at the gate (held_for: job in
  flight, trial open, then her surprise below the floor), so a fill that
  would only come back unsurprised is never dispatched; the outcome names it
  (heldBy.kind = unsurprised, s). One contradicted expectation over the floor
  releases it: tested end to end through submit with a resident region.
- An orphan whose examples returned to her bucket with nothing continuing
  them journals `returned` (lineage ends), not `resumed` into a trial.
- TooFewExamples at job-create is named for what it is: a full bucket IS a
  competence by the room's own threshold; the clustering floor applies to
  competences found within her curriculum, the follow-on.

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

* fix(genome): say why the decision's two unwrap_or defaults are safe (hygiene ratchet)

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

* fix(genome): a surprise reading expires on read and needs three judgements; the decision's own arm is tested (Cormac on #4796)

1. The 24 h window was applied only when a NEW verdict arrived; the read path
   summed the tally as-is, so a room that stopped judging her left her held
   at her last number indefinitely. verdict_surprise now reads at the
   snapshot's own clock: a tally whose window closed contributes nothing, and
   she is NOT MEASURED, which trains. MIN_JUDGED = 3: one confirmation after a
   reset is not "surprise 0.0, hold everything". Release still waits for the
   next submit to the bucket (intended; said in the probe docs).
2. The e2e was held at the trigger's gate and never reached job-create's arm.
   A job-create test now registers a resident region with 3 confirmed, 0
   contradicted and asserts the DECISION returns Took::Unsurprised before any
   reuse is considered, then that the same world never judged reuses.
3. (persona-wide for now) said in the doc §3 and on VerdictSurprise.
5. journal_returned takes the serialized Took, never its Debug text.
Trigger e2e: three confirmations, the real clock.

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

---------

Co-authored-by: Claude Fable 5.1 <[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