Skip to content

MR-23e: root follow-ups; the wired monorepo is green - #803

Closed
michaeljgrimm wants to merge 32 commits into
codex/mr-23a-root-galleryfrom
codex/mr-23e-root
Closed

michaeljgrimm wants to merge 32 commits into
codex/mr-23a-root-galleryfrom
codex/mr-23e-root

Conversation

@michaeljgrimm

Copy link
Copy Markdown
Contributor

MR-23e: root follow-ups after merging MR-23b (#801), MR-23c (#799) and MR-23d (#800) into MR-23a (#797). Base is codex/mr-23a-root-gallery; the three merges are plain merge commits (disjoint package directories, no conflicts). Merge with a merge commit or rebase, not a squash. Draft.

Fixes (the "root changes needed" of the four reports)

  • pnpm pack of core. Core's optional peers on render and pptx are the concrete range ^0.26.0 (no workspace:), and core keeps no devDependency on them (that would close core -> pptx -> core). pnpm pack has nothing to resolve; verified for all six packages. check:workspace-graph: a peer on a member is workspace:^ when the package installs it through a workspace:* devDependency, else ^<member version>. check:versions keeps core's peers and PEER_RANGES (peers.ts) equal to the shared version (MR-40's release.mjs prepare must set them with the version). check:workspace-pack packs core for real.
  • Pack workarounds deleted. One scripts/workspace-pack.mjs (pnpm pack, packed manifest read from the tarball, no workspace: or catalog: spec, assertLockstep) replaces pptx's test/helpers/pack-workspace.mjs (with its staged-npm pack fallback), the editor's staged manifests and render's tarball reader. The assertions are kept. Core's and the CLI's test:packed and test:packed:peers no longer use pack-cli-candidate, the release plan or the RR-55 peer gates in the local run: they install the pnpm pack tarballs of the workspace.
  • Build order. Root build:packages (pnpm -r --if-present run build, topological: gallery, core, render, pptx, then editor and CLI); build is an alias; test:run starts with it. Every package's build:deps is pnpm --filter "<pkg>^..." run build (what MR-30's setup-workspace already does), so no hand-ordered list can drift; core and the CLI get one too (their builds no longer build dependencies inside); gallery's test, typecheck, previews, check:previews, check:stability use build:engines (render and its dependencies; the gallery's engine-dependent gates need render's dist now that it is untracked); integration uses build:deps. check:changed builds <pkg>... before a files-only run.
  • check:quarantine runs quarantine.mjs check-all: the root and every packages/* with test/quarantine.json (test with fixtures).
  • -- in browser-suites.json: none exists in render or pptx (checked); the doc lines that used -- args are fixed.
  • Sibling-layout scripts repointed to packages/<x> (used by pnpm test or MR-30's workflows): test-gallery-lazy-fonts and test-gallery-script-fonts (now run their real-renderer branch), test/browser-suites.json (installed-browser), pack-ecosystem (the preview set includes the gallery at its own version; furniture-gallery.mjs expects exactly that artifact), test-packed-ecosystem, test-installed-code, test-packed-browser, test-plain-whitespace-workflow, test-timeline-workflow, test-furniture-workflow, test-timeline-acceptance, test-readability-browser, test-metric-outline-browser, test-furniture-fields-browser, metric-outline-ink.test, test-code-layout-browser, test-metric-layout-browser, build-editor-demo and the build-*-browser/test-*-browser bundles it imports, build-rich-table-browser, published-matrix/engines-source, and the root test:ecosystem/test:fonts/test:data/test:rich-text/test:layout/test:lists/test:pagination/test:image-treatments/test:placeholder-groups/test:gallery-transfer scripts. test:gallery needs the separate ../pptx-gallery site checkout and stays as is.
  • packages/render/dist and packages/pptx/dist untracked (git rm --cached, a package .gitignore each, like the editor): both are plain copies of src/ that every suite rebuilds through build:deps; the build reproduced every tracked file byte for byte, so nothing is lost, and pnpm's mode flip on render's bin no longer shows in git status. Nothing in the golden test reads a committed dist (it builds first). The MR-31 worker should expect no committed dist.
  • spawnSpec drops the npm_config_* variables only pnpm understands (overrides, recursive, verify-deps-before-run, fail-if-no-match, ...) for npm and npx children, so npm prints no "Unknown env config" warning; npm's own and user-set variables stay (test).
  • Root .gitignore line for packages/editor/dist/styles.css dropped; ci-test-weights.json loses the 12 deleted tests (golden-pinned-image.mjs and the candidate-gallery-ci, publish-source, publish-workflow-trust, candidate-goldens, published-core-gate ones).
  • releaseLane.githubRepository (public API of the editor, and the same constant in render and pptx): now "OpenPresentation/opf", and releaseLane gains directory ("packages/editor" and so on). Types are updated, READMEs say OpenPresentation/opf (packages/<x>). Fragment changes/mr-23e-release-lane-repository.md (packages: [editor, render, pptx], changed).

Results (fresh clone of this branch, macOS arm64, Node 26.7, pnpm 10.33.2)

Step Result Time
pnpm install --frozen-lockfile ok 1 s (warm store)
pnpm lint ok (warnings only, as on main) 3 s
pnpm typecheck ok, six packages 20 s
pnpm test (core, CLI, gallery, integration, render, pptx and editor contract suites, all check:*), render golden digest excluded in the scratch clone only ok; 72 of 72 checks 12 to 13 min
the two golden tests alone fail on Golden corpus changed (MR-31), nothing else
test:packed core / CLI / CLI peers / render / pptx / editor all pass 36 s / 24 s / 102 s / 26 s / 45 s / 62 s
pack:ecosystem, test:packed-ecosystem, installed-browser suite, test:packed-browser pass 3 s, 80 s, 44 s, 7 s
demo:editor, build-rich-table-browser build 2 s, under 1 s

An earlier run of the same clone failed check:reuse-build and check:release-train (two tests that asserted the old script text); both are fixed in the branch and the full node scripts/run-checks.mjs then passed 72 of 72 (51 s).

Left (not in this PR)

  • MR-31: the golden digest. MR-34 deletion list (still sibling-layout or registry-model, not used by pnpm test or MR-30's workflows): register-local-opf.mjs, local-opf-loader.mjs, link-ecosystem.mjs, audit-svg-contrast, review-* (accepted-text, chart-colors, content-cards, contrast-border, contrast-glyphs, font-corpus, gallery-artwork, metric-corpus, native-font-followup, native-quote-followup), font-shaping-probe/*, measure-font-candidates, measure-font-replacements, qualify-latin-fonts, probe-furniture-reimport, run-rich-text-browser, test-editor-lazy-fonts, test-editor-publication, test-pptx-publication, test-renderer-publication, registry-sibling-gate, build-registry-gallery-editor, published-matrix/installed-parity (copies register-local-opf), scripts/pack-cli-candidate.mjs (no longer used by the local runs), and the docs/programs/** scripts that import ../opf-*. The registry modes of test-packed-ecosystem, test-installed-code and packages/cli/test/packed.mjs (--registry, release-plan.json, verification refs of the old repositories) still follow the old model: MR-34/MR-40.
  • check-changed.mjs runs --filter <pkg>... build; MR-30's setup-workspace already uses <pkg>^....
  • Not run: Windows, Node 22 and 26, CI, test:next-bundle, the registry consumers, test:gallery (needs ../pptx-gallery).

🤖 Generated with Claude Code

michaeljgrimm and others added 30 commits October 22, 2026 05:06
…opies and the workflow-contract tests

package.json: npm run -> pnpm run, node ../../scripts/run-tests.mjs, drop check:runners and check:changes (root checks cover them), add check:scripts for the package's own check-syntax and browser-suites tests. Deleted: changelog-fragments(+test), flake-repeat, publish-source, quarantine(+test), run-tests(+test), ci-evidence(.mjs/.json) and the tests that read the removed .github/ (candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust). The check-syntax tests move to scripts/check-syntax.test.mjs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
package.json: npm run becomes pnpm run, run-tests.mjs is the root script, check:runners and
check:changes are dropped (the root checks cover them), check:fonts no longer runs the local
hotlink guard (the root check:font-hotlinks scans every tracked file). The local copies of
changelog-fragments, flake-repeat, publish-source, quarantine, run-tests, ci-evidence and
check-font-hotlinks (with their tests and allowlist) are deleted; the check-syntax tests move
out of run-tests.test.mjs into scripts/check-syntax.test.mjs (pnpm run check:scripts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
candidate-gallery-ci, publish-source, publish-workflow-trust, ci-evidence, candidate-goldens
and golden-pinned-image only checked the deleted per-package workflows and the deleted
ci-evidence script; the unified workflows are covered by root tests (MR-31, MR-40).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…copies of shared scripts and workflow-contract tests deleted

package.json: npm run -> pnpm run; run-tests, check-font-hotlinks:built point at ../../scripts; check:runners, check:changes and
check:font-hotlinks dropped (the root covers them); build:deps builds the gallery and core before the editor build, because dist/ is no
longer tracked and the tests import it. The check-syntax tests move out of run-tests.test.mjs into scripts/check-syntax.test.mjs; the
browser-suites test imports the root quarantine.mjs.

Deleted: the sibling copies of changelog-fragments, flake-repeat, publish-source, quarantine, run-tests, check-font-hotlinks (+ tests and
allowlist), ci-evidence, published-core-gate (opf.requiresUnreleasedCore is gone), and the workflow-contract tests that read the removed
.github/ (candidate-gallery-ci, ci-evidence, publish-source, publish-workflow-trust, published-core-gate).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dist/ is a copy of src/ plus the generated styles.css. The committed copy went stale in 0.25.1 (it lacked the source-pane and presenter
changes), the registry lane rebuilds it from source (opf #794) and npm builds it at prepack. Untrack it and ignore it; the test scripts,
test:contract and the playground now run `build:deps` and `build` first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ore-gate test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ck.json

verify-vendor.mjs reads the @node-projects/jszip integrity from the root pnpm-lock.yaml. The native-*, footer-text-shape and compare-native-picture-edit* evidence records the sha256 of the package set pnpm-lock.yaml installs for packages/pptx (scripts/pnpm-lock.mjs, test/helpers/lock-evidence.mjs); an isolated npm consumer keeps hashing its own package-lock.json. native-evidence.mjs finds the editor at ../editor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… installs the workspace candidates

The test no longer needs npm_execpath (`pnpm run` sets it to pnpm's entrypoint): every npm, pnpm and tar call goes through the root
spawnSpec. The editor is packed with `pnpm pack` and its packed manifest is read from the tarball (workspace: ranges are versions
there; package.json is compared with the tarball's copy). The consumer installs the editor with the workspace candidates of gallery,
core, renderer and PPTX converter, because 0.26.0 is not on the registry before the release; the lock assertions check the candidate
tarballs' integrity, and `npm audit signatures` is recorded as skipped until every candidate version is published.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…points at the root rules

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lor-ref-export reads the real fixture

test:packed and test:browser pack the candidate and its workspace siblings with pnpm pack (test/helpers/pack-workspace.mjs, which reads the manifest inside the tarball and refuses a workspace: spec), install the tarballs into the isolated npm consumer instead of registry versions, and run npm through scripts/package-manager.mjs instead of npm_execpath. build:deps builds gallery, core and render first. color-ref-export.mjs reads docs/fixtures/color-references.opf.json from the repository root and no longer falls back to an inline deck.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The render suites import core and the gallery through the workspace links, and neither has a dist
in a fresh checkout (dist/ is ignored outside render). build:deps builds the gallery and then core;
test, test:contract, test:golden and golden:update run it before the render build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ked manifest

The test ran under npm (npm_execpath) against registry core and read raw dependency specifiers
from the source package.json, which are now workspace: ranges. It now packs render, core and the
gallery with pnpm pack (which writes the registry ranges), installs the three tarballs with npm
through scripts/package-manager.mjs, checks the packed manifest read from the tarball (no
workspace: specifier, ^<core version>), compares every other shipped file with its source, and
takes the semver check out (the gallery development dependency is workspace:*, an exact match).
npm audit signatures runs in a consumer holding only the registry dependencies, since the workspace
packages are not on the registry before their release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…xecpath

Packing and installing helpers move to scripts/workspace-pack.mjs (pnpm pack of this package, core
and the gallery; npm through scripts/package-manager.mjs; the packed manifest read from the
tarball), shared by test:packed and test:next-bundle. check-next-bundle installs the workspace
tarballs (or a --tarball with the core range its own manifest declares); update-font-manifest runs
npm and tar through spawnSpec. Both run with pnpm run or plain node.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eckouts

probe-font-variants imports packages/pptx; furniture-review treats the repository root as core,
maps the opf-render predecessor commit to its imported hash (commit-map) and records the
workspace lock instead of the removed package-lock.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AGENTS.md points at the root rules and drops the npm/package-lock/per-package CI and publish
text; README and CONTRIBUTING development and release sections use pnpm, the root changes/ and
the root release process; QUARANTINE.md, golden/README.md and suites.json use the root scripts
with --dir packages/render and say that the golden workflows were not imported (MR-31).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…npm and the root release process

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The gate read ../archive, a second checkout of opf-render 343fb84 that the per-package CI made
beside the package (a commit that is not on main, so the history import does not carry it). A
sibling directory means nothing in the workspace; scripts/fetch-archive-fixtures.mjs fetches the
two sparse paths from the frozen opf-render repository into the ignored artifacts/archive/
(shallow, blobless), and the gate still verifies the SHA-256 of every file it reads.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The root check:text scans every file under packages/render, including the fetched font binaries;
artifacts/render-archive/ at the repository root is ignored and not scanned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…npm pack has nothing to resolve

check:workspace-graph: a peer on a member is workspace:^ only when the package installs it through a workspace:* devDependency; core cannot (that closes core -> pptx -> core), so its peers are ^<member version>. check:versions keeps them and PEER_RANGES equal to the shared version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…quarantine check-all, untracked render and pptx dist, npm env without pnpm settings

- scripts/workspace-pack.mjs: one pnpm pack helper for the render, pptx and editor packed checks (no staged-manifest fallback); check:workspace-pack packs core for real.
- Root build:packages (topological), package build:deps as <pkg>^... filters, gallery build:engines; core and the CLI build the gallery first.
- quarantine.mjs check-all loops the root and every packages/<x> with a test/quarantine.json.
- packages/render/dist and packages/pptx/dist are generated, not tracked.
- spawnSpec drops the npm_config_* variables only pnpm understands when it spawns npm or npx.
- releaseLane.githubRepository names OpenPresentation/opf with a directory (editor, render, pptx).
- ci-test-weights.json loses the deleted tests; the redundant .gitignore line goes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…still use to packages/<x>; preview set includes the gallery

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… release-plan or candidate-gallery path in the local runs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… scripts run on the packages/ layout; the gallery is a workspace artifact

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…color-ref fixture path

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
michaeljgrimm and others added 2 commits October 22, 2026 06:54
… files.mjs keeps the gate

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@michaeljgrimm

Copy link
Copy Markdown
Contributor Author

Landed on main through #808 (merge commit 62c4b26), which carries this PR's commits unchanged.

@michaeljgrimm
michaeljgrimm deleted the codex/mr-23e-root branch October 26, 2026 07:56
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.

1 participant