Repository navigation
Description
The local notification prototype reads the real Deploy GitHub Action history from allisonmahmood/patchy-cloud. Only successful manual attempts with a successful Confirm the release is live step create entries. Main updates, pull requests, CI and Server image runs cannot create entries.
The input is actual production deployment history; the output is local dev storage and the local bell/history UI. Deploying this prototype, publishing production history or dispatching/changing the production Deploy workflow remains outside scope.
Current work continues on prototype/record-log/github-action-history, based on the earlier prototype in draft PR #550.
Implemented:
- One shared
platform-updates/history.jsondocument, outside patch-owned storage and the app database. Only read markers are per person in their browser. - Newest-unread bell, All caught up state, and newest-first expandable summaries and details. GitHub Action references stay internal and are not shown to readers.
- Read-only Action-history importer and 30-second local watcher. Resolved job-log
COMMITandDEPLOYMENT_REVISIONestablish actual targets, including rollbacks; workflow head SHA is not a fallback. - Failed/unconfirmed attempts excluded; retries deduplicated; earlier success retained after a failed rerun; genuine rollback transitions preserved. Stable sequences prevent repeated imports from generating duplicate notifications.
- Cached confirmation proof, atomic document replacement, local-only destination validation and a single-writer lock. Sample seeding refuses to append invented deployments to imported history.
- Notes derived from actual deployed ranges, using the existing generator. Missing credentials or generation failures produce an honest pending-details entry, retried without a duplicate notification. Reviewed local responses are explicitly recorded as such.
Live local verification imported successful runs 37252995444 and 37378674715, excluded failed run 37251636052, and preserved the same two entries across repeated polls. The transition to All caught up was exercised in the local browser. The latest deployed range is explained with concrete summaries of patch activity reporting, company and teammate activity, and agent/CLI usage. The first recorded release is summarized from the product snapshot at its actual deployed commit. No live AI generation is claimed.
Remaining local work:
- Evaluate live model-generated notes with
RELEASE_NOTES_API_KEYfor factual accuracy, everyday language, concrete user benefit and necessary action. Current reviewed local responses and schema tests do not establish future model quality. - Exercise forced document-write failure/recovery and interrupted-watcher lock recovery end to end. The importer preserves old history on failure and documents recovery.
See packages/portal/prototypes/updates/README.md and docs/OPERATIONS.md#local-history-from-the-deploy-action for reproduction.
Validation for commit 23fa3b5 (pushed on the new branch): 28 focused importer/generator/history tests and all 10 notification browser tests pass. Changed-file formatting passes. Full pnpm verify passes lint, typechecking, infrastructure synthesis, Postgres concurrency and tier-2 smoke. It remains red on existing untracked-file formatting, execution/CLI/offline failures and the fleet-starting browser test outside this notification change. No production deployment was performed.
Applicable mirrored surfaces: served-page schema/rendering and browser coverage; portal vocabulary, product description and operational/local-preview instructions. No wire API, migration, CLI contract, company database, package layout or production workflow changed.
Correction in ac11f7a: removed the user-facing Action link, required concrete summaries even for internal changes, added first-release snapshot evidence, and refreshed both actual local entries with reviewed summaries and six detail items. --refresh-notes preserves event sequences/read markers and preserves existing history if regeneration fails. Verified the actual preview has no GitHub links and still uses sequences 7 and 8. All 32 focused tests and 10 notification browser tests pass; typechecking and focused lint pass. The existing full-verification limitations above remain.
Local cleanup and pagination: removed all four simulated updates from the manual-test preview and resumed the read-only Deploy Action watcher. The two real confirmed deployments and their reviewed notes remain. History now persists the highest allocated sequence (12 in this preview), so the next real event cannot reuse a test sequence already marked read. Added ten updates per page, numbered navigation with Previous/Next, a row count, and links that locate a deployment even after it moves to an older page. Pagination never marks updates read; only opening the bell does. A separate 23-entry browser fixture verifies pages of 10, 10 and 3, mobile navigation, expandable rows, and unread persistence. Focused importer/history tests (17), notification browser tests (13), typechecking and lint pass. No production workflow was dispatched or changed.
Activity
[-]Connect deployment updates to successful production deploys[/-][+]Validate deployment updates in local simulation[/+][-]Validate deployment updates in local simulation[/-][+]Validate local updates from confirmed Deploy actions[/+][-]Validate local updates from confirmed Deploy actions[/-][+]Members see what shipped since their last visit[/+]allisonmahmood commentedon Oct 6, 2026
Taking this over (Allison, with Claude doing the build).
We reviewed #554 (with #550 and #551) using three Opus 5.5 and three GPT 6.1 Sol reviewers over two rounds. We decided not to merge it and to replace it with a smaller design.
Why not #554
/updates/feedevery 5 seconds. Each poll does auth, SQL, a store read and a request event.RELEASE_NOTES_API_KEYto code dispatched from any branch.What we're building instead
@patchy/core, shipped with the server. Each deployed commit carries its own entries, so production shows what is live and a rollback shows the older list. There is no publisher, no storage document and no change to the deploy workflow./updatesadvances it, and new members start at the newest entry. There is no client script and no polling, and it works across devices./updateslists entries newest first and marks the ones that are new to you.updatesbecomes a reserved company handle.Kept from Srikar's work: the plain-language writing rules from the release-notes prompt, announcing what is deployed rather than what is merged, and rendering notes as escaped text.
I'm closing #550, #551 and #554 in favour of this.