feat(harness): expose writable delegation [Agent Map 14/15] - #833
Conversation
Review — PR #833 (round 1)1. Published copy: the changeset ships internal mechanics into an un-retractable CHANGELOG
What it currently documents to an anonymous npm consumer: tombstone compaction, request receipts, Separately, the "Breaking for embedders" paragraph names Fix: cut the body to what a consumer can observe and act on — a new 2. One tool call can block for ~16 minutes with no aggregate deadline
Failure scenario: an agent delegates 16 children on a loaded machine and each takes ~35 s to reach Suggest a wall-clock budget spanning the batch: once it is spent, stop waiting and return the 3. README still advertises three MCP tools; the endpoint now serves eight
The drift started in earlier increments of this stack, and the PR body defers "final expanded Verdict: Request changes — finding 1 must land before publish (the changelog is permanent); |
5ec7105 to
cabf531
Compare
193a016 to
ef76076
Compare
Review — PR #833 (round 2, follow-up)Delta reviewed: Round 1 findings
New findingAbandoned Correction to round 1Round 1 said the endpoint serves "eight" tools; it is nine. The README fix used the right number. Verdict: Approve with one comment — the reclaim gap is worth closing here, but it is recoverable |
cabf531 to
4aa4784
Compare
ef76076 to
4af416a
Compare
Primary change type
Problem and motivation
Project agents need a usable delegation tool that connects durable claims to real writable child sessions without duplicate kickoff turns or interference with manual sessions.
Summary and scope
Wire the complete coordinator, optional focused briefs, acknowledgement/recovery events, nested delegation, scoped release, and universal MCP registration.
Share one 30-second readiness/identity budget across a batch, returning partial results with durable child identities for explicit retry. Recover unfinished dormant cleanup without emitting a second release event.
How this increment fits
The writable tool activates only after its store, child lifecycle, and focused context are complete. It supports nested delegation from ordinary project sessions.
Stack and review boundary
4af416a289eec6c545f4624988af3321cbf8eb51; 3,249 changed lines across 13 files, counting additions and deletions including tests.fix/studio-onboarding-followups.Related work
Agent Map checkpoint SAP-3147; relevant work SAP-3151. This packaging follows the maintainer-approved 15-PR split.
Validation
Root checks ran against
ef760767dfcccff85e95b79d7c1ad4eadb696395. The final head changes only README terminology or commit ancestry; a complete tracked-file comparison confirms identical executable source and build inputs. The terminology gate was rerun on4af416a289eec6c545f4624988af3321cbf8eb51.Tests and documentation
Regression coverage: Realistic child reuse and kickoff acknowledgement, scoped release, nested delegation, batch deadlines, partial timeout results, and cleanup recovery after receipt expiry.
See part 15 for integrated browser, native CLI, and Mac journey validation. The checks above were run independently on this PR’s own commit.
Linux tests run with ordinary user filesystem permissions; the sandbox's extra ambient capabilities are dropped. Hosted CI and automated review are separate from these recorded local results.
Compatibility and release impact
.changeset/writable-project-subsessions.mdSecurity
AI assistance
Checklist