Repository navigation
Description
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
- The develop-leads-main-by-a-minor version cadence, with
bump-version-X.Y
as the PR convention. Release-model mechanics thatGOVERNANCE.md"Release
Model" does not state. - The maintenance-promotion version hold:
git checkout main -- version.json
when promoting a maintenance fix that must not carry develop's minor bump. - 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. - Mirror to
developany change that lands onmainoutside the
feature -> develop -> main flow, withgit diff origin/develop origin/mainas
the concrete pre-work staleness check. The case is a security PR or hotfix
landing onmaindirectly;GOVERNANCE.md"Branching Model" does not give this
check. Closes #Nbelongs on thedevelop -> mainpromotion PR, not on the
feature PR or the develop PR, so the issue closes when the work actually
reachesmain.- 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-styleSKILL.md first. filedoes not report CRLF for JSON, as a caveat on byte-checking line
endings.GOVERNANCE.md:185covers the Python read/write flattening mechanism
but not this detection failure. Relevant now that the fleet is normalizing to
LF.- 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.
Checkpr-review-conductSKILL.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
ptr727 commentedon Aug 30, 2026
Two more, found completing the
AGENTS.mdsplit inptr727/NxWitness(see ptr727/NxWitness#551). Both are rules that existed in NxWitness's pre-splitAGENTS.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":Not in
GOVERNANCE.md"Documentation Style Conventions", and not incomment-and-doc-styleSKILL.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-styletells 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.mdfor 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":
Not in
GOVERNANCE.md"PR Review Etiquette" and not inpr-review-conductSKILL.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.
ptr727 commentedon Aug 30, 2026
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 inptr727/NxWitnessat the tip of ptr727/NxWitness#551, which carries.github/skills/at hubf3b4cc9:bump-version-X.Ydevelop-leads-main cadenceoperational-vs-release-workflow/SKILL.md:98-102says the floor is edited "never on a fixed cadence or mechanically after a release", with "no post-release bump and no develop-ahead requirement".git checkout main -- version.jsonmaintenance holdmain->develop, with thegit diff origin/develop origin/maincheckSKILL.md:44covers checkingdevelopbefore branching. The other half, mirroring a change that landed onmainoutside the normal flow back intodevelop, is genuinely absent. Narrowed candidate, still open.Closes #Non the promotion PRoperational-vs-release-workflow/SKILL.md:62-65, with the same rationale.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).filedoes not report CRLF for JSONcomment-and-doc-style/references/line-endings.md:100.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.comment-and-doc-style/SKILL.md, its three reference files,GOVERNANCE.md, orCODESTYLE.md.pr-review-conduct/SKILL.md,drive-pr/SKILL.md, orGOVERNANCE.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 oncecarry.py applyhas run.Worth considering whether
carried-instruction-file-guardshould 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.ptr727 commentedon Sep 9, 2026
Cross-referencing from the
ptr727/aiopurpleairresync against hub8195c43, 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.jsonapplies thepublish-release.ymlcontract topublish-on-mergerepositories whilepublish-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 #Nbelongs on the promotion PR, was independently confirmed during this resync.aiopurpleair's pre-splitAGENTS.mdcarried 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'sOPERATIONS.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.jsoncignoring nothing undernode_modules, which affects every carrier.ptr727 commentedon Sep 10, 2026
Maintainer's decision, 2026-09-09: a pre-adoption repository gets its own class, reported separately from drift.
The audit already distinguishes a
LETTERfrom aDRIFT, 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 asDRIFTis what lets a rename satisfy the finding and report conformance without adopting anything.What remains is naming the class and teaching
spec/audit.pyto emit it.Asked while writing the handoff on #1501. Dropping
decision: this now records work rather than a question.ptr727 commentedon Sep 26, 2026
Further recurrence, from the
ptr727/ESPHome-NonRootresync against hub45669468(audit run2026-09-26T02:16:51Z | hub 45669468).ESPHome-NonRoot's pre-split
AGENTS.mdcarried two of the candidates above independently of NxWitness, with the same substance:developany change that lands onmainoutside the feature ->develop->mainflow. It carries the same staleness check,git diff origin/main origin/developread for deletion-only hunks, and the same note thatgit log origin/develop..origin/mainis noisy because promotion merges andmain-direct bot commits also appear. With no hub home, it moves to that repo'sOPERATIONS.md"Runbooks".comment-and-doc-styleSkill 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'sCODESTYLE.mdas 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.
ptr727 commentedon Nov 1, 2026
Decision triage split the undecided item out of this issue into #3749, which carries the
decisionlabel. Everything else here stays as ordinary work an agent can do without the maintainer.ptr727 commentedon Nov 1, 2026
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.