Skip to content

docs: credit pkginfo and twine, and delete a false NOTICE claim - #19

Merged
jonyoder merged 1 commit into
mainfrom
notice-attribution
Aug 5, 2026
Merged

jonyoder merged 1 commit into
mainfrom
notice-attribution

Conversation

@jonyoder

@jonyoder jonyoder commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

⚠️ This module is currently not properly attributed as published

An attribution audit of both public modules found three MUST-FIX defects here. I verified all three independently before touching anything — they are real, and none is a judgement call.

The good news: both unattributed upstreams are permissively licensed and fully compatible with Apache-2.0 OR MIT. There is no licence conflict. The defect is narrow and mechanical: two upstreams that must be named and were not.

1. distribution/ ports Python pkginfo (MIT) with no attribution

The fingerprint is not circumstantial. An idiosyncratic non-functional comment is reproduced character-for-character including its missing space:

pkginfo/distribution.py:68 HEADER_ATTRS_2_0 = HEADER_ATTRS_1_2 #XXX PEP 426?
distribution.go:113 var HeaderAttrs2_0 = HeaderAttrs1_2 //XXX PEP 426?

That comment exists in no other project — not twine, not pypa/packaging. Around it, all eight header tables carry over element-for-element with the same PEP annotations in the same positions, and the whitespace-collapsing logic arrives with its original comment.

grep -irE "pkginfo|Agendaless" matched nothing in this repo or in rstudio/python-distribution-parser. The credit was never made at either hop.

2. distribution/ ports pypa/twine (Apache-2.0), and upstream's credit was dropped

twine's issue link survives verbatim at distribution.go:346, and its wheel filename pattern is character-identical once verbose whitespace is stripped.

This one is worse than an omission: upstream credited twine and the port lost it. rstudio/python-distribution-parser's README names twine with a source link.

Both omissions originated at the earlier hop and were carried forward — which is how attribution debt usually travels.

3. NOTICE:9 was false

"No source from those projects is incorporated at this time."

git log -S shows that sentence entered in the bootstrap skeleton commit (2026-07-07), when the NOTICE was 11 lines and no package code existed. tags/ landed the next day. All thirteen later NOTICE commits appended at EOF without revisiting the top.

So it was stale, not a considered distinction between adapting an algorithm and incorporating source. And staleness doesn't rescue it, because uv's material is in the tree: tags/generate.go:159-187 carries uv's per-arch glibc floor table and says so in its own comment, including riscv64: {2,31} and loongarch64: {2,36} — values pypa/packaging doesn't have, since it has no per-arch map and doesn't recognise either architecture.

You cannot independently reimplement a number somebody else chose.

Deleted rather than softened: the obligation is already discharged correctly four paragraphs down. What remained was a self-contradiction costing the file authority over the 22 claims the audit verified as correct.

Also: pypa/packaging is dual-licensed, and we understated it

It's cited nine times as Apache-2.0. It is actually Apache-2.0 OR two-clause BSD. Stated once before the first citation rather than editing nine sites.

The audit calls this the single change that most improves the module's compliance footing, and I agree: under the BSD arm that material sublicenses cleanly, whereas Apache-only material offered onward under MIT raises a question about Apache §3 and §4.

