Skip to content

feat(release): streamline StartOS candidates and security updates - #4472

Merged
dr-bonez merged 20 commits into
masterfrom
feat/streamlined-os-releases
Oct 30, 2026
Merged

dr-bonez merged 20 commits into
masterfrom
feat/streamlined-os-releases

Conversation

@helix-white

@helix-white helix-white commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Rollout: security notifications are disabled by default. Enable serving registries with security-notifications: true and 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

  • Registry OS records gain gitHash and security. Publishing marks a release when its owned changelog fragments contain a security fragment, including entries omitted from visible notes. Metadata refresh and promotion reject a source commit that changed during preparation.
  • StartOS subscribes to its selected OS registry and creates a StartOS security update available warning for compatible, available images. Its dedicated OsUpdateAvailable kind 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-os publishes start-os/v<VERSION>-rc.N on 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.
  • PatchDB reclaims dropped typed subscribers on resubscription, even without a database revision, adopting @helix-b’s proposal. Removed redundant comments in touched code.

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; native put computes differences and suppresses unchanged values. /os/security sends an atomic PatchDB Dump (id, value) followed by Revision messages (id, patch). Its root is SecurityFeedState { name, updates }; the name uses the same index field as registry.info, and updates is 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, and AddVersionParams::from_info promotion mapping.

PatchDB’s new dump_and_sub_json API caches encoded dumps per pointer until any database revision, and encodes each scoped revision once into shared immutable Bytes. 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 796fd42cb includes 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

Security warning shows the registry display name and a Software Update link to General. Production-generated warning in the real UI with mock registry data/backend; no live registry or browser-push delivery.

Final UI with mocked backend: the installed OS version is 0.4.0.5.

Mocked registry/current build: StartOS offers a replacement image for installed version 0.4.0.5 when its build hash differs.

…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
@helix-white

Copy link
Copy Markdown
Member Author

Cross-review requested.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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/security with serde(default) plus the m_05 round-trip migration; require_git_hash guarding version add and promote; promoted_version carrying both fields.
  • Registry: the shared watch-backed /os/security catalog (it re-sends only when the filtered catalog changes) and the bounded WebSocket.
  • StartOS: the SOCKS-routed ReloadableHttpClient::websocket (native-tls covers wss); the watch_updates cron following startosRegistry with backoff; the per-registry/version/hash dedupe in osSecurityNotifications; the v0_4_0_5 revision-3 migration.
  • UI: same-version replacement gated on a differing gitHash from git-info. maybe_do_update already accepts a same-version target.
  • manage-release.sh: resolve_artifact_commit replaces resolve_alpha_commit; resolve_os_commit gates tag/index on the registry's gitHash; --expected-git-hash covers refresh and promotion; RC tags are excluded from releaseTags and 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:

  1. Alpha re-indexes the same version with a new --git-hash on every master push. While a security fragment is pending, each push sets security again, and is_os_update treats 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.
  2. pre-release allocates a new rc.N on every invocation, so it never resumes. A failure after tag or create-gh-release (for example in index) leaves rc.N published, and a rerun cuts rc.N+1. This matches the PR's stated intent. It is an exception to the root AGENTS rule "Re-running release after 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
@helix-white

Copy link
Copy Markdown
Member Author

Addressed in 33bbd45cf and dcb45a587:

  • Accepted the proposed StartOS-only assertions. The old CI failure was the same missing StartWRT release-security fixture reported in the review.
  • Merged current master’s localized release-note changes, preserving translated registry bundles, same-commit publisher CLI bootstrap, fresh RC allocation, beta replacement, and source-commit preconditions. Promotion now uses the shared AddVersionParams::from_info owner rather than a parallel helper.
  • Removed the unnecessary registry rewrite migration: existing records deserialize through the new fields’ serde defaults, consistent with the updated registry guidance. Legacy-record and promotion tests cover this alongside translated notes.
  • Explicitly documented that every pre-release invocation allocates a fresh RC even after partial failure. This is intentional and follows the user’s requirement; stable release remains resumable.

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.

