You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C4.4 — New model / plan arrival predictions (watch-based, honesty-first) #13260
Component of #9572 (C4 quota forecasting), per its design record (doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md).
Scope: S2.3 second half — predictions of when new models/plans arrive. Evidence base is weak by nature: the inputs are the S5 plan-change detector's history (#12699: observed limit/plan changes), vendor release cadence where recorded, and pool composition facts from the pool review/steward jobs. Records of kind model_plan_arrival name their basis; no_basis is the expected common state and is a first-class published answer, not a failure.
Acceptance:
Arrival prediction records emitted only when a named basis exists; otherwise the pool/plan carries the explicit no_basis state.
Scored on hit/miss + lead time per the C4 design when arrivals occur.
No speculative dates: a record without a basis is never published.
Plan: land one bounded slice per the issue's acceptance — the honesty-first emission rule (arrival records only with a named basis; explicit no_basis state otherwise; no speculative dates ever published), with its test, following the existing C4 forecast/scoring shapes on main.
PR #13299 is open with the first C4.4 slice: the model_plan_arrival record contract as a pure module (pm-stack/aggregator/src/quota-arrival.ts), per the C4 design record §1/§3/§7.
Emission rule (acceptance 1 + 3): one predicted record per named basis that can honestly bound a range — detector_history (this pool's S5 plan-change findings as arrival instants; ≥2 spread intervals bound the next arrival) and vendor_cadence (a cadence actually recorded, with measured spread). One interval, identical intervals, or a spread-less recorded period → insufficient_history; no evidence at all → the explicit no_basis state with every absence named. validateArrivalRecord enforces the contract and the builder validates every record it emits: a predicted record must name a real basis and a strictly bounded range (point dates refused); an honesty-state record carries no range at all — a record without a basis cannot be published, so no speculative date can leave the module.
Scoring (acceptance 2, mechanics):scoreArrivalPrediction — hit/miss plus lead time on hits; honesty states never scored; open predictions unscored, never assumed.
Verification: 20/20 new tests (oracle: the design record), tsc --noEmit clean, neighbouring quota suites green; full-suite comparison against the pre-change failure set is recorded on the PR.
Remainder: the live wiring (gatherer tick → quota-predictions.jsonl + Turso mirror under source quota-prediction), first scored outcomes against live arrivals, and §4's calendar rendering form. This issue stays open on those.
PR #13299 merged (5c8e163849d8), verified present on main. The model_plan_arrival record contract now exists as a pure module, pm-stack/aggregator/src/quota-arrival.ts:
Acceptance 1 + 3 — landed as executable rules. Arrival records are emitted only when a named basis exists (detector_history: the pool's S5 plan-change findings as arrival instants, ≥2 spread intervals bounding the next arrival; vendor_cadence: a cadence actually recorded, with measured spread). Otherwise the subject carries the explicit honesty state — insufficient_history when a basis has evidence that cannot bound a range (one interval, identical intervals, spread-less recorded period), no_basis when no basis has any evidence — with every reason named. validateArrivalRecord enforces the contract and the builder validates every record it emits: a predicted record must name a real basis and a strictly bounded range (point dates refused); an honesty-state record carries no range at all. No speculative date can leave the module.
Acceptance 2 — mechanics landed.scoreArrivalPrediction: hit/miss per record plus lead time on hits; honesty states are never scored; open predictions are unscored, never assumed.
Verification: new suite 20/20 (oracle: the C4 design record §1/§3/§7), tsc --noEmit clean, neighbouring quota suites (anomaly + forecast) 50/50. Full aggregator suite run twice: 3169 pass / 26 fail, then 3178 pass / 17 fail — the failing set varies between runs and is entirely pre-existing environment/timing flakes in areas this change does not touch (server-boot port 4871 collisions ×14, snapshot-lock concurrency, source-gate boot); the change adds two files that nothing else imports. §4 rendering: duration + day forms implemented and stored on the record.
Remainder (this issue stays open): the live wiring — a gatherer tick emitting these records to quota-predictions.jsonl with the Turso mirror under source quota-prediction (constant exported from the module for exactly one spelling) — first scored outcomes against live arrivals, and §4's calendar rendering form (day names/dayparts).
Activity
developing-today commentedon Nov 23, 2026
CODE-4835
dezren39 commentedon Nov 23, 2026
🤖 Agent note · picked up
no_basisstate otherwise; no speculative dates ever published), with its test, following the existing C4 forecast/scoring shapes on main.dezren39 commentedon Nov 23, 2026
🤖 Progress note — Lane WE (archer)
PR #13299 is open with the first C4.4 slice: the
model_plan_arrivalrecord contract as a pure module (pm-stack/aggregator/src/quota-arrival.ts), per the C4 design record §1/§3/§7.detector_history(this pool's S5 plan-change findings as arrival instants; ≥2 spread intervals bound the next arrival) andvendor_cadence(a cadence actually recorded, with measured spread). One interval, identical intervals, or a spread-less recorded period →insufficient_history; no evidence at all → the explicitno_basisstate with every absence named.validateArrivalRecordenforces the contract and the builder validates every record it emits: a predicted record must name a real basis and a strictly bounded range (point dates refused); an honesty-state record carries no range at all — a record without a basis cannot be published, so no speculative date can leave the module.scoreArrivalPrediction— hit/miss plus lead time on hits; honesty states never scored; open predictions unscored, never assumed.tsc --noEmitclean, neighbouring quota suites green; full-suite comparison against the pre-change failure set is recorded on the PR.Remainder: the live wiring (gatherer tick →
quota-predictions.jsonl+ Turso mirror under sourcequota-prediction), first scored outcomes against live arrivals, and §4's calendar rendering form. This issue stays open on those.Merge pull request #13299 from developing-today/lane-we-13260
dezren39 commentedon Nov 23, 2026
🤖 Agent note · slice landed (lane WE)
PR #13299 merged (
5c8e163849d8), verified present on main. Themodel_plan_arrivalrecord contract now exists as a pure module,pm-stack/aggregator/src/quota-arrival.ts:detector_history: the pool's S5 plan-change findings as arrival instants, ≥2 spread intervals bounding the next arrival;vendor_cadence: a cadence actually recorded, with measured spread). Otherwise the subject carries the explicit honesty state —insufficient_historywhen a basis has evidence that cannot bound a range (one interval, identical intervals, spread-less recorded period),no_basiswhen no basis has any evidence — with every reason named.validateArrivalRecordenforces the contract and the builder validates every record it emits: a predicted record must name a real basis and a strictly bounded range (point dates refused); an honesty-state record carries no range at all. No speculative date can leave the module.scoreArrivalPrediction: hit/miss per record plus lead time on hits; honesty states are never scored; open predictions are unscored, never assumed.tsc --noEmitclean, neighbouring quota suites (anomaly + forecast) 50/50. Full aggregator suite run twice: 3169 pass / 26 fail, then 3178 pass / 17 fail — the failing set varies between runs and is entirely pre-existing environment/timing flakes in areas this change does not touch (server-boot port 4871 collisions ×14, snapshot-lock concurrency, source-gate boot); the change adds two files that nothing else imports. §4 rendering: duration + day forms implemented and stored on the record.Remainder (this issue stays open): the live wiring — a gatherer tick emitting these records to
quota-predictions.jsonlwith the Turso mirror under sourcequota-prediction(constant exported from the module for exactly one spelling) — first scored outcomes against live arrivals, and §4's calendar rendering form (day names/dayparts).