diff --git a/.claude/skills/devstack-config/SKILL.md b/.claude/skills/devstack-config/SKILL.md index f06d3c07..75b3f93b 100644 --- a/.claude/skills/devstack-config/SKILL.md +++ b/.claude/skills/devstack-config/SKILL.md @@ -3,11 +3,11 @@ name: devstack-config description: "Edits this repository's devstack stack file (devstack.toml): adding or changing a service, a Compose group, a command or a group; watch paths, health checks, background workers, promotion holds, environment from Compose, placeholders. Validates every change with `devstack check` and knows that a running daemon does not reload the file. Use it whenever devstack.toml is created or touched, e.g. \"add the worker to devstack\", \"devstack should restart X when Y changes\", \"add a seed command\", \"the service needs variable Z\", \"why does the candidate not switch\", \"set up devstack for this repo\". For running the stack, use the skill `devstack`." --- - + # devstack-config: change the stack file -The reference for every key is **[docs/stack-file.md](https://github.com/nuetzliches/devstack/blob/v0.25.0/docs/stack-file.md)** +The reference for every key is **[docs/stack-file.md](https://github.com/nuetzliches/devstack/blob/v0.26.0/docs/stack-file.md)** (this skill names the rules that are easy to get wrong; the reference has the details). A complete example: [examples/devstack.toml](https://github.com/nuetzliches/devstack/blob/main/examples/devstack.toml). diff --git a/.claude/skills/devstack/SKILL.md b/.claude/skills/devstack/SKILL.md index c8683678..8392a3b5 100644 --- a/.claude/skills/devstack/SKILL.md +++ b/.claude/skills/devstack/SKILL.md @@ -3,7 +3,7 @@ name: devstack description: "Runs and watches this repository's local stack with devstack (devstack.toml): checks that devstack is installed and current, starts and stops the stack, tells whether a code change is live yet, reads logs, promotes or rolls back builds, runs the stack's commands, and reports devstack problems upstream with the user's consent. Use it whenever the local stack, a service, its logs or its dashboard is involved, e.g. \"start the stack\", \"is my change live\", \"the API does not pick up my change\", \"restart the service\", \"show the logs\", \"run the seed\", \"devstack up/status/down\", \"the dev stack does not start\", \"port is taken\", \"Docker is not running\", and whenever a devstack command or its MCP server fails. Not for editing devstack.toml itself (skill `devstack-config`)." --- - + # devstack: run the local stack (devstack) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6b8a435..891fd7b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,19 @@ and listed with their assets on the ## [Unreleased] +## [0.26.0] - 2026-10-27 + +Setting a repository up offers devstack's MCP server, and the dashboard +says when a stack's agents lack it. The dashboard gets a Usage tab that a +lane switch keeps, and a quieter "stack file behind" banner that can be +hidden until the next minor; agent skills count as outdated only when their +text changed. `devstack up --workers` runs the workers of a lane on a pool +node too (#314). Fixed: a lane's memory check looks at Docker Desktop's VM +(#309), a refused start on the pool says how to go on (#310), an emptied +linked `node_modules` is prepared again and the skills warn about it +(#311), and the upgrade prompt checks the version and asks before a +restart (#312). + ### Added - **Setting a repository up offers devstack's MCP server**: the setup @@ -1888,7 +1901,8 @@ before are refused now, and a pool needs its nodes granted. a paused log view keeps its line limit; the folder dialog no longer stays "open" after the page gave up waiting. -[Unreleased]: https://github.com/nuetzliches/devstack/compare/v0.25.0...HEAD +[Unreleased]: https://github.com/nuetzliches/devstack/compare/v0.26.0...HEAD +[0.26.0]: https://github.com/nuetzliches/devstack/compare/v0.25.0...v0.26.0 [0.25.0]: https://github.com/nuetzliches/devstack/compare/v0.24.1...v0.25.0 [0.24.1]: https://github.com/nuetzliches/devstack/compare/v0.24.0...v0.24.1 [0.24.0]: https://github.com/nuetzliches/devstack/compare/v0.23.0...v0.24.0 diff --git a/Cargo.lock b/Cargo.lock index 59f656ed..6beb57b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -538,7 +538,7 @@ checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" [[package]] name = "devstack" -version = "0.25.0" +version = "0.26.0" dependencies = [ "anyhow", "bytes", @@ -572,7 +572,7 @@ dependencies = [ [[package]] name = "devstack-build" -version = "0.25.0" +version = "0.26.0" dependencies = [ "blake3", "devstack-config", @@ -587,7 +587,7 @@ dependencies = [ [[package]] name = "devstack-compose" -version = "0.25.0" +version = "0.26.0" dependencies = [ "devstack-config", "devstack-desktop", @@ -600,7 +600,7 @@ dependencies = [ [[package]] name = "devstack-config" -version = "0.25.0" +version = "0.26.0" dependencies = [ "globset", "regex", @@ -614,7 +614,7 @@ dependencies = [ [[package]] name = "devstack-daemon" -version = "0.25.0" +version = "0.26.0" dependencies = [ "axum", "blake3", @@ -648,7 +648,7 @@ dependencies = [ [[package]] name = "devstack-desktop" -version = "0.25.0" +version = "0.26.0" dependencies = [ "devstack-proc", "libc", @@ -669,7 +669,7 @@ dependencies = [ [[package]] name = "devstack-env" -version = "0.25.0" +version = "0.26.0" dependencies = [ "devstack-config", "tempfile", @@ -678,7 +678,7 @@ dependencies = [ [[package]] name = "devstack-hub" -version = "0.25.0" +version = "0.26.0" dependencies = [ "axum", "blake3", @@ -706,7 +706,7 @@ dependencies = [ [[package]] name = "devstack-node" -version = "0.25.0" +version = "0.26.0" dependencies = [ "axum", "blake3", @@ -737,7 +737,7 @@ dependencies = [ [[package]] name = "devstack-proc" -version = "0.25.0" +version = "0.26.0" dependencies = [ "libc", "mach2", @@ -750,7 +750,7 @@ dependencies = [ [[package]] name = "devstack-skills" -version = "0.25.0" +version = "0.26.0" dependencies = [ "anyhow", "devstack-config", diff --git a/Cargo.toml b/Cargo.toml index 0d6a8558..6e4ff321 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = ["crates/*"] exclude = ["spikes"] [workspace.package] -version = "0.25.0" +version = "0.26.0" edition = "2024" rust-version = "1.98" license = "MIT OR Apache-2.0" diff --git a/crates/devstack-daemon/src/remote.rs b/crates/devstack-daemon/src/remote.rs index 9257275c..6a065fab 100644 --- a/crates/devstack-daemon/src/remote.rs +++ b/crates/devstack-daemon/src/remote.rs @@ -607,7 +607,7 @@ impl RemoteLane { // (ADR-0031 point 8). let mut warning = release_warning(&offer).map_err(|e| format!("lane `{}`: {e}", spec.name))?; - // An agent before 0.25.1 does not pass `--workers` on (#314). + // An agent before 0.26.0 does not pass `--workers` on (#314). if spec.workers && !takes_workers(offer.node.devstack.as_ref()) { let w = format!( "the node {} runs {}, which starts the lane without its background workers whatever `--workers` says; `devstack up --workers --on local` runs them here", @@ -1975,11 +1975,11 @@ fn release_warning( Ok((!notes.is_empty()).then(|| notes.join("; "))) } -/// A node's agent passes `--workers` on to its lane (#314): 0.25.1 and +/// A node's agent passes `--workers` on to its lane (#314): 0.26.0 and /// later. One that does not say counts as older. fn takes_workers(node: Option<&devstack_node::version::Release>) -> bool { node.and_then(|r| devstack_config::version_triple(&r.version)) - .is_some_and(|v| v >= (0, 25, 1)) + .is_some_and(|v| v >= (0, 26, 0)) } /// The warning of a lane a daemon before this one followed (ADR-0052), made diff --git a/devstack.toml b/devstack.toml index 82ba6ab2..b0132cd7 100644 --- a/devstack.toml +++ b/devstack.toml @@ -7,7 +7,7 @@ version = 1 [stack] name = "devstack" requires = "0.20.0" -reviewed = "0.25.0" +reviewed = "0.26.0" [services.dashboard] kind = "devserver" diff --git a/docs/adr/0069-devstack-mcp-can-carry-the-tools-of-upstream-mcp-servers.md b/docs/adr/0069-devstack-mcp-can-carry-the-tools-of-upstream-mcp-servers.md index 313159a1..cb867d39 100644 --- a/docs/adr/0069-devstack-mcp-can-carry-the-tools-of-upstream-mcp-servers.md +++ b/docs/adr/0069-devstack-mcp-can-carry-the-tools-of-upstream-mcp-servers.md @@ -14,7 +14,7 @@ tokens. Adding a server, or logging in again, is done once per harness, and the lists drift apart. `devstack mcp` is registered in each of these harnesses already (since -0.25.1 the setup prompt offers it, and the dashboard says when it is +0.26.0 the setup prompt offers it, and the dashboard says when it is missing). The hub runs per user across all stacks from logon, on a fixed loopback port, without a stack (ADR-0021), and serves the dashboard there. diff --git a/docs/plan.md b/docs/plan.md index b256680d..a506c1db 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -1,6 +1,6 @@ # devstack: plan -- **Status:** Active: phases 0 to 2 done (0.4.0), phase 3 done (lanes per worktree 0.7.0, each with its own infrastructure since 0.8.0, ADR-0030), phase 4 under way; the pool since 0.9.0: lanes on other machines, moved, shared, given the main ports; node policies, several pools, capacity over time, telemetry with consent (ADR-0025 to ADR-0037, 0.9.0 to 0.9.8; [pool.md](pool.md), §7.4, backlog §13); 0.10.0 (2026-10-18) carries the fixes of the review of 0.9.8: lanes confined on a node, nodes granted by an admin, the promotion gate and restore of ADR-0013/0016 as written, the hub's origin rules; 0.11.0 (2026-10-19): lanes that outlive the main tree's stop, keep their data on a node, run with a profile, and can be viewed when shared; a server updated by an admin (ADR-0038 to ADR-0041); 0.12.0 (2026-10-20): sharing a lane includes viewing it (ADR-0040 amended), a remote lane's containers controlled through its node, a dev server's rebuilds shown like builds (ADR-0042), a node's own lines in the pool's telemetry; 0.13.0 (2026-10-20): a dev server's fixed port is devstack's, forwarded to its instance (ADR-0043); 0.14.0 (2026-10-21): the pool places a lane where it starts warm (ADR-0026 point 3), where a lane starts without `--on` is the machine's choice (ADR-0025 amended), a lane's start on a node shows its phases; 0.15.0 (2026-10-21) carries the fixes of a review of the whole code base: a node runs the Compose model it checked, several agents share one engine, the supervisor keeps edits and stops, stack file paths stay in the repository; 0.16.0 (2026-10-21): desktop notifications from the hub and lanes of other members shown (ADR-0045), winget on Windows, a stack's folder opened in one's own programs (ADR-0046), the share switch removed (ADR-0031 amended); 0.17.0 (2026-10-21): a lane made from a branch in the dashboard (ADR-0047), containers on the main ports (ADR-0048), a lane's need measured where it ran, disk included (ADR-0049); 0.18.0 (2026-10-21): notices for what no request reports (ADR-0050), a lane whose worktree is removed shown while it goes (ADR-0024 point 7 amended); 0.19.0 (2026-10-22): a restart of the stack carries its lanes over (ADR-0052), the agent skills where the stack file says, a node's policy says what part of what is free it offers (ADR-0031 amended); 0.20.0 (2026-10-23): macOS in preview with Homebrew (ADR-0054), UDP ports of a lane on a node relayed (ADR-0056), announced ports moved with their lane (ADR-0057); 0.21.0 (2026-10-23): a tray icon on every desktop, a client of the hub (ADR-0060), profiles that leave out containers (ADR-0058), a service's `stop` command (ADR-0059); 0.22.0 (2026-10-24): the dashboard opens in its installed app (ADR-0061); 0.23.0 (2026-10-26): what `prepare` makes kept in a store per machine (ADR-0062), Compose told the lane (ADR-0064); 0.24.0 (2026-10-26): a lane on a node gets its worktree linked and a store on its node (ADR-0062, ADR-0063), the store warmed ahead for a ref (ADR-0065) and shown in the dashboard, its own telemetry through its requester; 0.25.0 (2026-10-27): a stop takes the containers too (ADR-0068), who changed the stack at runtime on record (ADR-0067), a measured CPU need capped (ADR-0066) ([CHANGELOG](../CHANGELOG.md)) +- **Status:** Active: phases 0 to 2 done (0.4.0), phase 3 done (lanes per worktree 0.7.0, each with its own infrastructure since 0.8.0, ADR-0030), phase 4 under way; the pool since 0.9.0: lanes on other machines, moved, shared, given the main ports; node policies, several pools, capacity over time, telemetry with consent (ADR-0025 to ADR-0037, 0.9.0 to 0.9.8; [pool.md](pool.md), §7.4, backlog §13); 0.10.0 (2026-10-18) carries the fixes of the review of 0.9.8: lanes confined on a node, nodes granted by an admin, the promotion gate and restore of ADR-0013/0016 as written, the hub's origin rules; 0.11.0 (2026-10-19): lanes that outlive the main tree's stop, keep their data on a node, run with a profile, and can be viewed when shared; a server updated by an admin (ADR-0038 to ADR-0041); 0.12.0 (2026-10-20): sharing a lane includes viewing it (ADR-0040 amended), a remote lane's containers controlled through its node, a dev server's rebuilds shown like builds (ADR-0042), a node's own lines in the pool's telemetry; 0.13.0 (2026-10-20): a dev server's fixed port is devstack's, forwarded to its instance (ADR-0043); 0.14.0 (2026-10-21): the pool places a lane where it starts warm (ADR-0026 point 3), where a lane starts without `--on` is the machine's choice (ADR-0025 amended), a lane's start on a node shows its phases; 0.15.0 (2026-10-21) carries the fixes of a review of the whole code base: a node runs the Compose model it checked, several agents share one engine, the supervisor keeps edits and stops, stack file paths stay in the repository; 0.16.0 (2026-10-21): desktop notifications from the hub and lanes of other members shown (ADR-0045), winget on Windows, a stack's folder opened in one's own programs (ADR-0046), the share switch removed (ADR-0031 amended); 0.17.0 (2026-10-21): a lane made from a branch in the dashboard (ADR-0047), containers on the main ports (ADR-0048), a lane's need measured where it ran, disk included (ADR-0049); 0.18.0 (2026-10-21): notices for what no request reports (ADR-0050), a lane whose worktree is removed shown while it goes (ADR-0024 point 7 amended); 0.19.0 (2026-10-22): a restart of the stack carries its lanes over (ADR-0052), the agent skills where the stack file says, a node's policy says what part of what is free it offers (ADR-0031 amended); 0.20.0 (2026-10-23): macOS in preview with Homebrew (ADR-0054), UDP ports of a lane on a node relayed (ADR-0056), announced ports moved with their lane (ADR-0057); 0.21.0 (2026-10-23): a tray icon on every desktop, a client of the hub (ADR-0060), profiles that leave out containers (ADR-0058), a service's `stop` command (ADR-0059); 0.22.0 (2026-10-24): the dashboard opens in its installed app (ADR-0061); 0.23.0 (2026-10-26): what `prepare` makes kept in a store per machine (ADR-0062), Compose told the lane (ADR-0064); 0.24.0 (2026-10-26): a lane on a node gets its worktree linked and a store on its node (ADR-0062, ADR-0063), the store warmed ahead for a ref (ADR-0065) and shown in the dashboard, its own telemetry through its requester; 0.25.0 (2026-10-27): a stop takes the containers too (ADR-0068), who changed the stack at runtime on record (ADR-0067), a measured CPU need capped (ADR-0066); 0.26.0 (2026-10-27): devstack's MCP server offered at setup, a lane's workers on a node, the memory check against Docker Desktop's VM ([CHANGELOG](../CHANGELOG.md)) - **Date:** 2026-10-14, status updated 2026-10-27 - **Inputs:** [problem-statement.md](problem-statement.md), [ADR index](adr/README.md) @@ -851,6 +851,17 @@ locked out of the pool (ADR-0066). A lane on a node prepares new inputs in a second copy, so its worktree keeps a whole `node_modules` (ADR-0063 addendum). The details are in the [changelog](../CHANGELOG.md). +**0.26.0 (2026-10-27): agents set up with devstack's MCP server, lanes on +nodes with their workers.** The setup and upgrade prompts offer to register +`devstack mcp` in the project's agent configuration, and the dashboard says +when it is missing; whether `devstack mcp` should also carry other MCP +servers, logged in once by the hub, is an open question (ADR-0069). +`devstack up --workers` reaches a lane on a node. The memory check before a +lane starts holds its containers to Docker Desktop's VM, which `doctor` +shows; an emptied linked `node_modules` is prepared again. The dashboard +gets a Usage tab and a quieter upgrade banner. The details are in the +[changelog](../CHANGELOG.md). + ## 8. Open questions | # | Question | Where it is tracked | diff --git a/docs/pool.md b/docs/pool.md index 3b5fd7b6..5285e7fa 100644 --- a/docs/pool.md +++ b/docs/pool.md @@ -370,7 +370,7 @@ stopped lane's data away, here and on the nodes it ran on; gone lanes left (both ask the node with `DELETE /v1/slots`). A move to another node is a cold start there: data never moves between nodes. It runs without background workers unless it holds the main ports, or was started with `devstack up --workers` (or a -profile with `workers = true`), as a lane here; a node before 0.25.1 does +profile with `workers = true`), as a lane here; a node before 0.26.0 does not take `--workers`, and `up` warns. When its lease ends (an admin ends it, the node goes away for longer than a lease lives), the main working tree takes the main ports back by itself. diff --git a/ui/package-lock.json b/ui/package-lock.json index d388b224..8feddfdb 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "devstack-dashboard", - "version": "0.25.0", + "version": "0.26.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "devstack-dashboard", - "version": "0.25.0", + "version": "0.26.0", "license": "MIT OR Apache-2.0", "dependencies": { "pinia": "4.1.0", diff --git a/ui/package.json b/ui/package.json index a8bb316c..77165642 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,7 +1,7 @@ { "name": "devstack-dashboard", "private": true, - "version": "0.25.0", + "version": "0.26.0", "license": "MIT OR Apache-2.0", "type": "module", "description": "Web dashboard for devstack, served by the hub",