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
97 changes: 96 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ and listed with their assets on the

## [Unreleased]

## [0.20.0] - 2026-10-23

macOS as a developer platform in preview, installed with Homebrew on macOS
and Linux, with arm64 Linux builds (ADR-0054). A lane on a node relays its
UDP ports (ADR-0056); a port a container announces moves with its lane
(ADR-0057); commands reach the tree's own containers
(`{compose.<group>.project}`). A lane whose branch has no stack file says
so (ADR-0055); whoever a lane is shared with connects to it (ADR-0053); the
dashboard's upgrade goes by `[stack] reviewed`. Fixed: `restart_on` for the
files in a folder, ports held on `0.0.0.0` on Windows, the hub and a node
agent reporting over each other, a job run twice for one edit.

### Added

- **macOS, in preview** (ADR-0054, #66): release builds for Apple Silicon
Expand All @@ -34,9 +46,46 @@ and listed with their assets on the
the branch (the prompt `lane-file`). A stack file below the repository's
root (`-f config/devstack.toml`) is now found in a lane at the same path,
not only at the worktree's root.
- **UDP ports of a lane on a node are relayed** (ADR-0056, #219). A
container port published as UDP (`53/udp`, a game's voice port) on a lane
running on a pool node now reaches `localhost:<port>` here like its TCP
ports. Each client gets a tunnel of its own through the node, which ends
after 60 s without a datagram; datagrams that arrive before the container
answers are lost, as on a network, and the client's next one tries again.
A node with a devstack before 0.20.0 relays no UDP: the lane's page and
`devstack lane list` name such ports as not forwarded and say why
(`not_forwarded_reason` in `GET /v1/lanes`). The main slot still moves TCP
ports only.
- **A port a container announces moves with its lane** (ADR-0057, #222). A
server that tells its clients its own port (a WebRTC media server's ICE
candidates, a broker's advertised listeners) sent a lane's clients to the
main tree's server, since a lane moved only the host side of a published
port. Name such ports in the Compose group, `announced_ports =
["media:7881", "media:7882/udp"]`, each published 1:1 (`7881:7881`): a
lane moves them inside the container too (`7981:7981`). Every `docker
compose` call of the group and every `exec` step of a command gets
`DEVSTACK_PORT_MEDIA_7881` with the number clients reach in this tree;
pass it to the server's listen and announce settings with the files' port
as default (`${DEVSTACK_PORT_MEDIA_7881:-7881}`), so the files still run
without devstack. `{compose.app.media.7881.port}` is `7981` in the first
lane; a lane on a node works the same. `devstack check` rejects entries
not published 1:1 and warns about variables misspelt, unused or read
without a default. A file that uses the key needs `requires = "0.20.0"`.
- **`{compose.<group>.project}`: a Compose group's project as this tree
runs it** (#222): `<project>` in the main working tree, `<project>-<lane>`
in a lane. `docker compose -p {compose.app.project} exec -T db ...` in a
command acts on the lane's own database in a lane; with the project name
written out it acted on the main tree's. The reference's `reset-db`
example uses it now. `devstack check` warns about a dev server whose
folder has a `package.json` and no `prepare`.

### Changed

- **`devstack status` lists Compose containers apart from services**
(#184): containers have their own `CONTAINER` / `STATE` / `PORTS` table,
by group; the `SERVICE` table shows only when the stack has
`[services.*]` entries, which is what "service" means in the stack file
and in "main ports".
- **The dashboard's upgrade goes by the stack file, `[stack] reviewed`, not
by the agent skills** (ADR-0046 amended). "Refresh skills" rewrote the
version the skills name, and the banner that offered a coding agent the
Expand Down Expand Up @@ -74,6 +123,51 @@ and listed with their assets on the

### Fixed

- **`restart_on` restarts a dev server for every file in a folder it
names, and says why** (#221). `restart_on = ["src/api"]` matched only the
folder's own path, so a file created, saved or deleted in it restarted
nothing until the OS happened to report the folder itself: on Windows
seconds to minutes later, on Linux never. A folder in `restart_on` (dev
servers and Compose services) now covers what it holds, as `src/api/**`
does, and the restart follows within the 2 s debounce. A change made while
the dev server starts or restarts restarts it once more when it is up;
Python's caches (`__pycache__`, `.pytest_cache`, `.mypy_cache`,
`.ruff_cache`) never count. The daemon log has a `restart_on` line per
restart with the paths, when the first changed and how long it waited.
- **On Windows, a port another program holds on every address counts as
taken** (#226). A dev server on `0.0.0.0` or a port Docker Desktop
publishes held the port unnoticed: Windows lets a bind on `127.0.0.1`
succeed beside it, and the service devstack started then failed with
"address in use". devstack reads the system's table of listeners (well
under a millisecond, no port opened, no firewall prompt).
- **The hub and a node agent on the same machine no longer report over each
other** (#170). Both reported to the coordinator as the same member; after
each of the hub's reports the machine showed no node agent and its leases
came back new, without their sharing. The agent holds `node/lock` while it
runs, the hub does not report for that pool then (`agent` in `GET
/hub/pool/share`), and a second agent of the same member is refused.
- **Lanes: commands and dev servers** (#222). A command's `start`, `stop` or
`restart` step on a `lanes = false` service is skipped in a lane, with a
line in the run's log, instead of failing the command. When the installed
devstack is new enough but the main tree's daemon is older, a stack file
that needs the new one says to restart that daemon ("Restart stack"), not
to update devstack. A dev server without `prepare` that ends in a lane
before it is ready says the lane's copy has no `node_modules`. The
reference adds that `{port}` in a dev server's `env` works in a lane, and
covers cookies shared across ports on `localhost` and Origin checks.
- **One edit makes one candidate per service, at the same moment** (#233).
The watcher reports a change more than once (macOS above all), and a
service could start building 200 ms after another for the same edit: two
services after the same job then ran the job twice. A change reported
while `devstack restart` of its service is still under way waits for it,
and is dropped when the restart built it already.
- **A lane on a node keeps its data across a quick release and lease**: the
node wrote `slot.json` in place, and the next lease could read it half
written and start fresh. It is written whole now.
- **The overview's usage card names the lane shown**: for a lane on a node
it said "Lane main" (the lane's own daemon there calls its tree `main`).
CPU reads with one decimal up to 100% (4.5% next to 23.0%), whole numbers
above.
- **A hub that is still starting is no longer taken for another user's
program.** The hub bound its port before its setup, of which a first
`docker version` alone may take 5 s on a busy machine or while Docker
Expand Down Expand Up @@ -1373,7 +1467,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.19.0...HEAD
[Unreleased]: https://github.com/nuetzliches/devstack/compare/v0.20.0...HEAD
[0.20.0]: https://github.com/nuetzliches/devstack/compare/v0.19.0...v0.20.0
[0.19.0]: https://github.com/nuetzliches/devstack/compare/v0.18.0...v0.19.0
[0.18.0]: https://github.com/nuetzliches/devstack/compare/v0.17.0...v0.18.0
[0.17.0]: https://github.com/nuetzliches/devstack/compare/v0.16.0...v0.17.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.19.0"
version = "0.20.0"
edition = "2024"
rust-version = "1.98"
license = "MIT OR Apache-2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ADR-0056: A lane on a node relays its UDP ports, a tunnel per client, a datagram per frame

- **Status:** Proposed
- **Status:** Accepted (2026-10-23)
- **Date:** 2026-10-23
- **Deciders:** project owner
- **Related:** [ADR-0029](0029-source-sync-and-port-forwarding-for-remote-lanes.md) (point 4 extended to UDP here), [ADR-0025](0025-a-lane-can-run-on-another-node.md), [ADR-0048](0048-a-containers-main-port-can-move-with-the-main-slot.md) (point 6: the main slot moves TCP only), [ADR-0052](0052-a-restart-carries-the-lanes-over.md), [ADR-0053](0053-whoever-a-lane-is-shared-with-connects-to-it.md), [#192](https://github.com/nuetzliches/devstack/issues/192), [#219](https://github.com/nuetzliches/devstack/issues/219)
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ stay.
| [0053](0053-whoever-a-lane-is-shared-with-connects-to-it.md) | Whoever a lane is shared with connects to it, and disconnects again | Accepted |
| [0054](0054-macos-is-a-developer-platform-in-preview.md) | macOS is a developer platform in preview, installed by Homebrew, checked by CI and by its testers | Accepted |
| [0055](0055-a-lane-without-a-stack-file-says-so-and-can-be-given-one.md) | A lane whose branch has no stack file runs with the main tree's, says so, and can be given one | Accepted |
| [0056](0056-a-lane-on-a-node-relays-its-udp-ports-through-a-tunnel-per-session.md) | A lane on a node relays its UDP ports, a tunnel per client, a datagram per frame | Proposed |
| [0056](0056-a-lane-on-a-node-relays-its-udp-ports-through-a-tunnel-per-session.md) | A lane on a node relays its UDP ports, a tunnel per client, a datagram per frame | Accepted |
| [0057](0057-a-port-a-container-announces-moves-inside-it-too.md) | A port a container announces moves inside the container too, and Compose is told its number | Accepted |
14 changes: 12 additions & 2 deletions 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) ([CHANGELOG](../CHANGELOG.md))
- **Date:** 2026-10-14, status updated 2026-10-22
- **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) ([CHANGELOG](../CHANGELOG.md))
- **Date:** 2026-10-14, status updated 2026-10-23
- **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 @@ -790,6 +790,16 @@ prompt (ADR-0046 amended). A node's policy says what part of its free CPU
and memory it offers (ADR-0031 point 3 amended). The details are in the
[changelog](../CHANGELOG.md).

**0.20.0 (2026-10-23): macOS in preview, UDP through the pool.** devstack
runs on macOS as a developer platform in preview, checked by CI on macOS
and by testers (ADR-0054); Homebrew installs it on macOS and Linux, and
arm64 Linux has builds of its own. A lane on a node relays its UDP ports,
a tunnel per client (ADR-0056); a port a container announces moves inside
its lane's container too (ADR-0057); `{compose.<group>.project}` lets a
command reach the tree's own containers. A lane whose branch has no stack
file says so (ADR-0055); whoever a lane is shared with connects to it
(ADR-0053). 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.19.0",
"version": "0.20.0",
"license": "MIT OR Apache-2.0",
"type": "module",
"description": "Web dashboard for devstack, served by the hub",
Expand Down
Loading