You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No automated check ties skill_rules.rs's imperative/prose fields to cli.md's hand-written prose #2629
packages/agent/src/skill_rules.rs's SchemaRule struct carries two hand-written prose forms per rule (imperative, read by the in-app local agent; prose, folded into the generated SKILL.md), and packages/skill/references/cli.md separately carries its own hand-written paragraph per rule for external PTY agents reading the markdown directly. All three are meant to convey the same guidance but are three independently-maintained strings.
The only automated sync check, every_schema_rule_reaches_the_skill in packages/cli/tests/skill_md_generation.rs, verifies just the first 60 chars of each rule's prose field appear in the generated skill.md — it says nothing about imperative, and nothing about cli.md's separate hand-written paragraphs at all.
Confirmed pre-existing (not introduced by any single PR): GROUPING_IS_COLLECTIONS's prose field is word-for-word identical to its cli.md paragraph, and its imperative field is an independently-worded third copy — with zero automated tie between any of the three. Nothing catches one drifting from the others if a future edit only touches one copy.
What's needed
Some mechanism (a test asserting keyword/example parity, or a shared source of truth one of the three renders from) so a future wording fix to one copy is caught if the other(s) go stale. Left unfiled/unfixed elsewhere; flagged during #2467's review as a real gap but explicitly out of scope for that PR (which only ported existing content to close one known instance of drift, following the established manual-sync convention).
Context
Flagged during #2467's code review (PR #2628). Touches packages/agent, which is Michael's lane — needs his input on the right fix shape (shared source of truth vs. a parity test) before implementation.
Activity
malibio commentedon Sep 28, 2026
Frontend: 280 files / 5225 tests passed
Tie SchemaRule's imperative and prose forms together with parity tests (
Tie SchemaRule's imperative and prose forms together with parity tests (