Repository navigation
Conversation
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
Replaces §10 of
runtime/CLIENT-CONTRACT.md. (This PR previously specified a client-side-only Shepherd plane; that model has been withdrawn and the section rewritten — see "What changed" below.)New §10 — Shared session and floor control — Shepherd as an outer layer (optional, proposed):
working/idle/blockedplus human presence.idlemust rest on a hard signal (e.g. an OSC status sequence); output quietness alone never establishes it.idle, no human input is recent, and the foreground program is the agent CLI — never at a bare shell prompt. On grant the runtime performs one atomic write; the floor is revoked on turn start or the first human keystroke.allow_once/deny_once, no "always allow"); free-form submission while blocked is refused.What changed vs the previous draft of this PR
The earlier §10 kept the planes fully separate — Shepherd-owned panes, the runtime not a party, and a rule that the attach session must never be used as a side channel into a pane. Discussion concluded the better shape for the operator experience is a single shared session with the runtime arbitrating automation writes: separation is replaced by arbitration. Policy now binds Shepherd and routines at the system level, and stops binding — indeed never touches — the operator.
Relation to #77
Unchanged in scope: #77 is an RFC for workflow orchestration over the control plane. This remains one session shared by its operator and one outer-layer supervisor; no orchestration or control-plane semantics.
Companion
The Shepherd-side reference, openabdev/openab-shepherd#41 (
docs/terminal-clients.md), documents the pane-owning model. If this shared-session model is adopted, a companion update on the Shepherd side will be needed; this PR does not change any Shepherd behaviour by itself.Closes #97
Discussion
Discussion thread in the OpenAB Discord #openab-pty channel: https://discord.com/channels/1491295327620169908/1539248427634790451/1571180280939683940