Repository navigation
Fix author link (galib9690); contributor path: scaffold, standalone lessons pass, required createdAt - #10
Merged
Conversation
…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>
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.
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.jsonlinked the author to the GitHub handlemgalib(an unrelated, empty 2017 account). Nowgalib9690(github,profileUrl,authorUrl); course 0.4.2 → 0.4.3 (published bytes changed; CHANGELOG heading added);api/courses.jsonregenerated (new course hashes). Two regression tests: nogithub.com/mgaliblink 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.pyfails while anyTODO(new_module)placeholder remains;tests/test_new_module.pytakes a skeleton through render, build, validation, CSP and quiz shape.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, sobuild_api.py --checkfailed on a correct lesson.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
pytest400 passed, 3 skipped;node --test164 pass, 0 fail;build_modules,render_static_outputs,gen_docs,gen_contributors,build_api--checkup to date;validate_manifests11 modules + 1 course;check_csppass. 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