{"name":"isolated-change-validation","title":"Validate an isolated change","description":"Validate a change in a sandbox physically separate from the trusted tree, and earn a verdict a reader can check rather than a builder's claim: freeze the source identity in a hash manifest before the first edit, declare the path budget, watch one RED per behaviour, run the gates yourself, review on independent axes, classify every scan hit, and hand the run over as runnable state. Symptoms: prove this works before it goes anywhere near main, the agent says the tests pass, validate this in a sandbox, the scratch tree has no git, an overnight unattended run someone else picks up, keep the accepted candidate somewhere it cannot be lost, the sandbox must not be able to reach the real repository. For a change you are landing in the repository itself, use a delivery skill; this is for work that stays outside it until it is accepted.","compatibility":"Any codebase that can be copied into a scratch directory and checked with deterministic commands. Git is optional: file-hash manifests replace revision identity in copied or no-git sandboxes. Uses the project's own package manager, typechecker and test runner; installs no framework. Subagents are optional; without them the implementer and reviewer roles are passes run in sequence. Output is a verdict, the evidence behind each of its claims, and a handoff bundle another agent can re-run.","allowedTools":"Read Write Edit Grep Glob Bash","license":"MIT","kind":"signals","useWhen":"proving a change in a sandbox before it may land, or handing an unattended run over","group":"workflow","lifecycle":"release","version":"1.0.1","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill isolated-change-validation"],"asks":["Validate this change in a sandbox. Copy the source into a scratch lane, hash-pin it before you\ntouch anything, and tell me the allowed existing paths and allowed new paths before you dispatch\na builder. If anything lands outside that set, stop and show me — do not fold it in.","The builder reports 1042 passing. Do not take that. Re-hash its lane, run the typecheck, build,\nfocused tests and full suite yourself, and show me the totals you parsed from the runner rather\nthan from its message. If the suite ran with a live provider key, that number is contaminated —\nrerun it with the live tests excluded and say so.","This runs overnight and I will not be watching. Before you finish, write the handoff bundle:\nthe accepted lane, the work that is not accepted, the dirty checkout, the artifacts, the\nevidence and a manifest, in the private remote — not in the scratch directory. Then verify the\nbundle from a fresh clone and tell me the verifier's output.","Accepted in the sandbox is all I am asking for. Do not transfer it into the repository, do not\ncommit, push or publish, and do not call a live provider. If a gate needs any of those, record\nit as skipped with the authority it would need."],"commands":[],"documents":[{"path":"references/evidence-contract.md","slug":"evidence-contract","title":"The evidence contract","body":"# The evidence contract\n\nReusable shapes for the artifacts an isolated run produces. They exist so that a reader who saw\nnone of the run can check each claim, and so that an aggregation script can assert against a\nschema rather than infer one. Field names are a starting point — keep whatever names the project\nalready uses, and keep the distinctions.\n\nEvery shape here obeys one rule: **a claim and the evidence for it live in the same record.**\nA number with no invocation beside it cannot be checked, and a pass with no hash beside it is\nabout an unknown tree.\n\n## The baseline manifest\n\nWritten before the first edit, over every source and config file the change could affect.\n\n```text\n<sha256>  <path relative to the lane root>\n```\n\nBeside it, a small record of what the manifest deliberately does not cover, so a later reader\ncan tell an omission from a miss:\n\n```json\n{\n  \"lane\": \"candidate\",\n  \"root_kind\": \"copied-no-git\",\n  \"files\": 2985,\n  \"omitted\": [\n    { \"glob\": \"**/node_modules/**\", \"why\": \"dependency tree, attached read-only after the copy\" },\n    { \"glob\": \"**/dist/**\", \"why\": \"generated; compared separately by hash in the build gate\" },\n    { \"glob\": \"**/.tsbuildinfo\", \"why\": \"compiler cache\" }\n  ]\n}\n```\n\n`root_kind` matters: in a copied lane with no git metadata, these hashes *are* the revision\nidentity, and every later comparison resolves against them.\n\n## The path budget\n\nTwo sets, not one. Acceptance asserts exact equality with both.\n\n```json\n{\n  \"allowed_existing\": [\"packages/<pkg>/src/<file>.ts\", \"packages/<pkg>/package.json\"],\n  \"allowed_new\": [\"packages/<pkg>/src/<file>.test.ts\"],\n  \"permitted_generated\": [\"packages/<pkg>/dist/**\"],\n  \"forbidden_acts\": [\n    \"writing outside the lane\",\n    \"process-wide signals\",\n    \"transfer, commit, push or publication\",\n    \"account, billing or visibility changes\",\n    \"live-provider calls\"\n  ],\n  \"on_breach\": \"stop the child, report the extra path, re-enter the budget before continuing\"\n}\n```\n\nA path that was allowed and never touched is a finding, not a rounding error: either the change\nwas smaller than the map said, or something was not done.\n\n## A frozen-install record\n\nThe evidence that separates a real clean install from a reused tree. Half of it is written\n*before* the command runs.\n\n```json\n{\n  \"pre\": {\n    \"argv\": [\"<package-manager>\", \"install\", \"--frozen-lockfile\"],\n    \"cwd\": \"<lane root>\",\n    \"env_paths\": { \"HOME\": \"<scratch home>\", \"STORE_DIR\": \"<scratch store>\" },\n    \"node_modules_present\": false,\n    \"store_entries\": 0,\n    \"inputs\": { \"<lock file>\": \"<sha256>\", \"<workspace file>\": \"<sha256>\" }\n  },\n  \"post\": {\n    \"exit\": 0,\n    \"projects\": 7,\n    \"packages_added\": 1184,\n    \"lock_unchanged\": true,\n    \"all_inputs_unchanged\": true\n  }\n}\n```\n\n`env_paths` carries paths, never values of credentials. A record naming a secret's *variable* is\nfine; a record carrying its value is a leak with a schema.\n\n## A gate result\n\nOne per gate, each labelled with what it proves.\n\n```json\n{\n  \"gate\": \"focused-tests\",\n  \"proves\": \"current source against the attached dependency tree\",\n  \"does_not_prove\": \"a clean install, or an external consumer\",\n  \"argv\": [\"node\", \"node_modules/<runner>/<entry>\", \"run\", \"<path>\"],\n  \"tests\": 325, \"passed\": 325, \"failed\": 0, \"pending\": 0,\n  \"live_provider_calls\": false,\n  \"parsed_from\": \"runner json output\"\n}\n```\n\nTotals are parsed from the runner's own machine-readable output. A total read out of a child's\nprose is a quotation, and quotations survive runs that failed.\n\n## A reviewer report\n\nOne per axis. The reviewer fails closed when the hashes it was given no longer match.\n\n```json\n{\n  \"axis\": \"contract-and-data\",\n  \"source_pins\": { \"<path>\": \"<sha256>\" },\n  \"pins_match_at_review_time\": true,\n  \"wrote_only_in\": \"<reviewer scratch dir>\",\n  \"findings\": [\n    { \"severity\": \"blocking|non-blocking\", \"path\": \"<path>\", \"claim\": \"...\", \"evidence\": \"...\" }\n  ],\n  \"executed_compiled_output\": false\n}\n```\n\n`executed_compiled_output` is load-bearing: a reviewer that ran a build directory it did not\nrebuild or hash-verify produced a harness result, not a product verdict.\n\n## The static-scan classification\n\nRaw hits are not findings. Every hit gets a classification, and the run does not finish while any\nhit is unclassified.\n\n```json\n{\n  \"files_scanned\": 2985,\n  \"raw_hits\": 74,\n  \"classified_hits\": [\n    {\n      \"file\": \"<path>\",\n      \"pattern\": \"<detector name>\",\n      \"offset\": 7692,\n      \"classification\": \"credential-shaped fixture in a redaction test; not a live credential\"\n    }\n  ],\n  \"unclassified_hits\": 0\n}\n```\n\nThree classifications cover nearly everything: a credential-shaped fixture, a documentation\nexample, and a real credential — the last of which stops the run rather than being recorded in\nit. Keep the offsets: they let the next reader re-derive the classification instead of trusting\nthis one.\n\n## The final verdict\n\nThe artifact the run is judged by. Its fields stay separate on purpose — collapsing them is how a\nscoped acceptance turns into an unscoped one.\n\n```json\n{\n  \"status\": \"technically-accepted-in-isolated-sandbox\",\n  \"scope\": \"<what was validated, in one sentence>\",\n  \"candidate\": {\n    \"lane\": \"<lane root>\",\n    \"git_metadata\": false,\n    \"changed_paths\": [\"...\"],\n    \"added_paths\": [\"...\"],\n    \"removed_paths\": [],\n    \"source_pins\": { \"<path>\": \"<sha256>\" }\n  },\n  \"authorization\": {\n    \"frozen_install\": true,\n    \"live_provider_call\": false,\n    \"transfer\": false,\n    \"publication\": false,\n    \"account_change\": false,\n    \"billing_change\": false\n  },\n  \"gates\": { \"typecheck\": {}, \"build\": {}, \"focused\": {}, \"full\": {}, \"downstream\": {} },\n  \"reviews\": [{ \"axis\": \"...\", \"blocking_findings\": 0 }],\n  \"process_failures\": [\"a reviewer exhausted its turns; its report was recovered by resuming the same session for synthesis only\"],\n  \"residual_risks\": [{ \"risk\": \"...\", \"settled_by\": \"<the gate that would settle it>\" }],\n  \"skipped_gates\": [{ \"gate\": \"live-provider acceptance\", \"why\": \"no authorization\", \"needs\": \"explicit approval and a funded account\" }],\n  \"not_authorized_by_this_verdict\": [\"transfer\", \"commit\", \"push\", \"publication\", \"signing\"]\n}\n```\n\n`process_failures` and `residual_risks` are the two fields most often quietly dropped, and the\ntwo a later reader most needs. A turn-limit failure does not make good code bad; leaving it out\nmakes a run look cleaner than it was.\n","bodyHtml":"<h2 id=\"the-evidence-contract\">The evidence contract</h2>\n<p>Reusable shapes for the artifacts an isolated run produces. They exist so that a reader who saw\nnone of the run can check each claim, and so that an aggregation script can assert against a\nschema rather than infer one. Field names are a starting point — keep whatever names the project\nalready uses, and keep the distinctions.</p>\n<p>Every shape here obeys one rule: <strong>a claim and the evidence for it live in the same record.</strong>\nA number with no invocation beside it cannot be checked, and a pass with no hash beside it is\nabout an unknown tree.</p>\n<h3 id=\"the-baseline-manifest\">The baseline manifest</h3>\n<p>Written before the first edit, over every source and config file the change could affect.</p>\n<pre><code class=\"language-text\">&lt;sha256&gt;  &lt;path relative to the lane root&gt;\n</code></pre>\n<p>Beside it, a small record of what the manifest deliberately does not cover, so a later reader\ncan tell an omission from a miss:</p>\n<pre><code class=\"language-json\">{\n  &quot;lane&quot;: &quot;candidate&quot;,\n  &quot;root_kind&quot;: &quot;copied-no-git&quot;,\n  &quot;files&quot;: 2985,\n  &quot;omitted&quot;: [\n    { &quot;glob&quot;: &quot;**/node_modules/**&quot;, &quot;why&quot;: &quot;dependency tree, attached read-only after the copy&quot; },\n    { &quot;glob&quot;: &quot;**/dist/**&quot;, &quot;why&quot;: &quot;generated; compared separately by hash in the build gate&quot; },\n    { &quot;glob&quot;: &quot;**/.tsbuildinfo&quot;, &quot;why&quot;: &quot;compiler cache&quot; }\n  ]\n}\n</code></pre>\n<p><code>root_kind</code> matters: in a copied lane with no git metadata, these hashes <em>are</em> the revision\nidentity, and every later comparison resolves against them.</p>\n<h3 id=\"the-path-budget\">The path budget</h3>\n<p>Two sets, not one. Acceptance asserts exact equality with both.</p>\n<pre><code class=\"language-json\">{\n  &quot;allowed_existing&quot;: [&quot;packages/&lt;pkg&gt;/src/&lt;file&gt;.ts&quot;, &quot;packages/&lt;pkg&gt;/package.json&quot;],\n  &quot;allowed_new&quot;: [&quot;packages/&lt;pkg&gt;/src/&lt;file&gt;.test.ts&quot;],\n  &quot;permitted_generated&quot;: [&quot;packages/&lt;pkg&gt;/dist/**&quot;],\n  &quot;forbidden_acts&quot;: [\n    &quot;writing outside the lane&quot;,\n    &quot;process-wide signals&quot;,\n    &quot;transfer, commit, push or publication&quot;,\n    &quot;account, billing or visibility changes&quot;,\n    &quot;live-provider calls&quot;\n  ],\n  &quot;on_breach&quot;: &quot;stop the child, report the extra path, re-enter the budget before continuing&quot;\n}\n</code></pre>\n<p>A path that was allowed and never touched is a finding, not a rounding error: either the change\nwas smaller than the map said, or something was not done.</p>\n<h3 id=\"a-frozen-install-record\">A frozen-install record</h3>\n<p>The evidence that separates a real clean install from a reused tree. Half of it is written\n<em>before</em> the command runs.</p>\n<pre><code class=\"language-json\">{\n  &quot;pre&quot;: {\n    &quot;argv&quot;: [&quot;&lt;package-manager&gt;&quot;, &quot;install&quot;, &quot;--frozen-lockfile&quot;],\n    &quot;cwd&quot;: &quot;&lt;lane root&gt;&quot;,\n    &quot;env_paths&quot;: { &quot;HOME&quot;: &quot;&lt;scratch home&gt;&quot;, &quot;STORE_DIR&quot;: &quot;&lt;scratch store&gt;&quot; },\n    &quot;node_modules_present&quot;: false,\n    &quot;store_entries&quot;: 0,\n    &quot;inputs&quot;: { &quot;&lt;lock file&gt;&quot;: &quot;&lt;sha256&gt;&quot;, &quot;&lt;workspace file&gt;&quot;: &quot;&lt;sha256&gt;&quot; }\n  },\n  &quot;post&quot;: {\n    &quot;exit&quot;: 0,\n    &quot;projects&quot;: 7,\n    &quot;packages_added&quot;: 1184,\n    &quot;lock_unchanged&quot;: true,\n    &quot;all_inputs_unchanged&quot;: true\n  }\n}\n</code></pre>\n<p><code>env_paths</code> carries paths, never values of credentials. A record naming a secret&#39;s <em>variable</em> is\nfine; a record carrying its value is a leak with a schema.</p>\n<h3 id=\"a-gate-result\">A gate result</h3>\n<p>One per gate, each labelled with what it proves.</p>\n<pre><code class=\"language-json\">{\n  &quot;gate&quot;: &quot;focused-tests&quot;,\n  &quot;proves&quot;: &quot;current source against the attached dependency tree&quot;,\n  &quot;does_not_prove&quot;: &quot;a clean install, or an external consumer&quot;,\n  &quot;argv&quot;: [&quot;node&quot;, &quot;node_modules/&lt;runner&gt;/&lt;entry&gt;&quot;, &quot;run&quot;, &quot;&lt;path&gt;&quot;],\n  &quot;tests&quot;: 325, &quot;passed&quot;: 325, &quot;failed&quot;: 0, &quot;pending&quot;: 0,\n  &quot;live_provider_calls&quot;: false,\n  &quot;parsed_from&quot;: &quot;runner json output&quot;\n}\n</code></pre>\n<p>Totals are parsed from the runner&#39;s own machine-readable output. A total read out of a child&#39;s\nprose is a quotation, and quotations survive runs that failed.</p>\n<h3 id=\"a-reviewer-report\">A reviewer report</h3>\n<p>One per axis. The reviewer fails closed when the hashes it was given no longer match.</p>\n<pre><code class=\"language-json\">{\n  &quot;axis&quot;: &quot;contract-and-data&quot;,\n  &quot;source_pins&quot;: { &quot;&lt;path&gt;&quot;: &quot;&lt;sha256&gt;&quot; },\n  &quot;pins_match_at_review_time&quot;: true,\n  &quot;wrote_only_in&quot;: &quot;&lt;reviewer scratch dir&gt;&quot;,\n  &quot;findings&quot;: [\n    { &quot;severity&quot;: &quot;blocking|non-blocking&quot;, &quot;path&quot;: &quot;&lt;path&gt;&quot;, &quot;claim&quot;: &quot;...&quot;, &quot;evidence&quot;: &quot;...&quot; }\n  ],\n  &quot;executed_compiled_output&quot;: false\n}\n</code></pre>\n<p><code>executed_compiled_output</code> is load-bearing: a reviewer that ran a build directory it did not\nrebuild or hash-verify produced a harness result, not a product verdict.</p>\n<h3 id=\"the-static-scan-classification\">The static-scan classification</h3>\n<p>Raw hits are not findings. Every hit gets a classification, and the run does not finish while any\nhit is unclassified.</p>\n<pre><code class=\"language-json\">{\n  &quot;files_scanned&quot;: 2985,\n  &quot;raw_hits&quot;: 74,\n  &quot;classified_hits&quot;: [\n    {\n      &quot;file&quot;: &quot;&lt;path&gt;&quot;,\n      &quot;pattern&quot;: &quot;&lt;detector name&gt;&quot;,\n      &quot;offset&quot;: 7692,\n      &quot;classification&quot;: &quot;credential-shaped fixture in a redaction test; not a live credential&quot;\n    }\n  ],\n  &quot;unclassified_hits&quot;: 0\n}\n</code></pre>\n<p>Three classifications cover nearly everything: a credential-shaped fixture, a documentation\nexample, and a real credential — the last of which stops the run rather than being recorded in\nit. Keep the offsets: they let the next reader re-derive the classification instead of trusting\nthis one.</p>\n<h3 id=\"the-final-verdict\">The final verdict</h3>\n<p>The artifact the run is judged by. Its fields stay separate on purpose — collapsing them is how a\nscoped acceptance turns into an unscoped one.</p>\n<pre><code class=\"language-json\">{\n  &quot;status&quot;: &quot;technically-accepted-in-isolated-sandbox&quot;,\n  &quot;scope&quot;: &quot;&lt;what was validated, in one sentence&gt;&quot;,\n  &quot;candidate&quot;: {\n    &quot;lane&quot;: &quot;&lt;lane root&gt;&quot;,\n    &quot;git_metadata&quot;: false,\n    &quot;changed_paths&quot;: [&quot;...&quot;],\n    &quot;added_paths&quot;: [&quot;...&quot;],\n    &quot;removed_paths&quot;: [],\n    &quot;source_pins&quot;: { &quot;&lt;path&gt;&quot;: &quot;&lt;sha256&gt;&quot; }\n  },\n  &quot;authorization&quot;: {\n    &quot;frozen_install&quot;: true,\n    &quot;live_provider_call&quot;: false,\n    &quot;transfer&quot;: false,\n    &quot;publication&quot;: false,\n    &quot;account_change&quot;: false,\n    &quot;billing_change&quot;: false\n  },\n  &quot;gates&quot;: { &quot;typecheck&quot;: {}, &quot;build&quot;: {}, &quot;focused&quot;: {}, &quot;full&quot;: {}, &quot;downstream&quot;: {} },\n  &quot;reviews&quot;: [{ &quot;axis&quot;: &quot;...&quot;, &quot;blocking_findings&quot;: 0 }],\n  &quot;process_failures&quot;: [&quot;a reviewer exhausted its turns; its report was recovered by resuming the same session for synthesis only&quot;],\n  &quot;residual_risks&quot;: [{ &quot;risk&quot;: &quot;...&quot;, &quot;settled_by&quot;: &quot;&lt;the gate that would settle it&gt;&quot; }],\n  &quot;skipped_gates&quot;: [{ &quot;gate&quot;: &quot;live-provider acceptance&quot;, &quot;why&quot;: &quot;no authorization&quot;, &quot;needs&quot;: &quot;explicit approval and a funded account&quot; }],\n  &quot;not_authorized_by_this_verdict&quot;: [&quot;transfer&quot;, &quot;commit&quot;, &quot;push&quot;, &quot;publication&quot;, &quot;signing&quot;]\n}\n</code></pre>\n<p><code>process_failures</code> and <code>residual_risks</code> are the two fields most often quietly dropped, and the\ntwo a later reader most needs. A turn-limit failure does not make good code bad; leaving it out\nmakes a run look cleaner than it was.</p>\n","words":859},{"path":"references/handoff-bundle.md","slug":"handoff-bundle","title":"The handoff bundle","body":"# The handoff bundle\n\nA handoff document is not a handoff. The next agent — or you, a week later, after the scratch\ndirectory is gone — cannot re-run a paragraph. What transfers is **state**: the lanes, the\nartifacts, the evidence, the boundaries, a manifest over all of it, and a verifier that proves\nthe bundle is intact before anyone trusts a word of it.\n\nThis is the shape that survived a real unattended run. Use it whenever an isolated run ends\nwithout landing, which is most of them.\n\n## Every lane is separate, and labelled by its acceptance state\n\nThe single most common failure is a backup that preserves the good lane and silently drops the\nothers. Three months later the accepted candidate is there and the half-finished work that\nexplains it is not.\n\n| Lane | What it holds | Why it must stay separate |\n|---|---|---|\n| Accepted candidate | The bytes a verdict was issued over | The only lane a later run may build on without re-validating |\n| Working, not accepted | Work that runs but never earned a verdict | It looks identical to the accepted lane from the outside, and is not |\n| Dirty working checkout | Uncommitted work in the real repository | It has no reflog. Losing it is unrecoverable, and it usually overlaps the candidate |\n| External-repository deltas | Changes made in other repositories | They are invisible to this repository's history entirely |\n| Local workflow changes | Skills, scripts and tooling improved during the run | The lesson that made the run work leaves with the machine otherwise |\n\nEach lane keeps its own status capture and its own patch — for a git checkout, the status output\nand a binary patch of the working tree; for a copied lane, the file inventory and the manifest.\nLabel each one with its acceptance state in the bundle's own README, not in a commit message.\n\n## What the bundle contains\n\n```text\nREADME.md                  what this is, and the one command that verifies it\nPICKUP_PROMPT.md           the exact prompt the next agent starts from\nMANIFEST.sha256            every file in the bundle, hashed\nverify-bundle.(py|mjs)     the verifier: manifest, required files, lane counts, forbidden state\ndocs/HANDOFF.md            orientation: mission, constraints, what works, what failed, what is next\ndocs/DECISIONS.md          decisions taken, with the evidence each rests on\nsnapshots/<lane>/          one directory per lane above\nevidence/<stage>/          the verdict artifacts, gate records and scan classifications\nartifacts/                 runnable output — a built application, a package tarball — each hashed\n```\n\nTwo rules about what must **not** be in it: no copied dependency trees or build caches (they are\nlarge, they are derivable, and they make the manifest meaningless), and nothing a secret scan has\nnot classified. Run the scan over the bundle, not over the product lane, before it is pushed\nanywhere.\n\n## The verifier\n\nThe bundle carries a script that checks it. It is deliberately cheap — no installs, no provider\ncalls — because its job is to answer one question before any real work starts: *is this bundle\nwhat it says it is?*\n\nIt checks:\n\n- every file in `MANIFEST.sha256` exists and hashes to the recorded value;\n- the required files are present (the prompt, the orientation document, each lane, the final\n  verdict artifact for each stage);\n- the lane inventories match their recorded file counts;\n- the final source pins in the verdict artifact match the accepted lane's current bytes;\n- forbidden state is absent — no dependency trees, no caches, no unclassified scan hits.\n\nA bundle whose verifier fails is not a starting point. Repair it, or record which check fails and\nwhy, in the README, before anyone builds on it.\n\n## The authority boundaries travel with it\n\nThe next agent inherits the work and none of the permissions. Write the boundaries into the\nbundle explicitly: which acts the previous run was authorized to perform, which it performed,\nand which are still gated. Landing, pushing, publishing, visibility changes, signing, another\nauthenticated provider run, an account or credit purchase, remote-host changes, and any\nprovisioning or spend each get a line. Credentials are never requested in the handoff and never\nstored in it — the bundle names the variable, and the person supplies the value.\n\n## The pickup prompt\n\nOne file, written for an agent that has no memory of the run: the bundle's location, the commit\nor revision to read it at, the verifier to run first, the lane to build on, the boundaries above,\nand the single next task. A pickup prompt that says \"continue the work\" hands over nothing; one\nthat names the lane, the verifier and the next gate hands over everything.\n\nKeep it honest about what is unfinished. A bundle that reads as complete, and is not, costs the\nnext agent the time it takes to discover that — which is exactly the time the bundle existed to\nsave.\n","bodyHtml":"<h2 id=\"the-handoff-bundle\">The handoff bundle</h2>\n<p>A handoff document is not a handoff. The next agent — or you, a week later, after the scratch\ndirectory is gone — cannot re-run a paragraph. What transfers is <strong>state</strong>: the lanes, the\nartifacts, the evidence, the boundaries, a manifest over all of it, and a verifier that proves\nthe bundle is intact before anyone trusts a word of it.</p>\n<p>This is the shape that survived a real unattended run. Use it whenever an isolated run ends\nwithout landing, which is most of them.</p>\n<h3 id=\"every-lane-is-separate-and-labelled-by-its-acceptance-state\">Every lane is separate, and labelled by its acceptance state</h3>\n<p>The single most common failure is a backup that preserves the good lane and silently drops the\nothers. Three months later the accepted candidate is there and the half-finished work that\nexplains it is not.</p>\n<table>\n<thead>\n<tr>\n<th>Lane</th>\n<th>What it holds</th>\n<th>Why it must stay separate</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Accepted candidate</td>\n<td>The bytes a verdict was issued over</td>\n<td>The only lane a later run may build on without re-validating</td>\n</tr>\n<tr>\n<td>Working, not accepted</td>\n<td>Work that runs but never earned a verdict</td>\n<td>It looks identical to the accepted lane from the outside, and is not</td>\n</tr>\n<tr>\n<td>Dirty working checkout</td>\n<td>Uncommitted work in the real repository</td>\n<td>It has no reflog. Losing it is unrecoverable, and it usually overlaps the candidate</td>\n</tr>\n<tr>\n<td>External-repository deltas</td>\n<td>Changes made in other repositories</td>\n<td>They are invisible to this repository&#39;s history entirely</td>\n</tr>\n<tr>\n<td>Local workflow changes</td>\n<td>Skills, scripts and tooling improved during the run</td>\n<td>The lesson that made the run work leaves with the machine otherwise</td>\n</tr>\n</tbody></table>\n<p>Each lane keeps its own status capture and its own patch — for a git checkout, the status output\nand a binary patch of the working tree; for a copied lane, the file inventory and the manifest.\nLabel each one with its acceptance state in the bundle&#39;s own README, not in a commit message.</p>\n<h3 id=\"what-the-bundle-contains\">What the bundle contains</h3>\n<pre><code class=\"language-text\">README.md                  what this is, and the one command that verifies it\nPICKUP_PROMPT.md           the exact prompt the next agent starts from\nMANIFEST.sha256            every file in the bundle, hashed\nverify-bundle.(py|mjs)     the verifier: manifest, required files, lane counts, forbidden state\ndocs/HANDOFF.md            orientation: mission, constraints, what works, what failed, what is next\ndocs/DECISIONS.md          decisions taken, with the evidence each rests on\nsnapshots/&lt;lane&gt;/          one directory per lane above\nevidence/&lt;stage&gt;/          the verdict artifacts, gate records and scan classifications\nartifacts/                 runnable output — a built application, a package tarball — each hashed\n</code></pre>\n<p>Two rules about what must <strong>not</strong> be in it: no copied dependency trees or build caches (they are\nlarge, they are derivable, and they make the manifest meaningless), and nothing a secret scan has\nnot classified. Run the scan over the bundle, not over the product lane, before it is pushed\nanywhere.</p>\n<h3 id=\"the-verifier\">The verifier</h3>\n<p>The bundle carries a script that checks it. It is deliberately cheap — no installs, no provider\ncalls — because its job is to answer one question before any real work starts: <em>is this bundle\nwhat it says it is?</em></p>\n<p>It checks:</p>\n<ul>\n<li>every file in <code>MANIFEST.sha256</code> exists and hashes to the recorded value;</li>\n<li>the required files are present (the prompt, the orientation document, each lane, the final\nverdict artifact for each stage);</li>\n<li>the lane inventories match their recorded file counts;</li>\n<li>the final source pins in the verdict artifact match the accepted lane&#39;s current bytes;</li>\n<li>forbidden state is absent — no dependency trees, no caches, no unclassified scan hits.</li>\n</ul>\n<p>A bundle whose verifier fails is not a starting point. Repair it, or record which check fails and\nwhy, in the README, before anyone builds on it.</p>\n<h3 id=\"the-authority-boundaries-travel-with-it\">The authority boundaries travel with it</h3>\n<p>The next agent inherits the work and none of the permissions. Write the boundaries into the\nbundle explicitly: which acts the previous run was authorized to perform, which it performed,\nand which are still gated. Landing, pushing, publishing, visibility changes, signing, another\nauthenticated provider run, an account or credit purchase, remote-host changes, and any\nprovisioning or spend each get a line. Credentials are never requested in the handoff and never\nstored in it — the bundle names the variable, and the person supplies the value.</p>\n<h3 id=\"the-pickup-prompt\">The pickup prompt</h3>\n<p>One file, written for an agent that has no memory of the run: the bundle&#39;s location, the commit\nor revision to read it at, the verifier to run first, the lane to build on, the boundaries above,\nand the single next task. A pickup prompt that says &quot;continue the work&quot; hands over nothing; one\nthat names the lane, the verifier and the next gate hands over everything.</p>\n<p>Keep it honest about what is unfinished. A bundle that reads as complete, and is not, costs the\nnext agent the time it takes to discover that — which is exactly the time the bundle existed to\nsave.</p>\n","words":816}],"body":"# Validate an isolated change\n\nA change that must not reach the trusted tree until it is accepted needs two things an\nordinary review does not provide: a lane that is *physically* separate, and a verdict built\nfrom evidence the parent gathered itself.\n\nBoth fail quietly. A sandbox sharing a dependency tree, a build output or a state directory\nwith the trusted candidate is one command away from proving the wrong bytes — and it proves\nthem in green. A builder's report that the suite passes is a claim about a tree the reader\nnever saw: it survives a run that was stopped and restarted, an implementation written before\nits test, and a file created outside the declared budget, because each of those still produces\na passing line. Nothing in the report distinguishes them, and nothing in the diff does either.\n\nThis skill owns the isolation and the evidence ladder that turns a claim into a verdict: the\nphysical lane, the frozen source identity, the path budget, the gate order the parent runs\nitself, the independent review axes, the classification of every scan hit, and the bundle the\nrun is handed over in. It does not own the change, and it does not own landing it.\n\n**Technical acceptance is not landing authority.** A verdict of accepted-in-sandbox says the\nbytes in the lane pass the gates named in the artifact. Transfer into the real repository, a\ncommit or push, a publication, a visibility change, signing, an account or billing change and\na live-provider call are separate acts, each requiring its own authorization, and none of them\nis implied by a green run.\n\n### What this skill does not own\n\n| The job | Whose it is | What this skill does with it |\n|---|---|---|\n| Landing a change in the repository, with its touch-set budget and regression gate ladder | `land-complex-change` | Runs *before* it, in a tree that is not the repository. The budget here bounds a scratch lane and a sandbox verdict; that skill's budget bounds a diff that is actually landing. Hands over the accepted candidate and its pins. |\n| What a proposed change would affect | `blast-area` | Consumes its map as the budget's source where one exists; re-enters it when the budget is breached. Maps nothing itself. |\n| Which repository the work belongs in, and the tree it happens in | `work-in-external-repo` | Takes the located repository and base ref as given; the scratch lane is a copy, not a worktree. |\n| Dispatching children and seeing what they did | `agent-lifecycle` | Consumes it. Reconciliation at the end of a run is its evidence, not a guess from exit metadata. |\n| What the reader is told while the run is going | `report-progress` | Supplies the rows; owns none of the shape. |\n| The review loop on a pull request | `request-blocks-review` | Different gate. The reviews here run inside the sandbox on a candidate that has no pull request yet. |\n| Answering a question about the code | `investigate-codebase` | Delegates every search that is not a hash, a gate or a budget check. |\n| Placing a credential, or any live authenticated call | `secure-credential-setup` | Places none. A skipped live gate is recorded as skipped, never as passed. |\n| The note and the release that follow acceptance | `release-notes`, `publish-agent-skill` | Neither is reached by this skill. Acceptance is an input to them. |\n\n## When to Use\n\n- Implementation must stay physically separate from a trusted candidate or main checkout while\n  still earning a reviewable verdict.\n- A delegated agent will write the code and report on itself, and that report is the only thing\n  standing between the work and acceptance.\n- The scratch tree has no git, so revision identity has to come from file hashes.\n- The run is long or unattended, and whoever picks it up next will not have watched it.\n- Several candidate lanes exist at once — accepted, working-but-unaccepted, dirty local — and\n  they must not be allowed to blur into one another.\n- An accepted candidate exists only in a scratch directory that a reboot would take with it.\n\nDo not use it for a change you are landing in the repository now: that is `land-complex-change`\nin a worktree. Do not use it as a general test-running procedure — everything here is overhead\npaid for the physical separation. Do not use it to decide *what* a change should touch; that\nquestion belongs to `blast-area` and arrives here as an input.\n\n## Prerequisites\n\n1. **A scratch location outside the trusted tree**, on the same filesystem semantics as the\n   project, with room for a full source copy.\n   **Complete when:** the path exists, is not inside the trusted checkout, and is not a\n   directory another run is using.\n2. **The project's own deterministic commands** — typecheck, build, focused tests, full suite,\n   downstream consumers — each runnable without network access where that is claimed.\n   **Complete when:** each command is written down as exact argv, and the ones that need\n   network or credentials are marked as such before anything runs.\n3. **The budget's source.** A blast map, or the user's explicit statement of what may change.\n   **Complete when:** the allowed existing paths and allowed new paths are two separate lists,\n   both written before dispatch.\n4. **Durable storage for the handoff bundle** — a private remote, or a location no cleanup of\n   the scratch tree can reach.\n   **Complete when:** the destination is named and is not inside the lane it preserves.\n5. **The authority boundaries, written down.** Which acts this run may perform and which it may\n   only prepare.\n   **Complete when:** transfer, commit, push, publication, visibility, signing, account,\n   billing and live-provider calls each carry a yes or a no, agreed before the run.\n\n## Procedure\n\n1. **Create a physical lane and freeze the source identity.** Copy product source into a new\n   scratch directory, excluding dependency trees and generated output. Reattach dependencies\n   read-only only after the copy. Write a baseline SHA-256 manifest of every source and config\n   file the change could affect, and record the deliberate omissions — compiler caches, lock\n   files you will regenerate — beside it, so a later reader can tell an omission from a miss.\n   Verify the trusted lane against its own manifest immediately: a baseline written after the\n   first edit is a description of the edit.\n   **Complete when:** the two lanes share no product source, state or generated output, and\n   both verify against manifests written before any change.\n\n2. **Declare the budget before dispatch.** Record the allowed existing paths, the allowed new\n   paths, the generated artifacts that are permitted, the acts that are forbidden regardless,\n   and the rule for what happens on breach — which is to stop, not to absorb. Changed files and\n   new files are separate sets, and acceptance later requires **exact equality** with both, not\n   a subset: a file that was permitted and never touched is a signal too.\n   **Complete when:** both sets exist in the artifact, and the breach rule is written where the\n   implementer reads it.\n\n3. **Pin the implementer's contract.** One implementation owner gets the lane path, the exact\n   path budget, the test commands, the vertical TDD sequence, the report schema, and the\n   explicit prohibitions: no other sandbox, no trusted tree, no publication, no process-wide\n   signals, no account changes. Require an early checkpoint and the final report before the\n   last few turns, so a turn limit costs the report rather than the run.\n   **Complete when:** the contract names the lane, both path sets, the commands and the schema,\n   and the owner has acknowledged the breach rule.\n\n4. **Enforce vertical TDD at the filesystem boundary.** For each behaviour:\n   **one assertion-level RED → minimal GREEN → the whole affected test file GREEN**, before the\n   next test exists. Watch the product hashes, not the prose: the evidence that a test was\n   written first is that the implementation file's hash was unchanged when the test failed. If\n   an owner batches several REDs, or writes implementation before its RED, stop that exact\n   child, discard the entire invalid delta back to independently pinned bytes, and restart.\n   Do not keep the discarded implementation as a reference — a mechanism that lets tests-after\n   become tests-first by retyping is not a mechanism.\n   **Complete when:** every behaviour has an observed RED at a hash where its implementation did\n   not yet exist, and each GREEN covers the whole affected file.\n\n5. **Use exact rollback, not reconstruction.** In a lane with no git, restore a stopped agent's\n   work only from a mirror whose hashes match the pre-attempt manifest, and verify every\n   restored hash before resuming. A cleanup helper that exits without writing is a failed\n   cleanup even when it prints a correct plan. The parent may perform byte-for-byte cleanup of a\n   dead agent's lane: rollback is orchestration, not implementation.\n   **Complete when:** the restored lane matches the pre-attempt manifest hash for hash, and the\n   restore is recorded as a process event rather than as product history.\n\n6. **Run the parent's gates yourself, in dependency order.** Typecheck and build the changed\n   package, then its focused tests, then its full suite, then downstream consumers. Never accept\n   a report in place of a run. In a copied workspace, do not approve an implicit reinstall that\n   would purge the dependency tree you attached: preserve that result, and for source\n   verification call the already-installed binaries directly:\n\n   ```sh\n   env -u NODE_PATH node node_modules/typescript/bin/tsc -p tsconfig.json --noEmit\n   env -u NODE_PATH node node_modules/vitest/vitest.mjs run\n   ```\n\n   Label that as source verification. It proves the current source against an existing\n   dependency tree, and it is not a clean install or an external-consumer gate.\n   **Complete when:** every gate's exit status, totals and invocation are recorded by the\n   parent, and each is labelled with what it does and does not prove.\n\n7. **Isolate build outputs from the budget.** A production build that writes caches or bundles\n   into the product lane has widened it. Copy source into a verification scratch tree, link only\n   the candidate's dependency tree read-only, build there, and compare the consumed package or\n   compiled output by hash. A green build that grew the lane is a side effect, not a clean gate.\n   **Complete when:** the product lane's post-build hashes still match the declared budget, or\n   the extra paths were declared before the build ran.\n\n8. **Review on independent axes.** Split contract and data validation from runtime, composition\n   and import boundaries. Give each reviewer the candidate patch, the source pins, the budget,\n   the static-scan findings and a strict report schema; require them to write only inside their\n   own scratch directory and to fail closed on any source-hash mismatch. A reviewer whose tests\n   execute compiled output needs a scratch rebuild or a hash-verified build directory —\n   otherwise a source-only mirror produces a harness failure wearing a product verdict's clothes.\n   **Complete when:** each axis reports against source hashes that match the post-review pinning\n   in step 10, and no reviewer wrote inside the product lane.\n\n9. **Recover evidence without rewriting history.** When a reviewer finishes its probes but runs\n   out of turns before its report, keep the terminal failure and resume that same\n   evidence-bearing session for synthesis only — no new probes in the synthesis turn. If the\n   session cannot be resumed, start a fresh reviewer on the same narrow axis and record the\n   unavailable resume as a process failure. A recovered report never converts the original run\n   into a successful one.\n   **Complete when:** the artifact holds both the process failure and the recovered evidence, as\n   two separate facts.\n\n10. **Aggregate only after post-review pinning.** Re-hash every allowed path, verify the trusted\n    lane still matches its baseline, assert exact changed and new sets, parse test totals\n    programmatically rather than reading them, compare exports for additions and removals, and\n    **classify every static-scan hit**: a scan with unclassified hits is an unfinished scan, not\n    a clean one. Read each artifact before accessing its keys; after any schema correction, rerun\n    the complete assertion set from the beginning rather than patching the run in place.\n    See [the evidence contract](references/evidence-contract.md) for the shapes.\n    **Complete when:** every assertion ran against post-review hashes in one uninterrupted pass,\n    and the scan reports zero unclassified hits.\n\n11. **Make the verdict explicit.** *Technically accepted in isolated sandbox* requires exact\n    source pins, the parent's own gates, independent review, and no unresolved blocking finding.\n    Keep separate fields for process failures, residual risks, skipped live or authenticated\n    gates, clean-consumer status, and isolation and landing authorization. A fixture tracer\n    proves the adapter path, not provider authentication or live model behaviour; say which one\n    you ran.\n    **Complete when:** a reader can tell, from the artifact alone, what was exercised, what was\n    skipped, and what the verdict does not authorize.\n\n12. **Hand the run over as state, not prose.** A handoff document is not a handoff. Preserve, in\n    durable storage outside the lane, every lane as its own labelled thing — accepted candidate,\n    working-but-unaccepted work, dirty or external checkouts — plus the runnable artifacts, the\n    evidence, the authority boundaries, a manifest over all of it, and a verifier the next agent\n    runs before trusting any of it. Dirty product work and external-repository deltas are lanes\n    too: a backup that silently drops them reads as complete and is not.\n    See [the handoff bundle](references/handoff-bundle.md).\n    **Complete when:** the bundle's verifier passes from a fresh clone of it, and every lane in\n    it is labelled with its acceptance state.\n\n13. **Close the run.** Reconcile each child against both terminal-result evidence and OS\n    liveness — null exit metadata alone is not terminal proof. Reap only the sessions this run\n    owns, update the task record, and write the run record outside the repository under test.\n    Name the final artifact, and name what the run could not see.\n    **Complete when:** no child is left unreconciled, and the closing report names the final\n    artifact path and the run's blind spots.\n\n## Usage Examples\n\n```text\nValidate this change in a sandbox. Copy the source into a scratch lane, hash-pin it before you\ntouch anything, and tell me the allowed existing paths and allowed new paths before you dispatch\na builder. If anything lands outside that set, stop and show me — do not fold it in.\n```\n\n```text\nThe builder reports 1042 passing. Do not take that. Re-hash its lane, run the typecheck, build,\nfocused tests and full suite yourself, and show me the totals you parsed from the runner rather\nthan from its message. If the suite ran with a live provider key, that number is contaminated —\nrerun it with the live tests excluded and say so.\n```\n\n```text\nThis runs overnight and I will not be watching. Before you finish, write the handoff bundle:\nthe accepted lane, the work that is not accepted, the dirty checkout, the artifacts, the\nevidence and a manifest, in the private remote — not in the scratch directory. Then verify the\nbundle from a fresh clone and tell me the verifier's output.\n```\n\n```text\nAccepted in the sandbox is all I am asking for. Do not transfer it into the repository, do not\ncommit, push or publish, and do not call a live provider. If a gate needs any of those, record\nit as skipped with the authority it would need.\n```\n\n## Pitfalls\n\n- **A filtered lock regeneration is not importer isolation.** `pnpm --filter <package> install\n  --lockfile-only` can still reconcile every workspace importer. In one run it pulled a\n  pre-existing, unrelated importer graph into the lock; the change would have been attributed to\n  the package under test. Diff the whole lock file, and when it moves something you did not\n  touch, stop and re-enter the budget rather than explaining it away.\n- **A scratch `HOME` changes package-manager resolution.** A Corepack shim may bootstrap or\n  download a package manager again when `HOME` is redirected, which is a network act inside a\n  lane you called offline. Invoke a pinned entrypoint or set an isolated Corepack home, use\n  supported store and XDG paths, and read the installed CLI's own help before adding options —\n  one pnpm version rejects `--state-dir`, and the failed attempt belongs in the evidence.\n- **A frozen-install log without its invocation is incomplete evidence.** Persist, before\n  execution, the exact argv, the non-secret environment paths, the empty dependency-tree and\n  store preconditions, and the input hashes; afterwards, the exit status and the unchanged lock\n  hash. Without them an independent reader cannot separate a real clean install from a reused\n  tree or an implicit bypass.\n- **Inferring an artifact's schema.** A boolean, a count and a list can encode the same fact\n  under incompatible types. Read and normalize before asserting; one verifier that guessed\n  reported a clean result against a schema that did not exist.\n- **Accepting a report path.** A terminal result, a parseable report, matching source hashes and\n  a parent replay are four separate facts, and any one of them can survive a failed run alone.\n- **Calling copied-tree checks a clean install.** Direct binaries prove current source against an\n  existing dependency tree. Saying more than that is how an unproven consumer story ships.\n- **Reusing generated output in review.** Stale build output makes source review and runtime\n  evidence disagree, and the disagreement usually surfaces after acceptance.\n- **Cleaning with broad process signals.** A pattern kill can stop the service under test, and\n  then the lifecycle evidence is about your cleanup rather than the product.\n- **A secret scan with unclassified hits.** Raw hits are not findings. Classify each one —\n  credential-shaped test fixture, documentation example, real credential — and require zero\n  unclassified before any bundle leaves the machine. A scan that \"found 74 hits\" and stopped\n  there tells the next reader nothing and blocks nothing.\n- **Hiding non-blocking residuals behind a pass.** Keep them in the final artifact with the gate\n  that would settle each one. Technical acceptance is scoped, not absolute.\n- **A handoff that is only prose.** The next agent cannot re-run a paragraph. If the bundle has\n  no manifest and no verifier, its first act is to re-derive everything you already proved.\n\n## Verification\n\n- [ ] Trusted and implementation lanes are physically separate, sharing no source, state or\n      generated output.\n- [ ] The baseline manifest and both path sets predate the first edit.\n- [ ] Every behaviour has its own observed RED before implementation, and a GREEN over the whole\n      affected file before the next behaviour.\n- [ ] Invalid partial work was restored to independently pinned bytes, hash for hash.\n- [ ] The parent ran typecheck, build, focused, full and downstream gates itself, in that order.\n- [ ] Generated output stayed outside the product budget, or was declared before the build.\n- [ ] Each review axis matches the post-review source hashes, and no reviewer wrote in the\n      product lane.\n- [ ] The static scan has zero unclassified hits.\n- [ ] Process failures and product findings are separate fields in the artifact.\n- [ ] Clean-install, live-provider, transfer and publication claims appear only where the act was\n      directly exercised and authorized.\n- [ ] The final aggregation was rerun in full after any schema correction.\n- [ ] The handoff bundle exists outside the lane, labels every lane's acceptance state, and its\n      verifier passes from a fresh copy.\n- [ ] The final artifact names the residuals, the isolation state, and the gates that would\n      settle each.\n\nThe run is finished when a reader who saw none of it can say which bytes were validated, which\ngates ran, which did not, and what the verdict does not authorize.\n","bodyHtml":"<h2 id=\"validate-an-isolated-change\">Validate an isolated change</h2>\n<p>A change that must not reach the trusted tree until it is accepted needs two things an\nordinary review does not provide: a lane that is <em>physically</em> separate, and a verdict built\nfrom evidence the parent gathered itself.</p>\n<p>Both fail quietly. A sandbox sharing a dependency tree, a build output or a state directory\nwith the trusted candidate is one command away from proving the wrong bytes — and it proves\nthem in green. A builder&#39;s report that the suite passes is a claim about a tree the reader\nnever saw: it survives a run that was stopped and restarted, an implementation written before\nits test, and a file created outside the declared budget, because each of those still produces\na passing line. Nothing in the report distinguishes them, and nothing in the diff does either.</p>\n<p>This skill owns the isolation and the evidence ladder that turns a claim into a verdict: the\nphysical lane, the frozen source identity, the path budget, the gate order the parent runs\nitself, the independent review axes, the classification of every scan hit, and the bundle the\nrun is handed over in. It does not own the change, and it does not own landing it.</p>\n<p><strong>Technical acceptance is not landing authority.</strong> A verdict of accepted-in-sandbox says the\nbytes in the lane pass the gates named in the artifact. Transfer into the real repository, a\ncommit or push, a publication, a visibility change, signing, an account or billing change and\na live-provider call are separate acts, each requiring its own authorization, and none of them\nis implied by a green run.</p>\n<h4 id=\"what-this-skill-does-not-own\">What this skill does not own</h4>\n<table>\n<thead>\n<tr>\n<th>The job</th>\n<th>Whose it is</th>\n<th>What this skill does with it</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Landing a change in the repository, with its touch-set budget and regression gate ladder</td>\n<td><code>land-complex-change</code></td>\n<td>Runs <em>before</em> it, in a tree that is not the repository. The budget here bounds a scratch lane and a sandbox verdict; that skill&#39;s budget bounds a diff that is actually landing. Hands over the accepted candidate and its pins.</td>\n</tr>\n<tr>\n<td>What a proposed change would affect</td>\n<td><code>blast-area</code></td>\n<td>Consumes its map as the budget&#39;s source where one exists; re-enters it when the budget is breached. Maps nothing itself.</td>\n</tr>\n<tr>\n<td>Which repository the work belongs in, and the tree it happens in</td>\n<td><code>work-in-external-repo</code></td>\n<td>Takes the located repository and base ref as given; the scratch lane is a copy, not a worktree.</td>\n</tr>\n<tr>\n<td>Dispatching children and seeing what they did</td>\n<td><code>agent-lifecycle</code></td>\n<td>Consumes it. Reconciliation at the end of a run is its evidence, not a guess from exit metadata.</td>\n</tr>\n<tr>\n<td>What the reader is told while the run is going</td>\n<td><code>report-progress</code></td>\n<td>Supplies the rows; owns none of the shape.</td>\n</tr>\n<tr>\n<td>The review loop on a pull request</td>\n<td><code>request-blocks-review</code></td>\n<td>Different gate. The reviews here run inside the sandbox on a candidate that has no pull request yet.</td>\n</tr>\n<tr>\n<td>Answering a question about the code</td>\n<td><code>investigate-codebase</code></td>\n<td>Delegates every search that is not a hash, a gate or a budget check.</td>\n</tr>\n<tr>\n<td>Placing a credential, or any live authenticated call</td>\n<td><code>secure-credential-setup</code></td>\n<td>Places none. A skipped live gate is recorded as skipped, never as passed.</td>\n</tr>\n<tr>\n<td>The note and the release that follow acceptance</td>\n<td><code>release-notes</code>, <code>publish-agent-skill</code></td>\n<td>Neither is reached by this skill. Acceptance is an input to them.</td>\n</tr>\n</tbody></table>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>Implementation must stay physically separate from a trusted candidate or main checkout while\nstill earning a reviewable verdict.</li>\n<li>A delegated agent will write the code and report on itself, and that report is the only thing\nstanding between the work and acceptance.</li>\n<li>The scratch tree has no git, so revision identity has to come from file hashes.</li>\n<li>The run is long or unattended, and whoever picks it up next will not have watched it.</li>\n<li>Several candidate lanes exist at once — accepted, working-but-unaccepted, dirty local — and\nthey must not be allowed to blur into one another.</li>\n<li>An accepted candidate exists only in a scratch directory that a reboot would take with it.</li>\n</ul>\n<p>Do not use it for a change you are landing in the repository now: that is <code>land-complex-change</code>\nin a worktree. Do not use it as a general test-running procedure — everything here is overhead\npaid for the physical separation. Do not use it to decide <em>what</em> a change should touch; that\nquestion belongs to <code>blast-area</code> and arrives here as an input.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li><strong>A scratch location outside the trusted tree</strong>, on the same filesystem semantics as the\nproject, with room for a full source copy.\n<strong>Complete when:</strong> the path exists, is not inside the trusted checkout, and is not a\ndirectory another run is using.</li>\n<li><strong>The project&#39;s own deterministic commands</strong> — typecheck, build, focused tests, full suite,\ndownstream consumers — each runnable without network access where that is claimed.\n<strong>Complete when:</strong> each command is written down as exact argv, and the ones that need\nnetwork or credentials are marked as such before anything runs.</li>\n<li><strong>The budget&#39;s source.</strong> A blast map, or the user&#39;s explicit statement of what may change.\n<strong>Complete when:</strong> the allowed existing paths and allowed new paths are two separate lists,\nboth written before dispatch.</li>\n<li><strong>Durable storage for the handoff bundle</strong> — a private remote, or a location no cleanup of\nthe scratch tree can reach.\n<strong>Complete when:</strong> the destination is named and is not inside the lane it preserves.</li>\n<li><strong>The authority boundaries, written down.</strong> Which acts this run may perform and which it may\nonly prepare.\n<strong>Complete when:</strong> transfer, commit, push, publication, visibility, signing, account,\nbilling and live-provider calls each carry a yes or a no, agreed before the run.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><p><strong>Create a physical lane and freeze the source identity.</strong> Copy product source into a new\nscratch directory, excluding dependency trees and generated output. Reattach dependencies\nread-only only after the copy. Write a baseline SHA-256 manifest of every source and config\nfile the change could affect, and record the deliberate omissions — compiler caches, lock\nfiles you will regenerate — beside it, so a later reader can tell an omission from a miss.\nVerify the trusted lane against its own manifest immediately: a baseline written after the\nfirst edit is a description of the edit.\n<strong>Complete when:</strong> the two lanes share no product source, state or generated output, and\nboth verify against manifests written before any change.</p>\n</li>\n<li><p><strong>Declare the budget before dispatch.</strong> Record the allowed existing paths, the allowed new\npaths, the generated artifacts that are permitted, the acts that are forbidden regardless,\nand the rule for what happens on breach — which is to stop, not to absorb. Changed files and\nnew files are separate sets, and acceptance later requires <strong>exact equality</strong> with both, not\na subset: a file that was permitted and never touched is a signal too.\n<strong>Complete when:</strong> both sets exist in the artifact, and the breach rule is written where the\nimplementer reads it.</p>\n</li>\n<li><p><strong>Pin the implementer&#39;s contract.</strong> One implementation owner gets the lane path, the exact\npath budget, the test commands, the vertical TDD sequence, the report schema, and the\nexplicit prohibitions: no other sandbox, no trusted tree, no publication, no process-wide\nsignals, no account changes. Require an early checkpoint and the final report before the\nlast few turns, so a turn limit costs the report rather than the run.\n<strong>Complete when:</strong> the contract names the lane, both path sets, the commands and the schema,\nand the owner has acknowledged the breach rule.</p>\n</li>\n<li><p><strong>Enforce vertical TDD at the filesystem boundary.</strong> For each behaviour:\n<strong>one assertion-level RED → minimal GREEN → the whole affected test file GREEN</strong>, before the\nnext test exists. Watch the product hashes, not the prose: the evidence that a test was\nwritten first is that the implementation file&#39;s hash was unchanged when the test failed. If\nan owner batches several REDs, or writes implementation before its RED, stop that exact\nchild, discard the entire invalid delta back to independently pinned bytes, and restart.\nDo not keep the discarded implementation as a reference — a mechanism that lets tests-after\nbecome tests-first by retyping is not a mechanism.\n<strong>Complete when:</strong> every behaviour has an observed RED at a hash where its implementation did\nnot yet exist, and each GREEN covers the whole affected file.</p>\n</li>\n<li><p><strong>Use exact rollback, not reconstruction.</strong> In a lane with no git, restore a stopped agent&#39;s\nwork only from a mirror whose hashes match the pre-attempt manifest, and verify every\nrestored hash before resuming. A cleanup helper that exits without writing is a failed\ncleanup even when it prints a correct plan. The parent may perform byte-for-byte cleanup of a\ndead agent&#39;s lane: rollback is orchestration, not implementation.\n<strong>Complete when:</strong> the restored lane matches the pre-attempt manifest hash for hash, and the\nrestore is recorded as a process event rather than as product history.</p>\n</li>\n<li><p><strong>Run the parent&#39;s gates yourself, in dependency order.</strong> Typecheck and build the changed\npackage, then its focused tests, then its full suite, then downstream consumers. Never accept\na report in place of a run. In a copied workspace, do not approve an implicit reinstall that\nwould purge the dependency tree you attached: preserve that result, and for source\nverification call the already-installed binaries directly:</p>\n<pre><code class=\"language-sh\">env -u NODE_PATH node node_modules/typescript/bin/tsc -p tsconfig.json --noEmit\nenv -u NODE_PATH node node_modules/vitest/vitest.mjs run\n</code></pre>\n<p>Label that as source verification. It proves the current source against an existing\ndependency tree, and it is not a clean install or an external-consumer gate.\n<strong>Complete when:</strong> every gate&#39;s exit status, totals and invocation are recorded by the\nparent, and each is labelled with what it does and does not prove.</p>\n</li>\n<li><p><strong>Isolate build outputs from the budget.</strong> A production build that writes caches or bundles\ninto the product lane has widened it. Copy source into a verification scratch tree, link only\nthe candidate&#39;s dependency tree read-only, build there, and compare the consumed package or\ncompiled output by hash. A green build that grew the lane is a side effect, not a clean gate.\n<strong>Complete when:</strong> the product lane&#39;s post-build hashes still match the declared budget, or\nthe extra paths were declared before the build ran.</p>\n</li>\n<li><p><strong>Review on independent axes.</strong> Split contract and data validation from runtime, composition\nand import boundaries. Give each reviewer the candidate patch, the source pins, the budget,\nthe static-scan findings and a strict report schema; require them to write only inside their\nown scratch directory and to fail closed on any source-hash mismatch. A reviewer whose tests\nexecute compiled output needs a scratch rebuild or a hash-verified build directory —\notherwise a source-only mirror produces a harness failure wearing a product verdict&#39;s clothes.\n<strong>Complete when:</strong> each axis reports against source hashes that match the post-review pinning\nin step 10, and no reviewer wrote inside the product lane.</p>\n</li>\n<li><p><strong>Recover evidence without rewriting history.</strong> When a reviewer finishes its probes but runs\nout of turns before its report, keep the terminal failure and resume that same\nevidence-bearing session for synthesis only — no new probes in the synthesis turn. If the\nsession cannot be resumed, start a fresh reviewer on the same narrow axis and record the\nunavailable resume as a process failure. A recovered report never converts the original run\ninto a successful one.\n<strong>Complete when:</strong> the artifact holds both the process failure and the recovered evidence, as\ntwo separate facts.</p>\n</li>\n<li><p><strong>Aggregate only after post-review pinning.</strong> Re-hash every allowed path, verify the trusted\nlane still matches its baseline, assert exact changed and new sets, parse test totals\nprogrammatically rather than reading them, compare exports for additions and removals, and\n<strong>classify every static-scan hit</strong>: a scan with unclassified hits is an unfinished scan, not\na clean one. Read each artifact before accessing its keys; after any schema correction, rerun\nthe complete assertion set from the beginning rather than patching the run in place.\nSee <a href=\"references/evidence-contract.md\">the evidence contract</a> for the shapes.\n<strong>Complete when:</strong> every assertion ran against post-review hashes in one uninterrupted pass,\nand the scan reports zero unclassified hits.</p>\n</li>\n<li><p><strong>Make the verdict explicit.</strong> <em>Technically accepted in isolated sandbox</em> requires exact\nsource pins, the parent&#39;s own gates, independent review, and no unresolved blocking finding.\nKeep separate fields for process failures, residual risks, skipped live or authenticated\ngates, clean-consumer status, and isolation and landing authorization. A fixture tracer\nproves the adapter path, not provider authentication or live model behaviour; say which one\nyou ran.\n<strong>Complete when:</strong> a reader can tell, from the artifact alone, what was exercised, what was\nskipped, and what the verdict does not authorize.</p>\n</li>\n<li><p><strong>Hand the run over as state, not prose.</strong> A handoff document is not a handoff. Preserve, in\ndurable storage outside the lane, every lane as its own labelled thing — accepted candidate,\nworking-but-unaccepted work, dirty or external checkouts — plus the runnable artifacts, the\nevidence, the authority boundaries, a manifest over all of it, and a verifier the next agent\nruns before trusting any of it. Dirty product work and external-repository deltas are lanes\ntoo: a backup that silently drops them reads as complete and is not.\nSee <a href=\"references/handoff-bundle.md\">the handoff bundle</a>.\n<strong>Complete when:</strong> the bundle&#39;s verifier passes from a fresh clone of it, and every lane in\nit is labelled with its acceptance state.</p>\n</li>\n<li><p><strong>Close the run.</strong> Reconcile each child against both terminal-result evidence and OS\nliveness — null exit metadata alone is not terminal proof. Reap only the sessions this run\nowns, update the task record, and write the run record outside the repository under test.\nName the final artifact, and name what the run could not see.\n<strong>Complete when:</strong> no child is left unreconciled, and the closing report names the final\nartifact path and the run&#39;s blind spots.</p>\n</li>\n</ol>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Validate this change in a sandbox. Copy the source into a scratch lane, hash-pin it before you\ntouch anything, and tell me the allowed existing paths and allowed new paths before you dispatch\na builder. If anything lands outside that set, stop and show me — do not fold it in.\n</code></pre>\n<pre><code class=\"language-text\">The builder reports 1042 passing. Do not take that. Re-hash its lane, run the typecheck, build,\nfocused tests and full suite yourself, and show me the totals you parsed from the runner rather\nthan from its message. If the suite ran with a live provider key, that number is contaminated —\nrerun it with the live tests excluded and say so.\n</code></pre>\n<pre><code class=\"language-text\">This runs overnight and I will not be watching. Before you finish, write the handoff bundle:\nthe accepted lane, the work that is not accepted, the dirty checkout, the artifacts, the\nevidence and a manifest, in the private remote — not in the scratch directory. Then verify the\nbundle from a fresh clone and tell me the verifier&#39;s output.\n</code></pre>\n<pre><code class=\"language-text\">Accepted in the sandbox is all I am asking for. Do not transfer it into the repository, do not\ncommit, push or publish, and do not call a live provider. If a gate needs any of those, record\nit as skipped with the authority it would need.\n</code></pre>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li><strong>A filtered lock regeneration is not importer isolation.</strong> <code>pnpm --filter &lt;package&gt; install --lockfile-only</code> can still reconcile every workspace importer. In one run it pulled a\npre-existing, unrelated importer graph into the lock; the change would have been attributed to\nthe package under test. Diff the whole lock file, and when it moves something you did not\ntouch, stop and re-enter the budget rather than explaining it away.</li>\n<li><strong>A scratch <code>HOME</code> changes package-manager resolution.</strong> A Corepack shim may bootstrap or\ndownload a package manager again when <code>HOME</code> is redirected, which is a network act inside a\nlane you called offline. Invoke a pinned entrypoint or set an isolated Corepack home, use\nsupported store and XDG paths, and read the installed CLI&#39;s own help before adding options —\none pnpm version rejects <code>--state-dir</code>, and the failed attempt belongs in the evidence.</li>\n<li><strong>A frozen-install log without its invocation is incomplete evidence.</strong> Persist, before\nexecution, the exact argv, the non-secret environment paths, the empty dependency-tree and\nstore preconditions, and the input hashes; afterwards, the exit status and the unchanged lock\nhash. Without them an independent reader cannot separate a real clean install from a reused\ntree or an implicit bypass.</li>\n<li><strong>Inferring an artifact&#39;s schema.</strong> A boolean, a count and a list can encode the same fact\nunder incompatible types. Read and normalize before asserting; one verifier that guessed\nreported a clean result against a schema that did not exist.</li>\n<li><strong>Accepting a report path.</strong> A terminal result, a parseable report, matching source hashes and\na parent replay are four separate facts, and any one of them can survive a failed run alone.</li>\n<li><strong>Calling copied-tree checks a clean install.</strong> Direct binaries prove current source against an\nexisting dependency tree. Saying more than that is how an unproven consumer story ships.</li>\n<li><strong>Reusing generated output in review.</strong> Stale build output makes source review and runtime\nevidence disagree, and the disagreement usually surfaces after acceptance.</li>\n<li><strong>Cleaning with broad process signals.</strong> A pattern kill can stop the service under test, and\nthen the lifecycle evidence is about your cleanup rather than the product.</li>\n<li><strong>A secret scan with unclassified hits.</strong> Raw hits are not findings. Classify each one —\ncredential-shaped test fixture, documentation example, real credential — and require zero\nunclassified before any bundle leaves the machine. A scan that &quot;found 74 hits&quot; and stopped\nthere tells the next reader nothing and blocks nothing.</li>\n<li><strong>Hiding non-blocking residuals behind a pass.</strong> Keep them in the final artifact with the gate\nthat would settle each one. Technical acceptance is scoped, not absolute.</li>\n<li><strong>A handoff that is only prose.</strong> The next agent cannot re-run a paragraph. If the bundle has\nno manifest and no verifier, its first act is to re-derive everything you already proved.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> Trusted and implementation lanes are physically separate, sharing no source, state or\ngenerated output.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The baseline manifest and both path sets predate the first edit.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every behaviour has its own observed RED before implementation, and a GREEN over the whole\naffected file before the next behaviour.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Invalid partial work was restored to independently pinned bytes, hash for hash.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The parent ran typecheck, build, focused, full and downstream gates itself, in that order.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Generated output stayed outside the product budget, or was declared before the build.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Each review axis matches the post-review source hashes, and no reviewer wrote in the\nproduct lane.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The static scan has zero unclassified hits.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Process failures and product findings are separate fields in the artifact.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Clean-install, live-provider, transfer and publication claims appear only where the act was\ndirectly exercised and authorized.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The final aggregation was rerun in full after any schema correction.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The handoff bundle exists outside the lane, labels every lane&#39;s acceptance state, and its\nverifier passes from a fresh copy.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The final artifact names the residuals, the isolation state, and the gates that would\nsettle each.</li>\n</ul>\n<p>The run is finished when a reader who saw none of it can say which bytes were validated, which\ngates ran, which did not, and what the verdict does not authorize.</p>\n","outline":["When to Use","Prerequisites","Procedure","Usage Examples","Pitfalls","Verification"],"words":3253}
