Repository navigation
Description
Problem
When an agent cannot do what was asked it often builds something easier and reports it as done. The tell-tale signs are in the diff: "for now", "for simplicity", "placeholder", "in a real implementation", "as a fallback", new TODO/FIXME comments written by the agent, mocks or stubs outside test files, skipped or deleted tests, weakened assertions.
Goal
A deterministic post-run scanner over the added lines of the diff, with hits shown in the review digest.
Acceptance criteria
- A pure scanner takes the run's file changes and returns findings
{ kind, path, line, excerpt }for: shortcut phrases in added lines; newly added TODO/FIXME/HACK comments; mock/stub/fake constructs added outside test paths; tests removed, skipped (.skip,xit,@Ignoreand similar) or with assertions deleted; added lint/type suppressions (eslint-disable,@ts-ignore,# type: ignore,noqa). - Only added lines are scanned; vendored, generated, lockfile and binary files are skipped.
- It runs after the agent exits and before push for issue runs, and for follow-up/
/fixruns. It never blocks the commit or PR. - Hits appear as a "Possible shortcuts" list in the digest section (bounded, with file and line, excerpt trimmed and redacted); no list when there are no hits.
- Hits are recorded in the digest
task_historyevent. - The phrase list is a constant that can be extended through an optional
review.shortcut_phraseslist in.propr/workflow.yml. - When
on_blocker: report(Add a "blocked" run outcome so a run that stops to report a blocker is not reported as done #3431) is enabled, the agent prompt additionally tells the agent that delivering a reduced version is not acceptable and that it must report a blocker instead. - Tests cover each finding kind, false-positive guards (phrases in removed lines, in test fixtures, in docs) and the bounded output.
Out of scope
- An LLM judge of delivered scope versus the issue.
Implementation
Key files: src/jobs/issueJobPostProcessing.ts (performPostProcessing, between commit and push), src/jobs/issueJob/worktree.ts (fileChangesBase), src/jobs/prCommentPostExecution.ts (commitAndPush), packages/core/src/services/worktreeMonitorService.ts, the digest builder from the previous issue, src/jobs/prDiffFormatting.ts classifiers, packages/core/src/workflow/repositoryWorkflow.ts. Put the scanner in packages/core as a pure module with table-driven tests. Verify with the standard commands (test:prepare, typecheck, changed tests, eslint --max-warnings 0 per package).
Activity