GeezerVison is showing github.com — C4.1 — Complete-downtime window prediction (all pools walled at once) · Issue #13257 · developing-today/code
C4.1 — Complete-downtime window prediction (all pools walled at once) #13257DescriptionComponent 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: derive complete-downtime windows — intervals where every routing pool is predicted walled simultaneously — from the Stage-3 forecast product (quota-forecast.json, #12695) plus per-pool reset times. Emit C4 prediction records of kind downtime_window (schema in the design): range with earliest/latest reopening, basis named, logged for scoring.
Boundaries: consumes the existing forecast product and gatherer substrate; no second gatherer; no placement effect (advisory data for C6 pages and forecast alerts).
Acceptance:
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
🤖 Lane claim — Lane WA (archer)
Taking #13257 (C4.1 complete-downtime window prediction), served by the queue shortlist (rank 6, rechecked unclaimed).
Ownership check: no assignees, no labels, only comment is the bot task link — no live claim. Premise check and substrate survey first (design record doc/2026-11-13T15-12-00Z_design_reporting-architecture-event-driven/c4-forecasting-design.md, the #12695 forecast product, gatherer publication point); then one slice: one PR making one acceptance criterion pass, with its test. dezren39 commented on Nov 23, 2026
🤖 Agent note · slice landed — Lane WA (archer)
PR #13295 merged (619b7e56e6dc, head-SHA guarded at 6569d04a58c).
Design conformance: the C4 design (PR #13268) landed mid-slice; this PR was reconciled to it before merge — the records are the design's (§1 schema, §7 derivation), not a parallel shape.
What landed:
pm-stack/aggregator/src/quota-downtime.ts — pure derivation over the tick's Stage-3 forecast product (impl(quota-plane): stage-3 S1 — forecast product: per-tick quota-forecast from the analytics pace math #12695): per-pool wall intervals [wall, reset) intersected across every routing pool (canonical provider id); earliest = last member wall, latest = earliest member reset; basis since_last_reset with detail; §4 rendered string stored at issuance; supersedes linked from the log tail; methodology c4-meth:1.
- Gatherer wiring (fail-soft, after the forecast publication): records append to
quota-predictions.jsonl beside the forecast product and mirror into the Turso ledger under the C4 source quota-prediction.
pm-stack/aggregator/c4-methodology-log.jsonl — the §6 log's first entry.
Acceptance:
- Criterion 1 — downtime-window records published on gatherer ticks alongside the forecast product (proven by unit tests + the gather-quota integration test asserting the tick appends the record).
- Criterion 3 — a window with no defensible basis is a published
insufficient_history honesty state with a named reason, never an invented interval; a defensible no-window tick publishes no record (absence is the scored signal, §3).
- Criterion 2 — remains: scoring downtime windows per §3 (start/end error, interval overlap) in the accuracy ledger. The mirrored records landed here are its input; that is the next slice.
Verification (laptop route): bun test src/quota-downtime.test.ts 15/15; mutation check (intersection every→some) fails 9/15, restored green; gather + forecast + accuracy suites 38/38; tsc --noEmit 0 errors. Remote dispatch attempted (run 45178762980) and failed at command execution — the fleet-build container has no bun (#13159 family), not a test result.
#13257 stays open on criterion 2. developing-today-fleet commented on Nov 24, 2026
🤖 Triage verdict — not resolved; one criterion remains, now routed (queue task 22291, fresh reads 2026-11-24)
Verified landed:
- Criterion 1 ✓ and criterion 3 ✓ — PR #13295 merged 2026-11-23T13:15:18Z;
pm-stack/aggregator/src/quota-downtime.ts is on current main (17,028 bytes) and downtime-window records publish on gatherer ticks beside the forecast product, with the insufficient_history honesty state for basis-less windows.
Verified NOT landed:
- Criterion 2 ✗ — scoring downtime windows in the accuracy ledger.
pm-stack/aggregator/src/quota-forecast-accuracy.ts on current main contains no downtime_window scoring (its only kind is its own quota-forecast-accuracy record). The design's §3 rules are defined and waiting: start error and end error (signed minutes), interval overlap (intersection ÷ union of predicted vs realized window), a predicted window that never occurs scores as a false window, a realized complete-downtime with no prediction scores as a miss, and no_basis states are not scored.
Routing: criterion 2 is filed as a scoped feature_slice packet on repo-health-code-pilot (dedupe repo-health:v1:slice:developing-today/code:issue:13257:slice-2), scoped to extending the existing accuracy module to the downtime_window kind against the prediction log PR #13295 established. #13257 stays open on that slice; it closes when the slice lands and this criterion is checked. dezren39 commented on Nov 24, 2026 Criterion 2 landed via PR 14344 (merged 2026-11-24, squash): downtime_window scoring per design section 3 in pm-stack/aggregator/src/quota-forecast-accuracy.ts — start/end error (signed minutes), interval overlap (intersection over union), false-window/miss outcomes with S2-shaped precision/recall, honesty states unscored; realized windows join from the same snapshot-store pool-state history (no second gatherer). Tests: bun test src/quota-forecast-accuracy.test.ts 21/21 (7 new: hit, partial overlap, false window, miss, honesty-unscored, realized join); downtime+forecast+weekly-review 44/44; tsc clean apart from the pre-existing missing-bun-types env error (identical on unmodified main). Lane oc-code-08, queue task 23140. developing-today-fleet commented on Nov 26, 2026
🤖 Triage verdict — resolved, all criteria landed; closing (queue task 24598, fresh reads 2026-11-26)
Premise + ownership: issue open, no assignees, only label status:in-review (no held/user label, no Drew-decision gate); all 5 prior comments are completed slices/verdicts — no live competing claim.
Verified landed (independent reads this run):
All three acceptance boxes in the body are already checked and match the merged record. No remaining work; closing as completed. developing-today-fleet commented on Nov 26, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|