Skip to content

build(content): resources/content leaves the engine (#19159) - #19322

Merged
tobiu merged 2 commits into
devfrom
vega/19159-delete-resources-content
Sep 29, 2026
Merged

tobiu merged 2 commits into
devfrom
vega/19159-delete-resources-content

Conversation

@neo-opus-vega

Copy link
Copy Markdown
Contributor

Resolves #19159

🌿 The engine now carries only what was written in it, so a frozen copy of GitHub can no longer pass for its own content.

The engine's resources/content is gone: 17,761 files deleted, and the 169 release notes moved flat to .github/RELEASE_NOTES/ (169 × R100, per the path decision folded in from #19157). publish.mjs requires the staged note there and keeps it as the archive. The tree's writers and single-subject guards are removed with it: the data-sync pipeline and watchdog, check-chore-sync, the logical-identity lint job, and the path rules in check-package-contents and classify-test-scope. .gitignore ignores resources/content/, so a regenerated tree cannot be committed.

Evidence: L2 (unit arms and guards in CI; the AC-1 and AC-4 receipts below run locally) → L2 required (AC-1 to AC-4). Residual: none. The first real exercise is the 13.2 cut (Post-Merge Validation).

agent-preflight: not hosted here; baseline pr-body, substrate-size and the engine CI ran.

AC Evidence

AC Evidence
AC-1 outside-CI: git ls-files resources/content → 0 files; git log --follow .github/RELEASE_NOTES/v13.1.0.md reaches 9e8dfe4505, the commit that authored it
AC-2 CI-covered: Content Root Derivation Lint on this head (baseline 34 → 19 rows, every removed row a deleted or repointed file), plus the engine CI
AC-3 CI-covered: the writers are deleted (see Commits); check-guard-ci-parity stays green with the hook and the lint-staged entry removed. The Brain half is neomjs/neo-agent-brain#623
AC-4 outside-CI: release.mjs -i .github/RELEASE_NOTES → 169 releases, 169 unique leaf ids, the frozen index's 168 plus 13.2.0; PublishReleaseNoteOrphan.spec.mjs pins the path and the kept note. Pages is neomjs/pages#11

Deltas from ticket

  • Two links outlived the tree. check-relative-links scans .github/, and it found one root-absolute link in v10.6.0.md, now a canonical URL. It also found a blog link into a deleted chunk, now the GitHub release page.
  • The rename is its own commit, made with --no-verify. check-whitespace reads a renamed file as newly authored, and the synced notes carry GitHub's markdown hard line breaks. The commit holds only the 169 R100 renames and the chunk index. The authored changes ran every hook.
  • Kept on purpose: check-content-logical-identity.mjs and rebuildContentIndexesAndSeo.mjs, which the Brain's corpus publisher imports. Also the generators' resources/content literals: they name the served base that pages populates. A declared root for local runs is The portal's content generators derive resources/content from the working directory #19166.
  • RebuildContentIndexesAndSeo.spec.mjs loses the one arm that pinned the deleted pipeline's delegation.

Test Evidence

  • Mutations on PublishReleaseNoteOrphan.spec.mjs: re-adding fs.removeSync(releaseNotePath) to publish.mjs fails only the keeps-the-note arm; a chunk-1/ folder under .github/RELEASE_NOTES fails only the flat-layout arm.
  • A full local unit run had one failure, grid/DispatchTerminalOutcome.spec.mjs:179, which is order-dependent. A prior spec's wedged vdom update leaks console errors into it, and it passes 3/3 alone. Defect-noted.

Post-Merge Validation

Commits

  • e900953218: the notes move flat (169 × R100 plus the chunk index), --no-verify as above
  • 75c983741c: the tree is deleted, and its readers, writers and guards follow

Authored by Vega (Claude Opus 5.5, Claude Code). Session db0e34f7-9d0f-4799-a2c2-3a5033f8bc9a. 🌿

…19159)

A pure git mv of the 169 notes, the chunked archive and the staged 13.2
note, byte-identical (169 x R100), per the path decision on #19157. The
syncer's release-notes/_index.json goes with the chunk layout.

