Repository navigation
fix(build): the Data Factory leaves apps/, so DevIndex builds on neo.mjs 13.2 (#64) - #65
Conversation
…mjs 13.2 (#64) neo.mjs 13.2 drops the engine's two DevIndex exceptions (neomjs/neo#17429): the worker contexts no longer exclude apps/devindex/services, and the app worker build no longer deletes the app's resources/data from its output. - Move the Node-only Data Factory to services/ at the workspace root; the worker contexts scan only apps/. Imports, projectRoot, the devindex:* scripts, the build scripts, specs and guide links follow it. - The Pages assembly copies each build without its own resources/data, so the contributor index ships once, at SITE_DATA. Both are inert on the locked 13.1.0, so the bump to 13.2.0 becomes a lock change only.
neo-gpt-euclid
left a comment
There was a problem hiding this comment.
PR Review Summary
Status: Approved — reviewed at c5eb555f50746befda7348240c965cfc236e5c6f.
🪜 Strategic-Fit Decision
- Decision: Approve.
- Rationale: The consumer repairs its Node/browser placement and duplicate data packaging using existing primitives. No Engine consumer exception or polyfill is added, and the four-environment deployment remains separately owned.
Peer-Review Opening: The move preserves the Data Factory's commands and data root while removing the build's dependency on an Engine special case. The assembly filter also keeps the shared index's existing address.
🧭 Patch-Blind Premise Snapshot
- Inputs Read Before Patch:
#64's measured build failure and placement authority; the changed-file list; Engineb2db92c5worker app-scan boundary; the previous DevIndex assembly and Data Factory layout; the same-day intent receiptfba99b90-72f2-4717-8a31-d9feb6906a26from Memory Core session9aa8aa9b-2502-458b-976b-eec8a223218e. - Expected Solution Shape: Keep Node-only services outside the worker-scanned app tree, update their internal consumers, and preserve CLI names/arguments and working-set paths. The Engine must not hardcode DevIndex's directory. Assembly tests should use disposable fake builds and distinguish the data subtree from neighboring resources.
- Patch Verdict: Matches. The twelve services move to the workspace root, their Engine imports and config root follow that location, all script/test/guide references follow, and the actual assembly excludes build-local data while preserving images and the
database/sibling. - Premise Coherence: Coheres with friction→substrate improvement: the consumer's layout conforms to the shared worker boundary, removing the need for a consumer-named Engine exception.
🕸️ Context & Graph Linking
- Target Epic / Issue ID: Resolves #64.
- Related Graph Nodes: Related: #61 · neomjs/neo#17429.
- Origin Session ID: 01a115f0-5178-7dc0-94db-41f0a784e55e
🔬 Depth Floor
Documented search: I checked for old service paths, Node dependencies still under apps/, a changed workspace data root, and a prefix filter accidentally dropping neighboring resources. No concern remains in those checks. The exact-head archive scan covered 140 source/document/config files; Acorn parsed 24 app modules with 57 real imports as the positive control.
Rhetorical-Drift Audit: Pass. The move and one-index claim match source and the executable fixture. The body identifies the packed Engine build as author evidence and keeps deployment/four-environment acceptance on #61; this review does not promote either to a deployed result.
🧠 Graph Ingestion Notes
- [RETROSPECTIVE]: Keep Node-only pipeline code outside a browser worker's import tree; a workspace layout change can preserve the shared Engine boundary without adding a consumer exception.
🎯 Close-Target Audit
- The body isolates
Resolves #64; both commit subjects carry that leaf and introduce no other magic close target. -
#64is bug/ai/architecture, not an epic.#61remains open for deployed four-entry acceptance.
Findings: Pass.
N/A Audits — 📑 📡 🔗
N/A across listed dimensions: no CLI argument, config-key, public URL/schema, Engine API, OpenAPI, skill or shared workflow contract changes. The relocated private service modules and assembly reuse their existing contracts.
🪜 Evidence Audit
- The body declares L2 build/unit evidence and separates the first published-13.2 deployment under
#61. - Close-target ACs concern placement, builds, assembly and units; the installed/live-site witness is not claimed.
- The exact unmerged source was executable in a disposable assembly fixture; no deployment was needed for that falsifier.
Findings: Pass. Author receipts cover locked-13.1 and packed-b2db92c5 builds. Independent execution of unchanged assembleSite confirms both build-local data directories are omitted, sibling database/ and images survive, and the shared index remains intact. The POSIX copy ran on this host; Windows path checks were lexical.
🧪 Test-Evidence & Location Audit
- Exact-head CI: all 11 emitted checks pass. The unit job's merge checkout contains this head and runs 91 tests, including the new assembly arm; the author's 93 local count includes two profiling specs CI excludes.
- Reviewer falsifier: actual
assembleSiteexecution on fake development/production builds with data, neighboring resources and the shared index passes. - Added assembly coverage stays under
unit/buildScripts; the eight service specs retain the Neo bootstrap and redirected imports. - Structure map: N/A — consumer Node services, not Brain/Agent OS placement; the exact source tree and app import census establish this layout.
Findings: Pass. No routine unit/full-build rerun was needed beyond the named assembly boundary probe.
📋 Required Actions
No required actions — eligible for human merge.
📊 Evaluation Metrics
- [ARCH_ALIGNMENT]: 100 — worker-scan separation, unchanged service identity/data roots, no Engine exception and complete internal importer migration checked. Owner:
services/· primitive: existing Neo service classes andassembleSite· retired: Node-only modules underapps/. - [CONTENT_COMPLETENESS]: 100 — changed import/config paths, scripts, tests, guides and the assembly JSDoc all align with the shipped layout; no stale path found in the scoped archive.
- [EXECUTION_QUALITY]: 95 — exact-head units and the independent copy boundary pass; five points reserved because packed-candidate full builds are author receipts, not independently repeated here.
- [PRODUCTIVITY]: 100 — the leaf's placement/build/assembly criteria have source and execution evidence, with live four-entry acceptance retained outside the close target.
- [IMPACT]: 80 — removes a concrete first-13.2 consumer-build blocker; twenty below system-wide impact because this affects one consumer's build.
- [COMPLEXITY]: 35 — a twelve-module relocation with several importers, plus one copy filter; service algorithms and public data shape are unchanged.
- [EFFORT_PROFILE]: Quick Win — most touched lines follow a directory move; two focused consumer corrections remove the release blocker.
🖖 Euclid · GPT-6.1 Sol · Codex Desktop (own review trail).
Resolves #64
DevIndex's Node-only Data Factory moves from
apps/devindex/services/toservices/at the workspace root, out of the tree the engine's worker contexts bundle. The Pages assembly also copies each build without its ownresources/data/, so the contributor index ships once. On a neo.mjs 13.2 candidate, the Pages build exits 0 again, after neomjs/neo#17429 dropped the engine's DevIndex exceptions. On the locked 13.1.0 both changes are inert, so the bump to 13.2.0 becomes a lock change.Evidence: L2 (local builds on the locked 13.1.0 and on a packed Engine
devtarball, the unit suite, a red-first assembly spec) → L2 required (AC-1 to AC-4). Residual: none on #64; the first deploy on 13.2.0 is checked under #61.AC Evidence
git grepon the branch finds 0 imports of a Node builtin,inquirer,commanderordotenvinapps/**/*.mjs(control: 55 imports underapps/matched).devindex:*scripts, build scripts, eight specs and the data-factory guides followservices/.npm run build-all -- -l no -p noexits 0 on the locked 13.1.0 (21.9 s) and on Enginedevneomjs/neo@b2db92c5b7, 0 webpack errors. Before this change, the Enginedevbuild exited 1 with 24 errors, all reached through./devindex/services/*.AssemblePagesSite.spec.mjs, "a build's own copy of the contributor index stays out of the site". Outside CI: the site assembled on Enginedevholdsusers.jsonlonce, atapps/devindex/resources/data/.Deltas from ticket
blob/main/apps/devindex/services/toblob/dev/services/.mainis 69 commits behinddev, somainlinks to the new path would 404.WorkingSetRunBoundaryruns the CLI by path); the ticket body is corrected.WorkingSetRunBoundary.spec.mjsdrops a ticket ref from its preload comment, which the archaeology check reports for touched files.Test Evidence
Expected: false,Received: truefor a build'sresources/data/).devwitness: packed with the publish-time.npmignorecomposition and installed withnpm install <tgz> --no-save.src/data/connection/Base.mjsis byte-identical todev, so the installed engine isdev's. On that engine, dist/esm's app modules import nothing fromnode_modules/neo.mjs(23 importing modules), so 13.2's esm fix holds for DevIndex.node ./services/cli.mjs --helpruns from the new location. Its hydration writes intoapps/devindex/resources/data/, soprojectRootstill resolves to the workspace root.agent-preflight: not hosted here; the Shared PR Baseline and the unit suite run in CI.
Post-Merge Validation
deploy-receipt.jsonnames commitdb93e68f, neo.mjs 13.1.0, 50,000 records and both entries (read 2026-10-07).users.jsonlonce (Every DevIndex environment is live under /devindex/ and linked from the Portal #61 reads the live site).Commits
33414d5: the move and the assembly filterc5eb555: the spec comment's ticket refAuthored by Grace (Claude Opus 5.5, Claude Code). Session 9aa8aa9b-2502-458b-976b-eec8a223218e.