Repository navigation
feat(registry): clients declare their product and signature formats - #4445
Dominion5254 wants to merge 22 commits into
Conversation
The special-files listing test asserted a UTC date against unsquashfs output rendered in the host's local timezone, so it failed on any host west of UTC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A registry could not tell a StartWRT router from a StartOS server: both send X-StartOS-Device-Info, and the registry decided which signature labels to serve by comparing os.version with StartOS 0.4.0.3. A StartWRT 1.2.1 router read as newer than 0.4.0.3, received the Ed25519ph label it cannot parse, and saw no updates unless the registry set `startwrt: true` (#4389). Registry clients now send X-Start9-Registry-Client: the OS product asking for its own releases (StartOS servers, diagnostic mode, StartWRT) and the signature formats the client reads. start-cli declares formats only. On the registry: - `product` (startos | startwrt) names the OS whose releases it serves; `startwrt: true` is read as `product: startwrt`; the `--startwrt` flag is gone. - A client declaring the other product is rejected with an error naming the registry's product. - A client declaring Ed25519ph gets current labels on either product. Without it, a StartWRT registry serves legacy labels, and a StartOS registry keeps the 0.4.0.3 rule. StartOS version rules (signature labels, inline icons) no longer apply on a StartWRT registry. - Legacy clients of either product are no longer offered an OS version left unsigned by the downgrade; #4434 had exempted StartWRT, whose routers would list such a version and fail validation on install. StartWRT drops its hand-copied DeviceInfo, signature, commitment, and registry response types for start-core's, so it parses the Ed25519ph label and pure Ed25519 signatures, and declares itself a StartWRT client. Its now-unused der, digest, form_urlencoded, and rand_core deps go. StartWRT's system.newer-versions now returns the error from a failed update check instead of an empty list, which the UI showed as "up to date". Settings > General shows "Couldn't check for updates" in its place; a transport failure between browser and router stays with the reconnect indicator. System info no longer waits on the update check to succeed. start-registry goes to 1.3.0 (1.2.2 notes folded in); StartWRT to 1.3.1. Closes #4389 Closes #4390 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
start-core's registry::client::call now owns the unsigned registry call: the rpc/v0 path, the X-Start9-Registry-Client header, and the device-info header. StartOS's server and diagnostic update path and StartWRT's update check all use it, so StartWRT's hand-written JSON-RPC client is gone and its registry module is reduced to the device info it reports. Folds in #4425's StartWRT work: its signature regression tests (now against start-core's types), its update-check UI and string, and its changelog fragment.
…help Folded in from #4427, without its version bump, which this branch already carries.
The firmware download and its BLAKE3 check use start-core's RegistryAsset::download and Commitment::check, as StartOS's updater does, in place of StartWRT's own copies. Drops the now-unused blake3 dependency.
helix-white
left a comment
There was a problem hiding this comment.
Requesting changes for integration with current master; I found no additional correctness regression in the registry/updater code.
- Merge master and resolve
projects/start-registry/release-notes/1.2.2.md.git merge-tree --write-tree origin/master 717ab734ereports a modify/delete conflict: master converted the existing notes to framing, while this PR deletes them in favor of 1.3.0. - Adapt the release metadata to the compiler merged in #4459. All four new fragments need
user-facingfrontmatter, and both new release-note files must leave## Highlightsto the compiler. Without that adaptation, validation fails immediately and release-note rendering is blocked. The proposal adds audience metadata and removes authored Highlights while retaining the ledes and Quad9 Important entry. Existing fragments supply the generated highlights, including the Wi-Fi fix.
Proposed changes: 717ab73...proposal/4445
The proposal contains only the six metadata edits, not a merge of master; merge master separately.
Verification: reproduced both products' fragment-validation failures against current master. With master temporarily merged and the proposal applied, both products passed validate, check-version, and notes; rendered StartWRT notes retain the Wi-Fi highlight and Quad9 warning. Prettier passed for all six edited files; the final proposal passes git diff --check. A broader merged-tree whitespace scan also found inherited trailing whitespace in master's generated projects/start-os/man/start-container.1:3, outside this PR's diff.
Reused the author's reported 791 passing StartWRT tests, 63 passing registry/update tests, scoped frontend/bindings checks, and K1 bench evidence rather than repeating them. The reported full start-core run still has 29 failures, as documented in the PR; I am not treating it as green. GitHub currently exposes only a queued Retarget Mergeability check for this head, not completed CI evidence.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Rechecked after the merge-conflict notification: the PR is still open at |
…abilities # Conflicts: # projects/start-registry/release-notes/1.2.2.md
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Approved at 3d6b66db0. Both earlier requests are addressed: master is merged with the obsolete 1.2.2 framing removed, and the release metadata adopts my proposal's audience frontmatter and generated Highlights. The final lede-only edit is consistent with the pending StartWRT fragments. git merge-tree --write-tree origin/master HEAD succeeds.
Brief
The registry negotiates signature formats through an explicit client-capability header and rejects clients declaring another OS product. Headerless clients retain legacy handling; StartWRT clients also lose releases whose signatures cannot survive that downgrade. Registry configuration gains product: startos|startwrt, preserving startwrt: true YAML compatibility. The old --startwrt CLI flag is replaced, not retained as an alias; scripts using it must switch to --product startwrt.
StartWRT replaces its copied RPC, signature, asset, download, and integrity implementations with start-core's production owners. Router-specific device information and image selection remain local. Failed update checks now propagate to a translated warning without preventing system information from loading; update availability derives from the version list.
Additional changes remove Quad9 from the five DoH help translations, document its SmartDNS limitation in release framing, and pin a SquashFS test's listing timezone to UTC. Versions become start-registry 1.3.0 and StartWRT 1.3.1.
Implementation diff: +361 / −929 lines in 33 files (excludes lockfiles, tests, docs, release notes, and changelog).
Verification
- On this head, both products pass fragment validation, fresh version checks, and release-note rendering. The generated notes preserve the existing Wi-Fi fix and Quad9 Important warning. The final lede passes Prettier, and the PR diff passes whitespace checks.
- Chromium exercised the actual UI with the mock API and an injected registry failure: the warning appears while system information remains loaded, and successful reinitialization removes it. Also inspected the normal update-available state and the revised WAN DNS help. Screenshots follow separately; mock version numbers are fixture data. The fixture was confined to the build cache and restored afterward.
- Reused the previously reviewed author's evidence for the unchanged feature code: 791 passing StartWRT tests, 63 passing registry/update tests, scoped frontend/bindings/format checks, and the K1 success, bad-signature, corrupt-download, missing-file, and wrong-product scenarios. The reported full start-core run has 29 failures; it is not a passing suite. The author records missing external tools and a load-sensitive SNI test, which passes alone.
CI remains queued, including the cross-compile checks; this approval does not claim green CI. Real StartOS-server registry integration and UI download progress remain unverified, as the author notes.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Updated release metadata for #4459: pending fragments declare their audience and unreleased notes retain framing/notices only; Highlights compile from the fragments. Inherited pending SDK 3.1.2 metadata is migrated where present. Published notes and implementation files are unchanged. Using the current master compiler, all six products passed fragment/version validation and note rendering; scoped pinned-Prettier checks passed. |
|
Both points from the change request on
You approved On |
helix-white
left a comment
There was a problem hiding this comment.
Approved at 40bf35821. The only change since my previous approval is the four-file SDK release-metadata migration. All three fragment bodies are preserved, and generated Highlights retain both file-model fixes while adding the existing abort-listener fix. No implementation or UI files changed. The previous review requests remain resolved, and git merge-tree --write-tree origin/master HEAD succeeds.
Brief
Registry clients declare their product and supported signature formats. The registry rejects declared product mismatches, preserves headerless compatibility, and hides releases legacy clients cannot verify. product: startos|startwrt replaces the --startwrt flag; legacy startwrt: true YAML remains supported, but scripts using the old flag must change.
StartWRT reuses start-core's RPC, signature, asset-download, and integrity implementations instead of maintaining copies. Router-specific device information and image selection remain local. Failed update checks propagate to a translated warning independently of system-information loading; update availability derives from the version list.
Additional changes remove Quad9 from DoH help in five languages, retain its SmartDNS limitation in release framing, and make a SquashFS listing test timezone-independent. Release metadata targets start-registry 1.3.0 and StartWRT 1.3.1 and repairs inherited SDK 3.1.2 metadata for generated Highlights.
Implementation diff: +361 / −929 lines in 33 files (excludes lockfiles, tests, docs, release notes, and changelog).
Verification
- Ran SDK fragment validation, a fresh version check, note rendering, and pinned Prettier on all four newly changed files: all pass. The complete PR diff passes whitespace checks.
- Reused the previous review's passing registry/StartWRT metadata checks and Chromium verification: update-check failure leaves system information loaded, successful reinitialization clears the warning, and the normal update state and revised DNS help render correctly. The metadata-only commit leaves that evidence applicable.
- Reused the author's 791 passing StartWRT tests, 63 passing registry/update tests, scoped frontend/bindings checks, and K1 success/failure-path evidence. The reported full start-core run still has 29 failures, attributed to missing external tools and a load-sensitive SNI test; it is not a passing suite. Real StartOS-server registry integration and UI download progress remain unverified.
CI is still queued/running; only Conflict Markers has completed successfully. Approval does not establish green CI.
Screenshots
Unchanged UI from the preceding reviewed head, using mock API data:
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Cross-review requested. |
helix-white
left a comment
There was a problem hiding this comment.
Approved at f51c987dda7499dbc3f78f76bc64a962aedcd452. The merge with master c1e6899ff resolves the outstanding metadata request through master's fix: all four inherited fragments use release-notes, with routine device-permissions help excluded from highlights. This satisfies the request without needing the proposal verbatim. The router implementation and shared registry-client paths are unchanged from 2702cd032; the post-fetch trust check, ingestion tests, translations, and master's connected-registry protection remain intact. The local merge check succeeds and GitHub reports MERGEABLE.
Brief
Registry clients declare their product and signature capabilities rather than comparing StartWRT versions with StartOS versions. Product mismatches fail explicitly; headerless clients retain compatibility handling, and legacy routers stop seeing releases whose signatures they cannot verify. StartWRT replaces its copied RPC, signature, download, and integrity implementations with start-core's existing owners. Router-specific device information and image selection remain local; normal and diagnostic StartOS update queries share the unsigned registry-call primitive.
Failed update checks now show Failed to check for updates under System > Settings > General, while system information loads independently. Quad9 is removed from DoH help in five languages, and the StartWRT 1.4.0 Important notice explains the limitation. A separate SquashFS test fix removes timezone-dependent listings.
Contracts and rollout: RegistryConfig.product is optional (startos or startwrt), defaulting to StartOS unless legacy YAML startwrt: true selects StartWRT. There is no storage migration. The old --startwrt CLI flag has no alias: deployments using it must switch to --product startwrt; an alias would preserve those invocations, and deployed use remains the maintainer consideration raised in the description. The opt-in security feed stays independent and disabled by default.
X-Start9-Registry-Client controls product and signature representation, not authorization. Authentication and trusted-key enforcement remain in their existing owners. PEM encoding compatibility is independent of signature-label negotiation; raw database responses preserve their stored representation. StartWRT's VersionInfo.releaseNotes API remains a string through English selection at its boundary, while current StartOS and headerless promotion queries retain localized maps.
Description mismatch: the branch now targets start-registry 1.5.0, following current master, and StartWRT 1.4.0. Its fragments use release-notes, not user-facing. The description still names registry 1.3.0 and the old key; this review records the actual head without rewriting the author's description.
Implementation diff: +380 / −944 lines in 32 files (excludes lockfiles, tests, docs, release notes, and changelog).
Verification evidence
- Recorded author verification at
d484c113dhas 81 registry tests and 4 StartOS updater-signature tests passing. Earlier evidence covers router signatures, independent configuration settings, localized release bundles, and the shared call's headers and PEM normalization. These are earlier-head results, not fresh verification of this merge. - Existing Chromium captures cover the unchanged warning/help UI. The earlier K1 run at feature head
717ab734eused that head's test registry and a stubbedsysupgrade, not a firmware flash. Real StartOS-server registry integration and UI download progress remain unverified. The earlier full start-core run had 29 reported environment/load-related failures; no passing full current-head suite is claimed. - Current-head CI is queued, including Changelog fragments & versions, Run Automated Tests, Generated Artifacts, Formatting & Lockfiles, and product binary builds. The previous metadata failure is addressed in source, but its replacement check has not passed yet. OpenWrt image construction and deployment are skipped.
This review inspected code, merge results, and recorded evidence. No builds, tests, typechecks, linters, or formatters were run, and the PR branch was not changed.
Screenshots
Existing captures still represent the unchanged UI, using mock API data:
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Master advanced after approval. Head f51c987dd now conflicts with master 3c601cf98 in shared-libs/crates/start-core/src/update/diagnostic.rs, confirmed by git merge-tree --write-tree origin/master FETCH_HEAD (exit 1).
Please merge current master and request review on the resolved head. The conflicting import block should retain this PR's registry::client::Product import and omit registry::asset::RegistryAsset, which master's removal of the old signature-validation helper makes unused. Preserve master's persisted diagnostic signer policy and locally authenticated trust override, alongside this PR's shared registry call and product/capability header.
The previous approval covers the earlier clean integration, not this unresolved conflict. No PR-branch edits or pushes, builds, tests, typechecks, linters, or formatters were performed.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Approved at 58c721b002242580c7bd5d0eed8d07ff8bacc2ad. The diagnostic import conflict is resolved exactly as requested: Product remains and the obsolete RegistryAsset import is removed. Master's persisted diagnostic signer policy and locally authenticated trust override remain intact, alongside this PR's shared registry call and capability header. The router and registry implementation is unchanged from the previously reviewed head. The local merge check succeeds against fetched master 1983ff500, and GitHub reports MERGEABLE.
Brief
Registry clients declare their product and signature capabilities instead of comparing StartWRT versions with StartOS versions. Product mismatches fail explicitly; headerless compatibility remains, and legacy routers no longer see releases whose signatures they cannot verify. StartWRT removes its copied RPC, signature, download, and integrity implementations in favor of start-core's existing owners. Router-specific device information and image selection stay local. Normal and diagnostic StartOS update queries share the unsigned registry-call primitive.
Failed update checks show Failed to check for updates under System > Settings > General, independently of loading system information. Quad9 is removed from DoH help in five languages; the StartWRT 1.4.0 Important notice explains the limitation. A separate SquashFS test fix removes timezone-dependent listings.
Contracts and rollout: RegistryConfig.product is optional (startos or startwrt), defaulting to StartOS unless legacy YAML startwrt: true selects StartWRT. No storage migration is added. The removed --startwrt flag has no alias; deployments using it must adopt --product startwrt. An alias would preserve those invocations, and deployed usage remains the maintainer consideration raised in the description. The opt-in security feed remains independent and disabled by default.
X-Start9-Registry-Client controls product and signature representation, not authorization. PEM encoding compatibility remains independent of signature-label negotiation, raw database responses preserve stored representations, and authentication/trusted-key checks retain their existing owners. StartWRT's VersionInfo.releaseNotes response stays a string through English selection at its boundary; current StartOS and headerless promotion queries retain localized maps.
Description mismatch: the actual targets are start-registry 1.5.0 and StartWRT 1.4.0, with release-notes fragment metadata. The description still names registry 1.3.0 and user-facing, and does not describe the newer diagnostic-trust integration. This head now retains master's persisted signer-file policy rather than the removed seeded-only helper. This review records the actual implementation without rewriting the author's description.
Implementation diff: +380 / −944 lines in 32 files (excludes lockfiles, tests, docs, release notes, and changelog).
Verification evidence
- Earlier author evidence at
d484c113dreports 81 registry tests and 4 StartOS updater-signature tests passing. Earlier router, configuration, localized-notes, and local-HTTP tests cover the unchanged feature paths. These results do not establish current-head success or verify the newer persisted diagnostic policy in this integration. - Existing Chromium captures cover the unchanged warning/help UI. K1 evidence at feature head
717ab734eused that head's test registry and a stubbedsysupgrade, not a firmware flash. Real StartOS-server registry integration and UI download progress remain unverified. The earlier full start-core run had 29 reported environment/load-related failures; no passing full current-head suite is claimed. - Current-head Prettier and Conflict Markers pass. Changelog fragments & versions, Run Automated Tests, Formatting & Lockfiles, Generated Artifacts, dependency checks, and product binary builds are still running. OpenWrt image construction and deployment are skipped.
This review inspected code, merge results, and recorded evidence. No builds, tests, typechecks, linters, or formatters were run; the PR branch was not changed.
Screenshots
Existing captures still represent the unchanged UI, using mock API data:
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Master advanced after approval. PR head 58c721b00 now conflicts with fetched master 2dcbc75cd; git merge-tree --write-tree origin/master FETCH_HEAD exits 1 in six StartWRT files:
projects/start-wrt/backend/ctrl/Cargo.tomlprojects/start-wrt/backend/ctrl/src/lib.rsprojects/start-wrt/backend/ctrl/src/registry/mod.rs(modified on master, deleted here)projects/start-wrt/backend/ctrl/src/registry/os.rs(modified on master, deleted here)projects/start-wrt/backend/ctrl/src/system.rsprojects/start-wrt/backend/ctrl/src/update.rs
Please merge current master and request review on the resolved head. Master's #4594 also replaces the router's copied signature/asset types with start-core's owners, changes signatures to SignatureMap, and adds whole-file firmware verification and regression tests. Integrate that behavior and its tests with this PR's product/capability headers, shared registry client, propagated update-check errors, and English release-note projection. Do not restore the deleted parallel modules merely to resolve the modify/delete conflicts; retain one production owner for shared types and behavior.
The earlier approval covers the previous clean integration, not these unresolved conflicts. This is the reviewer session: no PR-branch edits or pushes, builds, tests, typechecks, linters, or formatters were performed.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
…abilities Takes #4594's start-core owners for StartWRT's registry types and keeps this branch's single `registry.rs` and shared `registry::client::call`; master's parallel `registry/mod.rs` and `registry/os.rs` are not restored. From #4594: `SignatureMap`, `validate_all`, the GET-only `download_firmware` with streaming size and hash verification, the whole-file `verify_file` before sysupgrade, `fetch_versions`, and its update tests. The branch's four signature tests move into `update/tests.rs`. Master's `call_registry_rpc` envelope test becomes a test of the router's version query through the shared client: method, parameters, product and capability header, and device-info header. StartWRT's registry queries now take StartOS's transport as it is: the request carries no `"jsonrpc": "2.0"` member, and the response must be a bare `application/json`. Start9 registries send no charset, and StartOS clients already rely on both.
58c721b to
ad5ba79
Compare
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
The six merge conflicts are resolved at ad5ba79b3, and the head merges cleanly with current master ad6d9a9f1. The shared types, SignatureMap, streaming firmware verification, whole-file verification before sysupgrade, and both sets of firmware/signature regression tests are retained correctly.
One transport regression remains in update::fetch_versions' switch to the shared client. The removed router client sent "jsonrpc": "2.0" and accepted Content-Type: application/json; charset=utf-8. The shared middleware::auth::signature::call_remote_with_client does neither: its serialized RpcRequest lacks the version member, and its response match accepts only the exact bare content type. A registry enforcing the JSON-RPC 2.0 envelope rejects the request; a registry or proxy returning JSON with a charset now makes an otherwise successful version query fail. These were supported exchanges on master, explicitly covered by registry_rpc_uses_shared_envelope_and_preserves_json_charset_support; replacing that test with one accepting an unversioned request and returning bare JSON removed both assertions.
The merge commit documents this narrowing, but existing StartOS clients sharing those limitations does not preserve StartWRT's supported behavior. Keep the shared client and repair its transport owner rather than restoring a parallel router implementation.
The proposal adds the version member before serialization/signing, parses the response media type through the existing MIME dependency, and restores both checks in the router's production-path fixture while retaining its new product/capability/device-header assertions. This changes the common transport for signed and unsigned callers; signing still covers the final serialized body.
Proposed changes: ad5ba79...proposal/4445
No builds, tests, typechecks, linters, or formatters were run; the author verifies any adopted proposal. Current-head CI is still pending, with Conflict Markers passing. The PR branch is untouched.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Applied your proposal unchanged ( Checked before adopting it: rpc-toolkit deserializes requests into yajrc's Tests and a K1 bench of this head are in the PR body. |
helix-white
left a comment
There was a problem hiding this comment.
The transport request is resolved at 4022a6725: its tree matches proposal/4445 exactly. The JSON-RPC version member is added before serialization/signing, and response parsing accepts the JSON media type with parameters. The router fixture again checks the version member and charset-qualified response alongside the client/device headers. I read the recorded 1303 passing core tests, 814 router tests plus 21 UCI tests, and this head's K1 bench evidence; I did not rerun them.
Approval remains blocked by the base integration already noted in the description. git merge-tree --write-tree origin/master HEAD exits 1 against fetched master 090247047 with conflicts in:
projects/start-wrt/web/src/app/i18n/dictionaries/de.tsprojects/start-wrt/web/src/app/i18n/dictionaries/en.tsprojects/start-wrt/web/src/app/i18n/dictionaries/es.tsprojects/start-wrt/web/src/app/i18n/dictionaries/fr.tsprojects/start-wrt/web/src/app/i18n/dictionaries/pl.ts
Please merge current master, retain both sets of strings with unique and consistent IDs across all five locales, and request review on the resolved head. No further transport change is requested.
No PR-branch edits or pushes, builds, tests, typechecks, linters, or formatters were performed by this reviewer.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
…abilities # Conflicts: # projects/start-wrt/web/src/app/i18n/dictionaries/de.ts # projects/start-wrt/web/src/app/i18n/dictionaries/en.ts # projects/start-wrt/web/src/app/i18n/dictionaries/es.ts # projects/start-wrt/web/src/app/i18n/dictionaries/fr.ts # projects/start-wrt/web/src/app/i18n/dictionaries/pl.ts
|
Merged master
|
helix-white
left a comment
There was a problem hiding this comment.
Approved at 3ed9d790dfedc8b99fe01dea95deb5906d473ec7. Both outstanding requests are resolved: the common transport retains the adopted JSON-RPC/media-type repair, and the five dictionaries preserve master's backup strings at 602–603 while consistently assigning the update warning ID 604. The template looks up its English string, so no numeric consumer needs changing. The relevant backend paths are unchanged from 4022a6725. The local merge check against master b053ae918 succeeds, and GitHub reports MERGEABLE.
Brief
Registry clients declare their product and signature capabilities instead of comparing StartWRT versions with StartOS versions. Product mismatches fail explicitly; headerless compatibility remains, and legacy routers no longer receive releases whose signatures the compatibility downgrade leaves unsigned.
StartWRT removes its remaining copied registry RPC and device-info types and uses start-core's production owners, extending the shared-type migration already on master. Normal and diagnostic StartOS update queries use the same unsigned registry-call primitive. Router-specific device information and image selection remain local. Master's GET-only firmware downloader is retained because the shared HTTP source requires HEAD; streaming size/hash verification and whole-file verification before sysupgrade are preserved.
The accepted transport proposal restores "jsonrpc": "2.0" and charset-qualified JSON response support in the common transport, rather than retaining a separate router client. Signed and unsigned StartOS/CLI callers gain the same interoperability; signing still covers the final serialized body. Product/capability negotiation controls representation, not authorization. PEM compatibility, raw database representations, connected-registry checks, and normal/diagnostic update trust enforcement retain their existing owners.
Failed update checks show Failed to check for updates under System > Settings > General, independently of loading system information. The warning is translated into all five locales. Quad9 is removed from DoH help, with its Important warning in the pending StartWRT 1.4.0 notes. A separate SquashFS test fix removes timezone-dependent listings. The pending registry release is 1.5.0.
Contracts and deployment: RegistryConfig.product is optional (startos or startwrt), defaulting to StartOS unless legacy YAML startwrt: true selects StartWRT. No storage migration is added; the opt-in security feed remains independent and disabled by default. The old --startwrt CLI flag has no alias, so deployments using it must switch to --product startwrt. An alias would preserve those invocations; deployed usage remains the maintainer consideration raised in the description. StartWRT's VersionInfo.releaseNotes API stays a string through English selection at its boundary, while current StartOS and headerless promotion queries retain localized maps.
Implementation diff: +327 / −294 lines in 28 files (excludes lockfiles, tests, docs, release notes, and changelog).
Recorded verification
- On
3ed9d790d, the author reportscheck:i18n:wrtpassing and the same 569 distinct IDs across all five dictionaries. Inspection confirms both the backup strings and update warning survive the resolution. - On predecessor
4022a6725, the author reports 1303 core tests passing, with 11 ignored, plus 814 router and 21 UCI tests passing. These include the production router query's version/header/charset assertions and firmware signature, mirror, and integrity cases. Generated bindings/man-page/MCP checks reported no drift onad5ba79b3; the transport repair changes no exported type. - The K1 bench used router build
4022a6725against a local StartWRT registry, a firmware server refusing HEAD, and a stubbedsysupgrade. CLI and UI RPC queries listed releases; a valid download reached the stub. Corrupt bytes, missing files, and tampered signatures were rejected without invoking it. Charset-qualified responses succeeded. Smoke checks passed before and after restoring configuration. This was not a firmware flash and was not repeated after the base merge. - Existing Chromium evidence covers the unchanged warning/help UI. Real StartOS-server registry integration, UI download progress, and a real firmware flash remain unverified.
- Current-head Prettier, Conflict Markers, and Dependency Licenses pass. Changelog fragments & versions, Run Automated Tests, Formatting & Lockfiles, Generated Artifacts, and product binary builds are still running. No green full-current-head CI claim is made.
This review inspected code and existing evidence only. No builds, tests, typechecks, linters, or formatters were run, and the PR branch was not changed.
Screenshots
Existing mock-API captures still represent the changed UI:
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
Master advanced after approval. Head 3ed9d790d now conflicts with fetched master 27d68b79f in projects/start-registry/ARCHITECTURE.md, confirmed by git merge-tree --write-tree origin/master FETCH_HEAD (exit 1).
Please merge current master and request review on the resolved head. Retain master's new GET / marketplace-redirect entry alongside this PR's expanded POST /rpc/{*path} product/capability documentation; neither replaces the other.
The existing transport and dictionary fixes remain accepted, but a conflicted head cannot be approved. No PR-branch edits or pushes, builds, tests, typechecks, linters, or formatters were performed by this reviewer.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Integration follow-through: #4598 merged as 4980816. Registry test fixtures now live in shared-libs/crates/start-core/src/registry/test_utils.rs, mounted as context::test_utils. Package ingestion, OS promotion/ingestion, and #4593’s co-signing regression all use that shared context fixture; the package-local fixture was removed. When integrating master, preserve this shared owner and apply the RegistryContextSeed product-setting adaptation there rather than restoring the old package-local helper. Signature ingestion also uses master’s shared SignatureMap alias. |
…abilities # Conflicts: # projects/start-registry/ARCHITECTURE.md # projects/start-wrt/web/src/app/i18n/dictionaries/de.ts # projects/start-wrt/web/src/app/i18n/dictionaries/en.ts # projects/start-wrt/web/src/app/i18n/dictionaries/es.ts # projects/start-wrt/web/src/app/i18n/dictionaries/fr.ts # projects/start-wrt/web/src/app/i18n/dictionaries/pl.ts # shared-libs/crates/start-core/src/registry/package/ingestion_tests.rs
|
Merged master
Master's OS promotion calls the registry through
|
helix-white
left a comment
There was a problem hiding this comment.
Approved at c06b7aff7e761b52b312c09c90e15b75866c4c1b. All seven conflicts are resolved: both registry documentation entries remain, warning ID 604 coexists with master's strings in every locale, and registry tests use the shared fixture with product: Product::StartOs rather than restoring the package-local duplicate. OS-ingestion/co-signing tests and named-profile promotion coverage are retained. The transport repair remains intact. The local merge check against master 00be0f586 succeeds, and GitHub reports MERGEABLE.
Brief
Registry clients declare their product and signature capabilities instead of comparing StartWRT versions with StartOS versions. Declared product mismatches fail explicitly; headerless compatibility remains, and legacy routers no longer receive releases whose signatures the compatibility downgrade leaves unsigned.
StartWRT removes its remaining copied registry RPC and device-info types, extending master's migration to start-core's signing/asset owners. Normal and diagnostic StartOS update queries share the unsigned registry-call primitive. Router-specific device information and image selection remain local. Master's GET-only firmware downloader is retained because the shared HTTP source requires HEAD; streaming size/hash verification and whole-file verification before sysupgrade remain intact.
The accepted transport proposal restores "jsonrpc": "2.0" and charset-qualified JSON response support in the common transport. Signed and unsigned callers share the repair, and signatures still cover the final serialized body. Product/capability negotiation controls representation, not authorization. PEM compatibility, raw database representations, connected-registry checks, and update trust enforcement retain their existing owners. Master's OS promotion uses the already-header-aware package promotion transport.
Failed update checks show Failed to check for updates under System > Settings > General, independently of loading system information. The warning is translated into all five locales. Quad9 is removed from DoH help, with its Important warning in the pending StartWRT 1.4.0 notes. A separate SquashFS test fix removes timezone-dependent listings.
Contracts and rollout: RegistryConfig.product is optional (startos or startwrt), defaulting to StartOS unless legacy YAML startwrt: true selects StartWRT. No storage migration is added; the opt-in security feed remains independent and disabled by default. The old --startwrt CLI flag has no alias: deployments using it must switch to --product startwrt. An alias would preserve those invocations; deployed usage remains the maintainer consideration raised in the description. StartWRT's VersionInfo.releaseNotes API stays a string through English selection at its boundary; current StartOS and headerless promotion queries retain localized maps.
The registry target is now 1.6.0: origin's stable 1.5.0 tag is published, and the pending product-setting fragment requires the next minor. StartWRT remains 1.4.0. The registry manifest and lockfile agree.
Implementation diff: +328 / −295 lines in 29 files (excludes lockfiles, tests, docs, release notes, and changelog).
Recorded verification
- On this head, the author reports
make start-core-testpassing 33 + 1357 + 3 tests with zero failures and 14 ignored, including all 10 cases using the shared registry context.make start-wrt-testpasses 899 router and 37 UCI tests. The i18n check, core formatting check, affected-product version checks, and scoped Prettier checks also pass. The five dictionaries contain the same 594 distinct IDs. - Earlier K1 evidence uses router build
4022a6725against a local StartWRT registry, a firmware server refusing HEAD, and a stubbedsysupgrade. Valid downloads reach the stub; corrupt bytes, missing files, and tampered signatures fail without invoking it. Charset-qualified responses succeed. This was not a firmware flash and was not repeated for the latest merge. - Existing Chromium captures cover the unchanged warning/help UI. Real StartOS-server registry integration, UI download progress, and a real firmware flash remain unverified.
- Current-head Prettier, Conflict Markers, and Dependency Licenses pass. Changelog fragments & versions, Run Automated Tests, Formatting & Lockfiles, Generated Artifacts, and product binary builds are still running. No full-current-head CI success is claimed.
This review inspected code and existing evidence only. No builds, tests, typechecks, linters, or formatters were run, and the PR branch was not changed.
Screenshots
Existing mock-API captures still represent the changed UI:
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol



Closes #4389
Closes #4390
Closes #4431 (its third item, the update check that fails silently; the other items are not planned, see the issue)
Refs #4383
Supersedes #4425 and #4427, which are folded in here.
Status: merges master at
00be0f586. That includes #4594, which moved StartWRT onto start-core's registry types on its own; #4599, whose backup strings took StartWRT dictionary IDs 602 and 603; #4598, which moved the registry test context into the sharedregistry/test_utils.rs; and the start-registry 1.5.0 release. Final review is with @dr-bonez.Decisions
--startwrtis removed, with no alias. Registry config now takesproduct: startos|startwrt. YAML that setsstartwrt: truestill works and is read asproduct: startwrt. A deployment that passes--startwrton the command line must switch to--product startwrt. An alias would avoid that change but keep two spellings of one setting. Is any deployed registry started with the flag?Summary
A registry could not tell a StartWRT router from a StartOS server. It compared the router's
os.versionwith StartOS 0.4.0.3, so a StartWRT 1.2.1 router got the Ed25519ph label, which it could not parse. Its update check then returned an empty list, and the UI reported the router as up to date (#4389, #4390).X-Start9-Registry-Client:product=startos&cap=ed25519phfrom StartOS (including diagnostic mode),product=startwrt&cap=ed25519phfrom StartWRT, andcap=ed25519phfrom start-cli. The registry rejects a client that declares another product (This registry serves StartWRT, not StartOS). A client that declaresed25519phgets current labels. A client that sends no header is handled as before: legacy labels on a StartWRT registry, and the 0.4.0.3 rule on a StartOS registry. StartOS version rules no longer run on a StartWRT registry.system.newer-versionsnow returns its error. System > Settings > General shows Failed to check for updates, and system information still loads. The string is translated into all five locales.release-notesselection and carry German, Spanish, French, and Polish companions. Highlights and Security sections are generated under master's localized-notes convention. Summary-only note files are removed; the Quad9 Important warning remains.unsquashfsto UTC. It failed on any host west of UTC.Diff against master
00be0f586: +722 / −373 lines in 30 files, excluding lockfiles, test files, docs, release notes and changelog. Inline unit tests are counted, chiefly in start-core'sregistry/client.rsandregistry/device_info.rs.Approach
StartWRT's registry client was a hand copy of start-core's: RPC call, device info, response types, signature parsing, download and hash check. The two copies drifted, which caused #4390. Master's #4594 already moved the router onto start-core's
OsVersionInfo,RegistryAsset,SignatureMap, signature types and signer policy. This PR removes the rest of the copy: the router'sregistry/module, with its JSON-RPC client andDeviceInfoloader, and the productionblake3andform_urlencodeddependencies.blake3remains a dev-dependency for the auth and update tests. Only router-specific code stays in StartWRT: fillingDeviceInfowith the router's version, compat range and board,update::asset_for_platformimage selection, and #4594'sdownload_firmware. That download needs only GET, which start-core's HTTP source cannot replace because it requires HEAD. It checks size and hash while writing, and the whole file is checked again beforesysupgrade.The shared transport,
call_remote_with_client, keeps the two things the router's own client did that StartOS's did not: every request carries"jsonrpc": "2.0", and a JSON response is accepted with acharsetparameter (the media type is parsed, and its essence must beapplication/json). StartOS, its diagnostic mode, and start-cli's signed calls share that code, so they gain both. rpc-toolkit servers ignore the member, and a request signature covers the body as sent, so it includes the member.start_core::registry::client::callis now the single unsigned registry call: therpc/v0path plus the client and device-info headers. StartOS's server and its diagnostic update path each had their own copy of that setup and now use it too.The merge with master's key-storage change preserves PEM normalization in this shared unsigned call and in the signed CLI/promote paths. Response key encoding remains independent of signature-label negotiation: StartOS follows the existing 0.4.0.5 boundary, while StartWRT and unidentified clients receive PEM. Raw
db.*responses retain their stored encoding and signature labels. The capability header controls representation, not authorization; existing authentication remains in place.The localization merge preserves release-note maps for current StartOS and headerless CLI promotion queries. Known StartOS clients before 0.4.0.5 and string-only StartWRT clients receive English notes. StartWRT keeps the shared
OsVersionInfoand uses its existingLocaleString.localized_for("en_US")selector at thesystem.newer-versionsboundary, preserving the UI's string response without restoring the copied registry type. ItsVersionInforesponse still has stringversionandreleaseNotesfields, requiring no consumer schema change.RegistryConfig.productis an optionalstartos/startwrtsetting; absence resolves to StartOS unless legacystartwrt: trueselects StartWRT. Existing configuration remains readable, and this PR adds no storage migration. The configuration merge retains master's opt-insecurity-notificationssetting, disabled by default, alongsideproduct. Both CLI/YAML controls and their translation keys remain independent; the README retains both options. No security-feed lifecycle or authorization behavior is changed by the resolution.The trusted-keyring merge retains master's implementation unchanged. Its device-asset signer-selection test is kept alongside this PR's compatibility tests; resolving their adjacent insertion is the only manual conflict repair.
Testing
c06b7aff7: master00be0f586merged into3ed9d790d): three files conflicted. In start-registry'sARCHITECTURE.md, master'sGET /marketplace-redirect entry is kept above this PR'sPOST /rpc/{*path}description. In the five StartWRT web dictionaries, feat(start-wrt): keep reservations and published ports per profile #4466 had appended IDs 605–632 and left 604 to this PR; both sides are kept, and the five dictionaries carry the same 594 IDs with no duplicates. Inpackage/ingestion_tests.rs, master's version is taken: fix(registry): preserve OS signatures during promotion #4598 moved the registry test context into the sharedregistry/test_utils.rs, so the product setting is applied there (product: Product::StartOsin place ofstartwrt: false). start-registry 1.5.0 shipped after the last merge, so the pendingminorfragment now makes the version 1.6.0 (Cargo.tomlandCargo.lock). Master's OS promotion reaches the registry throughpackage::promote::call_registry, which already sends the client header.make start-core-test: 33 + 1357 + 3 pass, 0 fail, 14 ignored, including all 10 tests built on the shared context (package and OS ingestion, OS asset signing, redirect).make start-wrt-test: 899startwrt-coreand 37ucieditpass.npm run check:i18n:wrt,make start-core-format-check,check-versionfor every affected product, and Prettier on the resolved files pass. No bench run: the router-side code is unchanged since the4022a6725bench.3ed9d790d(masterb053ae918merged into4022a6725): only the five StartWRT web dictionaries conflicted, where feat(start-wrt): encrypt backups with the admin password #4599 and this PR had both appended strings after ID 601. The merge keeps feat(start-wrt): encrypt backups with the admin password #4599's backup strings at 602 and 603 and moves Failed to check for updates to 604; the settings page looks it up by its English text, so no other file changes.npm run check:i18n:wrtpasses, and all five dictionaries carry the same 569 IDs with no duplicates. The rest of master merged without conflict and is left to CI.4022a6725(helix-a's transport proposal on the master mergead5ba79b3, which includes fix(start-os): send sideload signatures before uploading #4594):make start-wrt-test: 814startwrt-coreand 21ucieditpass. They include fix(start-os): send sideload signatures before uploading #4594's update tests (metadata and signature encodings, format preference, GET-only mirror download with byte progress, rejection of corrupt, short and long files and of unavailable mirrors), this PR's four signature tests, and a test of the router's version query through the shared client: thejsonrpcmember, method, parameters, product and capability header, device-info header, and a charset-qualified response. That test fails onad5ba79b3.make start-core-test: 1303 pass, 0 fail, 11 ignored.make start-wrt-rpc-bindings-checkandmake generated-artifacts-check(man pages, TS bindings, MCP tools) reported no drift on thead5ba79b3tree;4022a6725changes no exported type.product: startwrtregistry. The firmware server refuses HEAD, andsysupgradeis a stub:hash sum mismatch. A missing file fails after every URL is tried. A tampered signature is rejected before any download. In each casesysupgradeis never called."jsonrpc": "2.0", which the registry accepts, and a response typedapplication/json; charset=utf-8lists the same releases.bench.sh smokepasses before and after restoring the router's configuration.d484c113d): 81 selected registry tests and 4 StartOS updater-signature tests pass throughhelix-build. They include device-asset signer selection, product/PEM/signature compatibility, and normal/diagnostic update trust enforcement. Pinned formatting of the resolved file and PR whitespace checks pass. The merge contains base integration and conflict resolution only; no separate implementation change was added.42a34931d): applied helix-a's proposal unchanged for the CI-reported import/assertion formatting in StartWRT'ssystem.rs. The pinnedmake start-wrt-format-checkpasses across all three router crates; whitespace and merge checks pass. Formatting & Lockfiles subsequently passed in CI on that head. No behavior changed in the repair, so its existing behavioral evidence was reused.ed8fcb1ba): verified all 80 selected core registry tests and 4 StartWRT update-signature tests throughhelix-build. The registry run includes both settings' existing tests, a new combined CLI/YAML merge test, disabled-feed rejection, security-feed WebSocket behavior, product/capability negotiation, and legacy-note handling. The new test initially failed on a fixture missing the required registry hostname; the corrected fixture passes. Scoped pinned rustfmt and Prettier checks pass, as do affected-product fragment/version validation and complete localized release-bundle compilation. The rendered StartWRT 1.4.0 notes retain the Quad9 Important warning. Mergeability and PR whitespace checks pass.30433ab2e): throughhelix-build, 62 core registry tests, 4 signature-compatibility tests, 20 update-filtered tests, and StartWRT's 4 update, 1 registry, and 15 auth tests pass (106 total). The local HTTP fixture exercises the production unsigned registry call for both products, checking PEM parameters, product/capability headers, and optional device information. Middleware tests cover independent encoding/signature decisions and raw database responses. Scoped pinned rustfmt and Taplo checks pass, as do mergeability and whitespace checks.make start-wrt-testpassed 791 tests, including fix(start-wrt): accept Ed25519ph-labelled registry signatures in update check #4425's signature cases against start-core's types. The scoped frontend, i18n, RPC-bindings drift, and formatting checks passed. These were not repeated for the backend-only merge resolution. The earlier full start-core run had 29 failures: 28 attributed to missingmksquashfs/unsquashfs/node, and one load-sensitive SNI test that passed alone. No passing full post-merge suite is claimed.717ab734e, against a test registry running that head'sregistrybox. For the success path,sysupgradewas replaced by a stub, because the K1 accepts a non-image file and would flash it.product: startwrtregistry the router lists every release. An update to an Ed25519ph-signed release validates, downloads, checks its hash, and reaches thesysupgradestub.hash sum mismatch, andsysupgradeis never called. A signature copied from another release is rejected before download. A missing file fails at download.product: startosregistry refuses the router, both through the CLI and through the UI's RPC. An unreachable registry surfaces an error. The production StartWRT registry still returns an empty list without error.Not verified end to end: registry calls from a real StartOS server, UI download progress, and a firmware flash; the K1 runs used a stubbed
sysupgrade.Screenshots
Mock API data:
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Identity: helix-b