Skip to content

Promotion candidates and two interface gaps found resyncing NxWitness #1116

Open

Description

@ptr727

Found while resyncing ptr727/NxWitness against hub f3b4cc9. Filing rather than
changing anything here, per the resync's own "fix systemic drift in the hub instead"
rule. Nothing in this issue is a defect in NxWitness.

Context

NxWitness's AGENTS.md predates the AGENTS.md/GOVERNANCE.md router split, so it
still carries topical rule text inline. Running the
carried-instruction-file-guard distinctive-phrase probe over it against the hub
canonical (AGENTS.md, GOVERNANCE.md, CODESTYLE.md, WORKFLOW.md,
OPERATIONS.md, README.md) turned up rules that are absent from all six and
that read as fleet-wide rather than repo-specific. Those are listed below as
promotion candidates.

A caveat on the probe's reach: the hub has moved much rule text into
.agents/skills/*/SKILL.md, and the probe was scoped to the six Markdown files.
Candidates 5 and 7 are marked accordingly and want a second check against the named
Skill before anyone acts on them.

Promotion candidates

  1. The develop-leads-main-by-a-minor version cadence, with bump-version-X.Y
    as the PR convention. Release-model mechanics that GOVERNANCE.md "Release
    Model" does not state.
  2. The maintenance-promotion version hold: git checkout main -- version.json
    when promoting a maintenance fix that must not carry develop's minor bump.
  3. The one-time floor bump carve-out, a deliberate maintainer-directed version
    floor move during a build/release overhaul, stated as an exception to the
    routine cadence.
  4. Mirror to develop any change that lands on main outside the
    feature -> develop -> main flow
    , with git diff origin/develop origin/main as
    the concrete pre-work staleness check. The case is a security PR or hotfix
    landing on main directly; GOVERNANCE.md "Branching Model" does not give this
    check.
  5. Closes #N belongs on the develop -> main promotion PR, not on the
    feature PR or the develop PR, so the issue closes when the work actually
    reaches main.
  6. The title-case bind-word list (a, an, the, and, but, or, of, in, on, at, to, by, for, from) plus the hyphenated-compound rule. Check
    comment-and-doc-style SKILL.md first.
  7. file does not report CRLF for JSON, as a caveat on byte-checking line
    endings. GOVERNANCE.md:185 covers the Python read/write flattening mechanism
    but not this detection failure. Relevant now that the fleet is normalizing to
    LF.
  8. The three-rounds heuristic: three review rounds on the same style category
    means the rule is wrong, not the author, so flip the rule once and stick to it.
    Check pr-review-conduct SKILL.md first.

One negative candidate

NxWitness's AGENTS.md "PR Review Etiquette" opens with a blockquote reading
"Mandatory in every derived repo ... carried verbatim". That directive belongs
to the pre-Skill carry model the hub has since retired. It should be deleted on the
downstream side rather than promoted, and it is worth checking whether any other
repo still carries the same blockquote and would re-assert a model the hub no
longer runs.

Two interface findings that look like drift and are not

spec/audit.py reports these against NxWitness:

DRIFT  interface: .github/workflows/publish-release.yml missing required job 'publish'
DRIFT  interface: .github/workflows/merge-bot-pull-request.yml missing required job 'merge-bot'

Both requiredJobKeys contracts in spec/files.json resolve, through
requireTokensInJob, to calling a hub-hosted task workflow
(build-release-task.yml, merge-bot-task.yml). NxWitness has not adopted either,
and spec/divergences.json already says of the release chain that "adoption is a
separate, later change per repo". NxWitness's own jobs are plan, get-version,
build-base, validate, build-docker, github-release, docker-readme-repos,
docker-readme for the publisher, and merge-dependabot, merge-codegen,
disable-auto-merge-on-maintainer-push for the bot merger. That shape is its
documented multi-image, shared-base fan-out.

So the finding is accurate about the contract and misleading about the remedy: a
repo could satisfy it by renaming a job, which would report conformance without
adopting anything. Worth considering whether a pre-adoption repo should report
these as a pending adoption class rather than DRIFT, the way the manifest
already distinguishes a LETTER from a DRIFT.

Not filed here

NxWitness's own convergence issue is separate and uses
python3 spec/audit.py --issue NxWitness. No audit report or registry change is
being written back to this repo as part of that resync.

Activity

  1. ptr727 commented on Aug 30, 2026

    @ptr727
    OwnerAuthor

    Two more, found completing the AGENTS.md split in ptr727/NxWitness (see ptr727/NxWitness#551). Both are rules that existed in NxWitness's pre-split AGENTS.md, are absent from the current hub canonical and from every carried Skill, and read as fleet law rather than repo-specific.

    9. Leave human-authored comments exactly as written

    NxWitness's pre-split AGENTS.md, under "Comments":

    Leave human-authored comments and emojis exactly as written - do not reword, trim, reflow, or "clean" them, even if they seem to bend a rule. Revise only agent-authored comments, and match the surrounding voice when you do.

    Not in GOVERNANCE.md "Documentation Style Conventions", and not in comment-and-doc-style SKILL.md. The developer-typed-Unicode carve-out in that Skill is adjacent but governs characters, not authorship.

    This one has teeth because the carried rules actively push the other way. comment-and-doc-style tells an agent "Keep it short: one line is the default" and "Never let a comment grow across edits", so an agent editing near a maintainer's deliberately two-line comment has a rule telling it to collapse the comment and none telling it to leave a human's alone. That is a silent, low-grade erosion of maintainer-authored text, and it is the kind that nobody notices until a comment they wrote is gone.

    Carried locally into NxWitness's CODESTYLE.md for now so the rule is not lost while this is considered, but it belongs fleet-wide.

    10. Sweep stale review threads after the final push

    Same file, under "PR Review Etiquette":

    After the final push on a PR, sweep older threads from earlier rounds whose code paths no longer exist; otherwise stale unresolved markers remain in the review UI.

    Not in GOVERNANCE.md "PR Review Etiquette" and not in pr-review-conduct SKILL.md. Both cover answering and resolving a thread on the current round; neither covers a thread from round 1 whose code no longer exists by round 4. The observable result is a pull request that reads as having unresolved feedback when it does not, which is exactly the state the Merge Gate is trying to measure.

    Note on how these surfaced

    Neither was caught by the distinctive-phrase probe I ran before the split, and neither was caught by the 29-phrase preservation checklist I built from the pre-split file. Both were found by an adversarial review pass reading the original unit by unit rather than by keyword. That is worth recording on its own: a phrase probe answers "is this text in the hub", and it does not answer "is this rule anywhere", so a rule that was reworded out of existence passes both checks. The unit-by-unit read is what a split actually needs.

  2. ptr727 commented on Aug 30, 2026

    @ptr727
    OwnerAuthor

    Correction: six of the ten candidates above are wrong

    I filed these without checking them against the .agents/skills/ tree, and most of them do not survive that check. The original probe was scoped to the six top-level Markdown files and explicitly flagged several candidates as needing a second look at the named Skill first. I did not do that second look before filing. Re-measured against the carried skills in ptr727/NxWitness at the tip of ptr727/NxWitness#551, which carries .github/skills/ at hub f3b4cc9:

    # Candidate Verdict
    1 bump-version-X.Y develop-leads-main cadence Contradicted. operational-vs-release-workflow/SKILL.md:98-102 says the floor is edited "never on a fixed cadence or mechanically after a release", with "no post-release bump and no develop-ahead requirement".
    2 git checkout main -- version.json maintenance hold Contradicted, same rule. It is the mechanism for the cadence in 1.
    3 Maintainer-directed floor-bump carve-out Contradicted, same rule. The floor is edited in the PR that introduces the work.
    4 Mirror main -> develop, with the git diff origin/develop origin/main check Partially covered. SKILL.md:44 covers checking develop before branching. The other half, mirroring a change that landed on main outside the normal flow back into develop, is genuinely absent. Narrowed candidate, still open.
    5 Closes #N on the promotion PR Already in the hub, operational-vs-release-workflow/SKILL.md:62-65, with the same rationale.
    6 Title-case bind-word list Already in the hub, comment-and-doc-style/SKILL.md:234-235, with the identical word list (a, an, the, and, but, or, of, in, on, at, to, by, for, from).
    7 file does not report CRLF for JSON Already in the hub, comment-and-doc-style/references/line-endings.md:100.
    8 Three-rounds heuristic Substantially covered, pr-review-conduct/SKILL.md:129-132 ("Bouncing the same point across rounds is the signal to escalate the rule itself"). NxWitness adds only a numeric threshold and "flip the rule once and stick to it", which is a refinement rather than a missing rule. Low value.
    9 Leave human-authored comments exactly as written Confirmed absent. Not in comment-and-doc-style/SKILL.md, its three reference files, GOVERNANCE.md, or CODESTYLE.md.
    10 Sweep stale review threads after the final push Confirmed absent. Not in pr-review-conduct/SKILL.md, drive-pr/SKILL.md, or GOVERNANCE.md.

    So the actionable list is 9 and 10, plus the narrowed half of 4. Items 1, 2 and 3 are the opposite of a promotion candidate: they are a downstream repo carrying a rule the fleet has since ruled against, and NxWitness#551 correctly drops them. Worth knowing that a repo was running a develop-ahead version cadence that current fleet law forbids, in case another repo still is.

    The process failure, which is the more useful finding

    A distinctive-phrase probe over the six Markdown files answers "is this text in these files". It does not answer "is this rule anywhere in the fleet", because most rule text now lives in .agents/skills/. Probing the Markdown files alone and filing on the result produces exactly this: a promotion candidate for a rule the hub already states, sometimes verbatim.

    Two things would have caught it. The probe should cover .agents/skills/** alongside the Markdown files, since that is where the rules moved. And a promotion candidate should be re-measured against a repo that actually carries the skills tree before it is filed, which is cheap once carry.py apply has run.

    Worth considering whether carried-instruction-file-guard should say this outright. Its step 2 says to grep "the hub's canonical copy of the same file", which was accurate before the Skill split and now points at the smaller half of the corpus.

  3. added
    decision
    on Sep 5, 2026
  4. ptr727 commented on Sep 9, 2026

    @ptr727
    OwnerAuthor

    Cross-referencing from the ptr727/aiopurpleair resync against hub 8195c43, since this issue records the adjacent problem.

    Filed #1467 for a distinct defect in the same contract. Where this issue observes that the interface findings are accurate about the contract and misleading about the remedy (a repository could satisfy them by renaming a job), #1467 is that spec/files.json applies the publish-release.yml contract to publish-on-merge repositories while publish-plan-task.yml, the task that contract requires, has no publish-on-merge path at all. Satisfying the contract there changes the repository's release behavior into a different declared trigger.

    Also relevant to this issue's promotion-candidate list: candidate 5, Closes #N belongs on the promotion PR, was independently confirmed during this resync. aiopurpleair's pre-split AGENTS.md carried that rule with the same reasoning (GitHub auto-closes only from the default branch), and the split would have dropped it had a review pass not caught that it had no destination. It is now in that repository's OPERATIONS.md. That is a second repository stating the rule independently, which strengthens the case for promoting it rather than leaving it per-repo.

    Separately filed #1466, for the carried .markdownlint-cli2.jsonc ignoring nothing under node_modules, which affects every carrier.

  5. ptr727 commented on Sep 10, 2026

    @ptr727
    OwnerAuthor

    Maintainer's decision, 2026-09-09: a pre-adoption repository gets its own class, reported separately from drift.

    The audit already distinguishes a LETTER from a DRIFT, and this is the same shape: a repository that has not adopted a workflow yet is not a repository that has drifted from it. Reporting both as DRIFT is what lets a rename satisfy the finding and report conformance without adopting anything.

    What remains is naming the class and teaching spec/audit.py to emit it.

    Asked while writing the handoff on #1501. Dropping decision: this now records work rather than a question.

  6. removed
    decision
    on Sep 10, 2026
  7. ptr727 commented on Sep 26, 2026

    @ptr727
    OwnerAuthor

    Further recurrence, from the ptr727/ESPHome-NonRoot resync against hub 45669468 (audit run 2026-09-26T02:16:51Z | hub 45669468).

    ESPHome-NonRoot's pre-split AGENTS.md carried two of the candidates above independently of NxWitness, with the same substance:

    • Candidate 4, mirror to develop any change that lands on main outside the feature -> develop -> main flow. It carries the same staleness check, git diff origin/main origin/develop read for deletion-only hunks, and the same note that git log origin/develop..origin/main is noisy because promotion merges and main-direct bot commits also appear. With no hub home, it moves to that repo's OPERATIONS.md "Runbooks".
    • Item 9, leave human-authored comments and emoji exactly as written. The hub's comment-and-doc-style Skill keeps developer-typed Unicode, but it states nothing about leaving a person's comment text unedited. With no hub home, it moves to that repo's CODESTYLE.md as a local subsection, the same destination NxWitness chose.

    Two repositories now carry each rule locally with no hub home, which is the recurrence test for a declared destination.

  8. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision triage split the undecided item out of this issue into #3749, which carries the decision label. Everything else here stays as ordinary work an agent can do without the maintainer.

  9. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer to the split decision #3749 (decision triage, 2026-11-01): Option 1: promote candidates 9 and 4 to fleet rules, and decline 10 as already enforced. Rule 9 still lets an agent correct a comment its own change makes false. This is now work for the next burndown round.

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