Skip to content

C4.3 — Day-type and spike-day adjustments for quota forecasts (data-gated) #13259

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.6 day-type adjustments (same time-of-day on other days, other Fridays, other weekends) and S2.7 spike-day modeling (a week running ~10% light predicts a ~+20% spike day, stated explicitly by the model) as adjustments to the v1 pace forecast.

DATA GATE (from the Stage-3 design §2/§8, which deferred this): at 33 days of store history there were ~4–5 samples of each weekday per window — too thin. This issue first re-measures sample sufficiency per the design's threshold; cells below threshold keep the honesty state adjustment_unavailable and the unadjusted forecast stands. No tuned guesses on thin data.

Acceptance:

  • Sample-sufficiency measurement over the live snapshot store, per pool/window/day-type cell, recorded on this issue.
  • Adjustments implemented for cells meeting the threshold, as a named methodology version (methodology-change log entry per the C4 design).
  • Accuracy compared adjusted vs unadjusted in the S2 harness before any adjustment ships as the published forecast.

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Lane WF (archer) claiming this item, 2026-11-23. Served via the agent shortlist (refill #6). Plan: land the first slice — the sample-sufficiency measurement over the live snapshot store, per pool/window/day-type cell, against the Stage-3 design's threshold, recorded on this issue (acceptance criterion 1). Cells below threshold keep adjustment_unavailable; no tuned guesses on thin data.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Progress — Lane WF (archer)

    PR #13290 is open with the criterion-1 slice: the day-type sample-sufficiency re-measure (module + measure:daytype-sufficiency command + oracle-named tests, 10/10 on the laptop route; neighbouring quota suites 41/41).

    Headline of the live run (full measurement lands as the criterion-1 record once the PR merges): 51 of 2,583 cells admitted — all coarse-grain (daypart 39, dayclass-weekday 12); weekday and weekday×daypart grains admit none (max 4 samples vs the ≥8 gate).

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

    @dezren39
    MemberAuthor

    🤖 Criterion 1 record — Lane WF (archer) · PR #13290 merged (e8237c0b76fc)

    The re-measure is landed as a command (bun run measure:daytype-sufficiency -- --store-dir <dir>, module src/quota-daytype-sufficiency.ts) and run over the live snapshot store, 2026-11-23. Method, per the C4 design §5 and Stage-3 §2: a cell admits an adjustment only at ≥8 independent samples; a sample is one America/Chicago calendar date with ≥1 reading in the cell (readings within one occurrence are one burn episode — at the gatherer cadence, counting readings would admit a cell on a single day). Inputs are the rename-joined percent series the S2 harness scores; dayparts are the design §4 names on quarter-day Chicago blocks (night 00–06, morning 06–12, afternoon 12–18, evening 18–24).

    Verdict: 51 of 2,583 cells admitted — every one at the coarse grains. Daypart cells ("same time-of-day on other days") are admitted for the densely gathered pools (39 cells), and dayclass-weekday for 8 pools (12 cells); no weekend cell is admitted anywhere, and the weekday and weekday×daypart grains admit nothing — their densest cell holds 4 samples, half the gate, because per pool/window the gatherer-era series covers at most 19 distinct Chicago dates. Criterion 2 is thereby scoped: adjustments can be built now for the admitted daypart/dayclass cells only, as shadow records that must still earn in under criterion 3; all other cells stay adjustment_unavailable and the unadjusted forecast stands. Weekday cells cross the gate at one new sample per week per cell, so the next re-measure belongs a few weeks out or whenever a slice needs a fresher admission set.

    Day-type sample sufficiency — C4.3 re-measure (#13259)

    Gate: ≥8 independent samples per cell (C4 design §5). A sample is one America/Chicago calendar date with ≥1 reading in the cell; cells are America/Chicago calendar cells. Below the gate the state is adjustment_unavailable and the unadjusted forecast stands.
    Store: 20979 records (20011 percent readings), 2026-10-20T12:00:00.000Z → 2026-11-23T12:45:58.650Z. Pools are folded series keys (the S2 rename join); windows are the canonical forecast windows.

    By grain

    grain cells admitted adjustment_unavailable max samples
    weekday 441 0 441 4
    dayclass 126 12 114 14
    daypart 252 39 213 15
    weekday-daypart 1764 0 1764 4

    Admitted cells

    pool window grain cell samples
    anthropic.claudepro 5h dayclass weekday 11
    anthropic.claudepro 5h daypart night 10
    anthropic.claudepro 5h daypart morning 12
    anthropic.claudepro 5h daypart afternoon 11
    anthropic.claudepro 5h daypart evening 10
    anthropic.claudepro weekly dayclass weekday 12
    anthropic.claudepro weekly daypart night 9
    anthropic.claudepro weekly daypart morning 15
    anthropic.claudepro weekly daypart afternoon 10
    anthropic.claudepro weekly daypart evening 9
    antigravity 5h dayclass weekday 14
    antigravity 5h daypart night 12
    antigravity 5h daypart morning 12
    antigravity 5h daypart afternoon 11
    antigravity 5h daypart evening 13
    antigravity weekly dayclass weekday 13
    antigravity weekly daypart night 13
    antigravity weekly daypart morning 9
    antigravity weekly daypart afternoon 9
    antigravity weekly daypart evening 13
    commandcode 5h dayclass weekday 8
    commandcode 5h daypart morning 9
    commandcode weekly dayclass weekday 9
    commandcode weekly daypart night 8
    commandcode weekly daypart morning 10
    meta 5h dayclass weekday 8
    meta.highusage weekly daypart morning 8
    openai.alt 5h dayclass weekday 12
    openai.alt 5h daypart night 10
    openai.alt 5h daypart morning 8
    openai.alt 5h daypart afternoon 10
    openai.alt 5h daypart evening 9
    openai.alt weekly dayclass weekday 11
    openai.alt weekly daypart night 9
    openai.alt weekly daypart morning 10
    openai.alt weekly daypart afternoon 8
    openai.alt weekly daypart evening 8
    openai.codex weekly daypart morning 9
    openai.main weekly dayclass weekday 13
    openai.main weekly daypart night 10
    openai.main weekly daypart morning 10
    openai.main weekly daypart afternoon 12
    openai.main weekly daypart evening 10
    opencodego 5h dayclass weekday 14
    opencodego 5h daypart night 8
    opencodego 5h daypart morning 12
    opencodego 5h daypart evening 9
    opencodego weekly dayclass weekday 10
    opencodego weekly daypart night 8
    opencodego weekly daypart morning 8
    opencodego weekly daypart evening 9

    Per pool/window

    pool window readings days weekday adm/max dayclass adm/max daypart adm/max weekday-daypart adm/max
    anthropic.claudepro 5h 404 14 0/7 · 3 1/2 · 11 4/4 · 12 0/28 · 3
    anthropic.claudepro weekly 310 16 0/7 · 3 1/2 · 12 4/4 · 15 0/28 · 3
    antigravity 5h 6336 19 0/7 · 3 1/2 · 14 4/4 · 13 0/28 · 3
    antigravity weekly 3657 19 0/7 · 3 1/2 · 13 4/4 · 13 0/28 · 3
    antigravity.claudegpt 5h 139 9 0/7 · 2 0/2 · 6 0/4 · 5 0/28 · 2
    antigravity.claudegpt weekly 11 6 0/7 · 2 0/2 · 3 0/4 · 3 0/28 · 1
    antigravity.gemini 5h 116 9 0/7 · 2 0/2 · 6 0/4 · 5 0/28 · 2
    antigravity.gemini weekly 70 8 0/7 · 3 0/2 · 5 0/4 · 5 0/28 · 2
    antigravitydirect.claudegpt 5h 106 6 0/7 · 2 0/2 · 4 0/4 · 5 0/28 · 1
    antigravitydirect.claudegpt weekly 15 2 0/7 · 1 0/2 · 2 0/4 · 2 0/28 · 1
    antigravitydirect.gemini 5h 92 6 0/7 · 2 0/2 · 4 0/4 · 4 0/28 · 1
    antigravitydirect.gemini weekly 50 6 0/7 · 2 0/2 · 4 0/4 · 4 0/28 · 1
    clinepass 5h 92 6 0/7 · 2 0/2 · 3 0/4 · 5 0/28 · 2
    clinepass weekly 79 8 0/7 · 3 0/2 · 4 0/4 · 5 0/28 · 3
    clinepass monthly 63 8 0/7 · 2 0/2 · 4 0/4 · 4 0/28 · 2
    clinepass.clinepass 5h 57 4 0/7 · 1 0/2 · 3 0/4 · 4 0/28 · 1
    clinepass.clinepass weekly 39 5 0/7 · 1 0/2 · 3 0/4 · 5 0/28 · 1
    clinepass.clinepass monthly 25 4 0/7 · 1 0/2 · 3 0/4 · 4 0/28 · 1
    commandcode 5h 110 10 0/7 · 3 1/2 · 8 1/4 · 9 0/28 · 3
    commandcode weekly 100 13 0/7 · 4 1/2 · 9 2/4 · 10 0/28 · 3
    commandcode monthly 59 9 0/7 · 3 0/2 · 6 0/4 · 7 0/28 · 2
    commandcode.go 5h 3 3 0/7 · 1 0/2 · 2 0/4 · 3 0/28 · 1
    commandcode.go weekly 3 3 0/7 · 1 0/2 · 2 0/4 · 3 0/28 · 1
    commandcode.go monthly 3 3 0/7 · 2 0/2 · 2 0/4 · 3 0/28 · 2
    meta 5h 151 10 0/7 · 2 1/2 · 8 0/4 · 4 0/28 · 2
    meta weekly 132 8 0/7 · 2 0/2 · 6 0/4 · 4 0/28 · 2
    meta.highusage 5h 145 7 0/7 · 2 0/2 · 6 0/4 · 6 0/28 · 2
    meta.highusage weekly 149 10 0/7 · 2 0/2 · 7 1/4 · 8 0/28 · 2
    mistral api 13 1 0/7 · 1 0/2 · 1 0/4 · 1 0/28 · 1
    mistral vibe 184 4 0/7 · 1 0/2 · 2 0/4 · 4 0/28 · 1
    muse.consumer weekly 3 2 0/7 · 1 0/2 · 1 0/4 · 2 0/28 · 1
    openai.alt 5h 294 14 0/7 · 4 1/2 · 12 4/4 · 10 0/28 · 4
    openai.alt weekly 181 13 0/7 · 4 1/2 · 11 4/4 · 10 0/28 · 4
    openai.codex 5h 37 2 0/7 · 1 0/2 · 1 0/4 · 2 0/28 · 1
    openai.codex weekly 246 9 0/7 · 2 0/2 · 5 1/4 · 9 0/28 · 2
    openai.main 5h 17 3 0/7 · 1 0/2 · 3 0/4 · 2 0/28 · 1
    openai.main weekly 210 17 0/7 · 3 1/2 · 13 4/4 · 12 0/28 · 3
    opencodego 5h 623 18 0/7 · 4 1/2 · 14 3/4 · 12 0/28 · 3
    opencodego weekly 574 15 0/7 · 4 1/2 · 10 3/4 · 9 0/28 · 4
    opencodego monthly 482 8 0/7 · 2 0/2 · 7 0/4 · 6 0/28 · 2
    opencodego.0x111dev 5h 63 6 0/7 · 1 0/2 · 4 0/4 · 5 0/28 · 1
    opencodego.0x111dev weekly 52 6 0/7 · 1 0/2 · 4 0/4 · 4 0/28 · 1
    opencodego.0x111dev monthly 48 6 0/7 · 1 0/2 · 4 0/4 · 4 0/28 · 1
    opencodego.developingtoday0 5h 56 5 0/7 · 2 0/2 · 3 0/4 · 3 0/28 · 2
    opencodego.developingtoday0 weekly 45 6 0/7 · 3 0/2 · 4 0/4 · 4 0/28 · 3
    opencodego.developingtoday0 monthly 32 5 0/7 · 2 0/2 · 3 0/4 · 3 0/28 · 2
    opencodego.drewrypope 5h 17 4 0/7 · 1 0/2 · 2 0/4 · 3 0/28 · 1
    opencodego.drewrypope weekly 18 6 0/7 · 2 0/2 · 3 0/4 · 4 0/28 · 2
    opencodego.drewrypope monthly 15 5 0/7 · 1 0/2 · 3 0/4 · 3 0/28 · 1
    opencodego.lab 5h 46 3 0/7 · 1 0/2 · 3 0/4 · 3 0/28 · 1
    opencodego.lab weekly 30 7 0/7 · 2 0/2 · 5 0/4 · 4 0/28 · 1
    opencodego.lab monthly 20 6 0/7 · 2 0/2 · 5 0/4 · 4 0/28 · 1
    opencodego.personal 5h 112 4 0/7 · 1 0/2 · 4 0/4 · 3 0/28 · 1
    opencodego.personal weekly 86 8 0/7 · 2 0/2 · 6 0/4 · 5 0/28 · 2
    opencodego.personal monthly 68 7 0/7 · 2 0/2 · 6 0/4 · 5 0/28 · 2
    opencodego.popesdrew 5h 9 3 0/7 · 1 0/2 · 2 0/4 · 2 0/28 · 1
    opencodego.popesdrew weekly 13 5 0/7 · 1 0/2 · 3 0/4 · 3 0/28 · 1
    opencodego.popesdrew monthly 12 5 0/7 · 2 0/2 · 4 0/4 · 2 0/28 · 2
    opendesign 5h 188 9 0/7 · 3 0/2 · 6 0/4 · 5 0/28 · 3
    opendesign weekly 184 7 0/7 · 3 0/2 · 5 0/4 · 5 0/28 · 3
    opendesign.go 5h 1 1 0/7 · 1 0/2 · 1 0/4 · 1 0/28 · 1
    opendesign.go weekly 1 1 0/7 · 1 0/2 · 1 0/4 · 1 0/28 · 1
    openrouter monthly 1 1 0/7 · 1 0/2 · 1 0/4 · 1 0/28 · 1
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