## Summary Implemented ACP support as a first-class Fabro backend alongside `api` and `cli`. This adds a new `fabro-acp` crate using the official ACP Rust crates, routes `backend=\"acp\"` for agent and prompt nodes, adds sandbox stdio support for local/Docker/test-support paths, emits ACP workflow events/projections, updates server steerability handling, validation, documentation, and black-box CLI coverage. ## Test Plan Passed strict non-live verification: - `ulimit -n 4096 && cargo nextest run -p fabro-workflow --run-ignored all --no-fail-fast` — 1162 passed, 0 skipped. - `ulimit -n 4096 && cargo nextest run -p fabro-acp -p fabro-sandbox -p fabro-workflow -p fabro-validate -p fabro-store -p fabro-server -p fabro-cli --run-ignored all --no-fail-fast -E 'not test(daytona_streaming_live_smoke)'` — 3125 passed. - `cargo build --workspace` — passed. - `ulimit -n 4096 && cargo nextest run --workspace --run-ignored all --no-fail-fast -E 'not test(daytona_streaming_live_smoke)'` — 5666 passed. - `cargo +nightly-2026-04-14 fmt --check --all` — passed. - `cargo +nightly-2026-04-14 clippy --workspace --all-targets -- -D warnings` — passed. Live-environment tests skipped/excluded under explicit user override: - `daytona_streaming_live_smoke` was excluded from final nextest runs because it requires live Daytona infrastructure and `DAYTONA_API_KEY`. - Confirmed with `env -u DAYTONA_API_KEY cargo test -p fabro-sandbox --features daytona --test daytona_streaming_live daytona_streaming_live::daytona_streaming_live_smoke -- --ignored --exact --nocapture`: failed fast with `DAYTONA_API_KEY must be set to run this live smoke test`.
28 KiB
ACP Backend Test Plan
The accepted testing strategy still holds, with scoped additions from the implementation plan: ACP prompt nodes are explicitly supported, backend validation becomes strict, sandbox stdio is part of the public contract, and ACP events affect run projection, fork replay, and server steerability. These additions do not require paid services or materially change the agreed scope because all high-value ACP checks can run against deterministic fake agents and local/unit harnesses.
Harness Requirements
-
Fake ACP agent harness
- What it does: runs a deterministic ACP agent over stdio, records observed JSON-RPC method order, emits configurable
session/updatemessages, writes optional files in cwd, responds to permission requests, and simulates cancellation, malformed JSON, early exit, timeout, and stop reasons. - Exposes: a checked-in fixture binary or script plus crate-local helpers in
fabro-acp::test_supportusingagent-client-protocolschema types where practical. - Complexity: medium. It is the main substitute for paid/live ACP agents.
- Tests depending on it: 7, 8, 9, 10, 11, 12, 13, 26, 27.
- What it does: runs a deterministic ACP agent over stdio, records observed JSON-RPC method order, emits configurable
-
Sandbox stdio process harness
- What it does: exercises
Sandbox::spawn_stdio_processwith a line-oriented subprocess, captures stdout/stderr separately, terminates the process, and validates Docker exec option construction without requiring live Docker. - Exposes: local sandbox round-trip tests, Docker option-builder/control-wrapper tests, Daytona unsupported-provider assertion, and decorator/test-support forwarding assertions.
- Complexity: medium because Docker stdio is multiplexed and cancellation needs an explicit control path.
- Tests depending on it: 5, 6, 8, 12, 26.
- What it does: exercises
-
Workflow ACP runner harness
- What it does: runs a real Fabro workflow with
backend="acp"and node-levelacp_commandpointing at the fake ACP agent, then inspects persisted run events/projection through existing CLI workflow helpers. - Exposes: user-visible
fabro runresult, run events, stage response,files_touched, andprovider_used. - Complexity: low once the fake ACP agent exists.
- Tests depending on it: 26, 27.
- What it does: runs a real Fabro workflow with
-
Server event-state harness extension
- What it does: uses existing server test fixtures to insert a running run, apply ACP events, and call
POST /runs/{id}/steer. - Exposes: HTTP status and JSON error codes through the Axum test router.
- Complexity: low.
- Tests depending on it: 23, 24.
- What it does: uses existing server test fixtures to insert a running run, apply ACP events, and call
Test Plan
-
Existing CLI backend behavior remains intact
- Type: regression
- Disposition: existing
- Harness: existing
fabro-workflowrouter/CLI tests from the accepted strategy. - Preconditions: current repository before ACP changes; no ACP-specific code required.
- Actions: run
ulimit -n 4096 && cargo nextest run -p fabro-workflow -E 'test(router_uses_cli_for_backend_attr) | test(router_uses_api_by_default) | test(backend_router_delegates_to_cli_for_cli_node) | test(backend_router_delegates_to_api_for_normal_node) | test(backend_router_delegates_to_cli_for_backend_attr) | test(full_pipeline_with_cli_backend_node) | test(stylesheet_backend_property_routes_to_cli) | test(cli_backend_run_writes_prompt_and_calls_exec) | test(cli_backend_run_with_codex_provider) | test(parse_real_codex_ndjson)'. - Expected outcome: all tests pass;
backend="cli"still routes agent nodes to CLI, default routing remains API, stylesheetbackend: clistill works, CLI output parsing remains unchanged. Source of truth: user request to keepapi,cli, andacpas three backends for now; implementation plan User-Visible Behavior for legacy CLI compatibility. - Interactions: router, CLI backend, stylesheet import, sandbox command execution, CLI event emission.
-
Existing stdio JSON-RPC precedent remains intact
- Type: regression
- Disposition: existing
- Harness: existing
fabro-mcpstdio integration tests. - Preconditions: Python is available; no live MCP service required.
- Actions: run
ulimit -n 4096 && cargo nextest run -p fabro-mcp -E 'test(stdio_client_initialize_and_list_tools) | test(stdio_client_call_tool_echo) | test(connection_manager_stdio_roundtrip)'. - Expected outcome: all tests pass; Fabro can still spawn a stdio JSON-RPC collaborator, initialize it, list capabilities, and call it. Source of truth: accepted strategy listed these as relevant stdio precedent.
- Interactions: child process stdio, JSON-RPC framing, local subprocess lifecycle.
-
ACP default command mapping matches provider families
- Type: unit
- Disposition: new
- Harness:
fabro-acpcommand mapping tests. - Preconditions:
fabro-acpcrate exists withagent-client-protocol-tokio = 0.11.1. - Actions: call
default_acp_commandfor Anthropic, OpenAI, Kimi, Zai, Minimax, Inception, OpenAI-compatible, and Gemini. - Expected outcome: Anthropic maps to
npx -y @zed-industries/claude-code-acp@latest; OpenAI-compatible family maps tonpx -y @zed-industries/codex-acp@latest; Gemini maps tonpx -y -- @google/gemini-cli@latest --experimental-acp. Source of truth: implementation plan User-Visible Behavior default ACP command mapping. - Interactions: provider enum coverage and ACP Tokio parser defaults.
-
ACP command overrides are parsed as stdio commands, not raw shell
- Type: boundary
- Disposition: new
- Harness:
fabro-acpcommand parsing tests usingagent_client_protocol_tokio::AcpAgent::from_str. - Preconditions: no sandbox required.
- Actions: resolve
acp_commandvalues for a shell-word command, a blank string, a JSON stdio config with args/env, and a non-stdio JSON config. - Expected outcome: shell-word and JSON stdio commands expose parsed program/args/env; blank overrides fail with
acp_command must not be empty; HTTP/SSE configs fail withonly stdio ACP commands are supported; rendered sandbox command uses parsed parts with shell quoting. Source of truth: implementation plan command override contract and shell quoting invariant inAGENTS.md. - Interactions: ACP Tokio parser, command rendering, env merge inputs.
-
Local sandbox stdio round-trips without a PTY
- Type: integration
- Disposition: new
- Harness:
fabro-sandboxlocal stdio process harness. - Preconditions: temp local sandbox workspace; Python or a POSIX shell command available.
- Actions: spawn a line-oriented process with
spawn_stdio_process, writeabc\nto stdin, read one stdout line, then terminate and wait. - Expected outcome: stdout returns the transformed line, stderr remains separately collectible, and
terminate()completes without leaking the process. Source of truth: implementation plan Contracts And Invariants requiring sandbox-backed, bidirectional, non-PTY stdio. - Interactions: local process groups, env filtering, async IO, cancellation cleanup.
-
Sandbox providers preserve or reject ACP stdio capability correctly
- Type: invariant
- Disposition: new
- Harness:
fabro-sandboxprovider/decorator tests. - Preconditions: local sandbox, read/write guard, worktree/decorator wrappers, test-support sandbox, and Daytona provider stub are available.
- Actions: call
spawn_stdio_processthrough each wrapper around a supporting sandbox; call it on Daytona; construct Docker exec stdio options. - Expected outcome: wrappers forward to the inner sandbox; Daytona returns
ACP backend requires bidirectional stdio; the Daytona sandbox provider does not support it yet; Docker create/start options attach stdin/stdout/stderr and settty=false; Docker termination uses the stop-file/control path. Source of truth: implementation plan provider support and PTY corruption risk. - Interactions: decorator macro, worktree path resolution, Docker option builder, Daytona provider boundary.
-
ACP lifecycle initializes, creates a session, sends a prompt, and aggregates text
- Type: integration
- Disposition: new
- Harness:
fabro-acpfake ACP agent harness. - Preconditions: fake ACP agent configured to emit two text
agent_message_chunkupdates and returnstopReason: "end_turn". - Actions: call
run_acp_turnwith a prompt and cwd. - Expected outcome: fake agent observes
initialize,session/new,session/promptin order; result text is the concatenation of text chunks; stop reason isEndTurn. Source of truth: ACP initialization/session/prompt docs and docs.rs quick-start lifecycle. - Interactions: official ACP SDK client, sandbox stdio transport, JSON-RPC ordering.
-
ACP runs inside the active sandbox and sees the workflow cwd
- Type: integration
- Disposition: new
- Harness:
fabro-acpfake agent plus local sandbox stdio. - Preconditions: temp sandbox workspace; fake agent writes
hello.txtin its cwd duringsession/prompt. - Actions: call
run_acp_turn, then inspect the sandbox workspace forhello.txt. - Expected outcome: file exists inside the sandbox workspace, not the host process cwd;
session/newcwd matchessandbox.working_directory(). Source of truth: implementation plan Contracts And Invariants requiring ACP processes to run inside the active Fabro sandbox. - Interactions: sandbox cwd resolution, command launch, file mutation visibility.
-
ACP permission requests auto-select an allow option
- Type: integration
- Disposition: new
- Harness:
fabro-acpfake ACP agent harness. - Preconditions: fake agent sends
session/request_permissionwithAllowAlways,AllowOnce, and reject options before completing the prompt. - Actions: call
run_acp_turnand record the client response. - Expected outcome: client responds with the
AllowAlwaysoption id when present, then the turn continues and returns text. Source of truth: implementation plan permission handling contract; ACP supports agent-to-client permission requests. - Interactions: ACP client request handler, cancellation token state, prompt turn progress.
-
ACP cancellation sends session cancel and returns cancellation
- Type: boundary
- Disposition: new
- Harness:
fabro-acpfake ACP agent harness. - Preconditions: fake agent has created a session and is holding
session/promptopen. - Actions: start
run_acp_turn, cancel the token before completion, and let the fake agent record incoming notifications. - Expected outcome: client sends
session/cancelfor the active session, terminates if the agent does not finish within grace, and returnsAcpError::Cancelled. If a permission request arrives after cancellation, the response isRequestPermissionOutcome::Cancelled. Source of truth: implementation plan cancellation contract and ACP prompt lifecycle stop reasons. - Interactions: cancel token, JSON-RPC notification, process termination.
-
ACP timeout terminates the process and reports timeout
- Type: boundary
- Disposition: new
- Harness:
fabro-acpfake ACP agent harness. - Preconditions: fake agent never responds to
session/prompt; request timeout is short. - Actions: call
run_acp_turn. - Expected outcome: process is terminated, stderr tail is available if emitted, and error is
AcpError::TimedOut. Source of truth: implementation plan timeout contract using node timeout like CLI mode. - Interactions: watchdog activity, process handle termination, stderr collector.
-
ACP protocol failures include diagnostic stderr without losing typed errors
- Type: boundary
- Disposition: new
- Harness:
fabro-acpfake ACP agent harness. - Preconditions: fake agents for malformed JSON-RPC and early nonzero exit.
- Actions: call
run_acp_turnfor each failure mode. - Expected outcome: malformed JSON returns a protocol error; early exit includes exit status and stderr tail; error source chains remain inspectable where applicable. Source of truth: implementation plan malformed/early-exit behavior and error-handling strategy.
- Interactions: ACP SDK error propagation, stderr tail collection, process wait.
-
ACP stop reasons map to Fabro backend outcomes
- Type: boundary
- Disposition: new
- Harness:
fabro-acpfake agent plus workflowAgentAcpBackendadapter tests. - Preconditions: fake agent can return
EndTurn,Refusal,Cancelled,MaxTokens, andMaxTurnRequests. - Actions: run an ACP backend turn for each stop reason.
- Expected outcome:
EndTurnandRefusalreturn text;Cancelledmaps toError::Cancelled;MaxTokensandMaxTurnRequestsreturn handler errors containing the stop reason and partial output. Source of truth: implementation plan Stop reason handling. - Interactions: protocol result mapping, workflow error conversion, event terminal paths.
-
ACP backend adapter prepares credentials, env, Node runtime, and changed files
- Type: integration
- Disposition: new
- Harness:
fabro-workflowACP adapter tests with fake credential resolver and fake sandbox. - Preconditions: node uses
backend="acp"; fake resolver can provide env vars and login command; sandbox records commands and git status before/after. - Actions: call
AgentAcpBackend::run. - Expected outcome: login command runs before ACP; tool env overlays command env; default
npxcommands trigger Node/npm/npx bootstrap; explicitacp_commanddoes not install provider CLIs;files_touchedexcludes pre-existing dirty files and includes new changed/untracked files. Source of truth: implementation plan env preparation, Node bootstrap, and changed-file semantics. - Interactions: credential resolver, workflow tool env, sandbox exec, Git diff helper.
-
ACP one-shot prompt nodes use sandboxed ACP and combine system prompt correctly
- Type: integration
- Disposition: new
- Harness:
fabro-workflowPromptHandlerandAgentAcpBackend::one_shottests. - Preconditions: prompt node has
backend="acp"; project memory can produce a system prompt; fake backend captures sandbox pointer and cancellation token. - Actions: execute the prompt handler.
- Expected outcome:
PromptHandlerpasses the active sandbox and run cancel token intoCodergenBackend::one_shot; ACP one-shot sendsSystem:\n{system_prompt}\n\nUser:\n{prompt}when system prompt exists and only the prompt when absent; no host process is used. Source of truth: implementation plan User-Visible Behavior for prompt/one_shot ACP support. - Interactions: prompt handler, memory discovery, backend trait signature, run services.
-
Backend router selects api, cli, and acp explicitly
- Type: integration
- Disposition: extend
- Harness:
fabro-workflowrouter tests. - Preconditions: router has API, CLI, and ACP test backends with distinguishable responses.
- Actions: run agent nodes with absent backend,
backend="api",backend="cli",backend="acp", andbackend="codex". - Expected outcome: absent and
apiuse API;cliuses CLI;acpuses ACP; unknown backend fails withunsupported LLM backend "codex"; expected one of: api, cli, acp. Source of truth: implementation plan three-way router selection and strict validation requirement. - Interactions: node attributes, model fallback, handler errors.
-
Prompt router keeps legacy cli one-shot fallback but routes acp to ACP
- Type: regression
- Disposition: extend
- Harness:
fabro-workflowrouter one-shot tests. - Preconditions: router has API and ACP one-shot test backends.
- Actions: call
one_shotfor prompt nodes with absent backend,backend="api",backend="cli", andbackend="acp". - Expected outcome: absent,
api, and legacycliprompt nodes use API;acpuses ACP. Source of truth: implementation plan compatibility note for prompt nodes withbackend="cli"and explicit ACP prompt support. - Interactions: backend routing, prompt handler behavior, backward compatibility.
-
Workflow validation accepts only supported backend values
- Type: boundary
- Disposition: new
- Harness:
fabro-validatebackend_validrule tests and CLI validate coverage if practical. - Preconditions: graphs with absent backend and with
api,cli,acp, andcodex. - Actions: run
fabro_validate::validateagainst each graph; optionally runfabro validateagainst an invalid fixture. - Expected outcome: absent,
api,cli, andacphave no backend diagnostic;codexreturns an error diagnostic containingunsupported LLM backend "codex"; expected one of: api, cli, acp. Source of truth: implementation plan User-Visible Behavior for unknown backend values. - Interactions: validation registry, parser, CLI diagnostic rendering.
-
Imported workflow placeholders propagate acp_command
- Type: regression
- Disposition: extend
- Harness:
fabro-workflowimport transform tests. - Preconditions: host workflow has an import placeholder with
backend="acp"andacp_command="python fake_agent.py"; imported workflow has LLM nodes. - Actions: run
ImportTransformand inspect imported node attrs. - Expected outcome: imported LLM nodes receive
backend="acp"and the placeholderacp_command; unsupported placeholder attributes still poison the placeholder. Source of truth: implementation plan file list and import transform requirement. - Interactions: graph transform, default attribute propagation, import validation.
-
ACP events serialize with stage-scoped metadata
- Type: integration
- Disposition: new
- Harness:
fabro-workflowevent conversion tests. - Preconditions: construct
Event::AgentAcpStarted,AgentAcpCompleted,AgentAcpCancelled, andAgentAcpTimedOutwith aStageScope. - Actions: convert each event through
to_run_event. - Expected outcome: event names are
agent.acp.started,agent.acp.completed,agent.acp.cancelled, andagent.acp.timed_out; envelope includesnode_id, stage id/visit-derived fields, and no prompt/env/credential contents. Source of truth: events strategy and implementation plan ACP event contract. - Interactions: event naming, stored fields,
fabro-typesevent body serde.
-
Run projection records ACP provider metadata and terminal output
- Type: integration
- Disposition: new
- Harness:
fabro-storerun projection tests. - Preconditions: event sequence has stage start,
agent.acp.started, terminal ACP event, and stage completion/failure. - Actions: apply events to
RunProjection. - Expected outcome:
stage.provider_used.mode == "acp"with provider, model, and command; completed output contains aggregated text/stderr payload; cancelled and timed-out terminal events setCommandTermination::CancelledandCommandTermination::TimedOut. Source of truth: implementation plan run projection support. - Interactions: stored event fields, stage lookup by visit, projection terminal data.
-
Fork replay preserves ACP stage metadata
- Type: regression
- Disposition: new
- Harness:
fabro-workflowfork replay tests. - Preconditions: source run history includes ACP started/cancelled/timed-out events before a checkpoint.
- Actions: call fork replay filtering or run a lower-level fork projection test.
- Expected outcome:
AgentAcpStarted,AgentAcpCancelled, andAgentAcpTimedOutare replayed into the fork projection;AgentAcpCompletedfollows the existing CLI completed replay policy. Source of truth: implementation plan fork replay requirement. - Interactions: historical event filtering, forked run projection.
-
ACP running stages are not steerable through the server API
- Type: scenario
- Disposition: new
- Harness: server event-state harness extension.
- Preconditions: a running managed run with worker control channel; no active API-mode agent session; active stage marker has been set by
agent.acp.started. - Actions: call
POST /runs/{id}/steerwith a plain steer request and with interrupt+steer. - Expected outcome: response is
409 CONFLICTwith a clear non-steerable-agent error code/message; no worker control message is enqueued as if an API session might appear. Source of truth: implementation plan server steerability tracking. - Interactions: run manager event reducer, HTTP handler, worker control queue.
-
ACP non-steerable marker clears on all terminal paths
- Type: invariant
- Disposition: new
- Harness: server event-state harness extension.
- Preconditions: a running managed run with active ACP stage and no active API-mode stage.
- Actions: apply each clearing event independently:
agent.acp.completed,agent.acp.cancelled,agent.acp.timed_out,stage.completed, andstage.failed; then callPOST /runs/{id}/steerwith a plain steer request. - Expected outcome: plain steer is accepted/buffered after each terminal event because no non-steerable active agent remains. Source of truth: implementation plan server steerability clearing rules.
- Interactions: event reducer backstops, HTTP handler, stage lifecycle.
-
Pipeline initialization wires ACP into real workflow handlers
- Type: integration
- Disposition: new
- Harness:
fabro-workflowpipeline initialization tests. - Preconditions: graph contains
backend="acp"LLM node; credentials are supplied through a stub/env source; dry-run and non-dry-run cases are both available. - Actions: call
initialize/build_registryand execute or resolve the node through the initialized registry using a fake ACP runner. - Expected outcome: non-dry-run registry constructs a router with ACP; dry-run still builds no real backend and simulates LLM handlers; ACP does not fall back to host env when a resolver exists. Source of truth: implementation plan pipeline initialization task.
- Interactions: credential source, handler registry, dry-run path.
-
Black-box
fabro runexecutes an ACP-backed agent workflow- Type: scenario
- Disposition: new
- Harness: workflow ACP runner harness in
fabro-cli/tests/it/workflow. - Preconditions: temp workflow has an agent node with
backend="acp",provider="openai",model="fake-acp", andacp_commandpointing to the checked-in fake ACP agent; local sandbox is used. - Actions: run the workflow through the CLI test command, then read run state/events through existing workflow helpers.
- Expected outcome: run succeeds; stage response contains concatenated chunks;
hello.txtis included infiles_touched; run projection hasprovider_used.mode == "acp";agent.acp.startedandagent.acp.completedevents are present. Source of truth: user request for first-classbackend="acp"and implementation plan black-box workflow coverage. - Interactions: CLI command, parser, validation, pipeline initialization, sandbox stdio, ACP protocol, run store.
-
Black-box ACP prompt workflow uses ACP instead of API
- Type: scenario
- Disposition: new
- Harness: workflow ACP runner harness.
- Preconditions: temp workflow has a prompt/one_shot node with
backend="acp"and fake ACP command. - Actions: run the workflow through the CLI test command and inspect stage response/events.
- Expected outcome: prompt node succeeds through ACP, response is fake ACP text, and
agent.acp.*provider metadata appears; no API-modeagent.session.activatedevent is needed for the prompt. Source of truth: implementation plan User-Visible Behavior forbackend="acp"on prompt/one_shot nodes. - Interactions: prompt handler, one-shot routing, pipeline initialization, run projection.
-
Documentation examples and backend references include ACP without stale CLI prompt claims
- Type: regression
- Disposition: extend
- Harness: documentation grep plus existing docs build if normally run in CI.
- Preconditions: docs have been updated.
- Actions: run
rg -n "backend=.*cli|backend: cli|backend.*api|CLI backend|cli mode|ACP" docs/public lib/crates -g '*.md' -g '*.mdx'andcd apps/marketing && bun run buildonly if the touched docs are built by that package. - Expected outcome: docs mention valid backend values
api,cli,acp;cliis described as legacy; ACP sandbox and Daytona limitations are documented; no stale claim remains that prompt nodes use CLI mode. Source of truth: implementation plan documentation task. - Interactions: public docs, marketing/docs build pipeline.
-
Final targeted ACP verification passes
- Type: invariant
- Disposition: new
- Harness: repository test suites named by the implementation plan.
- Preconditions: all implementation tasks complete.
- Actions: run:
ulimit -n 4096 && cargo nextest run -p fabro-acp --run-ignored all --no-fail-fast;ulimit -n 4096 && cargo nextest run -p fabro-sandbox --run-ignored all --no-fail-fast;ulimit -n 4096 && cargo nextest run -p fabro-workflow --run-ignored all --no-fail-fast;ulimit -n 4096 && cargo nextest run -p fabro-validate --run-ignored all --no-fail-fast;ulimit -n 4096 && cargo nextest run -p fabro-store --run-ignored all --no-fail-fast;ulimit -n 4096 && cargo nextest run -p fabro-server --run-ignored all --no-fail-fast;ulimit -n 4096 && cargo nextest run -p fabro-cli --run-ignored all --no-fail-fast. - Expected outcome: every suite passes without skipped tests or live provider credentials. Source of truth: accepted strategy final verification and implementation plan Task 10. - Interactions: all changed crates and user-visible workflow/server surfaces.
- Workspace-wide build, formatting, and lint gates pass
- Type: invariant
- Disposition: existing
- Harness: repository-wide Cargo/rustfmt/clippy commands.
- Preconditions: targeted tests pass.
- Actions: run
cargo build --workspace,ulimit -n 4096 && cargo nextest run --workspace --run-ignored all --no-fail-fast,cargo +nightly-2026-04-14 fmt --check --all, andcargo +nightly-2026-04-14 clippy --workspace --all-targets -- -D warnings. - Expected outcome: build, workspace tests, formatting, and clippy all pass with zero skipped tests. Source of truth: repositoryAGENTS.mdbuild/test commands and the no-skipped-tests final-run requirement. - Interactions: full workspace dependency graph, feature flags, generated code boundaries.
Coverage Summary
Covered action space:
- Workflow authoring:
backendabsent,api,cli,acp, invalid values, stylesheet/import propagation,acp_commandshell-word and JSON stdio overrides. - Execution surfaces: agent nodes, prompt/one_shot nodes, local sandbox ACP execution, default command selection, explicit override execution, credentials/env, Node bootstrap, changed-file reporting, cancellation, timeout, and stop reason handling.
- Protocol behavior:
initialize,session/new,session/prompt,session/updatetext aggregation, permission requests,session/cancel, malformed JSON-RPC, and early process exit. - Provider/sandbox boundaries: local stdio, Docker non-PTY stdio option/control behavior, Daytona unsupported error, decorator forwarding.
- Product-visible state: ACP events, run projection
provider_used.mode == "acp", terminal output/termination, fork replay, CLI workflow run state, and server steerability API behavior. - Regression protection: existing CLI routing/CLI parsing tests, existing MCP stdio tests, dry-run initialization, repository build/fmt/clippy.
Explicit exclusions:
- Live Anthropic/OpenAI/Gemini ACP adapter calls are excluded; fake ACP agents provide deterministic coverage without paid credentials. Risk: vendor-specific adapter quirks may escape until optional/live tests are added.
- Full live Docker ACP workflow execution is not required unless the existing test environment already provides Docker. Unit-level Docker exec option/control tests cover the non-PTY and termination contract. Risk: daemon-specific stream behavior could still differ from Bollard option construction.
- Remote ACP transports are excluded because the implementation plan supports only stdio in this cutover. Risk: none for the agreed scope.
- ACP client filesystem and terminal capabilities are excluded because Fabro intentionally advertises none in this cutover. Risk: agents requiring those client APIs will fail as documented rather than silently using unsafe host capabilities.