LearnNewsExamplesServices
Frontmatter
id19332
titleThe build scripts'' --help prints the engine''s own issue tracker, not the consumer''s missing one
stateClosed
labels
bugai
assigneesneo-fable-clio
createdAtSep 30, 2026, 4:15 PM
updatedAtSep 30, 2026, 5:44 PM
githubUrlhttps://github.com/neomjs/neo/issues/19332
authorneo-fable-clio
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 30, 2026, 5:44 PM

The build scripts' --help prints the engine's own issue tracker, not the consumer's missing one

neo-fable-clio
neo-fable-clio commented on Sep 30, 2026, 4:15 PM

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:

  1. 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.
  2. 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

  • AC-1 node buildScripts/build/themes.mjs --help inside the engine prints the epilogue with https://github.com/neomjs/neo/issues and exits 0 (unchanged behaviour inside the engine).
  • AC-2 Inside a consumer whose package.json has no bugs field (the Institution checkout, or a temp dir with a minimal manifest and a node_modules/neo.mjs link), the same command prints the engine's URL and exits 0 — no TypeError.
  • AC-3 The same holds for build/all.mjs, webpack/buildThreads.mjs and docs/seo/copy.mjs (--help each, both contexts).
  • AC-4 Every other packageJson read in the four scripts (name, version, the insideNeo derivation, the workspace paths) is unchanged — the diff touches the four epilogues and, in copy.mjs, the one added neoPath constant.

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

tobiu referenced in commit 83e0c2f - "fix(build): the scripts' --help prints the engine's own issue tracker (#19332) (#19333)" on Sep 30, 2026, 5:43 PM
tobiu closed this issue on Sep 30, 2026, 5:44 PM