fix(agents): require PR readiness before review - #1477
Conversation
There was a problem hiding this comment.
Ally — Consolidated PR Review
Lenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex.
Reviewed head: e114c70
Critical Issues (0)
Important Issues (1)
- [native-codex] `packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/SKILL.md:229` — The new pre-review gate presents `commitperclip PR Review` as a required Paperclip-repository workflow, but this reusable GitHub workflow skill can be used in repositories that do not ship that workflow; the default bundle also repeats the unconditional requirement at `server/src/onboarding-assets/default/AGENTS.md:24`, where it can make unrelated issue handoffs appear blocked.
- Make the rule conditional on detecting the repository's actual commitperclip workflow/checker (and keep the existing template conditional), or explicitly scope the skill and managed instruction to repos that install commitperclip. For non-commitperclip repositories, instruct agents to wait for the repository's actual quality gates instead.
Suggestions (0)
Strengths
- The workflow guidance mirrors the repository template headings and exact dedup-search checkbox text.
- The catalog and managed-bundle tests cover propagation of the new instruction text.
- The generated catalog manifest is refreshed with the changed skill content hash.
Recommended Action
- Address the Important issue before merge.
- Re-run the relevant catalog and managed-bundle tests after scoping the gate.
|
Addressed the Important finding in commit The reusable workflow and managed Verification: catalog manifest validation passed; the focused catalog regression passed. The broader local suites still contain unrelated pre-existing timeout failures in shared reviewer recovery and two server route cases. |
There was a problem hiding this comment.
Ally — Consolidated PR Review
Lenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex.
Reviewed head: 15a8d06
Prior Findings Dispositioned (1)
- prior:e114c70 important 1 — still-present —
packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/SKILL.md:242— The conditional commitperclip paragraph now defers non-commitperclip repositories to their actual gates, but the next checklist still unconditionally requires the exact duplicate-search checkbox. A repository without that template/checkbox can therefore still be blocked by Paperclip-specific guidance; the current default bundle repeats the same unconditional requirement atserver/src/onboarding-assets/default/AGENTS.md:24.
Critical Issues (0)
Important Issues (1)
- [native-codex]
packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/SKILL.md:242— The new conditional repository-gate guidance is undermined by the unconditional requirement to confirm the exact Paperclip duplicate-search checkbox. Reusable guidance can be installed in repositories without that template or checkbox, so those agents may still wait indefinitely for a gate that cannot exist; the propagated defaultAGENTS.mdinstruction has the same issue atserver/src/onboarding-assets/default/AGENTS.md:24.- Scope the checkbox requirement to repositories that have the relevant template, or state that repositories without it should follow their own duplicate-search and review requirements. Add a regression test covering the non-template/non-commitperclip path rather than only asserting that the conditional wording is present.
Suggestions (0)
Strengths
- The commitperclip paragraph now explicitly detects the repository’s actual workflow/checker and defers to other repositories’ quality gates.
- The generated catalog metadata and managed-bundle propagation assertions were updated for the new guidance.
Recommended Action
- Address the Important issue before merge.
- Add a regression assertion for repositories without the Paperclip template and commitperclip checker.
|
Addressed the remaining Important finding in commit The PR workflow and managed Verification: focused catalog regression passed; catalog manifest validation passed. The broader local suites retain unrelated pre-existing timeout failures. |
There was a problem hiding this comment.
Ally — Consolidated PR Review
Lenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex.
Reviewed head: 190458c
Prior Findings Dispositioned (1)
- prior:e114c70 important 1 — fixed —
packages/skills-catalog/catalog/bundled/software-development/github-pr-workflow/SKILL.md:242— The current guidance makes the dedup-search checkbox conditional on the repository's checker or template and directs repositories without commitperclip to their own quality gates; the propagated default bundle carries the same conditional rule atserver/src/onboarding-assets/default/AGENTS.md:24.
Critical Issues (0)
Important Issues (0)
Suggestions (0)
Strengths
- The reusable workflow now scopes Paperclip-specific template and dedup requirements to repositories that actually define them.
- The pre-review gate distinguishes commitperclip repositories from repositories with other quality gates.
- Catalog and managed-bundle regression assertions cover the conditional wording and propagation.
- The generated catalog metadata is refreshed for the changed skill content.
Recommended Action
- No Critical or Important issues found; safe to merge.
- Consider Suggestions opportunistically.
Thinking Path
Linked Issues or Issue Description
No existing GitHub issue matched this focused instruction and regression-test change. Related implementation and operational context was reviewed in #1325, #1436, #1471, and #1141; none duplicates this change.
What happened
Agents can ask Ally or a human to review before the repository PR template is complete and before the commitperclip quality gate has passed.
Expected behavior
Agents should complete the repository template, search for duplicate or related PRs, check the dedup affirmation, and wait for commitperclip and related quality gates before requesting review.
Steps to reproduce
.github/PULL_REQUEST_TEMPLATE.mdand commitperclip enabled.Paperclip version or commit
c28f893f270665d16fb9c9f2a7a17878bec85bdd(Blockcast/master)Deployment mode
Self-hosted server with managed agent instruction bundles; change verified from source.
What Changed
AGENTS.mdbundle so newly materialized agents receive it.Verification
pnpm --filter @paperclipai/skills-catalog validatepnpm --filter @paperclipai/skills-catalog test -- --run packages/skills-catalog/src/shipped-catalog.test.ts(36 tests passed)pnpm exec vitest run server/src/__tests__/agent-skills-routes.test.ts(20 tests passed)git diff --check origin/master...HEADRisks
Low risk. This changes agent guidance and regression assertions only; it does not alter runtime API behavior, persistence, or deployment configuration. Reverting the commit restores the prior guidance and catalog manifest.
Model Used
OpenAI Codex powered by GPT-5, tool-enabled coding agent with repository, shell, GitHub API, and Kubernetes inspection capabilities.
Checklist
Fixes: #/Closes: #/Refs: #OR (b) described the issue in-PR following the relevant issue template