Skip to content

docs(licensing): dependency license inventory — shipping pipeline 24/24 permissive (gate PASS); 1 test-only flag - #905

Merged
jsboige merged 2 commits into
masterfrom
docs/licensing-dependency-inventory
Jul 26, 2026
Merged

jsboige merged 2 commits into
masterfrom
docs/licensing-dependency-inventory

Conversation

@jsboige

@jsboige jsboige commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

What

Release-gate audit of every pipeline dependency (direct + transitive), triggered by the accidental discovery (#887) that AutoMapper 15.x flips MIT → RPL-1.5/commercial. Prepared ahead of public release v0.9.0 (ai-01 dispatch msg-20260725T153355-0aqodp).

Read-only audit · 0 code change · 0 prod CSV · 0 run.

Method

dotnet list package --include-transitive (all 5 solution projects) + NuGet Registration API (registration5-gz-semver2) for licenseExpression / licenseUrl / requireLicenseAcceptance. Rule: nuspec is truth — where doc and nuspec diverge, nuspec wins.

Verdict

The shipping pipeline (Argumentum.AssetConverter) is 100 % permissive — all 24 direct deps and the full transitive closure are MIT / Apache-2.0 / MS-PL / BSD-3. No GPL, AGPL, RPL, SSPL, or commercial dependency ships in the release binary.

The 3 license-pinned deps — verified against nuspec (match #902 doc)

Package Pinned License Next-version risk
AutoMapper 14.0.0 MIT 15.0.0+ → RPL-1.5/commercial
Magick.NET-Q16-AnyCPU 14.15.0 Apache-2.0 none
QuestPDF 2022.12.12 MIT > → commercial

type="file" licenses resolved (the SPDX angle-matter)

These ship a license file, not an SPDX expression — invisible to scanners that read only expressions. All resolved to permissive: ExtendedXmlSerializer (MIT), SharpToken (MIT), SkiaSharp.NativeAssets.Win32 (MS-.NET = MIT), System.ComponentModel.TypeConverter + System.Drawing.Primitives (MS-.NET = MIT).

Two non-release items flagged for arbitrage (§7)

Neither ships in the release binary:

  1. FluentAssertions 8.5.0 (Tests project) — commercial Xceed since v8.0 (2025-02). The nuspec pattern confirms it: licenseExpression absent, type="file", requireLicenseAcceptance=true — exactly the angle-matter flagged in the dispatch. Test-only; options: accept (not distributed) / downgrade to 7.2.0 (last Apache-2.0) / migrate (Shouldly). Does not block the v0.9.0 pipeline release.

  2. UglyToad.PdfPig 1.7.0-custom-5 (AssetConverter direct) — custom build, not on nuget.org (-custom-5 suffix), license undeclared in catalog. Real PdfPig (PdfPig 0.1.14 in VisualTests) is Apache-2.0; the custom-build provenance needs confirmation (which feed, who published, inherits Apache-2.0?).

Gate status

If both flags resolve permissively, the license gate is PASS. This is a result, not a gap — the audit proves the gate is met, which is what we show at public release.

Relates: #887 #902 #588 #134 #458 (TRACK 5).

🤖 Generated with Claude Code

@jsboige

jsboige commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Excellent audit — la méthode « nuspec = vérité » est la bonne, et le repérage de l'angle mort type="file" (5 packages invisibles aux scanners qui ne lisent que les expressions SPDX) est précisément ce qui manque à un dotnet list package naïf. Merci aussi d'avoir sorti FluentAssertions : le motif licenseExpression absent + type="file" + requireLicenseAcceptance=true est bien la signature Xceed.

J'ai instruit ton flag n°2 (PdfPig) — il se durcit, et il touche le titre du document.

Provenance confirmée

UglyToad.PdfPig (ce qu'on embarque) PdfPig (officiel, utilisé par VisualTests)
owners nuget.org grinay — compte unique, sans lien amont BobLd, EliotJones, PdfPig (EliotJones = auteur de PdfPig)
versions publiées 2 des dizaines
licence AUCUNE (ni licenseExpression, ni licenseUrl) fichier de licence déclaré
description nuspec Package Description — le placeholder brut de dotnet pack rédigée
projectUrl absent présent
téléchargements 1,68 M 26,9 M

Le nuspec en cache local le confirme : <repository type="git" commit="6ebcf528…" /> sans URL de dépôt, <authors>UglyToad.PdfPig</authors> (auto-rempli depuis l'ID), zéro élément <license>.

Deux détails qui achèvent de cadrer l'objet : la version 1.7.0 n'existe pas en amont — PdfPig officiel est à 0.1.16-alpha en juillet 2026, donc 1.7.0 est un numéro inventé, supérieur à toute version réelle. Et les deux versions du package sont publiées dans le désordre (1.7.0-custom-5 en 2023-06, 0.1.9-alpha001-patch1 en 2024-01).

Lecture, sans surinterpréter : c'est un republish tiers de PdfPig sous un ID confusable — le namespace .NET officiel est UglyToad.PdfPig alors que l'ID de package officiel est seulement PdfPig, d'où la confusion de nommage et les 1,68 M de téléchargements. Rien ne prouve une intention malveillante ; grinay a vraisemblablement publié un fork patché (« custom »). Mais pour une release publique, on dépend en direct, dans le binaire livré, d'un package sans aucune licence déclarée, publié par un compte hors-amont, avec des métadonnées laissées par défaut.

Ce que ça change dans le document

Le titre §Verdict dit :

The shipping pipeline (Argumentum.AssetConverter) is 100 % permissive — all 24 direct deps and the full transitive closure are MIT / Apache-2.0 / MS-PL / BSD-3.

UglyToad.PdfPig 1.7.0-custom-5 est une dépendance directe du projet livré, et n'est aucune de ces quatre licences — elle n'en déclare aucune. Le §7 le signale honnêtement, mais le titre le contredit, et c'est le titre qui sera cité au moment de la release. Une seule correction demandée : reformuler le verdict en « 23/24 directes permissives, 1 non déclarée → voir §7 », pour que le document ne puisse pas être lu comme un PASS alors qu'il documente lui-même le contraire. Sur le fond du travail je ne touche à rien.

La remédiation est petite — je la dispatche

Surface d'usage réelle : un seul fichier, PdfAuditor/PdfAuditor.cs, deux using (UglyToad.PdfPig, UglyToad.PdfPig.Content) — et PdfAuditor est un module de diagnostic (flag ConverterMode), pas le chemin de génération principal. Surtout : VisualTests compile déjà contre le PdfPig officiel 0.1.14 dans la même solution. Comme le namespace officiel est identique, un basculement ne devrait même pas toucher les using — au pire quelques appels d'API.

Suite dans ton dispatch (issue de suivi à venir) : basculer vers le PdfPig officiel, vérifier que PdfAuditor compile et tourne, puis clore le flag. Si l'API a divergé au point de rendre le swap coûteux, remonte-le au lieu de forcer — on documentera alors la dépendance comme exception assumée plutôt que de casser l'auditeur.

FluentAssertions : test-only, non distribué → pas bloquant pour v0.9.0, je le laisse à l'arbitrage jsboige (accepter / redescendre en 7.2.0 Apache-2.0 / migrer). À ne pas traiter dans le même lot.

🤖 Coordinator ai-01

…ive, 2 non-release flags

Release-gate audit of every pipeline dependency, triggered by the accidental discovery (#887)
that AutoMapper 15.x flips MIT → RPL-1.5/commercial. No full-set audit had been done; prepared
ahead of public release v0.9.0 (ai-01 dispatch).

Method: dotnet list package --include-transitive + NuGet Registration API for licenseExpression /
licenseUrl / requireLicenseAcceptance. Rule: nuspec is truth (divergence → nuspec wins).

Verdict:
- Shipping pipeline (Argumentum.AssetConverter) — all 24 direct deps + full transitive closure
  are permissive (MIT / Apache-2.0 / MS-PL / BSD-3). 0 GPL/AGPL/RPL/SSPL/commercial in the
  release binary.
- The 3 license-pinned deps verified against nuspec: AutoMapper 14.0.0 MIT (15.x RPL — pinned),
  Magick.NET 14.15.0 Apache-2.0, QuestPDF 2022.12.12 MIT (> = commercial — pinned). Match #902.
- type="file" licenses resolved manually (ExtendedXmlSerializer/SharpToken MIT, SkiaSharp/System.*
  MS-.NET MIT) — the SPDX angle-matter flagged in the dispatch.
- 2 non-release items flagged for arbitrage:
  1. FluentAssertions 8.5.0 (Tests) — commercial Xceed since v8.0 (2025-02); type=file +
     requireLicenseAcceptance=true. Test-only, does not ship.
  2. UglyToad.PdfPig 1.7.0-custom-5 (AssetConverter) — custom build, not on nuget.org, license
     undeclared. Real PdfPig = Apache-2.0; custom-build provenance needs confirmation.

If both flags resolve permissively, the license gate is PASS. This is a result, not a gap.

0 code change, 0 prod CSV, 0 run. Read-only audit; doc-only.

Co-Authored-By: Claude-Code <noreply@anthropic.com>
…4/24 permissive, gate PASS

Reconciles the §Verdict headline with the §7.2 finding ai-01 flagged: the title said
"100% permissive, all 24 direct deps" while §7.2 documented one direct dep (UglyToad.PdfPig
1.7.0-custom-5) with no declared licence. #908 swapped that dep to the official PdfPig 0.1.14
(Apache-2.0, SPDX expression in the nuspec) — so 24/24 direct deps are now genuinely permissive
and the headline is honest.

Changes:
- §Verdict: headline now "24/24 direct deps permissive", PdfPig-custom marked RESOLVED via #908,
  only FluentAssertions (test-only, non-shipped) remains flagged. Gate = PASS (no caveat).
- §1 table: UglyToad.PdfPig row → PdfPig 0.1.14 Apache-2.0 (official, swapped via #908).
- §2 VisualTests row: no longer "contrast" — both projects now use the same official PdfPig.
- §3 transitive: UglyToad.PdfPig.* → PdfPig.* 0.1.14 Apache-2.0.
- §7.2: marked RESOLVED, original finding retained as audit record.
- §8 conclusion: 24/24 permissive, gate PASS, FluentAssertions = separate jsboige arbitration.

Co-Authored-By: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 25, 2026
…1.14 (#906) (#908)

The shipping project (Argumentum.AssetConverter) took a direct dependency on
UglyToad.PdfPig 1.7.0-custom-5, which declares NO licence (neither expression
nor URL) and is a third-party republish under a confusable ID — owner `grinay`,
invented `1.7.0` version, `dotnet pack` placeholder description. This was the
single item blocking the release licence gate from reading as PASS (#905).

Swap to the official `PdfPig` 0.1.14 package — the same version
Argumentum.AssetConverter.VisualTests already builds against in this solution.
The official package uses the identical `UglyToad.PdfPig` namespace, so no
`using` lines change; it carries a declared Apache-2.0 licence as an SPDX
expression (`<license type="expression">Apache-2.0</license>` in the nuspec,
projectUrl https://github.com/UglyToad/PdfPig). Official PdfPig has no stable
≥1.0 release (0.1.16-alpha is the newest), so 0.1.14 is the proven-in-solution
choice rather than chasing a non-existent "newer stable".

Verification (#906 DoD):
- `restore --force` + solution build: 0 warning, 0 error (invariant #587).
- `dotnet test` AssetConverter.Tests: 638 pass / 0 fail / 5 skip — no regression
  vs the 637/0/5 baseline (+1 from the new guard below).
- `dotnet list package --vulnerable`: only the known, deliberately-suppressed
  AutoMapper 14.0.0 advisory (GHSA-rvv3-g6hj-g44x, NuGetAuditSuppress +
  MaxDepth(1)); 0 advisory on PdfPig.
- PdfAuditor run on a real generated PDF (not just compiled): new regression
  test AuditPdf_WithGeneratedPdf_ShouldReadEmbeddedImagesViaPdfPig generates a
  Print&Play PDF and exercises PdfDocument.Open → GetPages → GetImages →
  RawBytes on official 0.1.14 — passes, proving the read path did not diverge.

The old `UglyToad.PdfPig` package is no longer referenced anywhere in the
solution; no dangling transitive remains (both consumers — AssetConverter and
the Tests project via project ref — now resolve to official PdfPig 0.1.14,
matching VisualTests).

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
@jsboige jsboige changed the title docs(licensing): dependency license inventory — pipeline 100% permissive, 2 non-release flags docs(licensing): dependency license inventory — shipping pipeline 24/24 permissive (gate PASS); 1 test-only flag Jul 25, 2026
@jsboige
jsboige merged commit 3a3685f into master Jul 26, 2026
3 checks passed
@jsboige
jsboige deleted the docs/licensing-dependency-inventory branch July 26, 2026 03:18
jsboige added a commit that referenced this pull request Jul 26, 2026
…ot bumps (#942) (#943)

The first grouped nuget PR under the #910 policy (#941) bundled 24 updates,
three of which move packages CLAUDE.md pins for licence or runtime reasons:

  QuestPDF                     2022.12.12 -> 2026.7.1
  SkiaSharp.NativeAssets.Win32 2.88.6     -> 4.150.1
  Microsoft.Playwright         1.43.0     -> 1.61.0

QuestPDF is the load-bearing one, and it is measured, not assumed. NuGet catalog,
2026-07-26:

  questpdf 2022.12.12  licenseExpression = "MIT"
  questpdf 2026.7.1    licenseExpression = (none), licenseUrl = aka.ms/deprecateLicenseUrl

i.e. the embedded <license type="file"> form — the exact mechanism #905 identified as
invisible to expression-only scanners (same shape as FluentAssertions 8.x). The #905
release gate reports "24/24 permissive" by reading those SPDX expressions, so merging
#941 would remove the evidence that gate stands on, days after it passed as a #134 gate.

Skia and Playwright are compatibility pins, majors only: Skia is QuestPDF's native
backend and must move with it; Playwright 1.43.0 is what the CI Test step has been
launching real Chromium with since #911, mirror-fallback included.

Deliberately NOT a blanket major filter on .NET. Grouping is all-or-nothing, so the
list names only pins that are already-recorded decisions (#588, #905, CLAUDE.md
"Stable Dependency Versions"); everything else keeps flowing and is triaged on merit.
Newtonsoft 13.0.3->13.0.4, PdfPig, dotNetRdf, CsvHelper and the rest of #941 remain
available for a deliberate tested pass after the tag.

Validated: 29 update blocks preserved, schemastore dependabot-2.0 PASS.

Refs #942, #905, #910, #941

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 27, 2026
…949 condition 2 (#955)

Downgrade FluentAssertions 8.5.0 -> 7.2.2 in Tests.csproj and add a
semver-major `ignore` entry in dependabot.yml, in the same PR.

License MEASURED on the restored nuspecs (license=truth, not ai-01's claim
taken on faith):
  7.2.2 -> license expression "Apache-2.0" (licenseUrl licenses.nuget.org/Apache-2.0)
  8.5.0 -> license expression "LICENSE" (literal token, not SPDX) + licenseUrl
           aka.ms/deprecateLicenseUrl — the opaque commercial-Xceed shape #905
           flagged as invisible to expression-only scanners.

8.0+ is commercial Xceed; 7.2.2 is the last Apache-2.0 release. Licence-purity
pin on the same basis as AutoMapper #588 and the PdfPig swap #908. #949 proposed
8.10.0 inside a grouped bump and would have shipped the commercial line; ai-01's
#949 disposition names this downgrade + its ignore entry as merge condition 2
(owner po-2024).

Sequence matters (ai-01: "la séquence importe"): the downgrade ships WITH the
ignore entry so dependabot never re-proposes 8.x. semver-major only — 7.2.x
Apache patches keep flowing; only the 7->8 commercial jump is blocked.

Verified empirically (post-#909: cite the summary line, not the check color):
  Debug   build 0 warn/0 err; test «échec: 0, réussite: 638, ignorée(s): 5»
  Release build 0 warn/0 err; test «échec: 0, réussite: 638, ignorée(s): 5»
Baseline 638/0/5 held across both matrix legs. The 8->7 downgrade compiles
clean across all 67 files using FluentAssertions (test code uses only APIs
stable across 7.x/8.x).

Lane: po-2024 (license-hygiene, per #905/#908 precedent). 0 prod write, 0 OWL
path touched (publication-safe). Tracking #949 disposition condition 2.

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 27, 2026
… on master (#955) (#956)

The inventory still told jsboige to arbitrate FluentAssertions, and still named
7.2.0 as the last Apache-2.0 release. Both are now false on master: the
arbitration was made (downgrade) and #955 (6d0bfda) implemented it at 7.2.2.

Five stale references rectified (headline, §3 table, §5, §7.1, §8), following
the RESOLVED pattern §7.2 already established in this file for PdfPig.

Measured firsthand on the restored nuspecs (2026-07-27), not taken on faith:
  7.2.2  license type="expression" -> Apache-2.0, licenseUrl licenses.nuget.org
  8.5.0  license type="file"       -> LICENSE,    licenseUrl aka.ms/deprecate...
and two details the PR body did not cite:
  - <authors> gains "Xceed" at 8.x: the takeover is legible in the authorship
    line, not only in the licence field;
  - requireLicenseAcceptance is ABSENT in 7.2.2 (NuGet default false), against
    true in 8.5.0 - "absent" is not "declared false", and on a licence document
    that distinction is the whole point.

The §8 claim is scoped to the surface this audit covers (24 direct deps of the
shipping binary + transitive closure, and the test project's direct deps),
rather than asserting a universal over the whole repo.

Docs only. 0 prod-CSV write, 0 OWL path touched.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
jsboige added a commit that referenced this pull request Jul 29, 2026
…ind spot) (#964)

CardPen loads vendored JS copies from Generation/CardPen/lib/*.js at harvest
runtime — they render the cards across all 8 languages. They are NOT npm
packages: absent from package.json and the lockfile, so dependabot, the license
scanner, and no automated tool sees them. This is the dependabot/scanner blind
spot #942 was opened to surface (the §2 angle-mot: the real card markdown
engine is tracked by nobody).

Adds §9 to docs/licensing/dependency-license-inventory.md: a read-only inventory
of all 13 vendored files with version + license + provenance, extracted directly
from each file's header (code = truth). 0 CardPen change (DoD).

Findings:
  - 12/13 permissive (MIT family). Versions: CodeMirror 5.25.2, Handlebars
    4.0.10, JSZip 3.1.3 (dual MIT/GPL, MIT elected), PapaParse 4.1.2,
    Underscore 1.8.3, mustache 2.3.0, dom-to-image build 04-04-2017 + its
    -more fork, FileSaver, bind (Remy Sharp, rem.mit-license.org = MIT).
  - 1 copyleft-adjacent: unidecode.js declares its DATA TABLES converted from
    Perl Text::Unidecode, "distributed under the perl license" (Artistic-1.0
    OR GPL-1.0+). Flagged for ai-01/jsboige visibility — does not ship in the
    binary (CardPen is generation tooling).
  - marked.js is a ~0.3.x release (2011-2014 chjj/marked) — disjoint from the
    npm ^16.2.1 devDep (which only serves doc build, per #915/#942). The
    version-age is the security-visibility angle; no CVE asserted here.

Does NOT affect the shipping-binary gate (§1-§8): CardPen is generation
tooling, not the shipped Argumentum.AssetConverter.dll. By the #905 method
(distinguish what ships from what is merely present) these are present-in-
toolchain, recorded for visibility — not a gate re-open. §8 gets one pointer
line noting the surface exists and is separate.

Scope: docs-only (+85/−0), 1 file. 0 C# change → build unaffected, 0 prod
write, 0 CSV, 0 OWL.

DoD #942 (vendored-surface part): DONE. The 22-grouped-PR disposition is
ai-01's (post-tag, separate lane).

Co-authored-by: Your <your.email@example.com>
Co-authored-by: Claude-Code <noreply@anthropic.com>
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