Module invocation_scope
Expand description
Host-local invocation custody. No wire caller can manufacture these checks.
Structs§
- Approved
Check Receipt - Observed execution metadata. This is not a grader verdict or a model score. The full private receipt remains with the trusted host under its content hash.
- Document
Authorization - Immutable local publication evidence. It is never serialized or minted from wire fields. Captured original guards outlive terminal invocation tracking.
- External
Moderation Reply - Cloneable one-shot response custody for the collaboration request queue.
- Invocation
Locus Basis - Local evidence of the target resolved at dispatch, before encoding/execution.
- Invoker
Scope - The invoker whose resource tree a delivered invocation resolves against, for the duration of its resolution and dispatch on this thread.
- Published
Invocation Lease - An opaque check minted by the actual host for this exact invocation. Hosts must retain original caller authority and resample their registered policy time on every check. A positive result is never a reusable decision.
- Published
Invocation Request - Inert delivered inputs. Only the registered host can associate these with an original admitted caller, contract and exact worker connection.
- Published
Invocation Spec - Inert declaration retained by the actual host at original admission. This is not authority, and is never decoded from a caller’s wire request.
- Resource
Effect Scope - Resource
Invocation Scope - Immutable job custody, constructed only from an actual admitted invocation and the exact mounted record owner. InvocationId alone cannot construct it.
- Viewer
Scope - The participant a published tree is being built for while it lives: what a surface offers bound to where someone is (their caret, their Find hits) is that participant’s, not the window’s. It grants nothing: an invocation still runs for its own invoker.
- Write
Attribution Receipt - The host’s answer to naming the paths an invocation is about to write
([
ResourceInvocationScope::attribute_writes]). Wait for it before writing, so the versions those writes make record who caused them.
Enums§
- Approved
Check Report Observation - Command observations do not establish success or authorize any operation.
Functions§
- current_
invoker - The invoker of the delivered invocation being resolved on this thread.
Noneoutside any delivered invocation (the local person acting). - current_
participant - The participant whose view the current resolution builds, if any.
- current_
viewer - Whose view what is being built or resolved now is: the participant of
the delivered invocation, else the participant a tree is published for.
Nonefor the window’s own person. - delivered_
invocation - The broker invocation being dispatched on this thread, when the broker
delivered it: what a request the app makes to the shell for it (opening
another app) names, so the shell admits it as that invocation’s caller.
Nonefor the local person acting, whose own press is the proof. - view_
operation_ permitted - Whether
actormay invoke the View operationcontracthere. The local person always may. A remote actor may only when it is the current host-set invoker, it has its own participant view, and the operation declares that it changes only the invoking participant’s view (tilo_actions::PARTICIPANT_VIEW_TAG). A read of the document (tilo_actions::DOCUMENT_READ_TAG) moves nothing, so any actor the broker admitted may run it: it is a View operation only because it changes no document, and refusing it as “somebody else’s view” left an agent that may read a note unable to read it. Every other View operation would move somebody else’s private view and stays refused.
Type Aliases§
- Approved
Check Future - A typed host check response, suitable for an existing effect worker.
- Approved
Check Report Sink - Informational reports enter the caller’s existing effect reporter.
- Approved
Check Reported Work - A queued approved check, attached to its original reporter by the effect worker.
- External
Moderation Future - A host moderation receipt, suitable for an existing action worker.
- Published
Invocation Authorizer