Skip to content

fix: preserve worker failures and enforce scientific acceptance - #17

Merged
tdpham2 merged 1 commit into
mainfrom
fix/worker-outcomes
Sep 5, 2026
Merged

fix: preserve worker failures and enforce scientific acceptance#17
tdpham2 merged 1 commit into
mainfrom
fix/worker-outcomes

Conversation

@tdpham2

@tdpham2 tdpham2 commented Sep 5, 2026

Copy link
Copy Markdown
Owner

A worker can commit valid numerical results and then time out or fail during teardown. The supervisors can currently return that run as accepted, and artifact refresh can replace the committed scientific state with an orchestration failure.

Record post-commit timeout, cancellation, teardown failure, and unexpected exit codes consistently in Python/CLI and MCP execution. Preserve the numerical outcome in result.json; inspection reports the interruption through run.json. Refresh artifact hashes without collapsing those two states, and preserve completed items when a batch worker fails.

Also validate requested properties when importing completed evaluation results. Relaxation acceptance requires convergence plus its required passed check; reject contradictory convergence claims and forces exceeding the requested threshold. Existing valid unconverged results remain readable and unaccepted.

Validation: focused API, worker, CLI, and MCP regression tests; source lint and formatting. Tests launch real worker processes backed by synthetic calculations, including failure after persistence. The combined three-fix wheel suite passed 393 tests with 1 skipped outside the checkout. No scientific engine or GPU validation is claimed.

@tdpham2
tdpham2 marked this pull request as ready for review September 5, 2026 12:35
@tdpham2
tdpham2 merged commit 92a439f into main Sep 5, 2026
6 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