Reviews only in interactive sessions (forge config "reviews") #52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of #23. After #48 is merged; independent of #49 to #51.
Goal
With the forge config option
"reviews": "interactive"(default"all"), the factory never posts a review in a headless run. In interactive sessions the agent proposes each comment and posts only those the person approves. Works for every forge.Required facts
forge.Policy(internal/forge/policy.go:17) does not know whether a run is interactive.factory mcpbuilds its own fromFACTORY_*variables in internal/ops/env.go:87.Changes
forge.Policygets the review setting and whether the run is interactive; the guardedPostReviewrefuses with aPolicyErrorin headless runs when the setting is"interactive".factory mcp(a newFACTORY_*variable).skills/review-pr/SKILL.md: in an interactive session with this setting, propose each comment and post only the approved ones. The pull request needs an Evidence section (AGENTS.md): #23, comment 275, answer 3.Tests
"all"unchanged.Docs (same pull request)
Done criteria
just checkpasses.