Skip to content

Correct the setup-apply entry-point headers to name the convention home (part 1 of 2) #15638

Description

@kyle-sexton

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-7
  • plugins/discovery/skills/setup/scripts/setup-apply.mjs:3, usage :5-7
  • plugins/docs-hygiene/skills/setup/scripts/setup-apply.mjs:2, usage :5-7
  • plugins/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 of lib/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 --check note (: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.mjs
  • plugins/discovery/skills/setup/scripts/setup-apply.mjs
  • plugins/docs-hygiene/skills/setup/scripts/setup-apply.mjs
  • plugins/education/skills/setup/scripts/setup-apply.mjs
  • a new patch fragment 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>.yaml or 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.sh pass.
  • 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.

Activity

  1. added
    status: ready
    on Nov 12, 2026
  2. added theissue type on Nov 12, 2026
  3. removed
    status: ready
    on Nov 12, 2026
  4. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"617a141447460290b9bb8bfd192dd4617cc45efea4c9a411f5c5e9dcd958d6bb","body_sha256":"b0c285e4cd435cfaa0ad9bdaf3221fd2ac85d1277a747d00f4014e4f9c54f3dc"}

  5. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions