fix: match the guide and agent rules to the skills #202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/workflow-drift"
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
A review of
docs/workflows/against the skills, after #201, found fiveplaces that say what the skills no longer do. Someone who wants to
upgrade the agent policy finds no
foundry-upgradein the guide'sindex, which lost it when
ac48f83grouped the guide by area. Thesecurity-reviewerdescriptions still nameverify-execution, whichstopped calling it in
c390726, and thedocument-reviewerones leaveout
design, which has called it since186d88f, so whoever picks asubagent by its description sees the wrong callers. Two charts, the work
template's list of the skills that keep Status, and the guide's claim
that
designsettles a diagnosis's fix options disagree with theirskills too.
A test tying each description to its callers would keep that drift from
coming back, but it adds a check beyond this fix and can be a change of
its own.
What changed
The guide's index lists
foundry-upgradeunder Code, noting that itfollows the source's
UPGRADING.mdrather than the shared chain.The three adapters of each reviewer name the skills that call it today:
run-reviewsforsecurity-reviewer, andrun-reviews,design,document-feature, andimplement-featurefordocument-reviewer.refactor-code's chart leaves a security flaw's code to the user'sdecision, recorded without naming the flaw, as the skill does, and the
chain chart draws
route-back's way todiagnoseand back to the firstphase left undone.
The work template counts
implement-feature'sbefore-plan, whichwrites Blocked on, among the skills that keep Status.
designstep 2 lists a choice among the fix options ofdiagnosis.mdthat the Brief leaves open, and the guide now says
designsettles thatchoice rather than every option.
How to verify
docs/workflows/README.mdas someone who wants to upgrade theagent policy: the Code group ends with a link to
foundry-upgrade.md, while onmainnothing in the index leadsthere.
grep -rl security-reviewer .agents/skillsandgrep -rl document-reviewer .agents/skillswith the description lineof each reviewer's adapters in
.claude/agents/,.codex/agents/,and
.opencode/agents/: they name the same skills, apart fromsettle-findings, which only settles findings.docs/workflows/refactor-code.mdanddocs/workflows/how-it-works.mdrendered here: the security-flawnode names the user's decision, and dotted arrows run from
route-backtodiagnoseand fromdiagnoseback to thefirst-phase question.
The checks of
docs/MAINTENANCE.mdpass on the tip. No test checks thistext, so none is added. Not tried: rendering the charts locally, since
no Mermaid renderer is installed, and the behavioral evals, which are
billed and left to the maintainer before the merge.
Considerations
verify-executionstays in the template's list of the skills that keepStatus, although none of its steps writes it: the list is where that
duty lives, and the phase keeps the current action up to date through
its review rounds, which a resumed session reads first.