chore: harden aireceipts hook (never block) + Codex producer
Merged
AN
4mo ago+1+1+0123456789-1-1-0123456789
Addressed the review findings:
- Hook can block the push (cursor/kilo/codex bots — accepted, fixed): the hook command now ends
|| true;; esac; exit 0, so a transientnpx/registry failure or a future CLI exit-2 can never block theBashtool call. (The CLI itself already exits 0 on every path per its SPEC-0073 R2, but the wrapper must not rely on that.) - Codex producer missing (codex bot — accepted, fixed):
.codex/hooks.jsonnow runs the aireceipts producer alongside the existingaltimate-receiptsentry (untouched), so Codex-built PRs producerefs/aireceipts/*too. *push*substring pre-filter (codex bot — accepted as a trade-off): the substring is only a cheap pre-filter to avoid spawningnpxon every Bash call; the CLI then parses the payload with a tokenized git parser and refuses non-push commands, echoed/heredoc text, and retargeted pushes. A false-positive spawn costs one warmnpxno-op. Upstream (aireceipts-cli@0.9.1, in flight) also fixes chained/redirected pushes (git add && git commit && git push,… 2>&1 | tail) that previously never attached — anandgupta42/receipts#241.- PowerShell-native hook execution (codex bot — acknowledged, not fixed here): the
case … esacwrapper matches the shape already running inaltimate-frontend/tissues; a cross-shell kit is upstream work, tracked with the aireceipts adopter-kit docs.
🤖 Generated with Claude Code
Follow-up to #none (merged before these bot findings were addressed).
Summary by cubic
Make the aireceipts pre-push hook non-blocking by appending || true to the npx -y aireceipts-cli@latest hook pre-push command in .claude/settings.json. This prevents transient npx or registry failures from blocking pushes.
Summary by CodeRabbit
- Chores
- Updated the pre-push workflow so failures from the receipt-checking command no longer block pushes.