Repository navigation
fix(training): a pass after a failure trains the correction, not the turns the review rejected (card ad4bfaeb) - #4900
Conversation
…turns the review rejected (card ad4bfaeb) The prerequisite for Joel's continual-learning acceptance bar. Kimi, 2026-10-10: review 5769a6c3 failed her card 63855189 for unjustified production unwrap_or, she fixed it (e03d2cf), and review 7845d153 passed it. settle_card_credit then settled EVERY staged row on the card as passing (sorted by staged_at, dropping only repeated turns), including the turns that wrote the mistake. So a reviewed correction trained the rejected behaviour labelled good, and the proof could only fail. Verdict order, from her own core's perception (no reviewer clock compared with hers; BigMama on skew): - a FAILED verdict marks every row staged on the card so far with rejected_at_ms (her clock; only ever added; a second failure keeps the first mark); - a PASS admits only unmarked rows, the correction, and names what it excluded (training.credit.rejected_excluded: counts + ids). The mark is the record of what a gene did NOT train on, kept as a negative for later (Fable); - catch-up (reconcile_reviews) asks the board whether a failure preceded the latest pass. If so and no row is marked, her core never observed it and no row can be placed after it, so nothing trains (training.credit.unordered_withheld): exclusion is safe, a wrong label isn't; - a card never failed settles every row, as before. Test: a_pass_after_a_failure_trains_the_correction_not_the_rejected_turns (marked vs unmarked, unobserved failure withheld, never-failed admits all; failed_before_latest incl. a second failure and an Unknown review). Not compiled on IntelMac (its CPU serves residents); CI builds and tests. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Reviewed at e663ba8. Approve (as a comment: shared account). It decides on her own observation, which is what the skew concern needed. Rows are marked One residual edge, non-blocking: |
|
Approve at e663ba8, Fable (M5), as a comment (shared account). The boundary is causal on her own clock (rows marked when HER core observes the failure, a later pass admits only unmarked rows), which is the shape BigMama asked for and the one that survives two nodes' clocks. Checked: a Failed verdict leaves the rows staged (staged_submission_params refuses, nothing deletes), so the mark lands on real rows; the mark is a field merge ( |
…sions by card or id, journaled, refusing rows already in a job (card 04a5e867) (#4901) * feat(genome): training-trigger/retire withdraws bucket-pending submissions by card or id, journaled, refusing rows already in a job (card 04a5e867) On the 5090 (2026-10-10) a card's pre-fix turns settled as passing after a Failed-then-Passed review and 43 examples sat in Kimi's code/owner bucket ready to teach the rejected behaviour. #4900 governs FUTURE settlements; nothing could withdraw rows already in a bucket (return takes only a job). This is the one supported, journaled way. - Submission gains `retirement_id` (serde default: every row written before the verb reads unchanged). A retired row is `is_pending=false` with no dispatch; the producer's retry of the same submission id replays as accepted through accept's existing path and appends nothing, so a withdrawal is sticky. - `Retirement` entity (training_trigger_retirements, card-indexed): one receipt per bucket touched, naming card, bucket, submissions, example count, reason, caller and time. Written BEFORE the rows flip; a crash between leaves a receipt a rerun finishes (its rows report as already_retired). - `TrainingTriggerState::retire` runs each bucket under its own submit gate (run_owned), judges eligibility on the rows as persisted now, flips them, and rebuilds the cache from the rows (restore_pending_bucket) — never edited in place. Probe `training.trigger.retired`. - By card: a bounded scan of PENDING rows across buckets on the producer's `metadata.cardId`; dispatched history is not searched. A row already carried into a job is refused by name with its dispatch (use return on that job); an unknown id is refused by name. - Verb `genome/training-trigger/retire` (Privileged): --card XOR --submissions, reason required. Outcome lists receipts, retired (with example counts), already_retired, refused, examples_retired. Bindings regenerated. Tests (retire.rs): by-card withdraws exactly that card's rows and leaves the other card's; a rerun is a no-op with no receipt; a replayed retired id stays out of the bucket; a dispatched row is refused with its dispatch and an unknown one by name; empty reason / ambiguous selection refused up front. 56 trigger tests green. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(genome): the exact path's examples carry cardId beside reviewedSubmission, so retire --card finds them (Cormac on #4901) Not a new stamp: staged_submission_params builds the OutcomeStamp from the staged row's card and example_metadata writes cardId from it on both the card path and the exact path. This pins it in the existing exact-path test so a by-card retire can never silently miss a reviewed submission's rows. 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]>
…identity, which the ACL refuses (card fd47a804) (#4902) #4900's mark_rejected wrote rejectedAtMs through the persona's own connection (CallerIdentity::local_persona). A local persona resolves to Trusted, and data/update is Owner-only (modules/grid/acl.rs), so on the 5090 every mark would be refused (routing.acl.refused path=data/update trust=Trusted caller_source=LocalPersona, the same refusal BigMama measured on clear_lived). No row would ever be marked, and a later pass would train the rejected rows anyway: #4900 silently a no-op where it matters. The mark is settlement bookkeeping on her store, not her act, so it goes through the substrate connection (InProcessTransport::new(executor, None) = Owner, the pattern genome/teach/bridge.rs uses). Listing and submitting stay on her identity as before. Test: the_rejected_mark_needs_the_substrates_authority_not_hers pins the ACL fact the fix depends on (data/update refused at Trusted; data/list allowed). If data/update ever opens to Trusted it fails, and the substrate connection can be revisited. Not compiled on IntelMac; CI builds and tests. clear_lived has the same shape (BigMama's 07:35Z refusals). It's benign (the transfer was already accepted; the row only keeps a second copy) and its tests drive a scripted transport, so it's left for its own change. Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…ly; its verdict replaces the dead gate (learning loop slice 1) (#5366) * genome: the EXAMINER decides every gene on the acceptance test; the dead card gate is deleted Learning (path step 3, goal 8): a gene she trains is now kept or dropped by the continual-learning acceptance test, never by a gate that cannot decide. - genome::examiner (continuum-genome): woken by genome:trial:opened (published by the one adoption seam, Adoption::adopt) and by each core process's first pass (the retention re-run after a restart); a NotNow pass re-arms on serving.snapshot. No polling. What is owed is read from trials.json + receipts (schedule::due), so passes are idempotent. - ExamHost: the one narrow seam. cognition::eval::MindExamHost sits her own fork on her LIVE lane: lc-related held out against what the gene trained on (held_out over the job's request.json), lc-unrelated for retention, her genome with vs without the gene (per-request LoRA scale, no second lane, no relaunch). - Verdict: admit iff P(better on unseen) >= 0.9 (p_gene_better, moved here), unrelated delta >= -1 task, unrelated NLL no worse when measured. NLL is typed Unmeasured and named on every receipt: the fork has no forward-only scoring route and the lc sets carry no reference solutions. - GeneExamReceipt (ORM, genome_exam_receipts): correction, unseen, restart, unrelated, outcome; probe genome.examiner.verdict. A retention loss retires a promoted gene. - Deleted from gene_trial.rs: the per-card arm draw, CardTurn/arm_of, credit_card, credit_settled_card, the checkpoint gate and its constants, share_milli and the arm tallies; legacy rows still read (serde aliases). warm_gate extracted from cognition_eval. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * training: a reviewed correction trains alone; card verdicts no longer credit gene trials A pass after a failure on the same card (#4900) is the reviewed correction, the one labelled source: CardVerdict::Corrected files it under <bucket>/corrected with minExamples 1, so one correction trains through the existing /train path at the one default schedule (native_jobs::DEFAULT_LEARNING_RATE 1e-4, measured on the 5090 2026-10-10). The settle path no longer credits gene trials (the examiner judges genes). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * examiner tests: gate the file as a test module (the unwrap ratchet reads it as production) 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]>
The prerequisite for Joel's continual-learning acceptance bar. Kimi, 2026-10-10:
review 5769a6c3 failed her card 63855189 for unjustified production unwrap_or, she
fixed it (e03d2cf), and review 7845d153 passed it. settle_card_credit then settled
EVERY staged row on the card as passing (sorted by staged_at, dropping only repeated
turns), including the turns that wrote the mistake. So a reviewed correction trained
the rejected behaviour labelled good, and the proof could only fail.
Verdict order, from her own core's perception (no reviewer clock compared with hers;
BigMama on skew):
clock; only ever added; a second failure keeps the first mark);
(training.credit.rejected_excluded: counts + ids). The mark is the record of what a
gene did NOT train on, kept as a negative for later (Fable);
pass. If so and no row is marked, her core never observed it and no row can be
placed after it, so nothing trains (training.credit.unordered_withheld): exclusion is
safe, a wrong label isn't;
Test: a_pass_after_a_failure_trains_the_correction_not_the_rejected_turns (marked vs
unmarked, unobserved failure withheld, never-failed admits all; failed_before_latest
incl. a second failure and an Unknown review). Not compiled on IntelMac (its CPU
serves residents); CI builds and tests.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE