Skip to content

Retire the setup store's dormant engine-selection and PC activation code #1052

Closed
1 of 1 issue completed

Description

@jparker2006

Follow-up from spec #786 (0.0.17), named by ER5 (#799) and ER8 (#874).

tools/install/setup/store.py still holds the setup store's engine-selection code (the engine record and its runtime validation) and activation_transaction, the companion journal setup/pc-activation.json. After #874 nothing calls them: the engine preparation, PC activation and installed handover runtimes are retired. The kept service start gate (crates/service/src/bootstrap.rs, D2) still reads setup/pc-activation.json, so with nothing writing it the gate always refuses.

Neither ticket owned store.py, so both left it unchanged. Decide whether to retire the dormant code (and its tests), keeping old state files readable, or keep it for the later service grill that owns the start gate.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Read-only trace at main 8653e41: what starts the web view on a fresh install with no activation record?

    Only the installer's foreground launcher, while it runs.

    • tools/install/install.py:273-311 (serve_installed), reached through --serve / --open (:321-333, port default 7370), starts <build>/openwiz-server --web-root <build>/web --port 7370 directly. That path has no activation check.
    • That server serves both / (index.html) and /setup (crates/server/src/web.rs:66-68, 140-143, 294-297).
    • contracts/install.v1.md:62-68: it stays in the foreground, stops only its own child, and does not start the service scheduler or engine.
    • When install.py exits, the web view stops.

    The long-running service never starts on a packaged install.

    • openwiz-service embeds the server and is the only long-running host. It calls bootstrap::check before running (crates/service/src/lib.rs:119).
    • For a packaged build, crates/service/src/bootstrap.rs:332-334 refuses with "no readable PC activation record" unless <state>/setup/pc-activation.json holds an applied, confirmed activation that binds this build, owner, root and config (:378-479).
    • Nothing writes that record. Its only writer, tools/install/setup/store.py:350 activation_transaction, has no caller anywhere in the repository. This ticket (Retire the setup store's dormant engine-selection and PC activation code #1052) proposes retiring exactly that dormant code.

    Setup and onboarding don't launch the web view either. Nothing in skills/setup, tools/install/setup/setup.py or init.py invokes install.py --serve or openwiz-server.

    Consequence: on a fresh install, the web view is available only while the owner runs install.py --serve (or --open) by hand. A persistent web view through the service can't start, and retiring the activation code here makes that permanent unless the service gate changes in the same plan. A draft ticket for the smallest fix follows in a separate comment.

  2. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Draft ticket (unlabelled, for planning): the packaged service can never start, because its gate needs a PC activation record that nothing writes

    Problem: crates/service/src/bootstrap.rs:332-334 refuses every packaged start without setup/pc-activation.json. The only writer, store.py:350 activation_transaction, is uncalled, and #1052 retires it. So a packaged openwiz-service, and with it the persistent web view, cannot start on any install.

    Smallest fix (recommendation): within #1052's plan, replace the activation-record requirement with the checks that remain meaningful: the installed package verifies against its manifest (the existing manifest_at / verify_installed / path_guard mirror), the executable belongs to that package, the paths are owner-private, and login is unknown. Keep the rule of no runtime, environment or config bypass. Red first: a packaged fixture with no activation record starts the service and serves /, while a tampered or unowned package still refuses.

    Alternative: have onboarding run install.py --serve after setup. That's foreground only, so it isn't a persistent view.

    Note: this changes a protected startup gate, so it needs owner approval.

  3. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Closed in Jake's stale-spec sweep, 2026-11-20: its one ticket is done.
    Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7048628992

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions