You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0dc8a96
Browse filesBrowse the repository at this point in the historyBrowse files
ClawSweeper should use this job only for the bounded ClawSweeper review/fix loop:
166
-
167
-
- If ClawSweeper emits an explicit repair marker, requests changes, or finds failing checks/rebase work, and the PR branch is safe to update, emit a fix artifact with \`repair_strategy: "repair_contributor_branch"\` and \`source_prs: ["https://github.com/$repo/pull/$number"]\`.
168
-
- If the PR branch cannot be safely updated, emit a narrow credited replacement only when the artifact can preserve the original contributor credit; otherwise return \`needs_human\`.
169
-
- Do not merge, close, or bypass review gates from the worker. The comment router owns final merge only after a passing ClawSweeper verdict for the exact current head.
170
-
- Keep repair scope limited to actionable ClawSweeper findings, failing relevant checks, and required review feedback on this PR.
171
-
EOF
172
-
}
173
-
174
-
if [ -f "$JOB_PATH" ]; then
175
-
echo "job_exists=1" >> "$GITHUB_OUTPUT"
176
-
elif restore_automerge_job; then
177
-
echo "job_exists=1" >> "$GITHUB_OUTPUT"
178
-
echo "::notice title=Restored automerge repair job::Job file '$JOB_PATH' was missing from the state checkout; reconstructed it from the workflow input."
179
-
else
180
-
echo "job_exists=0" >> "$GITHUB_OUTPUT"
181
-
echo "::notice title=Stale repair dispatch::Job file '$JOB_PATH' no longer exists on the current state checkout; skipping this worker."
ClawSweeper should use this job only for the bounded ClawSweeper review/fix loop:
397
-
398
-
- If ClawSweeper emits an explicit repair marker, requests changes, or finds failing checks/rebase work, and the PR branch is safe to update, emit a fix artifact with \`repair_strategy: "repair_contributor_branch"\` and \`source_prs: ["https://github.com/$repo/pull/$number"]\`.
399
-
- If the PR branch cannot be safely updated, emit a narrow credited replacement only when the artifact can preserve the original contributor credit; otherwise return \`needs_human\`.
400
-
- Do not merge, close, or bypass review gates from the worker. The comment router owns final merge only after a passing ClawSweeper verdict for the exact current head.
401
-
- Keep repair scope limited to actionable ClawSweeper findings, failing relevant checks, and required review feedback on this PR.
402
-
EOF
403
-
}
404
-
405
-
if [ -f "$JOB_PATH" ]; then
406
-
echo "job_exists=1" >> "$GITHUB_OUTPUT"
407
-
elif restore_automerge_job; then
408
-
echo "job_exists=1" >> "$GITHUB_OUTPUT"
409
-
echo "::notice title=Restored automerge repair job::Job file '$JOB_PATH' was missing from the state checkout; reconstructed it from the workflow input."
410
-
else
411
-
echo "job_exists=0" >> "$GITHUB_OUTPUT"
412
-
echo "::notice title=Stale repair dispatch::Job file '$JOB_PATH' no longer exists on the current state checkout; skipping execute."
ClawSweeper should use this job only for the bounded ClawSweeper review/fix loop:
85
+
86
+
- If ClawSweeper emits an explicit repair marker, requests changes, or finds failing checks/rebase work, and the PR branch is safe to update, emit a fix artifact with \`repair_strategy: "repair_contributor_branch"\` and \`source_prs: ["https://github.com/$repo/pull/$number"]\`.
87
+
- If the PR branch cannot be safely updated, emit a narrow credited replacement only when the artifact can preserve the original contributor credit; otherwise return \`needs_human\`.
88
+
- Do not merge, close, or bypass review gates from the worker. The comment router owns final merge only after a passing ClawSweeper verdict for the exact current head.
89
+
- Keep repair scope limited to actionable ClawSweeper findings, failing relevant checks, and required review feedback on this PR.
90
+
EOF
91
+
}
92
+
93
+
restore_issue_implementation_job() {
94
+
case"$JOB_PATH"in
95
+
jobs/*/inbox/issue-*.md) ;;
96
+
*) return 1 ;;
97
+
esac
98
+
local filename stem rest number repo_slug owner repo_name repo ref branch
Use the source issue as the product request or bug report. Verify the request is still valid on latest \`$repo@main\`, inspect nearby code, and make the narrowest implementation that directly satisfies the issue. If the issue is too broad, underspecified, security-sensitive, already fixed, or not safely implementable by automation, do not change code; report the exact blocker.
160
+
161
+
When code changes are appropriate, emit a fix artifact with \`repair_strategy: "new_fix_pr"\`, \`source_prs: []\`, this issue in \`linked_refs\`, and validation commands for the touched surface.
162
+
163
+
## Guardrails
164
+
165
+
- Do not merge.
166
+
- Do not close the issue from this lane.
167
+
- Keep one PR for this issue; reuse \`$branch\` if it already exists.
168
+
- Keep the diff narrow and avoid unrelated refactors.
169
+
- Preserve issue context and link https://github.com/$repo/issues/$number in the PR body.
170
+
- Add a changelog entry when the target repo expects one.
171
+
EOF
172
+
}
173
+
174
+
if [ -f"$JOB_PATH" ];then
175
+
write_output job_exists 1
176
+
elif restore_automerge_job;then
177
+
write_output job_exists 1
178
+
echo"::notice title=Restored automerge repair job::Job file '$JOB_PATH' was missing from the state checkout; reconstructed it from the workflow input."
179
+
elif restore_issue_implementation_job;then
180
+
write_output job_exists 1
181
+
echo"::notice title=Restored issue implementation job::Job file '$JOB_PATH' was missing from the state checkout; reconstructed it from the workflow input."
182
+
else
183
+
write_output job_exists 0
184
+
echo"::notice title=Stale repair dispatch::Job file '$JOB_PATH' no longer exists on the current state checkout; skipping $SKIP_TARGET."
0 commit comments