Skip to content

feat(pm-stack): project page description + latest status derived from roadmap and doc/ status records (#1108) - #11139

Merged
dezren39 merged 1 commit into
mainfrom
queue/19427-1108-dashboard-status
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/19427-1108-dashboard-status

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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:

  • Description — the prose paragraphs of the project's roadmap file (planning/roadmaps/<slug>.md in 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.
  • Latest status — the newest 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

  • New src/project-doc.ts: pure parsers (roadmapDescription, parseStatusRecordName, selectLatestStatusRecord, statusRecordTitle, buildProjectDocSnapshot) plus loadProjectDoc, a never-throwing checkout reader in the repo-roadmap / phase-mapping discipline.
  • Source.projectDoc? optional snapshot (same pattern as phaseMapping?); 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 — only planning/roadmaps/*.md home docs in the code repo qualify; buildProjectDetail carries the snapshot into both the HTML page and the /api/program-project.json twin.
  • Render is derived-first: when a snapshot exists it wins outright, including its absences — no prose in the roadmap renders "No prose description found…", no status record renders "No status record under doc/ for this project yet", and the hand-pinned statusReport never renders alongside a derived snapshot. When the source cannot read the checkout at all (no snapshot), the page falls back to the registry intro / statusReport exactly as before.

Tests

  • New 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, loadProjectDoc against a temp checkout (seed record rebuilt; unreadable checkout → null; missing roadmap with readable doc/ → verified absence), projectDocTarget qualification, and render integration (derived text renders instead of the registry copies; explicit absences render instead of the hand pin).
  • Hand-check against the real record (the packet's check): loadProjectDoc on this checkout returns the basement-cluster description from the roadmap's own prose and latest status 2026-10-27T03-14-08Z titled "Basement cluster status, 2026-10-26" — matching doc/2026-10-27T03-14-08Z_status_basement-cluster/.
  • Affected suites: bun test on project-doc + program + epic-graph + phase-mapping + program-prime-5082 + projects = 116 pass / 0 fail; bunx tsc --noEmit clean; biome format clean on all changed files (organizeImports warnings on the touched files are pre-existing on main).
  • Full suite: 2503 pass / 43 fail in the worktree vs 2602 pass / 32 fail on clean main the same hour — the failing sets are disjoint, environment-dependent boot/hook-timeout and feed tests (the worktree initially lacked node_modules, which alone explained the program-path boot failure: after bun install it 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).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 07:37
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T07:37:47.635064Z
We couldn’t complete this review. Comment @codex review to try again.
dd72f63 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

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 20 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: bc0e4698-c5ab-4a54-96eb-54419c5c1ff0
Commits

Reviewing files that changed from the base of the PR and between a566a1c and dd72f63.

Files selected for processing: 7

  • pm-stack/aggregator/src/project-config.ts
  • pm-stack/aggregator/src/project-doc.ts
  • pm-stack/aggregator/src/render.ts
  • pm-stack/aggregator/src/server.ts
  • pm-stack/aggregator/src/source.ts
  • pm-stack/aggregator/src/sources/live.ts
  • pm-stack/aggregator/test/project-doc.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

@dezren39

Copy link
Copy Markdown
Member Author

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).

@dezren39
dezren39 merged commit 888530d into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/19427-1108-dashboard-status branch November 17, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

impl(dashboard): project page + complexity-weighted progress visualization (seed: lab-cluster)

1 participant