fail-closed-verification
Fail-closed verification before claiming work is complete. Requires parallel reviewer + silent-failure scan with explicit PASS evidence (file:line citations). Integrates with remediation-loop for findings. Use before marking any non-trivial task as done.
What this skill does
# Fail-Closed Verification
Before claiming any non-trivial work is complete, run structured verification that **defaults to "not done" until proven otherwise**. Narrative confidence ("I believe this works") is not evidence. Commands must be run, output must be checked, and findings must be explicit.
## When to Use
- Before telling the user that implementation is complete
- Before creating a commit or PR for a feature/fix
- After a remediation cycle resolves findings
- Any time you are about to say "done" or "all tests pass"
## Protocol
### Step 1 — Run Tests
Execute the project's test suite (or the relevant subset). Record:
- The exact command run
- The full output (pass/fail counts, any failures)
- Whether coverage changed
If there are no tests, state that explicitly. Do not claim "tests pass" when no tests exist.
### Step 2 — Parallel Verification (for non-trivial changes)
For changes touching 3+ files or involving logic changes, dispatch two agents in parallel:
**Agent A — Code Reviewer (read-only):**
```
Review the changes for correctness, edge cases, and consistency
with existing patterns. For each finding, provide:
- file:line reference
- severity (CRITICAL/HIGH/MEDIUM/LOW)
- specific concern (not vague)
If everything looks correct, state PASS with what you verified.
```
**Agent B — Silent Failure Scanner (read-only):**
```
Scan the changed files for silent failure patterns:
- Swallowed exceptions (empty catch blocks, bare except:pass)
- Missing error returns (function can fail but caller doesn't check)
- Unchecked null/undefined access
- Missing validation at system boundaries
- Race conditions or state mutation without synchronization
For each finding, provide file:line and the specific pattern.
If the code is clean, state PASS with what you scanned.
```
### Step 3 — Evaluate
| Result | Action |
|--------|--------|
| Both PASS with evidence | Work is verified. Proceed to completion. |
| Findings at HIGH+ | Invoke `resilient-flows:remediation-loop` to fix, then re-verify |
| Findings at MEDIUM/LOW only | Note them for the user, proceed to completion |
| Either agent fails to provide evidence | **Fail closed.** Re-run or investigate. |
### Step 4 — Completion Statement
When reporting completion to the user, include:
- What tests were run and their results
- What verification agents found (PASS or specific findings)
- Any known limitations or deferred items
### What "Fail Closed" Means
- If you can't run tests → do not claim they pass
- If a reviewer returns no evidence → do not assume PASS
- If you're uncertain whether a fix works → run it, don't reason about it
- If verification is skipped for any reason → explicitly state that to the user
The default state is "unverified." Evidence moves it to "verified." Nothing else does.
## When to Skip
- Single-line typo fixes
- Documentation-only changes
- Changes the user explicitly says don't need verification
- Exploratory/research tasks with no deliverable
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.