Make delivery lifecycle transitions authoritative - #181
Merged
Conversation
bigboateng
enabled auto-merge (squash)
August 10, 2026 13:08
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.
Summary
Boatstack could correctly enter a recovery state while still computing the next command from an older, narrower view of delivery state. Delivery mode, slice position, plan lock, observations, workspace identity, and approval evidence were resolved independently. In the amendment path, that split authority produced a deadlock: delivery required planning, bootstrap rejected the existing managed feature, and next-status continued to project the active BUILD slice.
This rewrites lifecycle resolution around one composite snapshot and one registered transition system. Recovery mode now has authority over the underlying slice, and every planning, approval, and activation command is derived from and bound to the same lifecycle evidence.
What the rewrite changes
Problems this solves
The rewrite preserves raw managed-path write denial, destructive-operation controls, publication controls, workspace binding, plan-lock validation, and human approval requirements.
Test plan
cd boatstack && go test ./... -count=1cd boatstack && go vet ./...cd boatstack && go build ./...python3 -m unittest discover -s .github/tests -p "test_*.py"python3 .github/scripts/test_ci_shard.pypython3 .github/scripts/release_notes.py validate --repo .git diff --check