Repository navigation
feat(pm-stack): project page description + latest status derived from roadmap and doc/ status records (#1108) - #11139
Conversation
…ap and doc/ status records (#1108)
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 20 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. |
|
Agent note — Codex gate disposition + merge (task 19427, lane any-m, 2026-11-17) Codex review on this PR did not produce findings: the Codex code review run failed on usage limits ("You have reached your Codex usage limits for code reviews", comment 6941848259; review summary 6941847570 shows status Failed at dd72f63), there are zero inline review comments and zero finding bodies, and CodeRabbit is likewise rate-limited with zero findings (comment 6941848423). There is therefore no undispositioned Codex finding to fix or answer — the gate is dispositioned as "review unavailable, no findings issued", consistent with this shift's recorded bot state. Merging on local evidence: new tests 15/15, affected suites 116/116, typecheck clean, biome format clean, and the packet hand-check verified against the real doc/2026-10-27T03-14-08Z_status_basement-cluster/ record (details in the PR body). |
Closes #1108 (the remaining element only; Slice 1 landed in PR #2373 and the visualization split in PR #2831).
What
The per-project page (
/program/<id>, pm-stack/aggregator) now renders the project's description and latest status from their sources instead of the project registry's hand-maintained copies:planning/roadmaps/<slug>.mdin developing-today/code), read from the aggregator host's code checkout at request time. The lab-cluster registry intro duplicated this text and could drift from it.doc/<UTC>_status_<slug>/record for the project, selected by the record's own timestamp (the directory name's prefix, dash-separated time — parsed and range-validated, never file mtime), rendered with the record's own first heading and a blob link to its markdown.How
src/project-doc.ts: pure parsers (roadmapDescription,parseStatusRecordName,selectLatestStatusRecord,statusRecordTitle,buildProjectDocSnapshot) plusloadProjectDoc, a never-throwing checkout reader in the repo-roadmap / phase-mapping discipline.Source.projectDoc?optional snapshot (same pattern asphaseMapping?); the live source caches per slug for 5 minutes, fail-soft to the last good snapshot.projectDocTarget(config)derives the target from the config's home doc — onlyplanning/roadmaps/*.mdhome docs in the code repo qualify;buildProjectDetailcarries the snapshot into both the HTML page and the/api/program-project.jsontwin.Tests
test/project-doc.test.ts(15 tests): description extraction (tables/lists excluded, "Latest status:" pointer cut as metadata), status-name parsing (only the_status_shape, invalid timestamps rejected), newest-record selection per slug, blob vs tree URLs,loadProjectDocagainst a temp checkout (seed record rebuilt; unreadable checkout → null; missing roadmap with readable doc/ → verified absence),projectDocTargetqualification, and render integration (derived text renders instead of the registry copies; explicit absences render instead of the hand pin).loadProjectDocon this checkout returns the basement-cluster description from the roadmap's own prose and latest status2026-10-27T03-14-08Ztitled "Basement cluster status, 2026-10-26" — matchingdoc/2026-10-27T03-14-08Z_status_basement-cluster/.bun teston project-doc + program + epic-graph + phase-mapping + program-prime-5082 + projects = 116 pass / 0 fail;bunx tsc --noEmitclean; biome format clean on all changed files (organizeImports warnings on the touched files are pre-existing on main).bun installit passes 3/3, as does main). No test that passes on main fails because of this change in isolation.Queue task 19427 (lane any-m).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.