Skip to content

22 of our own files declare MIT in an Apache-2.0 repository, and star lint copyright cannot see any of them #999

Closed

Description

@David-Noble-at-work

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:

  1. The 22 are wrong. They are our files in an Apache-2.0 product and their headers get corrected. The
    --fix that 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.
  2. 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_STYLES is derived from what this organization writes, not from a language table. .yaml,
    .yml, .ps1 and extensionless makefiles are covered, with Makefile and Dockerfile matched 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 testdata exclusion carries its reason in the configuration: a preserved foreign corpus whose
    license is genuinely MIT, not an oversight.
  • star lint copyright over 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

  1. David-Noble-at-work commented on Oct 1, 2026

    @David-Noble-at-work
    ContributorAuthor

    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 .star files are correctly invisible, and verified so

    Measured: of 1,083 tracked files whose type the table covers, 1,001 sit outside testdata and the linter
    checks exactly 1,001.
    The 82 it skips include all 40 MIT .star files of the docker-package corpus
    (#721's regression fixture, preserved verbatim) and a gruvbox.vim placeholder. The exclusion is doing the
    right 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 -- 21 extension.yaml files plus
    .goreleaser.yaml, and Makefile alongside them. Files we own, whose headers are wrong.

    Why the decision can no longer be deferred

    license: auto is deleted. The header is a literal in configuration:

        header: |
          SPDX-License-Identifier: Apache-2.0
          Copyright (c) 2025 Noble Factor. All rights reserved.

    There is no detection step left to resolve MIT into anything. The moment .yaml enters 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 copyrightFilter starts at '**' -- include everything -- and subtracts with a deny list, so a file
    type nobody considered is checked by default and fails until someone excludes it with a reason. The
    languages table is an allow list, whose failure mode is silence. That is exactly how these 22 files went
    unseen
    , 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 --fix makes it automatic. A language present in the table that
    should 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:

    Checked Result
    our copyright beside another holder's clean -- one deliberate Copyright (c) 2024 Test Corp fixture
    our copyright on third-party content clean -- gruvbox.vim is our own two-line placeholder, not the colorscheme
    our copyright on fixtures simulating a user's dotfiles clean -- none stamped
    third-party binaries in the public repositories clean -- the one .otf contains the literal text fake-font-data

    So the --fix hazard is a design concern to guard against, with no live instance. The exclusions, not the
    language table, are what prevent it
    , which raises their importance considerably.

    One thing verified-working and not understood: matches_pattern's **/ branch tests
    path.endswith("/" + suffix), which matches the directory .../testdata rather than a file inside it, and the
    whole-segment branch searches for a literal /**/testdata/ that cannot occur. By inspection neither branch
    should match cmd/.../testdata/x.star -- yet the count proves the exclusion works. That function must not be
    touched until the reading is reconciled.

    Also found, and not part of this ruling

    • Eight files already use SPDX-FileCopyrightText rather than a conventional notice.
    • One file attributes copyright to David Noble rather than the company.
    • 42 Apple SF Pro fonts are committed to David-Noble-at-work/personal, which is private; the two
      NobleFactor 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 NOTICE file, as devlore-cli#478
      step 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 .license sidecar is the
      only model that reaches them.
    • .1 and .man, 69 files -- if generated, the generator owns their headers and editing them is editing
      generated output.
  2. David-Noble-at-work commented on Oct 1, 2026

    @David-Noble-at-work
    ContributorAuthor

    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:

    Repository LICENSE Visibility
    NobleFactor/devlore-cli Apache-2.0 public
    NobleFactor/noblefactor-ops Apache-2.0 public
    David-Noble-at-work/personal MIT private

    devlore-cli is Apache-2.0. The 22 files are ours -- 21 com.noblefactor.star.*/extension.yaml, plus
    .goreleaser.yaml and Makefile. They declare MIT. That is simply wrong, and the fix is
    SPDX-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 .star files under cmd/star/provider/lint/testdata/docker-package/ keep MIT, because it is
    their 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, Makefile and Dockerfile enter the language table.
    • The 22 files are corrected to Apache-2.0.
    • A test asserts every file type these repositories track is one the linter recognizes, so the next new
      type fails loudly rather than going silently unchecked.
    • The testdata exclusion carries its reason in the configuration: a preserved corpus whose license is
      genuinely 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 '**' minus
    exclusions 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.

  3. David-Noble-at-work commented on Nov 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    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.yaml files that ship with star, .goreleaser.yaml and the Makefile. The
    fixture's README, cmd/star/provider/lint/testdata/README.md, says why its files declare MIT. The other four
    acceptance items, the linter's, moved to #1197 on 2026-11-06.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions