Make Tasks abrupt-stop checks deterministic (#757) #763

Closed
kayg wants to merge 0 commits from fix/flaky-sweep into dev
Owner

The Tasks abrupt-stop test let the child keep writing after the ACK or SENT marker selected by the parent. A delayed SIGKILL could therefore recover a later valid value outside the assertion's range. The child now stops issuing writes at the selected boundary, the parent checks it reached that marker, and ACK boundaries require the exact acknowledged value. SENT boundaries retain their previous-or-current check.

The old test failed 50/50 with the parent delayed while its marker pipe stayed open. The fix passed 200/200 under the same perturbation and another 200/200 on the final source. No acknowledged-write loss was observed. The patch changes only the Tasks test harness and assertions.

Validation:

  • Formatting, Clippy with warnings denied, and full workspace tests passed: 1,154 passed, zero failed, 20 already marked ignored.
  • Source mode passed 200/200 on each of Chromium and WebKit at 390 and 1440 px. Both at-rest glyph variants passed 200/200 on WebKit desktop; the 320 px tooltip check passed 200/200 on WebKit phone. Browser retries were disabled and workers was 1.
  • The seed-crash test passed 200/200 with two owned CPU burners sharing its CPU, plus the full workspace gate.

The supplied base already contains the tooltip active-screen selector fix and WebKit glyph-rounding fix. Their checks passed unchanged. The historical failures in #307 and #666 remain unreproduced and their root causes remain unresolved. All five issues have the evidence and verbatim gate output; the issues remain open. No artifacts are committed.

Refs #757, #307, #468, #644, #666.

The Tasks abrupt-stop test let the child keep writing after the ACK or SENT marker selected by the parent. A delayed SIGKILL could therefore recover a later valid value outside the assertion's range. The child now stops issuing writes at the selected boundary, the parent checks it reached that marker, and ACK boundaries require the exact acknowledged value. SENT boundaries retain their previous-or-current check. The old test failed 50/50 with the parent delayed while its marker pipe stayed open. The fix passed 200/200 under the same perturbation and another 200/200 on the final source. No acknowledged-write loss was observed. The patch changes only the Tasks test harness and assertions. Validation: - Formatting, Clippy with warnings denied, and full workspace tests passed: 1,154 passed, zero failed, 20 already marked ignored. - Source mode passed 200/200 on each of Chromium and WebKit at 390 and 1440 px. Both at-rest glyph variants passed 200/200 on WebKit desktop; the 320 px tooltip check passed 200/200 on WebKit phone. Browser retries were disabled and workers was 1. - The seed-crash test passed 200/200 with two owned CPU burners sharing its CPU, plus the full workspace gate. The supplied base already contains the tooltip active-screen selector fix and WebKit glyph-rounding fix. Their checks passed unchanged. The historical failures in #307 and #666 remain unreproduced and their root causes remain unresolved. All five issues have the evidence and verbatim gate output; the issues remain open. No artifacts are committed. Refs #757, #307, #468, #644, #666.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Cj2Q1hCskP8Frsk6X7EHw
Bound Tasks crash writes to the selected stop point
Some checks failed
CI / server (pull_request) Successful in 1m48s
CI / rust (pull_request) Successful in 14m49s
CI / web (pull_request) Failing after 2h40m12s
628a7dd856
Author
Owner

Closing: head 628a7dd8 is already in dev (reached via 87b8dc4e); nothing left to merge. Branch kept.

Closing: head 628a7dd8 is already in dev (reached via 87b8dc4e); nothing left to merge. Branch kept.
kayg closed this pull request 2026-11-04 13:04:37 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m48s
CI / rust (pull_request) Successful in 14m49s
CI / web (pull_request) Failing after 2h40m12s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!763
No description provided.