Skip to content

Contribution-ready: licences, standalone lessons, accurate checklist, contributor credit - #9

Merged
galib9690 merged 2 commits into
mainfrom
feat/contrib-ready
Nov 30, 2026
Merged

galib9690 merged 2 commits into
mainfrom
feat/contrib-ready

Conversation

@galib9690

Copy link
Copy Markdown
Member

Make the Modules repo ready for hydrology contributors before AGU (owner, 2026-11-30: "go ahead with the fixes"). Stacked on #8 (feat/trust-anchor); merge #8 first, then this retargets to main.

What

  • Licences: LICENSE CC BY 4.0 for lesson content; LICENSE-CODE MIT for scripts/tests/shared code and the code inside lessons. README/CONTRIBUTING explain the split; the manifest license field is the content licence. No existing module conflicts (all CC-BY-4.0); data notices (CAMELS/NWIS, Daymet) kept.
  • Standalone community lessons can merge: tests/test_repo.py no longer requires membership of the flagship course; still enforced — unique ids, moduleId = directory, downloadUrl and per-file hashes (from Trust anchor: content hashes in the API, risky-call lint, CODEOWNERS, security review (ADR-010 step 1) #8), course members exist with matching courseId/courseOrder, no module in two courses; validate_manifests.py rejects course fields on a module no course lists. Removed the repo-wide 1.5 MB growth budget (≈1.13 MB already used; would have blocked about two new lessons); the 250 kB per-page cap stays.
  • CONTRIBUTING checklist now lists everything a new lesson needs and names the enforcing test for each CI item; human-review items (keyboard operation, SYNTHETIC labels/sources, risky-call read) are marked as such.
  • Quiz: every lesson with a checkpoint needs ≥1 numeric item (the q5 exception removed; no lesson relied on it).
  • Credit: CITATION.cff (+ shape test; run cffconvert --validate once); generated CONTRIBUTORS.md (gen_contributors.py --check in CI). Only exact AI-tool names / [bot] accounts are excluded (fails CI); "AI-Hydro Team"-style labels are listed as organisational; real names like "Claude Monet" are credited; human_confirmed escape.
  • Reactions: the reaction-scrape job is removed (Discussions are disabled, all counts were 0); githubReactions stays in the API because the extension reads it, documented as not refreshed.

Verification

pytest 389 passed, 3 skipped; node --test 164 pass, 0 fail; build_modules, render_static_outputs, gen_docs, gen_contributors, build_api --check up to date; validate_manifests 11 modules + 1 course; check_csp pass. Separate-context review PASS-WITH-FIXES; fixes in c189a29.

Open for the owner: courses/intro-to-hydrology/course.json links the author to the GitHub handle mgalib (an unrelated empty account) instead of galib9690 — not changed here pending confirmation.

🤖 Generated with Claude Code

mohdgalib and others added 2 commits November 30, 2026 23:32
…s, credit, no reaction scrape)

- LICENSE (CC BY 4.0, lesson content), LICENSE-CODE (MIT), Licence sections in README and CONTRIBUTING
- standalone lessons may merge: test_repo and validate_manifests no longer require course membership
- complete CONTRIBUTING checklist; total page-growth budget removed (per-page cap kept)
- CITATION.cff, CONTRIBUTORS.md generated by scripts/gen_contributors.py (--check in checks.yml)
- refresh-reactions job removed (Discussions are disabled); githubReactions kept for the extension

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ING corrections

- gen_contributors: classify by whole-name list, [bot] suffix or Agent/Bot last word (no personal-name word);
  organisational labels get their own section; human_confirmed escape hatch; None-safe; pipes escaped
- test_quiz_answers: at least one numeric item is required (no lesson relied on the q5 exception)
- CONTRIBUTING: CHANGELOG heading, human-review items, exact enforcing tests, content vs code licence line
- CITATION.cff shape test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@galib9690
galib9690 changed the base branch from feat/trust-anchor to main November 30, 2026 18:23
@galib9690
galib9690 merged commit 8ea74bb into main Nov 30, 2026
1 check passed
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.

2 participants