[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RPPDR7NSWKE82JN03DRFA":3,"skill-same:01M71RPPDR7NSWKE82JN03DRFA":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M71RPPDR7NSWKE82JN03DRFA","garrison-adversarial-review",null,"Decorrelated fresh-context code review - a FRESH-CONTEXT Anthropic session (no access to the implementer's notes, exploration, or rationale) reviews the current diff against ONLY the slice's acceptance criteria and the spec\u002Fplan sections it cites, gathers its own evidence (runs build\u002Ftypecheck\u002Flint\u002Ftests itself rather than trusting reported exit codes), and returns a structured approve\u002Fneeds-work verdict. In a garrison build, real findings go back to garrison-implement; standalone, report the verdict and findings. NOT Claude's own same-context review (use garrison-review) and NOT the cross-model Codex checkpoint (use garrison-codex-checkpoint). Invoked by the Garrison run engine as its fresh-context review step, or standalone only when the user explicitly asks for it. Do NOT auto-invoke this skill from task inference - Garrison decides when its phase skills run.","gongiskhan\u002Fagent-garrison","gongiskhan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1997392?v=4","01M71RKMFR53TKXE308C22QTNZ","01M71RKMJA57KZHNDCBNKTWZRR",1,"MIT","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fgarrison-skills\u002F.apm\u002Fskills\u002Fgarrison-adversarial-review\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"garrison adversarial review","adversarial","adversarial review","review","needs","code","when","access","invoke","acceptance","auto","only","code review","model","skills run","implementer","exploration","standalone","reviews","back","2026-11-10 13:02:02",false,"---\nname: garrison-adversarial-review\ndescription: Decorrelated fresh-context code review - a FRESH-CONTEXT Anthropic session (no access to the implementer's notes, exploration, or rationale) reviews the current diff against ONLY the slice's acceptance criteria and the spec\u002Fplan sections it cites, gathers its own evidence (runs build\u002Ftypecheck\u002Flint\u002Ftests itself rather than trusting reported exit codes), and returns a structured approve\u002Fneeds-work verdict. In a garrison build, real findings go back to garrison-implement; standalone, report the verdict and findings. NOT Claude's own same-context review (use garrison-review) and NOT the cross-model Codex checkpoint (use garrison-codex-checkpoint). Invoked by the Garrison run engine as its fresh-context review step, or standalone only when the user explicitly asks for it. Do NOT auto-invoke this skill from task inference - Garrison decides when its phase skills run.\n---\n\n# garrison-adversarial-review\n\n## Policy-read preamble (soft - D5\u002FD12)\n\nAt the start of every invocation, look for the compiled Orchestrator policy at\n`~\u002F.garrison\u002Forchestrator\u002Fpolicy.json` (or `$GARRISON_POLICY_PATH`).\n\n- **Policy present** (a Garrison run): it is the single authority. This skill\n  carries NO model\u002Feffort pins - its execution parameters come from the policy\n  matrix cell for its phase (`matrix[\u003Cphase>][\u003Ctier>]`), and its gate duties\n  from the bindable phase-skill contract (the Orchestrator fitting's\n  PHASE_SKILL_CONTRACT.md): do the phase's work in the run context handed to you\n  (runDir, card, phase), write the phase's gate-status entry under the runDir,\n  and print the phase's `GATE \u003Cphase>: \u003Cverdict>` line before choosing the next\n  list.\n- **Policy absent** (standalone, any repo): proceed with the caller-supplied\n  context and sensible defaults - NEVER stop. Report to the caller rather than\n  writing gate-status\u002Frun artifacts, and skip any board\u002Frun-engine steps.\n\n\nDecorrelated adversarial review — decorrelation comes from **fresh context**, not a different vendor. A reviewer that has never seen the implementer's session, notes, or rationale re-derives whether the change is correct from the acceptance criteria, the spec, and the diff alone, and backs every finding with evidence it gathered itself. The single per-slice review gate of a garrison build, and a standalone second-opinion reviewer.\n\n> **The one per-slice review (Part 8.1).** The same-model `garrison-review` and this fresh-context review collapsed into a single per-slice review — this one. Once the deterministic wall (build\u002Ftypecheck\u002Flint\u002Ftests) plus the fresh-context and Codex passes existed, the same-model pass's unique catches were ~zero, so it was retired from the pipeline (it survives standalone). Every slice's review is therefore this one: **fresh-context** (no implementer notes, rationale, or exploration), **Fable-pinned** (`model: fable`), and **evidence-mandatory** (the reviewer runs the objective checks itself and never trusts a reported exit code).\n\n## Why fresh context, not cross-vendor\nThe old per-slice gate ran a genuinely different vendor (OpenAI Codex), but at a low\u002Fcheap effort scoped to a single diff it mostly re-derived opinions Claude already had — documented weak-model churn (`~\u002F.claude\u002Fskills\u002Fgarrison\u002Freferences\u002Fdecisions.md`). **Decorrelation comes from what the reviewer is allowed to see, not which company trained it**: a session with a genuinely fresh context window — no implementer notes, no \"why I did it this way\" — catches a different class of bug (an implicit shared assumption between the code and its own author) than a second vendor at low effort ever did. Cross-vendor checking still has real value, so it is kept — repositioned to **`garrison-codex-checkpoint`**, a small number of high-effort, narrowly-scoped checks over security-critical surfaces, run once in the final phase rather than as a per-slice rubber stamp.\n\n## What the fresh-context reviewer receives — and must NOT receive\n- **Receives ONLY:** the slice's acceptance criteria (from FLOW_PLAN), the spec\u002Fplan sections the acceptance cites, and the diff (`git --no-pager diff \u003CBASE>...HEAD` + uncommitted).\n- **Must NOT receive:** the implementer's session transcript, its exploration notes, its self-check note, or any \"here's why I did it this way\" rationale. When garrison spawns this as a subagent\u002Fworkflow, build the spawn prompt from ONLY the acceptance + spec + diff — never paste anything from the implementer's context. This is the entire mechanism of decorrelation; skipping it collapses the gate back into a same-context echo of `garrison-review`.\n\n## It gathers its OWN evidence — opinions are not findings\nAn assertion with no evidence behind it is not a finding. Before writing any verdict:\n1. Read the diff and the acceptance\u002Fspec sections it needs.\n2. **Run the objective checks itself** — build, typecheck, lint, and the slice's own committed test suite (`garrison-test`'s tests) — rather than trusting the implementer's self-reported exit codes. A decorrelated gate re-derives the evidence, it does not inherit it.\n3. For each concern, either (a) cite the exact spec\u002Facceptance section it violates, or (b) attach the failing command + its output. A concern with neither is dropped before it reaches the verdict — \"this looks off\" is not admissible.\n\n## Security-boundary review — moved to the opt-in security-review phase\nThis review no longer folds a security-boundary rubric into every slice. That\nrubric (authorization on every touched path, injection surfaces, secret\nhandling, tenant\u002Forg scoping, input validation at the boundary) now lives in\nthe opt-in **garrison-security-review** phase, enabled per project\n(`projects.\u003Clabel>.security_sensitive` in the policy) or by explicit flow\ninclusion - not fired automatically on a \"security-boundary\" heuristic. The\nuniversal deterministic secrets\u002FSAST floor (`securityWall` in garrison-test)\nstill runs on every slice regardless of profile.\n\n## Verdict\n- **`approve`** — no material, evidence-backed finding survives.\n- **`needs-work`** — at least one material finding, each backed by a spec citation or failing evidence. **Sends the slice back to `garrison-implement`** (consumes the slice's 5-attempt retry ceiling); re-review after the fix.\n\nThere is no separate round budget or size-based skip here (that machinery existed to bound a cheap, low-effort external model's churn). This gate runs at a fixed high effort on every slice; the outer loop is exactly the slice's existing implement → review → re-review cycle, bounded by the same 5-attempt ceiling as every other gate.\n\n## Scope\n- **In a garrison build:** review the SLICE diff only — capture `BASE=$(git rev-parse HEAD)` before the slice, review `git diff $BASE...HEAD` + uncommitted.\n- **Standalone:** review the diff\u002FPR\u002Frange the user names (default: uncommitted + last commit).\n\n## Loop role + output\n- **In a garrison build:** report findings; **real findings send the slice back to `garrison-implement`** to fix (garrison owns the retry ceiling). Re-review after a fix.\n- **Standalone:** report the verdict + findings and stop — do not auto-fix unless asked.\n\nPrint in the lead context: `GATE adversarial-review: \u003Capprove|needs-work> — \u003Csummary>`. Distinct from `garrison-review` (Claude's own same-context review) and `garrison-codex-checkpoint` (the cross-model, final-phase check).\n\n## Durable record (gate-status.json — schema: `~\u002F.claude\u002Fskills\u002Fgarrison\u002Fassets\u002Fgate-status.example.json`)\n```jsonc\n\"adversarialReview\": {\n  \"verdict\": \"approve\",           \u002F\u002F approve | needs-work\n  \"by\": \"claude-fable-5\",         \u002F\u002F the fresh-context model actually used\n  \"evidence\": [\"npm test: 12 passed\", \"npm run typecheck: 0 errors\"],\n  \"at\": \"\u003Ciso>\",\n  \"findings\": []                  \u002F\u002F each cites a spec\u002Facceptance section or attaches a failing command+output\n}\n```\n","# garrison-adversarial-review\n\n## Policy-read preamble (soft - D5\u002FD12)\n\nAt the start of every invocation, look for the compiled Orchestrator policy at\n`~\u002F.garrison\u002Forchestrator\u002Fpolicy.json` (or `$GARRISON_POLICY_PATH`).\n\n- **Policy present** (a Garrison run): it is the single authority. This skill\n  carries NO model\u002Feffort pins - its execution parameters come from the policy\n  matrix cell for its phase (`matrix[\u003Cphase>][\u003Ctier>]`), and its gate duties\n  from the bindable phase-skill contract (the Orchestrator fitting's\n  PHASE_SKILL_CONTRACT.md): do the phase's work in the run context handed to you\n  (runDir, card, phase), write the phase's gate-status entry under the runDir,\n  and print the phase's `GATE \u003Cphase>: \u003Cverdict>` line before choosing the next\n  list.\n- **Policy absent** (standalone, any repo): proceed with the caller-supplied\n  context and sensible defaults - NEVER stop. Report to the caller rather than\n  writing gate-status\u002Frun artifacts, and skip any board\u002Frun-engine steps.\n\n\nDecorrelated adversarial review — decorrelation comes from **fresh context**, not a different vendor. A reviewer that has never seen the implementer's session, notes, or rationale re-derives whether the change is correct from the acceptance criteria, the spec, and the diff alone, and backs every finding with evidence it gathered itself. The single per-slice review gate of a garrison build, and a standalone second-opinion reviewer.\n\n> **The one per-slice review (Part 8.1).** The same-model `garrison-review` and this fresh-context review collapsed into a single per-slice review — this one. Once the deterministic wall (build\u002Ftypecheck\u002Flint\u002Ftests) plus the fresh-context and Codex passes existed, the same-model pass's unique catches were ~zero, so it was retired from the pipeline (it survives standalone). Every slice's review is therefore this one: **fresh-context** (no implementer notes, rationale, or exploration), **Fable-pinned** (`model: fable`), and **evidence-mandatory** (the reviewer runs the objective checks itself and never trusts a reported exit code).\n\n## Why fresh context, not cross-vendor\nThe old per-slice gate ran a genuinely different vendor (OpenAI Codex), but at a low\u002Fcheap effort scoped to a single diff it mostly re-derived opinions Claude already had — documented weak-model churn (`~\u002F.claude\u002Fskills\u002Fgarrison\u002Freferences\u002Fdecisions.md`). **Decorrelation comes from what the reviewer is allowed to see, not which company trained it**: a session with a genuinely fresh context window — no implementer notes, no \"why I did it this way\" — catches a different class of bug (an implicit shared assumption between the code and its own author) than a second vendor at low effort ever did. Cross-vendor checking still has real value, so it is kept — repositioned to **`garrison-codex-checkpoint`**, a small number of high-effort, narrowly-scoped checks over security-critical surfaces, run once in the final phase rather than as a per-slice rubber stamp.\n\n## What the fresh-context reviewer receives — and must NOT receive\n- **Receives ONLY:** the slice's acceptance criteria (from FLOW_PLAN), the spec\u002Fplan sections the acceptance cites, and the diff (`git --no-pager diff \u003CBASE>...HEAD` + uncommitted).\n- **Must NOT receive:** the implementer's session transcript, its exploration notes, its self-check note, or any \"here's why I did it this way\" rationale. When garrison spawns this as a subagent\u002Fworkflow, build the spawn prompt from ONLY the acceptance + spec + diff — never paste anything from the implementer's context. This is the entire mechanism of decorrelation; skipping it collapses the gate back into a same-context echo of `garrison-review`.\n\n## It gathers its OWN evidence — opinions are not findings\nAn assertion with no evidence behind it is not a finding. Before writing any verdict:\n1. Read the diff and the acceptance\u002Fspec sections it needs.\n2. **Run the objective checks itself** — build, typecheck, lint, and the slice's own committed test suite (`garrison-test`'s tests) — rather than trusting the implementer's self-reported exit codes. A decorrelated gate re-derives the evidence, it does not inherit it.\n3. For each concern, either (a) cite the exact spec\u002Facceptance section it violates, or (b) attach the failing command + its output. A concern with neither is dropped before it reaches the verdict — \"this looks off\" is not admissible.\n\n## Security-boundary review — moved to the opt-in security-review phase\nThis review no longer folds a security-boundary rubric into every slice. That\nrubric (authorization on every touched path, injection surfaces, secret\nhandling, tenant\u002Forg scoping, input validation at the boundary) now lives in\nthe opt-in **garrison-security-review** phase, enabled per project\n(`projects.\u003Clabel>.security_sensitive` in the policy) or by explicit flow\ninclusion - not fired automatically on a \"security-boundary\" heuristic. The\nuniversal deterministic secrets\u002FSAST floor (`securityWall` in garrison-test)\nstill runs on every slice regardless of profile.\n\n## Verdict\n- **`approve`** — no material, evidence-backed finding survives.\n- **`needs-work`** — at least one material finding, each backed by a spec citation or failing evidence. **Sends the slice back to `garrison-implement`** (consumes the slice's 5-attempt retry ceiling); re-review after the fix.\n\nThere is no separate round budget or size-based skip here (that machinery existed to bound a cheap, low-effort external model's churn). This gate runs at a fixed high effort on every slice; the outer loop is exactly the slice's existing implement → review → re-review cycle, bounded by the same 5-attempt ceiling as every other gate.\n\n## Scope\n- **In a garrison build:** review the SLICE diff only — capture `BASE=$(git rev-parse HEAD)` before the slice, review `git diff $BASE...HEAD` + uncommitted.\n- **Standalone:** review the diff\u002FPR\u002Frange the user names (default: uncommitted + last commit).\n\n## Loop role + output\n- **In a garrison build:** report findings; **real findings send the slice back to `garrison-implement`** to fix (garrison owns the retry ceiling). Re-review after a fix.\n- **Standalone:** report the verdict + findings and stop — do not auto-fix unless asked.\n\nPrint in the lead context: `GATE adversarial-review: \u003Capprove|needs-work> — \u003Csummary>`. Distinct from `garrison-review` (Claude's own same-context review) and `garrison-codex-checkpoint` (the cross-model, final-phase check).\n\n## Durable record (gate-status.json — schema: `~\u002F.claude\u002Fskills\u002Fgarrison\u002Fassets\u002Fgate-status.example.json`)\n```jsonc\n\"adversarialReview\": {\n  \"verdict\": \"approve\",           \u002F\u002F approve | needs-work\n  \"by\": \"claude-fable-5\",         \u002F\u002F the fresh-context model actually used\n  \"evidence\": [\"npm test: 12 passed\", \"npm run typecheck: 0 errors\"],\n  \"at\": \"\u003Ciso>\",\n  \"findings\": []                  \u002F\u002F each cites a spec\u002Facceptance section or attaches a failing command+output\n}\n```\n",{"name":5,"description":7},"main","31458d7e0e08a7b3494c27bf2b912ed41c87a138","fittings\u002Fseed\u002Fgarrison-skills\u002F.apm\u002Fskills\u002Fgarrison-adversarial-review",0,"https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison","https:\u002F\u002Fgongiskhan.github.io\u002Fagent-garrison\u002F","https:\u002F\u002Fgithub.com\u002Fgongiskhan","2026-11-07 05:27:23",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add gongiskhan\u002Fagent-garrison --skill garrison-adversarial-review",{"tool":57,"command":58},"bunx","bunx skills add gongiskhan\u002Fagent-garrison --skill garrison-adversarial-review",{"tool":60,"command":61},"pnpm","pnpm dlx skills add gongiskhan\u002Fagent-garrison --skill garrison-adversarial-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fgarrison-skills\u002F.apm\u002Fskills\u002Fgarrison-adversarial-review\u002FSKILL.md",true,[],[66,78,88,99,111,136],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M71RTFA0HD83YBE1TE7DCE6B","pinned-helper","An owned skill the human has pinned so the Improver must not touch it.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fpinned-helper\u002FSKILL.md",[],[73,74,75,76,77],"pinned helper","helper","human","touch","it",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":38},"01M71RTDKBG0WQHPHKFZKFWDHF","legacy-helper","A rarely used helper kept around from an earlier workflow.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Flegacy-helper\u002FSKILL.md",[],[85,74,86,87],"Legacy","legacy helper","workflow",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":38},"01M71RTCC6ZVVJ9MHHESXPHWA6","human-notes","A human-authored skill not deployed by APM (loose, not in the lock).","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fhuman-notes\u002FSKILL.md",[],[95,75,96,97,98],"notes","human notes","lock","apm",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":38},"01M71RTB83ZP6VK6XH19Z93FAC","garrison-helper","Helps compose and station Garrison Fittings into Faculty role slots.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fimprover\u002Fskills\u002Fgarrison-helper\u002FSKILL.md",[],[74,106,107,108,109,110],"garrison","garrison helper","slots","role","compose",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":38},"01M71RT6MBGJC4QQZBGHF4H1M8","walkthrough","Record a short, narrated, captioned video walkthrough that proves a finished coding task and shows how it behaves, then self-verify the video via vision on extracted frames and publish it as one scrubbable Tailscale link. Use after completing a change\u002Ffix\u002Ffeature on a web project (Next.js\u002FReact etc.) when the user wants visual proof of work, a demo of a user flow, or to avoid manually retesting and watching a long raw screen recording. Triggers on requests like \"record a walkthrough\", \"show me it working\", \"make a demo video of this\", \"prove the feature\", or finishing a UI\u002Froute\u002Fform\u002FAPI change worth demonstrating. Not for walking through a full from-scratch project build.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Fwalkthrough\u002F.apm\u002Fskills\u002Fwalkthrough\u002FSKILL.md",[],[113,24,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135],"project","project build","api","react","change","demo video","publish","recording","Video","show me","work","short","fix","show","route","me","next","self",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M71RT54T0SQS42XEP5FVQ28K","Trello","Manage tasks via Trello REST API.","https:\u002F\u002Fgithub.com\u002Fgongiskhan\u002Fagent-garrison\u002Fblob\u002Fmain\u002Ffittings\u002Fseed\u002Ftrello\u002F.apm\u002Fskills\u002Ftrello\u002FSKILL.md",[],[143,144,145,120,146,147,148],"trello","tasks","REST","manage","rest api","via"]