﻿# Coordinate shared-sandbox writers with explicit artifact ownership

A shared environment requires explicit write ownership and revision-sensitive acceptance; separate agent contexts do not freeze the files being inspected.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/frontier-swarm-shared-sandbox-write-ownership/
Language: en

## Separate mental context from file state

A writer updates a schema while a reviewer inspects it in the same sandbox. The reviewer returns a correct observation about an earlier file, but the coordinator applies it to the latest artifact. This is possible even when nobody edits the same line simultaneously. The [Agents API guide](https://developers.openai.com/api/docs/guides/agents-api/multi-agent) states that coordinator and subagents share the environment filesystem and that spawning does not create another environment. Separate conversational contexts therefore do not establish a stable review snapshot.

## Assign ownership to the artifact transition

A proposed coordination policy names the worker allowed to write each artifact and the base revision it may replace. A reviewer records the revision inspected and returns findings without silently changing the target. Before accepting the review, the coordinator compares that identity with the current candidate. A lightweight lease or expected-revision check can implement this policy in the application. These are design choices, not documented built-in file locks supplied automatically by the multi-agent service.

## Invalidate only the affected evidence

If the schema changes after review, determine which findings depend on the changed fields. A typographical edit may leave a semantic check valid; a required-field change may invalidate compatibility evidence. The [Responses guide](https://developers.openai.com/api/docs/guides/responses-multi-agent) warns that workloads contending over shared mutable state are poor candidates for unqualified parallelization. This does not prohibit every shared environment. It means that concurrency needs an ownership and invalidation rule that preserves the meaning of each observation instead of relying on message timing.

## A possible six-month capability

An editorial scenario through May 6, 2027 is a shared-sandbox workflow that recomputes only reviews invalidated by a new artifact revision while retaining unaffected checks. The mechanism combines explicit ownership, revision-bearing findings and a dependency record. It is an application capability, not an OpenAI release promise. It requires reliable dependency identification. If a small change routinely affects hidden consumers or reviewers cannot identify their inspected state, partial recomputation becomes unsafe and broader revalidation remains necessary.

## Validate acceptance under a race

A proposed fixture changes a generated schema between review start and submission. Check whether the coordinator rejects stale evidence or performs the required refresh before integration. Include an unchanged revision to avoid needless rejection of valid work. [Worktree ownership](/journal/bb-writing-workers-own-worktrees/) supplies a related isolation option, while [Revision-bearing handoffs](/journal/bb-mixed-agent-handoff-format/) preserve the evidence contract. No measured concurrency gain is asserted. Success means the accepted artifact and its validation describe the same state, not merely that all writers and reviewers sent completion messages.
