Repository navigation
feat(genome): her surprise gates the decision; an unsurprised bucket holds - #4796
Conversation
|
CHANGES REQUESTED at cb76cef: two things before it merges, the rest can follow. The shape is right: never-judged and judged are told apart by type ( 1. A bucket can hold until someone judges her again. The 24 h window is applied only in 2. The e2e test doesn't reach the decision it names. The first fill is held at the trigger's pre-gate ( Can follow: |
…ments; 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
cb76cef to
b69df9b
Compare
…ments; 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
b69df9b to
e36f00b
Compare
|
Revised at e36f00b (restacked on #4794's revision): (1) |
|
APPROVED at e36f00b, pending its lib-test check. Verified: verdict_surprise filters on the snapshot's clock (since_ms > 0 and within SURPRISE_WINDOW_MS), the test pins that a stale tally is not a reading, MIN_JUDGED=3 is a named floor, the decision's own Unsurprised arm is tested at job_create with a never-judged counterpart, and the journal takes the serialized Took. Persona-wide is now said in §3, which is the honest interim. |
…eturned Restacked onto e2aab85: journal_returned takes held_by as the serialized Took. An operator's return is held by no Took, so it is named by the verb. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…ments; 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
e36f00b to
1858757
Compare
…eturned Restacked onto e2aab85: journal_returned takes held_by as the serialized Took. An operator's return is held by no Took, so it is named by the verb. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
|
APPROVED at 1858757, pending its lib-test check. Checked against my e36f00b word: the fix commit's patch is identical, and the one new commit (d43d3ae) only adds comments. One nit in that commit: the |
…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
…hygiene ratchet) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ments; 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
1858757 to
29d3484
Compare
…eturned Restacked onto e2aab85: journal_returned takes held_by as the serialized Took. An operator's return is held by no Took, so it is named by the verb. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…e jobs that never trained (#4800) * feat(genome): one typed return of a job's examples, and a verb for the jobs that never trained A job takes its examples out of the bucket when it is dispatched. A job that then ends without training a step leaves them in its directory, and no fill sees them again: on the 5090 2026-10-05, 18 of Kimi's jobs stranded ~500 examples that way. ONE typed path back: - read_job_request(dir) is the one reader of a job's request.json (the planner's spec restored to the registry id); resumable_request uses it and now reports why a request can't be read instead of an empty Option. - SubmitParams::returning(request, job) is the one conversion of a job back into a submit: only the bucket key and examples ride back (the job's LoRA, schedule and eval set are the bucket's to pin), and the job's id is the batch identity, so a second return of the same job is a replay, never a second copy. - submit_batch is submit's body, shared, so a returned job's examples are accepted, deduped and dispatched exactly as any batch. The held-orphan arm at boot used an inline serde_json::Value with unwrap_or(Null) per required field, and counted a refused submit (success=false) as returned. It now goes through SubmitParams::returning and decodes SubmitOutcome, requiring success before it journals the orphan returned. genome/training-trigger/return {jobId} hands back a job that ended without training: it refuses an open job (it trains or resumes itself) and a trained one (its checkpoint or adapter is its outcome), and journals through job_board::journal_returned. Deliberately a verb, not automatic on failure: a deterministic failure (out of device memory at its window) would refill, re-dispatch and fail forever. Job-board lookups registration(job) and is_terminal(job) read the ledger through orphan_of, now the one reading of a registration row. default_job_dir no longer falls back to "." without a home directory; job_dir_under is the one job layout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(genome): a returned job's examples join the bucket's policy (Fable on #4800) SubmitParams::returning dropped eval_set/lora/schedule/local_artifact_dir, and same_policy compares them exactly, so a return into a bucket that already held a producer's batch (code traits carry the gym's evalSet) was refused InconsistentBucket and the examples stayed stranded. Mapping the job's fields through alone would not fix it either: the trainer's adapter writes its own defaults into the job's request.json, so a returned lora: Some(default) never equals a producer's None. So the one return, return_request, ADOPTS the policy the key already holds (the pending bucket's, else the active dispatch's, through TrainingTriggerState::held_policy) and pins the job's own (now mapped through by returning) only into an empty key. BucketPolicy is THE set of fields a bucket pins; same_policy compares it, so what acceptance requires and what a return adopts cannot drift. The boot Held arm calls return_request directly (resume_orphans_once takes self: &Arc<Self>) instead of round-tripping JSON through the executor. Test: a producer's batch (evalSet, no lora) then a returned job (evalSet + the adapter's default lora) gives 1 + 2 examples in one bucket, not InconsistentBucket. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(genome): the return verb journals through #4796's typed journal_returned Restacked onto e2aab85: journal_returned takes held_by as the serialized Took. An operator's return is held by no Took, so it is named by the verb. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…nce (#4814) Joel, 2026-10-06, on attach replay: "it should be impossible". Replay is going away in the daemon (Cormac), but the consumer must not depend on that: her surprise tally counted every Reviewed event it was handed, so a replayed gap or a re-sent event counted her expectation as confirmed or contradicted a second time. That number now gates whether she trains (#4796), so a duplicate delivery was corrupting a decision. - RoomWork::Reviewed and BoardChange::Reviewed carry the review's own id (airc's review_id). - ActivityView keeps the reviews it has counted (bounded by UNPERCEIVED_CAP); a review already counted is skipped and probed (mind.surprise.duplicate). A new review of the same card still counts. Test: the same review twice leaves the tally unchanged; a new review of the same card moves it. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
Stacked on #4794. GENE-REUSE-FORK-MINT §2/§3: a gene is minted only when recall alone leaves her surprised. The decision ran on
NotYetMeasuredwhile her verdict surprise was already on her strip (#4774).AwarenessSnapshot::verdict_surprise: her tallies folded across activities by counts;Noneuntil the room judged one of her stated expectations (not measured is not low).Surprise::Measured { s }; probe sayssurprise=verdict s=… judged=….SurpriseLow { s }no longer falls through to a mint:Took::Unsurprised { s }, examples stay in the bucket.held_for: job → trial → surprise), so the fill is never dispatched just to come back unsurprised;heldBy.kind = unsurprised. One contradicted expectation over the floor releases it — tested end to end through submit with a resident region.returned, notresumed.Behaviour on the 5090: a citizen whose expectations the room keeps confirming trains nothing until she is surprised; one never judged still trains (unknown never halts). Kimi's strip read 0.50 today.
1460 green.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo