Skip to content

fix(genome): a Took persisted as a bare job id before #4794 reads as Joined (Kimi's 13 staged credits refused on the 5090) - #4893

Merged
joelteply merged 2 commits into
canaryfrom
fix/took-reads-its-legacy-bare-job-id
Oct 10, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/took-reads-its-legacy-bare-job-id

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

On the 5090, 2026-10-10 (BigMama's receipt): Kimi's credit settlement failed on all 13 staged revisions with codec error: invalid type: string "cc4f33b7-…", expected internally tagged enum Took — 13 staged, 0 submitted.

Who changed Took: #4794 (2026-10-05, "reuse adopts the gene for trial…") made it an internally tagged enum (kind). Before it, the trigger's durable dispatches (DispatchPhase::Held { took }, collection training_trigger_dispatches) stored took as the bare id of the job she joined — and Kimi's buckets on the 5090 date from 09-24/09-26. Read as the tagged enum alone, those rows cannot decode, and the trigger refuses everything behind them.

Fix: Took keeps its derived tagged Serialize; Deserialize is written by hand through one wire enum (TookWire: the tagged shape, or a bare uuid) and a From that reads the bare id as Took::Joined { job }, which is what it meant. One place admits the legacy shape; nothing writes it (typed, From, no stringly path).

Test: a bare id reads as Joined; every tagged variant round-trips still tagged; the persisted Held row — serialized by DispatchPhase itself with its took replaced by the bare id, so the test cannot drift from the real tag layout — decodes.

The proof on the 5090 is her settlement submitting instead of refusing: 13 staged / N submitted on the next health line after the core carries this.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…Joined, so a durable dispatch from before the tagged enum no longer refuses every settlement behind it

On the 5090, 2026-10-10 (BigMama): Kimi's credit settlement failed on all 13 staged
revisions with `codec error: invalid type: string "cc4f33b7-…", expected internally
tagged enum Took`. #4794 (2026-10-05) made `Took` an internally tagged enum; before it,
the trigger's durable dispatches (`DispatchPhase::Held { took }`, collection
`training_trigger_dispatches`) stored `took` as the bare id of the job she joined, and
her buckets date from 09-24/09-26. Read as the tagged enum alone, those rows could not
decode, and the trigger refused what came after them.

`Took` keeps its derived tagged Serialize; Deserialize is written by hand through one
wire enum (`TookWire`: the tagged shape, or a bare uuid) and a `From` that reads the
bare id as `Took::Joined { job }`, which is what it meant. One place admits the legacy
shape; nothing writes it. Test: a bare id reads as Joined; every tagged variant
round-trips still tagged; the persisted Held row, serialized by DispatchPhase itself
with its took replaced by the bare id, decodes.

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

Copy link
Copy Markdown
Contributor Author

Reviewed at df5f0be. Right fix: the untagged TookWire reads the pre-#4794 bare UUID as Joined { job }, every tagged form still decodes, and Took still serializes tagged (the test pins both, plus a real DispatchPhase::Held row with the legacy value). This is what unblocks Kimi's 13 staged credits.

Non-blocking, a drift guard: TookTagged is a second copy of Took's variants, and the From match is over TookTagged, so a new Took variant would serialize but fail to deserialize, and the compiler wouldn't notice. The round-trip loop also omits Reused. Adding Reused to the loop, plus a comment at Took saying a new variant needs a TookTagged twin, would close it. Approve (as a comment: shared account).

@joelteply joelteply left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE at df5f0be. Cormac (Claude).

Right fix, right layer: an untagged wire enum tries the tagged shape first and reads a bare UUID as Joined. Serialization stays tagged, and the test decodes a real DispatchPhase::Held row carrying the legacy took, which is the 5090's exact shape. That unblocks Kimi's 13 staged credits.

One drift hazard, a follow-up rather than a blocker: TookTagged now mirrors Took's variants by hand. A new Took variant without a TookTagged twin compiles and serializes, but can't be read back, silently. The round-trip list is also hand-written and leaves out Reused. Making that test exhaustive would close it: build the list through a on Took with no wildcard arm, so a new variant fails to compile the test until it's added both to the list and to TookTagged.

@joelteply

Copy link
Copy Markdown
Contributor Author

Correction to my review above: a shell ate one word. It should read "build the list through a match on Took with no wildcard arm". Cormac (Claude).

@joelteply
joelteply merged commit 2c850ab into canary Oct 10, 2026
7 checks passed
@joelteply
joelteply deleted the fix/took-reads-its-legacy-bare-job-id branch October 10, 2026 05:36
joelteply added a commit that referenced this pull request Oct 10, 2026
…ind (fork #49) (#4895)

f45bb191b -> e2c769012 on feat/props-weight-residency. A chunk graph the device budget refuses is
refused after its ubatch was applied; the adaptive horizon retried on top of the chunk's own cells and
failed to prepare its ubatch, stopping the epoch (Kimi's first exact-walk job on the 5090, 2026-10-10
04:34Z). The walk now rewinds the cache before every retry. Paired with #4894 (the core sizes the
chunk against the lease, and a refusal is recorded as the measurement) and #4893 (pre-#4794 Took).


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

Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply added a commit that referenced this pull request Oct 10, 2026
…card-free match, so a variant without a wire twin fails to compile (Cormac on #4893) (#4896)

Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
(cherry picked from commit 742e9e8)

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