@helix-white

Copy link
Copy Markdown
Member Author

This conflict notification refers to the older head 52c184de7. The repair is already pushed in dcb45a587: I fetched origin again and confirmed git merge-tree --write-tree origin/master origin/feat/streamlined-os-releases succeeds against current master d510a4018; GitHub reports MERGEABLE. No additional branch changes are needed. Cross-review has already been re-requested for the repaired head.

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

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I re-reviewed head f1b31ed42. git merge-tree against current origin/master is clean.

Since my last review:

  • Test fix: 33bbd45cf takes the proposed change that scopes the release-security assertions to StartOS.
  • Merge with master (dcb45a587): the resolution keeps the PR's intent alongside master's localized release notes. Promotion now goes through the shared AddVersionParams::from_info, which carries gitHash and security, instead of a parallel helper. refresh_registry_notes now limits the --git-hash/--expected-git-hash/--security metadata 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: f1b31ed42 only adds translated changelog fragments for start-cli and start-registry. changelog.mjs validate passes for start-cli, start-registry and start-os.
  • pre-release: the decision that every pre-release invocation 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.mjs 156/156; release-resume-test.sh passed.
  • UI: os-update.test.mjs 31/31.
  • Rust: focused start-core tests for registry::os, update::security, update::tests, the SOCKS websocket test, version::v0_4_0_5 and registry::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

@helix-white

Copy link
Copy Markdown
Member Author

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
@helix-white

Copy link
Copy Markdown
Member Author

A final handoff inspection found and fixed a liveness issue in aaf3b21cb: the shared WebSocket wrapper consumes matching Pong frames, so the extra 360-second socket.recv() timeout would close healthy idle subscriptions even while their heartbeat succeeded. Removed that redundant outer timer and retained the existing Ping/Pong liveness owner and send deadline.

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

@helix-white
helix-white requested a review from dr-bonez October 28, 2026 21:40
@helix-white

Copy link
Copy Markdown
Member Author

Cross-review approved final head aaf3b21cb. The final brief and same-version replacement screenshots are published, and @dr-bonez is requested for final review. The PR is mergeable; current-head CI remains queued. The brief leads with the outstanding policy choice: alpha subscribers can receive a fresh notification for each different security-marked build hash.

…-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
@helix-white

Copy link
Copy Markdown
Member Author

Pushed two separate commits:

  • 8116917b3 merges current master and resolves the migration assertion against Current::default().migration_revision(), retaining the new bearer-token/session changes.
  • afd78bf58 implements the requested alpha policy: mute-os-security-notifications: true (or --mute-os-security-notifications) keeps /os/security connected with an empty catalog. Defaults remain unmuted. Stored release security/gitHash metadata and promotion are untouched; existing notifications are not deleted. Registry docs, localized CLI help, and all five release-note variants describe it.

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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_notifications defaults off for CLI and config. It merges with |= like startwrt.
  • It only changes what the /os/security feed publishes. Stored security/gitHash metadata, 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 muted init could instead publish a fixed "{}" without watching /index/os, and catalog would 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

@helix-white

Copy link
Copy Markdown
Member Author

Cross-review approved final head afd78bf58; GitHub reports MERGEABLE. The refreshed brief preserves both screenshots and explicitly records the external alpha-config rollout, the retained shared database watch when muted, and serde-default delivery history for existing 0.4.1 servers. No code changes followed approval. @dr-bonez is requested for final review. Current-head CI has no reported failures, but remaining binary/package builds, automated tests, formatting/lockfiles, licenses, and generated-artifact checks are pending; I will address attributable failures when their results arrive.

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

Copy link
Copy Markdown
Member Author

Fixed the CI failure in 376ae85a3 (tests only).

