What problem does it solve? Long-running AI coding sessions tend to drift, over-engineer, or self-certify flawed work. This Skill enforces a disciplined refinement loop that audits pre-existing code artifacts, tracks every issue in a structured ledger, and blocks completion until independent adversarial reviewers confirm the artifact has converged to a stable, verified state. ## Core Features & Use Cases - Contraction-Mapping Refinement Loop: Executes Absorb, Audit, Iterate, Sweep, Review, and Report phases with measurable convergence metrics (error counts, convergence rates, workspace hashes) to detect oscillation and limit cycles. - Multi-Boundary Subagent Sweeps (MBSS): Spawns isolated adversarial subagents with distinct review rubrics (security, edge cases, performance, compliance) that are blind to each other, preventing self-congratulatory bias. - Deterministic Grounding & Rollback: Rejects subjective critiques unless backed by a failing test, linter error, or spec violation, and rolls back changes that break regression tests. - Isolated Git Worktree Execution: Performs all edits in a dedicated worktree and branch, keeping the user's working directory untouched, with sketch files committed to a .ledger/ sub-repository via the sync script. - Use Case: After implementing a feature, invoke /refine to exhaustively audit the module, prune redundant code added during iteration, run parallel adversarial reviews, and produce a verified, maintainer-approved result. ## Quick Start Ask the agent to run the /refine workflow on a specific module or file to audit, optimize, and adversarially verify it until convergence.