Repository navigation
Retired examples clear their training demand, so no withdrawn example reserves a window (card 4545eafd) - #5572
Conversation
… reserves a window (card 4545eafd) FOCUS-CONTRACT (#5570): no lane reduction from a stale training-demand record. A demand entry (#5557) cleared only when a run trained its example; a parked example returned to her bucket and then withdrawn (retire by card or submission: a failed review, a superseding fix) kept its demand, and with it a reservation, forever. - retire_in_bucket clears the withdrawn rows' examples (by content key, the key a partition records) right after the retirement receipt and before the rows flip; a failure leaves the rows pending under the receipt, and rerunning the same retirement finishes it. - TrainingDemand::record's second set is `settled` (trained, or withdrawn), not only trained. Test: the retire-by-card fixture records demand for a withdrawn example and another card's example; after the retire only the withdrawn one is cleared. Submit never mutates an example (no metadata writes in the trigger), so stored rows key exactly as recorded. Not built locally; CI compiles and runs it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Source review at exact 3aa8a2f: blocking failure-path gap in retirement.
Please use a strict clearing mutation (missing file may be empty; no store/unreadable/corrupt must fail), and add a retirement failure/retry fixture proving rows remain pending, damaged bytes remain intact, and unrelated demand survives after repair and retry. The successful-path fixture is useful but does not exercise this boundary. No local Rust run performed. |
…ils it with nothing flipped (Codex on #5572, card 4545eafd) record() reads leniently: a corrupt or unreadable store read as empty, the clear was a no-op that returned Ok, and the rows flipped with the withdrawn examples' reservation left behind. - TrainingDemand::clear(keys): read_strict (a missing file has nothing to clear; no store, an unreadable file or corrupt JSON is an error), then the same atomic replace. - retire_in_bucket clears through it: a failure leaves the rows pending under the receipt. Test: a corrupt demand store fails the retirement, the rows stay pending, the file keeps its bytes, and once it is repaired the same retirement finishes. Not built locally; CI decides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Source PASS at exact df6f5bd, conditional on this head's CI. The strict clear now errors on unavailable/unreadable/corrupt storage before retirement rows flip; missing-file no-op is explicit. Corrupt-store fixture checks failure, retained pending count and original bytes, then successful retry. Existing successful-path fixture checks another card's demand survives. No local Rust execution or runtime adoption claimed. |
…x read the CI failure on #5572) Retiring every row removes the bucket, so bucket_example_count is None, not Some(0); the fixture's last assertion accepts either. Production unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
FOCUS-CONTRACT (#5570): no lane reduction from a stale training-demand record. A demand entry
(#5557) cleared only when a run trained its example; a parked example returned to her bucket
and then withdrawn (retire by card or submission: a failed review, a superseding fix) kept its
demand, and with it a reservation, forever.
records) right after the retirement receipt and before the rows flip; a failure leaves the
rows pending under the receipt, and rerunning the same retirement finishes it.
settled(trained, or withdrawn), not only trained.Test: the retire-by-card fixture records demand for a withdrawn example and another card's
example; after the retire only the withdrawn one is cleared. Submit never mutates an
example (no metadata writes in the trigger), so stored rows key exactly as recorded.
Not built locally; CI compiles and runs it.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE