Skip to main content

Module deeplink_open

Module deeplink_open 

Source
Expand description

An agent’s deep-link open, carried to the window and its outcome carried back (docs/specs/SPEC_DEEP_LINKS_ONE_FRAMEWORK_2026_11_20.md §4.2, R3, G9).

srv’s guard (server::deeplink_guard) has already let the open through when it reaches here. srv publishes deeplink:open; the window that holds the tab carries it out with the app’s executor, which applies the rules only the window can (R5, the caps and the typing queue of G3, G6), and answers deeplink.open.done. The answer is accepted only from the proven AgentMux window (operator_only), so an agent can’t report an outcome for itself.

An open the window has not answered within WAIT_FOR is queued for the caller (the person is typing, the app is starting); its outcome is recorded when it comes, until KEEP_FOR.

Structs§

CommandDeepLinkOpenDoneData
Data for deeplink.open.done.
DeepLinkOpenDoneResult
DeepLinkOutcome
What the window answers: the outcome of R3, as the executor gave it.
Entry 🔒

Constants§

COMMAND_DEEPLINK_OPEN_DONE
KEEP_FOR
How long a window may still carry an open out, and srv still records its outcome.
REPLAY_EVENTS 🔒
How many opens a window that connects late is given (§8: the app is still starting; a queue of ten).
WAIT_FOR
How long the caller waits for the window’s answer before it is told queued. Longer than the typing queue’s own wait (two seconds after the last keystroke, ten at most), so an open that waited for the person still answers.

Statics§

ENTRIES 🔒

Functions§

carry_out
Publish event and wait up to window for the window’s outcome. None when none came in time: the caller says queued, and late records the outcome if it comes before the event expires.
done
The window’s outcome for open id.
entries 🔒
register
deeplink.open.done, accepted only from the proven AgentMux window (operator_only), never from an agent.

Type Aliases§

Late
What to do with an outcome that comes after the caller stopped waiting: record it.