Skip to content

0.1.0 OB10: openwiz init reports a label applied only when it exists #1595

Closed

Description

@jparker2006

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.py and its tests (shared: the label effects only)

Relies on: nothing

Links

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>, or no 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

  1. added
    held
    on Nov 20, 2026
  2. added
    ready-for-agent
    and removed
    held
    on Nov 20, 2026
  3. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Grant (F4, 2026-11-20) for the owned-paths failure on PR #1605 at 35065e5 (the ticket owns "tools/install/setup/init.py and its tests"; the check cannot resolve "its tests" to paths).

    1. tools/install/tests/init/test_init.py, only the new tests for a refused 422 and a concurrently created label.
    2. tools/install/tests/init/fake_gh.py, only the new taken mode 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.

  6. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted: tools/install/tests/init/test_init.py tools/install/tests/init/fake_gh.py

    Limited 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.

  7. added a commit that references this issue on Nov 20, 2026
  8. added this to the 0.1.0 milestone on Nov 20, 2026
  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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.

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