Skip to content

No automated check ties skill_rules.rs's imperative/prose fields to cli.md's hand-written prose #2629

Closed

Description

@mstomar125

Problem

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

  1. malibio commented on Sep 28, 2026

    @malibio
    Collaborator

    Frontend: 280 files / 5225 tests passed

  2. self-assigned this
    on Sep 28, 2026
  3. added 2 commits that reference this issue on Sep 28, 2026
    fb6be67
    e193401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions