Repository navigation
fix(ci-overflow): admit hosted jobs at measured p90 estimate + headroom M; release runner-less cancels (t_f459aa52) - #1216
Conversation
…droom M; release runner-less cancels (t_f459aa52) D4 amendment (Apollo ruling 2026-09-25 21:2x PT, option 1b). Ledger(estimate_headroom=M): reserve() prices each hosted job at E = p90 of the ledger's billed_samples for its kind (slice/e2e; ceiling 35/20 until >=20 samples) and admits while consumed + E + M <= limit. estimate_headroom=None keeps the legacy ceiling mode. Reconcile charges min(ceil(billed), ceiling) (above E too), unmeasured executed jobs the ceiling, records samples (cap 200), and releases a cancelled job with no runner and steps=[] (5.3a). Validator: reservation 1..ceiling, hosted_minutes 1..ceiling, optional billed_samples validated. Verified: tests/test_ci_overflow_ledger.py + plan + contract + preflight pass (py3.14); scripts/ci_overflow_mutation_gate.py 36/36 mutants killed (10 new D4a arms).
5c5bd39 to
78401d4
Compare
|
🤖 merged-by: apollo · lane: kanban-t_f459aa52 · gate: BYPASS: FR PAUSED by Ace ruling 2026-09-22 (state/fleetreview-pause-20260922.md); Apollo-reviewed lands via bypass · why: Apollo review PASS (D4 option 1b): p90-per-kind admission estimate with MIN_SAMPLES ceiling fallback, headroom M, reconcile charges max(billed,estimate)+records samples, runner-less cancel release w/ negative control; rebased over #1125 (0 conflicts), ledger suite 92/92 via test-gate; the one red slice (test_mcp_serve startup-baseline) is unrelated to the PR's files and passed on rerun |
This comment has been minimized.
This comment has been minimized.
FleetReviewReview: post-merge · head Post-merge review ( profile: light (rule: default light: lines 243<800, files 3<1000000, hunks 14<1000000, no hot path) · round 0 · members: B-assert-ctx, B-state, F, G · families: openai,xai Confidence: 2/5 Findings
FleetReview provenance · models: B=gpt-6-sol, D=grok-4.6, F=gpt-6-sol · cost: $0.91 · duration: 17m 30s · rounds: 1 · files examined: 3 |
Stacked on #1125 (base = its branch; retargets to main when #1125 merges).
Apollo D4 ruling (option 1b) on t_f459aa52. The day drained to remaining_allowance=1 at 02:54Z because 13-14 concurrent merge_group attempts each held 300 reserved minutes, while real billed use was about 55-73 min per run.
Ledger(estimate_headroom=M):reserve()prices each hosted job at E, the p90 of the ledger'sbilled_samples[slice|e2e]. Until 20 samples exist, E falls back to the ceiling of 35/20. A job is admitted while consumed + E + M <= limit.Nonekeeps legacy D4 ceiling mode, and an invalid M admits no cloud.The controller side (config
admission_headroom, passing conclusion+steps, vendor repin) is a separate fleet-ops-scripts PR.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.