Repository navigation
feat(pm-stack): scheduled digest from the canonical projection (#1278) - #5279
Conversation
Daily digest + weekly roll-up built by a pure buildDigest over the same projection the pages render (Project pool, Needs-Drew census, quota view): moved / blocked / needs Drew / done / quota outlook, every item linked, header states per-facet freshness, and a missing/stale/incomplete source marks its section stale with its age instead of omitting it. Archived as JSON per day (PM_AGG_DIGESTS_DIR) and rendered verbatim at the dated URL /digest?date=<date>; /digest + /api/digest.json build live, /api/digests.json lists the archive. scripts/generate-digest.ts archives first, then delivers to chat via Web Push (class digest) through the alert throat subscriptions. Scheduled by systemd/NixOS timers: daily 07:00 local, weekly Mon 07:05 local. Tests: test/digest.test.ts (8) + full suite 1523 pass; manifest curation table records digest at dropdown tier.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8dc9f9a3bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
P1: register pm-digest-daily/pm-digest-weekly in doc/fleet-schedule-registry.md (root AGENTS.md same-PR rule). P2s: weekly archive routes carry kind=weekly; pool freshness is measured (items() prime + projectsAvailable + live-mode unprimed facet reads stale, never healthy); digest delivery honors classEnabled + quiet hours with suppressed-quiet ledgering; quota forecast states hours-from-now until the fill, not a wall-to-reset interval.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41f82670ad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10e9d1e4f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex disposition (task 4988 resume, lane code-m): all 10 findings from the earlier rounds were replied 'Fixed' by the implementing session; I re-verified each against the current head cfbb8b8 before resolving its thread — fleet-registry rows for both timers (doc/fleet-schedule-registry.md:251-252), kind in weekly archive links (digest.ts:319), freshness/provenance before archiving + stale section marking, quiet-hours suppression via inQuietHours (generate-digest.ts:82-86), reset-relative forecast (digest.ts:357-363), provider freshness + completion-time selection (both pinned by passing '(#5279 Codex)' tests), EnvironmentFile in both standalone units, machine-twin identity (render.ts:7163), shared PM_AGG_DIGESTS_DIR. Local verification mirroring the queued CI: bun test 1527/1527 pass (digest 12/12), contract:check passed; typecheck shows only a pre-existing main error in src/item-history.ts (untouched by this PR). Merging under the standing criteria. |
Fixes #1278
Scheduled PM digest from the canonical projection — no separate reporting pipeline:
src/digest.ts— purebuildDigestover the same inputs the pages render (Project pool, Needs-Drew census, quota view): moved / blocked / needs Drew / done / quota outlook sections, every item linked, header states per-facet freshness, and a missing, stale, or incomplete source marks its section stale with its age instead of silently omitting it. Quota outlook includes wall predictions (burn rate filling a window before its reset).digestTextis the chat rendering of the identical structure.PM_AGG_DIGESTS_DIR, state dir in the NixOS wiring);/digest?date=<date>renders the stored digest verbatim,/digestbuilds live,/api/digest.jsonis the machine twin,/api/digests.jsonlists the archive. Page registered in the manifest at dropdown tier (recorded in the dashboard: clean up the page list (12 registered pages, overlaps to resolve) #1497 curation table).scripts/generate-digest.tsarchives first, then delivers via Web Push (classdigest) through the alert throat's subscriptions with send bookkeeping. systemd + NixOS timers: daily 07:00 local, weekly Mon 07:05 local.Verification:
bun testfull aggregator suite: 1523 pass, 0 fail (includes 8 newtest/digest.test.tstests and the manifest/nav governance tests).tsc --noEmit: clean except a pre-existingGhKinderror in untouchedsrc/item-history.tson main./digest,/api/digest.json,/api/digests.json, generator archive write, and the dated archive render all verified live.Queue: task 4988 · epic #1184
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.