Skip to main content

Module vault_ask

Module vault_ask 

Source
Expand description

The held vault call.

A vault operation an agent asks for parks here, in the workspaceโ€™s own registry, until the person at a client answers it: the blocked MCP handler awaits a oneshot this module hands back, and no operation runs in the vault unless that answer approved it. It sits beside the Slack draft and the hand-offs for the same reason they do - the parking is workspace state, not a sessionโ€™s pending set, so a seat with no domain can still hold one.

The lock state is not stored here. The draft is parked without it and stamped from the live session on every read, which is what lets a card whose sibling unlocked first re-base to an ordinary approve card.

Re-exportsยง

use uuid::Uuid; ๐Ÿ”’
use crate::SessionSlot; ๐Ÿ”’
use crate::protocol::PendingAsk; ๐Ÿ”’
use crate::protocol::SessionUpdate; ๐Ÿ”’
use crate::workspace::Workspace; ๐Ÿ”’
use forge_primitives::vault::VaultAskAnswer; ๐Ÿ”’
use forge_primitives::vault::VaultAskEnding; ๐Ÿ”’
use forge_primitives::vault::VaultDraft; ๐Ÿ”’

Type Aliasesยง

ParkedVaultAsk ๐Ÿ”’
One vault call held for a decision: the session that asked, the draft the card draws, and the sender the blocked tool handler awaits.