fix(templates): ask no pin in a review's goal statement #165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/review-goal-pins"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
An agent running
review-prwrites a goal statement for the pullrequest in the form the work template gives a Brief. That form's
Constraints ask a pin first for any kept behavior that no test guards.
A review of someone else's pull request commits nothing to it, so the
pin can never exist. Today the agent either stops to ask whether to
write one, or writes a constraint that asks for one, and the reviewers
then judge the pull request against a test nobody can add. Fixes #153.
I also considered splitting the pin clause out of the work template so
the review template could leave it out by name. I set that aside
because it touches two templates to get the same effect.
What changed
The goal statement comment in
.agents/templates/review.mdnow saysthat its Constraints name, for each behavior and interface the pull
request keeps, the tests that guard it, or that none does, in place of
a pin. It gives the reason: a review commits nothing to the pull
request. The work template and the pin rule in
AGENTS.mdstay asthey are.
How to verify
On a fresh checkout of the branch, read the comment under
## Goal statementin.agents/templates/review.md. Then picture anagent writing the goal statement for a pull request that keeps a
behavior no test guards. The comment should tell it to record that no
test guards the behavior, and to add no pin. On
main, the same agentreaches the work template's "first getting a pin" clause and has
nothing to settle it. The text check
sed -n '/^## Goal statement/,/^### Problem/p' .agents/templates/review.md | grep -c -i pinprints
1on the branch and0onmain.The README's Maintenance checks pass on
579bfbd, including 299agent-configuration tests. The change, security and document reviewers
report no findings; the document reviewer's two low findings on the
draft are already applied. The behavioral evals did not run, because
each run is billed. Under the Maintenance section, that run is for the
maintainer before merging a template change.
579bfbdf21to856fb710a2