Skip to content

LS-59: reconcile uncertain stop submissions and retry once - #31

Merged
Ferryyer merged 5 commits into
mainfrom
agent/inspire-queue/1c782d5753e4
Nov 25, 2026
Merged

Ferryyer merged 5 commits into
mainfrom
agent/inspire-queue/1c782d5753e4

Conversation

@Ferryyer

@Ferryyer Ferryyer commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

A lost stop-control submission receipt could leave a task stopping indefinitely. Wait at least 60 seconds and resend the original control command at most once, only after a reliable scan finds no exact receipt on the original allocation. Persist the retry budget and audit together before calling the platform.

Continue collecting matching receipts and checking every known control job after binding a job ID. Read each receipt, job status, and log independently: a damaged or unreadable entry blocks resending while other readable receipts, exit states, and logs remain visible. Preserve previously read logs during later read failures. Report ambiguous receipts or any exited control job without a valid stop proof, and accept late valid proofs. Keep these messages and the exhausted-retry notice visible through both cycle syncs. Initial stop submission errors explain the conditional retry opportunity instead of saying retries have stopped.

Preserve the supervisor's 15-second fallback window and give legacy records a full 60-second takeover window. Compute submission, GPU requests, and release paths retain their existing behavior. Changes are limited to gpuqueue/service.py and tests/test_stop.py.

Validation: python -m unittest discover -s tests -p 'test_*.py' -v passed all 174 tests, including 39 stop tests, on Python 3.10.22 and Python 3.12.3, using isolated temporary HOME directories and mocked platform operations. Five focused tests reproduce the reader failures against the previous service. Test logs with source hashes and the delivered head, plus the baseline reproduction log, are attached to LS-59. git diff --check passed.

CI: current-head check failed before unit tests in the inherited release-ancestor gate. That gate requires b9e2c3e678fc2afa6eb5bf35ab20cc8d3587bd78 to be an ancestor of the head, while the specified main@af51af510197d921b0cfd4452539e99ff04cd8e8 baseline itself does not satisfy that check. Both failures were locally reproduced. The skipped workflow test step selects only test_gpuqueue.py. No live GPU, Feishu owner account, or macOS WebKit acceptance was performed; no merge or deployment.

Closes LS-59

Task: LS-59

Ferryyer and others added 5 commits November 25, 2026 01:13
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Require the original compute identity for retries and keep the scheduler from rewriting unchanged stop state. Exercise the full supervisor invocation in the stop fixtures.
@Ferryyer
Ferryyer merged commit 02e3e13 into main Nov 25, 2026
1 check 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