Skip to content

security: wave 2 fixes (branch protection + code bugs + hygiene)#4

Merged
govindkavaturi-art merged 2 commits intomainfrom
security/wave-2
Apr 12, 2026
Merged

security: wave 2 fixes (branch protection + code bugs + hygiene)#4
govindkavaturi-art merged 2 commits intomainfrom
security/wave-2

Conversation

@govindkavaturi-art
Copy link
Copy Markdown
Member

Summary

  • Medium: Enable require_last_push_approval on main branch protection
  • Medium: Add .env* to .gitignore to prevent accidental secret commits
  • Low: Document failure object sanitization in README + roadmap onFailure hook for v0.2
  • Low: Validate retry.maxAttempts in defineStep() — must be integer between 1 and 20
  • Low: Fix runGates() to attribute thrown exceptions as type: "gate" not "exception"
  • Low: Add .github/CODEOWNERS requiring review from @govindkavaturi-art for critical paths

Addresses findings #6, #8, #11, #12, #13, #14 from the security audit.

Test plan

  • CI passes (typecheck, lint, test, build, bundle size)
  • New tests: maxAttempts validation (4 tests) + throwing gate attribution (1 test)
  • Verify branch protection updated via gh api repos/cueapi/cuechain/branches/main/protection

🤖 Generated with Claude Code

- Enable require_last_push_approval on main branch protection
- Add .env* to .gitignore
- Add "Handling Failures Safely" section to README
- Add onFailure redaction hook to v0.2 roadmap
- Validate retry.maxAttempts (1-20 range, integer) in defineStep
- Fix runGates to attribute thrown gate exceptions as type "gate"
- Add CODEOWNERS for critical paths
- Add tests for maxAttempts validation and throwing gates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@govindkavaturi-art govindkavaturi-art merged commit 45fd3fa into main Apr 12, 2026
1 check passed
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.

1 participant