Skip to content

Remove same-cwd spawn refusal; bound fleetRecords memory - #617

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6992-remove-spawn-agents-same-cwd-refusal
Aug 24, 2026
Merged

Remove same-cwd spawn refusal; bound fleetRecords memory#617
TheGreatAxios merged 1 commit into
mainfrom
cl-6992-remove-spawn-agents-same-cwd-refusal

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • CL-6992: spawn_agent no longer refuses a second concurrent implement-intent spawn against the same cwd — multiple agents working in one worktree is allowed by design. Removed the write-lane Map<cwd, Set<agentId>>, the refusal, and its three tests. concurrent-lane-overlap in task-tool.ts is untouched.
  • CL-6990: fleetRecords now caps in-memory report payloads at MAX_FLEET_RECORDS (200). Past the cap, the oldest already-collected report is compacted to a status-only tombstone naming read_agent_trace for recovery; an uncollected report is never evicted ahead of a collected one.

Test plan

  • bun test src/subagent/agent-fleet.test.ts
  • bun run check (lint, typecheck, build, full test suite) — all green

Note: CL-6943 (session persistence / close_agent / resume_agent) also touches agent-fleet.ts and session-store.ts — expect a rebase; flag if retention semantics need reconciling.

@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

CL-6992

@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) August 24, 2026 10:10
CL-6992: delete the write-lane refusal on spawn_agent — multiple agents
in one worktree is allowed by design, and the refusal was guarding
against self-resolving churn, not corruption.

CL-6990: bound fleetRecords' in-memory reports. Past MAX_FLEET_RECORDS,
the oldest already-collected report is compacted to a status-only
tombstone pointing at read_agent_trace, never evicting an uncollected
report ahead of a collected one.
@TheGreatAxios
TheGreatAxios force-pushed the cl-6992-remove-spawn-agents-same-cwd-refusal branch from ee3dbad to 8d3d623 Compare August 24, 2026 10:30
@TheGreatAxios
TheGreatAxios merged commit e827f7d into main Aug 24, 2026
5 checks passed
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
CL-6992: delete the write-lane refusal on spawn_agent — multiple agents
in one worktree is allowed by design, and the refusal was guarding
against self-resolving churn, not corruption.

CL-6990: bound fleetRecords' in-memory reports. Past MAX_FLEET_RECORDS,
the oldest already-collected report is compacted to a status-only
tombstone pointing at read_agent_trace, never evicting an uncollected
report ahead of a collected one.
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
CL-6992: delete the write-lane refusal on spawn_agent — multiple agents
in one worktree is allowed by design, and the refusal was guarding
against self-resolving churn, not corruption.

CL-6990: bound fleetRecords' in-memory reports. Past MAX_FLEET_RECORDS,
the oldest already-collected report is compacted to a status-only
tombstone pointing at read_agent_trace, never evicting an uncollected
report ahead of a collected one.
@TheGreatAxios
TheGreatAxios deleted the cl-6992-remove-spawn-agents-same-cwd-refusal 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