Policy: a refine run posts at most one comment #46
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?
After #28 is merged.
Problem
The refine-item skill allows one comment per run: questions (headless) or the result. In interactive runs it posts nothing but the result. A local model broke this in an interactive run on #23: it posted questions twice (comments 416 and 417, nearly identical), then the result (418). A skill rule does not hold with local models; a deterministic check does.
Change
forge.Policygets a limit on comments (e.g.MaxComments int, 0 = unlimited). The guardedCommentOnIssue(internal/forge/policy.go:222) counts successful comments and refuses further ones with aPolicyErrorexplaining that this run may post only one comment, which should be the final result.factory mcpis one process per run and builds its policy from the environment (internal/ops/env.go:87). The dispatcher sets the limit through a newFACTORY_*variable for the refine role only.Done criteria
just checkpasses.