Repository navigation
feat: main answers as lane main; singleton replaces lanes = false; shared deprecated (ADR-0080) - #391
Merged
Merged
Conversation
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>
This was referenced Oct 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 namedmain: a worktree folder of that name becomes the lanelane-main.singleton = truenames a service that runs once per machine (in the main working tree only, as before).lanes = falsestill works and means the same.devstack checkreports it as deprecated (compat::DEPRECATED, ADR-0023). Every read goes throughService::singleton().[compose.<group>] sharedis deprecated. It works as before,devstack checkanddevstack doctorreport it, and it is removed withversion = 2. The reference documents why it goes, and what saves the memory instead (a profile'sskip).Review card (ADR-0070)
Approved by the owner in the conversation on 2026-10-30:
/v1/lanes/main/v1/...is the main working tree's/v1/..., so a client addresses every tree as a lane; no lane is ever namedmain.singleton = truereplaceslanes = false, which stays an alias reported as deprecated.sharedis deprecated: it works as before and is reported, and is removed withversion = 2. Every lane starts its own containers; a profile'sskipsaves memory.<project>-shared, network aliases into every lane)version = 2A broader card earlier the same day ("the main tree is a lane inside the daemon": daemon, main slot,
downand 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
shareddocumented 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): usessingleton = trueand checks/v1/lanes/main/v1/stackagainst/v1/stack.singleton_and_the_older_lanes_false_mean_the_same,lanes_false_is_deprecated_for_singleton,shared_is_deprecated. The frozen compat files (one haslanes = false) still load.🤖 Generated with Claude Code