Skip to content

proposal(quota-plane): widen the caution margin NEAR_PCT 85 → 90 (weekly walls arrive systematically early) - #12761

Closed
dezren39 wants to merge 1 commit into
mainfrom
quota-proposal/caution-margin/NEAR_PCT/85-to-90
Closed

dezren39 wants to merge 1 commit into
mainfrom
quota-proposal/caution-margin/NEAR_PCT/85-to-90

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

proposal(quota-plane): widen the caution margin NEAR_PCT 85 → 90 (weekly walls arrive systematically early)

Generated by the Stage-3 re-weighting proposal generator (S6, #12700; design D5).
This PR was opened by the generator, not hand-written. It proposes; it does not
merge — merge authority is unchanged (Felix/Drew), and the #1342 controlled A/B
gate applies before this proposal class becomes routine.

Proposal key: caution-margin:NEAR_PCT:85->90
Class: caution-margin
Target: the caution margin NEAR_PCT (derive.ts), the threshold at which a pool enters the caution/near tier — pm-stack/aggregator/src/derive.ts: 85 → 90

Rationale

Weekly walls arrive systematically earlier than the linear pace projects: meta (median signed wall error +4741.1 min over 269 scored forecasts, precision 0.529, recall 0.647); anthropic:claude-pro (median signed wall error +794.6 min over 273 scored forecasts, precision 1, recall 0.582). The caution tier is entered on measured percent at NEAR_PCT; widening it by one step (85 → 90) puts pools under caution discipline earlier in exactly the windows whose walls the forecast under-calls. D4 reserves margin changes to this proposal mechanism; the #1342 controlled A/B gate applies before the margin class becomes routine.

Evidence — accuracy record (S2)

Accuracy ledger generated 2026-11-23T00:00:54.628Z; model: quota-analytics.projectWindow pace v1 (design D2, via S1 #12695).
Store span: 20663 records (19735 percent readings), 2026-10-20T12:00:00.000Z → 2026-11-23T00:00:54.628Z.

pool window scored precision recall median signed wall error (min) wall samples walled periods
meta weekly 269 0.529 0.647 +4741.1 110 3/4
anthropic:claude-pro weekly 273 1 0.582 +794.6 159 3/4
_openai.main weekly 137 0.81 1 -406.3 111 5/8
_openai.alt weekly 169 1 0.958 -155 161 4/6
cline-pass weekly 105 0.244 0.957 +2.7 22 1/3
opendesign weekly 175 1 0.903 +167.1 158 5/5

Evidence — forecast (S1)

no forecast file supplied to this run (the accuracy ledger alone grounds the proposal; the live forecast's current projections join the pack when the generator runs against the aggregator state dir)

Evidence — shadow diff (S3)

no shadow record supplied to this run (the caution-margin class is the one S3 shadows; its diff summary joins the pack when the generator runs against the aggregator state dir, and the post-change shadow record is what S7 scores the expected effect against)

Expected effect (scored by the weekly review)

In the four weeks after this lands, the fraction of realized weekly walls in the grounding pools (meta, anthropic:claude-pro) that were preceded by at least one gatherer tick with the pool in the caution/near state rises versus the pre-change baseline computed the same way, and no scoreable weekly baseline's wall-before-reset precision falls below 0.5.

  • Metric: caution-tier lead coverage of realized weekly walls (shadow history × realized wall instants)
  • Scored by: the S7 weekly review, from quota-shadow-placement-history.jsonl and the accuracy ledger

Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…kly walls arrive systematically early)

Generated by the Stage-3 re-weighting proposal generator (S6, #12700; design D5). Proposal key: caution-margin:NEAR_PCT:85->90. The full evidence pack is the PR body.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 01:36
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 983b8c12-3ed2-4022-9216-939b36be625f
Commits

Reviewing files that changed from the base of the PR and between a9496cb and e1892ec.

Files selected for processing: 1

  • pm-stack/aggregator/src/derive.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Closed at review — wrong direction. Do not merge.

Review finding (felix): the proposal's change contradicts its own evidence and its own expected-effect statement.

  • The code: a pool reads "near" when windowPercent(w) >= NEAR_PCT (derive.ts:174). Raising NEAR_PCT 85 → 90 therefore moves caution entry from 85% to 90% — LATER, with less headroom — and narrows the caution band [NEAR_PCT, 100).
  • The evidence: weekly walls arrive systematically EARLY (positive median signed wall error = projected wall time later than the realized wall: meta +4,741 min, anthropic:claude-pro +795 min). The correct response is caution EARLIER, i.e. NEAR_PCT down (85 → 80), widening the band.
  • The proposal's expected effect — "the fraction of realized weekly walls preceded by a tick with the pool in the caution state rises" — would be served by lowering the threshold and is undermined by raising it.

The generator conflated "widen the margin of safety" with "raise the number". The machinery (evidence gates, refusal path, PR-only allowlist) is unaffected; the defect is local to the caution-margin class's step direction. A fix is being dispatched against #12700: the step direction must derive from the sign of the grounding pools' median signed wall error (early walls ⇒ threshold down; late walls ⇒ threshold up), pinned by tests, and the generator re-run — if the evidence still grounds a margin step, the corrected proposal (85 → 80) will be filed as a new PR for disposition.

@dezren39 dezren39 closed this Nov 23, 2026
dezren39 pushed a commit that referenced this pull request Nov 23, 2026
… wall error (#12700)

The generator proposed NEAR_PCT 85 -> 90 on evidence that weekly
walls arrive systematically EARLY (positive median signed wall
error). But a pool reads near at windowPercent >= NEAR_PCT
(derive.ts), so raising the threshold enters caution LATER and
narrows the band — the opposite of the proposal's rationale
(Felix's review of the closed proposal PR #12761).

The caution-margin class now derives the step direction from
the sign of the grounding pools' median signed wall error:
early walls (positive) step the threshold DOWN (85 -> 80,
caution entered at a lower measured percent, earlier in the
window); late walls (negative) step it UP. Both sides are
gated identically (breadth >= 2, >= 1 precision anchor, volume
gates); counter-evidence on the opposite side at any volume —
materially disagreeing signs — is the named
counter-evidence-present gap, never a proposal. A symmetric
floor (MARGIN_MIN_PCT = 50, gap margin-at-floor) joins the
existing ceiling. Step language states the mechanism (enters
caution at a lower/higher measured percent); the word widen
is gone. Tests pin all three outcomes: positive -> down,
negative -> up, mixed -> gap, plus both bounds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant