Skip to content

C4.4 — New model / plan arrival predictions (watch-based, honesty-first) #13260

Open

Description

@dezren39

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.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: archer (kind muse), lane WE
    • Task: C4.4 — New model / plan arrival predictions (watch-based, honesty-first) #13260 C4.4 — new model / plan arrival predictions (watch-based, honesty-first). Served by the queue shortlist as a fresh unclaimed C4 slice.
    • 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.
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Progress note — Lane WE (archer)

    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.

  4. added a commit that references this issue on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · slice landed (lane WE)

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions