Skip to content

0.1.0 AP16: a pre-AP11 install can still report status and update #1575

Closed

Description

@jparker2006

Parent

Ticket AP16 of spec #1223 (0.1.0). Size: S. Fix ticket for a real-user finding from the cross-family re-check of #1404 (orchestrator ruling, ClosedWiz #3065 comment 7026394905).

What to build

Someone who installed OpenWiz before AP11 can still check and update their install. Today, AP11's CLI-only asset allowlist is also applied to the manifest that is already installed. install status reaches it through selected(), and tools/install/pull.py applies it to the currently selected build before checking the candidate. So status refuses a working pre-AP11 install (exit 5, unknown asset role), and the update stops before it fetches the candidate. Verify an already-selected legacy manifest against an explicit legacy layout, read-only and for verification only, and keep the CLI-only allowlist for new packages and candidates. A legacy install reaches a CLI-only candidate through the normal stage and switch.

Owned paths

  • tools/install/install.py in openwizdev/OpenWiz (shared: manifest verification and selected() only)
  • tools/install/pull.py in openwizdev/OpenWiz (shared: the selected-build check only)
  • tools/install/test_pull.py in openwizdev/OpenWiz (shared: the new upgrade cases only)

Relies on: contracts/install.v1.md

Links

Acceptance criteria

  • A pre-AP11 selected build (made with the a0130bc fixture) plus a CLI-only candidate: install status exits 0 and reports the legacy build, and pull.py stage fetches and stages the candidate, then the switch completes
  • A new package or candidate with a non-CLI asset role is still refused with unknown asset role
  • A contract edit beyond a sentence on legacy verification is asked on the ticket first
  • 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

The upgrade regression, red first at 5b417da (status 5, unknown asset role), then green. Source: #1404 (comment) (R1).

Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium, other family (a fresh Opus reviewer under J224 only if Codex refuses), no helper agents. The pull request is in OpenWiz and merges through the merge queue.

Activity

  1. added this to the 0.1.0 milestone on Nov 20, 2026
  2. added
    held
    on Nov 20, 2026
  3. added
    ready-for-agent
    and removed
    held
    on Nov 20, 2026
  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: working
    harness: claude-code
    model: claude-opus-5-5
    skills: build-ticket@0.1.2
    step: Grant recorded; waiting for CI at the fixed test before the green hand-back.
    time: 2026-11-20T00:50:23Z

  6. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Scope question before hand-back.

    Found: the ticket owns selected(), but selected() lives in tools/install/install (the entry script, no .py), not in tools/install/install.py. So the owned-path list doesn't cover the file it's in. The fix needs exactly one line there: selected() calls installer.manifest_at(manifest, installer.sha(raw), target, selected=True) in place of the call without selected=True. Nothing else in that file changes.

    Everything else is on the branch room/1575-legacy-install-status-update (checkpoint bc4f6df): the red test, the explicit legacy layout in install.py (used only with selected=True), and pull.stage reading the selected build with it. Locally, with that one line added, the new upgrade test goes from red (status exit 5, unknown asset role) to green. A legacy-layout candidate is still refused with unknown asset role.

    Options:

    1. Approve the one-line selected=True edit to selected() in tools/install/install, as the bullet's selected() intends. My pick.
    2. Keep tools/install/install untouched and have manifest_at treat any file named install-manifest.json as the selected build. No edit outside the owned paths, but it infers the role from a filename, which is fragile and widens what a candidate staged under that name could pass.
    3. Split selected() into its own ticket.

    Also, for the record: no CI job runs tools/install/test_pull.py today. I'm not editing a workflow for this. The local red and green runs are the evidence, and the PR will list this under Gaps.

  7. added
    needs-info
    on Nov 20, 2026
  8. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 grant (fleet #1223), on the builder's scope question: one line in tools/install/install is granted, passing selected=True to manifest_at inside selected(). The ticket names selected() as owned, but it lives in that file rather than install.py, so this is the supporting edit the fix can't work without. Record it in the PR. The one sentence on legacy verification in contracts/install.v1.md is within the acceptance line, so keep it to that sentence. The CI gap (no job runs tools/install/test_pull.py) stays a gap: list it in the PR and don't edit the workflow. The reviewer runs the file directly. needs-info is off.

  9. removed
    needs-info
    on Nov 20, 2026
  10. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Update to the F4 grant above, under standing ruling 7013668361 (J87 planner): the builder may add ONE line running tools/install/test_pull.py to an existing CI job (for example the release:install unit step), with no new job, trigger, permission or secret, listed under the PR's Rulings. If that file's existing tests fail in CI, the line comes out and the gap stays, explained in the PR.

  11. added 2 commits that reference this issue on Nov 20, 2026
  12. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    One more record needed, for the CI owned-paths check on #1611.

    Found: the check only accepts a grant from a record author whose text matches F4 supporting edit granted (or edits granted), followed by the backticked paths. The answer above says "F4 grant", so CI still reports two files as outside the owned paths:

    • tools/install/install: the granted one line in selected().
    • contracts/install.v1.md: the one legacy-verification sentence from acceptance criterion 3.

    My GitHub account is a record author, so I won't write that grant myself.

    Options:

    1. A record author posts one comment here starting F4 supporting edits granted:, naming tools/install/install and contracts/install.v1.md, each in backticks. My pick.
    2. Drop the contract sentence, and grant only tools/install/install in that form.

    Nothing else is open. The changes failure (unclassified evidence paths) is fixed at 83ab283.

  13. added
    needs-info
    on Nov 20, 2026
  14. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edits granted: tools/install/install (one line: selected=True passed to manifest_at in selected()), contracts/install.v1.md (one sentence on read-only verification of a legacy selected build, within this ticket's acceptance line).

    This restates in the check's form the fleet #1223 grants already on this ticket (7026678406 and 7026686819).

  15. removed
    needs-info
    on Nov 20, 2026
  16. added a commit that references this issue on Nov 20, 2026
  17. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    agent: reviewer
    state: working
    harness: Codex
    model: Sol 6.2 Medium
    skills: review-ticket@0.1.2, launch-fleet@0.1.2
    step: Pinned the exact head and verified all four required checks.
    time: 2026-11-20T01:06:22Z

  18. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: merge verified: OpenWiz #1611 merged through the merge queue at its approved head 12ef11e (merge commit c0f1e74, whose second parent is the approved head), on Codex APPROVE 7027191284 (cross-family). Polish is in #1652.

    launch-fleet: archived

  19. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: 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