Skip to content

0.1.1 MD6: the app's Models page and its Change button #1808

Done
openwizdev/WizSite
#84

Description

@jparker2006

Parent

Ticket MD6 of spec #1802 (0.1.1). Size: M. In openwizdev/WizSite.

What to build

A Models page in openwiz.dev/app. It reads the picked repository's docs/agents/fleet.md and the offered-models snapshot with the app's existing GitHub reads, and shows the Orchestrator, Builder and Reviewer roles (harness, model, effort) and what the small builder and fixer follow. Each role has a Change button: a picker of the snapshot's choices, the recommended one marked and the read time shown, then the exact line for the user's agent, shown and copied in one tap. With no snapshot, the page says how to make one (ask your agent to run openwiz models list --save). The app stays read-only. It works on a phone and a laptop, in the app's design system.

Owned paths

  • app/pages/models.js in openwizdev/WizSite (new)
  • app/index.html in openwizdev/WizSite (shared: only the page's script line)
  • app/data.js in openwizdev/WizSite (shared: only the two new file reads)
  • the Models page tests and fixtures under tests/ in openwizdev/WizSite

Relies on: contracts/models.v1.md

Links

Acceptance criteria

  • The page shows each role from the one-table and five-table fixtures, red first
  • Change gives the exact contract line for the picked choice, and only offers the snapshot's choices, red first
  • With no snapshot, or a failed read, the page says what to do and offers no made-up choice
  • Phone and laptop screenshots in the pull request
  • 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

P6: WizSite page tests, red first, and the screenshots.

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 openwizdev/WizSite room/1808-models-page
    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.0
    step: Merged WizSite main (team check fix) and handed back at bbfd5cc for the re-check.
    time: 2026-11-22T09:56:20Z
    pr: openwizdev/WizSite#84

  6. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Builder question, WizSite room/1808-models-page at 390bb2f7c7cdf09c75e16daa7ea6e34a6e65b6ea.

    A new app page ships only when two registries outside this ticket's owned paths list it:

    1. build.mjs: the app list of fingerprinted app files. Without app/pages/models.js there, dist/ has no Models page and index.html's script line points at nothing.
    2. scripts/check.py: APP_SCRIPTS, which npm run check and npm test compare with the build output (145 checker tests fail without it).

    Each is one entry, 'app/pages/models.js', in this ticket's own line, in the same order as index.html. The branch carries both, so the head is buildable and reviewable.

    Also, under the fleet's rule that builders may add their own tests to an existing CI job: one step in .github/workflows/site.yml's site job runs node --test tests/models-page.test.mjs (no new trigger, permission, secret or job).

    Options: (a) approve both entries as supporting edits for app/pages/models.js; (b) widen the owned paths to those two lines; (c) leave them to another ticket, which keeps the page unbuilt. My pick: (a).

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

    @jparker2006
    MemberAuthor

    launch-fleet: granted supporting edit: option (a) of 7038940805, in openwizdev/WizSite: one 'app/pages/models.js' entry in build.mjs's app list and one in scripts/check.py's APP_SCRIPTS, in index.html's order; no other change to either file; without them the page is not built and the checker fails; list both uses in the PR's supporting edits

  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for MD6: the WizSite CI workflow under .github/workflows/ in openwizdev/WizSite, exactly one new step in an existing job that runs only MD6's own Models page test file: no new job, trigger, permission or secret.

  10. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Builder question, WizSite room/1808-models-page, after ac54894.

    The shell draws each page's navigation icon with OW.ui.icon(page.icon), whose paths live in app/ui.js's ICONS, outside this ticket's owned paths. Today app/pages/models.js wraps OW.ui.icon at load to supply its own models path (it loads before shell.js and palette.js, which read it).

    One line in app/ui.js would replace that wrap: a models entry in ICONS (models: 'm12 3 9 5-9 5-9-5ZM3 12l9 5 9-5M3 16l9 5 9-5',), with the wrap removed from models.js.

    Options: (a) grant that one ICONS entry as a supporting edit for app/pages/models.js; (b) keep the wrap. My pick: (a). The hand-back carries the wrap until this is answered, stated in its Rulings.

  11. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Builder question, WizSite room/1808-models-page, after ac54894.

    npm run test:app (in scripts/app-check.mjs, outside this ticket's owned paths) pins the app's navigation to exactly three pages, so adding the Models page fails two existing checks, and with them #1573 (which reruns CI on a copy):

    1. Line 497, picker and shell: assert(... === JSON.stringify(['You', 'Specs', 'Agents']), ...) sees ["You","Specs","Agents","Models"].
    2. Line 1353, AP14 ... nothing else moves: the laptop nav box [12, 142, 239, 152] is now [12, 142, 239, 204] (one more 52 px link; brand, mark and title are unchanged).

    The fix is the expected values only: ['You', 'Specs', 'Agents', 'Models'] and nav: [12, 142, 239, 204]. No assertion is removed or loosened; both checks keep catching what they caught.

    Options: (a) grant those two expected values as a supporting edit for app/pages/models.js; (b) widen the owned paths to those two lines. My pick: (a). Every other app check (49 of 52) passes with the page. I'll hand back a green head once this is answered.

  12. 8 remaining items

  13. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #1910

  14. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #2209

  15. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #2228

  16. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #2239

  17. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder note on WizSite#84 (approved at 154d443f94ea414e75587f7676d12e4da7872837), after OpenWiz #2239 (merge 269e5f52, NC3 #2220).

    #2239 makes the snapshot's label an enum: as reported by CloudRoom; it may answer from a saved copy or Installed local harnesses with OpenWiz's current choices. The Models page at 154d443 validates the snapshot's exact pinned shape (review R3), with label the single CloudRoom constant (app/pages/models.js, LABEL in validSnapshot). So a project whose openwiz models list --save wrote a local snapshot gets "The list of offered models couldn't be read" and no choices: it fails closed, with no made-up data, but local users can't pick from the page.

    The fix is small and inside my owned paths: accept either label, plus one red-first test with a local-labelled copy of list/models-offered.json (the page already shows the label beside the read time). The copied hand-off line needs no change: with no --host, the CLI uses the project's saved host (setup.v1.md, host selection).

    A fix is a new head, so it needs a re-check of #84. Options: (a) fix it now on #84 and hand back for a re-check; (b) leave #84 at 154d443 and fix it in a follow-up; (c) accept the gap. My pick: (a). I won't push until this is answered.

  18. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: look: answered 7075910148: option (a), fix on WizSite#84 inside the owned paths (accept either snapshot label, red-first test); the --host local Change line stays with #2240

  19. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #2312

  20. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    WizSite #84 is blocked at merge commit 7b03415acd8eaa042003be491984a81e6c5f96b8. Site CI failed in npm run test:v2 at tests/v2/queue.test.mjs:174 and :197. Both assertions expect navigation lists that omit #/models, which the merged app correctly shows with the Queue switch off and on.

    The fix is to append '#/models' to both expected arrays while preserving the existing route order and assertions about the Queue switch. That file is outside #1808's owned paths and existing grants. The 19 Models tests passed locally.

  21. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #1808:

    tests/v2/queue.test.mjs in openwizdev/WizSite

    Scope: only append '#/models' to the two expected navigation arrays (lines 174 and 197 at 7b03415), keeping route order and the Queue switch assertions.

  22. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: reviewer
    state: done
    harness: Claude Code
    model: Opus 5.5 Medium
    skills: review-ticket@0.4.0
    step: re-check posted at c946678
    time: 2026-11-24T14:37:14Z
    pr: openwizdev/WizSite#84

  23. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Hand-recorded by the planner: openwizdev/WizSite#84 is approved at 48a20225 but now conflicts with main (WizSite #170 and #171 merged). A fresh Codex Sol 6.2 Medium builder in its own boat.dev sandbox merges main (a merge commit, noreply identity), gets a fresh full CI run and posts the hand-back; the planner then runs a merge-only re-check.

  24. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: done
    harness: Codex
    model: Sol 6.2 medium effort
    skills: build-ticket@0.2.2
    step: Resolved the main conflict and handed back WizSite #84 at c946678; all local checks passed and fresh CI is pending.
    time: 2026-11-24T14:07:52Z
    pr: openwizdev/WizSite#84

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