{"slug":"converge-3","title":"converge","summary":"Spec↔code convergence scan. Use after implementation to verify the ACTUAL codebase matches the spec/plan — detects missing backends, dead buttons, partial wiring, scope creep. Classifies gaps (missing/partial/contradicts/unrequested), appends remediation tasks, loops until conver","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-22T10:27:34.53661Z","repo":{"url":"https://github.com/Rune-kit/rune","stars":94,"forks":26,"license":"MIT","updatedAt":"2026-11-22T09:20:14Z"},"bodyHtml":"<hr>\n<h2>name: converge\ndescription: \"Spec↔code convergence scan. Use after implementation to verify the ACTUAL codebase matches the spec/plan — detects missing backends, dead buttons, partial wiring, scope creep. Classifies gaps (missing/partial/contradicts/unrequested), appends remediation tasks, loops until converged. The direct answer to 'the UI renders but nothing works' syndrome.\"\nmetadata:\nauthor: runedev\nversion: \"0.2.0\"\nlayer: L3\nmodel: sonnet\ngroup: verification\ntools: \"Read, Glob, Grep\"\nemit: convergence.gaps, convergence.clean\nlisten: verification.complete</h2>\n<h1>converge</h1>\n<h2>Purpose</h2>\n<p>Post-implementation gap detector. Re-reads the spec, plan, and tasks as the <strong>sole source of intent</strong>, inspects the ACTUAL codebase (present state, not the diff), and classifies every intent key as implemented or gapped. Where verification asks \"does it build?\", converge asks \"<strong>is everything the spec promised actually in the code?</strong>\"</p>\n<p>This is the skill that catches the most expensive silent failure: a P1 story's UI exists, renders, passes lint/type/build — and its backend was never written.</p>\n\n<h2>Called By (inbound)</h2>\n<ul>\n<li><code>cook</code> (L1): Phase 6.5 CONVERGE — after VERIFY, before COMMIT, for feature/greenfield chains with a requirements.md</li>\n<li>User: <code>/rune converge</code> — \"did it fully implement the spec?\", \"check completeness\", \"does the code match the spec?\"</li>\n</ul>\n<h2>Calls (outbound)</h2>\n<p>None — pure L3 verification utility. Reports gaps; cook decides what to execute.</p>\n<h2>Executable Steps</h2>\n<h3>Step 1 — Build the Intent Inventory</h3>\n<p>Load intent sources (all that exist; requirements.md is mandatory — without it, STOP and report <code>NO_SPEC</code>):</p>\n<ol>\n<li><code>.rune/features/&lt;name&gt;/requirements.md</code> — extract keys: every <code>FR-n</code>, every <code>US-n</code> with priority + Independent Test, every <code>AC-n.m</code> (as <code>US-n/AC-n.m</code>), every Key Entity</li>\n<li><code>.rune/plan-&lt;feature&gt;.md</code> + phase files — Key Decisions, Coverage Summary, task list with <code>P&lt;phase&gt;-T&lt;seq&gt;</code> IDs</li>\n<li><code>.rune/features/&lt;name&gt;/contracts/*.md</code> — each contract: its endpoint, its <code>Serves:</code> story, its <code>Consumers:</code> list</li>\n<li><code>.rune/features/&lt;name&gt;/data-model.md</code> — entities, state transitions</li>\n<li><code>.rune/features/&lt;name&gt;/quickstart.md</code> — per-story validation steps</li>\n<li><code>.rune/ui-spec.md</code> <code>## Unwired Elements</code> (if present) — designed placeholders that MUST NOT count as implemented</li>\n</ol>\n<p>The inventory is a flat list of keys: <code>FR-3</code>, <code>US-1/AC-1.2</code>, <code>contract:create-order</code>, <code>entity:Order</code>, <code>decision:&lt;slug&gt;</code>.</p>\n<p>Rules:</p>\n<ul>\n<li><strong>Task IDs (<code>P&lt;phase&gt;-T&lt;seq&gt;</code>) and quickstart.md are EVIDENCE, not verdict keys</strong> — tasks feed the code-scope map (Step 2), quickstart steps feed pass/fail evidence for story rows. Neither gets its own verdict row</li>\n<li><strong>US-n verdict is DERIVED</strong>: worst verdict among its <code>AC-n.m</code> rows (all ACs implemented → story implemented; any partial/missing → story inherits it). Don't independently re-assess the story</li>\n<li><strong>Plan Claims vs Reality</strong>: while reading tasks, note every task marked <code>[x]</code> whose artifact is missing/partial in code — these go in a dedicated report section (informational; <code>completion-gate</code> owns claim enforcement, converge just surfaces the lie)</li>\n</ul>\n<h3>Step 2 — Build the Code-Scope Map</h3>\n<p>Map intent → code locations. NO full-repo read — targeted lookups only:</p>\n<ol>\n<li><code>Glob</code> every file path named in plan tasks — does it exist?</li>\n<li><code>Grep</code> entity names (from data-model.md) across schema/model directories</li>\n<li><code>Grep</code> each contract's endpoint path/route across the codebase — implementation AND callers</li>\n<li><code>Grep</code> component names from UI tasks — definition AND the handler symbols they bind</li>\n</ol>\n<h3>Step 3 — Classify Gaps</h3>\n<p>For every intent key, assign exactly one verdict:</p>\n<table>\n<thead>\n<tr>\n<th>Verdict</th>\n<th>Meaning</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>implemented</code></td>\n<td>Code fully realizes the key</td>\n<td>Endpoint exists, has logic, has a caller</td>\n</tr>\n<tr>\n<td><code>missing</code></td>\n<td>Required work absent entirely</td>\n<td>Contract file exists, no route implements it</td>\n</tr>\n<tr>\n<td><code>partial</code></td>\n<td>Started but a link in the chain is dead</td>\n<td>Button + handler exist; handler's fetch targets a route that doesn't exist</td>\n</tr>\n<tr>\n<td><code>contradicts</code></td>\n<td>Code diverges from a locked decision or AC</td>\n<td>Spec says soft-delete; code hard-deletes</td>\n</tr>\n<tr>\n<td><code>unrequested</code></td>\n<td>Code maps to NO intent key (scope creep — surfaced, not blocked)</td>\n<td>New admin page no story asked for</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Dead-interaction trace</strong> (run for every UI element an AC references):</p>\n<pre><code>element → handler bound? → handler body non-trivial? → calls service/fetch?\n        → target route/function EXISTS in codebase? → route touches the entity the AC names?\n</code></pre>\n<p>First broken link = <code>partial</code>, keyed to that element's <code>US-n/AC-n.m</code>. Heuristics: <code>onClick={() =&gt; {}}</code>, <code>href=\"#\"</code> on action links, <code>console.log</code>-only handlers, <code>preventDefault()</code>-only submits, <code>fetch('/api/...')</code> where no route file matches — all break the chain.</p>\n<p><strong>Unwired Elements (declared debt)</strong> — elements listed in <code>.rune/ui-spec.md</code> <code>## Unwired Elements</code>:</p>\n<ul>\n<li>Owner of wiring is a task/story IN THIS feature's plan → <code>missing</code>, keyed to that story (in-scope debt)</li>\n<li>Owner is external (asset-creator pass, future feature, human) → <strong><code>deferred-debt</code></strong>: report in a separate <code>### Deferred (declared debt)</code> section, do NOT append a CV task, do NOT count in gap counts, does NOT block <code>convergence.clean</code>. Declared debt with a named owner is tracked honesty, not a convergence failure</li>\n</ul>\n<p><strong>Precedence</strong>: an element that maps to NO intent key takes the <code>unrequested</code> path — the dead-interaction trace runs only for AC-referenced elements.</p>\n<h3>Step 4 — Assign Severity</h3>\n<table>\n<thead>\n<tr>\n<th>Severity</th>\n<th>Condition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CRITICAL</td>\n<td><code>missing</code> or <code>contradicts</code> gap that blocks a <strong>P1 story's</strong> acceptance scenario or Independent Test</td>\n</tr>\n<tr>\n<td>HIGH</td>\n<td><code>partial</code> on a P1 story, or <code>missing</code>/<code>contradicts</code> on P2</td>\n</tr>\n<tr>\n<td>MEDIUM</td>\n<td>Any gap on P3; <code>unrequested</code> code touching shared modules</td>\n</tr>\n<tr>\n<td>LOW</td>\n<td><code>unrequested</code> isolated code; cosmetic divergence</td>\n</tr>\n</tbody>\n</table>\n<h3>Step 5 — Append Remediation Tasks (APPEND-ONLY)</h3>\n<p>If gaps exist, append to the ACTIVE phase file (or master plan task section if no phase file):</p>\n<pre><code>## Convergence (round N)\n&gt; Appended by converge — spec↔code gaps found. Do not edit rows above this section.\n- [ ] CV-N.1 [CRITICAL] Implement POST /api/orders route per contract:create-order (missing) — `src/api/orders.ts`\n- [ ] CV-N.2 [HIGH] Wire OrderForm submit to POST /api/orders per US-1/AC-1.1 (partial: handler fetches nonexistent route) — `src/components/OrderForm.tsx`\n</code></pre>\n<p>Task format: <code>CV-&lt;round&gt;.&lt;seq&gt; [severity] &lt;imperative&gt; per &lt;intent-key&gt; (&lt;gap-type&gt;) — &lt;file path&gt;</code>. Every task cites its intent key — a remediation task with no key is itself a converge violation.</p>\n<p><strong>Deduplication</strong>: when multiple intent keys trace to the SAME absent/broken artifact (e.g., <code>contract:create-order</code> missing AND <code>US-1/AC-1.1</code> partial, both resolved by implementing <code>src/api/orders.ts</code>), emit ONE combined CV task citing all keys — <code>CV-1.1 [CRITICAL] Implement POST /api/orders per contract:create-order + US-1/AC-1.1 (missing/partial) — src/api/orders.ts</code>. One target file = one task; the report table still lists every key's verdict separately.</p>\n<p><strong>No CV tasks for <code>unrequested</code> findings</strong> — they are surfaced for human decision (Constraint 6), never converted to work items. <strong>No CV tasks for <code>deferred-debt</code></strong> — the named owner owns it.</p>\n<p>If ZERO gaps (missing/partial/contradicts on spec keys — deferred-debt and unrequested don't count): write nothing (task file stays byte-identical), emit <code>convergence.clean</code>.</p>\n<h3>Step 6 — Emit Verdict</h3>\n<ul>\n<li>Gaps found → emit <code>convergence.gaps</code> with <code>{feature, round, counts: {missing, partial, contradicts, unrequested}, critical: N, cv_tasks: N}</code></li>\n<li>Clean → emit <code>convergence.clean</code> with <code>{feature, round, keys_checked: N}</code></li>\n</ul>\n<p>Payload notes: <code>counts</code> are PER-KEY (one absent route can inflate several keys — that's fine for zero-checks, which is all cook needs); <code>cv_tasks</code> is the DEDUPED work-item count — consumers judging workload use <code>cv_tasks</code> + <code>critical</code>, not raw counts.</p>\n<p>The caller (cook Phase 6.5) executes appended tasks and re-invokes converge — loop until clean, max 2 remediation rounds before escalation.</p>\n<h2>Output Format</h2>\n<pre><code>## Convergence Report — &lt;feature&gt; (round N)\n\nIntent keys checked: 23 | implemented: 19 | gaps: 4\n(keys checked = spec keys only; unrequested and deferred-debt listed separately below)\n\n| Key | Verdict | Severity | Evidence |\n|-----|---------|----------|----------|\n| contract:create-order | missing | CRITICAL | contracts/create-order.md exists; no route matches POST /api/orders (grep: 0 hits in src/) |\n| US-1/AC-1.1 | partial | HIGH | OrderForm.tsx:42 fetch('/api/orders') → route absent |\n| US-3/AC-3.1 | implemented | — | route src/api/list.ts:12, caller OrderList.tsx:8 |\n\n### Unrequested (surfaced, no CV tasks)\n- src/pages/admin-stats.tsx — maps to no story\n\n### Deferred (declared debt, no CV tasks)\n- [ ICON: sparkle ] (ui-spec Unwired Elements, owner: asset-creator)\n\n### Plan Claims vs Reality\n- P1-T2 marked [x] but POST /api/orders absent — see contract:create-order gap\n\nVerdict: 2 gaps blocking P1 → convergence.gaps emitted, 1 task appended (CV-1.1, deduped)\n</code></pre>\n<p>Every row needs <code>file:line</code> evidence or a grep result count — verdicts without evidence are hallucinations.</p>\n<h2>Constraints</h2>\n<ol>\n<li>MUST treat spec/plan/contracts as the sole source of intent — never infer intent from the code itself</li>\n<li>MUST inspect present codebase state, not the git diff — earlier phases may have broken older work</li>\n<li>MUST give every gap an intent key, a gap-type, a severity, and file-level evidence</li>\n<li>MUST append remediation tasks — never rewrite, reorder, or delete existing task content</li>\n<li>MUST NOT edit source code — converge detects, fix/cook remediate</li>\n<li>MUST surface <code>unrequested</code> code as findings, never silently delete or block on it</li>\n<li>MUST report <code>NO_SPEC</code> and stop when no requirements.md exists — converge without a spec is vibes</li>\n</ol>\n<h2>Sharp Edges</h2>\n<table>\n<thead>\n<tr>\n<th>Failure Mode</th>\n<th>Severity</th>\n<th>Mitigation</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Inferring intent from code (\"this helper implies a story\")</td>\n<td>CRITICAL</td>\n<td>Intent inventory comes ONLY from Step 1 artifacts — code is evidence, never intent</td>\n</tr>\n<tr>\n<td>Verdict without file:line or grep evidence</td>\n<td>CRITICAL</td>\n<td>Output format requires Evidence column — no evidence, no verdict</td>\n</tr>\n<tr>\n<td>Rewriting the task file instead of appending</td>\n<td>CRITICAL</td>\n<td>HARD-GATE: append-only; zero gaps = zero writes (byte-identical file)</td>\n</tr>\n<tr>\n<td>Marking <code>implemented</code> because the file exists</td>\n<td>HIGH</td>\n<td>Existence ≠ implementation — run the dead-interaction trace; a route with <code>res.status(501)</code> is <code>partial</code></td>\n</tr>\n<tr>\n<td>Counting a designed placeholder as implemented</td>\n<td>HIGH</td>\n<td><code>.rune/ui-spec.md</code> Unwired Elements are automatically <code>missing</code></td>\n</tr>\n<tr>\n<td>Infinite converge loop (gaps never reach zero)</td>\n<td>HIGH</td>\n<td>Caller caps at 2 remediation rounds → Structured Escalation Report; same gap surviving 2 rounds = approach is wrong, not effort</td>\n</tr>\n<tr>\n<td>Fixing the gap itself \"since it's small\"</td>\n<td>HIGH</td>\n<td>Converge never edits source — emit the task, let fix own the change</td>\n</tr>\n<tr>\n<td>Scanning the whole repo (context blowout)</td>\n<td>MEDIUM</td>\n<td>Step 2 is targeted Glob/Grep from intent keys — not a repo read</td>\n</tr>\n<tr>\n<td>Treating <code>unrequested</code> as an error to delete</td>\n<td>MEDIUM</td>\n<td>Scope creep is surfaced for human decision — it may be wanted, undocumented work</td>\n</tr>\n<tr>\n<td>Declared debt (Unwired Elements, external owner) blocks convergence.clean forever</td>\n<td>HIGH</td>\n<td>deferred-debt class: reported, never a CV task, never blocks clean — a decorative icon must not cause a round-cap escalation</td>\n</tr>\n<tr>\n<td>Appending CV tasks for unrequested findings</td>\n<td>MEDIUM</td>\n<td>Step 5: unrequested = surfaced only; converting scope creep into work items without user decision IS scope creep</td>\n</tr>\n<tr>\n<td>Double-assessing US-n independently of its ACs</td>\n<td>LOW</td>\n<td>Story verdict is derived — worst of its AC rows</td>\n</tr>\n</tbody>\n</table>\n<h2>Done When</h2>\n<ul>\n<li>Intent inventory built from requirements.md + plan + contracts (or NO_SPEC reported)</li>\n<li>Every intent key has a verdict with file-level evidence</li>\n<li>Dead-interaction trace run for every AC-referenced UI element</li>\n<li>Gaps appended as <code>CV-*</code> tasks with intent keys (or task file byte-identical when clean)</li>\n<li><code>convergence.gaps</code> or <code>convergence.clean</code> emitted with counts</li>\n<li>Convergence Report rendered with evidence column</li>\n</ul>\n<h2>Returns</h2>\n<table>\n<thead>\n<tr>\n<th>Artifact</th>\n<th>Format</th>\n<th>Location</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Convergence Report</td>\n<td>Markdown table with evidence</td>\n<td>inline</td>\n</tr>\n<tr>\n<td>Remediation tasks</td>\n<td><code>CV-&lt;round&gt;.&lt;seq&gt;</code> checklist (append-only)</td>\n<td>active phase file / master plan</td>\n</tr>\n<tr>\n<td>Signal</td>\n<td><code>convergence.gaps</code> | <code>convergence.clean</code> with counts</td>\n<td>mesh</td>\n</tr>\n</tbody>\n</table>\n<h2>Cost Profile</h2>\n<p>~2000-5000 tokens input (spec + plan + targeted greps), ~500-1500 tokens output. Sonnet — the dead-interaction trace needs code comprehension, not just pattern matching. Runs once per feature (plus ≤2 remediation rounds).</p>\n","files":[{"path":"references/eval-fixtures.md","sizeBytes":4351,"isText":true},{"path":"SKILL.md","sizeBytes":13055,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-22T10:29:46.631743Z","sha256":"ECFE253A4673428EA956D2D63ECEFE90E82A3FB45A303C79BE34CE25A65D7517","sizeBytes":7672},"review":null,"source":{"repositoryUrl":"https://github.com/Rune-kit/rune","path":"skills/converge","license":"MIT","commit":"66ab37db7ad5c9ed4ad57da037555b7f3e3e9ec8","subtreeSha":"3AC6794047D50ED08F2D38AC421325EA2474F461E080B64906614F741986B6A6","lastSyncedAt":"2026-11-22T10:27:32.406252Z"},"reviewedAt":"2026-11-22T10:33:40.465724Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/Rune-kit/rune/tree/master/skills/converge"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install rune-kit-rune@llmmart"},{"target":"git","command":"git clone https://github.com/Rune-kit/rune.git"}]}