GeezerVison is showing github.com — C4.3 — Day-type and spike-day adjustments for quota forecasts (data-gated) · Issue #13259 · developing-today/code
C4.3 — Day-type and spike-day adjustments for quota forecasts (data-gated) #13259DescriptionComponent 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.
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 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. dezren39 commented on Nov 23, 2026 🤖 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). dezren39 commented on Nov 23, 2026 🤖 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 |
dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-07, 2026-11-24)
Fresh state: open. Criterion 1 (sample-sufficiency re-measure, PR #13290, merged e8237c0) is done: 51 of 2,583 cells admit an adjustment, all at daypart or dayclass-weekday grain. No weekday or weekend cell admits yet.
Criterion 2 (build shadow day-type adjustments for the admitted cells only) is still open. It is real build work and is not done.
Verdict: route criterion 2 as a feature-slice packet scoped to the admitted daypart and dayclass cells, as shadow records that must earn under criterion 3. Other cells stay adjustment_unavailable. Tracked under #14158. developing-today-fleet commented on Nov 24, 2026 Criterion 2 record — day-type + spike-day adjustments implemented as shadow records (ITEM-WORK-140, 2026-11-24)
PR #14357 merged (9366787ac46f8739b75bf9ce97ee451c813f3e3b). Criterion 2 is landed, scoped exactly as the triage verdict routed it: adjustments built for the admitted cells only (criterion 1, PR #13290: 51 of 2,583 cells — daypart and dayclass-weekday grains), published as shadow records that must still earn in under criterion 3.
The model (pm-stack/aggregator/src/quota-daytype-adjustment.ts, methodology c4-meth:5, logged in c4-methodology-log.jsonl per design §6):
- Per pool/window with a live v1 projection, a shadow record carries the v1 wall verbatim and the adjusted wall: v1 pace × the measured burn-rate ratio of the America/Chicago cell the issuance instant falls in, at the finest grain the §5 gate admits — precedence weekday-daypart → daypart → weekday → dayclass; a cell is admitted at ≥8 independent samples counted exactly as criterion 1 counted them, over the same rename-joined series the S2 harness assembles.
- Burn rates use one shared interval estimator (within reset periods, ΣΔpct/ΣΔt; an interval is attributed to the cell of its end reading) for cell rates, the overall rate, and the spike windows.
- Spike-day (S2.7): trailing-7-day burn ≥10% light vs the trailing-30-day pace (long basis ≥14 distinct dates, short ≥2) predicts a compensating spike day, stated explicitly —
spike_day in inputs.adjustments, both measured rates and the light fraction on the record, and the spike wall at the adjusted pace ×1.2. No silent widening.
- Cells admitted at no grain publish
adjustment_unavailable with the per-grain sample counts — the unadjusted forecast stands, as the gate requires.
- Shadow only (§5 earn-in): records append to
quota-daytype-shadow.jsonl beside the forecast product (gatherer wiring is fail-soft, after the live outputs) — never the C4 prediction log, never the quota-prediction ledger source, and the published forecast is never modified. A reproducible operator form exists: bun run shadow:daytype-adjustments -- --store-dir <dir> --forecast <quota-forecast.json>.
Verification: 23 new oracle-named tests (hand-derived ratios 234/147 and 4158/4230, the ≥8 boundary, grain precedence and dayclass fallback, spike light fraction 5/14 hand-derived, uniform-burn and thin-basis controls, supersedes chain) — 60/60 across the new, sufficiency, downtime, and forecast suites. Typecheck: no errors in touched files (one pre-existing error in src/prompts.test.ts, untouched). Live run over the real snapshot store (21,423 records) against the live forecast product: openai weekly adjusted by daypart:morning at ratio 1.228 — wall 2026-11-24T23:32Z → 21:38Z.
What remains: criterion 3 — the S2-harness accuracy comparison, adjusted vs unadjusted over the same history, before any adjustment ships as the published forecast. The shadow records now accumulate per gatherer tick, carrying both walls, so the comparison has its inputs. This issue stays open for it. developing-today-fleet commented on Nov 26, 2026 Triage verdict (Lane GJ, archer, 2026-11-26)
Fresh state: open. Premise and ownership checked — all comments read, no live competing claim, no held/user label (only status:in-review, as on parent #9572), no Drew-decision gate, and no laptop/physical dependency for the triage itself.
- Criterion 1 — done, verified. Sample-sufficiency re-measure landed in PR feat(aggregator): day-type sample-sufficiency re-measure for C4.3 (#13259) #13290 (merged
e8237c0b76fc): 51 of 2,583 cells admitted, all at daypart / dayclass-weekday grains; weekday and weekday×daypart grains admit none (max 4 vs the ≥8 gate).
- Criterion 2 — done, verified. Day-type + spike-day adjustments implemented as shadow records in PR feat(aggregator): C4.3 day-type + spike-day forecast adjustments as shadow records (#13259 criterion 2) #14357 (merged
9366787ac46f8739b75bf9ce97ee451c813f3e3b), methodology c4-meth:5 logged in c4-methodology-log.jsonl: pm-stack/aggregator/src/quota-daytype-adjustment.ts, gatherer appends to quota-daytype-shadow.jsonl, published forecast never modified.
- Criterion 3 — still open, real build work (not a small fix). Accuracy of adjusted vs unadjusted must be compared in the S2 harness over the same history before any adjustment ships as the published forecast. The methodology log itself states this earn-in gate. Shadow records have accumulated per gatherer tick since 2026-11-24, and the retrospective harness route over the snapshot store is available as in criteria 1–2.
Verdict: return to the queue for real work as a feature-slice packet scoped to criterion 3 only — build/run the S2-harness comparison (adjusted vs unadjusted, admitted cells only; other cells stay adjustment_unavailable), record the accuracy result on this issue, and only promote an adjustment to the published forecast if it beats the unadjusted forecast in that comparison. This triage task (queue 24596) is parked with a non-person ready condition for that dispatch; the issue stays open for criterion 3.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|