rune-kit/rune/completion-gate
Claude Code and agent skill by rune-kit/rune
- community
Checking that the SKILL.md file is still in the repository.
Validates agent claims against evidence trail. Use when verifying an agent has actually done what it claims — auto-fires at workflow end. Catches 'done' without proof, 'tests pass' without output, 'fixed' without verification. Called by cook and team.
Install
npx vskill@latest install rune-kit/rune/completion-gateSKILL.md
The same SKILL.md was published earlier as rune-kit/rune/completion-gate.
completion-gate
Purpose
The lie detector for agent claims. Validates that what an agent says it did actually happened — with evidence. Catches the #1 failure mode in AI coding: claiming completion without proof.
<HARD-GATE> Every claim requires evidence. No evidence = UNCONFIRMED = BLOCK. "I ran the tests and they pass" without stdout = UNCONFIRMED. "I fixed the bug" without before/after diff = UNCONFIRMED. "Build succeeds" without build output = UNCONFIRMED. </HARD-GATE>
Triggers
- Called by
cookin Phase 5d (quality gate) - Called by
teambefore merging stream results - Called by any skill that reports "done" to an orchestrator
- Auto-trigger: when agent says "done", "complete", "fixed", "passing"
Calls (outbound)
None — pure validator. Reads evidence, produces verdict.
Called By (inbound)
cook(L1): Phase 5d — validate completion claims before committeam(L1): validate cook reports from parallel streams
Execution
Step 1 — Collect Claims
Parse the agent's output for completion claims. Common claim patterns:
Extract each claim as: { claim: string, source_skill: string }
Step 1a — Type Each Claim (Claim Discipline)
<MUST-READ path="references/claim-discipline.md" trigger="always — before matching evidence"/>
Before hunting for evidence, type the claim by the grammar it was written in. Hallucination is an unverified claim wearing the grammar of an observation — the grammar is the tell, and it is readable in the sentence itself.
| Type | Meaning | Grammar it may wear | |
|---|---|---|---|
| OBSERVED | Seen this session: ran it, read it, measured it | "X is / does / returns …" | |
| DERIVED | Follows from OBSERVED facts via a statable mechanism | "X should / will / implies …" + the why | |
| PRIOR | Training knowledge, may be stale | "X is typically … / was, as of …" | |
| ASSUMED | Unverified and required by the conclusion | "I am assuming X — if wrong, then …" |
This changes what the gate is looking for in Step 2:
- OBSERVED → demands an evidence artifact. No artifact = FAIL. This is the existing gate.
- DERIVED → demands the mechanism be stated, and its OBSERVED inputs to be present.
- PRIOR / ASSUMED → not a failure. A claim honestly delivered as assumed is the correct output when the check was not run. Record it as an open item; never score it as a lie.
<HARD-GATE> A hedge is not a defect. Do NOT fail a claim for being marked ASSUMED or PRIOR — fail it for wearing OBSERVED grammar with nothing behind it. Treating honest uncertainty as a failure teaches the next agent to delete its hedges, which is the exact behavior this gate exists to catch. </HARD-GATE>
Claims are promoted only by tools — checking a PRIOR makes it OBSERVED. Restating it more confidently does not. Confidence that grew from effort, repetition or fluent prose resets to the last evidence-backed level.
Step 1b — Stub Detection (Existence Theater Check)
Before checking claims, scan all files created/modified in this workflow for stubs:
If ANY stub detected:
- Add synthetic claim: "implemented [filename]" → CONTRADICTED (file is a stub)
- This catches agents that create files but don't implement them
Step 1c — Self-Validation Check
If the skill that just ran has a ## Self-Validation section, extract its checklist and treat each item as an implicit claim:
Why: Self-Validation catches domain-specific quality issues that generic claim matching (Step 2) cannot detect. A test skill knows "no assertions = useless test" but completion-gate doesn't — unless the skill's Self-Validation tells it to check.
<HARD-GATE> If a skill has Self-Validation and ANY check is UNCONFIRMED or CONTRADICTED → overall verdict cannot be CONFIRMED, even if all explicit claims pass. </HARD-GATE>
Step 1d — Execution Loop Audit
Before validating claims, audit the agent's tool call pattern for execution loops that indicate the agent was stuck but didn't report it:
Classify the agent's tool calls from this workflow into two categories:
| Category | Tools | Expected in Phase 4 | |
|---|---|---|---|
| Observation | Read, Grep, Glob, Bash(grep/ls/cat) | <40% of calls | |
| Effect | Write, Edit, Bash(build/test/npm) | >60% of calls |
Loop patterns to detect:
| Pattern | Detection | Verdict Impact | |
|---|---|---|---|
| Observation chain: 6+ consecutive observation tools in Phase 4 | Count longest observation-only streak | Add WARN: "Agent had {N}-call observation streak during implementation — possible analysis paralysis" | |
| Low effect ratio: <20% effect calls during Phase 4 | effect_calls / total_calls | Add WARN: "Only {X}% of Phase 4 calls were writes — agent may have been stuck" | |
| Repeating tool pattern: Same tool+args called 3+ times | Hash tool+args, count duplicates | Add WARN: "Agent called {tool}({args}) {N} times — possible loop" | |
| Budget overrun: Phase 4 exceeded 50 tool calls for a single-file task | Count Phase 4 calls vs files changed | Add WARN: "50+ tool calls for {N} files changed — disproportionate effort" |
Scoring impact: Loop warnings don't change individual claim verdicts but ARE included in the Completion Gate Report under a new ### Execution Efficiency section. This gives the calling orchestrator signal about whether the agent's process was healthy, not just whether the output was correct.
Skip if: Nano/Fast rigor — not enough tool calls to meaningfully analyze.
Step 2 — Match Evidence
For each claim, look for corresponding evidence in the conversation context:
| Claim Type | Required Evidence | Where to Find | |
|---|---|---|---|
| "tests pass" | Test runner stdout with pass count | Shell output from test command | |
| "build succeeds" | Build command stdout showing success | Shell output from build command | |
| "lint clean" | Linter stdout (even if empty = 0 errors) | Shell output from lint command | |
| "fixed" | Git diff showing the change + test proving fix | File-edit evidence + test output | |
| "implemented" | Files created/modified matching the plan | File changes compared with the plan | |
| "no security issues" | Sentinel report with PASS verdict | Sentinel skill output | |
| "coverage ≥ X%" | Coverage tool output with actual percentage | Test runner with coverage flag |
Step 3 — Validate Each Claim (Default-FAIL Mindset)
<HARD-GATE> Default posture is FAIL, not PASS. Actively seek 3-5 issues per review. Zero issues found = red flag — look harder, not a sign of quality. This prevents rubber-stamping where the gate confirms everything without scrutiny. </HARD-GATE>
For each claim + evidence pair:
3-Axis verification — categorize each claim into one of three axes, then ensure all axes are covered:
| Axis | Question | Example Claims | |
|---|---|---|---|
| Completeness | Were all planned tasks done? All specs implemented? | "implemented feature X", "all TODO items done", "migration created" | |
| Correctness | Does output match spec intent? Do tests verify real behavior? | "tests pass", "build succeeds", "lint clean", "fixed the bug" | |
| Coherence | Does it follow project patterns? Consistent with existing code? | "follows conventions", "uses existing patterns", "no new deps needed" |
If an axis has ZERO claims → flag as gap: "No [Completeness/Correctness/Coherence] evidence found — agent may have skipped this dimension."
Adversarial validation checklist (run AFTER initial verdicts):
- Re-read each CONFIRMED claim — is the evidence actually proving THIS claim, or a different one?
- Check for partial completion — did the agent do 80% but claim 100%? (e.g., "implemented feature" but only the happy path)
- Check for scope mismatch — does the evidence prove the SPECIFIC claim or a broader/narrower version?
- If all claims are CONFIRMED on first pass, apply skeptic sweep: re-examine the weakest 2 claims with heightened scrutiny
- Check axis coverage — are all 3 axes (Completeness/Correctness/Coherence) represented? Missing axis = investigation gap
Step 4 — Report
Step 4.5 — Integration Check (Cross-Phase + Cross-Layer)
Check for integration gaps — between phases AND between layers:
- Orphaned exports — files/functions created in this phase that claim to be used by future phases (see
## Cross-Phase Context → Exports) but are not yet importable:
``` Grep for the export name in the current codebase:
- If export exists AND is importable → CONFIRMED
- If export exists but has wrong signature vs phase file contract → CONTRADICTED
- Expected export missing entirely → UNCONFIRMED ("Phase N claims to export X but X not found")
```
- Uncalled routes — API endpoints added in this task but not wired to any frontend/consumer:
- BLOCK if the route was created in THIS task AND a user story/AC references the interaction it serves — an uncalled route behind a story's UI is a dead path, not future work
- WARN (deferral allowed) ONLY if a NAMED future-phase task explicitly references consuming this route (verifiable in the master plan/phase files — "a future phase will handle it" without a task ID is not an excuse)
- Auth gaps — new endpoints or pages without authentication/authorization:
Grepfor route handlers without auth middleware- Flag as WARN (may be intentional for public endpoints, but worth checking)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/completion-gate/SKILL.md
Popularity
- Repository stars
- 77
- Repository forks
- 21
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rune-kit/rune/completion-gate)