diff --git a/docs/reference/specs/release-and-deploy.md b/docs/reference/specs/release-and-deploy.md index 4f7a6e781..ec4572878 100644 --- a/docs/reference/specs/release-and-deploy.md +++ b/docs/reference/specs/release-and-deploy.md @@ -315,7 +315,7 @@ Each acceptance receipt binds the original ingress run ID, exact serving respons | Automatic HTTP staging acceptance selects Luna and medium Review effort in both setup and live checks, including events without workflow inputs. The actual model, effort, exact fixture head and expected verdict remain required; a wrong verdict fails. | `[unit]` `src/deploy/staging.test.ts::staging workflow isolation::uses Luna and medium effort in automatic HTTP acceptance even when deployment inputs are absent`, `src/deploy/agentSmoke.test.ts::bounded agent smoke::accepts Luna at medium effort over HTTP only with the expected exact-head verdict` | | MCP Review acceptance uses the existing dispatch client and actual MCP actor/channel/thread, explicit Sol/high, the serving build, original receipt/owner and recorded effort. Its workflow option reaches both preflight and final acceptance in the same existing serialized job. A read-only MCP bearer, wrong source/build/owner/effort or unknown acknowledgment cannot fall back to HTTP or replay; a known pending ownerless receipt remains incomplete. | `[unit]` `src/deploy/agentSmoke.test.ts::bounded agent smoke::runs MCP Review through the maintained client and real public controller with no HTTP review admission: *`, `::uses genuine MCP Review with explicit Sol/high and proves its own source and recorded effort: *`, `::retains a known pending receipt with no owner and stops without replay or further admissions…`, `::requires the explicit approved model and effort for MCP Review while retaining default HTTP`, `src/channels/mcpAdmission.test.ts::MCP organization admission::reports the actual serving build and native thread with the original owner, ignoring caller metadata`, `src/deploy/staging.test.ts::staging workflow isolation::forwards the same MCP Review model and effort through preflight and final acceptance in the existing job` | | 33: the request destination must be the exact planned bare HTTPS origin | `[unit]` `src/deploy/ingressSmoke.test.ts::production ingress smoke::fails on a run failure, wrong answer, missing credential, or unsafe URL` | -| The Explore workspace check names the run's bound Git Door remote for a missing checkout. The command reads the fixture through its own workspace; an API-only fallback does not prove workspace execution. | `[unit]` `src/deploy/agentSmoke.test.ts::bounded agent smoke::requests the Explore floor and retains twelve minutes of workspace loop time`; `src/execution/factory.test.ts::makeExecutor per-agent provisioning::leaves GitHub clones direct even when their names extend the bound repository` | +| The Explore workspace check names the run's bound Git Door remote for a missing checkout. The request tells Explore that a Pi bash timeout is in seconds, with 120 for two minutes. The command reads the fixture through its own workspace; an API-only fallback does not prove workspace execution. | `[unit]` `src/deploy/agentSmoke.test.ts::bounded agent smoke::requests the Explore floor and retains twelve minutes of workspace loop time`; `src/execution/factory.test.ts::makeExecutor per-agent provisioning::leaves GitHub clones direct even when their names extend the bound repository` | | 33: the three bounded families request explicit General routing with a four-minute minimum, Explore’s existing fifteen-minute floor with twelve minutes of tool work, and fifteen minutes for capability Review. Recorded profiles must match those requests; original execution/output/publication facts remain required, and unknown effects, spend/build failures and skipped dependents are preserved | `[unit]` `src/deploy/agentSmoke.test.ts::bounded agent smoke::*`; `src/deploy/ingressSmoke.test.ts::production ingress smoke::*`; `src/core/runsService.test.ts::RunsService.getRun::finished registry projection exposes the persisted admitted profile`; `src/channels/browserHomeInstallation.test.ts::browser installation::routes the exported smoke answer through native HTTP to its original General owner` | | Native asynchronous acceptance proves caller-authorized readback of the exact accepted original run's sealed, persisted and complete output. It retains physical `replyOk` unchanged and records receipt/run/seal/count/byte evidence only after every scenario gate passes. Legacy channel output still requires `replyOk: true`; refused, missing, foreign, unsealed, partial or wrong native output cannot pass | `[unit]` `src/channels/browserHomeWiring.test.ts::browser production wiring::verifies native async output through authenticated original run readback without claiming null-channel delivery: %s`; `src/deploy/agentSmoke.test.ts::bounded agent smoke::requires exact saved native output instead of channel delivery: %s` | | Native HTTP acceptance waits for its exact accepted owner in the original thread's authorized metadata before its first point read, within the original deadline. Matching affirmative read scope and available stores are required. An absent owner on a partial page stops incomplete; a sibling never substitutes. A transient transport or timeout read of the known original run gets one same-ID retry within the original deadline, without another admission. The receipt and progress log save the first read's code, operation, HTTP status and validated request or Cloudflare Ray ID before that retry, including when the second read succeeds. Auth, scope, protocol and masked point-read refusals remain terminal. Receipts can retain the numeric RPC code, never remote error prose or data. MCP Review gets one same-ID retry after a read-only `runs_get` HTTP 5xx within the original deadline; other MCP read failures stay terminal | `[unit]` `src/deploy/agentSmoke.test.ts::native HTTP run readiness::*`; `src/deploy/agentSmoke.test.ts::bounded agent smoke::finishes the original Review run after one transient read failure`; `src/deploy/agentSmoke.test.ts::bounded agent smoke::finishes the original MCP Review after one HTTP 500 read`; `src/deploy/agentSmoke.test.ts::bounded agent smoke::keeps a denied run read incomplete without another request`; `src/channels/browserHomeWiring.test.ts::browser production wiring::verifies native async output through authenticated original run readback without claiming null-channel delivery: %s` | diff --git a/src/deploy/agentSmoke.test.ts b/src/deploy/agentSmoke.test.ts index e9e57363a..b80dd778b 100644 --- a/src/deploy/agentSmoke.test.ts +++ b/src/deploy/agentSmoke.test.ts @@ -898,7 +898,7 @@ describe("bounded agent smoke", () => { id: "workspace", agent: "explore", minutes: 15, - text: 'agent:explore budget:15 Read SMOKE.md in acme/smoke using the workspace. If no checkout is present, clone the bound repository with git clone "$GIT_DOOR_REMOTE". Reply only with its contents. Do not change files.', + text: 'agent:explore budget:15 Read SMOKE.md in acme/smoke using the workspace. If no checkout is present, clone the bound repository with git clone "$GIT_DOOR_REMOTE". If you use bash, its timeout is in seconds (use timeout: 120 for two minutes). Reply only with the file contents. Do not change files.', }); }); @@ -1257,7 +1257,7 @@ describe("bounded agent smoke", () => { ); expect((transport.request as ReturnType).mock.calls.map(([scenario]) => scenario.text)).toEqual([ "agent:general What is 2 + 2? Answer only with the number. budget:4 model:openai/gpt-6.1-sol", - 'agent:explore budget:15 Read SMOKE.md in acme/smoke using the workspace. If no checkout is present, clone the bound repository with git clone "$GIT_DOOR_REMOTE". Reply only with its contents. Do not change files. model:openai/gpt-6.1-sol', + 'agent:explore budget:15 Read SMOKE.md in acme/smoke using the workspace. If no checkout is present, clone the bound repository with git clone "$GIT_DOOR_REMOTE". If you use bash, its timeout is in seconds (use timeout: 120 for two minutes). Reply only with the file contents. Do not change files. model:openai/gpt-6.1-sol', `agent:review budget:15 Review https://github.com/acme/smoke/pull/7 at head ${head}. Publish the review; do not change files or merge. model:openai/gpt-6.1-sol`, ]); }); diff --git a/src/deploy/agentSmoke.ts b/src/deploy/agentSmoke.ts index b81b578e1..673679400 100644 --- a/src/deploy/agentSmoke.ts +++ b/src/deploy/agentSmoke.ts @@ -435,7 +435,7 @@ function scenarios(config: SmokeConfig): SmokeScenario[] { id: "workspace", agent: "explore", minutes: explore, - text: `agent:explore budget:${explore} Read ${config.workspace.path} in ${config.repo} using the workspace. If no checkout is present, clone the bound repository with git clone "$GIT_DOOR_REMOTE". Reply only with its contents. Do not change files.`, + text: `agent:explore budget:${explore} Read ${config.workspace.path} in ${config.repo} using the workspace. If no checkout is present, clone the bound repository with git clone "$GIT_DOOR_REMOTE". If you use bash, its timeout is in seconds (use timeout: 120 for two minutes). Reply only with the file contents. Do not change files.`, }, { id: "review",