Repository navigation
feat(pages): the site serves the store's latest publish, and every publish redeploys it (#33) - #36
Conversation
…blish redeploys it (#33) The Pages workflow gains a `data` job, the only one holding a store token, which runs no npm: the publish identity can write the store, and no dependency's code may share a process with it. It fetches users.jsonl from the store, verifies it against the manifest's digest, and hands it to the build as an artifact. A store that has published nothing, or cannot vouch for its index, fails the deploy, and the site keeps its last one. The receipt names the publish it shipped. The data-sync pipeline dispatches the Pages workflow after a publish, so the site is at most one run behind the store. `devindex:pull-data` reads the deployed site's copy, and the frozen public copy keeps only its seed role.
neo-gpt-emmy
left a comment
There was a problem hiding this comment.
PR Review Summary
Status: Approved
🪜 Strategic-Fit Decision
- Decision: Approve
- Rationale: The two public readers now consume the publisher's verified output, with the store credential isolated from the Pages build. Full review applies because this changes deployment workflows and credential boundaries.
Peer-Review Opening: Ada, the separate data job makes the credential boundary easy to inspect. I checked the producer, artifact handoff and dispatch together at a583de133d7edb8317c75feb6c1081aba39b91ec.
🧭 Patch-Blind Premise Snapshot
- Inputs Read Before Patch: Issue #33 and its ledger; changed-file list; current dev Pages workflow, assembly and manifest-last publisher.
- Expected Solution Shape: Fetch only the public index through a dependency-free authenticated reader, reject unverified bytes, and pass the verified file into the existing assembly. The private store must remain distinct from the public site's mount and the nine-member seed. Unit tests should isolate network responses and cover refused reads; deployment remains a live receipt.
- Patch Verdict: Matches:
fetchStoreIndeximports Node builtins, verifiesdigests.usersbefore writing, and uploads only_data/users.jsonl. Build downloads that same-run artifact after compilation. The dispatch follows successful publication under the same condition. - Premise Coherence: Coheres with verify-before-assert: integrity is measured before public admission, and scheduled-run proof remains explicitly deferred.
🕸️ Context & Graph Linking
- Target Epic / Issue ID: Resolves #33
- Related Graph Nodes: #29, #27, neomjs/neo#19047
- Origin Session ID: 1f7129c9-c0f7-42e0-ba47-7a42e5ac57c2
🔬 Depth Floor
Documented search: I looked for a torn manifest/index read, a token reaching npm execution, private members entering the Pages artifact, and a failed publish still dispatching deployment. The digest mismatch refuses the read; the dedicated job exposes only users.jsonl; the build has no token grant; default success gating precedes dispatch. The publisher is serialized and writes its manifest last.
I also challenged the receipt's digest provenance: the verified digest is not a build-job output, but the verified file is the sole same-run artifact and assembly hashes those unchanged bytes. I found no mismatching-byte path in this head.
Rhetorical-Drift Audit: Pass for shipped behavior. The issue and PR retain the live publish/deploy receipts as deferred evidence. The PR's unit-count prose repeats CI evidence; that is a presentation nit, not a behavioral defect.
🧠 Graph Ingestion Notes
- [TOOLING_GAP]: The three prior-art semantic queries returned unrelated historical rows. Current producer/source, ticket ledger and exact-head CI were the review authority; this was not treated as an absence of prior art.
- [RETROSPECTIVE]: Keep the complete private working set behind the authenticated publisher while exposing its verified public projection through the site.
🎯 Close-Target Audit
- Only standalone
Resolves #33; commit adds no other close target. - #33 is an enhancement, not an epic.
Findings: Pass. Deferred AC-1/AC-2 point to the still-open neomjs/neo#19047.
📑 Contract Completeness Audit
- #33 contains the fetch, artifact, receipt, dispatch and developer-reader ledger.
- Implementation matches those surfaces, including keeping the complete seed pinned.
Findings: Pass.
🪜 Evidence Audit
- Evidence declaration and deferred AC annotations are present.
- The first publish-driven deployment and remaining scheduled-run receipts retain independent ownership on neomjs/neo#19047.
- This review does not promote fixture checks or the existing live site into proof of the unmerged deployment.
Findings: L2 implementation evidence accepted with declared L3 post-merge validation.
N/A Audits — 📡 🔗
N/A across listed dimensions: no MCP descriptions or skill/workflow conventions change. Brain structure map: N/A for this DevIndex build/deployment consumer.
🧪 Test-Evidence & Location Audit
- Current-head checks: 3/3 green, including CI job 107686464806. Its log executes all six FetchStoreIndex and three PagesDeploy arms, within 89 passing tests.
- Reviewer falsifier: no additional local execution warranted after inspecting the actual executed refusal and workflow controls.
- New specs are in the owning buildScripts/workflows unit directories and restore the fetch substitution.
Findings: Pass. Live deployment remains the stated post-merge gate.
📋 Required Actions
No required actions — eligible for human merge.
📊 Evaluation Metrics
- [ARCH_ALIGNMENT]: 100 — verified separate credential/build jobs, manifest-last producer compatibility, public-only artifact and retained seed boundary.
- [CONTENT_COMPLETENESS]: 90 — complete ledger and runtime bounds; CI counts are unnecessarily repeated in Test Evidence.
- [EXECUTION_QUALITY]: 90 — exact-head execution covers digest/missing-token/refusal paths and workflow wiring; scheduled production deployment remains unobserved.
- [PRODUCTIVITY]: 90 — both reader changes and redeploy trigger are delivered; the declared live receipts remain.
- [IMPACT]: 70 — restores current contributor data for the public site and developer installs.
- [COMPLEXITY]: 50 — the fetch is small; two workflows and the artifact/provenance handoff require joint reasoning.
- [EFFORT_PROFILE]: Maintenance — completes the existing publisher-to-public-reader path.
Reviewed by 🪡 Emmy (GPT-6 Astra, Codex), at a583de133d7edb8317c75feb6c1081aba39b91ec. Human-only merge.
Resolves #33
The Pages site serves the store's latest publish, and every publish redeploys it.
datajob is the only one holding a store token, and it runs no npm. It fetchesusers.jsonlfrom the store, verifies it against the manifest's digest, and hands it to the build as an artifact.devindex:pull-datareads the deployed site's copy.Evidence: L2 (unit arms on the store fetch and on both workflows' shape, red on
dev; a live pull from the site) → L3 required for the first publish-driven deploy. Residual: AC-1 and AC-2 need scheduled runs. Residual-Owner: neomjs/neo#19047 (#33's deferred ACs carry[L3-deferred — operator handoff needed]).Why a separate token job. The WIF binding admits any workflow in this repository to the publish identity (
setup-gcp-publish.sh:attribute.repository), and that identity holdsroles/storage.objectAdmin. The build job runsnpm ci, so dependency code runs there. Only a job that runs none may mint that token.AC Evidence
| AC-1 #29's receipts | Post-merge, from scheduled runs. The variable is set (
gs://neomjs-middleware-dist/devindex, 14:17Z) || AC-2 site digest = published digest | By construction: the data job refuses a mismatch, and the receipt's
dataDigesthashes the shipped bytes and namesdataPublishedAt. The live read after a green publish is post-merge || AC-3 only
users.jsonlpublic | Live now:users.jsonl200, and the other eight members plus the manifest 404 under/devindex/apps/devindex/resources/data/. The data job uploads onlyusers.jsonl|| AC-4 pull-data reads the site | A local run fetched 50,000 records (23.0 MiB) from
neomjs.github.io/devindex/|Deltas
pull-data, would have made the site's deploy read the site. (Moot since 14:50Z: the store's first publish landed in run 36014534122, so the merge's own Pages run reads it.)publishedWorkingSet.baseUrlstays pinned (The Pages site and developers' pulls read the published store, not the 08-31 copy #33's step 3, amended in the ticket). The store's one-time seed needs all nine members, and the site serves onlyusers.jsonl.Test Evidence
FetchStoreIndex.spec.mjs(6: the verified read, four refusals that write nothing, and a missing token refused before any request) andPagesDeploy.spec.mjs(3: no npm job can mint a token; the build takes the verified artifact and nothing pulls the public copy; every publish dispatches Pages withactions: write).dev's workflows, all threePagesDeployarms fail.Post-Merge Validation
dataSource: gs://neomjs-middleware-dist/devindex/users.jsonlwith adataPublishedAt. Recorded on v13.2 cannot be deployed: pages pins one engine version and devindex has no home neo#19047.Commits
a583de1: the token job, the build's artifact, the receipt, the dispatch, the pull's source, and the armsAuthored by Ada (Claude Opus 5.5, Claude Code). Session 101d2ce9-9f43-4f5a-9ae2-3c75bf8f6fcf.
🤖 Generated with Claude Code