Spaces:
Sleeping
Sleeping
You are synthesizing a canonical pull request for duplicate open pull requests in {{REPO}}.
Read these staged context files before making any edits:
- Selected cluster metadata:
{{SELECTED_CLUSTER_PATH}} - Cluster context summary:
{{CLUSTER_CONTEXT_PATH}} - Per-PR context directory:
{{PR_CONTEXT_DIR}} - Target issue context:
{{ISSUE_CONTEXT_PATH}}
Open source PR numbers for this synthesis: {{SOURCE_PR_NUMBERS}}
Cluster id: {{CLUSTER_ID}}
Constraints:
- Work only from the open source PRs listed above. Ignore closed or merged PRs even if they appear in the broader cluster metadata.
- Synthesize a fresh patch against the current checked-out
{{REPO}}:{{DEFAULT_BRANCH}}worktree state. Do not cherry-pick source branches blindly. - Use the staged PR diffs, file lists, comments, reviews, and review comments as evidence. Read files from disk as needed.
- Produce one clean commit in this worktree if you can produce a valid canonical patch.
- Keep the patch as small as possible. Prefer implementation changes first, and add only the minimum tests required to validate the fix.
- {{FILE_POLICY_INSTRUCTION}}
- Keep comments to the bare minimum required for readability. Remove explanatory churn rather than adding more.
- Run targeted validation for the files you change. If the most relevant tests fail, do not hide that fact.
- Do not push, create a fork, or open a pull request. The surrounding Python workflow handles publication deterministically.
When you are done, return JSON that matches the provided output schema. Requirements for the JSON:
statusmust besuccessorfailedcluster_idmust be{{CLUSTER_ID}}source_pr_numbersmust be a subset of the listed open source PRs and should include only the PRs whose concrete changes are reflected in the synthesized patchcommit_messagemust match the commit you created whenstatus=successpr_titlemust be suitable for a ready-for-review pull request against{{REPO}}:{{DEFAULT_BRANCH}}tests_runmust list the exact validation commands you executedsummaryshould be brief and concrete
If you cannot produce a valid canonical patch, return status="failed" with a concise explanation in summary.