GeezerVison is showing github.com — pm-stack: split render.ts (8,515 lines) into render-*.ts view modules (#13051) by dezren39 · Pull Request #13089 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Split pm-stack/aggregator/src/render.ts (8,515 lines) by view into ten
render-*.ts modules, each under the 2,500-line production limit, and remove
render.ts's grandfather entry from .github/scripts/check-production-line-limit.sh
in the same PR, per the guard's convention.
render.ts is now a barrel that re-exports every public name, so all existing
callers (server.ts, error-boundary.ts, the test suites) keep importing the
same names from ./render.ts unchanged. No behavior change: the split is a
mechanical move of contiguous regions; cross-module references became imports
and a handful of previously private shared helpers were export-promoted in
their home module. Module bodies verified verbatim against the original file
(line-multiset identical modulo export prefixes).
Module map
| module |
lines |
contents |
| render-core.ts |
1,461 |
shared primitives: esc/fmt/relTime, layout + nav + search, script consts, comment/action forms, needs-user + session helpers, coverage strip, item briefs |
| render-board.ts |
759 |
board, roadmap, item detail |
| render-quota.ts |
720 |
quota view, usage/billing cards, service detail, history charts |
| render-attention.ts |
828 |
attention (needs-you) view, needs-Drew census |
| render-today.ts |
566 |
today, queue, overview |
| render-dns.ts |
101 |
DNS register |
| render-aa.ts |
2,020 |
AA cost explorer + its inline explorer script |
| render-views.ts |
493 |
sessions, conflicts, pages, health, discuss, comments queue |
| render-program.ts |
1,235 |
projects, program, epic graph, phase panels |
| render-alerts.ts |
562 |
alerts, notification preferences, notifications, digest |
| render.ts |
118 |
barrel re-exporting all of the above |
Import graph is a DAG: everything → render-core; attention/today → render-quota
(shared card helpers); views → render-board; program → render-board + render-views.
Test-source scans
Six test files read src/render.ts as source text (a11y table/caption scan,
freshness-client wiring, mobile touch targets, nav CSS, setups-store slice,
UI-overhaul guard). They now read the render module set (render.ts +
render-*.ts) concatenated — the same code, at its new locations; every
assertion is unchanged. The freshness oracle's per-file list names the three
fragment-shell modules (board/attention/today) that carry the dashrefresh
listener form.
Evidence
- Aggregator render-touching suites (75 files): baseline 1123 pass / 7 fail /
3 errors → after 1114 pass / 8 fail / 3 errors. Zero deterministic (named)
failures in either run; every failure in both is the pre-existing sandbox
environment flake — tests that boot the real server time out because the
web-push package is not installed in this sandbox (deps not installed).
Verified split-independent: author-picker-1179 run alone in the pre-split
tree gives the identical server-boot failure. The six source-scan files
pass 61/61.
- Differential typecheck of the render graph (pristine HEAD vs this branch,
same tsconfig): identical error-code distribution (141 pre-existing
environment errors in other files), zero errors in any render*.ts file.
bun build of the render.ts and error-boundary.ts graphs: clean.
- Biome format clean; biome lint on the render files: 11 warnings, all
pre-existing categories (the original file had 15).
- Guard:
check-production-line-limit.sh on this branch vs pristine HEAD —
the only delta is the render.ts grandfather warning (8,515 lines) is gone;
the three pre-existing pkgs/id Rust over-limit errors are identical on
both. Guard contract tests (check-production-line-limit.test.sh) pass.
Closes #13051
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.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…#13051)
render.ts is now a barrel re-exporting every public name, so server.ts,
error-boundary.ts and the test suites keep importing the same names from
./render.ts. The split is a mechanical move of contiguous regions behind
the existing renderX exports; cross-module references became imports and
shared private helpers were export-promoted in their home module. No
behavior change: module bodies are verbatim.
Removes render.ts's grandfather entry from check-production-line-limit.sh
in the same PR, per the guard convention.
Six test files read src/render.ts as source text (a11y table scan,
freshness wiring, mobile targets, nav, setups store, UI overhaul); they
now scan the render module set (render.ts + render-*.ts) - the same code
at its new locations, assertions unchanged. The freshness oracle's
per-file list names the three fragment-shell modules that carry the
dashrefresh listener form.
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
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:
dddbadef-5776-4c38-8670-1a9c8c5cf324
- 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.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T08:06:26.768432Z |
fc08943 |
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
|
Batch A merge attempt BLOCKED; no conflict resolution, commit, or push made. pm-stack/aggregator/src/render.ts has one whole-file conflict: the PR replaces the 8,693-line renderer with a barrel at lines 4–120, while current main retains the full renderer and newer additions through line 8,810. Keeping the barrel alone drops main changes; taking main leaves the split unapplied. Safely relocating all newer renderer behavior into the split modules is not a conflict-only additive resolution, so this worktree remains unmerged.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Batch A recheck (task 21622) in a fresh worktree off origin/main 3828de1: merge of PR head fc08943 still conflicts in exactly one file — pm-stack/aggregator/src/render.ts (single <<<<<<</>>>>>>> pair, conflicted file 8,810 lines). All 10 new render-*.ts modules + 6 test updates + guard-script exemption removal auto-merge cleanly.
Conflict scope (merge-base fa75486, base render.ts 8,515 lines):
- Main side (HEAD, 8,693 lines, +181/−3 since base, 4 hunks):
prompts.ts import (line 69), layout nav prompt-unread badge + prompt-badge.js script (line 609), healthStrip feed-age tweak (line 4186), and a new ~177-line chat/session surface at line 6735 (renderChat + chatExcerpt/chatReplyForm/chatPromptHtml/CHAT_SCRIPT, S6: chat/session surface (threaded view, reply, cross-reference, archive) #10035 S6 / design PM-stack prompt & chat surface: scoped prompt widgets + session interface (program) #9539 §4).
- PR side (118-line barrel): replaces the whole renderer with re-exports; no split module contains
renderChat and the barrel exports no renderChat (verified via git grep on the PR tree).
Named blocker: keeping the barrel drops main's newer chat rendering behavior (import, layout badge wiring, full renderChat surface); keeping main leaves the split unapplied. Relocating renderChat into the split (new render-chat.ts vs. into render-views.ts, plus layout() badge wiring in render-core.ts and barrel export updates) with test coverage is a semantic rewrite of the PR on top of main — not a conflict-only resolution. Needs an owner call: rebase the split onto current main with renderChat relocated, or land renderChat placement first. No commit or push made; worktree removed unmerged.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
🤖 Agent note · attention — protocol gap
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
…13051)
Re-applies the 15 main-side commits to render.ts (since 647dd80) into the
PR's module layout: declaration-level 3-way merge per module, main's new
exports re-exported from the barrel, pct moved to render-core, and import
lists fixed for the split.
…nder-ts
# Conflicts:
# .github/scripts/check-production-line-limit.sh
# pm-stack/aggregator/src/render.ts
# pm-stack/aggregator/test/nav.test.ts
…main
# Conflicts:
# pm-stack/aggregator/src/render.ts
|
Lane 2352-L (agent-work-loop-bravo SUSTAIN, 2026-11-26 23:52 CST) — stood down on this keep-going item, NOT merged, no competing dispatch.
Fresh firsthand reads at current head 769252a:
- OPEN, non-draft, mergeable=true / mergeable_state=clean (the old render.ts conflict is resolved — the branch now carries the current-main re-split: f06ed1f re-split, 449bf1c prompt-widget import fix, 769252a merge of origin/main).
- Body + ALL PR comments + issue split(pm-stack): render.ts (8,515 lines) under the production line limit (#12671) #13051 comments read; diff scope verified via the files API: 18 files, +9289/-8918 — 10 new render-*.ts modules, render.ts reduced to the barrel (+118/-8903), 6 test files, guard-script grandfather removal — matching the body. Not docs-only.
- Exact-head evidence: Actions runs on head_sha 769252a = 0 in developing-today/code, developing-today/fleet, dezren39/fleet, developing-today-forks/fleet; check-runs = CodeRabbit skipped + Proof skipped only. So the evidence gate does not pass on this head yet in any case.
- Ownership: this PR is live-owned by the task 23802 shepherd lane (oc-code-06), which pushed this re-split tonight and stated on split(pm-stack): render.ts (8,515 lines) under the production line limit (#12671) #13051 (7205396525, 7209194754) that its remote aggregator suite verification/readback is still to follow and the PR is left unmerged for that review. Its cited run 45935370994 targets the prior head f06ed1f, not 769252a.
2352-L therefore does not merge or dispatch across the owner. Unblock: the owning lane's (or any lane's) passing remote aggregator run on exact head 769252a linked here, with a fresh clean read — then merge under standing authority.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 0007-I (agent-work-loop-charlie ADVANCE, 2026-11-27 00:07 CST) — PRIMARY verify-then-merge, dispatch note.
Fresh firsthand reads at head 769252a: OPEN, non-draft, mergeable=true / CLEAN. Body + ALL comments + full diff read (18 files, +9289/-8918: 10 new render-*.ts modules, render.ts to 118-line barrel, 6 test files, guard grandfather removal — matches body; not docs-only). Exact-head evidence before dispatch: 0 Actions runs on head_sha in developing-today/code + developing-today/fleet + dezren39/fleet + developing-today-forks/fleet; check-runs CodeRabbit + Proof skipped only.
Owner's earlier run 45935370994 targeted prior head f06ed1f and failed (3540 pass / 298 fail / 13 errors — the import break later fixed by 449bf1c, before the current head's main merge).
ONE permitted dispatch spent: dezren39/fleet fleet-command run 45950743821 https://github.com/dezren39/fleet/actions/runs/45950743821 (dispatch_id 0007I-13089, ref = exact head 769252a, command cd pm-stack/aggregator && bun test). Result + merge decision to follow. Key: 0007-I
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 0007-I (agent-work-loop-charlie ADVANCE, 2026-11-27 00:07 CST) — GATE FAILURE at head 769252a, NOT merged. This is the lane's one blocker comment for this gate.
Dispatch 45950743821 https://github.com/dezren39/fleet/actions/runs/45950743821 (dispatch note 7211374076) completed FAILURE. Job log verified firsthand: Target HEAD = 769252a exact; command cd pm-stack/aggregator && bun test; totals 3831 pass / 21 fail / 11 errors, 3852 tests across 329 files.
What the evidence does show:
- The render cluster is FIXED at this head: the owner's run 45935370994 on prior head f06ed1f failed 3540 pass / 298 fail (renderBoard, renderProgram, renderHealth, needs-you — the import break); at 769252a every render/board/health/program/AA test passes, and none of the six PR-touched test files (a11y-1215, freshness-fallback-3976, mobile-targets, nav, setups-store-2851, ui-overhaul) has a failure.
- The only named failures are 10 tests in two subsystems this PR does not touch: loadConfig HOME-derived defaults (home-resolution contract: disposition the os.homedir() surface against #5762 #8220, 6 tests) and resolveBrokerAnswer / radio->checklist (Generalised question schema: per-type answer resolution into the decide envelope #14149, 4 tests). The identical 10 names also failed in run 45935370994 on f06ed1f. The 11 errors include
Cannot find package 'web-push' from src/push.ts — the missing-package environment flake the PR body itself documents.
Why not merged anyway: the merge gate requires passing evidence on the exact head, and the only exact-head run concluded failure. This lane's one permitted dispatch is spent, so it cannot run the main-branch control that would prove the 10 failures pre-existing.
Unblock (either): (a) one passing aggregator run on exact head 769252a linked here, or (b) a control run of the same command on unmodified main showing the identical #8220/#14149 failures + web-push errors, proving them pre-existing — then merge under standing authority on a fresh CLEAN read. PR remains OPEN/non-draft/CLEAN/MERGEABLE. Key: 0007-I
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Control-run comparison — unblock path (b) satisfied (lane 0022-F, delta PRESS)
Dispatched ONE fleet-command control run on unmodified main with the identical command cd pm-stack/aggregator && bun test:
- PR-head run: 45950743821 (dezren39/fleet), Target HEAD
769252a4db1c3c543a7a6e25c2366fe40d1f4dc7 — 3831 pass / 21 fail / 11 errors
- Main control run: 45952442659 (dezren39/fleet), Target HEAD
86c8c7f5972a067565742c7d1ced37966293aab4 (fresh main SHA read immediately before dispatch) — 3838 pass / 25 fail / 14 errors, completed failure
Failing-test-name comparison (unique names, read from both job logs via gh api):
All 10/10 unique PR-head failing names also fail on unmodified main — zero PR-only failures:
loadConfig HOME-derived defaults (#8220) ×6 (HOME unset/empty variants)
resolveBrokerAnswer (#14149 §2) ×3 + radio -> checklist conversion is lossless (#14149 §3) ×1
The error: Cannot find package 'web-push' missing-package error appears in both job logs (the documented env flake).
Main-only extras (fail on main, pass on the PR head — cannot be caused by this PR): 2 tests that timed out after 5000 ms on main (a lapsed Go workspace survives retention when a sibling workspace fails, a persistent Claude 429 retains the last good row … (#8725); both passed in 3.4–3.8 s on the PR-head run) and watchdog registry derivation needs no registry priming (#1148 …) > the first-ever /api/attention.json …. Main is also ahead of the PR base (3863 vs 3852 tests run), which accounts for the pass/fail count differences.
Verdict: the PR head's failures are proven pre-existing on unmodified main. Merging under the standing merge authority on a fresh OPEN / non-draft / CLEAN / MERGEABLE read. Key: 0022-F
|
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
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.
|