Repository navigation
License lineage: repository licenses and data-typed papers - #2522
Merged
Merged
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2522Version: 🤖 Updated on each push. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the license-lineage gaps a depositor reported in support ticket #280 (owner-approved, 2026-11-28). Resolver
license-lineage/7, DOI cache keydoi4:. Owner rules kept: anything the resolver cannot determine isunresolved(no mail), nothing is guessed, and a failed fetch never moves an outcome toward permission. Fixtures 69 to 92 were recorded from one live read of each public registry (two Dataverse contact emails redacted).What changed
/ds/<id>redirect, then the datasets/view API's license name), listed Dataverse installations (Recherche Data Gouv, DANS Data Stations, DataverseNL, Harvard; license name/URI, custom terms or a restricted file areunresolved), and Research Data Australia for Curtin (10.25917; Curtin has no public repository API, RDA's rights record is machine-readable). A repository that states no license leaves the record as today; a failed read isunresolved.license.spdx_id; only a data license (CC family, CC0, ODC family, etalab-2.0) counts. A code license (MIT, BSD, Apache, GPL, Unlicense), no license orNOASSERTIONisunresolved. Not added toOWN_RECORD_RESOLVERS.unresolved. The 64 KiB cap holds while streaming when there is no Content-Length. No license file stays as today.ODC-By v1.0, ODC URLs with hyphenated versions, SPDX license-list URLs, andetalab-2.0(attribution class,permissive-attribution, from its text: attribution is its only condition and it names CC BY 2.0+ and ODC-By as compatible; reasoning in the ADR 0139 amendment). COAR access-rights entries are not licenses..mat,.nwb,.h5,.csv/.tsv; never archives or generic.json/.xlsx) hold at least 90% of bytes and at least 1 MiB is a dataset under its license. A record mostly of archives or generic formats, or with unknown sizes beside such files, isunresolved(never a dataset, never a publication). PDF/figures-only and other types (software, poster) stay publications. Such a record never counts as an own-record upstream for the bulk acknowledgment. The Zenodo/figshare read is now retried and a failed read isunresolved. Card note updated for both cases; a resolver-6 record keeps the 0.10.59 sentence.DatasetDOI; now only a NEMAR (10.82901) DatasetDOI is dropped as the dataset's own, from every input.unresolved; only ODbL + Database Contents is read. The unused one-attempt fetch was removed (the Zenodo read is retried on purpose: it now decides the outcome).Expected outcomes (from the fixtures)
nm000543, nm000704, nm000749, nm000926, nm001048, nm000568:
compatible_attribution. nm000819:compatible. nm000714, nm000337:compatible_nc.unresolved: nm000661 (one zip archive), nm001046 (MIT is a code license), nm001045 (GitHub detects no license).Test plan
bun run typecheck,bun run lint, biome on changed filestest/license-lineage*.test.ts(newlicense-lineage-repositories.test.ts, the ticket's twelve datasets end to end), license-check spawn, decision card, upstream-ack, auto-deny, license-permission, review inputs, backend lineage and upstream-ack routes (713 pass after review round 1)NOASSERTIONmutants each fail a testbun testnot run (epic-level gate); would check the whole suite becauseRegistryBasesgained fields