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(pm-agg): C4.4 arrival prediction records — honesty-first emission, validation, scoring (#13260) by dezren39 · Pull Request #13299 · developing-today/code Conversation
|
|
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 46 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. |
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 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: 1e24f50b10
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.
| test("every builder-emitted record validates", () => { | ||
| for (const rec of buildArrivalRecords(baseInput)) expect(() => validateArrivalRecord(rec)).not.toThrow(); | ||
| expect(() => validateArrivalRecord(predicted())).not.toThrow(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cover arrival invariants with generated property tests
The new suite checks its claimed “every builder-emitted record validates” invariant against only two fixed fixtures, and contains no generated property/model coverage. The repository testing doctrine requires PBT where code has invariants and MBT where a specification exists; this module has both explicit range/state invariants and the cited C4 design. Add generated histories and cadences covering bounded predictions, honesty states, pool isolation, and duplicate/order invariance rather than relying exclusively on handwritten examples.
AGENTS.md reference: AGENTS.md:L37-L39
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const earliest = last + minI; | ||
| const latest = last + maxI; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stop emitting detector predictions after their window expires
When issuance occurs more than the longest measured interval after the last arrival, these bounds are entirely in the past, but the builder still publishes a validated predicted record. For example, arrivals on days 0, 10, and 25 issued on day 50 produce a day 35–40 prediction and a negative “days from now” rendering. Unchanged history will keep emitting this expired forecast at every subsequent issuance. Check the bounds against issuedMs and emit a named honesty state when the next-arrival window has already elapsed rather than publishing a retrospective prediction.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const instants = arrivalInstants(input.detectorFindings, input.subject.pool); | ||
| if (instants.length >= 2) { | ||
| evidenceSeen = true; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Classify a single recorded arrival as insufficient history
With exactly one matching plan-change finding and no vendor cadence, this branch never sets evidenceSeen, so the final record is no_basis despite having detector-history evidence. This contradicts the builder's documented distinction between no evidence and evidence that cannot bound a range, and makes the first observed arrival indistinguishable from an empty history to state consumers. Mark evidence as present whenever at least one attributable arrival exists, while retaining the explanation that no interval is measurable.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| test("every builder-emitted record validates", () => { | ||
| for (const rec of buildArrivalRecords(baseInput)) expect(() => validateArrivalRecord(rec)).not.toThrow(); | ||
| expect(() => validateArrivalRecord(predicted())).not.toThrow(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cover arrival invariants with generated property tests
The claimed “every builder-emitted record validates” invariant is checked only against two fixed fixtures, and the rest of this new suite likewise contains only hand-written examples. The repository testing doctrine requires PBT where code has invariants and MBT where a specification exists; this module has both explicit range/state invariants and the cited C4 design. Add generated histories and cadences covering bounded predictions, honesty states, pool isolation, and duplicate/order invariance rather than relying exclusively on handwritten examples.
AGENTS.md reference: AGENTS.md:L37-L39
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (f.detector !== "plan-change") continue; | ||
| if (f.providerId !== pool) continue; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Resolve pool identity for limit-change findings before filtering
When supplied with S5 findings from quota-limit changes, this filter discards every arrival: observeLimitRecord in quota-anomaly.ts:661–680 always sets providerId: null, and both runAnomalyReplay and the live tick append those findings without enriching that identity. Consequently, even a pool with several measured limit changes produces no_basis unless its window kinds also changed; the tests conceal this by constructing limit-change findings with a populated provider ID. Resolve known service IDs through the existing FORECAST_POOLS service-to-provider mapping before filtering, or populate provider identity in the producer, while continuing to reject genuinely unattributable findings.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis 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 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.