Skip to content

0.0.17 ER9: Setup and First-hour drop the engine step #873

Closed

Description

@jparker2006

Parent

Ticket ER9 of spec #786 (0.0.17).

What to build

The web view's Setup and First-hour pages, and the setup API, stop showing or reporting an engine step, so setup has no engine choice (user story 2). A target picture of the changed pages comes first, per the image skill.

Owned paths

  • crates/server/src/setup.rs (shared: the engine component)
  • crates/store/src/setup.rs (shared: the engine component)
  • contracts/setup.v1.md (shared: the engine component)
  • apps/web/src/setup.ts (shared: the engine step)
  • apps/web/src/components/Setup.tsx (shared: the engine step)
  • apps/web/src/components/FirstHour.tsx (shared with 0.0.16 0.0.16 T6: join install setup init and onboard once #636: the engine step only)
  • apps/web/test/ (shared: only the setup and first-hour engine-step cases)
  • tests/web-api/ (shared: only the setup engine-component cases)
  • changes/<this ticket>.md

Relies on: contracts/engine-retirement.v1.md, contracts/setup.v1.md

Links

Acceptance criteria

  • A target picture at phone and desktop width is on the ticket before the build
  • Setup and First-hour show no engine step, and /api/v1/setup reports no engine component; the other components are unchanged
  • The page and API tests change red first, and the kept setup cases pass unchanged
  • One changelog line
  • 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

E2: page and API tests, red first, and screenshots against the target.

Activity

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

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/873-setup-no-engine

  4. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Builder question: five path gaps, and one contract choice, before I build #873.

    What I found (at main 72374af). Dropping the engine component from GET /api/v1/setup breaks readers outside the owned paths, because each one demands exactly seven components and an engine for ready:

    Path (not owned) Why it breaks Smallest edit
    apps/web/src/api.ts (parseSetupText, SetupComponentId) Refuses any report without exactly 7 components, and refuses ready: true with engine: "unselected". The Setup and First-hour pages would show "unreadable" Accept the six ids without engine; drop engine from SetupComponentId; ready needs every non-remote_access component verified, no engine check
    contracts/setup.v1.schema.json minItems/maxItems: 7, a contains engine clause, and ready: true requires engine in cloud/local plus an engine component verified 6 items, drop engine from the id enum and both contains engine clauses, drop the ready-needs-engine rule
    contracts/fixtures/setup-onboard/cases.json (setup_views, 12 views) Validated against that schema by tools/install/tests/setup-onboard-contract/test_contract.py; every view carries an engine component Delete the engine component object from each view; each view keeps its valid value and its own reason
    apps/web/pages/setup.tsx (the Setup page itself) Shows an Engine panel ("Not selected", cost reason) and the footer "No engine or agents have been started." (screenshot at main). Setup cannot "show no engine step" without it Delete the setup-engine panel; footer "No agents have been started."; aside label "Next step". The general cost panel (SetupCost, owned) stays
    tools/install/test_setup_api.mjs Its example sends 7 components to readSetup Delete 'engine' from its id list

    The contract choice. The top-level engine and cost fields stay (cost feeds First hour's Spending line; the saved selection belongs to ER8's runtimes), but engine no longer gates ready. crates/store keeps reading an old state file's engine observation unchanged, so old files still load; the server just stops reporting it. operationName('activate_engine') stays so an old recorded operation still shows truthfully.

    Options:

    • A (recommended): grant the five edits above, exactly as described. Clean six-component form; one package ships server and page together, as setup.v1's reader rule already requires.
    • B: a compatible form: the schema and reader accept 6 or 7 components (engine optional), and the page hides an engine row. Only api.ts, pages/setup.tsx and the schema change, but it keeps dead compatibility code for a producer that no longer exists.
    • C: no grant; I build only what the owned paths allow, which cannot meet the second acceptance criterion.

    Answer in a word: A, B or C. I am making the target picture meanwhile and editing nothing outside the owned paths until this is answered.

  5. added
    needs-info
    on Nov 16, 2026
  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator

  7. added 3 commits that reference this issue on Nov 16, 2026
  8. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: the five path gaps are real and are granted for building, on option A (the clean six-component form): apps/web/src/api.ts (setup reader only), contracts/setup.v1.schema.json, contracts/fixtures/setup-onboard/cases.json, apps/web/pages/setup.tsx (the engine panel and footer only) and tools/install/test_setup_api.mjs. Removing a component from a contract's schema is an interface change, so the merge waits for the owner's answer (about 05:00Z); build and open the pull request on option A now, target picture first as the ticket says. Two cautions: #633 (0.0.16 T2) is editing the same setup reader in api.ts for the identity object, so keep your edit to the component list and the ready rule and expect to merge main in; and the top-level engine and cost fields stay as you describe.

  9. added a commit that references this issue on Nov 16, 2026
  10. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Target picture for #873 (before the build), at commit a7c636e. Small change: rows, panels and wording removed, no new screen or flow.

    State: the synthetic setup report with every connection verified and phone access unknown, the state where the engine step used to show. Intended viewports 1440 and 390 CSS px. Brief, content packet, prompts and the main reference screenshots: docs/evidence/873/target/.

    What changes: Setup lists six components (no Engine row), drops the Engine panel, says "Connections verified. Next, give one small idea to the OpenWiz onboarding skill. Nothing starts without your approval." and the footer says "No agents have been started." First hour's "Connect your accounts" is done and never says "Choose where the engine runs next". Everything else stays as on main.

    Setup, desktop
    Setup desktop target

    Setup, phone
    Setup phone target

    First hour, desktop
    First hour desktop target

    First hour, phone
    First hour phone target

    Limits: generated targets (Codex image tool, main screenshots as references), not screenshots; raster sizes differ from the CSS widths. The First-hour targets keep the reference's failed fleet read ("Unknown" panel), which this ticket does not change.

  11. removed
    needs-info
    on Nov 16, 2026
  12. added 10 commits that reference this issue on Nov 16, 2026
  13. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    CI failure on #919 at f75a7ad (run 43825313543, job rust-export (4)): not caused by this branch. The likely cause is a race in the test itself, so no new head is needed.

    • The error: init::init_help_is_source_free_and_listed_in_agent_discovery panicked at tests/cli-agent/init.rs:73:14 with Os { code: 26, kind: ExecutableFileBusy, message: "Text file busy" }. Line 73 is the .unwrap() on Command::new(root.join("openwiz"))...output(). The program could not even start; no assertion about help, the catalogue or setup ran.
    • Likely cause: Installed::new copies the built openwiz binary with fs::copy, then runs it. In a parallel test binary, another thread that forks a child at that moment can briefly hold the just-written file open. Running it then fails with ETXTBSY. This is a race in #635: 0.0.16 T5: make visibility-aware openwiz init real #875's test, not a behaviour bug.
    • Not this branch: #873: 0.0.17 ER9: Setup and First-hour drop the engine step #919 changes nothing under crates/cli, tests/cli-agent, tools/install/setup or the agent catalogue (git diff --name-only origin/main...f75a7ad).
    • Does not reproduce: at f75a7ad, cargo test -p openwiz-tests --test cli-agent init:: passed 3/3, and the whole cli-agent binary (61 tests, run in parallel) passed 3/3.
    • Main: it is not a deterministic failure there. The merge-group runs after #635: 0.0.16 T5: make visibility-aware openwiz init real #875 landed (for example 43822968727 and 43822716318) passed this test. The one failed merge group in that window (43818241695) failed on a different test, e11_plan_bounds::e11_plan_deadline_retains_its_slot_until_the_source_really_finishes.
    • Action: I re-ran only the failed jobs of run 43825313543 at the same head. Suggested follow-up for #635: 0.0.16 T5: make visibility-aware openwiz init real #875's owner: write the copied binary to a temporary name and rename it into place before running it, or retry the spawn on ExecutableFileBusy.
  14. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

  15. added a commit that references this issue on Nov 16, 2026
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