scope the destructive audit tool to hypotheses, and stop using it for coverage #573
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#563 Epic: the destructive surface has outgrown ADR 0029's classification table
sixfold-space/madtea
#572 the destructive surface has no enumerable source of truth
sixfold-space/madtea
Reference
sixfold-space/madtea#573
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #563. Depends on #572, which builds the thing that replaces half of what this tool is currently asked to do.
.claude/agents/adr-0029-surface-audit.mdis a repo-scoped audit tool that reads the codebase against ADR 0029 and reports findings. It is committed and it stays. Its brief currently asks it to do two jobs, and it is only capable of one.What it does well
It finds real defects. In a single pass it surfaced the
TreeIdenticalshort-circuit (internal/service/git/branch_merge_state.go:32-38), the orchestrate refusal that names the surface still allowing the refused act (internal/mcp/tools_orchestrate.go:131-141), the unproven remote branch delete (internal/mcp/tools_branches.go:68-70), and the two-policy contradiction between the pin test and the record. Each of those was confirmed by reading the source afterwards. Every issue under #563 started as one of its findings.What it cannot do
Anything requiring completeness or a count.
internal/parity/destructive_remote_pin_test.go:126-155) reported 22, 22, and 25 ungated rows. There are 24.branches-remote/deleteand then relied on the same kind of comment to dropissues/comment-delete,issues/attachment-delete,prs/comment-delete, andprs/review-comment-deletefrom the same report.Rewriting the brief does not fix this. Three rewrites changed which defects appeared and never made the count stable.
What to change
Acceptance criteria