feat(agents): add action-hints footer to review, triage, and fix comments#53
feat(agents): add action-hints footer to review, triage, and fix comments#53rh-hemartin wants to merge 1 commit into
Conversation
|
🤖 Review · |
PR Summary by QodoAdd “Next steps” action-hints footers to review/triage specs and fix summaries
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
55 rules 1.
|
| - **No general footer.** Do not repeat the outcome or include | ||
| boilerplate about pushes clearing the review. **Exception:** for | ||
| `request-changes` outcomes only, append an action-hints footer | ||
| after the findings: | ||
|
|
||
| ```markdown | ||
| --- | ||
| **Next steps:** | ||
| - `/fs-fix` — agent addresses review findings automatically | ||
| - `/fs-fix <your instruction>` — agent fixes with your specific guidance | ||
| - Push commits directly — review re-runs automatically on push | ||
| - `/fs-fix-stop` — disable automatic fix runs for this PR | ||
| ``` | ||
|
|
||
| Omit this footer for `approve`, `comment`, and `reject` outcomes. |
There was a problem hiding this comment.
3. Protected paths changed 📜 Skill insight § Compliance
This PR modifies files under protected governance/infrastructure paths (agents/, scripts/, skills/), which must not be auto-approved and require explicit human review. Even with an issue link, these paths require elevated scrutiny due to their ability to affect agent behavior and automation.
Agent Prompt
## Issue description
Protected governance/infrastructure paths were modified. These changes must be treated as requiring explicit human review (not auto-approval), and the PR should include clear justification/authorization.
## Issue Context
Protected-path changes include updates to agent/skill instructions and automation scripts.
## Fix Focus Areas
- agents/triage.md[318-325]
- scripts/process-fix-result.py[1-198]
- skills/pr-review/SKILL.md[845-859]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
cf90488 to
a2c10f3
Compare
|
🤖 Finished Review · ✅ Success · Started 6:47 AM UTC · Completed 7:02 AM UTC |
ReviewFindingsMedium
Low
Previous runReviewFindingsMedium
Low
Labels: All modified files are in protected paths requiring manual review. The PR adds new agent functionality. |
waynesun09
left a comment
There was a problem hiding this comment.
Multi-agent review — #53
Agents: 5 (Claude ×3, Gemini, Codex) | Findings: 14 total, 5 unique MEDIUM+ after dedup and verification against the PR branch
Context: extraction gap
The existing jsonschema dependency finding (already posted by qodo) is not new to this PR — it's a consequence of post-fix.sh being extracted from fullsend with the process-fix-result.py call baked in, while the script itself wasn't extracted. This PR fills that gap. The fix should still land here since this is the PR introducing the script, but it's not a regression.
High (1) — not inline
Tests not wired into CI
scripts/process-fix-result-test.py adds 27 tests but is not listed in the Makefile script-test target. The PR branch Makefile is identical to main. CI runs make script-test, which only runs shell-based test files — these Python tests will never execute in CI.
Suggested fix: Add to the Makefile script-test target:
$(call run-timed,python3 scripts/process-fix-result-test.py)The CI workflow already installs jsonschema==4.23.0 via uv pip install --system, so the dependency is available in the test path.
Medium (2) — posted inline
- Truncation silently destroys the footer (
process-fix-result.py:91) — 2/5 agents consensus - stdout/stderr capture lacks try/finally (
process-fix-result-test.py:170) — 3/5 agents consensus
Already posted (skipped)
- jsonschema dependency (qodo, line 22) — already covered
- GHA workflow command injection ×2 (lines 108, 147) — already covered as low
Assisted-by: Claude (review), Gemini (review), Codex (review)
4c077f0 to
461a512
Compare
|
🤖 Review · |
…ents Add "Next steps" footers showing available slash commands after review, triage, and fix agent comments so users know what actions are available. Review footer (request-changes only): /fs-fix, /fs-fix-stop, push. Triage footer (sufficient only): /fs-code, appended by post-triage.sh. Fix footer: /fs-review, /fs-fix, push — survives body truncation by reserving space for the suffix before cutting the main body. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Hector Martinez <hemartin@redhat.com>
461a512 to
a57e3b5
Compare
|
🤖 Finished Review · ✅ Success · Started 8:04 AM UTC · Completed 8:21 AM UTC |
Summary
request-changesoutcomes, showing/fs-fix,/fs-fix <instruction>, push, and/fs-fix-stopsufficientaction, showing/fs-codeand/fs-code <instruction>/fs-review,/fs-fix <instruction>, and pushCloses #1789
Test plan
process-fix-result-test.pypasses (27 tests)request-changesoutcome — verify footer appearssufficientaction — verify footer appearsapprove,comment,reject,insufficient,duplicate,prerequisites,questionoutcomes🤖 Generated with Claude Code