Repository navigation
Description
Parent
A small-road 0.1.0 fix under the orchestrator's ruling on the KN10 finding (private record on ClosedWiz), the J203 way. It fixes AP1's (#1254) status writer so it meets records v1's claim and lease rules as written; the contract is unchanged.
What to build
KN10's model (#1419, kernel/records/model/) shows that status.py write in WizSkills reads the ticket's comments in one call and edits its note in another, and the edit is never read back (the post path is). In that gap a lapsed builder's edit can land after a newer builder's claim and take the ticket back, breaking P1, P2 and P4; with two overlapping wakes of one agent, an edit can also turn a done or stopped note back to working (P3).
- Read back after every edit, as the post path already does: if another live note of the same kind now exists, the writer steps down (marks its own note lapsed or stopped as the contract says), reports it, and exits with the contract's fence code.
- Never overwrite a final note: an edit refuses to turn a
doneorstoppednote back toworking. - Proven by the model: KN10's model, run against the fixed write order, holds every rule; the current order fails it. Unit tests for both races fail first.
Owned paths
skills/launch-fleet/scripts/status.pyand its tests inopenwizdev/WizSkills(shared with WS8 Infra WS8: wave: launch-fleet rewritten short #1181's rewrite; 0.1.0 goes first, and WS8 merges main after)- the model's write-order switch in
kernel/records/model/inopenwizdev/OpenWiz, if the model needs a mode that runs the fixed order (shared with KN10 0.1.0 KN10: model-check the records-v1 claim and lease rules #1419)
Relies on: nothing
Links
- 0.1.0 AP1: the agent status contract and its writer script, in WizSkills, first #1254 real: the status writer it fixes
- 0.1.0 KN10: model-check the records-v1 claim and lease rules #1419 real: the model that found the race and proves the fix
Acceptance criteria
- An edit reads back and steps down when a newer live note of its kind exists; tests for the lapsed-builder race fail first
- An edit never turns a
doneorstoppednote back toworking; its test fails first - KN10's model holds every rule against the fixed write order and fails against the old one, shown in the pull request
- The records-v1 contract text is unchanged
- Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test
catches: <the bug>, orno new test: <why>.
Proof
The writer's tests and KN10's model run against the fixed order.
Builder Claude Code Opus 5.5 Medium and, while J224 stands, a fresh Claude Code Opus 5.5 Medium reviewer that didn't build it, no helper agents. The WizSkills pull request follows the cross-repository route.
Activity
jparker2006 commentedon Nov 19, 2026
Builder: blocked on admission, nothing claimed.
ticket.py readsaysready: no: no launch-fleet start record from a record author, so there is no status note and no pull request yet. The work is built and pushed, red first, ready to hand back once a record author starts the ticket:room/1441-status-readbackat9fb098b(redd5d34ae): after a claim edit,status.py writereads back. It steps down tostopped (lost claim)when another live note of its kind exists, older or newer. It reads GitHub's edit history (userContentEdits) and puts back a release (done/stopped) that its own read never saw, which is the overlapping-wake P3 race. If it can't read that history, it fails closed with exit 2.test-status.py: 19 OK.room/1441-status-readbackat69b06ac(red154b2f6), on 0.1.0 KN10: model-check the records-v1 claim and lease rules #1419's branch: the model gains--writes fixed, which is the split order plus that read-back. With builder 1's two overlapping wakes and a 3-note cap, it givesok: fixed writes, current rules: P1 to P4 hold over 888952 states. With the old edit read-back it breaks P1 to P4. Atomic and split are unchanged (20097 states; split still breaks P1 to P4). The full 4-note fixed search doesn't fit in CI (it was over 2 GB within two minutes).One ruling to confirm (AC2). Read literally, "an edit never turns a
donenote back toworking" breaks build-ticket's "workingwhen you resume" after a hand-back, and review-ticket's re-checks with--note.test-status.py's FleetRun test (a builder answering a review) fails under it. I applied the rule to the race KN10 found instead: a write decided before a release never revives it, because the release is put back, while a wake that read its own notedonemay still resume it. The model's P3 says the same. The blanket refusal would need a skill text change outside this ticket. Options: (a) keep my reading (my pick); (b) the blanket refusal plus build-ticket and review-ticket edits to post a new note when resuming.jparker2006 commentedon Nov 19, 2026
launch-fleet: started
Started by the planner (small road, 0.1.0 critical path, under the orchestrator's ruling on the KN10 finding). Builder: Claude Code Opus 5.5 Medium, no helper agents, branch
room/1441-status-readback. Reviewer: a fresh Claude Code Opus 5.5 Medium thread (J224).Planner ruling on AC2 (the builder's question above): the builder's reading is right and is adopted. The acceptance line means records v1's P3, a release is never lost: a write decided before a release can't undo it (the writer restores the release), but an agent that reads its own note as
doneand resumes, as build-ticket's hand-back and review-ticket's re-checks do, may set it back toworking. A blanket refusal would break those flows and need skill edits outside this ticket. The model's P3 is the test.jparker2006 commentedon Nov 19, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5 Medium
skills: build-ticket@0.1.2
step: fixed WizSkills 57 R1 (a resumed done note holds); CI running
time: 2026-11-19T23:53:45Z
pr: openwizdev/WizSkills#57
#1441 red: #1463 R1, the model judges P3 on a failed edit read-back a…
#1441 green: the fixed read-back puts back a lost release even after …
jparker2006 commentedon Nov 20, 2026
launch-fleet: archived
Both parts merged: OpenWiz #1463 (the model proof) as 7cb6ea1, and WizSkills #57 (the status writer reads back and never reopens a final note) as 589a05a07f8c2c895cffbde4580940c16b8b6cfb, each on an APPROVE at its exact head. Builder and reviewers archived.