From d6ac388980135d8a24656d62b9bdf2720eb04944 Mon Sep 17 00:00:00 2001 From: Sebastian Gieseler Date: Thu, 26 Nov 2026 19:17:04 +0100 Subject: [PATCH] docs: stack file breaks are allowed again when they are the lasting solution (ADR-0023 amended) The owner decided on 2026-11-26 (#630) that devstack's users are the maintainers' small team: a break that gives the lasting, technically right solution needs no `version = 2` or migration. AGENTS.md, ADR-0023 (phase 1 again), its index line and plan.md say so; a break is named in the review card and the changelog, and the frozen copy it breaks is replaced on purpose. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 18 +++++++++--------- docs/adr/0023-stack-file-compatibility.md | 9 ++++++++- docs/adr/README.md | 2 +- docs/plan.md | 2 +- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 2999921e..a8968b18 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -50,15 +50,15 @@ is not installed, start the service by hand, and stop it before you finish. A change to the stack file format (`crates/devstack-config`) that makes an existing file fail to load, or behave differently, is a **breaking change**. -devstack has users outside its maintainers since 2026-10-23 (the first macOS -build handed to a tester, [ADR-0054](docs/adr/0054-macos-is-a-developer-platform-in-preview.md) -point 8), so the second phase of -[ADR-0023](docs/adr/0023-stack-file-compatibility.md) holds: a new key is -optional and keeps the old behaviour, a renamed or removed key stays readable -as a deprecated alias, a break is `version = 2` with `devstack migrate`. A new -key gets its `*_SINCE` constant and a warning in `validate::warnings` when -`[stack] requires` is older. The frozen files in -`crates/devstack-config/tests/compat/` catch a break you did not intend. +Since 2026-11-26 the first phase of +[ADR-0023](docs/adr/0023-stack-file-compatibility.md) holds again: devstack's +users are its maintainers' small team, so a break is allowed when it gives the +lasting, technically right solution, without `version = 2` or a migration. Name +it in the review card and in the changelog (what changes for an existing file, +and what to do), and replace the frozen copy it breaks in +`crates/devstack-config/tests/compat/` on purpose. A new key gets its +`*_SINCE` constant and a warning in `validate::warnings` when `[stack] +requires` is older. The frozen files catch a break you did not intend. ## Public-repository hygiene diff --git a/docs/adr/0023-stack-file-compatibility.md b/docs/adr/0023-stack-file-compatibility.md index 71e7a27b..4ae6c74a 100644 --- a/docs/adr/0023-stack-file-compatibility.md +++ b/docs/adr/0023-stack-file-compatibility.md @@ -1,6 +1,6 @@ # ADR-0023: Stack files stay readable; migrations once devstack has outside users -- **Status:** Accepted; phase 2 holds since 2026-10-23 (ADR-0054 point 8) +- **Status:** Accepted; phase 2 held from 2026-10-23 (ADR-0054 point 8); phase 1 again since 2026-11-26 (amendment) - **Date:** 2026-10-15 - **Deciders:** project owner - **Related:** [ADR-0017](0017-stack-file-is-toml.md), plan §4 @@ -54,6 +54,13 @@ handed to a tester outside the maintainers made devstack's users outside users, as [ADR-0054](0054-macos-is-a-developer-platform-in-preview.md) point 8 says. The question in phase 1 is answered; it is not asked again. +*Amended 2026-11-26.* Phase 1 holds again, by the owner's decision on +2026-11-26 (#630): devstack's users are the maintainers' team of three to four, +and a break that gives the lasting, technically right solution is accepted +without `version = 2` or a migration. Such a break is named in the review card +and in the changelog, and the frozen copy it breaks is replaced on purpose. +Phase 2 comes back when the owner says devstack has users outside the team. + ## Alternatives considered - **Migrations from the start.** Correct, but a converter for a format only the diff --git a/docs/adr/README.md b/docs/adr/README.md index 564b4a33..a12f3406 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -105,7 +105,7 @@ stay. | [0020](0020-builds-share-one-long-lived-build-job.md) | Builds share one long-lived build job; a cancel ends only the cancelled build's tree | Accepted | | [0021](0021-a-hub-serves-the-dashboard.md) | A hub on a fixed port serves the dashboard for every stack | Accepted, amended (streams over WebSocket; the pool area polls, ended by ADR-0073); the tray is the hub's client, ADR-0060 | | [0022](0022-network-egress-sandbox.md) | Outbound network calls of supervised services are visible and need an allow rule | Proposed | -| [0023](0023-stack-file-compatibility.md) | Stack files stay readable; migrations once devstack has outside users | Accepted; phase 2 holds since 2026-10-23 (ADR-0054 point 8) | +| [0023](0023-stack-file-compatibility.md) | Stack files stay readable; migrations once devstack has outside users | Accepted; phase 2 held from 2026-10-23 (ADR-0054 point 8); phase 1 again since 2026-11-26 (amendment) | | [0024](0024-a-lane-is-a-supervisor-in-the-main-trees-daemon.md) | A lane is a supervisor in the main working tree's daemon | Accepted, amended twice (lanes are the worktrees, run from a copy); point 4 replaced by ADR-0030; point 1 replaced in part for the hub by ADR-0047; point 7 amended 2026-10-21 (the removal is shown while it runs); point 6 amended by ADR-0052 (a restart carries the lanes over); point 5's `lanes = false` is `singleton` since ADR-0080 | | [0025](0025-a-lane-can-run-on-another-node.md) | A lane can run on another node, as a Linux container with its own infrastructure | Accepted; point 10 (showing and moving a lane) amended; amended 2026-10-19 (a start on a node answers once leased; its phases are timed); noted 2026-10-21 (its daemon starts first, its containers come up under it); points 5 and 7 amended by ADR-0038; point 7 amended by ADR-0052 (a restart keeps the lanes on nodes) | | [0026](0026-placement-by-the-requester-admission-by-the-node.md) | The requester places a lane; the node admits it, under a lease | Accepted; points 1, 3 replaced by ADR-0031; point 5 amended 2026-10-30 (a lease lives a grace without renewals: an hour on a dedicated node, 15 minutes on another) | diff --git a/docs/plan.md b/docs/plan.md index 9135ab3f..e881cfb7 100644 --- a/docs/plan.md +++ b/docs/plan.md @@ -1345,7 +1345,7 @@ What is open, roughly in the order it pays off, and where it comes from. | Code signing of the Windows binary (deferred) | [#3](https://github.com/nuetzliches/devstack/issues/3) | small | | Remove the downstream stack's old orchestrator once its team works without it | phase 4 | downstream | | `devstack init` checked against a second real repository per language (Go, Python, Spring Boot are detected; .NET and Node came from the reference stack) | §13 | small | -| `devstack migrate`, before the first `version = 2` (devstack has outside users since 2026-10-23) | [ADR-0023](adr/0023-stack-file-compatibility.md) | medium | +| `devstack migrate`, before the first `version = 2` (not needed while ADR-0023's phase 1 holds again, since 2026-11-26) | [ADR-0023](adr/0023-stack-file-compatibility.md) | medium | | A pull request as a lane, by its number: fetched by refspec, no forge API (`refs/pull/N/head` on GitHub and Forgejo/Gitea, `refs/merge-requests/N/head` on GitLab), the forge told by the remote's URL. A feature that needs the API after all takes its token from `git credential fill` (else `gh`, `glab`, `tea`), never from an OAuth flow of devstack's own: a self-hosted instance has no client ID devstack could ship | [ADR-0047](adr/0047-the-dashboard-makes-a-lane-from-a-branch.md) (what it does not say) | medium | | Dead ends link onward (devstack has outside users since 2026-10-23): a gap left on purpose names its tracking issue (one per gap, so interest adds up instead of duplicates); an open list (forges, programs to open a tree in) links to a prefilled issue form with the version and the OS only, never hosts or paths. One mechanism for it, such as a notice, not links in every error | [ADR-0023](adr/0023-stack-file-compatibility.md) (the same trigger), [ADR-0050](adr/0050-what-no-request-reports-reaches-the-dashboard-as-a-notice.md) | small | | Network egress sandbox, stage 1 (cooperative proxy) | [ADR-0022](adr/0022-network-egress-sandbox.md) (proposed) | medium |