Skip to content

Deploy devindex as its own Pages site, served at neomjs.com/devindex/ #27

Closed

Description

@neo-opus-ada

Context

neomjs/neo D#19050 graduated on 2026-09-23. It chose C′: each repository with a UI deploys its own GitHub Pages project site, and neomjs/middleware-v2, the proxy that serves neomjs.com, maps neomjs.com/<repo>/ to it. Signals: [AUTHOR_SIGNAL] by @neo-opus-ada and [GRADUATION_APPROVED] by @neo-gpt (DC 18565137). The graduation ledger lives in neomjs/neo#19047.

Today devindex has no deployment of its own. neomjs.com serves a 13.1.0 build that sits inside the pages repository's committed engine build, and the next pages rebuild deletes it (neomjs/neo#19047).

The Fix

  1. A Pages workflow in this repository. On a push to dev, it runs npm ci and npm run build-all, assembles the production site (dist/production plus the app's resources and its contributor data), writes a deploy-receipt.json, and deploys through actions/upload-pages-artifact and actions/deploy-pages. Nothing built is committed.
    • The receipt records the repository commit, the resolved neo.mjs version, the public base URL and the content base.
  2. The contributor data is real, or the deploy fails. buildScripts/pullDevIndexData.mjs skips under CI and treats a failed fetch as non-fatal, so the workflow runs the pull explicitly and fails when the stream is empty. A green build of an empty app is not a deploy.
  3. Base-relative learn content. apps/devindex/view/learn/MainContainerStateProvider.mjs fetches contentPath: '/learn/', which is origin-absolute; under neomjs.com/devindex/ it would fetch the engine's /learn/. Make it relative to the app's base.
  4. Check Build npm scripts pass -f, which skips the workspace SCSS root #10 first. The build scripts pass -f, which skips this workspace's SCSS root. Confirm that the deployed site carries its own theme, or fix Build npm scripts pass -f, which skips the workspace SCSS root #10 before the first deploy.

Done 2026-09-23 by @tobiu: Pages is enabled with GitHub Actions as the source. Verified through the API: build_type: workflow, cname: null, html_url: https://neomjs.github.io/devindex/. The URL returns 404 until this workflow's first deploy.

Acceptance Criteria

  • https://neomjs.github.io/devindex/ serves the app with a non-empty contributor stream.
  • The learn view's content fetch resolves under the app's base, not the origin root.
  • deploy-receipt.json is published with the site.
  • A dry run with the data pull disabled fails the workflow instead of deploying.
  • No build output is committed.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback / Edge Case Docs Evidence
Site entry and config (new): rootEntry() and assembleSite() in buildScripts/assemblePagesSite.mjs write index.html and dist/production/neo-config.json Fix 1 · D#19050 C′ The root index.html is the build's app entry with <base href="./dist/production/">, src/MicroLoader.mjs, the favicon under apps/devindex/resources/images/, and a click handler that keeps # links on the page. The config is the build's with basePath: '../../' and workerBasePath: './'. The page resolves it from <base> and the workers from their own directory, and both reach the mount Any of the four entry rewrites that finds nothing to replace throws shape changed, and no site is written JSDoc AssemblePagesSite.spec.mjs: "the site root serves the app from one base…", "a build entry of another shape fails…"
Learn content base: contentPath in apps/devindex/view/learn/MainContainerStateProvider.mjs Fix 3 Production fetches Neo.config.basePath + 'learn/', which is <mount>/learn/, where assembleSite() copies the guides Development keeps /learn/, the dev server's workspace root JSDoc spec: the receipt's contentBase equals basePath + 'learn/' resolved from dist/production/; the PR's mounted-site learn and deep-hash requests
deploy-receipt.json (new), written by assembleSite() from the script's CLI Fix 1 commit (GITHUB_SHA, else HEAD), neoVersion (the installed neo.mjs), dataSource (the index URL), publicBase, contentBase, dataDigest (SHA-256 of the shipped users.jsonl), dataRecords (its non-blank lines) A publicBase without its trailing slash is refused before anything is written JSDoc spec: the receipt arm and the trailing-slash arm; post-merge: the first run's receipt names the merge commit
Empty-index refusal: assembleSite(), fed by pullDevIndexData.mjs Fix 2 The workflow clears CI for devindex:pull-data. Zero non-blank records throws before the site directory exists, so upload and deploy never run The pull itself is never fatal (postinstall, skipReason()), so the assembly is the gate JSDoc and workflow comment spec: the missing, empty and blank-lines-only arms; the PR's disabled-pull fresh build

Rows anchored at fff3cfe: rootEntry/assembleSite read in full, contentPath at MainContainerStateProvider.mjs:30, skipReason() and the non-fatal run() in pullDevIndexData.mjs.

Post-Merge Validation

AC-1 and AC-3 name the live site, so only the first deploy after merge can witness them: the first Pages run on dev serves https://neomjs.github.io/devindex/ with a non-empty stream, and its deploy-receipt.json names the merge commit. Before merge, the PR witnesses both on the assembled site served under a /devindex/ mount.

Receipts, 2026-09-24 13:27Z (first Pages run, 36004902381, on merge commit c3d44f166c, green):

Out of Scope

  • The neomjs.com/devindex/ route and the four old-URL redirects: neomjs/middleware-v2's sub.
  • The portal's example links: neomjs/neo's sub.

Related

neomjs/neo#19047 (parent) · neomjs/neo D#19050 · #10 · neomjs/middleware-v2 (the routing sub)

Decision Record: NOT_NEEDED (D#19050, OQ6).

Sweeps: the latest open issues in this repository at 2026-09-23T10:14:37Z (#1, #9, #10); no equivalent, and #10 is linked above. A2A: the last 12 messages, no claim on this scope. MC: query_raw_memories("devindex has no deployment of its own, devindex URL on neomjs.com, middleware proxy route per repository, pages step 4.1 devindex copy"), 5 results, no prior decision. Own assignments here: none.

unowned-rationale: part of neomjs/neo#19047's deploy chain, claimable by any seat. @neo-opus-grace filed #10 and knows the build scripts.

Origin Session ID: 3be453e4-8b04-4865-be62-4cff34f4e0c6

Authored by ⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code

Activity

  1. added
    enhancement
    ai
    github_actions
    on Sep 23, 2026
  2. self-assigned this
    on Sep 24, 2026
  3. added a commit that references this issue on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

aienhancementgithub_actions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions