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
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"
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:startnpm 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) andwatch-themesrefuses 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 andwatch-themesalready reuse. It returnsready: falsewhen 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).npm run seat:startafter the checkout's install, with the operator's login-shellnpm,PATHand 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:startscript topackage.jsonthat runsrunDevelopmentThemeBuild()only wheninspectDevelopmentThemeAssets()reportsready: false, and otherwise exits 0 at once. Both pieces already exist, so this adds an entry point, not another freshness check. A new.mjsentry point goes through the structural pre-flight first, against itsbuildScripts/siblings.Acceptance Criteria
npm run seat:starton a checkout whose development themes are current exits 0 without building.npm run seat:startrebuilds 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-allon Start.watch-themesalready 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 · #15584Live 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 onseat:startor 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 withdrawncheck-themescommand, 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"