Skip to content

feat(workspace): runInWorkspace seam — compounding worker clones over gitWorkspace#305

Merged
drewstone merged 1 commit into
mainfrom
feat/supervisor-authored-profiles
Jun 16, 2026
Merged

feat(workspace): runInWorkspace seam — compounding worker clones over gitWorkspace#305
drewstone merged 1 commit into
mainfrom
feat/supervisor-authored-profiles

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

What

A small seam so the supervisor's workers compound through one shared artifact instead of running in isolated cwds, plus the bench fixes/docs from the same session.

  • runInWorkspace(ws, body, {commitOnInvalid}) (src/runtime/workspace.ts, exported from the runtime barrel) — materialize a clone of a shared gitWorkspace → run body(cwd) → commit the delivery back. A second worker builds on the first's committed output. ~25 lines over the existing gitWorkspace; no new workspace machinery.
  • Test (tests/loops/workspace.test.ts): "a second worker builds on the first, gated by a real test" — real git + real python3, green.
  • atom-mcp-e2e rewired onto a shared bare-repo gitWorkspace; workers compound (live run delivered with a real commit rev) instead of isolated cwds.
  • fix(bench): atom-humaneval tree-element type via NonNullable — clears the bench typecheck (pre-existing error).
  • docs(bench/HARNESS): the supervisor-vs-blind gate is runBenchmark([sample, refine]) + the multistep Environment via runStrategyEvolution — the published suite, not a bespoke harness.
  • fix(skill): build-with-agent-runtimecreateTopologyView/renderTopologyTree import from /topology, not root.

Verification

  • root tsc clean; bench tsc 0 errors; biome clean on changed files.
  • vitest run tests/loops/workspace.test.ts → 3 passed, 1 skipped (jj absent).
  • Merges clean into origin/main.

Notes

The supervisor experiments (supervised-commit0, observe-driver) intentionally do not land here — they move to the new supervisor-lab repo (the product/experiment layer). This PR keeps agent-runtime to the substrate seam + fixes.

…shared gitWorkspace

- runInWorkspace(ws, body, {commitOnInvalid}): materialize a clone -> run -> commit-back,
  so a worker builds on the prior worker's committed artifact (test: a second worker builds
  on the first, real git + python). Exported from the runtime barrel.
- atom-mcp-e2e: rewired onto a shared bare-repo gitWorkspace; workers compound (live run
  delivered with a real commit rev) instead of isolated cwds.
- fix(bench): atom-humaneval tree element type (NonNullable) — clears the bench typecheck.
- docs(bench/HARNESS): supervisor-vs-blind is runBenchmark([sample,refine]) + the multistep
  Environment via runStrategyEvolution; no bespoke gate/fitness/hillclimb (those were a
  reinvention of the published suite).
- fix(skill): build-with-agent-runtime — createTopologyView/renderTopologyTree are /topology.

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved PR — 0ccfa2ba

Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-16T09:53:33Z

@drewstone drewstone merged commit a539d1e into main Jun 16, 2026
1 check failed
drewstone added a commit that referenced this pull request Jun 16, 2026
…#307)

* chore(release): 0.54.0 — expose the recursive agent atom + workspace seam

Publishes coordinationDriverAgent, serveCoordinationMcp, driverChild (the recursive driver
atom, #304) and runInWorkspace (the shared-workspace seam, #305), which merged into main
without a version bump and so were absent from the published 0.53.0. Additive (new exports on
the /runtime barrel) — no breaking changes, no fleet bump required.

Verified: dist/runtime.js exposes all four; tests 945 pass.

* fix(lint): clear 2 biome errors blocking the release (assignment-in-expr, unused import, import order)

---------

Co-authored-by: Drew Stone <hello@webb.tools>
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.

2 participants