PR Issue 自动 Fix
The operator can turn a PR issue into a controlled fix loop without manually rewriting the review comment as an agent plan.
案例背景
这个案例把 PR issue、review comment 或 issue text 转成可执行修复闭环。它不是“读一段评论就改代码”,而是先做 metadata/intake、repro、branch-local patch、validation 和 review packet。
对用户有价值的是反馈不再停在评论区:它会进入一个有 owner、有复现、有分支修复、有验证、有 review handoff 的闭环。公开证据只证明这条闭环和边界,不把 raw issue body、私有 timeline 或本地路径带进页面。
仓库证据
Issue 和 review 反馈可以变成受控、可执行的修复循环。
issue-fix workflow、command pack、repro smoke、PR review feedback
`docs/capabilities/issue-fix/README.md` 声明 `loopx issue-fix ...`、content-ops bridge、protocol docs 和 smoke;入口面向维护者的真实动作是把反馈转成可执行修复包。
`issue_fix_workflow_contract_v0` 明确 metadata preview、intake classification、workflow plan、todo writeback、caller repo branch、validation、PR review packet 和 gate handling。
`issue_fix_acceptance_loop_v0` 包含 acceptance fixture、repo-branch fixture 和 caller-approved repo branch mode。
focused smokes 保护 metadata preview、content-ops intake、workflow plan、workflow contract、acceptance loop 和端到端 workflow 的关键边界。
LoopX 行为
- 1public metadata 可以进入 packet;raw issue body、comment body、timeline、provider payload 都是 gated source。
- 2accepted candidates 写成有序 LoopX todos:repro smoke、code-context route、branch-local patch、validation、review-packet readiness。
- 3caller-approved repo 模式只在 `--execute` 时检查本地 repo,并且输出 repo-relative changed files、validation pass/fail 和 PR-readiness。
- 4外部 comment、PR creation、merge、publish、destructive git 和 production action 都保留为显式 gate。
用户看到什么
维护者给出一个 public issue/PR signal 后,可以得到一个先复现、再修复、再验证、最后交给 review 的闭环。
用户不需要把每个 review comment 手动改写成 agent prompt,也不会把原始 issue body 或本地路径泄漏进公开 artifact。
仓库来源
docs/capabilities/issue-fix/README.mdworkflow contractdocs/capabilities/issue-fix/protocols/issue-fix-workflow-contract-v0.mdacceptance loopdocs/capabilities/issue-fix/protocols/issue-fix-acceptance-loop-v0.mdworkflow smokeexamples/issue-fix-workflow-plan-smoke.pyacceptance smokeexamples/issue-fix-acceptance-loop-smoke.py证据边界. Public-safe pattern case only; no private screenshots, raw gated issue bodies, internal review notes, local paths, raw logs, credentials, or unpublished repository artifacts.