Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2b49648
security: require sandbox backend to terminate all task descendants o…
wangzhizhou Nov 22, 2026
bca847f
test: include task descendant cleanup in backend capability contract
wangzhizhou Nov 22, 2026
92fdcda
docs: require descendant cleanup before task workspace freeze
wangzhizhou Nov 22, 2026
ffc799c
feat: sandbox acceptance checks and publish immutable review artifacts
wangzhizhou Nov 22, 2026
72d1bef
feat: export review artifacts only after enforced task and check exec…
wangzhizhou Nov 22, 2026
7aabc60
security: bind approvals and integration to verified immutable review…
wangzhizhou Nov 22, 2026
5250227
test: verify sandboxed artifact publication and approval gating
wangzhizhou Nov 22, 2026
48d49de
docs: document sandbox-gated artifact publication and review flow
wangzhizhou Nov 22, 2026
ebffa2a
docs: retain process-tree lifecycle requirement in launcher contract
wangzhizhou Nov 22, 2026
0ebbd33
docs: record sandbox-gated artifact broker integration acceptance
wangzhizhou Nov 22, 2026
009af98
docs: document sandbox-gated artifact broker orchestration
wangzhizhou Nov 22, 2026
02903fd
fix: keep artifact store outside run workspace and write valid JSON
wangzhizhou Nov 22, 2026
37f38c3
fix: require complete sandbox evidence and report artifact failures
wangzhizhou Nov 22, 2026
d39fe0c
security: bind review artifacts to enforced backend and profile evidence
wangzhizhou Nov 22, 2026
89434ae
fix: carry verified sandbox provenance into review artifact publisher
wangzhizhou Nov 22, 2026
d33c639
test: provide verified sandbox provenance to artifact publisher
wangzhizhou Nov 22, 2026
378594e
test: reject backends that cannot terminate task descendants
wangzhizhou Nov 22, 2026
9fa4325
docs: name process-tree cleanup capability in backend contract
wangzhizhou Nov 22, 2026
9056921
docs: clarify backend descendant cleanup is a mandatory capability
wangzhizhou Nov 22, 2026
14a9c22
security: validate sandbox profile digest as hexadecimal SHA-256
wangzhizhou Nov 22, 2026
eff9448
test: clean up read-only artifacts from orchestrator integration tests
wangzhizhou Nov 22, 2026
a1bf5d1
security: bind artifact to complete review checks and reject evidence…
wangzhizhou Nov 22, 2026
ad6d095
security: skip host evidence capture when sandbox enforcement is unve…
wangzhizhou Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ai/runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Do not use `completed` when checks were skipped or when the result relies on unv

## Artifact exchange

See [Immutable Artifact Broker](artifacts/README.md) for the standalone content-addressed export, verification and read-only reviewer snapshot CLI. Orchestrator and Integrator automation is not wired yet; Agents must not exchange files through shared writable directories.
See [Immutable Artifact Broker](artifacts/README.md) for the standalone content-addressed export, verification and read-only reviewer snapshot CLI. Sandbox-required Orchestrator runs export immutable review evidence after the Agent and sandboxed checks exit; approval and integration re-verify the artifact. Legacy unsandboxed runs do not auto-export. Agents must not exchange files through shared writable directories.
6 changes: 4 additions & 2 deletions .ai/runtime/artifacts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Purpose and trust boundary

The Artifact Broker is the target trusted control-plane utility for file exchange between Agent tasks, reviewers and the integrator. This milestone delivers its standalone CLI and immutable storage contract; Orchestrator automation and Integrator wiring are a follow-up M4.3b task. Agents must not share writable directories.
The Artifact Broker is the target trusted control-plane utility for file exchange between Agent tasks, reviewers and the integrator. The standalone CLI and immutable storage contract are implemented. Orchestrator integration now exports a review artifact only for sandbox-required tasks after the Runner and sandboxed acceptance checks complete; approval and integration re-verify the artifact and bind it to the current review fingerprint. Agents must not share writable directories.

The broker must run after the producing Agent and its descendants have stopped. Exporting a workspace while an Agent is still writing creates a time-of-check/time-of-use race and does not produce a reliable snapshot. The broker validates source paths and file metadata, but a frozen source workspace is an operational precondition.
The broker must run after the producing Agent and its descendants have stopped. The sandbox backend contract now requires both process-tree isolation and termination of every task descendant before the launcher reports completion; the Manager rejects backends that cannot prove both. Exporting a workspace while any Agent or check process is still writing creates a time-of-check/time-of-use race and does not produce a reliable snapshot. The broker validates source paths and file metadata, but a frozen source workspace is an operational precondition.

## Artifact format

Expand All @@ -31,6 +31,8 @@ Files are copied, never hard-linked. The store and source workspace must be disj
- Verification revalidates the manifest, canonical artifact ID, each file size/hash, and the exact file set.
- Materialization creates a new, non-existing, read-only reviewer snapshot. It never applies files to the stable checkout.

Legacy unsandboxed Orchestrator runs do not auto-export artifacts. Sandbox-required runs require `--require-sandbox --worktrees`; if the Runner handoff does not say `sandbox_status: enforced`, or a check cannot be sandboxed, the task cannot be approved or integrated.

Sensitive-name filtering is a conservative guard, not a complete secret scanner. Do not put credentials in task workspaces. A future credential broker must keep raw secrets outside the Agent and artifact planes.

## CLI
Expand Down
4 changes: 2 additions & 2 deletions .ai/runtime/sandbox/LAUNCHER-CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A backend is eligible only if it can enforce all of the following for the reques

- workspace-only filesystem access, including denial of stable checkout, other task workspaces, shared Git common metadata/object/ref stores, user home, credentials and control-plane runtime;
- default-deny network, no host/LAN access, and explicit egress proxy policy;
- process-tree inheritance and reliable termination;
- process-tree inheritance and reliable termination, including killing every descendant before the launcher reports task completion;
- CPU, memory, process-count and wall-clock limits;
- no privilege escalation and no host container-runtime socket;
- effective-policy evidence (backend/version, profile digest and platform);
Expand All @@ -26,7 +26,7 @@ The manager rejects partial backends. A backend must not claim support based on

Implemented in `scripts/sandbox_runtime.py`:

- `SandboxBackend.probe() -> SandboxCapabilities`
- `SandboxBackend.probe() -> SandboxCapabilities` (must prove both process-tree inheritance and descendant cleanup on task exit)
- `SandboxBackend.build_command(command, spec) -> argv`
- `SandboxBackend.build_environment(spec) -> minimal env`
- `SandboxManager.doctor()`
Expand Down
Loading