Repository navigation
feat(migrate): cited licenses of the Archive (T07) - #25
Merged
Merged
Conversation
The config's licenses.table gives the license of each of the 30 templates, each of their 35 atlases and three subsets of files (MNI152Lin's SPM12 images, fsaverage's HCP Pipelines spheres and vertex areas), citing the upstream statement: URL, a verbatim quote and the evidence saved on 2026-12-05, or basis templateflow where there is none. Texts tfmanager does not bundle are under migrate/config/licenses/, cited with URL and sha256, checked when the config loads. T07 (migrate.licensing) sets the SPDX License of template_description.json, writes LICENSE with its SPDX-License-Identifier line (keeping its text, with the entry's corrections, or writing the license's text), makes the License of JSON sidecars follow their atlas or files, declares the subsets' licenses in sidecars and writes docs/licenses/<id>.txt for the other licenses in use. M203 (no entry: the value stays) and M211 (no text, blocking) are new; CHANGES entries get a licenses item. On the Archive, TF502, TF504 and TF505 go away, and MNI152NLin6Sym, MNI305, MNIColin27 and onavg become strict-clean (they flip). MNI152Lin keeps TF508 (GPL on its SPM12 images) until the FIL answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 5, 2026
oesteban
marked this pull request as ready for review
December 6, 2026 08:27
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c258696c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
T07 read the license column of an existing atlases table to choose the license texts, but kept its values, so T08 generated the atlas descriptions with the former license. Each row whose atlas has an entry in licenses.table now takes that entry's license (a table without a license column gets one), before docs/licenses and T08; the CHANGES item counts the rows. No Archive template has an atlases table yet, and in 5c2 T04 writes the table with these licenses before T07. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
So that the item below it, added by the PR stacked on this one, merges without a conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
PR 5c1 of the migration to TemplateFlow 2.0 covers the licenses. Every template, atlas and file subset of the Archive gets an SPDX license, cited from its upstream distribution. A new transform, T07, then writes these licenses into each template.
Each entry carries its license, basis, URL, a verbatim quote, the evidence files saved on 2026-12-05 (kept outside the repository), the retrieval date and the reason. A script checked every quote against its saved evidence, and all 68 matched.
Other changes:
licenses.textsandlicenses.table. The loader checks:license_fileappears only on template entries,countonly on files entries;replaceappears only withkeep;migrate/config/licenses/*.txtships as package data.Evidence
Migrated Archive (pinned v2 skeleton,
test_archive):desc-SPM12sidecars, GPL-2.0-or-later); TF502, TF504 and TF505 are gone. Flips: MNI152NLin6Sym, MNI305, MNIColin27 and onavg. Blocked plans: none. T07 writes 85 files.test_archive_idempotent).New tests (
test_migrate_licensing.py):Local CI on 048fa19 (GitHub CI runs as well, since this PR is based on master):
Decisions to look at again (all approved on 2026-12-05):
Merge Danger
Door: two-way
The config and the code only plan migrations. Nothing changes in the Archive until each template's WP5 PR applies its plan.
Blast Radius: migration plans
tfmgr validate,tfmgr addand the client are untouched. The four templates that now flip will get a 2.0.0 CHANGES entry and versions in their WP5 PRs.