Repository navigation
Description
22 files in this Apache-2.0 repository declare SPDX-License-Identifier: MIT, and nothing could ever have
told us, because star lint copyright does not look at the extensions they use.
Measured 2026-09-30 on fix/994-go-style-fix-corrupts-headers. 64 tracked files carry MIT in their own first
three lines, and they split three ways:
| Files | Why the linter cannot see them | Verdict |
|---|---|---|
40 .star |
excluded by the **/testdata pattern in star/config.yaml |
Correctly invisible. All 40 are under cmd/star/provider/lint/testdata/docker-package/, the #721 regression corpus preserved verbatim from devlore-registry at cc87c4f0. MIT is its real license and must not be rewritten |
21 extension.yaml and .goreleaser.yaml |
.yaml is not in COMMENT_STYLES, so no walk ever looks for it |
The contradiction. Our own extension manifests, ours to license |
1 Makefile |
no extension, so get_comment_style returns None and the file is skipped as an unknown type |
Same class |
1 lifecycle.yaml |
under testdata |
correctly invisible |
The extension list was written from a language table, not from this organization
COMMENT_STYLES holds 39 extensions. Five exist in this repository: .go, .star, .sh, .lua, .vim.
The other 34 -- .lisp, .erl, .zig, .tex, .dart, .elm, .hs, .scala, .swift, .proto and 24
more -- match nothing here, and each costs a full recursive walk of the tree to say so (that cost is
#997's subject, not this issue's).
Absent: .yaml, .yml, Makefile, Dockerfile, .toml, .ps1, .psm1, .md. In a repository whose
every extension is declared in YAML and whose scripts are increasingly PowerShell, .yaml is the single most
important extension to check and the one that is missing. .ps1 matters for the same reason: this
organization tracks 42 of them in personal alone.
What needs a ruling, and it is not a code question
Phase 4 of
#994's plan
requires star lint copyright to pass over this repository. That is unreachable until someone decides which
of two things is true:
- The 22 are wrong. They are our files in an Apache-2.0 product and their headers get corrected. The
--fixthat would do it is safe to run now, since star lint go-style --fix corrupts the SPDX header on every file it rewrites, and writes TODO placeholders instead of doc comments #994 Phase 2 stopped it corrupting what it rewrites. - The 22 are right, the repository's licensing is deliberately mixed, and the configuration says so
explicitly with a reason rather than by a gap in an extension list.
Either answer is fine. Having neither is what makes the gate unable to claim anything, and a linter that
cannot see a file cannot be said to have passed it.
Not decided unilaterally, and no header rewritten, because which license applies to our own files is not
a lint judgment.
Acceptance
- The license question above is ruled on, and the ruling is recorded here.
-
COMMENT_STYLESis derived from what this organization writes, not from a language table..yaml,
.yml,.ps1and extensionless makefiles are covered, withMakefileandDockerfilematched by
name since they have no extension. - A test asserts that every extension this repository tracks is one the linter recognizes, so the next
new file type fails loudly rather than silently going unchecked. - The
testdataexclusion carries its reason in the configuration: a preserved foreign corpus whose
license is genuinely MIT, not an oversight. -
star lint copyrightover the repository reports a count, and that count is recorded.
Related documents
| Document | What it is |
|---|---|
| devlore-cli#994 | The plan this blocks; Phase 4 requires copyright to pass |
| devlore-cli#997 | The checker looser than its fixer, and the 39 fruitless walks |
| devlore-cli#721 | Why testdata/docker-package is preserved verbatim and its MIT headers are correct |
| star/config.yaml | The exclude patterns, and license: auto resolving to Apache-2.0 from LICENSE |
Plan and design documents
| Kind | Document |
|---|---|
| Plan | docs/plans/fix/999-22-of-our-own-files-declare-mit.md |
Activity
David-Noble-at-work commentedon Oct 1, 2026
Narrowed and sharpened, 2026-10-01
The ruling owed is about 22 files, not 64, and it is now unavoidable rather than papered over.
The 40
.starfiles are correctly invisible, and verified soMeasured: of 1,083 tracked files whose type the table covers, 1,001 sit outside
testdataand the linterchecks exactly 1,001. The 82 it skips include all 40 MIT
.starfiles of thedocker-packagecorpus(#721's regression fixture, preserved verbatim) and a
gruvbox.vimplaceholder. The exclusion is doing theright job, and the reason is not "it is testdata" but "it is not ours."
So the MIT headers needing a decision are the 22 outside
testdata-- 21extension.yamlfiles plus.goreleaser.yaml, andMakefilealongside them. Files we own, whose headers are wrong.Why the decision can no longer be deferred
license: autois deleted. The header is a literal in configuration:There is no detection step left to resolve MIT into anything. The moment
.yamlenters the language table,every one of the 22 fails against a literal
Apache-2.0. No header has been rewritten pending the answer.The table's polarity, which is the structural half
VS Code's
copyrightFilterstarts at'**'-- include everything -- and subtracts with a deny list, so a filetype nobody considered is checked by default and fails until someone excludes it with a reason. The
languagestable is an allow list, whose failure mode is silence. That is exactly how these 22 files wentunseen, and it is worth deciding which polarity we want for "no one gets a pass."
The opposite risk, which this issue should carry too
Stamping a header is a legal assertion and
--fixmakes it automatic. A language present in the table thatshould not be writes our copyright onto code we do not own -- the inverse failure, and a worse one, because
nothing in the pipeline questions it.
Searched 2026-10-01 across all three repositories, and found none:
Copyright (c) 2024 Test Corpfixturegruvbox.vimis our own two-line placeholder, not the colorscheme.otfcontains the literal textfake-font-dataSo the
--fixhazard is a design concern to guard against, with no live instance. The exclusions, not thelanguage table, are what prevent it, which raises their importance considerably.
One thing verified-working and not understood:
matches_pattern's**/branch testspath.endswith("/" + suffix), which matches the directory.../testdatarather than a file inside it, and thewhole-segment branch searches for a literal
/**/testdata/that cannot occur. By inspection neither branchshould match
cmd/.../testdata/x.star-- yet the count proves the exclusion works. That function must not betouched until the reading is reconciled.
Also found, and not part of this ruling
SPDX-FileCopyrightTextrather than a conventional notice.David Noblerather than the company.David-Noble-at-work/personal, which is private; the twoNobleFactor repositories are public. Use is permitted and redistribution is the restriction, so a private
repository is not the exposure a public one would be -- but it is worth a deliberate decision rather than an
accident. Correction: devlore-cli and noblefactor-ops both DO carry a
NOTICEfile, as devlore-cli#478step 2 required; only Personal lacks one, which is correct for MIT. An earlier version of this comment said
none of the three had one, having checked only Personal.
The two in-scope types that raise the same ownership question
.otf, 42 files -- binary, cannot carry a header, must not claim one. REUSE's.licensesidecar is theonly model that reaches them.
.1and.man, 69 files -- if generated, the generator owns their headers and editing them is editinggenerated output.
David-Noble-at-work commentedon Oct 1, 2026
No ruling needed — the licenses were already decided
Correcting this issue's framing, 2026-10-01. It asked for a licensing decision. There isn't one to make:
NobleFactor/devlore-cliNobleFactor/noblefactor-opsDavid-Noble-at-work/personaldevlore-cli is Apache-2.0. The 22 files are ours -- 21
com.noblefactor.star.*/extension.yaml, plus.goreleaser.yamlandMakefile. They declare MIT. That is simply wrong, and the fix isSPDX-License-Identifier: Apache-2.0.The licensing was settled in devlore-cli#478 and
executed by noblefactor-ops#179, both closed.
Asking again was my error, not an open question.
The 40 MIT
.starfiles undercmd/star/provider/lint/testdata/docker-package/keep MIT, because it istheir real license -- preserved verbatim from devlore-registry as #721's regression corpus. They are excluded,
so no action either way, and the exclusion's reason is "it is not ours" rather than "it is testdata."
So this issue is no longer a blocker for #994's Phase 5. What remains in it is the work, not a decision:
.yaml,.yml,.ps1,MakefileandDockerfileenter the language table.Apache-2.0.type fails loudly rather than going silently unchecked.
testdataexclusion carries its reason in the configuration: a preserved corpus whose license isgenuinely MIT.
One design question survives and it is not licensing: whether the language table defines scope (an allow
list, whose failure mode is silence -- which is how these 22 went unseen) or whether scope is
'**'minusexclusions as VS Code does (a deny list, whose failure mode is noise someone must resolve). That is a polarity
choice, implementable either way, and it does not block the corrections above.
doc: the header is configuration, the table describes file types, and…
fix(build): .goreleaser.yaml and the Makefile declare Apache-2.0, as …
doc(lint): the docker-package fixture keeps devlore-registry's MIT li…
doc(plans): #999's plan complete: the linter's part moved to #1197
fix(license): every file devlore-cli releases declares Apache-2.0 (#999…
David-Noble-at-work commentedon Nov 7, 2026
Merged in #1198 as be7042d at 2026-11-07T00:09:28Z.
Ruled 2026-11-06: devlore-cli ships under Apache-2.0, files that release are product, and the test fixture copied from
devlore-registry keeps its MIT license. The first acceptance item is met: the rulings are recorded in the plan,
docs/plans/fix/999-22-of-our-own-files-declare-mit.md.
Changed to Apache-2.0: the 21
extension.yamlfiles that ship with star,.goreleaser.yamland theMakefile. Thefixture's README,
cmd/star/provider/lint/testdata/README.md, says why its files declare MIT. The other fouracceptance items, the linter's, moved to #1197 on 2026-11-06.