Skip to content

Gate: gate_leg_margin counts only measured legs (Part of #8701) - #8983

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8701-20261122T0527Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8701-20261122T0527Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8701.

Checklist: partial [c:402def82] -- needs 5 scheduled runs after 2026-11-22T04:32Z (#8975 merge); rerun python tests/tools/gate_leg_margin.py --since 2026-11-22, it exits 0 when confirmed.

What

gate_leg_margin.py counted every completed leg as an observation. A leg that failed early (the 2026-11-21 tzdata ModuleNotFoundError), never reached the Full Suite step, or was cancelled has a short wall that says nothing about margin, yet counted toward the 5 runs required: the check could go green falsely. Now a leg is an observation only when its Full Suite step succeeded or ended within 60 s of its cap (cut by it); --runs counts runs with at least one measured leg.

Facts checked: live run before this change sampled 5 runs; after it, 3 of 5 are measured (UNCONFIRMED). The remaining TIGHT rows are pre-#8975 data.

Class

Class: a margin check treating non-measuring legs as measurements. Siblings: early-failed legs, cancelled runs, legs with no step (all covered here, with tests).

Sibling gaps

  • Windows 3.12 part 2 tzdata ModuleNotFoundError on 2026-11-21 (cause unconfirmed; 3.11 legs unchecked). No burned-estate program involved.

Tests/gates

tests/tools/test_gate_leg_margin.py (9 pass), ruff check/format, audit_check.py all clear.

🤖 Generated with Claude Code

…d or were cut at the cap (Part of #8701)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 22, 2026 05:33
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 05:36
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 89083ae into main Nov 22, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8701-20261122T0527Z branch November 22, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant