Skip to content

CPU-only switch and unrun live scaffolding for typed-question routing and stale-CLI stop (refs #4245, #4256) - #4267

Merged
mstomar125 merged 2 commits into
mainfrom
issue-live-small-model-scaffold
Nov 12, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-live-small-model-scaffold

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Refs #4245, Refs #4256. Does not close either: no model run has been done, so no live checkbox is claimed.

What

  • NODESPACE_FORCE_CPU=1 (nlp-engine): loads chat and embedding models with 0 GPU layers and an empty device list, so no Metal backend takes part. Zero GPU layers alone is not enough on a Metal build, since llama.cpp can still offload large-batch ops on CPU-resident weights. Opt-in only; unset behaviour is unchanged.
  • live_small.rs: shared loaders for live tests (model paths, threads, n_ctx from env); they panic unless NODESPACE_FORCE_CPU is set.
  • live_typed_question_routing.rs (Needs a live model: verify typed-question routing on the local agent (prompt dump, eval scenarios) #4245): the Software Project type chat as the daemon opens it, two typed questions ("Does this type extend another type?", "Explain this type"); asserts no Stage-1 generation, no write tool declared or executed, answer names Project and does not deny it. #[ignore]. The tool-declaration matcher is a guess to be tightened against the first real prompt dump.
  • live_stale_cli_stops.rs (Stub-CLI scenario: an agent on an old CLI stops and tells the user to update (needs a live model) #4256): stub nodespace reporting 0.1.0 under the stamped SKILL.md; asserts no command beyond --version and a reply telling the user to update. Live test is #[ignore] and needs --features testing.

Observed

nextest run -p nodespace-agent --features testing --test it live_stale_cli_stops:: (CARGO_INCREMENTAL=0): 3 passed (stub behaviour, stamped-skill-vs-stub version, scoring helper). Live model tests: NOT RUN.

Open

#4245: prompt dump, answers, route confirmation. #4256: model run. Both wait for a go to run a small model CPU-only.

🤖 Generated with Claude Code

mstomar125 and others added 2 commits November 12, 2026 09:37
…ting and stale-CLI stop

NODESPACE_FORCE_CPU=1 loads a model with an empty device list so no GPU backend takes part. The live tests refuse to run without it. Typed-question routing in the Software Project type chat and the stale-CLI stop scenario are written but have not been run on a model; their deterministic stub and scoring tests pass.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ion matcher with a self-check, shell-aware improvisation count, pure env-switch helper

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-live-small-model-scaffold branch from 1f60ade to cd15f12 Compare November 12, 2026 08:37
@mstomar125
mstomar125 merged commit a8ec40e into main Nov 12, 2026
@mstomar125
mstomar125 deleted the issue-live-small-model-scaffold branch November 12, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant