--- name: audit-verification-workflow description: Use when asked whether a repo follows a Pstack-style verification and fresh-review workflow. Trace what the repo asks agents to do, what its checks and merge controls enforce, and where the evidence leaves gaps. --- # Audit a verification workflow ## Establish what the workflow promises Use the user's stated workflow as the standard. If they ask about the Pstack-style loop, trace whether agents can start the right build, exercise the expected user path, collect reproducible evidence, and get fresh adversarial review after material changes. Anchor the audit to the current revision and the applicable branches, environments, and change paths. Read the repo's agent instructions, verification skills and feature map, scripts, tests, CI workflows, and PR or review templates. For each material step, trace the instruction to the command or artifact it depends on, the circumstances that trigger it, and who or what can block progression. Sample contrasting paths when the rules differ, such as an ordinary PR and a covered high-risk change. ## Validate the claims - **Runtime evidence.** Follow one representative launch and verification path when safe and feasible. Confirm the build, exercise a real entry point, and inspect the resulting evidence. Check which integration boundaries use mocks. A passing example establishes that path's coverage. - **Independent review.** Trace who can review, what they actually inspect, and whether material changes invalidate a prior review. Inspect an available PR or run record when it can confirm what happens in practice. - **Enforcement.** Check CI trigger conditions, path filters, required status checks, and available rulesets or branch protections. A local script shows capability, an executed job shows observed practice, and a required rule shows enforcement on the branches it covers. Check exceptions and bypasses where visible. If remote settings are inaccessible, mark enforcement unknown for those branches. Keep an audit read-only unless implementation is also requested. Use temporary local state for safe probes. Avoid deployments, remote mutations, and merge experiments. If a direct check is blocked, give the exact missing prerequisite and the evidence still available. ## Report gaps with consequences For each material finding, give the workflow step, what you observed, the source or run that supports it, and what could slip through. Distinguish documented expectations, observed runs, enforced gates, and unknowns. Recommend the smallest useful change at the point of failure. Favor an API constraint, deterministic check, or required runtime proof over adding prose when the gap is mechanically enforceable.