Skip to content

feat: wire remediation gateway into CLI and Action - #16

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/remediate-gateway-8cd7
Sep 7, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/remediate-gateway-8cd7

Conversation

@derek-palmer

Copy link
Copy Markdown
Owner

Summary

Wires remediation end-to-end so T6/T7 remediator logic can actually open draft PRs.

Changes

  • OctokitRemediationGateway — create draft PR from static file mutations, list budget-eligible remediation PRs, observe required checks, promote draft → ready
  • techdebtter remediate CLI — --select <id> --path . [--yes]
  • Action phase remediate — phase-scoped contents:write + pull_requests:write (never during discover/analyze/publish)
  • User Identity CLI opts into remediation.enabled for the explicit command; Bot still requires policy enablement

Test plan

  • npm run check (118 tests)
  • Gateway draft-PR + required-check tests
  • CLI remediate integration test
  • Phase permission tests for remediate
Open in Web Open in Cursor 

Add OctokitRemediationGateway for draft PR creation from static
mutations, required-check observation, and draft promotion. Expose
techdebtter remediate and Action phase remediate with phase-scoped
contents/pull_requests write permissions.

Co-authored-by: Derek Palmer <derek@derekpalmercreative.com>
@derek-palmer
derek-palmer marked this pull request as ready for review September 7, 2026 06:00
@cursor
cursor Bot merged commit a67e93a into main Sep 7, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/remediate-gateway-8cd7 branch September 7, 2026 06:00
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.

2 participants