From 5cf1d4f8132d0a6d1631c871fb3e6741340f41b3 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Thu, 25 Dec 2025 00:51:06 -0800 Subject: [PATCH] feat: add commit verification to mol-polecat-arm pre-kill-verify MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds ZFC-compliant guardrail: when closing issues as 'done', verify commits reference the issue ID. Agent makes the judgment call on legitimate exceptions (already fixed, duplicate, deferred). Closes gt-vmk7. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .beads/formulas/mol-polecat-arm.formula.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.beads/formulas/mol-polecat-arm.formula.yaml b/.beads/formulas/mol-polecat-arm.formula.yaml index ececc4f4..7a2c1be1 100644 --- a/.beads/formulas/mol-polecat-arm.formula.yaml +++ b/.beads/formulas/mol-polecat-arm.formula.yaml @@ -115,7 +115,16 @@ steps: git status # Must be clean git log origin/main..HEAD # Check for unpushed bd show # Verify closed/deferred + + # Verify productive work (for 'done' closures) + git log --oneline --grep='' | head -1 ``` + + **Commit verification** (ZFC principle - agent makes the call): + - If issue closed as 'done' but no commits reference it → flag for review + - Legitimate exceptions: already fixed elsewhere, duplicate, deferred + - Agent must provide justification if closing without commits + If clean: kill session, remove worktree, delete branch If dirty: record failure, retry next cycle