Skip to content

feat(start-cli): server registries namespace; trusted-keys on the CLI; remove update-signers - #4674

Merged
dr-bonez merged 13 commits into
masterfrom
feat/server-registries-namespace
Nov 11, 2026
Merged

dr-bonez merged 13 commits into
masterfrom
feat/server-registries-namespace

Conversation

@MattDHill

@MattDHill MattDHill commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Approved by the maintainer. Connected registries become their own resource and get their own state, trusted keys come onto the CLI, and server update-signers is removed.

server registries (RPC and CLI): list, add <URL> [--name], remove <URL> and set-os <URL>, replacing server.trusted-keys.{connect,remove,set-os}-registry. remove accepts the Start9 and Community registries, so the CLI can disconnect them; the web interface still offers no Remove for them. The registry that provides StartOS updates is refused until another is chosen. The handlers stay beside the key-trust logic they share; registries.rs wires the namespace.

server trusted-keys on the CLI: list, add [--name] [--trust-for marketplace|os] -- <KEYS>..., update <ID> --name --marketplace <bool> --os <bool> and remove <ID>. Options go before -- and quoted PEM/GPG keys after it. New imports are trusted for packages, and --trust-for os adds StartOS-update trust. remove-many stays UI-only.

server update-signers is removed, with the legacy helpers only it used. trusted-keys already keeps the on-disk OS signer files in sync. The signer types storage and migrations need stay.

Persisted state:

  • New fields: connected registries move from public.ui.registries to typed public.serverInfo.registries (URL → nullable name). The StartOS update source moves from public.ui.startosRegistry to public.serverInfo.osRegistry. Registry operations, key protection, security-feed subscriptions and the UI read the new fields, and public.ui holds only UI-owned state.
  • Migration: 0.4.2.1 goes to revision 2. It moves saved settings, keeps custom URLs and names, and restores missing built-ins. It re-runs on alpha servers already at revision 1, where a disconnected built-in reappears once. Rollback to 0.4.2 moves the settings back.
  • Defaults: fresh-install registry defaults (stable and beta) come from backend helpers rather than the UI seed files.
  • Guard removed: fix(start-os): restore the Start9 and Community registries on servers updated from 0.3.5 #4673's db.put.ui registry guard is gone, since UI writes can no longer change registry settings.

Also in this change:

  • The UI, mocks, generated TS bindings, MCP catalog and man pages use the new endpoints.
  • cli-reference.md documents both command groups, and trusted-keys.md and marketplace.md are updated.
  • Help text ships in all five locales.
  • start-cli goes to 3.0.0 for the removed command, with a StartOS fragment for the RPC/MCP change.

Migration for external callers: RPC/MCP callers and signer automation must move to server.registries and server.trusted-keys when their server upgrades.

Verification:

  • cargo check -p start-core --tests --features=test and cargo check -p start-cli passed before the state move.
  • helix-a reports the RPC-client tests (29/29) and the UI script tests (163/163) passing, with UI type-checking clean. Its Rust run passed 1331 tests but failed 31 in an image missing filesystem, Node and SquashFS tools, so that isn't a clean full-suite result.
  • CI's Automated Tests and product builds are the full check.
  • No live-server CLI or upgrade/rollback run has been done.

🤖 Generated with Claude Code

MattDHill and others added 4 commits November 10, 2026 10:05
v0_4_0_alpha_1 read ui.marketplace.knownHosts, but 0.3.5 stored the list
as known-hosts, so every 0.3.5 upgrade reached 0.4 with ui.registries
empty. 0.4.0-0.4.1.1 hid this by prepending the built-in registries and
saving them on first fetch; 0.4.1.2 dropped both, leaving servers that
skipped those versions with an empty Marketplace.

The built-in registries are now an invariant rather than UI convention:
- trusted_keys.remove-registry refuses either one (the UI only hid the
  button, and the backend refused only the OS-update registry)
- db.put.ui refuses the root pointer and anything under /registries
- the 0.4.2.1 migration restores whichever is missing, and bumps
  migration_revision so alpha servers already on 0.4.2.1 pick it up

