Skip to content

Three surfaces describe build_dist.py's exit-2 set and none describes it fully #1446

Closed

Description

@ptr727

Found by adversarial passes during #1441 (2026-09-08). Three surfaces describe build_dist.py --check's exit-2 set, and none of them describes it fully: scripts/README.md, .agents/skills/skill-lifecycle/SKILL.md "The Pipeline", and the module's own usage block. They disagree by omission rather than by contradiction, each at a different grain.

Read the history before editing any of them. #1441 tried four times to make one of these enumerations precise, and each attempt introduced a new defect: a false completeness claim, an invented mechanism, a scope error over a three-item list, and a widened divergence between the three surfaces. The last attempt was reverted rather than corrected. That is the reason this is filed rather than fixed, and it is the constraint on whoever picks it up.

What each surface misses

scripts/README.md:

  • "an INCLUDE_DESTINATIONS entry that is stale or carried" names two of six refusals. Also exit 2: an entry misspelled against the tree, one that is absolute or carries .., one reached through a symlink, and one under a generated tree. The skill states this correctly as "refused by the same path rules a source is held to".
  • A file that is not UTF-8 outside any region exits 2, a .source-digests/<name> stamp and a plugin.json with an invalid byte both do. The second bucket names no such cause, and "not UTF-8" sits inside the first bucket, scoped to "an include region it cannot render". Invalid JSON in plugin.json exits 1, so the two genuinely differ.
  • The ..-segment refusal and the non-string tree-source refusal, both added on Give the Include Mechanism a Declared Destination List, and Point Where Three Surfaces Restated #1441, are unnamed. This was the low-confidence finding whose fix was reverted.

.agents/skills/skill-lifecycle/SKILL.md "The Pipeline":

The module usage block in scripts/build_dist.py:

  • Frames the manifest failure as a property of an entry ("measured against a manifest it cannot read"), covering only the unreadable case, so the shape and tree-source refusals are unnamed.
  • Still says "a symlink under .agents/skills/", where a symlink deeper inside a generated skill directory also exits 2.

The question underneath

Whether these three should converge on one set at all, or whether each is deliberately at its own grain, is the decision worth making before any edit. The evidence from #1441 is that growing one of them accurately is expensive and that stating the category rather than the items is the cheaper correct form.

Activity

  1. added
    skills
    prose
    on Sep 8, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391, item 3: the prose and documentation backlog frozen by #1311 in September is closed rather than worked one issue at a time, keeping open only the issues where a document states something the shipped code or workflow does not do. This issue was read as wording, structure, restatement, or a gap in guidance rather than a falsified claim. Reopen with the sentence and the behavior it misstates if that reading is wrong.

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

    proseskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions