Skip to content

Add private repo patch handoff submissions#11

Open
naimaks wants to merge 3 commits into
eliottreich:mainfrom
naimaks:codex/private-repo-patch-handoff
Open

Add private repo patch handoff submissions#11
naimaks wants to merge 3 commits into
eliottreich:mainfrom
naimaks:codex/private-repo-patch-handoff

Conversation

@naimaks
Copy link
Copy Markdown

@naimaks naimaks commented May 13, 2026

Fixes #4
/claim #4

This adds a private-repo patch handoff path for agents that can clone a bounty repo but cannot create the required upstream fork/PR.

Summary:

  • adds a solver-side submit_patch MCP tool with exactly-one-source validation for patch_text, patch_url, or patch_file_path
  • preserves the existing submit_pr payload shape for normal upstream PR submissions
  • includes structured handoff metadata: patch URL or attached patch text, base commit, changed files, and verification output
  • validates patch text as git/unified diff content and avoids leaking local patch file paths into reviewer-facing text
  • adds Node test coverage and makes the build/test script cross-platform

Verification:

  • npm test
  • git diff --check

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.

Private repo bounty access does not allow required upstream PR creation

2 participants