Repository navigation
feat(aggregator): read-only source-conflict inbox + API + health count (#1282) - #5032
Conversation
#1282) Slice 1 of #1282: one queue over every disagreement the facets already report, instead of a warning badge that only exists where it renders. - src/conflicts.ts: project the canonical model into conflict entries — Project Status vs derived state (projectDisagreement) and recorded quota conflict lines (SaasService.conflicts). Each entry names the item, both sources, both values, and an age floor measured from the source's own timestamp (item.updatedAt / service.measuredAt), with ageBasis stated so "at least N days" is never read as exact. - /conflicts renders the inbox grouped per class; /api/conflicts.json is the same projection, machine-first. - /health gains a Source conflicts card and /api/health the same count, so a growing backlog is visible where stack state lives. - No ruling store and no render value changes: this slice projects only. Tests: seeded disagreement fixtures assert both values, the age basis, per-class counts, the empty-inbox state, and the page/health render.
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. |
|
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 15 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. CodeRabbit Verify
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Slice 1 of #1282 (read-only half of the split from triage 6840). One queue over every disagreement the facets already report, instead of a ⚠ badge that only exists on the surface where it happens to render.
What this adds
src/conflicts.ts— the projection. Two classes, both collected from data that exists today (no new facet adapters):project-vs-derivedprojectDisagreement()over the org Project poolGitHub Project Statusvsdashboard-derived state, both valuesquota-recordsSaasService.conflicts(quota-view lines + gatherer flags)Age is a floor, not a birthday: it is measured from the newest timestamp the source itself carries (
ProjectPoolItem.updatedAt,SaasService.measuredAt), and every entry carriesageBasisso the page says "at least N days". An item edited yesterday for an unrelated reason can carry a much older clash, so the UI never claims an exact age./conflicts(renderConflicts) renders the inbox grouped by class — item, sources, both values, age floor, link to the underlying records — with a real empty state ("an empty inbox here is a real empty, not an unread one")./api/conflicts.jsonserves the sameConflictInboxobject, assembled once per request, so the page and the API cannot disagree about what disagrees.Health surface:
ConflictsHealthonHealthView, rendered as a Source conflicts card on/healthand carried in/api/health(body.conflicts), so a growing conflict backlog is visible where the stack's state lives.Manifest:
conflictspage entry atdropdowntier in theworkgroup, withDECISIONSincuration-1497updated to match.What this deliberately does NOT do
rg -i "kaneo.*(disagree|mismatch|conflict)"→ 0 hits). Inventing that comparison would be a new adapter, which the packet excludes.RoadmapReconciliation.drift) rather than per-item, so it is not in the inbox yet — noted on feat(aggregator): source-conflict inbox — one resolvable queue for Project-vs-derived and Kaneo-vs-GitHub disagreements, with per-class trust rulings #1282 as the natural third class.Tests
test/conflicts-1282.test.ts— 11 tests, seeded disagreement fixtures (not agreeing ones):Covers: both values with neither preferred, per-class counts,
oldestAgeDays, JSON round-trip, empty inbox, the render, the health card, and the "not assembled" state instead of an invented zero.Not run locally:
bunx tsc --noEmit(worktree has no installed deps, so thebuntype library is missing) — CI's typecheck is the check for that.Closes nothing: #1282 stays open until slice 2 (rulings) lands.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.