Not fixed here — these need a lawyer, not me

  • Whether the MIT arm is sound over version/, which derives from an Apache-2.0-only ancestor (aquasecurity). Plausibly fine given the Posit-owned intermediate fork and substantial rewrite, but that's a legal call. Note it does not arise for the pypa/packaging-derived packages once the dual licence above is recognised.
  • Whether rstudio/go-version's Apache-2.0 label is correct — it's an aquasecurity fork and MPL-2.0-derived material entered that lineage. Moot for this module (only pkg/part compiles, which is aquasecurity-original and stdlib-only, confirmed against PPM's vendor tree) but it deserves an issue on that repo.
  • Whether distribution/.snapshots/'s 48 embedded third-party READMEs are an acceptable test-fixture posture. Inherited from the port and covered by its attribution, but it should be a decision rather than an accident.

Verified clean

All 106 .go files across both modules carry exactly the right SPDX identifier, no variants, no omissions. No copyleft in either runtime graph. rapid's MPL-2.0 test-only claim holds in every particular.

Build and tests pass. Not merging — this is licensing text and wants your eyes, even though every change here is strictly corrective.

🤖 Generated with Claude Code

An attribution audit found three MUST-FIX defects that make this module not
redistributable as published. All three verified independently before fixing.

1. distribution/ ports the Python `pkginfo` package (MIT, Copyright (c) 2009
   Agendaless Consulting, Inc.) with NO attribution anywhere. The fingerprint is
   not circumstantial: an idiosyncratic non-functional comment is reproduced
   character-for-character INCLUDING its missing space --
   `HEADER_ATTRS_2_0 = HEADER_ATTRS_1_2  #XXX PEP 426?` becomes
   `var HeaderAttrs2_0 = HeaderAttrs1_2 //XXX PEP 426?` at
   distribution/internal/distributions/distribution.go:113. That comment exists
   in no other project. Around it, all eight header tables carry over
   element-for-element, and the whitespace-collapsing logic comes with its
   original comment. `grep -irE "pkginfo|Agendaless"` matched nothing.

2. distribution/ ports pypa/twine (Apache-2.0, Copyright (c) 2013 Donald Stufft
   and contributors, Copyright (c) 2015 Ian Cordasco), also unattributed --
   twine's issue link survives verbatim at distribution.go:346, and its wheel
   filename pattern is character-identical. Worse, UPSTREAM CREDITED TWINE and
   the port dropped it: rstudio/python-distribution-parser's README names twine
   with a source link.

   Both omissions originated at the earlier hop and were carried forward, which
   is how attribution debt usually travels.

3. "No source from those projects is incorporated at this time" was FALSE.
   `git log -S` shows the sentence entered in the bootstrap skeleton commit
   (2026-07-07) when the NOTICE was 11 lines and no package code existed; tags/
   landed the next day, and all thirteen later NOTICE commits appended at EOF
   without revisiting the top. So it is stale rather than a considered
   distinction between adapting an algorithm and incorporating source -- and
   staleness does not rescue it, because uv's material is in the tree:
   tags/generate.go:159-187 carries uv's per-arch glibc floor table and says so
   in its own comment, including riscv64 {2,31} and loongarch64 {2,36}, values
   pypa/packaging does not have. You cannot independently reimplement a number
   somebody else chose.

   Deleted rather than softened. The obligation is already discharged correctly
   four paragraphs down; what remained was a self-contradiction that cost the
   file authority over the claims that ARE right.

Also corrects the licensing of pypa/packaging, cited nine times as Apache-2.0
when it is dual-licensed Apache-2.0 OR two-clause BSD. Stated once before the
first citation rather than editing nine sites. This is the change that most
improves the module's compliance footing: under the BSD arm the material
sublicenses cleanly, whereas Apache-only material offered onward under MIT
raises a question about Apache sections 3 and 4.

NOT fixed here, because they need a lawyer rather than me:

  * Whether the MIT arm is sound over version/, which derives from an
    Apache-2.0-ONLY ancestor (aquasecurity). Plausibly fine given the
    Posit-owned intermediate fork and substantial rewrite, but that is a legal
    call. Note this does NOT arise for the pypa/packaging-derived packages once
    the dual license above is recognized.
  * Whether rstudio/go-version's Apache-2.0 label is correct: it is an
    aquasecurity fork and MPL-2.0-derived material entered that lineage. Moot
    here -- only pkg/part compiles, which is aquasecurity-original and
    stdlib-only -- but it deserves an issue on that repo.
  * Whether distribution/.snapshots/'s 48 embedded third-party READMEs are an
    acceptable test-fixture posture. Inherited from the port and covered by its
    attribution, but it should be a decision rather than an accident.

Refs the attribution audit at ~/Dev/attribution-audit-2026-08-04.md

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@jonyoder
jonyoder merged commit 70d9dd0 into main Aug 5, 2026
2 checks passed
jonyoder added a commit that referenced this pull request Aug 7, 2026
…23)

v0.2.0 WAS ALREADY CUT. It was tagged and pushed on 2026-08-03 at 3dfc5dc, and
proxy.golang.org has served it since:

    {"Version":"v0.2.0","Time":"2026-08-03T16:19:37Z",
     "Origin":{"Hash":"3dfc5dc4447367996e677fbf7f7008fa307624d1",...}}

Four commits landed after that tag -- #19, #20, #21, #22 -- and three of them
wrote their entries into the dated `## [0.2.0]` section rather than
`[Unreleased]`, on the stated reasoning that the tag had not been cut yet. So
the changelog claimed for v0.2.0 three changes that v0.2.0 does not contain:
the required comma between specifiers, the empty-specifier-set inversion, and
all-digit local segment normalization. `[Unreleased]` was empty.

A GO MODULE TAG IS IMMUTABLE once the proxy has seen it, so there is no version
of this that ends with v0.2.0 being correct. The entries move forward instead.

Two of the three narrow what parses and one changes rendered output, so per this
module's own stated policy -- breaking changes take a minor bump while major is
0 -- the next tag is 0.3.0, not 0.2.1.

VERIFIED that the 0.2.0 section is now byte-identical to what the tag shipped:
`git diff 3dfc5dc -- CHANGELOG.md` removes exactly one line, the [Unreleased]
compare link, which is replaced. Everything else is additive.

Also documents #19 under 0.3.0's Notes. It was NOTICE-only so it had no entry,
but it is the release's most consequential change for a redistributor: it credits
pkginfo and twine, whose material distribution/ ports uncredited through v0.2.0,
corrects pypa/packaging's license to the Apache-2.0-OR-BSD-2-Clause dual offer,
and deletes a claim that no source from the cited projects was incorporated --
false since tags/ landed on 2026-07-08, and therefore false in v0.1.0, v0.1.1,
v0.1.2 and v0.2.0 alike.

And adds the guardrail to CLAUDE.md, since the existing rule said entries go
under [Unreleased] without saying to verify the assumption that a dated section
is unreleased. CI does not validate the changelog.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@jonyoder
jonyoder deleted the notice-attribution branch August 27, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant