Skip to content

0.0.16 T5: make visibility-aware openwiz init real #635

Closed

Description

@jparker2006

Parent

Ticket T5 of confirmed spec #2920 (0.0.16).

What to build

Implement the real installed openwiz init command as a thin CLI over the packaged setup runtime, following the existing engine wrapper pattern. Resolve the selected GitHub repository and visibility with current positive evidence. A private repository gets its human-readable brain in its factory folder; public code gets an auto-created private companion and a safe link. Ask no placement question, report the location in one line and preserve a setting to change it later.

Use the existing GitHub issue/sub-issue/blocker model for specs and tickets and a factory label; put grills, decisions and one logical settings record in the private brain. Propose all brain-file changes through visible PRs. Disclose creation/changes under the current explicit effect authorization, with durable operation IDs and fingerprints. Reconcile existing companions, links and pending PRs before another effect. Never store credentials, machine details, runtime state or thread identifiers in repository content.

Make the current project-settings consumer understand the new brain reference while preserving existing projects. Work against the contract-first interface; sign-in can already be supplied by the existing verified gh login, so this ticket does not need T2 to implement or demonstrate init.

Owned paths

  • tools/install/setup/init.py
  • tools/install/tests/init/
  • crates/cli/src/init.rs
  • crates/cli/src/main.rs (shared) only init command dispatch
  • crates/cli/src/lib.rs (shared) only init module/help entries
  • crates/cli/src/agent-catalogue.json (shared) only init command catalogue entries
  • tests/cli-agent/init.rs
  • tests/cli-agent/main.rs (shared) only init test module registration
  • tools/install/setup/setup.py (shared) only check_project and brain-settings resolution; not auth checks or prepare
  • tools/install/setup/store.py (shared) only brain-reference fields/validation; not identity selection
  • crates/store/src/setup.rs (shared) only brain-reference decoding/validation; not identity selection
  • tools/release/build_products.py (shared) only init.py runtime packaging row
  • tools/install/install.py (shared) only init.py required-runtime row
  • tools/install/test_install.py (shared) only init.py asset fixture/case
  • tools/install/fixture_bundle.py (shared) only init.py fixture asset row
  • tools/release/test_package.py (shared) only init.py packaging case
  • crates/service/src/bootstrap.rs (shared) only init.py required-asset row/count
  • changes/setup-onboard-init.md
  • tests/checks/skills.rs (shared) only the setup_onboard_init check registration
  • .github/actions/docs-only/run.py (shared) only setup_onboard_init test-selection registration
  • .github/actions/docs-only/plan.py (shared) only setup_onboard_init test-selection registration

Relies on: contracts/setup-onboard.v1.md, contracts/setup-onboard.v1.schema.json, contracts/cli.v1.md, contracts/setup.v1.md, contracts/install.v1.md, contracts/open-development.v1.md, contracts/plan.v1.md

Links

Acceptance criteria

  • Installed init has text/JSON/help/catalogue behavior and reaches the packaged verified helper without source compilation or a production fixture override.
  • Positive private visibility selects the in-repository brain; positive public visibility creates/reuses a verified private companion and safe link. Unknown/ambiguous visibility or unsafe companion naming refuses before private content is written.
  • Only human-readable brain files and the established issue/label relations are proposed through visible PRs. Secret/real-runtime material is never committed, and no placement question is added.
  • Preview/disclosed effects, authorization, once-only provider writes and resume are tested for both visibilities, denied creation, conflicting companions, lost replies and existing PRs; repeat init never duplicates or overwrites owner work.
  • One setting permits a later location change through the same safe proposal rules. Existing project settings and new private-brain references both pass their positive checks.
  • Focused runtime and thin-CLI tests start red, and installed packaging checks require init.py. A fixture pass never claims real GitHub creation.

Proof

P1/P4/P5. Outside-in recording tests for both visibility branches, private routing and PR/issue effects, with effect counts and retained-content comparisons; installed CLI/package integration red first.

Validation and authority

Run the affected checks only, plus format/type checks for touched code. Use the existing CI selection/registration rows; do not add a new project dependency or skip a missing required tool silently. Fixtures contain synthetic values only. Raw live/contributor/account evidence and exact decision words stay private; public results use verified private-comment pointers. New visible UI uses the existing image skill before implementation.

This graph is written for approval only. No ready label, builder start, live/account/machine/secret action, external posting, spending, merge, release or publication is authorized by this unapproved ticket. After graph approval, the project's merge rules apply to implementation; live work still needs T8's exact kit authorization. A closed blocker without its required verified merge/completion evidence does not release work. New scope or changed interfaces return through plan-graph change control.

was ClosedWiz #2943

