Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/skills/devstack-config/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
---

<!-- generated by devstack 0.30.0 from devstack.toml (devstack skills install): edits here are overwritten; put project specifics into a skill of your own -->
<!-- generated by devstack 0.31.0 from devstack.toml (devstack skills install): edits here are overwritten; put project specifics into a skill of your own -->

# devstack-config: change the stack file

The reference for every key is **[docs/stack-file.md](https://github.com/nuetzliches/devstack/blob/v0.30.0/docs/stack-file.md)**
The reference for every key is **[docs/stack-file.md](https://github.com/nuetzliches/devstack/blob/v0.31.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).

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/devstack/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)."
---

<!-- generated by devstack 0.30.0 from devstack.toml (devstack skills install): edits here are overwritten; put project specifics into a skill of your own -->
<!-- generated by devstack 0.31.0 from devstack.toml (devstack skills install): edits here are overwritten; put project specifics into a skill of your own -->

# devstack: run the local stack (devstack)

Expand Down
33 changes: 28 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,30 @@ and listed with their assets on the

## [Unreleased]

## [0.31.0] - 2026-10-30

The hub follows every stack's worktrees, so a new one shows in the
sidebar at once, and a stopped stack's worktrees can be started as lanes
straight away (ADR-0078). An MCP upstream that logs in with OAuth can carry
an OAuth app's client secret, which GitHub's MCP server needs; a pool can
name one for its members (ADR-0069). Lanes on nodes survive a reboot or a
sleep of the machine that started them. Fixed: `devstack up --on` and the
MCP tool `up` move a started lane, a lane on a node picks up edits, and the
pool's capacity history survives a restart of the coordinator.

### Added

- **An OAuth app's client secret for an MCP upstream** (ADR-0069 addendum
2026-10-30): GitHub's MCP server wants one even with PKCE, so an OAuth
upstream with a client id may carry it. The hub sends it only to the
token endpoint; the user's own goes into the keychain, a pool's comes
with its list (`devstack pool upstreams add --client-secret … --scope …`),
and the dashboard, the CLI and the audit log only say that one is set.
Both upstream forms in the dashboard gain the client secret and the
scopes (an edit there no longer drops the scopes). A token endpoint that
refuses with `200` and an `error`, as GitHub's does, is taken as a
refusal.

- **Worktrees show at once, and a stopped stack's lanes too**
([ADR-0078](docs/adr/0078-the-hub-follows-every-stacks-worktrees.md)):
the hub follows every stack's worktrees and tells the dashboard when one
Expand Down Expand Up @@ -54,6 +76,10 @@ and listed with their assets on the
lives an hour without renewals on a dedicated node, 15 minutes on another
(`lease_grace_minutes` in a node's policy), and the daemon follows its
lanes there again when it starts.
- **The pool's capacity history survives a restart of the coordinator**
(ADR-0036): it keeps it in `history.json` and writes it every minute.
The chart puts each point at its time, so a short history fills only its
part of the hour or day, and a time without points stays a gap.

## [0.30.0] - 2026-10-29

Expand Down Expand Up @@ -100,10 +126,6 @@ since not showing, and dashboard details.

### Fixed

- **The pool's capacity history survives a restart of the coordinator**
(ADR-0036): it keeps it in `history.json` and writes it every minute.
The chart puts each point at its time, so a short history fills only its
part of the hour or day, and a time without points stays a gap.
- **A lane not started shows no tabs**: its start options stand in for its
views, so Overview, Infrastructure and the others no longer all led to
the same start page.
Expand Down Expand Up @@ -2278,7 +2300,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.30.0...HEAD
[Unreleased]: https://github.com/nuetzliches/devstack/compare/v0.31.0...HEAD
[0.31.0]: https://github.com/nuetzliches/devstack/compare/v0.30.0...v0.31.0
[0.30.0]: https://github.com/nuetzliches/devstack/compare/v0.29.0...v0.30.0
[0.29.0]: https://github.com/nuetzliches/devstack/compare/v0.28.0...v0.29.0
[0.28.0]: https://github.com/nuetzliches/devstack/compare/v0.27.1...v0.28.0
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = ["crates/*"]
exclude = ["spikes"]

[workspace.package]
version = "0.30.0"
version = "0.31.0"
edition = "2024"
rust-version = "1.98"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion devstack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = 1
[stack]
name = "devstack"
requires = "0.20.0"
reviewed = "0.30.0"
reviewed = "0.31.0"

# A lane on another machine of the pool runs in this image (ADR-0028): the
# dashboard needs Node.js only (CI builds it with Node 24).
Expand Down
10 changes: 9 additions & 1 deletion docs/plan.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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); 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; 0.27.0 (2026-10-28): a pool grows by provisioned machines (ADR-0051), MCP upstreams through the hub (ADR-0069), one timeline of events and the journal (ADR-0067), the dashboard writes no repository file (ADR-0071), a faster start (builds during the containers' start, a node's artifact store), where a lane starts compared (ADR-0036 addendum); 0.27.1 (2026-10-28): 0.27.0 published, its release had stopped at new advisories ([CHANGELOG](../CHANGELOG.md))
- **Date:** 2026-10-14, status updated 2026-10-29 (0.30.0)
- **Date:** 2026-10-14, status updated 2026-10-30 (0.31.0)
- **Inputs:** [problem-statement.md](problem-statement.md), [ADR index](adr/README.md)

This document is the planning artefact. Decisions it relies on are recorded as
Expand Down Expand Up @@ -922,6 +922,14 @@ pool area has tabs and each machine a page, and starting a lane shows where
it would go (ADR-0076). The details are in the
[changelog](../CHANGELOG.md).

**0.31.0 (2026-10-30): worktrees live; GitHub over OAuth.** The hub
follows every stack's worktrees, so a new one shows at once, and a stopped
stack's worktrees start as lanes straight away (ADR-0078). An MCP upstream
can carry an OAuth app's client secret, which GitHub's MCP server needs, and
a pool can name one for its members (ADR-0069 addendum). A lease on a node
lives through a reboot or a sleep of its requester (#379). The details are
in the [changelog](../CHANGELOG.md).

## 8. Open questions

| # | Question | Where it is tracked |
Expand Down
4 changes: 2 additions & 2 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "devstack-dashboard",
"private": true,
"version": "0.30.0",
"version": "0.31.0",
"license": "MIT OR Apache-2.0",
"type": "module",
"description": "Web dashboard for devstack, served by the hub",
Expand Down
Loading