fix: strengthen pr-reviewer cross-file context prompt
Merged
KH
5mo ago+2+2+0123456789-1-1-0123456789
Summary
- Strengthens the pr-reviewer harness prompt to explicitly use the checked-out repo to trace the impact of the current diff across callers, types, tests, config, and related files.
- Keeps scope bounded to breakage caused by this PR diff, not a general full-repo audit.
Assessment
- Cloud runs the harness with
cwd: ctx.sandbox.cwd, and the PR workspace setup creates a real git checkout at that cwd. - The checkout path fetches
refs/pull/<number>/head, checks outpr-head, and guards that the worktree remains a git repo. .workforce/pr.diffis generated as a three-dot binary diff fromMERGE_BASE...pr-head; for very large diffs cloud caps it atPR_DIFF_MAX_BYTESand appends a truncation notice, so whole-repo context remains important for truncated diffs too.- The previous prompt allowed context reads but did not explicitly require tracing outside-diff callers/types/tests/configs, which was weak for signature/API-impact review.
Deployment note
This prompt change requires redeploying the pr-reviewer persona to take effect. This PR does not deploy it.
Verification
npm run typechecknpm run compileattempted, but the repo script currently fails because the installedagentworkforceCLI does not provide the scriptedpersonasubcommand (Unknown subcommand "persona").
Summary by cubic
Strengthens the pr-reviewer prompt to trace cross-file impact using the checked-out repo. It can now flag and fix breakage in callers, types, tests, and config outside the changed-file list, while staying scoped to this PR (not a full-repo audit).