fix: bind public Chapter Zero to METAPAT v3 - #68
Conversation
Codex Review SummaryThis 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: fe01a3d7aa
ℹ️ 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".
|
|
||
| const expected = [ | ||
| [0, 'chapter-zero', 'Meta Energy Theory — Axioms, Postulates, and Theorems', 'The-Interdependency/metapat', 'CHAPTER_ZERO.md'], | ||
| [0, 'chapter-zero', 'Meta Energy Theory — Root Structure and Action', 'The-Interdependency/metapat', 'CHAPTER_ZERO.md'], |
There was a problem hiding this comment.
Refresh the retained snapshot with the v3 binding
In a clean checkout, npm test runs scripts/prepare-tests.mjs with OFFLINE=1, so fetch-textbook.mjs overlays this v3 title onto the unchanged v2 snapshot while retaining its old content. The assertion at line 51 then fails because that content does not contain this title; I reproduced this with OFFLINE=1 node scripts/fetch-textbook.mjs && node --test tests/textbook-integrity.test.mjs. A transient live-fetch failure in the Pages/PR workflow takes the same fallback path, preventing the intended recovery build and temporarily labeling v2 content as v3, so the snapshot should be refreshed or rejected when its content does not match the new manifest.
Useful? React with 👍 / 👎.
METAPAT canon v3 is now on
metapat/mainas merge commit72bb6acdc1e635a10f662b640d5058a222a84eb7.This migrates the website's Chapter Zero binding from the v2 title to the v3 title and updates the public summary and integrity expectation. It intentionally leaves the last-known-good snapshot untouched; a successful online textbook refresh should replace that snapshot with provenance-bearing v3 content.
Without this repair,
fetch-textbook.mjsrejects the new Chapter Zero because the manifest still requires the old title, then falls back to the v2 snapshot.