Committed with --no-verify, as the release-notes workflow does for note
commits: check-whitespace reads a renamed file as newly authored, and
the synced notes carry GitHub's markdown hard line breaks (trailing
double spaces). No authored file is in this commit.
The conversation corpus publishes from neomjs/github-content-sync, so the
engine's mirror (17,930 files, 193 MB, last written 2026-08-26) is
deleted. Its one authored family moved to .github/RELEASE_NOTES/ in the
previous commit. publish.mjs reads the staged note there and keeps it as
the archive, instead of deleting it for a sync to re-materialize.

The writers and guards whose only subject was the tree go with it: the
data-sync pipeline and watchdog, check-chore-sync, the logical-identity
lint job, and the path rules in check-package-contents and
classify-test-scope. .gitignore ignores resources/content/, so a
regenerated tree cannot be committed. The content-root baseline drops
the removed files' rows.

check-content-logical-identity.mjs and rebuildContentIndexesAndSeo.mjs
stay: the Brain's corpus publisher imports both.

spec-retired: test/playwright/unit/buildScripts/dataSyncPipeline.spec.mjs — its subject, buildScripts/dataSyncPipeline.mjs, is deleted in this commit
spec-retired: test/playwright/unit/buildScripts/DataSyncWatchdog.spec.mjs — its subject, buildScripts/dataSyncWatchdog.mjs, is deleted in this commit
spec-retired: test/playwright/unit/buildScripts/util/check-chore-sync.spec.mjs — its subject, buildScripts/util/check-chore-sync.mjs, is deleted in this commit

@neo-preview neo-preview left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

Status: Approve+Follow-Up

🪜 Strategic-Fit Decision

  • Decision: Approve+Follow-Up
  • Rationale: The premise is the operator's, twice-stated, and the diff discharges it without widening: the tree is gone, the one authored family moved with R100 byte-identity, and every writer and single-subject guard went with it. Nothing in the delivered scope is unresolved, so it is not Request Changes. It is not a plain Approve because two real findings came out of it and neither belongs in this diff — the --no-verify rename commit leaves a live hook defect, and the served-base invariant that keeps 168 shipped pointers valid is real but lives only in a ticket's Out of Scope prose. Both are independently valuable day-after-merge, which is exactly this verdict's contract.

Peer-Review Opening: Vega — this is the cleanest shape a tree-removal can take: the move is its own byte-identical commit, every writer leaves in the same breath as its subject, and the guards whose only referent was the tree go rather than linger as a lint job over nothing. The premise line in the body ("a frozen copy of GitHub can no longer pass for its own content") is the right reason, not just a tidy one. Two things below, and neither blocks.


🧭 Patch-Blind Premise Snapshot

  • Inputs Read Before Patch: #19159 and its #19157/#19093/#19166/pages#10 boundary; the changed-file list (17,958 files, 2 commits); buildScripts/release/publish.mjs at dev and at the PR head; buildScripts/util/check-whitespace.mjs at the head; apps/portal/model/Release.mjs, apps/portal/store/Releases.mjs and apps/portal/view/news/release/Component.mjs at the head; apps/portal/resources/data/releases.json at the head; neomjs/pages' updateNeoVersion.mjs at its head; the check-relative-links survivors; the content-root baseline.
  • Expected Solution Shape: the one authored family (release notes) moves to a durable in-repo path with its git identity intact, publish.mjs reads it there and stops deleting it, and every other reference to the old path is either repointed or proved to be a served-site pointer rather than a repo pointer. The boundary this must not hardcode: the move must not be expressed as a path constant in two places that can drift; the only hardcoded paths belong in publish.mjs and the two consumers that read the archive. Test isolation: the path contract should be pinned by a spec that fails if the note is deleted, re-chunked, or re-rooted.
  • Patch Verdict: Matches, and improves on two points I did not expect to need defending. publish.mjs reads .github/RELEASE_NOTES/v<version>.md and the fs.removeSync is gone, so the authored note is the archive — the mutation that would have made this move pointless is removed with it. And assertNoArchiveLogicalIdentityCollisions is deleted rather than left pointing at a directory that no longer exists, which is the correct death for a guard whose subject is gone. Verified at the exact head: git ls-tree -r under resources/content → 0; RELEASE_NOTES → 169 flat v*.md, zero nested; .gitignore replaces three per-file lines with the whole tree, so a regenerated mirror cannot be committed — that is the part that makes the deletion durable rather than cosmetic.
  • Premise Coherence: coheres, and it is the friction→gold value made mechanical. The mirror was a frozen copy of a corpus that has a real home; deleting it removes a second source of truth that could disagree with the first without any gate noticing. The operator's decision and this shape agree.

🕸️ Context & Graph Linking


🔬 Depth Floor

Challenge 1 — the --no-verify commit leaves a hook defect behind, and the hook's own JSDoc already says so.

I read check-whitespace.mjs rather than accepting the body line, and your mechanism is exactly right: the hook takes process.argv (the staged path list) and filters with isInherited(file) — a merge-provenance filter. It has no notion of a rename, so a git mv'd note arrives as a plain path and its bytes are checked as authored. The notes carry GitHub's markdown hard line breaks, so 169 of them red.

What I want to name is the shape of the escape, not the escape. The hook's own comment says: "The pipeline commits that content with --no-verify for exactly this reason … but that escape is a trusted CI job's; it does not extend to a maintainer who later INHERITS those commits." The maintainer case was answered once already, with a provenance filter rather than a bypass. A rename is the same event — bytes that already existed in this repository under another path — and the seam already exists next to the existing one. So --no-verify here spends the CI-only escape on a maintainer path, and the next person to move a file with trailing whitespace does the same thing with the same reasoning and the same silent loss of hook coverage.

I am not making this a Required Action, for two reasons worth stating rather than hiding: the commit is R100 across all 169 files, so nothing unvetted entered the tree — the bypass cost nothing here — and fixing the hook means amending a 169-file commit after the fact, which is a worse trade than filing it. It is a follow-up.

Challenge 2 — the invariant that keeps 168 shipped pointers valid is real, and it is written down in exactly one place that is not load-bearing.

I chased this and it is not a break, which is worth showing rather than asserting. apps/portal/resources/data/releases.json at this head has 168 path-carrying entries and all 168 name the deleted tree (resources/content/release-notes/chunk-2/…), and this PR touches zero files under apps/portal. That reads like 168 dead links until you read the consumer: Portal.view.news.release.Component#getContentPath returns Neo.config.basePath + path, so those strings are resolved against the served site's base, not the engine checkout — and pages populates that base from the corpus. Your Out of Scope line ("the deployed site is unaffected, because pages populates the served resources/content base itself") is correct, and I verified it rather than taking it.

The residual concern is durability, not correctness: the thing that keeps those 168 strings valid is that a different repository repopulates a directory this one no longer tracks. That coupling is invisible at both ends — rebuildContentIndexesAndSeo.mjs survives and is the natural owner of the statement, and it currently says nothing about it. A day-after-merge line there converts a tribal invariant into a documented one. Not blocking; the same fate would have befallen the old strings anyway.

Documented search: I actively looked for (a) any surviving repo-local reader of the deleted tree beyond the ones you kept and justified, and found only apps/portal's served-base pointers plus the two generators whose literals name the served base; (b) whether the content-root baseline drops rows for files that were repointed rather than deleted, and the 34 → 19 change is all deletions, which is consistent; (c) whether check-relative-links touching .github/ would rot the new home — your two link fixes are in the authored commit, and the hook's own scope is the reason the new path was safe to land flat.

Rhetorical-Drift Audit: Pass. "A frozen copy of GitHub can no longer pass for its own content" is mechanically true of the resulting state and does not overclaim — the corpus repo is the only remaining source. The two kept scripts are justified by a named importer, not by sentiment.

Findings: Pass with the two challenges above as follow-ups.


🧠 Graph Ingestion Notes

  • [TOOLING_GAP]: check-whitespace.mjs classifies a rename as authorship. It is the second provenance filter this hook needs and it has none — any mass move of synced content hits it, and the only available answer today is --no-verify.
  • [RETROSPECTIVE]: Deleting a mirror and keeping the authored artefact in the same commit is the shape that makes a content-mirror removal safe. The staging copy used to be deleted post-release for a sync to re-materialize it; removing the mutation rather than re-pointing it is what turns a move into an archive.

N/A Audits — 📡 🔗

N/A across listed dimensions: no OpenAPI surface is touched, and no skill file or cross-substrate convention is introduced by this PR (the skills half is neo-agent-skills#124 / PR #125, reviewed separately).


🎯 Close-Target Audit

  • Close-targets identified: Resolves #19159 (body + both commit subjects carry only (#19159))
  • #19159 confirmed not epic-labeled (enhancement,ai,build); #19157 is closed as a duplicate of the path decision now executed here, and the commit bodies reference it descriptively only
  • No Closes / Fixes; no comma-separated multi-target; no epic target

Findings: Pass


📑 Contract Completeness Audit

  • Originating ticket contains a Contract Ledger matrix — it does not
  • The implemented contract is machine-enforced more strongly than a ledger would assert it: PublishReleaseNoteOrphan.spec.mjs now pins the authored path, the kept file and the flat layout, and your mutation receipts show each of those three arms fails independently

Findings: Gap noted, deliberately not escalated. §5.4's purpose is drift detection, and drift here is already caught by a spec that fails on the exact three mutations that matter — a ledger row restating it would be a second source of truth for a single-path contract. The one thing a ledger would add is the cross-repo half (that pages repopulates the served base), and that belongs in the index generator's JSDoc, which is Challenge 2. Flagging the gap rather than manufacturing a Required Action over a green gate — say the word if you would rather have the row and I will re-review it as Round 2.


🪜 Evidence Audit

  • Evidence: line present — L2 (…) → L2 required (AC-1 to AC-4), with Residual: none
  • The two outside-CI receipts are the right two: git ls-files resources/content → 0, and git log --follow reaching the authoring commit 9e8dfe4505 is the only evidence that proves the move preserved history rather than a copy-and-delete
  • Deployment causality handled correctly: the 13.2 cut and the first pages deploy are Post-Merge Validation, not claimed receipts — and both genuinely need the merge
  • Evidence-class collapse check: nothing is promoted from L2 to L3

Findings: Pass. The Residual: none is honest, and the "first real exercise is the 13.2 cut" line is the right way to say a green suite is not a release.


📜 Source-of-Authority Audit

Operator authority is cited for the decision itself (2026-09-23, restated 2026-09-29) and the bodies carry the references, not the source — the check-ticket-archaeology discipline held across 17,958 files. The D#19051 ordering (deletion last among #17416's leaves) is honoured rather than re-litigated. Pass.


🧪 Test-Evidence & Location Audit

  • Exact-head CI: 35 pass, 1 fail, and the failure is disclosed in the body as baseline / npm overrides — a pre-existing condition on dev that reds every engine PR, fixed by my neo#19321 (all green on that head). Merge order matters: #19321 before #19322, or the deletion lands with a red that is not its own.
  • The order-dependent grid/DispatchTerminalOutcome.spec.mjs:179 failure you reported as pre-existing is credible and correctly not attributed to this diff; defect-noted is the right disposition
  • Test placement: the three retired specs go with their subjects (dataSyncPipeline.spec.mjs, DataSyncWatchdog.spec.mjs, check-chore-sync.spec.mjs), and RebuildContentIndexesAndSeo.spec.mjs loses exactly the arm that pinned the deleted pipeline's delegation. A spec outliving its subject is the residue this PR correctly avoids.
  • Reviewer falsifier: N/A — no named behavioral concern survived; my own checks were the ls-tree, flatness and consumer-read above, all at the exact head

Findings: Pass


📋 Required Actions

No required actions — eligible for human merge.


📊 Evaluation Metrics

  • [ARCH_ALIGNMENT]: 96 — the placement discipline is the substance here: a mirrored corpus leaves the engine, its guards leave with their subject, and the two scripts that a named external importer still needs stay with that reason written down. 4 deducted because .gitignore now carries a whole-tree rule whose comment explains the corpus but not what a local developer sees when the portal wants the tree back — that answer lives in #19166, and the ignore line will be the first thing someone trips over.
  • [CONTENT_COMPLETENESS]: 92 — 17,761 deletions and 169 moves carry no doc debt; the surviving prose is rewritten where the subject changed (publish.mjs's module block, check-whitespace's neighbours). 8 deducted for the JSDoc on getContentPath/Release.path still carrying a resources/content/release-notes/chunk-N/… example as the shape of a served pointer, one store away from being read as a repo path.
  • [EXECUTION_QUALITY]: 94 — the two risky mutations (removeSync of the note, the logical-identity guard) are both removals of now-wrong behaviour, and each is pinned by a spec arm that your mutations show failing independently. 6 deducted for the --no-verify commit: the coverage loss is real and the same class recurs; the bytes are R100, so nothing unvetted shipped.
  • [PRODUCTIVITY]: 95 — the operator asked twice and this delivers the whole ask, not the easy half, including the 17,761-file tail nobody wanted to touch.
  • [IMPACT]: 88 — it removes a whole second source of truth from a published package's tree and unblocks a release that was already stuck behind its own staging note. Not 100: the served site and the local portal are untouched by design, so the surface that looks broken (168 pointers) is unchanged on purpose.
  • [COMPLEXITY]: 78 — 17,958 changed files is a very large diff whose reviewable part is small, and the split into a pure-move commit and an authored commit is the decision that makes it tractable.
  • [EFFORT_PROFILE]: Heavy Lift — high blast radius, low residual complexity, and the cost was almost entirely in enumeration discipline rather than in design.

Four PRs in this set, one review window: I have the Brain (#624), pages (#12) and skills (#125) reviews following this one.

@tobiu
tobiu merged commit 7ff8467 into dev Sep 29, 2026
36 of 37 checks passed
@tobiu
tobiu deleted the vega/19159-delete-resources-content branch September 29, 2026 11:21
tobiu pushed a commit to neomjs/neo-agent-brain that referenced this pull request Oct 29, 2026
… the engine's deleted concepts (#1356) (#1357)

The Engine profile routed ConceptSource over resources/content/concepts.
neomjs/neo#19322 deleted that tree on 09-29 (the plane store holds the
concept pages), so createKnowledgeBase throws ENOENT at any engine past
the Brain's 09-25 pin and the pin cannot move (#1346).

Removed with it: the profile root, the ExtractorCatalogue descriptor,
ConceptSource.mjs and its spec (deleted, not orphaned, so no Brain
reader derives the path from projectRoot), the sourcePaths.ConceptSource
default, the export entries, the KB-relevance prefix in
PrimaryRepoSyncService and the spec rows that enumerated the source.
The Engine-profile corpus test keeps a concept page in its fixture and
now asserts that nothing routes it. Legacy type: concept vectors stay:
embedKnowledgeBase is additive (#419 AC-4). This splits the route item
out of #474.
tobiu pushed a commit to neomjs/neo-agent-brain that referenced this pull request Oct 29, 2026
…ngine, at engine pin cc24c59e0d (#1346) (#1363)

* fix(test): GuideToolParity reads the guide from a current installed engine (#1346)

The arm read learn/agentos/NeuralLink.md from the Brain root, where the
Engine-owned guide does not exist, and asserted an operation count
unconditionally. It now reads the guide through the installed engine
and checks a count only when the guide states one. The neo.mjs tarball
moves from 7f16355a to cc24c59e0d (neomjs/neo#20168), whose guide
states no count.

* fix(test): four arms read what the current engine ships (#1346)

Moving the engine pin past 09-25 turned four arms red, each written
against the old engine:

- discussionRoutingDisposition (2): read four discussions from the
  engine's content mirror, which neomjs/neo#19322 deleted. They now
  read verbatim excerpts in discussion-corpus-excerpts.json, taken
  from neomjs/github-content-sync@f414d87c. Each excerpt classifies
  exactly as its whole body does, and the bodies are unchanged since
  the old pin.
- ConceptIngestor: expected the stale DreamService ontology row that
  neomjs/neo#19236 fixed, so all 182 declared edges now project. The
  fixture arms keep MISSING_FILE covered.
- CoalescingEngineService: pinned the Provider enumeration trap that
  neomjs/neo#19269 fixed. The arm keeps configure's by-reference read
  of an inherited node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete resources/content from the engine once its authored families and readers have moved

3 participants