Give the remaining peer evidence timing bounds a runner-proof margin #174
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/172-peer-evidence-wall-clock-bounds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test-only. Every remaining wall-clock bound of 1 s or less in the peer evidence tests gets the #165 margin, without weakening what each test proves.
STUCK_SECONDSis the part the issue did not list. Four workers used to stop by themselves after 2–3 s. Under a 5 s bound, a broken cancellation would have finished inside it and passed. They now wait 10 s, so a missing cancel still fails the bound.peer_identitywas the one peer reader with no 50 ms guard.peer_evidence,peer_changesandpeer_snapshotalready had one, attest_peer_evidence.py:324,test_peer_changes.py:586andtest_peer_snapshot.py:64.Evidence
grep -nE 'wait\(1\)|wait, 1\)|wait_for\(.*, 1\)|timeout=1\b|< 1\b|< 0\.5' tests/test_peer_evidence.py):Before: 18 lines at
febfb55.After: no output.
busy_timeout_ms=50changed to60inpeer_identity:test_peer_identity_reads_with_the_50_ms_busy_timeoutfails itskw == {"read_only": True, "busy_timeout_ms": 50}assertion. The same change inpeer_evidencefails the same assertion in the existing:324test.budget.cancelled.set()removed from the cancel path inpeer.Jobs.run:test_two_slots_timeout_cancellation_and_shutdownandtest_parent_cancellation_records_outcome_oncefail.tests/test_peer_evidence.pypasses all 66 tests in 18 s, about the same as before. The 1e9 CTE is still interrupted at once.make check: lint, mypy onsrc, 1320 passed, 18 deselected,pip-auditclean. A--- Logging error ---traceback in the test output also appears onmain. It does not come from this branch.Merge Danger
Door: two-way
Tests only, with no change under
src/. A revert is one commit.Blast Radius: CI
A real regression now fails at 5 s, not 1 s. One failure mode gets slower: if SQL progress cancellation breaks,
test_sql_progress_cancellation_closes_connectionhangs for about two minutes before it fails, because the executor waits for the 1e9 CTE to finish.Closes #172
🤖 Generated with Claude Code