Skip to content

fix(audit): require a whole-tree caller check before delete: (#679) - #714

Open
szsunyuan wants to merge 1 commit into
DietrichGebert:mainfrom
szsunyuan:fix/audit-delete-caller-check
Open

fix(audit): require a whole-tree caller check before delete: (#679)#714
szsunyuan wants to merge 1 commit into
DietrichGebert:mainfrom
szsunyuan:fix/audit-delete-caller-check

Conversation

@szsunyuan

Copy link
Copy Markdown

Summary

  • ponytail-audit could emit delete: as "no callers" without grepping tests, fixtures, or string/dynamic refs. One Hunt line now requires that check; a symbol used only by tests is still used.
  • Reports now open with git rev-parse --short HEAD (no network; unknown base outside git) and a standing caveat to re-verify against current HEAD before applying. No git fetch / behind-upstream probe — those fail closed as "current" (ponytail-audit: delete: findings assert "no callers" with no required whole-tree check, and output records no base commit #679).
  • Same contract copied to the Claude/Gemini slash prompt and the OpenCode command, and the OpenClaw skill was regenerated.

Test plan

  • node scripts/check-rule-copies.js
  • node scripts/check-versions.js (still 4.9.0)
  • git diff --check
  • npm test — 84 root + 23 pi-extension + 3 ponytail-mcp
  • CI on this PR (first-time fork may need workflow approval)

Closes #679

…hGebert#679)

Stop delete: findings from asserting "no callers" without grepping tests, and record the scanned commit so a stale report is obvious.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ponytail-audit: delete: findings assert "no callers" with no required whole-tree check, and output records no base commit

1 participant