verified-agent-output
Skill1 starsChanged 7 months agoMITView on GitHub
The Verified Agent Output (VAO) framework — six layers of machine-mediated verification of agent claims. Closes the class of "agent silently does the wrong thing" failures the plugin has been patching one at a time. Schema v7 + 5 deterministic tool verdicts + adversarial reviewer pairings + run-history shape detection + Skill-invocation audit.
- Deletes or force-pushes
In this repository60 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- api-design-from-frontendSkill
- architect-team-pipelineSkill
- bug-fix-pipelineSkill
- cartographer-teamSkill
- claude-design-importSkill
- claude-md-efficiencySkill
- closeoutSkill
- common-pipeline-conventionsSkill
- contract-first-parallelismSkill
- coverage-mappingSkill
- data-annotationsSkill
- data-dictionarySkill
- data-engineering-explorationSkill
- data-eng-pipelineSkill
- data-lineage-mappingSkill
- delivery-manifestSkill
- design-fidelity-mappingSkill
- dev-api-integration-testingSkill
- diagnostic-research-teamSkill
- documentation-currencySkill
- domain-research-teamSkill
- dynamic-value-discoverySkill
- editability-completenessSkill
- email-testingSkill
- endpoint-trace-mappingSkill
- expensive-verification-debuggingSkill
- frontend-route-mappingSkill
- helpdeskSkill
- intake-and-mappingSkill
- interaction-completenessSkill
- interaction-intuitionSkill
- interactive-mockup-discoverySkill
- intuition-map-lifecycleSkill
- mcp-output-contract-designSkill
- mempalace-integrationSkill
- mini-architect-team-pipelineSkill
- phenotype-absorptionSkill
- phenotypesSkill
- playwright-suite-builderSkill
- playwright-user-flowsSkill
- proposal-refinerSkill
- readme-stylingSkill
- reuse-first-designSkill
- root-cause-test-failuresSkill
- structure-optimizationSkill
- team-spawning-and-review-gatesSkill
- test-prod-safety-classifierSkill
- test-run-monitorSkill
- token-compressionSkill
- ux-test-builderSkill
- verification-planningSkill
- visual-fidelity-reconciliationSkill
- visual-to-api-designSkill
- visual-verification-teamSkill
- warehouse-sql-miningSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 114
Every oracle-declared dynamic-value literal (e.g., if the oracle binds Park Family Trust to matter.title, the literal Park Family Trust …
- Distinctive: line 297
Exits 2: when any user request has no matching invocation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verified Agent Output (VAO) — the v2.0.0 structural fix
This skill is the canonical home of the framework that the v1.x discipline patches (v1.4 scope, v1.6 git, v1.7 frontend-fake-data, v1.8 agent-resume) were groping toward. The v1.x fixes all share the same shape — documentation telling the agent NOT to do the wrong thing — and they hit the same ceiling: a hook checks the agent's WORDS are present in the evidence file, not whether the agent's claims are TRUE. v2.0.0 converts each subjective agent judgment call at a critical pipeline moment into a machine-verified objective check.
Why this exists
| v1.x patch | Failure | Documentation said | Hook checked | What was still missing |
| v1.4.0 | Scope-narrowing | "Don't silently narrow scope" | The skill body contains those words | Whether the agent's actual interpretation matched the oracle |
| v1.6.0 | git stash clobbering | "Forbidden ops list" | The agent body contains the rule | Whether the agent actually ran those ops |
| v1.7.0 | Frontend faking missing API | "Don't fake data; surface an SR" | Skill body contains the discipline | Whether the diff actually contains fake data |
| v1.8.0 | Agent stream-timeout | "Wrap dispatch results in resume helper" | Agent body has the section | Whether the orchestrator actually called the wrap helper |
| heirship | "Pixel parity: pass" from source-audit | (no rule existed) | (no check existed) | Whether the rendered DOM actually matches |
| heirship | "Addressed with residual variance" | (no rule existed) | (no check existed) | Whether the user's stated bar was met |
| heirship | "Applied methodology by hand" | (no rule existed) | (no check existed) | Whether the Skill was actually invoked |
In every row the gap is the same shape: machine verification of the specific claim. v2.0.0 ships six layers, each closing one rung of that ladder.
The six layers
Layer 1 — Pre-execution oracle derivation (Phase 0.5 gate)
Position: a new phase inserted between Phase 0 (Detection & Normalization) and Phase 1 (Planning Validation) in every pipeline-driving skill.
Trigger: the requirement contains a parity verb (match, rebuild, mirror, parity, make like, replicate) OR names an oracle codebase / design mockup / reference URL.
Mechanism: a dedicated oracle-deriver agent (opus, read-only) walks the named oracle and produces a structured canonical spec at <workspace>/.architect-team/oracle-spec/<change-name>.json with these top-level fields:
{
"schema_version": 1,
"change_name": "<name>",
"oracle_path": "<absolute path>",
"derived_at": "<ISO 8601 UTC>",
"spec_shape": "component-tree" | "design-map" | "api-contract" | "data-model" | "hybrid",
"tree": [ /* deterministically-ordered structural enumeration */ ],
"elements": [ /* every interactive element with required wiring */ ],
"dynamic_values": [ /* every value with its required data binding */ ],
"chrome_topology": [ /* rendered-DOM mount-level expectations */ ],
"schemas": [ /* every contract surface */ ],
"_human_review_required": true
}The orchestrator surfaces the spec to the user with ONE confirmation gate. On accept, _human_review_required flips false; the spec is frozen and becomes the binding contract every downstream layer measures against. On reject, the user's correction text re-feeds the deriver, which re-derives and re-surfaces; this repeats until the user accepts — there is no fixed cycle cap (per common-pipeline-conventions ## Unbounded solving discipline), and the only pause is waiting on the user's own confirmation, which IS the deliverable.
Why this catches the failures. Scope-narrowing: the agent's interpretation IS the structural enumeration; reframing prose is impossible. Oracle structure mismatch: the structural diff is the FIRST artifact; subsequent work measures against it deterministically.
Layer 2 — Adversarial-reviewer pairing (extends Phase 3)
Position: concurrent with every Phase 3 teammate dispatch. The producer-cannot-be-its-own-checker pattern (v0.9.13) scales from "is the work done" to "does the work exhibit the failure-mode the task-shape is prone to."
Task-shape taxonomy (computed at Phase 2 spawn-brief time):
| Task shape | Triggered by | Adversarial role assigned | Tool invoked |
parity-verb | Frozen oracle spec referenced by the task | oracle-divergence-hunter | verify-oracle-match |
backend-dep | Frontend task referencing a pending-backend or missing-api-for-frontend-element SR | fake-data-hunter | verify-no-fake-data |
shared-tree | ANY teammate dispatch (always-on) | git-discipline-hunter | verify-baseline-clean |
dynamic-value | Task touches a designed screen with non-trivial dynamic_values[] | hardcoded-literal-hunter | verify-no-fake-data |
default | None of the above | general-anti-pattern-hunter | (light sweep across 4 shapes) |
The adversarial-reviewer agent is dispatched alongside the teammate, gets access to the teammate's tool-call log + diff, and writes its adversarial_review block into the SAME <cwd>/.architect-team/reviews/<task-id>.json evidence file. The Phase 3 hook (schema v7) requires BOTH independent_review.verdict == "pass" AND adversarial_review.verdict == "pass". The gate opens only when both pass.
Layer 3 — Tool-mediated execution proof (hooks/vao_tools.py)
Deterministic verification tools — 21 as of v3.47.0. Each produces machine-mediated proof; the agent's prose attestation is no longer accepted.
Where each tool is specified. hooks/vao_tools.py is the COMPLETE and authoritative inventory — every tool has a CLI subcommand there, and that file is the one place the full list is guaranteed current. The prose homes are split: the five original v2.0.0 tools are specified in full below, followed by verify-check-can-fail (the 21st). Of the remaining fifteen, common-pipeline-conventions ## Layer 3 gate invocation table (v3.10.0) gives per-phase invocation contracts for exactly four of them (verify-discipline-registry-current, verify-inflight-clarifications-processed, verify-deploy-mandate-satisfied, verify-no-unilateral-override); the rest are specified in their own discipline sections — mostly in common-pipeline-conventions, some in the dedicated discipline skills — where they are written in the verify_x_y FUNCTION spelling rather than the hyphenated CLI name, so grep for both forms when locating one.
verify-oracle-match
Input: built tree dict + frozen oracle-spec dict. Walks both with deterministic normalization (whitespace stripped, dict keys sorted, list ordering preserved). Output:
{
"tool": "verify-oracle-match",
"matched": true|false,
"divergences": [{"path": "App.Header.label", "expected": "...", "actual": "...", "severity": "missing-in-actual"|"extra-in-actual"|"value-mismatch"|"type-mismatch"}],
"match_pct": 0.0-1.0,
"verdict_at": "<ISO 8601 UTC>"
}verify-baseline-clean
Input: teammate's tool-call log path + optional baseline SHA. Greps the log for the six v1.6.0-forbidden git operations (git stash, git reset --hard, git rebase, git commit --amend, git checkout <other-branch>, git clean -f) without firing on legitimate read ops (git status, git log, git diff, git stash list). Output:
{
"tool": "verify-baseline-clean",
"clean": true|false,
"violations": [{"op": "git stash", "args": "...", "line": 7, "ts": "..."}],
"baseline_sha": "<sha or null>",
"verdict_at": "<ISO 8601 UTC>"
}verify-no-fake-data
Input: list of changed files (each with added lines) + the frozen oracle spec's dynamic_values[]. Pattern-matches every line in production code (test files are skipped) against:
- Placeholder names —
John Smith,Jane Doe - Placeholder emails —
john.doe@example.com, etc. - Lorem ipsum
- Placeholder money —
$1,234.00/$1,234.56 - MSW handler signatures —
rest.get(,http.post(, etc. - Playwright route fulfill stubs —
page.route(... .fulfill(...) - Every oracle-declared dynamic-value literal (e.g., if the oracle binds
Park Family Trusttomatter.title, the literalPark Family Trustmust NOT appear in production code)
Each line is matched against EVERY category — a line carrying both a placeholder name AND an MSW handler is flagged for both. Output:
{
"tool": "verify-no-fake-data",
"clean": true|false,
"hits": [{"file": "src/Users.tsx", "line": 0, "match": "John Smith", "category": "placeholder-name"}],
"verdict_at": "<ISO 8601 UTC>"
}verify-every-element
Input: list of built components (each with elements) + the oracle's elements[]. For every oracle-named element, asserts presence in the built tree, non-stub handler, Playwright test driving it. Output:
{
"tool": "verify-every-element",
"coverage": 0.0-1.0,
"missing": [{"selector": "#cancel"}],
"stub": [{"selector": "#submit", "handler": "() => {}"}],
"untested": [{"selector": "#delete"}],
"verdict_at": "<ISO 8601 UTC>"
}verify-rendered-parity (the heirship-amendment tool)
Input: candidate rendered-DOM snapshot + oracle rendered-DOM snapshot + oracle-spec chrome_topology[] + optional screenshot paths + optional pre-computed pixel-diff percentage. Operates on the RENDERED DOM — NOT the source component tree. Catches the canonical heirship case where the SAME element exists in both candidate and oracle source but mounts at DIFFERENT rendered parent paths.
Output:
{
"tool": "verify-rendered-parity",
"matched": true|false,
"divergences": [
{"anchor": "[data-component='TaCrumbs']",
"expected_level": "body > [AppShellLayout] > [AppShellHeader]",
"actual_level": "body > [AppShellLayout] > [AppShellBody] > [data-testid='page-body']",
"severity": "architectural-mismatch"|"missing-in-candidate"|"missing-in-oracle"|"pixel-divergence"}
],
"pixel_diff_pct": 0.0-1.0,
"screenshot_paths": {"oracle": "...", "candidate": "...", "diff": null},
"verdict_at": "<ISO 8601 UTC>"
}The schema v7's visual_fidelity_review field MUST cite this tool's verdict path. An agent's "pixel parity: pass" attestation derived from reading source code is REJECTED at the hook layer — the cited verdict file is the source of truth.
Why this tool is distinct from verify-oracle-match. The latter walks the SOURCE component tree; that's sufficient for schema / API / structural-data parity but BLIND to chrome-level architectural divergences where the element exists in source but at the wrong mount point. The canonical heirship failure: heirship-app-v2's TAMatterDetail.tsx rendered <TaCrumbs /> inside its page body; the oracle (heirship-app-v3) renders the same <TaCrumbs /> inside AppShellHeader. Source audit says matched; rendered audit catches the divergence.
verify-check-can-fail (the 21st tool — v3.47.0)
Module: hooks/vao/check_integrity.py, re-exported through the hooks/vao_tools.py facade with the CLI subcommand verify-check-can-fail. Where the other twenty ask did the work meet the bar, this one asks the rung below: was the check that certified it capable of failing at all? A check that did no work exits 0, and a guard that has never been red is a green light wired to nothing.
Input: a verification artifact with repo_root (every relative cited path resolves against it; the --repo-root CLI flag overrides), a checks[] list of {command, output_path} (optionally exit_code, and optionally tsconfig_path to point the solution-shape predicate at a specific tsconfig), a new_test_files list (the diff-added test files), and red_runs — a DICT keyed by test-file path, each value {command, output_path, observed_failure_excerpt?, red_source?} naming which of the three acceptable red sources produced it (see team-spawning-and-review-gates ## Red-first — a new guard is not evidence until it has been shown to fail). Keys are matched posix-normalized against new_test_files, so a Windows-authored artifact cannot produce a spurious never-shown-red. A cited output_path that does not exist, is not a file, or is 0 bytes is itself a failure — the same missing-evidence-artifact bar the other tools apply. verify_check_can_fail's signature_registry parameter is the extensibility seam: pass a different registry tuple to add runners without touching scan logic.
The REPORTING region (the load-bearing partition). Every signature match and every runner-detection probe consults only the output's REPORTING region — the runner's own report — via reporting_region(). Captured stdout/stderr, live logs, the pytest -rA PASSES section, echoed commands and echoed test ids are excluded, because relayed text can reproduce any reporting shape verbatim: a test that PRINTS collected 0 items must not be able to forge a vacuous verdict, and a passing log quoting a failure line must not be able to forge a red. _RUNNER_OUTPUT_SHAPES widens applicability past command naming, so a wrapper (make test, npm run typecheck) that hides the runner's name but not its output shape is still classified. Output bytes are decoded through _decode_output_bytes: an explicit BOM wins (utf-8-sig / utf-16), else a NUL ratio at or above one third triggers utf-16-le then utf-16-be, else UTF-8 with replacement — closing the UTF-16 evasion.
Terminal verdict wins. _assess_red_output resolves a red run in three explicit modes via _terminal_verdict(): PRESENT — the runner's own stated result decides, full stop; AMBIGUOUS — a capture holding more than one run is REFUSED (ambiguous-multi-run-capture) rather than resolved by first- or last-wins; ABSENT — with no summary at all, matching degrades to the runner's framed failure sections only, never the whole region (verdict-absent-framed-sections-only).
Three severities:
vacuous-check— a cited check's output matches a zero-work signature. The registry is DATA, not scan logic: pytest (collected 0 items,no tests ran), Playwright (no tests found, a0 passedwith zero total), jest / vitest (No test files found,No tests found), plus the repo-state predicate for atsc --noEmitresolved against a solution-shapedtsconfig.json("files": []plus"references"), whose remediation namestsc -bas the required command form. Entries are ANCHORED or count-aware — never a raw bare substring — so a green log that merely echoes a zero-work phrase is not flagged, and the tsc predicate gates on typecheck INTENT (tsc/typecheck/type-checkin the command) withtsc -bexempt, recording an indeterminate note rather than staying silent when no tsconfig resolves. Adding a runner is a data edit plus a fixture.new-guard-never-shown-red— a diff-added test file with no citedred_runblock, or a block whosered_sourceis an unrecognized value. The finding names the path.red-run-not-red— the cited red run does not establish that THIS guard went red. The gap carries areasons[]array, and there are six codes — key onreasons[], not on prose:Reason code Fires when output-missingthe cited output does not exist, is not a file, or is empty no-failure-signaturethe REPORTING region carries no failure evidence for its runner excerpt-not-in-outputthe quoted observed_failure_excerptdoes not appear in that outputoutput-does-not-reference-testthe output names tests, none matching this file (posix-normalized, full path OR basename) excerpt-required-when-indeterminatethe output names NO test, so the excerpt is mandatory and is missing shared-anonymous-redone output naming no test at all is reused across several guards Sharing one capture across guards is normal and accepted when the output NAMES them — correlation ties each guard to the output independently, so nothing is taken on trust. What is refused is the same anonymous capture reused for several guards: an excerpt cannot fix that, since one string satisfies the excerpt rule as many times as it is pasted. Fix by re-running with per-test reporting (drop
--tb=no, add-v, or name the paths), or split into one capture per guard.
Stated boundaries — recorded rather than left for a reader to find. Same-basename correlation: matching accepts the full posix path OR the basename, so with tests/unit/test_guard.py and tests/integration/test_guard.py, an output naming only one satisfies both — prefer captures carrying full paths. Indeterminate correlation: a mandatory excerpt raises the floor but does not make a citation unique; one name-free summary with an excerpt can still be cited for several guards. Exotic encodings: BOM-less UTF-16LE diluted below the NUL floor, a truncated odd-length UTF-16 file, and BOM-less UTF-16BE still evade the decoder; each needs a hand-rolled writer, so the residual is rated low.
{
"tool": "verify-check-can-fail",
"valid": true|false,
"gaps": [
{"severity": "vacuous-check",
"command": "python -m pytest tests/",
"output_path": ".architect-team/checks/<run>-pytest.txt",
"exit_code": 0,
"runner": "pytest",
"matched_signature": "collected 0 items",
"evidence": "...",
"remediation": "..."},
{"severity": "red-run-not-red",
"test_file": "tests/test_new_guard.py",
"output_path": ".architect-team/red-runs/<run>-guard.txt",
"reasons": ["shared-anonymous-red"],
"evidence": "...",
"remediation": "..."}
],
"notes": [
{"kind": "typecheck-tsconfig-indeterminate",
"command": "npm run typecheck",
"evidence": "...",
"remediation": "..."}
],
"checks_scanned": 2,
"new_test_files_count": 1,
"red_runs_cited": 1,
"verdict_at": "<ISO 8601 UTC>"
}notes[] is ALWAYS emitted (empty when there is nothing to record) and is NON-GATING — it carries the indeterminate observations the tool refuses to convert into findings, such as typecheck intent detected with no resolvable tsconfig. A note is a thing the tool could not determine, not a thing it found wrong; treat it as a prompt to supply tsconfig_path, never as a pass.
Two tools whose only prose home is this table
These two carry no discipline section of their own under their CLI name; their one-line contracts live here so no shipped tool is documented nowhere:
| Tool | Module / function | What it gates |
verify-affordance-coverage | hooks/vao_tools.py::verify_affordance_coverage | Every detected dynamic affordance class is addressed — tested, confirmed-stub, or explicitly out-of-scope; an unaddressed class is affordance-not-addressed. Canonical discipline: common-pipeline-conventions ## Dynamic affordance discovery discipline (v2.13.0). |
verify-per-persona-path-coverage | hooks/vao_tools.py::verify_per_persona_path_coverage | Each persona's declared path is actually exercised end-to-end rather than one persona's run standing in for all of them. Canonical discipline: common-pipeline-conventions ## Multi-persona path-coverage discipline (v2.11.0). |
Each tool writes its verdict JSON to <cwd>/.architect-team/vao-verdicts/<task-id>-<tool>.json. The schema v7 *_review field cites the verdict path; the hook reads the cited file at validation time.
Layer 4 — Run-history shape detection (Phase −2)
Position: at the end of Phase −2 (after the bug-classifier emits its verdict, before routing is finalized). .architect-team/run-history/ accumulates one file per completed (or escalated) run. Schema:
{
"schema_version": 1,
"run_id": "<id>",
"completed_at": "<ISO 8601 UTC>",
"verdict": "green" | "red-escalation" | "user-aborted",
"requirement_shape": {
"parity_verbs": ["match"],
"oracle_referenced": true,
"layers_touched": ["frontend", "backend"],
"failure_modes_caught": ["scope-narrowing-attempt-blocked"],
"failure_modes_missed": []
},
"vao_layers_engaged": [1, 2, 3, 4, 5, 6]
}The new vao detect-shape tool reads all history files, computes the shape-fingerprint of the current requirement, and returns the top-3 matching prior runs (cosine similarity over the shape vector). If a matching prior run had verdict: red-escalation AND its failure_modes_caught contains any blocking-mode, the orchestrator surfaces:
"This run's requirement shape matches 2 prior runs that hit blocking failures (run-id X on date Y caught scope-narrowing; run-id Z on date W caught oracle-mismatch). The v2.0.0 layers paired with each prior failure will be engaged for this run by default. Confirm this is the intended interpretation, or describe a different shape."
The user's response either confirms or reshapes the run. The orchestrator records the reshape.
Layer 5 — Structural test enforcement (pytest suite)
The plugin's own pytest suite asserts each VAO layer is wired. Mirrors v1.4 / 1.6 / 1.7's pattern.
- Layer 1:
oracle-deriveragent exists with the right frontmatter; the 3 pipeline bodies invoke it at Phase 0.5 (or analogous). - Layer 2: every teammate spawn brief in the pipeline-body documentation includes
vao_task_shape; the spawn-brief schema inteam-spawning-and-review-gatesincludes adversarial-pairing rules. - Layer 3: each
vao_tools.pytool has positive + negative synthetic-fixture round-trips. - Layer 4:
common-pipeline-conventionshas the## Run-history shape detectionsection; the four shape-vector fields are documented. - Layer 5: schema v7's five required VAO fields are present and the hook blocks
failon each. - Layer 6:
skill_invocation_audit.pycatches the heirship "applied methodology by hand" fixture.
The seven synthetic fixtures under tests/fixtures/vao/ are the canonical positive cases for each failure shape; the pipeline MUST block each.
Layer 6 — Skill-invocation verification (Stop hook)
Position: a new Stop-hook auditor (hooks/skill_invocation_audit.py) that fires at the END of every Claude Code session, AFTER all other Stop-hook handlers.
Why Layer 6 is the FOUNDATION layer: Layers 1-5 all fire WHEN the architect-team-pipeline Skill is INVOKED. If the orchestrator decides to "apply the methodology by hand" rather than invoke the Skill tool — the heirship-app-v2 session where a "do not re-execute" system note about an already-invoked skill was interpreted as a session-wide ban on re-invocation — none of Layers 1-5 fire. Layer 6 detects that case and blocks the run.
Mechanism:
- Parses the session transcript for explicit user Skill-invocation requests in two surface forms:
- Slash-command form: any of the 13 user-invocable command names preceded by
/(case-insensitive). - Prose form: a verb (
use,using,invoke,run,fire,with) + optionalthe+ optional/+ command name.
- Slash-command form: any of the 13 user-invocable command names preceded by
- Reads the session tool-call ledger at
<workspace>/.architect-team/run-history/<run-id>-toolcalls.jsonl. Each line is one tool invocation as{ts, tool, args}. - Cross-checks. For each explicit request, asserts a matching
Skillinvocation appears in the ledger AFTER the request's timestamp. - Writes verdict JSON to
<workspace>/.architect-team/vao-verdicts/<run-id>-skill-invocation-audit.json. - Exits 2 when any user request has no matching invocation.
Schema v7's skill_invocation_audit field MUST cite the verdict path.
The user-precedence rule (canonical home in common-pipeline-conventions/SKILL.md ## Skill-invocation discipline (v2.0.0)): user explicit instructions override "skill already invoked, do not re-execute" system notes. Applying methodology by hand is forbidden — it bypasses every VAO framework layer.
Composition with existing patterns — v2.0.0 ADDS layers, removes none
| Existing gate (v1.x) | What it catches | v2.0.0 changes |
task-reviewer (Phase 3 independent review) | Self-attestation gap on per-task correctness | Unchanged — still required; schema v7 adds adversarial_review ALONGSIDE |
test-completeness-verifier (Phase 3 + 5) | Missing unit / integration / Playwright kinds | Unchanged |
interaction-completeness (Phase 5) | Unwired controls, placeholder pages, hardcoded literals | Unchanged — late net; Layer 1 + 2 catch the same shapes EARLIER |
editability-completeness (Phase 5) | Attributes the UI can't actually edit | Unchanged |
visual-verification-team (Phase 5) | Visual drift vs DESIGN_MAP | Unchanged |
system-architect Master Review Audit (Phase 7) | Coverage-map self-attestation gap | Extended — now also walks VAO verdicts |
documentation-currency audit (Phase 8) | Stale docs after a run | Unchanged |
pipeline-completion-audit.py (Stop hook) | Incomplete-state termination | Extended — now also blocks on missing VAO verdicts + invokes Layer 6 |
The picture: v2.0.0 EARLIER nets catch failures the LATER nets had to catch post-facto. The later nets stay as the regression safety; the earlier nets reduce wasted Phase-3-through-Phase-5 cycles.
Schema v7 — the breaking change
Schema v7 adds five required fields to REQUIRED_EVIDENCE_FIELDS:
REQUIRED_EVIDENCE_FIELDS = {
# v6 fields (unchanged)
"task_id", "spec_review", "quality_review", "real_not_stubbed",
"tests", "demo_artifact", "files_changed", "reuse_compliance",
"visual_fidelity_review", "test_completeness_review",
"integration_testing_review", "ui_interaction_review",
# v7 VAO fields
"oracle_match_review", # cites verify-oracle-match verdict
"baseline_clean_review", # cites verify-baseline-clean verdict
"no_fake_data_review", # cites verify-no-fake-data verdict
"adversarial_review", # Layer 2 — adversarial-reviewer's verdict
"skill_invocation_audit", # cites Layer 6 audit verdict
}Each field accepts EITHER:
- A string in
{'pass', 'n/a', 'fail'}— legacy review-shape. - A dict
{verdict: ..., verdict_path: "<path to cited JSON>"}— canonical v7 shape that cites the on-disk tool verdict.
The hook blocks any evidence file missing any field OR carrying a fail verdict on any field.
The OPTIONAL tool-mediated fields (validated when present)
Four fields are present-only-when-applicable. Each follows the identical contract: absent ⇒ the evidence file is still valid v7 (no gap is attributable to the field), present ⇒ the value MUST be pass / n/a / fail in either the string or the {verdict, verdict_path} dict shape, and a fail BLOCKS completion at the review gate.
| Optional field | Present when | Cites |
interactions_honored_review | the run's oracle spec carries a non-empty interactions[] | the verify-interactions-honored verdict |
live_verification_review | the evidence claims "verified live" | the verify-live-verification-claim verdict |
appearance_scope_review | the slice's diff touches frontend presentation surface | the appearance-scope verdict / trace |
check_integrity_review (v3.47.0) | the slice's diff adds test files, or any verification command is cited as evidence | the verify-check-can-fail verdict path |
check_integrity_review carries the same blocking semantics as the rest: absent is fine, pass / n/a are fine, and a fail value BLOCKS the review gate exactly as a fail on a required field does — the check-integrity finding is escalated and fixed, never marked complete around.
It is OPTIONAL in the schema by design, not by weakness: "the diff adds a test file" is not computable from the evidence file's own content (tests.added >= 1 is always true, and files_changed cannot distinguish an added file from a modified one), so the schema validates it when present and the diff-keyed REQUIREMENT lives one layer out, in the Stop-audit arm _audit_check_integrity (hooks/pipeline-completion-audit.py) which can run git diff --diff-filter=A against the merge base. A pass must cite the verdict path per the citation contract above; the cited verdict file — not the inline summary — is the source of truth.
Red-first is the discipline this field enforces: every NEW test proves it can go red, from one of exactly three named sources, before its green is trusted. The canonical statement lives in team-spawning-and-review-gates ## Red-first — a new guard is not evidence until it has been shown to fail; this skill owns the tool and the field that carry it.
Migration. v6 evidence files DO NOT validate against v7. Runs not in flight at the v2.0.0 upgrade: no action needed; new runs use v7 from Phase 0.5. Runs in flight at upgrade: re-spawn the active teammates against v7.
--no-vao escape hatch
The three pipeline-driving slash commands (/architect-team, /architect-team:bug-fix, /architect-team:mini) accept a --no-vao flag that disables Layers 1, 2, 4, 5. Layer 3 tools remain available for ad-hoc CLI invocation; Layer 6 (Skill-invocation audit) is ALWAYS-ON and cannot be opted out — the audit checks whether the framework was invoked at all, so opting out IS the failure mode it exists to catch.
Trade-off: --no-vao re-opens the v1.x failure modes (scope-narrowing, git-stash clobbering, fake data, oracle mismatch, source-vs-rendered audit, execution-time variance). Use only when the user has explicitly accepted that trade.
Failure-mode mapping (the audit trail)
| Failure | Caught at Layer | Caught how |
| v1.4.0 — silent scope narrow at intake | Layer 1 | Oracle-deriver shows the structural spec; user accepts BEFORE Phase 2; agent doesn't get to "interpret" |
| v1.4.0 — agent reframes mid-run | Layer 2 (parity-verb shape) | oracle-divergence-hunter runs verify-oracle-match on the teammate's diff |
v1.6.0 — teammate runs git stash | Layer 2 (shared-tree, always-on) | git-discipline-hunter runs verify-baseline-clean on the tool-call log |
| v1.7.0 — frontend mocks the API | Layer 2 (backend-dep) | fake-data-hunter runs verify-no-fake-data on the diff |
| v1.7.0 — frontend hardcodes the response | Layer 2 (backend-dep + dynamic-value) | Same — overlapping coverage by design |
| v1.7.0 — frontend silently stubs the UI | Layer 2 (backend-dep) + Layer 3 (verify-every-element) | Coverage check finds the stub element |
| heirship — oracle structure mismatch | Layer 1 + Layer 2 + Layer 3 | Deterministic structural diff; teammate cannot pass without matching |
| heirship — "pixel parity pass" from source audit | Layer 3 (verify-rendered-parity) | Rendered DOM + screenshot diff; agent prose attestation forbidden |
| heirship — "addressed with residual variance" | Layer 3 + Schema v7 | The cited verify-rendered-parity verdict's matched: false blocks regardless of the agent's inline verdict: pass |
| heirship — "applied methodology by hand" | Layer 6 | Stop-hook auditor blocks when explicit user Skill request has no matching Skill invocation |
| novel failure shape on future run | Layer 4 | Run-history feed makes the framework learn; future runs with the same shape get a known check |
Where this skill plugs in
hooks/vao_tools.py— the Layer-3 facade + CLI (the five originals verify-oracle-match, verify-baseline-clean, verify-no-fake-data, verify-every-element, verify-rendered-parity, plus the fifteen discipline tools and the 21st, verify-check-can-fail).hooks/vao/check_integrity.py— the 21st Layer-3 tool's module (v3.47.0).hooks/skill_invocation_audit.py— the Layer 6 Stop-hook auditor.hooks/review_evidence_schema.py— schema v7 declaring the five required VAO fields.hooks/pipeline-completion-audit.py— extended to assert VAO verdicts + delegate to Layer 6.agents/oracle-deriver.md— the Phase 0.5 agent.agents/adversarial-reviewer.md— the Phase 3 paired adversarial agent.skills/architect-team-pipeline/SKILL.md— Phase 0.5 + Layer 2 spawn brief + Layer 4 Phase −2 step.skills/bug-fix-pipeline/SKILL.md— analogous insertions at B0.5 / B3 / B−1.skills/mini-architect-team-pipeline/SKILL.md— analogous insertions at M0.5 / M5 / M0.skills/team-spawning-and-review-gates/SKILL.md—## VAO task-shape pairingsection + manifest v2.skills/common-pipeline-conventions/SKILL.md—## Run-history shape detection (v2.0.0)+## Skill-invocation discipline (v2.0.0)sections.commands/{architect-team,bug-fix,mini}.md—--no-vaoflag.tests/test_vao_tools.py— 32 tests pinning the 5 tools' contracts.tests/test_vao_skill_invocation_audit.py— 55 tests pinning the Layer 6 audit.tests/test_vao_fixtures.py— 19 tests pinning each canonical fixture's round-trip.tests/fixtures/vao/*.json— 7 canonical synthetic fixtures.
Operating rules (non-negotiable)
- A change to any of the six layers edits this skill ONCE. The pipeline skills' references stay one-line; the rule update propagates by reference.
- A pipeline skill MUST NOT re-explain any of the six layers inline — replace with a reference to this skill. Inline re-explanation is the drift-risk this skill exists to remove.
- An agent's
*_reviewfield in the evidence file MUST be either the legacy string-shape (pass/n/a/fail) OR the canonical dict-shape ({verdict, verdict_path}). A field that's a dict but lacksverdict_pathis rejected at the hook layer. - The cited verdict file IS the source of truth. The agent's inline summary is NOT — a passing inline summary that cites a failing verdict file is a hook-level violation, not just bad communication.
- Layer 6 is ALWAYS-ON.
--no-vaodoes not disable it. A skill-invocation audit failure is a hard block. --no-vaoMUST come with an explicit user acknowledgment of the re-opened failure modes — the documentation lists them; the orchestrator surfaces them in the run summary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

