Skip to content

feat(pm-aggregator): wire C7 project spaces + reports timeline into serving paths (#12351) - #16781

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
xaltha/12351-c7-wiring
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
xaltha/12351-c7-wiring

Conversation

@dezren39

@dezren39 dezren39 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Part of #9575; C7 leaf 4 (#12351) slice 2 — the serving wiring. Slice 1 (PR #15887) landed the pure module pm-stack/aggregator/src/project-spaces-timeline.ts with no callers; this PR wires it into the aggregator serving paths:

  • src/project-spaces-serving.ts (new): the standing landings for the four spaces (structural facts only — key, title, sibling spaces as related links; every content section renders visibly unavailable rather than invented, since no source feed exists yet), the served timeline view over the current stored records with serving-time link verification (unresolved references surface in missingLinks, never silently render), and the HTML renderers — overview-first with fold/unfold in place (design S4.19).
  • Routes: GET /spaces + /api/spaces.json and GET /timeline + /api/timeline.json, dispatched in server.ts and handled beside handleReportsRead in server-write-routes.ts; the timeline reads the same retained report records as /reports. C6 index/mobile and C8 ingestion stay external: the view exports timelineIndexEntries reference entries and implements neither.
  • pages.ts: both landings registered (work group, dropdown nav) so the current-quarter timeline is discoverable from the page manifest.
  • test/project-spaces-serving-c7.test.ts (new): route-level integration over a seeded records file, booting the real server (the impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 suite pattern).

Design verify list (c7-rollups-design.md, leaf 4)

  • One real-day page and its weekly parent from stored data — new serving suite: a seeded daily record (2026-11-24) reads back on its day node nested under its weekly parent (2026-11-23), month, and quarter in /api/timeline.json.
  • One full design page with linked counts — leaf 3's design-pages-c7.test.ts (hand-written count oracle), re-run in this PR's full-suite verification.
  • Current-quarter timeline discoverable — serving suite (exactly one current quarter, marked, in JSON and HTML) + the /timeline manifest registration.
  • Negative tests — off-window rewrite / duplicate append / snapshot mutation in report-records-c7.test.ts; guessed issue-state counts in design-pages-c7.test.ts; ownership duplication in project-spaces-timeline-c7.test.ts (C6/C8 externality) — all re-run in the full aggregator suite dispatched on this head.

Verification

pm-aggregator-tests.yml (full aggregator bun test + typecheck) dispatched on the exact head; result linked in a comment before merge.

Merge Danger

Door: two-way. Blast radius: two new read-only routes + two manifest entries + one new serving module in the aggregator; no writes, no migration, no schedule change. The spaces pages serve structural landings only until a prose source feed exists.

Closes #12351.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T12:57:17Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "aa5a503c40005914ca3676c21a1da732e7aeb3d7"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

…erving paths (#12351)

Slice 2 of C7 leaf 4: the pure module from slice 1 (PR #15887) had no
callers. This wires it into the aggregator serving paths:

- src/project-spaces-serving.ts: standing landings for the four
  spaces (structural facts only; content sections visibly
  unavailable, never invented), the served timeline view over the
  current stored records with serving-time link verification, and
  the HTML renderers (overview-first, fold/unfold in place, S4.19).
- GET /spaces + /api/spaces.json and GET /timeline +
  /api/timeline.json, dispatched in server.ts and handled beside
  handleReportsRead in server-write-routes.ts; the timeline reads
  the same retained report records as /reports.
- pages.ts registers both landings (work group, dropdown nav) so
  the current-quarter timeline is discoverable from the manifest.
- test/project-spaces-serving-c7.test.ts: route-level read-back —
  a seeded real-day record and its weekly parent served from the
  stored records file, current-quarter discoverability, spaces
  honesty (unavailable sections), and link resolution (C6/C8
  reference entries name the seeded day and week).

Refs #12351.
@coderabbitai

coderabbitai Bot commented Nov 29, 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 50 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: c260717a-c5b8-4b01-8fbb-a7ae27bd1704
Commits

Reviewing files that changed from the base of the PR and between 5b48d26 and 8203833.

Files selected for processing: 6

  • pm-stack/aggregator/src/pages.ts
  • pm-stack/aggregator/src/project-spaces-serving.ts
  • pm-stack/aggregator/src/server-write-routes.ts
  • pm-stack/aggregator/src/server.ts
  • pm-stack/aggregator/test/curation-1497.test.ts
  • pm-stack/aggregator/test/project-spaces-serving-c7.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

…able; fix serving-suite record id (#12351)

- curation-1497: the decision table must cover the manifest; the two
  new landings enter at dropdown tier per the post-#1497 pattern.
- project-spaces-serving: appendReportRecord returns
  { inserted, record } — read the seeded daily record id from
  .record.id (the first dispatch failed this assertion with
  undefined).
@developing-today-fleet
developing-today-fleet Bot merged commit c61f509 into main Nov 29, 2026
6 of 7 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/12351-c7-wiring branch November 29, 2026 13:22
@dezren39

Copy link
Copy Markdown
Member Author

Verification (lane 0647-L15R)

Merged at head 8203833eb (merge commit c61f50943); #12351 auto-closed as completed.

Full-suite run at exact head — pm-aggregator-tests.yml run 46265439205 @ 8203833eb: aggregator job 4199 pass / 1 fail; contract corpus, projector, notify-relay, and browser jobs all success. The single failure is pre-existing on main, not branch-caused:

New and re-run evidence inside that run:

  • project-spaces-serving-c7 (new): all 4 route tests pass — four landings served with visibly-unavailable sections, spaces page render, real-day + weekly-parent read-back from stored records, timeline page with marked current quarter.
  • curation-1497: passes with the two new landings recorded at dropdown tier.
  • All C7 suites pass: design-pages, report-composer, report-periods, report-records, report-review, project-spaces-timeline.

Typecheck: the workflow's typecheck step is skipped whenever the test step fails (the pre-existing failure above), so a separate targeted run — fleet-command 46266560044 (bunx tsc --noEmit + the C7/curation/nav suites at this head) — was dispatched and is in flight; any failure it surfaces will be fixed forward.

@dezren39

Copy link
Copy Markdown
Member Author

Typecheck follow-up (lane 0647-L15R): the targeted run 46266560044 named in the verification comment above concluded failure without running the command. Its log shows a target-checkout failure: the venue fetched refs/heads/xaltha/12351-c7-wiring three times and failed, because the head branch was deleted when this PR merged. No typecheck or test step executed, so the run says nothing about the code.

Re-dispatched as fleet run 46270596649 against branch xaltha/12351-verify-tmp, which points at this PR's merge commit c61f50943: bunx tsc --noEmit plus the C7, curation and nav suites. Result will be posted here when it lands; the temp branch is deleted afterwards.

@dezren39

Copy link
Copy Markdown
Member Author

Typecheck verification, final state (lane 0647-L15R). The faithful project typecheck cannot run on this codebase right now, for reasons that predate and surround this PR rather than sit in it:

  1. Run 46266560044 never executed: its target checkout fetched the PR head branch, which merge had already deleted.
  2. Run 46270596649 (at merge commit c61f509) ran the project's own command and hit tsconfig.json(6,5): error TS5102: Option 'baseUrl' has been removed — the pinned TypeScript 7 (^7.0.2) rejects the project's tsconfig before any source is checked. Filed as pm-aggregator typecheck cannot run: tsconfig baseUrl removed in TypeScript 7 (TS5102), masked by the skipped typecheck step #16835. The same error would fire on unmodified main, and the CI typecheck step is currently always skipped behind the failing test step (main CI failure: aggregator boot.test search-routes stage timings (board stage missing) #16785), which is how this stayed hidden.
  3. Run 46281012731 bypassed the config with the tsconfig's own flags (--ignoreConfig, file list). It reported four error groups, none in this PR's files: a genuine duplicate listDecisionSets declaration in src/decisions.ts (lines 757 and 1242, verified present at c61f509; filed as pm-aggregator: decisions.ts declares listDecisionSets twice (TS2323/TS2393), hidden behind the broken typecheck #16856), and three artifacts of the bypass itself (the @libsql/client paths mapping the config would have supplied, an ambient web-push declaration the file list does not load, and a search-timings type shape that needs the full program). This PR's diff (pages.ts, project-spaces-serving.ts, server-write-routes.ts, server.ts, two test files) drew no error in any run.

The verification this PR stands on is the full-suite run at exact head 8203833 recorded above: 4199 pass, 1 fail (the pre-existing #16785 failure, identical on main). The temp branch xaltha/12351-verify-tmp is deleted with this comment.

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.

C7 leaf 4: project spaces and reports timeline integration

1 participant