You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retire the setup store's dormant engine-selection and PC activation code #1052
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.
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).
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.
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:350activation_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.
Activity
jparker2006 commentedon Nov 19, 2026
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 7370directly. That path has no activation check./(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.install.pyexits, the web view stops.The long-running service never starts on a packaged install.
openwiz-serviceembeds the server and is the only long-running host. It callsbootstrap::checkbefore running (crates/service/src/lib.rs:119).crates/service/src/bootstrap.rs:332-334refuses with "no readable PC activation record" unless<state>/setup/pc-activation.jsonholds an applied, confirmed activation that binds this build, owner, root and config (:378-479).tools/install/setup/store.py:350activation_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.pyorinit.pyinvokesinstall.py --serveoropenwiz-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.jparker2006 commentedon Nov 19, 2026
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-334refuses every packaged start withoutsetup/pc-activation.json. The only writer,store.py:350activation_transaction, is uncalled, and #1052 retires it. So a packagedopenwiz-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_guardmirror), 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 --serveafter setup. That's foreground only, so it isn't a persistent view.Note: this changes a protected startup gate, so it needs owner approval.
jparker2006 commentedon Nov 20, 2026
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