Skip to content

GOVERNANCE.md Editor and Tasks Names .vscode/settings.json to Forbid It, Which Every Carrier That Ever Deleted That File Reads as a Dead Path #1612

Closed

Description

@ptr727

The shape

GOVERNANCE.md "Editor and Tasks" tells a repository that VS Code settings live only in the
.code-workspace file, and names the two paths they must not live in:

All VS Code settings and extension recommendations live only here, never in a standalone
.vscode/settings.json or .vscode/extensions.json
(.vscode/ holds only tasks.json and
launch.json).

The rule is right and the sentence has to name those paths to state it. prose_lint.py's
dead-path check reads a named path and asks whether the tree still has it, so a path named
precisely because it must not exist is a violation by construction.

Why it does not fire here, and does downstream

dead-path keys on deletion history rather than on absence, so it fires only where the path was
once tracked and then removed. In ptr727/HomeAutomation-Config it was:

$ git log --oneline --diff-filter=D -- .vscode/settings.json
44f45bb Flair release

$ python3 scripts/prose_lint.py GOVERNANCE.md --check dead-path
GOVERNANCE.md:250: dead-path: path '.vscode/settings.json' is deleted from this tree
  -> re-point, rewrite, or remove the stale mention
1 violation(s) across 1 file(s)

.vscode/extensions.json was never tracked there, so only one of the two paths in the sentence
trips. In the hub the check reports nothing, so the canonical text looks clean at its source while
carrying a violation into any repository whose history happens to contain that deletion.

That is what makes it invisible from here rather than merely unfixed: nothing in the hub's own gate
can surface it.

Why the carrier cannot fix it

Editor and Tasks is declared verbatim in spec/section-model.md, so a carrying repository owes
byte-identical text and cannot reword the sentence without failing fidelity. Excluding the file
would hide a gate rather than satisfy one. The fix has to be here.

It is only latent today because the gate runs in --diff mode against a pull request's changed
lines, and that line is not one of them. Any change that touches it, a future resync of this section
included, turns a latent violation into a red required check on a branch that did nothing wrong.

Same class as #1403

#1403 was canonical skill text naming hub-only repo-config/ paths, which every downstream prose
gate read as dead paths. This is the same failure with a different trigger: there the path was
hub-only, here it is a path the rule exists to forbid. Both are canonical text that cannot pass a
downstream gate and that the downstream cannot edit.

Possible fixes, for triage rather than as a recommendation

  • Spell the paths so the checker does not read them as paths, for example naming the files without
    the .vscode/ prefix, given the sentence already says which directory it means.
  • Give dead-path a way to mark a deliberately-absent path, which would also serve any other rule
    that has to name a file in order to forbid it.
  • Exempt a path the surrounding sentence states must not exist.

Reported from a resync of ptr727/HomeAutomation-Config against hub 6b1ab9a, with the maintainer's
permission to file it here.

Activity

  1. ptr727 commented on Oct 1, 2026

    @ptr727
    OwnerAuthor

    This happened on 2026-10-01 in the ptr727/HomeAutomation-Config resync, measured at hub main 0378c78 (audit run 2026-10-01T17:25:38Z | hub 0378c78).

    carry.py apply-sections re-vendored "Editor and Tasks" with every other stale section. The pre-commit prose gate, diff-scoped and fetched from hub main, then refused the commit:

    GOVERNANCE.md:257: dead-path: path '.vscode/settings.json' is deleted from this tree -> re-point, rewrite, or remove the stale mention

    The resync (ptr727/HomeAutomation-Config#677) kept that one section at its prior revision and carried the rest. The held section is tracked downstream at ptr727/HomeAutomation-Config#676, together with the extension-set trim from #2015, which lives in the same section.

    Holding the section back has a second cost. The held text still says "Commit all state first, prefer opening the folder rather than the workspace while editing it, or leave workspace edits to the maintainer". That contradicts the re-vendored "Verification Discipline", which forbids editing a loaded .code-workspace at all. The current canonical text defers to "Verification Discipline", so the contradiction stays in every carrier holding this section back until this issue is fixed.

  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

  3. ptr727 commented on Nov 9, 2026

    @ptr727
    OwnerAuthor

    A concrete wrong result, from a resync of ptr727/NxWitness (hub c175d557, audit run 2026-11-09T16:22:15Z).

    carry.py apply-sections re-vendored the stale "Editor and Tasks" section, so its line naming .vscode/settings.json became a changed line. NxWitness tracked that file once, years ago. prose_lint.py --diff origin/develop GOVERNANCE.md then reports:

    GOVERNANCE.md:295: dead-path: path '.vscode/settings.json' is deleted from this tree -> re-point, rewrite, or remove the stale mention
    

    None of the three remedies is open to a carrier, since the line is byte-locked verbatim text. NxWitness's CI pins the same gate, so its pull request would fail on carried text it may not edit. The workaround used was a root .prose-gate.json adding .vscode/settings.json to hub_hosted (ptr727/NxWitness#667). That works, but it mislabels the path, and every carrier that ever deleted the file pays for it at its next resync. A fleet-side fix would be an exemption in prose-gate.json for a path named by a carried verbatim unit, or rewording the sentence so it names no path. Leaving the reopen decision to the maintainer.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions