Skip to content

Keep cancelled worker Findings and Paths on salvage - #668

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-6915-cancelled-workers-keep-findings
Aug 25, 2026
Merged

Keep cancelled worker Findings and Paths on salvage#668
TheGreatAxios merged 2 commits into
mainfrom
cl-6915-cancelled-workers-keep-findings

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Cancelled and deadline-stopped workers now salvage multi-turn Findings plus thrash Paths into the forced-stop envelope, and cancelled runs get a parent hint parallel to the deadline hint so parents continue from partial work instead of redoing it.

Verification

  • bun test src/subagent/thrash.test.ts src/subagent/nudge-director.test.ts src/subagent/index.test.ts (96 pass)
  • bun run typecheck
  • pre-commit typecheck + build

Closes CL-6915

@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

CL-6915

TheGreatAxios added a commit that referenced this pull request Aug 24, 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).
Force-stopped leaves were returning empty Paths and often only the
final-turn scrap as Findings, so parents re-did completed file work.
Accumulate mid-run prose and thrash paths into the catch/interrupt
salvage envelope, and give cancelled runs the same parent hint shape
as deadlines.
@TheGreatAxios
TheGreatAxios force-pushed the cl-6915-cancelled-workers-keep-findings branch from 20bdaeb to ca5ba60 Compare August 25, 2026 01:49
@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) August 25, 2026 01:49
@TheGreatAxios
TheGreatAxios merged commit dabb74d into main Aug 25, 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
* Keep cancelled worker Findings and Paths on salvage

Force-stopped leaves were returning empty Paths and often only the
final-turn scrap as Findings, so parents re-did completed file work.
Accumulate mid-run prose and thrash paths into the catch/interrupt
salvage envelope, and give cancelled runs the same parent hint shape
as deadlines.

* Fix prettier formatting in cancelled-worker salvage
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
* Keep cancelled worker Findings and Paths on salvage

Force-stopped leaves were returning empty Paths and often only the
final-turn scrap as Findings, so parents re-did completed file work.
Accumulate mid-run prose and thrash paths into the catch/interrupt
salvage envelope, and give cancelled runs the same parent hint shape
as deadlines.

* Fix prettier formatting in cancelled-worker salvage
@TheGreatAxios
TheGreatAxios deleted the cl-6915-cancelled-workers-keep-findings 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