Repository navigation
Conversation
ControlPlane.begin_action stores a leased call once with the lease check; the pending ticket remembers the app instance (migration 2) and observe resolves it from the app's terminal transition. stop_program sends a fixed owner/request/claim/stop request; the channel owner comes from the config.
This was referenced Nov 15, 2026
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.
Base
agents; follows the merged Slice 4 server PRs (#511, #512). The diff shows only this change.The lab server had leases and tickets (Slice 3) but no tool that changes what the app does. This is Slice 5's first sub-slice from #131:
stop_program, the first leased action, as a long operation.ControlPlane.begin_actionchecks the lease and stores the call once; the pending ticket remembers the app instance it was sent to (SQLite migration 2), andobserveresolves it from the app's own transition (stoppedwith this request id, the run's own end, a UI takeover, or an app restart), so a terminal event is the completion, not the tool's reply. The daemon claims the app's channel with a configuredchannel_owner(default: the profile, aslc.shuses) on every action. Tested withlab/serverunit tests (158, all fake-lab: retries, restarts, UI takeover, lease loss, app restart, terminal event before the response, busy app, foreign channel owner); no console or app was touched.Remaining Slice 5 sub-slices:
cfr_batch: lease, program stopped, allowlisted lines; marksconsole://B/savestale (cfr_batchreason). Server-only; it uses the existing channel commands.preflight_program+run_program: needs app-side commands first (follow-up onlab/tooling, not written here): apreflightchannel command that stages candidate options, rejects unknown and disabled values, runs dynamic visibility,check_validityand the program's prechecks, and always restores the prior options; and a way to start with options atomically (orselect/set/startunder one request). Then the daemon's preflight token (instance, panel, options hash, lease) andrun_programcallingbegin_run.console_state.blockedfrom the same checks, more race tests (UI takeover during start, app restart between preflight and start), and the console-B soak.