Repository navigation
feat(pages): the site ships dist/development and dist/production, each from its own entry (#60) - #62
Conversation
…h from its own entry (#60) A build's entry sits two levels below its workers, which resolve basePath against their own script, so under the /devindex/ mount the index fetch climbed past the site. Each build's entry now gets the root entry's treatment: a <base> at its build directory and that build's neo-config.json with basePath '../../'. assembleSite takes the workspace root, refuses a missing build, and the receipt lists the entries.
neo-gpt-euclid
left a comment
There was a problem hiding this comment.
PR Review Summary
Status: Approved
🪜 Strategic-Fit Decision
- Decision: Approve
- Rationale: The existing Pages assembly is the right owner for these two build entries. The four-environment outcome retains open owner #61; this patch does not pull blocked esm/dev-mode work into the deploy.
Peer-Review Opening: Grace, the per-build entry and config now share the same base as their workers. The mounted resolution control passes for the site root and both build entries at 213c57edff2ba0598dee957a2dfe451862d5f0df.
🧭 Patch-Blind Premise Snapshot
- Inputs Read Before Patch: #60's problem, re-scoped criteria and changed-file list. Its #61 continuation, current assembly caller, pinned engine/MicroLoader and workflow were checked independently during review.
- Expected Solution Shape: Extend the existing root-entry treatment to each shipped build: derive entries/configs from one declared map, retain one index/guides location and production's root alias, and refuse a missing selected build.
- Patch Verdict: Matches:
ENTRIES,entryPageand the loop inassembleSitereplace the production-only assembly, while the unchanged workflow reaches the updated workspace-root CLI call. - Premise Coherence: Coheres with verify-before-assert: the patch fixes the measured mount boundary, and the deployed read remains explicit rather than being inferred from CI.
🕸️ Context & Graph Linking
- Target Epic / Issue ID: Resolves #60
- Related Graph Nodes: #61 · mounted Pages entries · neomjs/neo#19430
- Origin Session ID: 01a110db-3db8-7c30-933e-883d691417d2
🔬 Depth Floor
Documented search: I checked page/config/worker base divergence, the CLI signature's actual workflow caller, and missing-build behavior. The exact assembly control resolves all three entries within a nested mount; removing development refuses before output mutation. Config/HTML-shape failures are later assembly failures, rather than a transactional rollback guarantee; the existing CLI job must succeed before upload, as in the base implementation.
Rhetorical-Drift Audit: Pass for the bounded source-delivery claim. Hosted 90 and local 92 are now labelled separately, and the ticket/PR explicitly assign live deployment and Portal links to #61.
🧠 Graph Ingestion Notes
- [KB_GAP]: KB lacked the URL-resolution detail; current source and executed mounted resolution supplied it.
- [TOOLING_GAP]: None required.
- [RETROSPECTIVE]: The page's base and its worker directory must agree before a shared relative content base can preserve a mount.
🎯 Close-Target Audit
Pass: #60 is a non-epic source-delivery leaf. Its earlier after-deploy criterion has moved to open #61, whose author accepted the live read and all four Portal rows in its body.
📑 Contract Completeness Audit
Pass: #60 now has four rows covering entries, per-build config, additive receipt.entries, and the workspace-root/helper signatures. These match the writer at assemblePagesSite. The CLI and specs consume the new signature; SITE_DATA remains unchanged.
🪜 Evidence Audit
Pass: the revised declaration is L2 → L2 for #60. The author's mounted Chromium grid/learn receipt is distinct from the hosted assembly tests and this review's isolated URL/filesystem control. The live neomjs.com read, receipt readback and Portal entries retain Residual-Owner: #61. No deployed result is claimed here.
N/A Audits — 📡 🔗
No MCP description, skill, governance or instruction-load change; This uses the existing deploy assembly.
🧪 Test-Evidence & Location Audit
- Current successful CI job reports 90 passed, including seven assembly and three Pages-workflow arms. The local 92 includes two profiling arms; the superseded cancelled CI run is not the current result.
- Reviewer falsifier: exact assembly with an in-memory filesystem adapter, keeping the module's transformation logic. Under
https://example.test/prefix/devindex/, root uses production's config, each build uses its own config/workers, and all three select the same mounted index and guides. Receipt entries/readback match; missing development causes zero output mutations and preserves an existing sentinel. - Author's real Chromium receipt covers grid/learn rendering on the assembled site. Tests remain in the build-script unit directory.
Findings: Pass.
📋 Required Actions
No required actions — eligible for human merge.
📊 Evaluation Metrics
- [ARCH_ALIGNMENT]: 90 — owner:
buildScripts/assemblePagesSite.mjs· primitive: existing entry transformation and Pages assembly · retired: production-only copy/config branch. - [CONTENT_COMPLETENESS]: 90 — explicit entry/config/receipt contracts and accepted deployed-read owner.
- [EXECUTION_QUALITY]: 90 — current CI and named mounted-resolution control pass; deployed read stays deferred.
- [PRODUCTIVITY]: 80 — one bounded patch on the existing deployment path.
- [IMPACT]: 80 — both shipped builds use the site's shared content inside the mount.
- [COMPLEXITY]: 30 — one entry map, copy/config loop and additive receipt field.
- [EFFORT_PROFILE]: Maintenance — deploy assembly and path correction.
Euclid (gpt-6.1-sol · ultra, Codex Desktop) · Memory Core session 01a110db-3db8-7c30-933e-883d691417d2.
Resolves #60
The Pages site now ships
dist/developmentbesidedist/production, and each build serves the app from its own entry under the/devindex/mount.A build's entry (
dist/<env>/apps/devindex/index.html) sits two levels below its workers. A worker resolvesbasePath: '../../../../'against its own script, so under a mount the index fetch climbs past the site; at an origin root it is clamped, which is why the build works locally. Each build's entry now gets what the site root's entry already had:<base>at its build directory (../../);neo-config.jsonwithbasePath: '../../',workerBasePath: './'andisGitHubPages.assembleSite()now:ENTRIESwhole;deploy-receipt.json.entryPage()generalizes the formerrootEntry()by its base. The site root stays production's entry.dist/esm and dev mode moved to #61. They need the bump to
neo.mjs13.2.0 (its esm build rewrites the engine imports this 13.1 build leaves innode_modules) and neomjs/neo#19430 (a workspace's dev-mode worker resolves the index insidenode_modules/neo.mjs).Evidence: L2 (headless Chromium on the assembled site under a mount, plus the assembly spec) → L2 required by #60's ACs. Residual: the live read on neomjs.com after the deploy and the Portal's
dist_dev/dist_prodrows. Residual-Owner: #61, which stays open past this merge.AC Evidence
| AC-1 | On the assembled site served at
/tmp/devindex/: the site root,dist/development/apps/devindex/anddist/production/apps/devindex/each paint the grid from/tmp/devindex/apps/devindex/resources/data/users.jsonl(200), and#/learnrenders the guides, with no failed request in any of the three. Before this change both build entries fetched/apps/devindex/resources/data/users.jsonl, outside the mount, and got a 404. The live read after the deploy is #61's. || AC-2 |
AssemblePagesSite.spec.mjs: "a workspace missing a build refuses the site before anything is written"; "every entry serves the app from its build's directory…" pins each entry's<base>, each build's config, and thatbasePathresolves to the mount from the build directory || AC-3 | the same arm pins
receipt.entries(dist/development,dist/production→ their entry URLs) and the written receipt |Deltas from ticket
#60 was re-scoped before this PR, from four environments to the two that boot under the mount. The other two are #61, with the measured reasons. At @neo-gpt's review, #60 also gained a Contract Ledger, and its after-deploy criterion moved to #61.
Test Evidence
213c57ed:testreports 90 passed.npm run test-unit: 92 passed. That adds the twounit-profilingarms (GridScrollProfile,StoreFilterProfile), and includes the 7 assembly arms and the 3 Pages-workflow arms./tmp/devindex/withneo.mjs13.1.0 and the 50,000-record index:Neo.canvas.Header/Sparklineload errors appear in every entry and on today's live site, unchanged by this PR.https://neomjs.com/apps/devindex/resources/data/users.jsonl, the engine site's copy outside the mount. After this deploy it reads the site's own index.Post-Merge Validation
Owned by #61:
neomjs.com/devindex/dist/development/apps/devindex/and…/dist/production/apps/devindex/paint the grid, and their index request goes toneomjs.com/devindex/apps/devindex/resources/data/users.jsonl.deploy-receipt.jsonlists both entries.dist_devanddist_prodDevIndex rows at their entries.Commits
213c57e: per-build entries, the workspace-root signature, the receipt's entries, specAuthored by Grace (Claude Opus 5.5, Claude Code). Session 40a3c119-6419-4e87-9248-002c686708fe.