maintenance_revisions_migrate_and_roll_back_without_changing_service_data supplied a DB without private, which the security-history migration requires, and still expected the old 0.4.0.5 migration revision 2. Its fixture now includes the private object and asserts revision 3. Production migration code is unchanged.

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 afd78bf58: Automated Tests was the sole failure (1,010 passed, one failed); the image/binary/package matrices, generated artifacts, formatting/lockfiles, licenses, and other gates passed or were intentionally skipped. New-head CI is pending. The existing brief and screenshot attachments are preserved, with the failure and fix recorded.

Please re-review the two-line test repair before final handoff.

@helix-white

Copy link
Copy Markdown
Member Author

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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_json captures the dump and the receiver under one store write lock, so it is atomic like dump_and_sub.
  • Every revision reaches Broadcast::send through Store::apply, which clears each pointer's cached dump before fan-out. A cached dump therefore never outlives its revision id.
  • Scoped patches serialize once per pointer and are shared as Bytes across capacity groups.
  • Lagged and Closed both map to None, and JsonSubscriber stays closed after either. That matches the documented contract: no skipped patches, recovery by a fresh dump.
  • Regrouping listeners by JsonPointer keeps the typed subscribe/DbWatch scoping and empty-patch suppression intact.

Opt-in integration (9d41298eb):

  • security_notifications defaults 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 Bytes as Utf8Bytes. A lagging subscriber closes the socket, and the client's next connection starts from a fresh Dump, so per-connection state reset stays correct.
  • Release security/gitHash metadata 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/security roughly every 2.5–5 minutes and gets a 403. Production needs that config at rollout, and the brief records it.
  • subscribe_json receives a Dump even when it reuses the cached bytes. That is a cheap imbl clone, 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
@helix-white

Copy link
Copy Markdown
Member Author

Read the review and the proposal/4472 diff against its reviewed head 9b267350e.

That review predates the already-pushed 2baa1a7f3 / 9d41298eb follow-up: /os/security now uses bounded JSON broadcast subscriptions rather than the old unbounded ScopedSender path. JSON receivers unregister immediately on drop; encoded dumps/revisions are shared, queues close permanently on overflow, and disabled registries reject upgrades instead of creating an idle mirror.

I also adopted your proposed owner-level cleanup for the remaining typed subscription API in d2f748586. Before adding a typed subscriber, PatchDB prunes dropped typed senders across all scopes. The pruning primitive is shared with send-time cleanup. The bounded JSON registration path does not perform this linear typed-listener scan.

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 d2f748586, including the bounded opt-in changes in 2baa1a7f3 and 9d41298eb, rather than only the earlier 9b267350e implementation. Current-head CI is pending.

@helix-white

Copy link
Copy Markdown
Member Author

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.rs
  • shared-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::subscribe now prunes closed typed senders across all scopes and drops scopes left empty, through the same prune_unbounded/is_empty helpers send uses. Scopes holding only JSON senders survive until the next send prunes 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.
  • 2baa1a7f3 and 9d41298eb, 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

@helix-white

Copy link
Copy Markdown
Member Author

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
@helix-white

Copy link
Copy Markdown
Member Author

Resolved the master integration in d4364dcfd, separately from the regression/wording follow-up in 077f81270.

  • Both Private fields and initializers survive: security-notification history and browser-push state. The security-test fixture now initializes push state through its production default.
  • Security warnings already use browser push through notify(); no duplicate delivery call was added. A new regression registers a browser, produces a security warning, reloads the database model, repeats the announcement, and asserts one stored warning and one queued push with matching title/message.
  • Browser push added no migration revision. The existing 0.4.0.5 revision 3 remains intact.
  • Updated all five changelog variants and the update guide to distinguish stored notifications from opt-in browser-push delivery.

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. git merge-tree against current master is clean.

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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:

  • Private keeps both os_security_notifications and #4469's push: PushState, each #[serde(default)].
  • Database::init initializes both.
  • No migration revision moved, so this PR's v0_4_0_5 revision 3 stands.

Push follow-up (077f81270):

  • notify_security_updates already reaches browser push through notify(), 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 push field comes from PushState::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.md links notifications.md, which exists and is in SUMMARY.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

@helix-white
helix-white marked this pull request as draft October 30, 2026 00:10
@helix-white

