Skip to content

0.1.1 MD2: openwiz models show, list and set #1804

Closed

Description

@jparker2006

Parent

Ticket MD2 of spec #1802 (0.1.1). Size: M.

What to build

openwiz models show, openwiz models list and openwiz models set, for agents and people, as the models contract says. A shared reader for the Models table (with the older-tables fallback) lives in the core library, so the fleet tick can use it too. show prints each role's harness, model and effort and what it follows. list keeps today's one cloud status read and adds the recommended choice per role; --save writes the snapshot. set <role> ... checks the choice against that read, refuses an unoffered one with the list it read, warns on a same-family reviewer and builder, rewrites the role's row (and the older tables' matching rows while they exist) and the snapshot, and prints exactly what changed, so the agent can commit it. Plain openwiz models keeps working as today.

Owned paths

  • crates/cli/src/models.rs
  • crates/cli/src/lib.rs (shared: only the models help and exit-code lines)
  • crates/core/src/models/ (new: the Models table reader and writer)
  • crates/core/src/lib.rs (shared: only the models module line)
  • tests/cli-agent/ (only new models tests and their catalogue rows)

Relies on: contracts/models.v1.md, contracts/models.v1.schema.json, contracts/cli.v1.md

Links

Acceptance criteria

  • show, list, list --save and set pass every models contract fixture with a fake cloud status read, red first
  • set refuses an unoffered model, naming what was offered, and changes nothing
  • set warns when the reviewer and builder share a family
  • With both table forms present, set leaves them agreeing on every role
  • Plain openwiz models and --json print what they print today
  • Merge gate: nothing merges until the 0.1.0 release branch is cut and RL1 (0.1.0 RL1: OpenWiz 0.1.0 ships before Demo Day: branch, changelog, gates and publish #1671) records it; a WizSkills pull request also waits for WizSkills v0.2.0 to be tagged. Build and review now.
  • 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

P2 and P5: the CLI agent tests, red first.

Activity

  1. added this to the 0.1.1 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: start checked, branch room/1804-models-show-list-set
    F6 prepare: MD1 approved at 4a3cbea, not merged

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: claude-code
    model: claude-opus-5-5
    skills: build-ticket@0.2.1
    step: Merged main and fixed final-check R1, R5 and R6 on PR 1910, red first, green at 3d35d12; waits for CI and the check.
    time: 2026-11-21T16:54:57Z
    pr: #1910

  6. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Builder question (MD2): the help --agent catalogue rows for models.show, models.list and models.set.

    contracts/models.v1.md says these three forms are absent from help --agent's catalogue until MD2 merges. The catalogue is crates/cli/src/agent-catalogue.json, with its literal matrix in tests/cli-agent/main.rs (cp1_catalogue_covers_the_public_command_flag_and_schema_matrix). This ticket owns neither the catalogue file nor the cp1 matrix rows, so the forms ship in human --help only.

    Options:

    1. Widen this ticket to add the three catalogue rows (effects, sources, results, exits from the contract's CLI rows) and their cp1 matrix rows.
    2. Leave them out here and file a small follow-up that adds them once this merges.

    My pick: 1, so the forms are discoverable by agents from the release they ship in. The pull request hands back without them, as a stated gap; it stays green either way.

  7. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: granted supporting edit: option 1 of 7038877332: the three models.show, models.list and models.set rows in crates/cli/src/agent-catalogue.json (effects, sources, results and exits exactly as contracts/models.v1.md's CLI rows say) and their matching cp1 matrix rows in tests/cli-agent/main.rs; only those rows, no other entry changes; models.v1.md says the forms join help --agent when MD2 merges, so the ticket ships incomplete without them; list both uses in the PR's supporting edits

  8. added 2 commits that reference this issue on Nov 20, 2026
  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for MD2: contracts/models.v1.md, only the line saying the models forms are absent from help --agent until MD2 merges, reworded to say they are listed there. A wording-only change: no route, field, report or rule changes.

  10. 10 remaining items

  11. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for MD2: Cargo.toml (the workspace dependency line only), crates/core/Cargo.toml (one dependency line) and Cargo.lock, to add the rustix crate at one exact pinned version with only the features the directory-anchored write needs, under Jake's standing rule J187 (small, pinned, licence-checked dependencies over hand-rolled code). The PR records its name, version, licence, size and why. This replaces ruling 16's Linux-only refusal: openwiz models set and models list --save use the same race-safe directory-anchored write on macOS and Linux.

  12. added a commit that references this issue on Nov 20, 2026
  13. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Builder question (MD2, J87 rustix): the F4 grant 7043920184 doesn't cover the paths this change needs.

    rustix works. The =1.1.6 pin with default-features = false, features = ["fs", "std"] (licence Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) gives the held-folder write through openat, fstatat, fchmod, renameat and unlinkat, with no unsafe code in our crates. Locally, all 28 models tests pass, including the R1, R5 and new J87 tests. cargo check -p openwiz-cli passes for aarch64-apple-darwin and x86_64-apple-darwin. The J87 red is pushed at d9fa779 (docs/evidence/1804/red-run-j87.txt). The green is ready but not pushed, because three of the paths it needs are outside the grant:

    1. crates/cli/Cargo.toml, not crates/core/Cargo.toml. The write is in crates/cli/src/models.rs, and AGENTS.md says crates/core does "No I/O". Putting rustix in core would mean moving file I/O into core, against that rule. The CLI's manifest needs one line: rustix.workspace = true.
    2. tests/checks/dependencies.rs, a protected guard. APPROVED_DIRECT is ["serde", "serde_json"], so serde_and_serde_json_are_the_only_direct_dependencies fails unless "rustix" is added (and the test is renamed or its wording changed to match).
    3. tests/checks/dependencies.md, the approval ledger. dependencies_md_records_every_locked_crate_with_its_checksum needs one row per locked crate. The lock gains 7: rustix 1.1.6 (direct), bitflags 2.13.2, linux-raw-sys 0.12.1 (Linux backend), libc 0.2.191 and errno 0.3.15 (macOS backend), and windows-sys 0.61.2 and windows-link 0.2.1 (locked for errno's Windows target only, never built here). The ledger's intro says "no other crate is approved", which would need updating too.

    Options:

    • A. Grant Cargo.toml (workspace line), crates/cli/Cargo.toml (one line), Cargo.lock, the APPROVED_DIRECT line (plus the test's name or wording) in tests/checks/dependencies.rs, and the 7 rows plus intro sentence in tests/checks/dependencies.md. I push the green this round.
    • B. Keep core's manifest as granted and move the held-folder writer into crates/core/src/models/. This breaks core's "No I/O" rule and still needs grant A's two tests/checks paths.
    • C. Fall back as you described (ruling 16 stays, with a polish ticket for rustix).

    My pick: A. Note that the macOS backend brings in libc as a transitive crate. Our crates still use no libc and no unsafe code. I'll stop here until you answer.

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

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for MD2, widening 7043920184: crates/cli/Cargo.toml (the one rustix line, in place of crates/core/Cargo.toml, since core does no I/O), tests/checks/dependencies.rs (add rustix to the direct-dependency allowlist, nothing else) and tests/checks/dependencies.md (one checksummed ledger row for each new locked crate: rustix, bitflags, linux-raw-sys, libc, errno and the two Windows-only crates), under Jake's standing rule J187 for small, pinned, licence-checked dependencies. rustix stays at =1.1.6 with features fs and std only, and no unsafe code goes into our crates. Any other change to the guard stays out.

  16. added a commit that references this issue on Nov 20, 2026
  17. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for MD2, widening 7044029754: tests/checks/dependencies.md, also its intro sentence that names the approved direct dependencies, updated to add rustix (J187). Nothing else in that sentence changes.

  18. removed
    needs-info
    on Nov 20, 2026
  19. added 4 commits that reference this issue on Nov 20, 2026
  20. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: cost unknown (PR #1910): no cost command

  21. jparker2006 commented on Nov 21, 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