feat(sweep): fan out self-repair across terminal instances (#1152) - #1174
Closed
fujibee wants to merge 10 commits into
Closed
feat(sweep): fan out self-repair across terminal instances (#1152)#1174fujibee wants to merge 10 commits into
fujibee wants to merge 10 commits into
Conversation
Owner
Author
|
Closing as superseded by the measured seat-side design for #1152. A repair command must not accept or derive a pane supplied by an external coordinator: the seat establishes its own location through proof, writes only when that proof succeeds, and otherwise remains undetermined. The process/label/instance arbitration and |
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.
Adds the explicit, team-scoped leader sweep command for #1152. It consumes the shared terminal census as
(kind, instance, pane)triples, keeps process classification outside the census, requires roster/label/process agreement, composes the target andfix --paneargument once from the same row, and routes every write through one fenced poke boundary.The command is intentionally explicit-only and fail-closed: census holes, malformed observations, unknown occupants, instance refusals, locator refusals, label mismatches, and fence failures are loud and produce no write. Plain emulator locations use the same loop and fence boundary as herdr and tmux.
The shared census and locator composer are connected. The instance-aware label/process/write-fence production adapters remain rc 127 until #1157 supplies their ABI; tests replace only those internal seams and pin zero-write behavior. This PR remains draft until that final wiring lands.
Tests:
bats tests/test_sweep.bats;bats tests/test_sweep_enumeration.bats;bats tests/test_enforced_assertions.bats;bash -n scripts/lib/sweep.sh;git diff --check.