LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtNov 6, 2026, 4:24 AM
updatedAtNov 6, 2026, 7:44 PM
githubUrlhttps://github.com/neomjs/neo/issues/20429
authorneo-opus-grace
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 6, 2026, 7:44 PM

neo declares a seat:start that rebuilds stale development themes

Closed v13.4.0/archive-v13-4-0-chunk-4 enhancementgood first issueaibuild
neo-opus-grace
neo-opus-grace commented on Nov 6, 2026, 4:24 AM

Context

neomjs/neo-agent-brain#1480 makes a Fleet Start bring each seat checkout current before the harness launches. First it fast-forwards the checkout and installs its dependencies. Then it runs the repository's own seat:start npm script, so each repository declares what a fresh Start needs and Fleet names no tenant's build.

neo is the first repository that needs one. The operator's theme workflow is "build-themes once on a fresh checkout, then watch-themes before changing SCSS", with one stated edge case: "after a pull with peer scss changes you need build-themes too". A Start that fast-forwards a seat's checkout is exactly that pull, and nothing rebuilds the themes after it.

The Problem

After a fast-forward brings in SCSS changes, the checkout serves the CSS it compiled before them until someone runs npm run build-themes. The dev server warns about it (#15666) and watch-themes refuses a stale tree, but neither rebuilds it. Running the full theme build on every Start would make most starts slower for nothing, because most starts bring in no SCSS change.

The Architectural Reality

  • package.json:24: "build-themes": "node ./buildScripts/build/themes.mjs -f".
  • buildScripts/util/developmentThemeAssets.mjs:184: inspectDevelopmentThemeAssets(), the freshness and completeness check that the dev server's warning and watch-themes already reuse. It returns ready: false when any non-partial SCSS input lacks a CSS output at least as new as the newest SCSS source, or when the theme map is stale or incomplete.
  • buildScripts/util/developmentThemeAssets.mjs:285: runDevelopmentThemeBuild(), the one canonical non-interactive development build (DEVELOPMENT_THEME_BUILD_COMMAND).
  • Fleet runs npm run seat:start after the checkout's install, with the operator's login-shell npm, PATH and a credential-free environment. Its outcome lands on the seat's start row, and a failure never blocks the launch (neomjs/neo-agent-brain#1480).

The Fix

Add a seat:start script to package.json that runs runDevelopmentThemeBuild() only when inspectDevelopmentThemeAssets() reports ready: false, and otherwise exits 0 at once. Both pieces already exist, so this adds an entry point, not another freshness check. A new .mjs entry point goes through the structural pre-flight first, against its buildScripts/ siblings.

Acceptance Criteria

  • npm run seat:start on a checkout whose development themes are current exits 0 without building.
  • After an SCSS source changes, npm run seat:start rebuilds the development themes, and a second run is a no-op.

The post-merge installed receipt moved to neomjs/neo-agent-skills#289, so this ticket closes with its PR. That receipt is one Fleet restart of a stale seat showing seatStart: {state: 'ran'}, current themes, and skills matching the pin, and #289's Step 1 retirement waits on the same restart.

Out of Scope

  • build-all on Start.
  • Any change to Fleet (neomjs/neo-agent-brain#1480).
  • A read-only freshness command. watch-themes already is that check, and a separate one was withdrawn for that reason (#17900).

Related

neomjs/neo-agent-brain#1480 (Fleet runs seat:start) · #15666 · #17203 · #17900 · #15584

Live latest-open + closed sweep: checked the latest 20 open neomjs/neo issues and a closed search (seat:start, build-themes, stale themes, start) at 2026-11-06T03:24Z. The closed theme-staleness tickets (#15666, #17203, #17900, #15449) cover detection and documentation, not a rebuild on Start. No equivalent found. A2A claim sweep: the latest 30 messages; no claim on seat:start or theme rebuilds. MC sweep: "neo checkout serves stale compiled themes after a pull; seat start rebuild…". It returned the 2026-08-31 operator workflow quoted above and the withdrawn check-themes command, which this ticket does not reintroduce. Own-assignment sweep: no open assignment overlaps.

unowned-rationale: Ready for a contributor; maintainers provide planning and review.

Origin Session ID: 0cbc6245-a3c6-4896-be26-dc550c38afa8 Retrieval Hint: "neo seat:start build-themes when stale inspectDevelopmentThemeAssets runDevelopmentThemeBuild Fleet Start"

wanjinhao1 cross-referenced by PR #20432 on Nov 6, 2026, 5:08 AM
RClaudiuM cross-referenced by PR #20475 on Nov 6, 2026, 7:15 PM