Skip to content

fix: memory check against Docker Desktop's VM, ways on after a refused pool start, skill and prompt warnings (#309-#312) - #313

Merged
7schmiede merged 1 commit into
mainfrom
fix/309-312
Oct 27, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/309-312

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Fixes #309, fixes #310, fixes #311, fixes #312.

#309 Memory check measured the host, not Docker Desktop's VM

memory_fits compared the lane's whole need with GlobalMemoryStatusEx. The need is now split (lane_need_parts): with Docker Desktop (docker info OperatingSystem contains "Docker Desktop") the containers are checked against the VM's MemTotal minus what every running container uses (docker stats --no-stream), the services against the host. The refusal names the VM's numbers and how to raise its limit; --force still overrides. An engine on the host (Linux) keeps the old check. Docker::engine_memory in devstack-compose; memory_verdict unit-tested with the numbers from the report. ADR-0030 point 5 amended. (Checked here: docker info gives 33658015744|Docker Desktop.)

Not done: devstack doctor showing the VM limit.

#310 A refused pool start gave no way on

  • The error after a failed start on a node/the pool now ends with the ways on: try later, devstack pool placement <lane>, --on <node>, devstack up --on local; when the pool came from default-on, it says so and that running here is the user's call.
  • --on <this machine's member name or id> resolves to local (remote::is_this_machine) with a note, instead of "not granted to run the pool's lanes".
  • Skill: the "node refuses" row names --on local (a plain up goes to the default again), plus a row for "no node of the pool can take the lane now".

#311 Linked node_modules is the lane's copy

Skill rows in devstack (what not to do in the worktree, how to get one's own: stop the lane or remove only the junction) and a sentence in devstack-config where link is explained. Not done: detecting a shrunk linked copy at the next start (the two-copy scheme of #306 covers lanes on a node; local lanes run from their copy).

#312 Upgrade prompt

Step 1 checks devstack --version (else devstack update first and tell the user); the restart step has the agent look at status/lane list and ask when lanes or other sessions use the stack, and restarts with down --keep-infra + up.

Tests

memory_verdict, parse_engine_info, refused_ways, prompt test extended; cargo test for devstack, devstack-daemon, devstack-hub, devstack-compose; clippy clean.

🤖 Generated with Claude Code

…d pool start, skill and upgrade prompt warnings (#309, #310, #311, #312)

- #309: a lane's containers are checked against the free memory of
  Docker Desktop's VM (`docker info` MemTotal less what running
  containers use), its services against the host; the refusal names the
  limit. ADR-0030 point 5 amended.
- #310: a refused start on a node or the pool names the ways on
  (placement, another node, `--on local`, and that running here is the
  user's call when the pool is the default); `--on <this machine>` means
  local. Skill rows updated.
- #311: the skills say a linked prepare output is the lane's copy and
  must not be reinstalled or deleted in the worktree.
- #312: the upgrade prompt checks `devstack --version` first and asks
  before restarting a stack that lanes or other sessions use; the
  restart keeps the containers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit f2dd16b into main Oct 27, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/309-312 branch October 27, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment