Repository navigation
Description
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.rscrates/cli/src/lib.rs(shared: only themodelshelp and exit-code lines)crates/core/src/models/(new: the Models table reader and writer)crates/core/src/lib.rs(shared: only themodelsmodule line)tests/cli-agent/(only newmodelstests and their catalogue rows)
Relies on: contracts/models.v1.md, contracts/models.v1.schema.json, contracts/cli.v1.md
Links
- 0.1.1 MD1: the models contract: three roles in one table, first #1803 real: the Models table form, the snapshot and the three reports, with their fixtures
Acceptance criteria
-
show,list,list --saveandsetpass every models contract fixture with a fakecloud statusread, red first -
setrefuses an unoffered model, naming what was offered, and changes nothing -
setwarns when the reviewer and builder share a family - With both table forms present,
setleaves them agreeing on every role - Plain
openwiz modelsand--jsonprint 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.0to 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>, 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
P2 and P5: the CLI agent tests, red first.
Activity
jparker2006 commentedon Nov 20, 2026
launch-fleet: start checked, branch room/1804-models-show-list-set
F6 prepare: MD1 approved at 4a3cbea, not merged
jparker2006 commentedon Nov 20, 2026
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
jparker2006 commentedon Nov 20, 2026
Builder question (MD2): the
help --agentcatalogue rows formodels.show,models.listandmodels.set.contracts/models.v1.mdsays these three forms are absent fromhelp --agent's catalogue until MD2 merges. The catalogue iscrates/cli/src/agent-catalogue.json, with its literal matrix intests/cli-agent/main.rs(cp1_catalogue_covers_the_public_command_flag_and_schema_matrix). This ticket owns neither the catalogue file nor thecp1matrix rows, so the forms ship in human--helponly.Options:
cp1matrix rows.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.
jparker2006 commentedon Nov 20, 2026
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
#1804 MD2 red: the cp1 matrix names the models show, list and set cat…
#1804 MD2 green: models show, list and set join the help --agent cata…
jparker2006 commentedon Nov 20, 2026
F4 supporting edit granted (planner), for MD2:
contracts/models.v1.md, only the line saying themodelsforms are absent fromhelp --agentuntil MD2 merges, reworded to say they are listed there. A wording-only change: no route, field, report or rule changes.10 remaining items
jparker2006 commentedon Nov 20, 2026
F4 supporting edit granted (planner), for MD2:
Cargo.toml(the workspace dependency line only),crates/core/Cargo.toml(one dependency line) andCargo.lock, to add therustixcrate 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 setandmodels list --saveuse the same race-safe directory-anchored write on macOS and Linux.#1804 MD2 red: J87, a writer refused off Linux and routed through /pr…
jparker2006 commentedon Nov 20, 2026
Builder question (MD2, J87 rustix): the F4 grant 7043920184 doesn't cover the paths this change needs.
rustix works. The
=1.1.6pin withdefault-features = false, features = ["fs", "std"](licenceApache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) gives the held-folder write throughopenat,fstatat,fchmod,renameatandunlinkat, with no unsafe code in our crates. Locally, all 28modelstests pass, including the R1, R5 and new J87 tests.cargo check -p openwiz-clipasses foraarch64-apple-darwinandx86_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:crates/cli/Cargo.toml, notcrates/core/Cargo.toml. The write is incrates/cli/src/models.rs, and AGENTS.md sayscrates/coredoes "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.tests/checks/dependencies.rs, a protected guard.APPROVED_DIRECTis["serde", "serde_json"], soserde_and_serde_json_are_the_only_direct_dependenciesfails unless"rustix"is added (and the test is renamed or its wording changed to match).tests/checks/dependencies.md, the approval ledger.dependencies_md_records_every_locked_crate_with_its_checksumneeds 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.191anderrno 0.3.15(macOS backend), andwindows-sys 0.61.2andwindows-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:
Cargo.toml(workspace line),crates/cli/Cargo.toml(one line),Cargo.lock, theAPPROVED_DIRECTline (plus the test's name or wording) intests/checks/dependencies.rs, and the 7 rows plus intro sentence intests/checks/dependencies.md. I push the green this round.crates/core/src/models/. This breaks core's "No I/O" rule and still needs grant A's twotests/checkspaths.My pick: A. Note that the macOS backend brings in
libcas a transitive crate. Our crates still use nolibcand no unsafe code. I'll stop here until you answer.jparker2006 commentedon Nov 20, 2026
F4 supporting edit granted (planner), for MD2, widening 7043920184:
crates/cli/Cargo.toml(the onerustixline, in place ofcrates/core/Cargo.toml, since core does no I/O),tests/checks/dependencies.rs(addrustixto the direct-dependency allowlist, nothing else) andtests/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.rustixstays at=1.1.6with featuresfsandstdonly, and no unsafe code goes into our crates. Any other change to the guard stays out.#1804 MD2 green: J87, the held-folder write through rustix on Linux a…
jparker2006 commentedon Nov 20, 2026
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 addrustix(J187). Nothing else in that sentence changes.#1804 MD2 green: J87, the dependency ledger's intro names rustix
#1804 MD2 green: drop the comments this change added, for main's comm…
#1804 MD2 red: R1, R5 and R6, a moved checkout, a replaced file's gro…
#1804 MD2 green: R1, R5 and R6, the checkout held before any read, a …
jparker2006 commentedon Nov 21, 2026
launch-fleet: cost unknown (PR #1910): no cost command
jparker2006 commentedon Nov 21, 2026
launch-fleet: archived