GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(web): aggregator UI — WIP board, roadmap, quota + throughput, needs-you views by dezren39 · Pull Request #856 · developing-today/code Conversation
|
| Route | View |
|---|---|
/ |
Cross-repo WIP board — curated in-flight set across the four repos, each card carrying an execution strip (implementing → review → merged → queued) derived from its linked issues/PRs. |
/roadmap |
Roadmap — Grist's Program roadmap table as a timeline (theme × quarter lane); each row drills down to its linked GitHub issues with live state. |
/quota |
Quota + throughput (#851) — pooled quotas, resets, burn rates, model-choice guidance. |
/attention |
Needs you (#852) — every live session classified and attention-ordered, evidence inline. |
/item/<subject> |
Drill-down: linked refs + a unified comment stream (PR-interior comments included). |
Every view is machine-first: /api/board.json, /api/roadmap.json,
/api/quota.json, /api/attention.json return the same data the GUI
renders, so Muse can poll one endpoint and answer a full question.
developing-today/{code,opencode,openchamber},dezren39/nix) and shows it live. Registry keys are repo-qualifiedowner/repo#N); subjects match Session J's contractkaneo:<projectSlug>/<taskId>, grist:<docId>/<tableId>/<rowId>,gh:<ref>).deleted tombstones are dropped).Both render in the board's execution strips and the item drill-down.
| Facet | Live reader | Fallback |
|---|---|---|
| Board | Kaneo REST (all four projects; in-flight columns) | fixtures |
| Roadmap | Grist REST (Roadmap table records) |
fixtures (the real Grist seed rows) |
| Items (refs) | Projector GET /items?refs=… |
fixtures |
| Comments | Projector GET /comments?refs=… |
fixtures |
| Quota (#851) | (projector concern — not yet projected) | fixtures |
| Attention (#852) | (projector/watch-cron concern — not yet projected) | fixtures |
Verified live on this host: board renders 127 Kaneo tasks and
roadmap renders 16 Grist rows when PM_AGG_SOURCE=live and the
env vars are set. Everything is behind one Source interface
(src/source.ts), so fixtures↔live is a config change. The page footer
states, facet by facet, what is live vs fixture-backed. Fixtures are
the default and fully stand-alone: bun run dev with no config.
Both are implemented as machine-first surfaces (data model + API + GUI
over the same data), per the "data surface for Muse first, nice GUI
second" priority:
QuotaPool/QuotaWindow/BurnSegment/QuotaView in model.ts; wall detection + near-limit thresholdNEAR_PCT=85) in derive.ts. The per-source readers named in theAttentionState, classifyAttention/attentionSorted) inderive.ts, ordered stopped-for-question/errored first, evidenceNothing from the CCC reference design (FSL-1.1-MIT) is vendored — only
the machine-first idea.
cd pm-stack/aggregator && bun install && bun run dev # http://127.0.0.1:4870 bun test # 21 pass: derivations, render smoke, boot smoke bunx tsc --noEmit # clean
pm/projector (this branch starts at its tip).code project today; the board is genuinelypm/connect-repos) connects the other
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The aggregator UI (session K, pm/aggregator-ui) consumes a swappable Source behind one interface. Lands the read model (repo-qualified issue/PR refs, the comment projection with PR-interior entries), the pure derivations (execution strip, roadmap timeline lanes, unified comment stream), and a fixture source shaped like the live readers, with the real Grist seed rows and the design record's known refs (#752/#754/#762/#763, nix #501-508, opencode #365).
…w views The aggregator is now runnable: a Bun server (read-only routes) that renders the four views and serves machine-first /api/*.json endpoints. - Cross-repo WIP board with per-card execution strip, and the roadmap timeline, both drilling down to an item page with the unified comment stream (PR-interior comments included). - Live readers for Kaneo (board) and Grist (roadmap) behind the same Source interface as fixtures, with per-facet fallback and a provenance footer that says what is live vs fixture-backed. - Two new design views: quota + throughput (#851) and needs-you (#852), machine-first data models with classification/wall rules in derive.ts and a GUI rendering the same data. - Tests: unit derivations + render smoke, plus a boot test that serves every view from fixtures. 21 pass.
There was an error while loading. Please reload this page.
|
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 4 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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 956a5d5fe3
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // --- Projector (J's service) -------------------------------------------- | ||
|
|
||
| async function projectorItems(baseUrl: string, refs: RefKey[]): Promise<Map<RefKey, GhItem> | null> { | ||
| const r = await getJson(`${baseUrl}/items?refs=${refs.join(",")}`); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Encode ref keys before inserting them into projector URLs
When PM_PROJECTOR_URL is configured, every canonical ref contains #, which starts a URL fragment rather than remaining part of the query. For example, requesting comments for developing-today/code#752,dezren39/nix#501 sends only /comments?refs=developing-today/code to the projector; neither issue number nor subsequent refs reaches it. The /items request has the same defect. Encode the query value with URLSearchParams or equivalent so live execution strips and comment streams receive their requested refs.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const [items, comments] = await Promise.all([source.items(refs), source.comments(refs)]); | ||
| return html(renderItem(row.title, row.subject, row.links, undefined, items, comments, prov())); | ||
| } | ||
| return html(`<h1>Not found</h1><p class="muted">no board item or roadmap row with subject <code>${id}</code></p>`); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Escape the decoded subject in the not-found response
For an unknown /item/<subject> URL, the decoded path is interpolated directly into an HTML response. A link to /item/%3Cimg%20src%3Dx%20onerror%3Dalert(document.domain)%3E therefore returns an executable image element rather than displaying the subject as text, allowing reflected JavaScript execution in the aggregator's origin when someone follows the link. Escape id with the renderer's HTML-escaping helper before including it in this response.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return json(await source.quota()); | ||
| } | ||
| if (path === "/api/attention.json") { | ||
| return json(await source.attention()); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Return classified attention entries from the JSON endpoint
The attention API returns raw SessionFeedEntry values, whereas renderAttention applies attentionSorted to produce the displayed classification, urgency ordering, and evidence. Consequently, even with the default fixtures, /api/attention.json starts with the in-motion session and provides no state, order, or evidence fields. Machine consumers polling the documented machine-first endpoint cannot obtain the needs-you decisions shown in the GUI. Apply the shared classification and sorting derivation before serializing the feed.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (w.limit == null || w.limit <= 0) return 100; | ||
| return (w.used / w.limit) * 100; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Honor supplied quota percentages when limits are unknown
The shipped OpenCode Go and DeepSeek windows both have limit: null but supply measured percent values of 85 and 40 respectively. This function ignores those values and returns 100, so /quota displays both meters as exhausted despite their near/healthy badges; poolState also incorrectly derives walled for both. Use the supplied percentage when available rather than treating an unknown absolute limit as evidence that the quota is exhausted.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (rows.length > 0) { | ||
| provenance.roadmap = "live (Grist)"; | ||
| return rows; | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Preserve successful empty results from live readers
When Grist successfully returns an empty Roadmap table, this length check discards that authoritative result and replaces it with all 16 seed rows. The board and projector-items readers use the same nonempty-only acceptance pattern, so clearing the board or receiving no resolved refs likewise resurrects illustrative fixture work or GitHub states. Treat successful empty collections as live data and reserve fixture fallback for failed reads.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return live; | ||
| } | ||
| } | ||
| return fix.comments(refs); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reset projector provenance when falling back to fixtures
After a successful projector comments read sets provenance.comments to live (projector), a subsequent projector outage takes this fallback without updating that label. The returned illustrative comments are consequently presented in the item page's footer as live projector data. The items fallback has the same stale-provenance behavior, potentially labeling fabricated issue/PR states as live. Update each facet's provenance on its fallback path so it describes the data actually returned by that read.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.