Skip to content

Resolve fleetRecords on cancel so wait_agents sees salvage - #672

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6915-fleet-cancel-salvage
Aug 24, 2026
Merged

Resolve fleetRecords on cancel so wait_agents sees salvage#672
TheGreatAxios merged 1 commit into
mainfrom
cl-6915-fleet-cancel-salvage

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Operator cancel aborts the child signal, but run() can still return a salvage body. The spawn settle path previously dropped that body when childCtl was aborted, leaving fleetRecords "running" forever so wait_agents never observed the salvage. Always resolve/reject fleetRecords; complete/fail already no-op when the strip is cancelled.

Relationship to #668

Complementary to #668 (content salvage into the forced-stop envelope). This PR is the fleetRecords/wait_agents side of CL-6915 — it does not duplicate #668's Findings/Paths salvage changes.

Test plan

  • New test: cancelled spawn_agent still resolves wait_agents with salvage findings while strip stays cancelled
  • pre-commit typecheck + build

Closes CL-6915

Operator cancel aborts the child signal, but run() can still return a
salvage body. The spawn settle path used to drop that body when
childCtl was aborted, leaving fleetRecords "running" forever so
wait_agents never observed the salvage. Always resolve/reject
fleetRecords; complete/fail already no-op when the strip is cancelled.

Complementary to #668 (content salvage into the forced-stop envelope).
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

CL-6915

@TheGreatAxios
TheGreatAxios merged commit 686012a into main Aug 24, 2026
5 checks passed
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
…672)

Operator cancel aborts the child signal, but run() can still return a
salvage body. The spawn settle path used to drop that body when
childCtl was aborted, leaving fleetRecords "running" forever so
wait_agents never observed the salvage. Always resolve/reject
fleetRecords; complete/fail already no-op when the strip is cancelled.

Complementary to #668 (content salvage into the forced-stop envelope).
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
…672)

Operator cancel aborts the child signal, but run() can still return a
salvage body. The spawn settle path used to drop that body when
childCtl was aborted, leaving fleetRecords "running" forever so
wait_agents never observed the salvage. Always resolve/reject
fleetRecords; complete/fail already no-op when the strip is cancelled.

Complementary to #668 (content salvage into the forced-stop envelope).
@TheGreatAxios
TheGreatAxios deleted the cl-6915-fleet-cancel-salvage branch August 28, 2026 00:09
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