-
Notifications
You must be signed in to change notification settings - Fork 67
Add a public status page: status.heykody.dev worker + /health/components + operator email alerts #1230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add a public status page: status.heykody.dev worker + /health/components + operator email alerts #1230
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
38db74c
Add component-level /health/components endpoint to the main worker
cursoragent c5dd9e4
Add packages/status: public status page worker with prober, incidents…
cursoragent e02222e
Wire status worker into validate/deploy CI and document the decision
cursoragent e917ed1
Add status-page primitive to the primitives taxonomy
cursoragent 0ad6c16
ci: trigger validate
cursoragent db2a7a6
Merge origin/main: combine status-build with deploy-guardrails in val…
cursoragent 19c9260
Address review: stricter probes, degraded snapshot fallback, capped s…
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
docs/contributing/decisions/0004-status-page-separate-worker.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # 0004: Status page as a separate worker with its own storage | ||
|
|
||
| - **Status:** accepted | ||
| - **Date:** 2026-08-04 | ||
|
|
||
| ## Context | ||
|
|
||
| The platform needed a public status page. A status page's core job is to stay up | ||
| while the product is down, so serving it from the main `kody` worker would | ||
| defeat the point: a bad deploy, a worker-level exception, or an `APP_DB` outage | ||
| would take the status page down with the product. Third-party hosted status | ||
| services were considered and rejected as a new external vendor for a small, | ||
| self-contained need; the repo already had a second-worker precedent in | ||
| `packages/backup-control-plane/`. | ||
|
|
||
| ## Decision | ||
|
|
||
| The status page is an independently deployed worker (`packages/status/`, | ||
| `status.heykody.dev`) that observes the product strictly from the outside via | ||
| public endpoints, and stores probe history, incidents, and notification state in | ||
| its own Durable Object — never in `APP_DB`. The main worker exposes | ||
| `GET /health/components` (cheap per-binding checks) so the prober can report | ||
| storage subsystems individually. Operator alert email goes through the | ||
| Cloudflare Email REST API under a strict policy: one email per outage episode, | ||
| one reminder per day while unresolved, one all-clear on recovery, all under a | ||
| daily cap. | ||
|
|
||
| Status data is global operational telemetry, not user data, so the per-user | ||
| isolation invariant is not implicated; the status worker holds no user state and | ||
| no `APP_DB` access. | ||
|
|
||
| ## Consequences | ||
|
|
||
| The status page survives main-worker deploy failures, code regressions, and D1 | ||
| outages, but shares Cloudflare as a platform — a full Cloudflare outage takes | ||
| both down. If that residual risk ever matters, add an external ping service on | ||
| top; do not move the status page into the main worker. The status worker | ||
| duplicates a small amount of email-sending code rather than importing from | ||
| `packages/worker` (import boundaries keep it dependency-free). Incident records | ||
| are probe-derived only; manually posted incident narratives are a possible later | ||
| addition, not built now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Deploy when the root status deployment input changes.
Line 101 does not match root
package.json. A change topackage.jsonLine 39 changes the command executed at Line 419, but the workflow skips the status Worker deployment. Matchpackage.jsonand the npm lockfile used bynpm ci.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents