Skip to content

test(qa): align PART_A_DEADLINE regression with FIX 3's derived, liveness-aware contract - #970

Merged
100yenadmin merged 1 commit into
mainfrom
fix/parta-deadline-test
Jun 16, 2026
Merged

test(qa): align PART_A_DEADLINE regression with FIX 3's derived, liveness-aware contract#970
100yenadmin merged 1 commit into
mainfrom
fix/parta-deadline-test

Conversation

@100yenadmin

Copy link
Copy Markdown
Member

Main was RED. test_coldopen_part_a_poll_window_outlasts_max_effort_coldopen pinned the literal PART_A_DEADLINE=...:-420 + the old seq 1 "$part_a_polls" for-loop — both intentionally replaced by FIX 3 (#623, shipped in #966). #966's fast_gate doesn't exercise test_adversarial_release.py, so the stale test slipped.

The code is correct (420 < the cold-open's own 500/550s timeout → abandoned a healthy-but-slow mint early; FIX 3 derives the deadline from that tier + a positive margin + makes the poll liveness-aware). This rewrites the test to assert the new contract semantically — extract the margin via regex and assert it's >0 (the real "outlasts" guarantee), assert the hard-deadline + coldopen_is_live grace, keep the no-hardcoded-seq 1 70 guard. A regression to a flat/too-short/non-positive deadline now fails; the intended derivation passes.

Test-only. 18/18 in test_adversarial_release.py green; fast_gate 222 intact.

…ness-aware contract (#623)

test_coldopen_part_a_poll_window_outlasts_max_effort_coldopen pinned the literal
`PART_A_DEADLINE="${WOS_APP_PART_A_DEADLINE:-420}"` and the old `seq 1 "$part_a_polls"` for-loop —
both of which FIX 3 (#623, shipped in #966) intentionally replaced. #966's fast_gate doesn't run
test_adversarial_release.py, so the stale test slipped through and left main RED.

The production code is correct: 420 was SHORTER than the cold-open's own model-aware timeout
(clawdnd_dm_timeout 1 = 500/550s), so a healthy-but-slow mint was abandoned ~80s early — the exact
flake the test NAME warns about. FIX 3 derives the deadline FROM that tier + a positive margin and
makes the poll liveness-aware. Rewrite the test to assert that *contract* semantically (extract the
margin via regex, assert it's > 0 = the real "outlasts" guarantee; assert the hard-deadline +
coldopen_is_live grace; keep the no-hardcoded-`seq 1 70` guard) — so a regression to a flat / too-
short / non-positive-margin deadline now fails here, but the intended derivation passes. Test-only;
18/18 in test_adversarial_release.py green; fast_gate 222 intact.
@100yenadmin
100yenadmin merged commit a520b5a into main Jun 16, 2026
8 of 9 checks passed
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