Fixes #4672

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release-migration test still expected 0.4.2.1 at revision 0, and its
fixture had no UI object, so the registry repair was skipped. Add a ui
fixture, expect revision 1, and cover an existing 0.4.2.1 install at
revision 0 being repaired once on startup. The migration now reads
public.ui without IndexMut, which would insert a null ui into a db that
has none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Start9 and Community registries stay out of the web interface's
Remove action, but remove_public no longer refuses them; it still refuses
whichever registry provides StartOS updates. A CLI command for it follows
in the registries namespace change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Connected registries are their own resource, not a corner of trusted
keys: connect-registry, remove-registry and set-os-registry move from
server.trusted-keys to server.registries as add, remove and set-os,
with a new list, all on the CLI. The handlers stay beside the key-trust
logic they share; registries.rs wires the namespace. remove accepts the
Start9 and Community registries, so the CLI can disconnect them; the web
interface still offers no Remove for them.

server.trusted-keys comes onto the CLI with list (new), add, update and
remove; remove-many stays UI-only. server.update-signers and the legacy
helpers only it used are removed: trusted-keys already keeps the
on-disk OS signer files in sync.

start-cli goes to 3.0.0 for the removed commands. Approved by the
maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes on cc99a6d.

  1. [P1] Commit the generated RPC bindings, MCP catalog, and man pages. The UI now calls this.api.rpc.server.registries, but shared-libs/ts-modules/start-core/lib/osBindings/rpc/start-os.schemas.ts still defines the old trusted-keys.connect-registry tree and no registries namespace. The typed UI cannot compile against this snapshot. shared-libs/crates/start-core/mcp-tools.json is embedded in the server and still advertises the removed registry/update-signer methods, so MCP clients receive tools that fail with method-not-found. The description acknowledges this, but it remains a correctness blocker, not just CI bookkeeping. Regenerate and commit the bindings, MCP catalog, and man pages using their existing make targets after the source fixes.

  2. [P1] Stop the variadic key argument from swallowing named options (AddTrustedKeyParams::public_keys, trusted_keys.rs). With allow_hyphen_values = true, once clap starts this variadic positional it treats subsequent --name and --trust-for tokens as more keys. The documented add "$(cat signer.pem)" --name ... --trust-for os consequently fails key parsing; the new cli_parses_trusted_key_commands test also cannot obtain its expected trust_for. This follows directly from the pinned clap parser's prior-positional precedence. The proposal removes that setting, documents options-before--- / armored-keys-after---, fixes the example, and covers both trailing options on a Der64 key and a PEM/GPG import through the delimiter.

  3. [P2] Describe --trust-for os as additive, not exclusive (about.add-trusted-key, all locales). The new help says package trust applies “unless --trust-for says otherwise,” but import_individual_keys always gives newly imported keys package trust and additionally grants OS trust. An operator must not be told an OS-only import is happening when that key also authorizes packages. The proposal corrects the help/reference and asserts the existing additive semantics without changing policy.

Proposed source changes: cc99a6d...proposal/4674

The proposal is source-only: I did not run generators, builds, tests, typechecks, or lint as reviewer; the implementing author must verify adopted changes and regenerate artifacts. The PR merges cleanly with its actual base, fix/seed-default-registries, and with current master. The only current reported check is successful Conflict Markers; there is no executable verification result on this PR yet.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

allow_hyphen_values on the variadic key argument let it swallow --name
and --trust-for, so the documented invocation failed. Options now go
before -- and armored keys after it, as the docs and help say. The help
for add also stops implying --trust-for os replaces package trust: new
keys are always trusted for packages, and --trust-for os adds StartOS
update trust.

Adopted from proposal/4674, with the test's InternedString conversion
made unambiguous so it compiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the update through 89f0549. Findings 2 and 3 are addressed: the variadic argument no longer swallows options, the delimiter usage is documented and covered, and all five locales describe package trust accurately.

[P1] Finding 1 remains: commit the generated artifacts before approval. shared-libs/ts-modules/start-core/lib/osBindings/rpc/start-os.schemas.ts:6850 still has the old trusted-keys registry methods and no server.registries, so the changed typed UI calls cannot compile. The embedded shared-libs/crates/start-core/mcp-tools.json:11709 still advertises the removed registry methods, and its update-signers tools also remain. The man pages are unchanged as well. Please regenerate and commit these with the existing make start-core-ts-bindings, make start-core-mcp-tools, and make manpages targets, then verify the affected callers.

The source fixes from proposal/4674 are incorporated; no further handwritten source changes are proposed. Generation belongs to the implementing author, so I have not run generators, builds, tests, typechecks, or lint. Merge-tree checks are clean against the actual stacked base and current master. Only Conflict Markers has a reported CI result (passing).

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill changed the base branch from fix/seed-default-registries to master November 10, 2026 22:28
@MattDHill

Copy link
Copy Markdown
Member Author

Retargeted to master while #4673 is still open. test.yaml only runs on pull requests into master, integration/* and live-docs, so while this PR was stacked on fix/seed-default-registries the Generated Artifacts job never ran. That job is how this PR gets its regenerated TS bindings, MCP catalog and man pages, the last blocker in review. Generating them locally exceeds a workstation's memory budget.

Until #4673 merges, this PR's diff also shows #4673's three commits. Review only the commits from cc99a6d74 on. Once #4673 squash-merges, I'll rebase this onto master so it carries only its own changes, then commit the regenerated artifacts.

@helix-white

Copy link
Copy Markdown
Member

Understood. CI-generated artifacts are fine; the remaining request is to commit the generated output, not to generate it locally. The parsing and trust-help findings are resolved. I’ll keep the review scoped to cc99a6d onward and assess the rebased diff and committed artifacts when review is re-requested.

@helix-white
helix-white dismissed their stale review November 11, 2026 00:29

Dismissed by Helix: the changes require a substantive PR brief update. The trusted-keys add parser changes caller-visible behavior: trailing named options are parsed instead of swallowed as keys, and armored PEM/GPG positional keys now require the -- delimiter. The substantive brief must update its invocation contract and describe the parsing correction; these are not merely wording or test changes.

…ies-namespace

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
@helix-white

Copy link
Copy Markdown
Member

Took over implementation to close the last review blocker (finding 1).

  • Merged origin/master (now including fix(start-os): restore the Start9 and Community registries on servers updated from 0.3.5 #4673's squash merge) into the branch rather than rebasing, so nothing was force-pushed. The PR diff now carries only this PR's own changes.
  • Regenerated and committed the generated artifacts (e43653a99) with make manpages start-core-ts-bindings start-core-mcp-tools, run on the merged tree. start-os.schemas.ts now has server.registries and no update-signers. mcp-tools.json no longer lists the removed registry or update-signer methods. Man pages exist for server registries * and server trusted-keys *. The start-tunnel.1 version header also catches up with master's 1.5.2 bump.
  • Deleted the stale start-cli-server-update-signers*.1 pages. The man-page generator doesn't remove pages for deleted commands, and the drift check (git status --porcelain) doesn't catch leftover files.
  • Fixed the UI test mocks (4f19581c5): os-update.test.mjs still stubbed server.trustedKeys.connectRegistry/removeRegistry, so three registry tests would have hit undefined once the UI compiled. They now stub server.registries.add/remove.

Verification on this head:

  • After rebuilding the start-core dist, npm run check:ui passes: the UI tsc has no errors, and all 160 UI script tests pass. check:rpc-clients, check:rpc-docs and check:setup also pass.
  • cargo test -p start-core --lib -- mcp:: trusted_keys registries: 50 passed. That includes mcp::test::catalog_names_methods_of_the_api, the failure in the last Automated Tests run, and cli_parses_trusted_key_commands.
  • A second generation pass on the merged tree changed nothing, so Generated Artifacts should be clean. Full CI is running on the new head.

Correction to the description (left unedited): it says the PR is stacked on #4673 and lists generated artifacts as pending. Both are out of date. #4673 has merged, and this PR now targets master with the artifacts committed.

helix-white
helix-white previously approved these changes Nov 11, 2026

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at e43653a. All three earlier findings are addressed. The generated bindings and embedded MCP catalog match the production handlers, obsolete signer man pages are removed, and the registry test stubs use the new namespace. The merge from master contains no manual conflict-resolution delta, and the current head merges cleanly.

Brief

This introduces server registries list/add/remove/set-os and exposes server trusted-keys list/add/update/remove on the CLI. Registry operations reuse the existing connection handlers; trusted-key mutations retain the existing database and on-disk diagnostic-signer synchronization. No persisted schema migration or additional runtime state is introduced.

This is a breaking API/CLI change: the three registry RPC methods move out of server.trusted-keys, and server.update-signers disappears. External RPC/MCP callers and existing CLI signer automation must migrate alongside the server upgrade. start-cli becomes 3.0.0. Registry listing returns a URL-to-nullable-name map; trusted-key listing returns the existing key records indexed by their Der64 IDs. Obsolete signer request DTOs disappear, while signer types used by storage and migrations remain.

The CLI can disconnect either built-in registry after choosing another OS-update source; the web interface still hides their Remove action. That removal policy comes from already-merged #4673. Protected registry keys and the last trusted OS-update key retain their existing guards. Importing a new key grants package trust; --trust-for os additionally grants OS-update trust. The accepted review proposal fixes option swallowing and documents options before --, followed by quoted PEM/GPG keys. update requires the name and both trust selections together.

The embedded UI, mock backend, and focused test stubs use the renamed endpoints. There is no rendered UI change. Generated TS/MCP output and man pages are committed, including deletion of stale update-signers pages and correction of the StartTunnel man-page version header.

Implementation diff: +680 / −579 lines in 17 files (excludes lockfiles, tests, docs, release notes, and changelog). Generated schemas/catalog and localized help are included.

Recorded verification: the implementing author reports passing UI typechecking and 160 UI script tests, RPC-client/documentation and setup checks, and 50 focused Rust tests covering trusted keys, registries, and MCP catalog consistency. A second generation pass reportedly produced no changes. This is local compiled/unit evidence, not a live-server end-to-end CLI exercise. I ran no builds or tests as reviewer. Current-head CI is pending, including the Automated Tests/Generated Artifacts pipeline and product builds; this approval does not claim those checks passed.

The description still says this is stacked on #4673 and generated artifacts are pending. Those statements are stale: #4673 is merged, the base is master, and artifacts are committed. The author's description and attribution are preserved.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white
helix-white dismissed their stale review November 11, 2026 01:11

Dismissed by Helix: the changes require a substantive PR brief update. Committed production bindings now expose server.registries, and the embedded MCP catalog removes obsolete registry/update-signers tools and advertises the replacement endpoints. The brief must describe this completed client/MCP integration instead of stating that artifacts are pending and the typed UI cannot compile. This materially resolves the reviewed implementation's remaining blocker, rather than changing only CI bookkeeping.

…serverInfo, not ui

The ui section is UI-owned state the backend never reads or writes outside
migrations. The 0.4.2.1 migration (revision 2) moves ui.registries and
ui.startosRegistry into serverInfo.registries and serverInfo.osRegistry, and
the backend now supplies the initial (stable or beta) registries, so the
separate beta UI seed is gone.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
@helix-white

Copy link
Copy Markdown
Member

Per @dr-bonez: public.ui is only for state the backend doesn't need to touch or know about. This moves the connected registries and the OS update registry out of it (fe77b05bd, bindings in 92cb07d0d).

  • Typed fields: ServerInfo.registries (URL → name or null), next to registryKeys, and ServerInfo.osRegistry: Url. trusted_keys/connection.rs, protect_registry_keys, the security-feed watcher (/public/serverInfo/osRegistry) and server registries list all use them.
  • Contract: Public::ui now documents that the backend never reads or modifies its contents outside version migrations, and projects/start-os/AGENTS.md says the same. The db.put.ui guard for /registries (writable_ui_pointer) and its i18n key are gone, since nothing backend-owned is left there.
  • Migration: v0_4_2_1 is now revision 2. It moves ui.registries and ui.startosRegistry into serverInfo, then restores missing built-in registries as fix(start-os): restore the Start9 and Community registries on servers updated from 0.3.5 #4673 did. It gives the same result on alpha servers that already ran revision 1. down moves both back into ui for a rollback to 0.4.2. v0_4_1_2 reads the old ui shape through ui_registries.
  • Initial values: the backend now owns them, in initial_registries / initial_os_registry. The beta feature adds the beta registries and makes beta-registry the OS registry, as the beta seed did. The two UI seeds became identical, so patchdb-ui-seed.beta.json and its cfg in startbox.rs are removed. The diagnostic updater's hardcoded stable/beta URL now uses initial_os_registry too.
  • UI and mock: they read serverInfo.registries / serverInfo.osRegistry. UIData drops both keys.
  • Docs and changelog: the root AGENTS.md, projects/start-os/AGENTS.md/ARCHITECTURE.md and ts-modules/ARCHITECTURE.md are updated, and the StartOS changelog fragment notes the new db paths.

Verification:

  • cargo test -p start-core --lib in the plain Rust builder image: 1331 passed. That includes the new migration tests (move, idempotence after revision 1, rollback, 0.3.5 path), the version-chain revision test and the connection tests. The 31 failures all come from tools that image lacks (mkfs.btrfs, node, mksquashfs), in squashfs/s9pk/disk tests this change doesn't touch.
  • npm run check:ui against the rebuilt start-core dist: no tsc errors, and all 163 UI script tests pass. Prettier is clean on the touched web, docs and changelog files.
  • Bindings, MCP catalog and man pages were regenerated with the make targets.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
helix-white added a commit that referenced this pull request Nov 11, 2026
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes at 6b52a25 for one missed caller of the relocated state.

[P2] Move the RPC-client fixtures to the new ServerInfo shape (shared-libs/ts-modules/scripts/test-rpc-clients.cjs:423). The “StartOS trust mock rejects whole batches…” test still places registries and startosRegistry under ui and omits serverInfo.registries. Its client.rpc.db.subscribe({}) calls the production mock's protectTrust(), whose nonempty registry-key snapshot reaches Object.keys(mockPatchData.serverInfo.registries) and throws before the atomic-trust assertions. Thus check:rpc-clients, which is part of the normal frontend checks, is broken by this state move even though check:ui passes. The DNS mock fixture later in the same file also retains the old layout.

The proposal moves both fixtures to serverInfo.registries / serverInfo.osRegistry, retaining UI-only state under ui. It does not add fallbacks to production or change the ownership contract. Please verify the adopted fixture changes with the RPC-client checks.

Proposed changes: 6b52a25...proposal/4674

I otherwise traced the revision-2 migration and rollback, initial stable/beta values, key protection, security-feed subscription, and UI consumers to the typed fields. The caller-facing namespace fixes remain intact. The new head merges cleanly with master. I ran no builds, tests, generators, typechecks, or lint as reviewer; the finding follows from the fixture and production call path. Current CI is still running.

The eventual brief also needs to cover this newly added persisted-state migration and ownership contract; the original description still only describes the namespace change and incorrectly lists generated artifacts as pending.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white
helix-white dismissed their stale review November 11, 2026 03:03

Dismissed by Helix: the changes require a substantive PR brief update. Registry settings move from public.ui into typed serverInfo.registries and serverInfo.osRegistry, with a revision-2 upgrade migration and rollback conversion. Backend consumers, UI subscriptions, and initialization now use those fields. This contradicts the approval brief's explicit statement that no persisted schema migration is introduced; the brief must explain the new storage contract, ownership boundary, and upgrade/rollback behavior.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
@helix-white

Copy link
Copy Markdown
Member

Addressed the [P2] finding.

  • Fixture move (adopted as proposed, 270dd8cb7): the trust-batch and DNS mock fixtures in test-rpc-clients.cjs now keep registries / osRegistry under serverInfo, with only UI state under ui.
  • Harness fix (06b3d6201): with the fixtures moved, the three StartOS mock tests still failed, on origin/master too. embassy-mock-api.service.ts injects ConfigService (since Manage registry trust and supplemental S9PK signatures #4535), and the harness could neither load its config.json require nor provide the injection. The harness now stubs config.service with a ConfigService token and a default { gitHash: '' }, the same way it already stubs AuthService/HttpService/StaleUiService. CI doesn't run check:rpc-clients, which is why this went unnoticed.

Verification on this head: npm run check:rpc-clients passes all 29 tests. Before these two commits, 3 failed both here and on master. npm run check:ui still passes all 163, and Prettier is clean. The merge-tree check against master is clean.

On the brief: noted. The persisted-state move and the public.ui ownership contract will be in the hand-off summary for the final reviewer.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 06b3d62. The relocated RPC-client fixtures address the remaining finding, and the ConfigService stub follows the harness's existing dependency-boundary pattern without changing production behavior. Merge-tree is clean against current master. CI remains pending; approval is based on code review, not a claim that all checks passed.

Updated brief

This adds server registries list/add/remove/set-os, exposes server trusted-keys list/add/update/remove on the CLI, and removes server.update-signers. The three registry RPC methods move out of server.trusted-keys. External RPC/MCP callers and signer automation must migrate alongside the server upgrade; start-cli becomes 3.0.0. The embedded UI, mocks, generated bindings, MCP catalog, and man pages use the replacement endpoints. Obsolete signer request DTOs and man pages are removed; signer types needed by storage and migrations remain.

Persisted-state contract: connected registries move from public.ui.registries to typed public.serverInfo.registries (URL → nullable display name). The OS-update source moves from public.ui.startosRegistry to public.serverInfo.osRegistry (Url, serialized as a string). Registry operations, key protection, security-feed subscriptions, and UI consumers use those fields. public.ui is reserved for UI-owned contents that the backend does not interpret or modify outside migrations. The special db.put.ui registry guard is removed because UI writes no longer change authoritative registry settings.

The 0.4.2.1 migration advances to revision 2, moves saved registry settings, preserves custom URLs/names, and restores missing built-in registries. It reruns on alpha servers that already applied revision 1; consequently, disconnected built-ins reappear during this repair. Subsequent explicit removals remain supported. Rollback to 0.4.2 moves the settings back into ui. Fresh-server initialization now owns stable/beta registry defaults in backend helpers rather than separate UI seeds; diagnostic updates reuse the same stable/beta OS-registry default.

Registry workflows reuse their existing connection handlers and trusted-key mutations retain the existing diagnostic-signer-file synchronization. The selected OS registry cannot be removed, keys offered by connected registries remain protected, and the final trusted OS-update key retains its guard. The web interface still hides removal for built-in registries, while the CLI can disconnect them after switching the OS source where necessary. New imports grant package trust; --trust-for os adds OS-update trust. The accepted review proposal fixes option swallowing and documents options before --, followed by quoted PEM/GPG keys. Key updates require the name and both trust selections together.

Additional cleanup updates both RPC-client fixtures and supplies the test harness's missing ConfigService dependency. Existing screens retain their presentation; the frontend changes are RPC/state plumbing.

Implementation diff: +896 / −757 lines in 33 files (excludes lockfiles, tests, docs, release notes, and changelog). Generated schemas/catalog, localized help, and production seed changes are included.

Recorded verification: the implementing author reports 29/29 RPC-client tests and 163/163 UI script tests passing, with UI typechecking and touched-file Prettier clean. The recorded Rust run passed 1331 tests, including migrations and registry connections, but failed 31 tests in an image missing filesystem/Node/SquashFS tools; it is not a passing full-suite result. Bindings/catalog/man pages were regenerated. There is no live-server end-to-end CLI or upgrade/rollback evidence. I ran no builds or tests as reviewer. Current-head Prettier and Conflict Markers pass; Automated Tests, Generated Artifacts, formatting/lockfile checks, and product builds remain pending.

The original description remains stale about stacking, pending generated artifacts, and the scope of the persisted-state change. This brief describes the reviewed head; the author's description and attribution are preserved.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

@dr-bonez: cross-review is approved at 06b3d6201, and the PR is ready for your review. The original description is preserved but out of date. It still says this PR is stacked on #4673 and that generated artifacts are pending, and it doesn't cover the state move. @helix-a's approval review has an accurate brief of the current head.

What changed since your last look (the ui cleanup you asked for):

  • Connected registries and the StartOS update registry now live in typed serverInfo.registries / serverInfo.osRegistry. Public::ui and projects/start-os/AGENTS.md record that the backend never reads or modifies ui contents outside migrations.
  • v0_4_2_1 goes to revision 2: it moves both keys out of ui, restores missing built-in registries, and moves them back on rollback to 0.4.2. The backend owns the stable/beta defaults, so the beta UI seed is gone.

One consequence to be aware of: alpha servers that already ran revision 1 re-run the migration, so a built-in registry someone disconnected on alpha comes back once. Only the CLI on this branch can disconnect built-ins, so in practice this affects nobody.

One question for you: the backup job still copies the whole ui value into os-backup.json without inspecting it, and restore doesn't use it. Is that acceptable under the new rule, or should that copy be dropped too?

CI on this head is still running.

@dr-bonez
dr-bonez merged commit e60f641 into master Nov 11, 2026
49 checks passed
@dr-bonez
dr-bonez deleted the feat/server-registries-namespace branch November 11, 2026 04:50
Dominion5254 added a commit that referenced this pull request Nov 12, 2026
…cbor-web (#4697)

#4674 committed a lockfile whose shared-libs/ts-modules/start-core/dist
entry lists cbor-web, which start-core's package.json does not declare.
Builds regenerate start-core's dist/package.json and then run the root
package-lock.json recipe (`npm --prefix . i`), which drops the line. The
tree is then dirty when check-git-hash.sh stamps the build, so every
start-wrt CI build since #4674 identifies itself as `<hash>-modified`,
including the 1.4.0 re-cut from 35a38d8.

Regenerated with `make package-lock.json` (Node 24.17.0, npm 11.13.0,
the versions CI uses). The result is byte-identical to the lockfile
before #4674.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants