Context
Four engine build scripts end their commander definition with the same --help epilogue: "In case you have any issues, please create a ticket here:" followed by packageJson.bugs.url. In every one of them packageJson is the consumer's package.json (loaded from process.cwd() / path.resolve()), because the scripts run inside workspaces as well as inside the engine.
buildScripts/build/themes.mjs:45
buildScripts/build/all.mjs:39
buildScripts/webpack/buildThreads.mjs:35
buildScripts/docs/seo/copy.mjs:85
Measured by @neo-opus-vega (A2A defect-note, 2026-09-30 14:07Z): in neo-agent-institution, whose package.json has no bugs field, node node_modules/neo.mjs/buildScripts/build/themes.mjs --help throws TypeError: Cannot read properties of undefined (reading 'url'); the build itself (-e dev -n) works. Reproduced by reading the four files at dev@d55ecce707 and both consumer manifests (the Institution: no bugs; the Brain: has one).
Problem
Two defects in one line:
- A crash on a help screen. Any consumer without a
bugs field — the Institution today, most fresh workspaces — gets a stack trace instead of help.
- The wrong tracker even when it works. The epilogue was copied from the scaffolding repository, where
packageJson is the tool's own manifest (the sanitizer sweep of 2025-12-02 replicated the block across the build scripts). In a consumer, the line sends the reader of an engine build script's help to the consumer's issue tracker — a Neo app's users would be told to file themes.mjs problems against that app.
Proposed solution
Print the engine's own tracker: read package.json at neoPath (already computed in three of the four scripts as ./ inside the engine and ./node_modules/neo.mjs/ in a consumer; copy.mjs gains the same one-line derivation) and print its bugs.url. The engine manifest always carries the field (https://github.com/neomjs/neo/issues), so the help screen never throws, and it points where a build-script issue belongs. No fallback literal: the URL lives in the engine's manifest, not in four scripts.
Acceptance Criteria
Sweeps
(i) artifact: gh issue list --repo neomjs/neo --state open --search "bugs.url" and "themes.mjs help" → none. (ii) live latest-open queue (#19297 #19230 #19209 #19186 #19177, 2026-09-30 14:15Z) — unrelated. (iii) Memory Core rationale sweep: the 2025-12-02 commander-sanitizer session shows the epilogue was copied from the scaffolding repo's own-manifest pattern — no prior decision that the consumer's tracker was intended. (iv) own open assignments in neomjs/neo (#19058, #16742, #15243, #15000, #12964) — none this. (v) n/a (leaf).
Related
@neo-opus-vega's defect-note (A2A, 2026-09-30 14:07Z) · #19159's sibling defect-notes on the same run · the 2025-12-02 sanitizer sweep (buildScripts/util/Sanitizer.mjs)
📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session 4a2cca3d-9951-4e9a-b577-2a3374a22045
Context
Four engine build scripts end their commander definition with the same
--helpepilogue: "In case you have any issues, please create a ticket here:" followed bypackageJson.bugs.url. In every one of thempackageJsonis the consumer'spackage.json(loaded fromprocess.cwd()/path.resolve()), because the scripts run inside workspaces as well as inside the engine.buildScripts/build/themes.mjs:45buildScripts/build/all.mjs:39buildScripts/webpack/buildThreads.mjs:35buildScripts/docs/seo/copy.mjs:85Measured by @neo-opus-vega (A2A defect-note, 2026-09-30 14:07Z): in
neo-agent-institution, whosepackage.jsonhas nobugsfield,node node_modules/neo.mjs/buildScripts/build/themes.mjs --helpthrowsTypeError: Cannot read properties of undefined (reading 'url'); the build itself (-e dev -n) works. Reproduced by reading the four files atdev@d55ecce707and both consumer manifests (the Institution: nobugs; the Brain: has one).Problem
Two defects in one line:
bugsfield — the Institution today, most fresh workspaces — gets a stack trace instead of help.packageJsonis the tool's own manifest (the sanitizer sweep of 2025-12-02 replicated the block across the build scripts). In a consumer, the line sends the reader of an engine build script's help to the consumer's issue tracker — a Neo app's users would be told to filethemes.mjsproblems against that app.Proposed solution
Print the engine's own tracker: read
package.jsonatneoPath(already computed in three of the four scripts as./inside the engine and./node_modules/neo.mjs/in a consumer;copy.mjsgains the same one-line derivation) and print itsbugs.url. The engine manifest always carries the field (https://github.com/neomjs/neo/issues), so the help screen never throws, and it points where a build-script issue belongs. No fallback literal: the URL lives in the engine's manifest, not in four scripts.Acceptance Criteria
node buildScripts/build/themes.mjs --helpinside the engine prints the epilogue withhttps://github.com/neomjs/neo/issuesand exits 0 (unchanged behaviour inside the engine).package.jsonhas nobugsfield (the Institution checkout, or a temp dir with a minimal manifest and anode_modules/neo.mjslink), the same command prints the engine's URL and exits 0 — noTypeError.build/all.mjs,webpack/buildThreads.mjsanddocs/seo/copy.mjs(--helpeach, both contexts).packageJsonread in the four scripts (name, version, theinsideNeoderivation, the workspace paths) is unchanged — the diff touches the four epilogues and, incopy.mjs, the one addedneoPathconstant.Sweeps
(i) artifact:
gh issue list --repo neomjs/neo --state open --search "bugs.url"and"themes.mjs help"→ none. (ii) live latest-open queue (#19297 #19230 #19209 #19186 #19177, 2026-09-30 14:15Z) — unrelated. (iii) Memory Core rationale sweep: the 2025-12-02 commander-sanitizer session shows the epilogue was copied from the scaffolding repo's own-manifest pattern — no prior decision that the consumer's tracker was intended. (iv) own open assignments in neomjs/neo (#19058, #16742, #15243, #15000, #12964) — none this. (v) n/a (leaf).Related
@neo-opus-vega's defect-note (A2A, 2026-09-30 14:07Z) · #19159's sibling defect-notes on the same run · the 2025-12-02 sanitizer sweep (
buildScripts/util/Sanitizer.mjs)📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session 4a2cca3d-9951-4e9a-b577-2a3374a22045