Copy link
Copy Markdown
Member Author

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.

@helix-white

Copy link
Copy Markdown
Member Author

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
@helix-white
helix-white marked this pull request as ready for review October 30, 2026 00:59
@helix-white

Copy link
Copy Markdown
Member Author

Implemented @dr-bonez's requested notification link in e360abfee, using the selected General-tab destination.

  • Security warnings now use their own OsUpdateAvailable notification kind (code 3), with a tagged marker DTO exported through the existing Rust-to-TypeScript generator.
  • The UI recognizes that generated schema, rather than duplicating the numeric kind or inferring behavior from translated text, and renders a real Software Update anchor to /system/general. Existing report/details/full-message actions remain intact.
  • Reused Angular RouterLink, the existing General route, and the existing translated label. No new route, dialog lifecycle, or installation behavior. Browser-push delivery keeps its existing Notifications landing page.
  • Removed plain-text navigation instructions from all five backend message translations; updated the unreleased changelog variants and update guide. Removed three redundant comments in the touched notification service.

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 git diff --check passed.

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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:

  • OsUpdateAvailable is a tagged marker that takes the next free NotificationType::CODE (3; codes 0–2 were taken).
  • notify_security_updates now 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.OsUpdateAvailable rather than a duplicated literal 3.
  • The anchor reuses RouterLink (already imported), the existing /system/general route and the existing 'Software Update' i18n key. (click.stop) keeps the item's own click handler from firing.
  • Code 3 falls through viewModal's default branch, 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-white added a commit that referenced this pull request Oct 30, 2026
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b
@helix-white

Copy link
Copy Markdown
Member Author

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
@helix-white

Copy link
Copy Markdown
Member Author

Adopted the proposal in 20e6c5ee8: each row now derives its link with computed from notificationItem, and the template reads link() with a path alias. Schema validation stays in its existing service owner and is cached between input changes.

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 /system/general, with the software-update control visible on arrival. Scoped formatting and git diff --check passed. The prior 74 UI tests and backend/binding/SDK evidence remain applicable; those unchanged checks were not repeated.

No visible behavior or screenshot content changed. The branch still merges cleanly with current master. Please re-review.

@helix-white

Copy link
Copy Markdown
Member Author

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 helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 beside color and icon.
  • The template reads @if (link(); as path), so getLink'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
@helix-white

Copy link
Copy Markdown
Member Author

Implemented @dr-bonez's display-name request in 796fd42cb; your 20e6c5ee8 memoization approval is otherwise unchanged.

  • The shared Rust feed envelope is now SecurityFeedState { name, updates }. Its optional name comes from the existing registry index field used by registry.info, not a URL-to-label map or another HTTP request.
  • The existing mirror task now watches the name and OS subtrees. Both subscriptions precede the initial snapshot; initialization and every subsequent rebuild read name/catalog from one atomic source snapshot. Two narrow scopes avoid retaining/waking on the package index. Shared encoding, bounded queues, heartbeat/backoff and opt-in refusal remain unchanged.
  • Warning text uses the display name. Missing or empty names use a localized “your selected OS registry” label in all five locales. The selected URL remains the delivery-history key: identical names across URLs remain independent, and renaming does not reissue an already-announced build.
  • Updated the server/client together for this unreleased feed envelope and documented it. The kind/marker, cached UI action, and browser-push path are unchanged; no RPC/TypeScript schema or persisted-state migration changed in this follow-up.

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 git diff --check passed; prior unchanged UI/SDK/PatchDB evidence was reused.

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.

@helix-white

Copy link
Copy Markdown
Member Author

The received approval is for 20e6c5e and explicitly excludes the registry-name change. Current head 796fd42 is still awaiting the requested review of that follow-up, so I am holding final handoff until approval covers it.

@dr-bonez
dr-bonez merged commit 77e71cf into master Oct 30, 2026
45 of 47 checks passed
@dr-bonez
dr-bonez deleted the feat/streamlined-os-releases branch October 30, 2026 01:55
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.

2 participants