Repository navigation
Description
Agent Brief
Type: Task
Summary: Correct the header comments of the discipline, discovery, docs-hygiene and education setup-apply.mjs entry points so they name the settings file as <home>/<plugin>.yaml and point at the shared library for usage; part 2 corrects the other four (part of restructuring pass #14774).
Current behavior:
lib/setup-apply.mjs:1-3 says a plugin's settings file is <home>/<plugin>.yaml, where <home> is the repository's convention home, and :7-11 gives the full usage of an entry point, including --home, --decline, --state and --check [--ref <ref>]. Four entry points name the file as docs/conventions/<plugin>.yaml, which is only the default home, and carry a partial usage block without those options:
plugins/discipline/skills/setup/scripts/setup-apply.mjs:3, usage:5-7plugins/discovery/skills/setup/scripts/setup-apply.mjs:3, usage:5-7plugins/docs-hygiene/skills/setup/scripts/setup-apply.mjs:2, usage:5-7plugins/education/skills/setup/scripts/setup-apply.mjs:2, usage:5-7
Each already says the options, guarantees and exit codes are in ../../../lib/setup-apply.mjs.
Desired behavior:
- Each header names the file as
<home>/<plugin>.yaml(for example<home>/discipline.yaml), the form oflib/setup-apply.mjs:1-3. - Each drops its partial usage lines and keeps its pointer to
../../../lib/setup-apply.mjs. - Each keeps its plugin-specific notes: discipline's key-name note (
:9-11), docs-hygiene's--checknote (:9-11) and YAML reader note (:13-15), education's YAML reader note (:9-11). - Comments only: no code line changes.
Files:
plugins/discipline/skills/setup/scripts/setup-apply.mjsplugins/discovery/skills/setup/scripts/setup-apply.mjsplugins/docs-hygiene/skills/setup/scripts/setup-apply.mjsplugins/education/skills/setup/scripts/setup-apply.mjs- a new
patchfragment in each of.changes/discipline/,.changes/discovery/,.changes/docs-hygiene/and.changes/education/:### Changed, "Internal restructuring, no behavior change."
Key interfaces:
- Each entry point's arguments, output, exit codes and printed usage: unchanged; the printed usage comes from the shared library, not these comments.
- No test or eval reads these header lines.
Acceptance criteria:
- None of the four headers names
docs/conventions/<plugin>.yamlor carries a partial usage block, and each names<home>/<plugin>.yaml. - Behavior is unchanged: the same outputs, exit codes and printed results for the same inputs.
- The diff edits only the listed files and the lines of a test that assert on them when the change breaks that assertion.
- The pull request stays within 400 changed lines and 15 hand-edited files.
- The four plugins'
skills/setup/scripts/setup-apply.test.shpass. - ci-status is green.
Out of scope:
- The planning, review, session-flow and verification entry points (part 2), the path wiring in each entry point,
lib/setup-apply.mjs, other duplication, eval cases, fixtures, and skill and agent text.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
melodic-automation-lanes commentedon Nov 12, 2026
{"v":1,"actor_id":337595936,"title_sha256":"617a141447460290b9bb8bfd192dd4617cc45efea4c9a411f5c5e9dcd958d6bb","body_sha256":"b0c285e4cd435cfaa0ad9bdaf3221fd2ac85d1277a747d00f4014e4f9c54f3dc"}
github-actions commentedon Nov 12, 2026