Repository navigation
Description
Parent
Ticket OB10 of spec #1356 (0.1.0). Size: S. Fix ticket from the cross-family re-check of OB5's merge (OpenWiz #1406, comment 7026449467, finding 2), under the orchestrator's ruling that each real-user re-check finding gets one small fix ticket.
What to build
openwiz init reports a label as applied only when the label really exists. Today it treats every HTTP 422 on a label POST as "created concurrently" and records the effect as applied without reading the label back, so a 422 that created nothing leaves the openwiz label (or a records label) missing while init reports applied and opens the brain proposal. On a 422, read the label back: present means applied (and still never changes a user's existing label), absent means the effect failed and init says so.
Owned paths
tools/install/setup/init.pyand its tests (shared: the label effects only)
Relies on: nothing
Links
- 0.1.0 OB5: the one line installs the skills into the user's harness and the small openwiz command #1361 real: the labels init creates, which this fixes (merged as #1361: 0.1.0 OB5: the one line installs the skills into the user's harness and the small openwiz command #1406)
Acceptance criteria
- A 422 that created nothing makes init report the label effect as failed and not open the brain proposal; a test reproduces the re-check's fixture scenario, red first
- A 422 where the label now exists still counts as applied, and a second run still writes nothing
- Existing user labels are still never changed or deleted
- 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>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first. - Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.
Proof
O1: the init suite and the setup-onboard contract suite.
Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium (cross-family; a fresh Opus J224 reviewer only if Codex refuses), no helper agents.
Activity
jparker2006 commentedon Nov 20, 2026
launch-fleet: started
jparker2006 commentedon Nov 20, 2026
agent: builder
state: done
harness: claude-code
model: claude-opus-5-5
skills: build-ticket@0.1.2
step: Handed back PR 1605: a label 422 is read back before it counts as applied.
time: 2026-11-20T00:41:59Z
pr: #1605
jparker2006 commentedon Nov 20, 2026
Grant (F4, 2026-11-20) for the owned-paths failure on PR #1605 at 35065e5 (the ticket owns "
tools/install/setup/init.pyand its tests"; the check cannot resolve "its tests" to paths).tools/install/tests/init/test_init.py, only the new tests for a refused 422 and a concurrently created label.tools/install/tests/init/fake_gh.py, only the newtakenmode those tests use. Change no existing mode or behaviour.Why: those are init's existing test file and its fake GitHub, and the ticket's red-first proof runs only from there. No CI edit, no dependency.
Continue: get a fresh CI run at your head (one FULL re-run, or your next commit) and hand back a green head.
jparker2006 commentedon Nov 20, 2026
F4 supporting edit granted:
tools/install/tests/init/test_init.pytools/install/tests/init/fake_gh.pyLimited to the new tests for a refused 422 and a concurrently created label, and the fake GitHub's new taken mode. This restates grant 7026792786 in the form the owned-paths check reads; nothing else changes.
#1595: green: evidence note that the test-path grant was restated; co…
jparker2006 commentedon Nov 20, 2026
launch-fleet: archived
Merged #1605 at 50d3ec9 (merge 03e1ee1, verified on main, 01:46Z). Gates: review claim #1605 (comment); exact-head CI green; APPROVE #1605 (comment) (Codex, cross-family); queued via enqueuePullRequest with expectedHeadOid (record 7027568981); plan graph #1356 revision 6. Builder and reviewer archived.