Repository navigation
Description
Summary
spec/files.json declares .markdownlint-cli2.jsonc at verbatim fidelity, so the audit expects a downstream copy byte-identical to the hub canonical. But the file is the single source of truth for what markdownlint lints in that repo, and a repo whose tree holds content that is data rather than authored prose needs its own globs/ignores. There is no per-repo mechanism, so such a repo must either fail the verbatim check permanently or lose real lint scoping on the next re-vendor.
Found while running RESYNC.md against ptr727/Financial-Modeling.
The finding
DRIFT verbatim: .markdownlint-cli2.jsonc differs from the canonical and matches no past hub revision - the repo modified fixed content, review it
Classified modified rather than stale, which RESYNC.md section 3 item 3 says to read before overwriting, since it may be an improvement the hub should adopt. That is the case here.
What the downstream copy adds
// Declared here, not only as the CI action's `globs:` input, so a bare `markdownlint-cli2` locally lints the same set CI does.
// An `ignores` entry with no positive glob to subtract from matches nothing at all, which reports "0 issues" and reads exactly like success.
"globs": ["**/*.md"],
// The data root is committed now, so `gitignore: true` no longer keeps the linter out of it.
// A markdown file landing in the document archive is data, not authored prose, and a failure here prints the offending line.
"ignores": ["data/**", "notes/forms-decisions.md"]Both entries are load-bearing:
data/**is this repo's committed document archive..gitattributesalready declares it-textas a deliberate passive exception, and.editorconfig-checker.jsonalready carries an^data/exclude, so the fleet already accepts per-repo excludes for this tree in a sibling config. markdownlint is the one that has no such affordance.- The
globsentry exists because anignoreswith no positive glob to subtract from matches nothing and reports0 issues, which is indistinguishable from success. Dropping it would silently stop linting Markdown entirely. - A markdown file in the archive would otherwise print its offending line in CI output, which for this repo means printing personal financial data into a log.
The conflict
- Overwriting to satisfy
verbatimerases the scoping and silently changes what CI lints. - Keeping the local copy leaves a permanent
verbatimDRIFT finding that never converges, so it becomes noise every future audit has to re-triage.
Neither is right, and a downstream repo cannot resolve it on its own. Left as-is in ptr727/Financial-Modeling#204 and raised here instead.
Possible directions
- Reclassify to
intentwith anintentRef, the way.editorconfig,.editorconfig-checker.json, and.gitattributesare already handled. Those three carry the same shape of problem (a fleet-governed rule plus repo-specific values) and are alreadyintent. This looks like the consistent answer. - Keep
verbatimand add a per-repo exclude affordance, the way the prose gate has.github/prose-gate-excludesandvalidate-task.ymlhas itsmarkdown-exclude-globsinput. Note the CI input alone does not solve it, since the point of declaringglobs/ignoresin the file is that a bare localmarkdownlint-cli2lints the same set CI does, whichCODESTYLE.md"Markdown and Spelling" requires. - Record a
divergences.jsondisposition for the path, if the fleet would rather close it as accepted than change the fidelity.
Context
- Hub:
f3b4cc9(2.0.526), read atmain. - Downstream:
ptr727/Financial-Modeling, audit run2026-08-30T14:37:34Z | hub f3b4cc9, measured atmain@bd520bf. - Related: the
.editorconfig-checker.json^data/exclude and the/data/** -text.gitattributesentry in that repo, both already-accepted per-repo scoping for the same tree.
Activity
ptr727 commentedon Sep 11, 2026
Maintainer answer, 2026-09-11: reclassify
.markdownlint-cli2.jsonctointentwith anintentRef, the way.editorconfig,.editorconfig-checker.json, and.gitattributesalready are. Removingdecision; the issue stays open for the change.ptr727 commentedon Sep 20, 2026
Closing: the fleet settled this after the issue was filed, and by a fourth option none of the three above proposed.
What was adopted
The root
.markdownlint-cli2.jsoncstaysverbatim, and a repository excluding a subtree of its own puts a nested.markdownlint-cli2.jsoncinside the directory it excludes.markdownlint-cli2applies a nested config to its own directory and everything below it, so the exclusion holds for a bare local run and for CI alike, which is whatCODESTYLE.md"Markdown and Spelling" requires and what themarkdown-exclude-globsCI input on its own could not deliver.That resolves both horns stated here. The root config is re-vendored byte-for-byte, so the
verbatimcheck converges, and the scoping is not erased, because it never lived in the root config.Where it is stated
CODESTYLE.md"Markdown and Spelling": a repository excluding a subtree "puts a.markdownlint-cli2.jsonccarrying its ownignoresbeside that content rather than editing the shared root config, whose contents are fleet-fixed".spec/fidelity-model.md, theverbatimentry: "a repository's own exclusions go in a nested config beside the content they exclude rather than in this file, so there is no governed divergence".spec/project-types.json,parity.markdownlint: "This check counts that root config only, so a nested .markdownlint-cli2.jsonc is not a second one."docs/reusable-workflows.mdcarries the migration, namingFinancial-ModelingandBlogas the two repositories owed it.ignoresresolve against the directory holding it rather than against the repository root.The downstream half is done
Financial-Modelinghas adopted it. Its root config now carries the fleetignoresof**/node_modules/**alone, and the two exclusions this issue was about live indata/.markdownlint-cli2.jsoncandnotes/.markdownlint-cli2.jsonc. A hub audit run today reports that root config asstalerather thanmodified, which is the difference: it is a past hub revision to re-vendor rather than hand-modified fixed content, and re-vendoring it now erases nothing.The disposition is recorded in
spec/divergences.jsonagainst that path and that repository, tracked as #1487, which is closed. The remaining re-vendor is carried on #1579 as an ordinaryverbatimfinding.