fix(guide,suggest): word agent guidance no stronger than the evidence #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/honest-agent-guidance"
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?
Stacked on #1; review after it. Retarget to
mainonce it merges.Problem
Agent-facing text claimed more than the rules support:
--policyand led with removal under the default wire-up policy.--dir libis scanned.suggest --format agentsaid "Work them in this order" with no caution, scored wiring up a dead handler as needing no product judgement, and grouped fixes named only the first event.verify:hints dropped the path and--baseline, so an agent that followed one saw accepted findings return and concluded its fix failed.Solution
Remediation text now follows
--policy. Epithets are softened to match rule confidence, and scope claims are tied to the scanned directories. The agent plan opens with a caution ("Order is a score, not a mandate"), and grouped actions name every target. Verify hints are paste-ready commands. The README fix-order example is now real output from thestuck_loadingfixture instead of a hand-written sample. Process files are aligned:securityis allowed by commitlint,PIPE_SKIP_PREPUSH_GATEis used everywhere, and dead CODEOWNERS and template items are removed.Rule changes
Release Note
--policy, scope their claims to what was scanned, and emit verify commands that can be pasted as-is.Breaking Changes
Tests
scripts/lint.sh format|analyze|test: clean, 142 passed.Documentation
AI usage
Three ways the agent plan claimed more than it knew: - It opened with "Work them in this order" and nothing else. It now opens with "Static heuristics; confirm each against the cited file. Order is a score, not a mandate." - Under the default wire-up policy a dead handler still scored "no product judgement needed (+15)". Wiring one up means deciding which control should dispatch the event, which is product judgement; the bonus now applies only under --policy remove, and buildWorkPlan takes the policy. - A grouped action used its first finding's remediation, so a union with five dead handlers said "dispatch LoadItems from the UI" and nothing about the other four. A group now gets an action built from all of its targets ("dispatch each of A, B, C ..."), and targets include the variant and member lists that grouped findings carry.The markdown report's summary line counted every finding while its heading and the severity counts beside it counted only new ones, so a fully baselined run read "20 findings ({error: 0, warning: 0, info: 0})" above "## Findings (0)". The summary now counts new findings and notes how many are baselined. Also: loading-flag-not-reset rendered its flag as `SettingsState`loading``, a missing `.` that produced two adjacent code spans. It now reads `SettingsState.loading`.1d2eae16f6todd74828e1d