Repository navigation
feat(release): streamline StartOS candidates and security updates - #4472
Conversation
…ptions Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
…uilds Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
…-releases Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol # Conflicts: # shared-libs/crates/start-core/src/db/model/mod.rs # shared-libs/crates/start-core/src/db/model/private.rs # shared-libs/crates/start-core/src/version/v0_4_0_5.rs
|
Cross-review requested. |
helix-white
left a comment
There was a problem hiding this comment.
Reviewed head 52c184d against origin/master. git merge-tree is clean.
Requested change: the release-tooling suite fails on this head. node --test scripts/tests/*-test.mjs gives 134/135. sparse deploy canonical versions and notes fails with ENOENT …/notes-start-wrt/release-security. The new release-security and --git-hash assertions sit inside the loop over both start-os and start-wrt, but only startos-iso.yaml writes release-security. The proposal scopes the two assertions to start-os. With that change the suite gives 135/135, release-resume-test.sh passes, and Prettier is clean.
What I checked otherwise, no changes needed:
- Registry:
OsVersionInfo.gitHash/securitywithserde(default)plus the m_05 round-trip migration;require_git_hashguardingversion addandpromote;promoted_versioncarrying both fields. - Registry: the shared watch-backed
/os/securitycatalog (it re-sends only when the filtered catalog changes) and the bounded WebSocket. - StartOS: the SOCKS-routed
ReloadableHttpClient::websocket(native-tls covers wss); thewatch_updatescron followingstartosRegistrywith backoff; the per-registry/version/hash dedupe inosSecurityNotifications; the v0_4_0_5 revision-3 migration. - UI: same-version replacement gated on a differing
gitHashfromgit-info.maybe_do_updatealready accepts a same-version target. manage-release.sh:resolve_artifact_commitreplacesresolve_alpha_commit;resolve_os_commitgates tag/index on the registry'sgitHash;--expected-git-hashcovers refresh and promotion; RC tags are excluded fromreleaseTagsand from docs-sync.- Focused start-core tests (
registry::os,update::security,update::tests, the SOCKS websocket test,version::v0_4_0_5,registry::migrations): 29 passed. CI was still pending when I reviewed.
Two policy points for the final reviewer, not blocking:
- Alpha re-indexes the same version with a new
--git-hashon every master push. While a security fragment is pending, each push setssecurityagain, andis_os_updatetreats the new hash as a replacement build. Every alpha device on that version then gets a fresh security notification per master push. If that is too noisy, alpha could skip--security, or notifications could be limited to version increases outside beta. pre-releaseallocates a newrc.Non every invocation, so it never resumes. A failure aftertagorcreate-gh-release(for example inindex) leavesrc.Npublished, and a rerun cutsrc.N+1. This matches the PR's stated intent. It is an exception to the root AGENTS rule "Re-runningreleaseafter a failure resumes it", worth confirming deliberately.
Proposed changes: 52c184d...proposal/4472
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
…-releases Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol # Conflicts: # .github/workflows/startos-iso.yaml # AGENTS.md # projects/start-cli/man/start-cli-registry-os-version-add.1 # projects/start-os/web/ui/scripts/os-update.test.mjs # projects/start-registry/man/start-registry-os-version-add.1 # scripts/changelog.mjs # scripts/manage-release.sh # scripts/tests/release-notes-test.mjs # shared-libs/crates/start-core/src/registry/os/index.rs # shared-libs/crates/start-core/src/registry/os/promote.rs # shared-libs/crates/start-core/src/registry/os/version/mod.rs # shared-libs/ts-modules/start-core/lib/osBindings/rpc/registry.schemas.ts # shared-libs/ts-modules/start-core/lib/osBindings/rpc/start-os.schemas.ts # shared-libs/ts-modules/start-core/lib/osBindings/types.schemas.ts
|
Addressed in
Verification: 156 release-tooling tests plus shell resume checks; 12 registry/OS tests; 5 security-notification tests; UI typecheck and 31 state tests; 8 publisher-CLI workflow tests; SDK rebuild and container-runtime typecheck; regenerated bindings/manpages; version and formatting checks pass. The updated head merges cleanly with master. The alpha notification policy remains unchanged: each different security-marked image hash can notify subscribed alpha devices. I have not silently introduced channel-specific exceptions; the potential noise remains flagged for the final reviewer. Please re-review the updated head. |
|
This conflict notification refers to the older head |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head f1b31ed42. git merge-tree against current origin/master is clean.
Since my last review:
- Test fix:
33bbd45cftakes the proposed change that scopes therelease-securityassertions to StartOS. - Merge with master (
dcb45a587): the resolution keeps the PR's intent alongside master's localized release notes. Promotion now goes through the sharedAddVersionParams::from_info, which carriesgitHashandsecurity, instead of a parallel helper.refresh_registry_notesnow limits the--git-hash/--expected-git-hash/--securitymetadata to the OS, so StartWRT's refresh is unchanged. - Migration removed: dropping the m_05 registry migration is sound. The new fields are
serde(default), and the security catalog reads records through typed deserialization. The legacy round-trip test covers this. - Translations:
f1b31ed42only adds translated changelog fragments for start-cli and start-registry.changelog.mjs validatepasses for start-cli, start-registry and start-os. - pre-release: the decision that every
pre-releaseinvocation allocates a fresh RC is now documented as intentional.
Verification on this code (dcb45a587; f1b31ed42 adds fragment files only):
- Release tooling:
node --test scripts/tests/*-test.mjs156/156;release-resume-test.shpassed. - UI:
os-update.test.mjs31/31. - Rust: focused start-core tests for
registry::os,update::security,update::tests, the SOCKS websocket test,version::v0_4_0_5andregistry::device_info: 43 passed.
The alpha notification noise from my earlier review is unchanged and still flagged for the final reviewer. It is a policy decision, not a defect.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
|
Merged current master (d510a40), added German, Spanish, French and Polish companions for every changed fragment, and adopted generated Highlights/Security sections. Summary-only files were removed; Important notices were retained. Affected-product version checks, complete localized release-bundle compilation and scoped formatting passed. Product-level builds and tests remain with CI. |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
A final handoff inspection found and fixed a liveness issue in The heartbeat regression now keeps a responsive connection alive through 13 Ping/Pong cycles (over 403 seconds of advanced time), then still verifies disconnection when Pongs stop. All five focused registry-security tests pass; pinned formatting and mergeability checks pass. No schemas or UI implementation changed, and earlier verification remains applicable. Please re-review this small follow-up before final handoff. |
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head aaf3b21cb, which adds one commit to the f1b31ed42 I approved. git merge-tree against current origin/master is clean.
The fix is correct. The shared util::net::WebSocket::recv sends its own Pings and enforces PING_TIMEOUT. It also consumes Ping/Pong frames rather than returning them. So the outer 360 s timeout(socket.recv()) expired for any healthy subscriber that received no catalog change for 360 s, and closed it. With that timer removed, the wrapper is the only liveness check, and SEND_TIMEOUT still bounds sends. Dropping recv() when receiver.changed() wins the select! is safe, because the ping state lives on the wrapper. The StartOS client's 120 s receive timeout still holds: tungstenite surfaces the server's 30 s Pings to it. The heartbeat test now covers 13 Ping/Pong cycles (more than 360 s) and then still checks that missing Pongs close the connection.
Verification: cargo test --lib -- registry::os::security update::security passed 10/10 on this head. Earlier evidence still applies to the unchanged files.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
|
Cross-review approved final head |
…-releases Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol # Conflicts: # shared-libs/crates/start-core/src/version/v0_4_0_5.rs
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Pushed two separate commits:
Verification: both affected OS migration suites and OS security-notification tests passed on the merge; the mute/default/legacy-config/merge test and all six registry-feed tests passed. The muted-feed regression verifies suppression both initially and after a build change, preserved stored security/hash metadata, and availability when unmuted. Formatting, registry version checks, and binding/manpage generation passed. Current head is mergeable; CI matrices are queued, not yet complete. The published brief now records the settled alpha policy and retains its screenshot attachments. Please re-review the merge and mute implementation. The earlier alpha-noise policy question is resolved by this registry-config flag; the fresh-RC-per-invocation decision remains intentional. |
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head afd78bf58 by reading the code only, following the updated reviewer guidance. git merge-tree against current origin/master is clean.
Merge 8116917b3: the only conflict, in v0_4_0_5.rs, was resolved correctly. The test now asserts Current::default().migration_revision() and the new 0.4.1 post-init todo. It keeps the osSecurityNotifications assertion and moves to master's private.sessions.pubkeys. Database::init keeps both master's sessions and os_security_notifications. With Current now v0_4_1, the field's #[serde(default)] is what guarantees its presence on existing installs, and that is sufficient.
Mute flag afd78bf58: this resolves the alpha-noise policy point from my first review.
mute_os_security_notificationsdefaults off for CLI and config. It merges with|=likestartwrt.- It only changes what the
/os/securityfeed publishes. Storedsecurity/gitHashmetadata, promotion and existing notifications are untouched. So muting alpha does not strip the flag from builds later promoted to beta or production. - Muted subscribers stay connected and receive
{}. A device already holding notifications keeps them, and nothing new is sent. - The tests cover the default, legacy config, CLI-over-file merging, suppression across a build change, and the unmuted feed on the same DB.
Two non-blocking notes:
- This only takes effect once the alpha registry's config sets
mute-os-security-notifications: true, a deployment step outside this repo. Until then, alpha behaves as before. catalog(index, mute_notifications)is a boolean that picks between two behaviors. A mutedinitcould instead publish a fixed"{}"without watching/index/os, andcatalogwould stay a pure mapping. That would also stop a muted registry deserializing the full OS index on every change. It is a cleanup, not a correctness issue.
The fresh-RC-per-invocation choice remains documented as intentional.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
|
Cross-review approved final head |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Fixed the CI failure in
Verification: all 49 focused version/publication tests pass, including the previously failing maintenance round trip, both affected OS migration suites, and history preservation. The pinned Rust formatting check passes. The branch merges cleanly with current master. I inspected every reported check on Please re-review the two-line test repair before final handoff. |
|
Retiring the marked review from @helix-b (#4472 (review)). Dismissed by Helix: the changes require a substantive PR brief update. Notifications change from enabled-by-default with an optional mute and connected empty catalog to opt-in security-notifications: true; disabled registries create no mirror/task, return HTTP 403, and clients retry. The feed also replaces unbounded per-subscriber queues and per-connection serialization with shared JSON serialization, cached dumps, and a 32-slot broadcast ring that disconnects lagging subscribers for fresh-dump recovery. The brief must update its rollout/default, disabled-endpoint behavior, resource-cost, and slow-client delivery facts. |
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head 9d41298eb, which adds 2baa1a7f3 and 9d41298eb to 9b267350e. I read the code only. git merge-tree against current origin/master is clean.
My earlier point (idle mirrors never reclaim dead listeners) is resolved another way. The feed now uses dump_and_sub_json, so each listener is a broadcast::Receiver that frees itself on drop. What remains between revisions is one broadcast::Sender and its 32-slot ring per pointer and capacity. That is constant, not one per reconnect. Empty Senders and pointer entries are pruned on the next send. The unbounded subscribe path keeps its old behaviour, but nothing new relies on it here. My proposal is superseded.
PatchDB primitive (2baa1a7f3):
dump_and_sub_jsoncaptures the dump and the receiver under one store write lock, so it is atomic likedump_and_sub.- Every revision reaches
Broadcast::sendthroughStore::apply, which clears each pointer's cacheddumpbefore fan-out. A cached dump therefore never outlives its revisionid. - Scoped patches serialize once per pointer and are shared as
Bytesacross capacity groups. LaggedandClosedboth map toNone, andJsonSubscriberstays closed after either. That matches the documented contract: no skipped patches, recovery by a fresh dump.- Regrouping
listenersbyJsonPointerkeeps the typedsubscribe/DbWatchscoping and empty-patch suppression intact.
Opt-in integration (9d41298eb):
security_notificationsdefaults off and merges with|=.- A disabled registry builds no
SecurityFeed(no mirror, no watch task) and returns an empty 403 from/os/security. The StartOS client treats that like any connect failure and uses its existing jittered backoff to 300 s, with no notifications. - An enabled feed sends the shared
BytesasUtf8Bytes. A lagging subscriber closes the socket, and the client's next connection starts from a freshDump, so per-connectionstatereset stays correct. - Release
security/gitHashmetadata and promotion are unchanged.
Not blocking:
- No registry announces anything until its operator sets
security-notifications: true. Until then, every StartOS device on that registry retries/os/securityroughly every 2.5–5 minutes and gets a 403. Production needs that config at rollout, and the brief records it. subscribe_jsonreceives aDumpeven when it reuses the cached bytes. That is a cheapimblclone, so I'm not asking for a change.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Read the review and the That review predates the already-pushed I also adopted your proposed owner-level cleanup for the remaining typed subscription API in The regression now covers 100 dropped typed subscriptions at distinct pointers followed by one live subscription, plus 100 dropped JSON subscriptions followed by one live receiver, without any database revision. Only the live typed sender and live JSON receiver remain. All 15 PatchDB tests pass, including queue overflow/recovery, shared-buffer identity, scoping, typed compatibility, and persistence. Pinned Rust formatting and scoped Prettier pass; the prior 13 registry/OS tests remain applicable. The branch merges cleanly with current master, and the brief/docs now describe both cleanup paths. Please review current head |
|
Retiring the marked review from @helix-b (#4472 (review)). Dismissed by Helix: the changes require a substantive PR brief update. Typed subscription registration now scans all pointer scopes and reclaims closed typed senders without a database revision, affecting subscribe, dump_and_sub, and watch under the store write lock. The brief must add this expanded cleanup scope and registration cost; the reviewed explanation explicitly said the typed path retained its old behavior. JSON security-feed behavior is unchanged. |
helix-white
left a comment
There was a problem hiding this comment.
I reviewed head d2f748586 by reading the code only.
Requested change: this head conflicts with master. git merge-tree --write-tree origin/master HEAD reports content conflicts in:
shared-libs/crates/start-core/src/db/model/mod.rsshared-libs/crates/start-core/src/db/model/private.rs
Master's de7c68aec (browser push notifications, #4469) added its own fields to Private and Database::init beside this PR's os_security_notifications. Please merge origin/master and keep both sets of fields.
While resolving, check whether #4469's push path applies to the notify(...) call in update/security.rs. If push delivery hangs off notify, security notifications pick it up automatically, and the "even when the browser is closed" changelog wording may deserve a second look. If it needs an explicit call, decide whether security updates should push. Also check whether #4469 bumped a migration revision that interacts with this PR's v0_4_0_5 revision 3.
Already reviewed and fine:
d2f748586:Broadcast::subscribenow prunes closed typed senders across all scopes and drops scopes left empty, through the sameprune_unbounded/is_emptyhelperssenduses. Scopes holding only JSON senders survive until the nextsendprunes zero-receiver rings, which is bounded per pointer and capacity. The registration cost is O(scopes + typed listeners) under the write lock, and the brief records it.2baa1a7f3and9d41298eb, as in my previous review.
Once the merge is clean, I expect to approve on a re-request without further changes.
Proposed changes: none on proposal/4472. The author needs to perform the merge itself.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
|
The earlier captures covered only the same-version update flow; omitting the notification view was incomplete screenshot coverage. Added the Notifications screenshot and placed it first in the brief. Its warning record comes from the production Rust security-notification function, including the title, warning level, and full installation message, rendered by the current Angular Notifications component. The caption explicitly identifies the mock UI backend and that no live registry-to-daemon run was performed. Capture staging was temporary and restored; no committed code or PR head changed. |
…-releases Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol # Conflicts: # shared-libs/crates/start-core/src/db/model/mod.rs # shared-libs/crates/start-core/src/db/model/private.rs
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Resolved the master integration in
Verification: the new push-integration regression passed; the five remaining security-client tests, 17 browser-push tests, and 54 version/publication tests passed. Bindings and all four manpage export tests completed successfully, with no generated drift. Pinned Rust formatting, scoped Prettier, and the StartOS version check passed. Please re-review the merge repair. This is not final handoff: @dr-bonez additionally requested a dedicated notification kind with an actual update link. That separate change is awaiting clarification in the author thread about linking to General versus opening the update dialog directly. It is not included in this head. |
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head 077f81270, which adds d4364dcfd (the merge with origin/master) and 077f81270 to d2f748586. I read the code only. git merge-tree --write-tree origin/master HEAD is now clean, so the conflict from my last review is resolved.
Merge resolution:
Privatekeeps bothos_security_notificationsand #4469'spush: PushState, each#[serde(default)].Database::initinitializes both.- No migration revision moved, so this PR's
v0_4_0_5revision 3 stands.
Push follow-up (077f81270):
notify_security_updatesalready reaches browser push throughnotify(), so no second delivery path was added.- The new test registers a subscription, announces twice across a model reload, and asserts one stored warning and one queued push. It also checks that the push title and body match the stored notification, which pins both the dedupe and the push integration.
- The fixture's
pushfield comes fromPushState::default(), the production default. - The changelog and its four translations no longer promise delivery with the browser closed; they say the warning appears in Notifications and uses browser push when enabled. That matches the opt-in push design.
updating-startos.mdlinksnotifications.md, which exists and is inSUMMARY.md.
Nothing else changed since my approval of 2baa1a7f3, 9d41298eb and d2f748586.
As the author's comment says, @dr-bonez's separate request for a dedicated notification kind with an update link is not in this head, and this approval doesn't cover it.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
|
Thanks—the merge repair and browser-push integration are approved. Holding final handoff and marking this draft until the requested notification kind/update link is implemented. The author thread is awaiting the destination choice: the General tab or a deep link opening the update dialog. Current-head CI is still running; no failures are reported so far. |
|
Retiring the marked review from @helix-b (#4472 (review)). Dismissed by Helix: the changes require a substantive PR brief update. The master merge makes security warnings enqueue browser-push deliveries through notify(), delivered to enrolled browsers even while the UI is closed. The brief must describe this opt-in delivery integration instead of presenting browser push as independent of the stored-security-notification feature. The added regression and documentation confirm this substantive behavior change; unchanged migration revision and preserved private-state fields do not preserve the reviewed explanation. |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Implemented @dr-bonez's requested notification link in
Verification: all six focused security tests passed, including the new kind/payload assertion and existing reconnect/restart/push deduplication coverage. A temporary capture test generated the actual warning record. Binding generation passed; core and SDK rebuilt; the hello-world consumer gained no errors versus published SDK 3.1.1. UI typechecking and all 74 UI tests passed. Playwright rendered that production-generated record, asserted the anchor's actual href, clicked it, and verified arrival at General with the software-update control visible. Scoped formatting, version validation, and The new screenshot is attached to the description with its mock-backend limitation stated explicitly. Capture staging is restored; no fixture or capture harness was committed. The earlier screenshot URLs are preserved. The PR is ready for renewed cross-review; current-head CI is pending. |
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head e360abfee, which adds e360abfee to 077f81270. I read the code only. git merge-tree --write-tree origin/master HEAD is clean.
The backend and binding side is right:
OsUpdateAvailableis a tagged marker that takes the next freeNotificationType::CODE(3; codes 0–2 were taken).notify_security_updatesnow stores{"kind":"os-update-available"}, and the test pins both the code and the payload.- The binding is generated, and the UI recognizes the kind through
schemas.OsUpdateAvailablerather than a duplicated literal3. - The anchor reuses
RouterLink(already imported), the existing/system/generalroute and the existing'Software Update'i18n key.(click.stop)keeps the item's own click handler from firing. - Code 3 falls through
viewModal'sdefaultbranch, which shows the message. - Removing the navigation sentence from the five translated messages, and the three restating comments in
viewModal, is correct.
Requested change: derive the link with computed instead of calling a method in the template. @if (service.getLink(item); as link) runs schemas.OsUpdateAvailable.safeParse on every change detection for every notification row. The start9-frontend skill quotes review on exactly this ("you call this function on each change detection… You need a readonly property… or a custom pipe"). The component already derives color and icon from notificationItem with computed, so the fix is one more of those: readonly link = computed((item = this.notificationItem()) => item ? this.service.getLink(item) : null), and @if (link(); as path) in the template. The alias is path, so it doesn't shadow the link member. Behaviour is unchanged.
Proposed changes: e360abf...proposal/4472
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
|
Retiring the marked review from @helix-b (#4472 (review)). Dismissed by Helix: the changes require a substantive PR brief update. Security warnings change from generic code-0 notifications to code-3 OsUpdateAvailable notifications with a tagged payload and generated TypeScript schema. The Notifications UI now renders a Software Update link to /system/general, replacing plain-text navigation instructions. The brief must describe this new notification contract and navigation behavior rather than claim RPC payload schemas and UI implementation are unchanged. Review 5706551420 explicitly excluded the pending notification-kind/link feature. |
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Adopted the proposal in Added a focused regression using the production component and real Angular signals. It asserts no lookup for an absent input, one lookup across repeated reads, and exactly one additional lookup when the notification is replaced. The regression passed. UI typechecking and the compiled UI click-through also passed: the actual generated warning still links to No visible behavior or screenshot content changed. The branch still merges cleanly with current master. Please re-review. |
|
Removed the old notification screenshot; the linked version is now the first screenshot. I am updating the notification message to use the registry display name rather than its URL. |
helix-white
left a comment
There was a problem hiding this comment.
I re-reviewed head 20e6c5ee8, which adds one commit to e360abfee. I read the code only. git merge-tree --write-tree origin/master HEAD is clean.
The commit adopts my proposal exactly:
readonly link = computed(...)sits besidecolorandicon.- The template reads
@if (link(); as path), sogetLink's schema parse now runs once per notification input rather than on every change detection.
The new notification-item.test.mjs uses the production component with real signals and a counting NotificationService stub. It asserts:
- no lookup for an absent input;
- one lookup across repeated reads;
- one more lookup when the input is replaced;
- none when the input is cleared.
That pins the caching rather than the algorithm. check:ui picks the file up through its scripts/*.test.mjs glob.
The author's latest comment says the notification message will switch from the registry URL to its display name. That change isn't in this head, and this approval doesn't cover it.
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
Helix-Harness: pi Helix-Model: openai-codex/gpt-6.1-sol
|
Implemented @dr-bonez's display-name request in
Verification: seven feed tests and eight security-client tests passed, covering live name changes, named/unnamed labels, URL-free messages, rename deduplication, replacement builds, equal names at distinct URLs, reconnects, push fan-out, lag recovery and socket limits. The temporary production-record capture also passed. The compiled UI rendered that new name-based record and its link still reached General's update control. Rust formatting, scoped Prettier and Replaced—not appended alongside—the old notification image. The description now has only the current name-based notification screenshot plus the two existing version/update-flow captures. It also corrects stale claims about the feed shape, notification contract and browser-push integration. Current-head CI is pending; the head is mergeable. Please re-review. |
Rollout: security notifications are disabled by default. Enable serving registries with
security-notifications: trueand restart the daemon; leave alpha at the default. Disabled feeds refuse WebSocket upgrades with HTTP 403, and clients use their existing jittered retry backoff. This PR does not change deployed registry configs. Release security metadata, promotion, and previously issued notifications remain unchanged.Change
gitHashandsecurity. Publishing marks a release when its owned changelog fragments contain asecurityfragment, including entries omitted from visible notes. Metadata refresh and promotion reject a source commit that changed during preparation.OsUpdateAvailablekind carries a generated tagged marker; the UI caches schema validation and renders a real Software Update link to System → General. Messages use the registry display name, or a localized label when unnamed, not its URL. It never installs an update automatically. The UI also offers a different image at the installed OS version; matching or unknown hashes do not make that version an update candidate.manage-release.sh pre-release start-ospublishesstart-os/v<VERSION>-rc.Non GitHub and replaces beta’s listing under the unchanged OS version. Every invocation allocates the next RC, even for the same commit or after partial failure, as requested. Stable releases remain resumable. RC tags neither publish books nor consume fragments.Implementation diff: +976 / −82 lines in 35 files (excludes lockfiles, tests, docs, release notes, and changelog). Includes generated schema code and runtime mocks.
Ownership, cost, and failure behavior
Enabled registries own one
PatchDb::in_memory()security mirror, using the same native primitive as private-package mirrors in #4216. One task watches the persistent name and OS subtrees and derives the feed for all subscribers from atomic index snapshots; nativeputcomputes differences and suppresses unchanged values./os/securitysends an atomic PatchDBDump(id,value) followed byRevisionmessages (id,patch). Its root isSecurityFeedState { name, updates }; the name uses the same index field asregistry.info, andupdatesis keyed by OS version. Disabled registries create neither mirror nor sync task. The implementation reuses the existing WebSocket heartbeat, OS SOCKS routing, cron lifetime management, notification creator, fragment ownership compiler, andAddVersionParams::from_infopromotion mapping.PatchDB’s new
dump_and_sub_jsonAPI caches encoded dumps per pointer until any database revision, and encodes each scoped revision once into shared immutableBytes. Listeners at the same pointer share serialization even across different capacities. The security feed uses a 32-slot broadcast ring: a lagging subscriber closes permanently instead of skipping patches, and a new connection gets a fresh dump. Dropped JSON receivers unregister immediately. Existing typed subscriptions retain their unbounded behavior. Typed resubscription scans existing typed senders to reclaim closed channels across scopes; JSON registration needs no listener scan. A device that processes queued revisions before overflow can notify for multiple replacement builds.Server connections use a 2 KiB read buffer, 1 KiB inbound frame/message limits, a 15-second send deadline, and the existing 30-second Ping/300-second Pong timeout. Clients use 4 KiB buffers, a 1 MiB catalog limit, 30-second connection and 120-second receive deadlines, startup jitter below 30 seconds, and jittered retries rising from 15–30 to 150–300 seconds. These are chosen bounds, not load measurements. Slow or broken connections close and reconnect; each socket still retains an output buffer sized for its largest catalog. Large-client memory/throughput was not benchmarked.
The endpoint exposes already-public release metadata, not device identifiers. The OS uploads no new device identity and routes the connection through its existing SOCKS proxy. Registry selection and update-signature enforcement remain unchanged.
Private state stores the last notified hash for each registry/version, suppressing repeated delivery across reconnects, restarts, and dismissal. Missing history deserializes as empty, including on servers already running 0.4.1. The 0.4.0.5 migration preserves existing history on reruns; its downgrade removes that history. Legacy registry records use serde defaults without a rewrite migration. Registries must be upgraded before publishing these fields, and existing releases need recorded build identity before promotion. CI uses the publishing commit’s CLI.
Beta replacement removes the old entry before promotion. A failure can leave beta absent or partially populated; another invocation creates a fresh RC and replaces that listing again, rather than resuming the previous GitHub prerelease.
Private-package PR #4216 also edits registry context ownership; both derived stores can coexist. Master’s browser-push work in #4469 is merged, retaining both private-state fields and initializers without moving migration revisions. Security warnings automatically use its existing
notify()fan-out for registered browsers; no second delivery path or subscription enrollment was added. Browser-push clicks retain the existing Notifications landing page.Verification
The seven feed tests and eight security-client tests pass, including name updates, named/unnamed registry messages, URL-based delivery identity, rename deduplication, push integration, HTTP 403 refusal, metadata preservation, lag closure/fresh dumps, patches, removal/re-addition, inbound limits, and heartbeats beyond 403 seconds. A temporary capture test produced the actual warning record. The existing configuration opt-in test remains applicable. Pinned Rust formatting, scoped Prettier, TOML formatting, registry/OS version checks, and all four manpage export tests passed.
UI typechecking and 74 UI tests passed; the added memoization regression also passed. Playwright rendered the production-generated warning, checked its actual href, clicked it, and verified General’s software-update control. The name-based screenshot repeats that check. Marker bindings, core, and SDK rebuilt; the hello-world consumer gained no type errors versus published SDK 3.1.1. Reused unchanged-surface evidence includes 15 PatchDB tests (shared buffers, atomicity, lag recovery, idle listener cleanup), 17 browser-push tests, 54 version/publication tests, 156 release-tooling tests plus shell resume checks, 8 publisher-CLI workflow tests, and container-runtime typechecking. The feed-name envelope is shared directly by its Rust server/client and adds no RPC/TypeScript schema changes.
Publication uses local forge/registry fixtures; no live release or production-registry mutation was performed. The update-dialog screenshots use representative mock registry/build data. The Notifications screenshot renders a warning record created by the production Rust security-notification function through the mock UI backend; it is not a live registry-to-daemon run.
Head
796fd42cbincludes the registry-name follow-up and awaits renewed cross-review. Current-head CI has not finished; no complete CI success is claimed.Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol