GeezerVison is showing github.com — feat(pm-stack): live outcome-attribution consumer on the aggregator sweep (#10910) by dezren39 · Pull Request #13022 · 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.
Lands the live cadence wiring remainder of #10910 (named in felix's PR #12709 landing record): the outcome projector is no longer test-only — it now runs on the aggregator's sweep.
What it does
- New
pm-stack/aggregator/src/outcome-consumer.ts:
GithubOutcomeConsumer — sweeps the projector's impl(observability): GitHub webhook ingestion + hot list (#2072 slice 2) #5204 hot list under its own consumer identity (pm-aggregator-outcome-v1) with the same fixed-high-water discipline as GithubHotListConsumer (page-sequence / high-water-stability / next-cursor validation). Per page it resolves bindings and calls OutcomeFactStore.applySweep. The ledger cursor is the resume point and advances only after a page's facts are durably written; the projector checkpoint is acked only when the ledger covers the full high-water; fact-id dedupe makes any replay a no-op. A failed sweep records a source-gap fact in the ledger and moves no cursor; a page-budget-exhausted sweep returns lagging, keeps its durable facts, and acks nothing.
OutcomeBindingSource + FileOutcomeBindingSource — bindings are read from JSONL queue/session binding records (PM_AGG_OUTCOME_BINDINGS_FILE). A missing file is an empty source (every fact lands explicitly unattributed / no-binding, per the spec's no-guessing rule); a corrupt line fails the sweep with outcome_binding_source_corrupt instead of silently rendering as "no bindings exist".
server.ts — the consumer is constructed under the same live + projector-configured condition as the hot-list consumer and runs on the same 60s worker tick, immediately after the hot-list sync; failures log an [activity] WARNING with the sync state.
config.ts — PM_AGG_OUTCOME_FILE (default ~/.local/state/pm-aggregator/outcome-facts.jsonl) and PM_AGG_OUTCOME_BINDINGS_FILE (default ~/.local/state/pm-aggregator/outcome-bindings.jsonl).
Verification
- New
test/outcome-consumer.test.ts: 8 tests against a fake projector — sweep projects facts + advances cursor + acks; file-source bindings attach job/session/model identities while unbound events stay unattributed; missing bindings file is an empty source; replay/restart append nothing; a failed sweep records a source-gap fact, moves no cursor, acks nothing, and recovers next tick; page-budget partial sweep keeps durable facts and resumes; corrupt bindings file fails visibly; ledger stays append-only JSONL in sweep order. 16/16 pass together with the existing outcome-attribution suite; tsc --noEmit clean.
- Full aggregator suite on the worktree: 3063 pass / 22 fail — every failure is a server-boot timeout or
port 4871 in use collision, reproduced identically (in one file, worse) on a pristine origin/main worktree under the same multi-lane laptop load; none touch this change, and the new wiring is inert outside live mode.
Refs #10910 — the issue stays open for its remaining slice: the outcome/rollup view with issue/job drill-through.

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
…weep (#10910)
Wires the #2072 slice-4 outcome projector into the aggregator's live
cadence: GithubOutcomeConsumer sweeps the projector hot list under its
own consumer checkpoint (pm-aggregator-outcome-v1), next to
GithubHotListConsumer, projecting each fixed high-water into the
append-only outcome-fact ledger. The ledger cursor is the resume
point and advances only after a page's facts are durably written; the
projector checkpoint is acked only when the ledger covers the full
high-water; fact-id dedupe makes replays no-ops. A failed sweep
records a source-gap fact and moves no cursor.
Bindings resolve through an OutcomeBindingSource; the wired
FileOutcomeBindingSource reads JSONL queue/session binding records
(PM_AGG_OUTCOME_BINDINGS_FILE) — a missing file means every fact
lands explicitly unattributed, and a corrupt line fails the sweep
visibly instead of rendering as no-bindings.
Refs #10910 — this lands the live cadence wiring remainder named on
the issue; the outcome/rollup view remainder stays open there.
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 40 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:
360821c2-580b-4f72-8d1a-a00e2480979e
Commits
-
Reviewing files that changed from the base of the PR and between ab12d7f and f99c848.
Files selected for processing: 4
-
pm-stack/aggregator/src/config.ts
pm-stack/aggregator/src/outcome-consumer.ts
pm-stack/aggregator/src/server.ts
pm-stack/aggregator/test/outcome-consumer.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
-
|
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-23T07:15:50.954130Z |
f99c848 |
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.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|