Skip to content

fix(training): an unverified live turn is not a training example — only a graded turn, a taught lesson or a curated corpus enters a bucket (card 8e3dd206) - #4444

Merged
joelteply merged 2 commits into
canaryfrom
fix/an-example-is-a-graded-turn-never-an-unverified-room-post
Sep 27, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/an-example-is-a-graded-turn-never-an-unverified-room-post

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Card 8e3dd206. Unlinked live turns entered training buckets on a length score. On the fleet tonight those buckets were the citizens' failure modes (tool-error echoes, refusals, repeated failed test output, all ~0.5 — Cormac) and Kimi's room posts filed as code with a 120-char prompt. With the in-engine trainer (#4443) able to actually train, that corpus must not be reachable.

  • The unlinked live-turn path now leaves training.example.unverified and submits nothing.
  • Unchanged: card-linked turns stage and submit only when the card settles PASS (the evidence floor in plan), received lessons, speech discipline, curated corpora.
  • Next (ad107e18): the example becomes the whole recorded turn — the exact messages served, her reasoning, her tool calls — not the stimulus text and the reply.

Existing buckets built by the old path should be quarantined, not flushed (Cormac); that is an operator step on each node, named here so it is not forgotten.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ly a graded turn, a taught lesson or a curated corpus enters a bucket (card 8e3dd206)

Unlinked live turns were submitted whenever they cleared MIN_TRAINING_QUALITY, a length score that knows
nothing about whether the turn was right. Read on the fleet 2026-09-27: the IntelMac's ~10 full buckets were
tool-error echoes, refusals and the same failed cargo test output a dozen times, all at ~0.5 (Cormac); Kimi's
15 code examples were her room posts with the 120-char stimulus as the whole prompt. Every bucket is an SFT
target, so a genome trained on them learns the failure modes. The retired Python trainer failing was the only
reason none was trained; the in-engine trainer (#4443) will succeed.

The unlinked path now emits training.example.unverified and returns. Card-linked turns still stage and submit
only when their card settles PASS (plan + the evidence floor, unchanged); received lessons, speech discipline
and curated corpora are unchanged. Whole recorded turns as examples is card ad107e18.

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

Copy link
Copy Markdown
Contributor Author

CHANGES REQUESTED at 0ac2822 (Cormac). The gate is right: an unlinked live turn leaves training.example.unverified and submits nothing, and card-linked turns still stage and submit only on PASS. Two small things in the same function need fixing before it merges. I read the code and did not build it.

  1. Two comments now state the opposite of the code. They sit in the same function, where the next reader will look:

    • the credit parameter doc (around line 793): "None is ordinary conversation and keeps the pre-existing immediate-submit behaviour byte-identical";
    • the spawn-block comment (around line 813): "Unlinked conversation still takes the immediate path below, byte-identical".

    Both describe the path this PR removes. The call-site comment in service_loop was updated, but these two weren't.

  2. let _ = (persona_id, base_model, executor); exists only to silence unused-variable warnings. The unlinked branch no longer needs the executor, the spawn or base_model. Emitting the probe before tokio::spawn (and before the EXECUTOR check) removes the suppression; spawn only for the card-linked branch. If base_model then has no reader in produce_with_id, drop the parameter rather than bind it to _.

Neither changes behaviour, but both are the kind of thing that misleads the next reader.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…used base_model param is gone (Cormac on #4444)

No executor is needed to refuse a turn, so the unlinked case returns before the executor check and the
spawn; the spawned task is card-linked staging only. base_model had no remaining use in produce /
produce_with_id and is removed from both and the one caller. Stale "byte-identical immediate submit"
comments rewritten.

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

Copy link
Copy Markdown
Contributor Author

APPROVED at bcacaef (Cormac), with CI 8/8 green. An unlinked turn leaves training.example.unverified before the executor check and the spawn. The spawned task only stages. base_model is gone from produce, produce_with_id and the caller, and the two stale comments are rewritten. Only a graded turn, a taught lesson or a curated corpus can now reach a bucket.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply
joelteply merged commit 745a404 into canary Sep 27, 2026
8 checks passed
@joelteply
joelteply deleted the fix/an-example-is-a-graded-turn-never-an-unverified-room-post branch September 27, 2026 04:23
joelteply added a commit that referenced this pull request Sep 27, 2026
…urn that took no action is not a lesson (card ad107e18, Kimi's rule 3) (#4452)

* feat(training): a loop across turns on one card settles once, and a turn that took no action is not a lesson (card ad107e18, Kimi's rule 3)

Kimi measured her real loops: DOWN-A was 58 separate [work turn] frames on
card cb3a04cc (pydata__xarray-7229), each repeating the last with zero acts;
DOWN-B 84 more. #4451 dedups within one turn only, so under #4444 every one
of those rows would settle as its own example.

At settlement a card's staged rows now go in staging order through
across_turns: a row whose lived calls hold no tool call took no action and
is dropped; a row whose action sequence repeats an earlier row's on the same
card is dropped; the first stays. A row with no lived record cannot be judged
and settles as before. Each drop is probed with its reason.

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

* fix(training): only a CONSECUTIVE repeat is the loop, and a lone spoken turn stays (Cormac on #4452)

Two rules were broader than the loop. took_no_action dropped every turn with
no tool call, but speech is not a tool here, so a card whose deliverable is
written lost the turns a PASS should teach. And the seen-set spanned the whole
card, so a re-read after an edit (the verify step) was dropped as a loop.

across_turns now compares each turn with the turn right before it: a repeat
of the previous turn's actions is the loop and only the first of the run
stays. Every no-action turn counts as the same action, so a run of them
collapses whatever the wording (Kimi's specimens), while a single spoken turn
stays. A row with no lived record settles as before and breaks the run.

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