Skip to content

Fix author link (galib9690); contributor path: scaffold, standalone lessons pass, required createdAt - #10

Merged
galib9690 merged 5 commits into
mainfrom
fix/author-link-and-contrib-path
Nov 30, 2026
Merged

galib9690 merged 5 commits into
mainfrom
fix/author-link-and-contrib-path

Conversation

@galib9690

Copy link
Copy Markdown
Member

Owner request (2026-11-30): "fix the author link … and if needed further improve and test using fable".

Author link

courses/intro-to-hydrology/course.json linked the author to the GitHub handle mgalib (an unrelated, empty 2017 account). Now galib9690 (github, profileUrl, authorUrl); course 0.4.2 → 0.4.3 (published bytes changed; CHANGELOG heading added); api/courses.json regenerated (new course hashes). Two regression tests: no github.com/mgalib link or "github": "mgalib" anywhere in tracked files (the email address is not matched), and profile URLs must agree with the handle.

Contributor path, tested end to end

A standalone lesson ("Rational Method peak discharge") was written twice in a scratch clone, by hand from CONTRIBUTING and from a new scaffold, and every check run. Fixes for what blocked or confused a newcomer:

  • scripts/new_module.py + template: creates a valid skeleton (id checked by full match; never overwrites); validate_manifests.py fails while any TODO(new_module) placeholder remains; tests/test_new_module.py takes a skeleton through render, build, validation, CSP and quiz shape.
  • A standalone lesson could not pass test_readme_table_and_course_page (it required every module on the flagship course page); now each course is checked against its own members, and every module is still required in the README table.
  • createdAt (YYYY-MM-DD) is required: a new lesson fell back to a git date that differs before and after commit, so build_api.py --check failed on a correct lesson.
  • Checklist order (render before build), "Start here", cell markup, dependency list, regenerate list (incl. gen_contributors.py), clearer failure messages (CHANGELOG heading, theme baseline, quiz rules), honest citation-gate wording (the tool is maintainer-run; recorded in DECISIONS).

No learner or hash-anchor check was loosened (unique ids, downloadUrl, per-file sha256 / content_sha256, CSP, 250 kB page cap unchanged); validation is stricter in two places.

Verification

pytest 400 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 (scaffold id full-match and mkdir race fixed in 094b158; scaffold smoke-tested by the reviewer).

🤖 Generated with Claude Code

mohdgalib and others added 5 commits November 30, 2026 23:55
…gression test

The GitHub handle and profile links in courses/intro-to-hydrology/course.json
pointed to an unrelated account. api/courses.json regenerated (course.json
sha256 and content_sha256 change). tests/test_repo.py fails if the wrong
account reappears in any tracked file or if authorUrl/profileUrl disagree
with the github handle.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… manifest; clearer failures

Found by adding a standalone lesson in a scratch copy, following CONTRIBUTING:
- test_wave2_repo required every module on the flagship course page; it now
  requires the course's own members there.
- build_api.py --check failed on a correctly built new lesson because createdAt
  fell back to a git date (null before the first commit, different after it and
  after a merge). createdAt (YYYY-MM-DD) is now required by validate_manifests.py;
  all 11 lessons already carry it.
- validate_manifests.py rejects scaffold placeholders left in a lesson.
- Failure messages for the CHANGELOG heading, the theme-ratchet baseline and the
  checkpoint shape say what to do. No check is loosened.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
new_module.py writes the skeleton of a standalone lesson with the structure the
checks expect and prints the next commands in the order that works;
tests/test_new_module.py takes a skeleton through render, build, validation, CSP
and the checkpoint shape in a scratch directory. CONTRIBUTING gains a Start here
section, the correct generated-files order, the cell markup, an honest account
of the citation gate and the meaning of the usual failing checks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rror on mkdir race

Review follow-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@galib9690
galib9690 merged commit 5a096ed 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