Skip to content

The Pages site and developers' pulls read the published store, not the 08-31 copy #33

Closed

Description

@neo-opus-ada

Context

#29 makes the data-sync pipeline's private store (gs://neomjs-middleware-dist/devindex) the system of record, verified by digests. #27 deploys the app as its own Pages site. Two readers still read the frozen public copy (config.publishedWorkingSet.baseUrl, pinned at neomjs/pages@1847ca65, 2026-08-31):

  • the Pages build, through devindex:pull-data;
  • every developer's npm install postinstall, through the same pull.

So the site shows 08-31 data even after the pipeline publishes again.

This ticket also owns #29's post-merge receipts, which #29 cannot hold once its PR resolves it (review R1 on #32, RA-5). They are this ticket's premise: without a live, verified store there is nothing to read.

The Problem

The Architectural Reality

  • The store is private and read over the GCS endpoint with the publish identity's short-lived token (Storage#workingSetSource). The Pages workflow can mint the same token: the identity's WIF binding is per repository (buildScripts/setup-gcp-publish.sh).
  • users.jsonl is the only member a browser reads. The other eight, the blocklist and the opt-in/opt-out cursors among them, must never reach the public site.
  • deploy-receipt.json (Deploy devindex as its own Pages site, served at neomjs.com/devindex/ #27) already records the data's SHA-256 and record count.

The Fix

  1. The Pages workflow authenticates and takes users.jsonl from the store, checked against the store manifest's digest, instead of the public pull. The receipt names the manifest it matched.
  2. A green collection run that published triggers the Pages workflow (workflow_dispatch, actions: write), so the site is at most one run behind the store.
  3. devindex:pull-data reads the live site's copy (config.publicSite), so developers pull current data. (Delta while implementing: publishedWorkingSet.baseUrl itself stays pinned. The store's seed needs all nine members and the site serves only users.jsonl, so moving it would break the seed.)

Acceptance Criteria

  • The data-sync pipeline has published nothing since 2026-08-30 #29's receipts, recorded here after it merges and DEVINDEX_PUBLISH_BUCKET is set: [L3-deferred — operator handoff needed]
    • run 1 seeds (seeding once from), publishes under devindex/, and logs one adoption;
      Receipt, run 36014534122 (schedule, f06cbb4956, 14:40Z, green). The probe logged it holds nothing yet and passed. Opt-In logged seeding once from …/pages/1847ca65…, then Adopted the published working set (9 files). Opt-Out, Spider and Updater each logged hydrated earlier in run 36014534122-1; keeping this run's local writes, so there was one adoption. The collapse check read 50,000 records (was 50,000). The publish copied the nine members and archive/users-2026-09-24.jsonl, then the manifest last, to gs://neomjs-middleware-dist/devindex/.
    • run 2 hydrates the store verified, with no UNVERIFIED line;
    • the destination's listing is unchanged across one scheduled middleware rebuild.
  • After a green collection run, the site's users.jsonl digest equals that run's published manifest digest, and the deploy receipt names it. [L3-deferred — operator handoff needed]

The two deferred ACs need scheduled runs that outlive this issue's PR. Their receipts go to neomjs/neo#19047, the deploy chain's open parent.

  • Only users.jsonl is on the site; none of the other eight members is reachable.
  • devindex:pull-data fetches the live site copy.

Contract Ledger

Anchored at a583de1.

Target Surface Source of Authority Proposed Behavior Fallback / Edge Case Docs Evidence
Pages data job (new) and buildScripts/fetchStoreIndex.mjs (new) Fix 1 The job alone holds id-token: write and runs no npm. It fetches working-set-manifest.json, then users.jsonl, from gs://…/devindex with the store token, verifies the SHA-256 against digests.users, and uploads the file as the contributor-index artifact No fallback: a manifest 404 (the store has published nothing), a manifest without the digest, a mismatch, or any other non-2xx fails the deploy, and the site keeps its last one JSDoc and workflow comments FetchStoreIndex.spec.mjs (the verified arm and four refusals); PagesDeploy.spec.mjs: "no job that runs npm can mint a store token"
Pages build job Fix 1 Needs data, downloads contributor-index into apps/devindex/resources/data, and runs no devindex:pull-data The assembly still refuses an empty index workflow comment PagesDeploy.spec.mjs: "the build takes the verified index…"
deploy-receipt.json fields Fix 1 dataSource is the store object (gs://…/users.jsonl), and dataPublishedAt is the manifest's publishedAt. dataDigest (existing) equals the manifest's digests.users A local assembly records dataSource: local and dataPublishedAt: null JSDoc post-merge: the live receipt after a green publish
Data-sync "Redeploy the site" step (new), plus actions: write on collect Fix 2 After "Publish the working set", under the same if, gh workflow run pages.yml --ref dev with the job's GITHUB_TOKEN. workflow_dispatch is one of the two events that token may start A failed publish never reaches the step workflow comment PagesDeploy.spec.mjs: "every publish dispatches the Pages workflow…"
config.publicSite (new) and devindex:pull-data Fix 3 pull-data fetches ${publicSite}${SITE_DATA}users.jsonl, which is the deployed site's copy. SITE_DATA is exported by assemblePagesSite.mjs, which owns the site layout config.publishedWorkingSet.baseUrl stays pinned, for the store's one-time seed only JSDoc a local pull fetched 50,000 records from the live site

Out of Scope

Related

#29 · #27 · #32 · neomjs/neo#19047

Depends on #27's workflow being on dev (#31) and #29 being merged (#32).

Sweeps:

Assignee: @neo-opus-ada.

Origin Session ID: 101d2ce9-9f43-4f5a-9ae2-3c75bf8f6fcf
Retrieval Hint: "devindex public read pages site users.jsonl store digest deploy receipt"

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

Activity

  1. self-assigned this
    on Sep 24, 2026
  2. added
    enhancement
    ai
    github_actions
    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