Skip to content

Commit 70e3315

Browse files
authored
Let trusted hosts stop executions and join owned cleanup (#1008)
1 parent 267cc55 commit 70e3315

10 files changed

Lines changed: 2718 additions & 69 deletions

File tree

‎architecture.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4640,6 +4640,24 @@ callbacks, documentation capture and public execution policy. Setup receives no
46404640
installation array, request, entry identifier or receipt and creates no second
46414641
execution owner.
46424642

4643+
A host may also **stop** the execution it owns. `HostExecution.stop()` is the
4644+
same seam's opt-in: it answers for the stop and the join, never for the
4645+
document. It reaches a document that is still running, unwinds it, and joins
4646+
every teardown the execution owns before it answers — a stop that returned
4647+
while an owned cleanup was still running would be reporting an ending that had
4648+
not happened. What the journal keeps is the terminal representation the
4649+
protocol already has: one cancelled `Close` for the root, carrying a status and
4650+
nothing else. No answer, outcome or successful payload is invented for work the
4651+
document never finished, and asking again or reading the completion again
4652+
writes no second ending.
4653+
4654+
It creates no second execution owner. Initialization and invocation
4655+
installations stay execution-owned, whole-document failure ranking is
4656+
unchanged, and a persistence failure raised while that ending is being written
4657+
stays the run's own failure by identity — the stop answers with it, the owned
4658+
teardown is still attempted and joined, and nothing compensating is appended in
4659+
its place.
4660+
46434661
Which middleware a command installs on that seam is the host's own selection,
46444662
made once by the runtime entrypoint. The bundled Plugin a run-profile command
46454663
begins with is read from one CLI-private Context whose default is the

‎packages/cli/src/sidekick-acp/posix.ts‎

Lines changed: 343 additions & 40 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)