Skip to content

Docs and skills for 0.25.2; licence rules page - #654

Merged
bact merged 13 commits into
mainfrom
docs-skills-0-25-2
Dec 3, 2026
Merged

bact merged 13 commits into
mainfrom
docs-skills-0-25-2

Conversation

@bact

@bact bact commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Docs and skills for 0.25.2, plus a hand-over for the provenance taxonomy.

  • New docs/licence-decision-rules.md: declared vs concluded, the seven Rule ids, no-licence outcomes, sources per subject, worked examples (GPLv2, Apache notice, python-dateutil, numpy).
  • license-ambiguous/notice and /several-texts advice fits a project, a distribution and a Hub card.
  • BSI rows checked against TR-03183-2 v2.1.0 (effective licence is other + hasEffectiveLicense).
  • Sweep fixes; known-limitations.md split by topic; Hub identity wording.
  • Taxonomy hand-over: rulings of 2026-12-03, BSI distribution licence, points to reconcile.

Generated by Claude Code

bact and others added 11 commits December 3, 2026 16:49
Record what #651 and #652 built, the owner rulings of 2026-12-03 and
the points the code stage reconciles with the earlier rulings; bring the
taxonomy's detection-path notes and the Rule docs up to date.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
docs/licence-decision-rules.md is the one page on how Pitloom decides a
licence from a licence file: declared versus concluded, the seven rule
ids as a decision table, the no-licence outcomes and their INFO codes,
which source is declared or concluded per subject (project, sdist,
wheel, embed-wheel, dependency, Hub model), what LicenseID gives versus
what Pitloom adds, and worked examples verified against real inputs.

The provenance page keeps its Licence rules table as a brief list that
links to the new page, and the rule test checks both pages against
LICENSE_RULES. The stated-in-file comment now says a licence file counts
when its whole text is an id or expression, as the code reads it.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
- pypi-url.md and the sbom-generate SKILL.md run a PyPI URL with the
  skill's own pitloom floor.
- id-registry.md states the Hub name-key rule as it is now.
- known-limitations.md: a refused one-part Hub URL is
  https://hf.co/gpt2; a scheme-less hf.co/gpt2 is not refused.
- ai-model-scan-limits.md, cli-flags.md, url-credentials.md and
  metadata-reading-back.md describe current behaviour only.
- metadata-reading-back.md step 4 is split into sub-bullets.
- roadmap.md links the right known-bugs anchor.
- id-registry-autosync.md names the current IdRegistrySession methods
  and _ambiguous_keys.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
- COMP-015 (effective licence): state the TR's mapping, a Relationship
  of type other with comment hasEffectiveLicense, beside the
  hasConcludedLicense the checker reads; Pitloom writes no such
  relationship.
- COMP-006: the TR maps it to hasConcludedLicense with completeness
  complete.
- COMP-014: a dependency's declared licence counts too.
- g7-sbom-for-ai.md: Pitloom writes a concluded licence for a project's
  main package, none for a dependency, model or dataset.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
known-limitations.md was over the 30 KB file-size limit. It keeps the
general cases (packaging markers, mixed ecosystems, non-PyPI
dependencies, extras and authors, unsupported build backends) and links
three topic pages: known-limitations-ai-models.md,
known-limitations-wheels.md and known-limitations-licences.md. Each page
points back to it; SKILL.md, the references that cite a moved section
and the message drift tests name the new pages.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
- license-ambiguous/notice and /several-texts advice name where a
  project, a distribution or a Hugging Face model card states its
  licence, and both say "once per file and text", as the code keys it.
- url-moved/hub-id, ai-model-formats-hugging-face.md and the skill's
  AI-model limitations: a model's spdxId differs on an unanswered Hub
  run unless an ID registry pins it; the document id differs either way.
- Skill references: the several-texts and notice INFO lines, with a link
  to the licence decision rules, and the element and merge text-unsafe
  lines.
- Message references regenerated; the British-English test keeps the
  card key "license" for both codes.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the test-all-os Use this to trigger full tests on all platforms label Dec 3, 2026 — with Claude
@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (a0b0c79) to head (fc40bf8).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #654   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         546      546           
  Lines       35768    35769    +1     
  Branches     5037     5037           
=======================================
+ Hits        35761    35762    +1     
  Misses          4        4           
  Partials        3        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

bact added 2 commits December 3, 2026 17:46
- licence-decision-rules.md: an SPDX-License-Identifier tag decides the
  file and the text beside it is not read (single-text, text-variant
  rows); stated-in-file is a "looks like" check, and a value that names
  no licence is recorded as text; the dependency-route exception to
  "normalised only from its own text"; the LGPLv3+ example needs a
  License header that names no SPDX licence.
- license-ambiguous/several-texts and the skill's licence limitations:
  a notice gives none only when LicenseID ranks it first.
- url-moved/hub-id, the HF docs and the skill: the document id, PURL
  commit and every spdxId no ID registry pins follow the Hub commit.
- metadata-provenance-licences.md links the per-subject file lists and
  says embed-wheel --project-dir adds a concluded licence.
- The PyPI URL floor in sbom-generate is 0.25.1 throughout;
  url-credentials.md drops a history aside.
- handover-0-25-2.md: tag case under "To reconcile", rule ids defined
  in the rules page, BSI section after ruling 8; asserter-licence.md says
  once per file and text.
- Message references regenerated.

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
…Hub pins

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact
bact merged commit 72ad86b into main Dec 3, 2026
25 checks passed
@bact
bact deleted the docs-skills-0-25-2 branch December 3, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all-os Use this to trigger full tests on all platforms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants