GeezerVison is showing github.com — feat(pm-service): CF-5d first read wave — overview + queue views over tenant projections (#14970) by dezren39 · Pull Request #15154 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Refs #14970 (CF-5d — M5 read waves over tenant-DB projections; child of #14945, programme #14866). First wave only — the issue stays open for the remaining surfaces and the live cutover.
Blocker status
CF-5c (#14969) substrate merged (PR #15043) and its Worker deployed green; the remaining #14969 acceptance item is provisioning the PM_TENANT_DB_URL / PM_TENANT_DB_TOKEN Worker secrets, which do not exist in the secrets broker yet. That blocks the live half of #14970's acceptance, not code waves over the projections — so this slice lands the first two waves in code, proven against the seeded tenant projection, and they serve live automatically on the next pm-service versions deploy once the secrets land (until then the Worker answers the designed honest 503, like the existing §6 routes).
What this lands
src/read-api/waves.ts — pure derivations over the merged pool + board summaries:
- Overview (
GET /api/overview.json): totals (boards / items / open / closed / merged / drafts) and breakdowns by state, status, area, horizon, kind, content kind, plus the board summaries.
- Queue (
GET /api/queue.json): the open pool grouped by project Status, split into blocked (held by a still-open pool item) and readyRefs (no live blocker) — the hosted half of the console Now/queue family. A closed or absent blocker does not hold an item.
- Freshness visible in every wave response: per-board latest snapshot stamps +
latestSnapshotAt (null when no snapshot has landed — honest absence).
- Both routes wired into the synchronous handler (
api.ts) and the async Worker handler (async-api.ts) through the shared derivations, so the shapes cannot drift; the CF-5c parity suite now covers both new routes byte-for-byte.
- README gains the CF-5d per-surface record: overview + queue moved; program, quota, events, today, digest, reports, /aa, /chat stayed (their data is not in the tenant projections yet — their waves land their projection first).
#14865 write-amplification check (recorded before cutover)
Zero new writes: no new projection, table, or write path; the wave issues only the SELECTs the existing routes already issue. The collector's snapshot landing remains the sole writer.
Verification
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Caution CodeRabbit couldn't post its review summary.
Error details
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Verification dispatched (2026-11-25 ~10:41 CST follow-up lane): fleet-command.yml fallback run 45657703594 in developing-today/fleet — bun test test/read-api-waves.test.ts test/read-api-async.test.ts in pm-stack/pm-service on branch xaltha/14970-m5-read-waves (direct dispatch still blocked by #13185; the 09:41 window's HTTP 500s have cleared). Conclusion will be recorded on #14970 when the run completes; metadata only, no CI logs read.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…waves
# Conflicts:
# pm-stack/pm-service/README.md
Warning
Review limit reached
You'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 59 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
294bc9c6-c448-401a-9b6c-430ffee92693
Commits
-
Reviewing files that changed from the base of the PR and between e0d5d02 and f93bace.
Files selected for processing: 6
-
pm-stack/pm-service/README.md
pm-stack/pm-service/src/read-api/api.ts
pm-stack/pm-service/src/read-api/async-api.ts
pm-stack/pm-service/src/read-api/waves.ts
pm-stack/pm-service/test/read-api-async.test.ts
pm-stack/pm-service/test/read-api-waves.test.ts
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Refresh (xaltha lane): merged current origin/main (e0d5d02) into this branch. One conflict — pm-stack/pm-service/README.md, where both sides had appended a new section at the same spot — resolved by keeping both sections (CF-5d M5 read waves + Slice 4 dashboard surfaces). New head: f93bace. PR is MERGEABLE again.
Verification (remote dispatch, fleet-command run 45768772713, cd pm-stack/pm-service && bun test && bun run typecheck): concluded failure at the Execute step after ~3.5 min of execution (all setup/checkout steps succeeded). The failure cause is only in the CI logs, which are a held class I am not reading — diagnosis waits on the pending log-access decision (#14553 class).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
|
Shepherd (lane 4, fleet queue task 23954), 2026-11-26.
This PR's last refresh comment recorded a failed bun test && bun run typecheck run with the cause unread. I re-verified the current head f93bace1f11eaf65e8bb983c046c774a6f5446d9:
- pm-stack tests (dispatched on this branch, run 45824735979): every job green. pm-service ran 3865 tests with 0 failures, including
read-api-waves.
- Typecheck (org-run 45826396523):
tsc --noEmit passes on this head and on main.
- Merges cleanly with current main. CodeRabbit was rate-limited and left no findings.
The earlier red run does not reproduce on this head.
I checked the 2026-11-26 #14866 ruling that moves board data to D1. These waves read through the existing SQL store layer (loadPool, loadBoardSummaries), so they don't depend on the tenant-Turso data plane. They serve live once a data plane is wired. Merging under the standing merge rule; #14970 stays open for the remaining surfaces and the live cutover.
Generated by Claude Code
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|