+A host-owned daemon ends through its host's own close or an authenticated shutdown request over its registered local transport. Clients never signal the host. A `'managed'` client reuses a matching host-owned daemon. Takeover, drain, and timeout recovery ask the central retirement, which judges the record's owner once: a live host-owned or unrecognized owner is refused without a signal, while a record whose owner provably exited is retired like any abandoned one, so the state directory stays usable. `agent-device daemon stop --state-dir <path>` sends the shutdown request and waits for the close report. It can also ask a readable record with unrecognized ownership: an embedded runtime can close itself, but a detached answer fails with `daemon-not-embedded` and a record-repair hint, without signaling. A host's direct close also records its result, so stops already waiting can confirm a clean release.
0 commit comments