Skip to content

feat: main answers as lane main; singleton replaces lanes = false; shared deprecated (ADR-0080) - #391

Merged
7schmiede merged 2 commits into
mainfrom
feat/main-is-a-lane
Oct 30, 2026
Merged

7schmiede merged 2 commits into
mainfrom
feat/main-is-a-lane

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Stack files load and behave as before. Nothing changes in behaviour; two keys are now reported as deprecated, and one route is added.

  • /v1/lanes/main/v1/... answers as the main working tree's /v1/... (main daemon only). No lane is ever named main: a worktree folder of that name becomes the lane lane-main.
  • singleton = true names a service that runs once per machine (in the main working tree only, as before). lanes = false still works and means the same. devstack check reports it as deprecated (compat::DEPRECATED, ADR-0023). Every read goes through Service::singleton().
  • [compose.<group>] shared is deprecated. It works as before, devstack check and devstack doctor report it, and it is removed with version = 2. The reference documents why it goes, and what saves the memory instead (a profile's skip).
  • ADR-0080 records this. Status notes are added on ADR-0024 (point 5), ADR-0030 (point 3) and ADR-0068 (point 3). Docs, both skills and the changelog are updated.

Review card (ADR-0070)

Approved by the owner in the conversation on 2026-10-30:

# Category Point Beats Reversing costs
1 contract /v1/lanes/main/v1/... is the main working tree's /v1/..., so a client addresses every tree as a lane; no lane is ever named main. Clients telling the main tree apart by path Low
2 contract singleton = true replaces lanes = false, which stays an alias reported as deprecated. A name that says where a service does not run Low
3 contract shared is deprecated: it works as before and is reported, and is removed with version = 2. Every lane starts its own containers; a profile's skip saves memory. Building it out (a stack-owned <project>-shared, network aliases into every lane) Low until version = 2

A broader card earlier the same day ("the main tree is a lane inside the daemon": daemon, main slot, down and workers belonging to the stack) was approved, then weighed again with the owner and withdrawn before anything of it beyond these points was built. The reasons are in ADR-0080's Context: none of the goals needs it, and the pain behind it (a lane on a node needing a local main start) is gone since 0.31.0.

Decided by the agent alone: the wording of the deprecation messages, and the reference keeping shared documented with the reasons it goes.

Tests

  • cargo fmt, cargo clippy --all-targets -D warnings, unit tests of devstack-config, devstack-daemon, devstack-skills and the CLI.
  • a_worktree_runs_as_a_lane (native Windows, --include-ignored): uses singleton = true and checks /v1/lanes/main/v1/stack against /v1/stack.
  • Config: singleton_and_the_older_lanes_false_mean_the_same, lanes_false_is_deprecated_for_singleton, shared_is_deprecated. The frozen compat files (one has lanes = false) still load.

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 30, 2026 18:47
The first step of "the main working tree is a lane": a service that runs
once per machine is `singleton = true`; `lanes = false` stays an alias
that `devstack check` reports as deprecated (ADR-0023). The main tree
answers as the lane `main` too: `/v1/lanes/main/v1/...` is its `/v1/...`.
No behaviour changes yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`[compose.<group>] shared` ties a lane to the main tree, reaches only
native services, behaves differently for a lane on a node and mixes the
lanes' telemetry. It keeps working; `devstack check` and `doctor` now
report it, and it goes with `version = 2`. A profile's `skip` saves the
memory instead.

ADR-0080 now records what was decided after weighing "the main tree is a
lane" inside the daemon: the main tree answers as the lane `main`,
`singleton` replaces `lanes = false`, and `shared` is deprecated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede changed the title feat: singleton replaces lanes = false; /v1/lanes/main (ADR-0080) feat: main answers as lane main; singleton replaces lanes = false; shared deprecated (ADR-0080) Oct 30, 2026
@7schmiede
7schmiede merged commit 5b6b956 into main Oct 30, 2026
@7schmiede
7schmiede deleted the feat/main-is-a-lane branch October 30, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant