Skip to content

host/shutdown

Experimental

Stops the host: long-running, drains every loaded session and exits when drained. park: true drains parked (pending prompts stay pending for the next resume), except on an ephemeral host, which has no resume and aborts; otherwise drains with today’s abort semantics (ADR 73975 D2). The reply means only “shutdown accepted” (the wire layer writes it before the drain); the caller waits for serve exit (EOF) for drain completion before powering down. Served only when GateId::PendingParkOnShutdown is OPEN; otherwise the verb is absent.

Type: HostShutdownParams

host/shutdown params (ADR 73975 D2, B2): the park choice. park absent (or false) keeps B1’s abort semantics — a B1 client sending {} keeps working against a B2 host. park: true parks every pending prompt instead of aborting it: the drain skips settling them and the next resume re-presents them before any turn. An ephemeral host has no log to resume from, so it aborts and echoes parked: false.

Field Type Stability Presence Description
park boolean Experimental optional Park instead of abort (ADR 73975 D1/D2, B2).
Source

schema/msp/experimental/msp.schema.json#/methods/host~2Fshutdown

{
"description": "Stops the host: long-running, drains every loaded session and exits when drained. `park: true` drains parked (pending prompts stay pending for the next resume), except on an ephemeral host, which has no resume and aborts; otherwise drains with today's abort semantics (ADR 73975 D2). The reply means only \"shutdown accepted\" (the wire layer writes it before the drain); the caller waits for serve exit (EOF) for drain completion before powering down. Served only when `GateId::PendingParkOnShutdown` is OPEN; otherwise the verb is absent.",
"params": {
"$ref": "#/$defs/HostShutdownParams"
},
"result": {
"$ref": "#/$defs/HostShutdownResult"
},
"x-msp-descriptor": "host/shutdown",
"x-msp-stability": "experimental"
}