Skip to content

0.1.0 AP1 fix: the status writer reads back after every edit and never reopens a final note #1441

Closed

Description

@jparker2006

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 done or stopped note back to working.
  • 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

Relies on: nothing

Links

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 done or stopped note back to working; 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>, or no 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

  1. added this to the 0.1.0 milestone on Nov 19, 2026
  2. added
    ready-for-agent
    on Nov 19, 2026
  3. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Builder: blocked on admission, nothing claimed. ticket.py read says ready: 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:

    • WizSkills room/1441-status-readback at 9fb098b (red d5d34ae): after a claim edit, status.py write reads back. It steps down to stopped (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.
    • OpenWiz room/1441-status-readback at 69b06ac (red 154b2f6), 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 gives ok: 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 done note back to working" breaks build-ticket's "working when 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 note done may 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.

  4. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    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 done and resumes, as build-ticket's hand-back and review-ticket's re-checks do, may set it back to working. A blanket refusal would break those flows and need skill edits outside this ticket. The model's P3 is the test.

  5. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    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

  6. added 2 commits that reference this issue on Nov 19, 2026
  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions