Module local_document_action
Expand description
Bounded, speculative local action observations. These are not authorizations.
A collaboration route installs a scope only while processing its local input, pinned to the directory revision actually published for that route. Background work and delivered broker invocations must not inherit a local-input scope.
Structs§
- Captured
Action - Exact local execution observation; an empty mutation set means read/no-op.
contextretains the parent record and source invocation independently of the published child address. Neither field establishes caller authority. - Invocation
Scope - Published
Invocation - Original published invocation, before building or wrapping its typed action.
- Queue
- One route’s UI-thread queue. Draining never performs IO, signing or blocking.
- Scope
- Nestable scope guard. Not transferable to another thread.
Constants§
- MAX_
REPORT_ FIELD - The longest text a report field may carry.
Functions§
- has_
invocation - input_
is_ active - Whether synchronous local input is being observed on this thread.
- suspend
- Exclude native work or a retained remote continuation from local-user capture. The surrounding route scope is restored on drop.
- validate_
report_ field - Whether
fieldcan travel in a report: non-empty, at mostMAX_REPORT_FIELDbytes, without control characters. - with_
invocation - Temporarily retain an invocation before the framework builds its action. An inner typed apply keeps the outer named invocation instead of replacing it.