Activity

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

    @jparker2006
    MemberAuthor

    launch-fleet: noted #699

    RN6’s repository-capitalisation-only contract change is pre-released for this ticket under C2. Consumer scope, blocker meaning and owned paths are unchanged; no ticket edit or new approval cutoff is needed. This acknowledges/releases only a #699-triggered contract hold, not any independent audit, needs-info, ordering or live gate.

    Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6891382510

  4. added
    held
    and removed
    ready-for-agent
    on Nov 15, 2026
  5. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: held for #644: contract changed, re-approve. contracts/cli.v1.md, contracts/setup.v1.md changed in #644.

    T1 is verified merged into main. Its optional identity/brain fields, selected-identity ready rule and pinned init/receipt seams affect existing relied-on contracts. This is the mechanical consumer hold required by launch-fleet, not an assertion that T1 failed review. The current approved graph bodies, paths and dependency edges are unchanged; the prepared re-approval request is on spec #625. The #699 C2 release covers only its capitals-only change, not this #644 interface delivery. No independent hold or live authorization is released.

  6. added
    ready-for-agent
    and removed
    held
    on Nov 15, 2026
  7. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/635-0-0-16-t5-make-visibility-aware-open-ndip

    Checkpoint branch verified at 66874e1. The protected P8(a) process-start ruling remains pending; this is not a ready PR or green hand-back. No reviewer was started.

  8. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    Builder question: exact init rows in the shared tests/cli-agent/main.rs catalogue test.

    Ticket #635 owns crates/cli/src/agent-catalogue.json (only init entries) and tests/cli-agent/main.rs (shared) "only init test module registration". The existing catalogue test in that file (help --agent flag matrix) asserts commands.len() == matrix.len() and the exact command order, and its form map panics on an unmapped form. Adding the required init catalogue entries (acceptance: "Installed init has text/JSON/help/catalogue behavior") therefore fails that test unless init's own rows are added there.

    Smallest change, init lines only, no other ticket's rows touched:

    @@ flag matrix (after github.token)
    +        ("init", "--repository --state-dir --json"),
    +        ("init.apply", "--repository --state-dir --json --yes --operation"),
    @@ example parser map
    -                "engine" => {}
    +                "engine" | "init" => {}
    @@ form map
    -            "engine.preview" | "engine.activate" | "engine.status" => continue,
    +            "engine.preview" | "engine.activate" | "engine.status" => continue,
    +            "init" | "init.apply" => continue,
    @@ ordered command names (after "github.token")
    +            "init",
    +            "init.apply",

    Options: (a) treat these four init rows as part of the shared file's init registration (recommended: same intent, init-only lines, no other ticket's rows, no assertion weakened); (b) widen the owned-path note explicitly; (c) drop catalogue entries (contradicts the acceptance criterion). I am continuing all other owned work meanwhile and will not edit those lines until answered.

  9. added
    needs-info
    on Nov 15, 2026
  10. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: option (a) granted. The four init-only edits shown above in tests/cli-agent/main.rs (two flag-matrix rows, init in the example parser map, the init and init.apply form-map line, and the two ordered command names) count as this ticket's init registration in that shared file. No other ticket's rows change and no assertion is weakened. Record the grant in the PR's Facts.

  11. 7 remaining items

  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Fleet update: J99's exact init P8(a) exception was read back and sent to the retained #635 builder; delivery accepted. The brief preserves the fixed sibling runtime, absolute isolated Python, cleared environment with only the six named variables, null stdin and init-only guard additions. PR Facts must cite the grant and actual checks. No live behavior, green hand-back or review is inferred, and independent gates remain.

  13. added 2 commits that reference this issue on Nov 16, 2026
  14. removed
    needs-info
    on Nov 16, 2026
  15. added a commit that references this issue on Nov 16, 2026
  16. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #879

    The retained builder received the change to contracts/cli.v1.md in merged PR #879 and the instruction to check its work against the current contract; delivery accepted. The observed diff changes provenance wording. No product-scope expansion or main integration is implied. The separate unstarted #636 hold awaits actual C2 assessment/re-approval.

  17. added 3 commits that reference this issue on Nov 16, 2026
  18. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Reviewer question: #875 at b1bc3c6
    Does existing authority cover the two newly tracked Python cache files listed below at this head?

    • tools/install/setup/__pycache__/setup.cpython-311.pyc
    • tools/install/setup/__pycache__/store.cpython-311.pyc

    Both were added by fix commit a087d627e3998ca1736ef6f005d57fe334428c2b. The ticket names individual Python source files; PR Facts do not list these generated binaries. The verified supporting grants cover the specified registry rows, changelog, evidence, synthetic fixture answers and byte-identical carried copies, which does not establish authority for these bytecode files. Please give an exact scope ruling; no new implementation defect is asserted here.

    R1–R3 closure has been reproduced on synthetic providers. No re-check verdict has been posted. This remains the same ordinary re-check and will resume on an Orchestrator answer: #875 at b1bc3c66edfbd0df1acae0c77e670f89e92a3601 answer; no review-round reset or live acceptance is implied.

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

    @jparker2006
    MemberAuthor

    launch-fleet: archived

    #635 closed through merged PR #875. Approved head 31dd55f83ccffef816e6fe56467d32bbd3e3ae4c merged into the default branch main as eb303b39343be9cd779c4c13bb87741f58d582f9; default-branch ancestry and the closing-PR relationship were verified. Its retained builder and reviewer are archived. Exact-head APPROVE: #875 (comment) . The one review plus one re-check is complete. Evidence remains synthetic/source and independent review; later live gates are separate.

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