Skip to main content

Module ctx

Module ctx 

Source
Expand description

The module-invariant lowering context and the per-body state structs that sit between it and LowerCtx.

Structs§

SystemHttpClaims
#2019: what a system-tier call needs to sign the claims a refinement actor’s predicate checks (actor Admin = User where hasClaim("admin")). A route guarded by a refinement has drivers that take a trailing claims object, signed into the JWT next to sub; a call acting as a refinement actor passes that actor’s witness claims, and any other call passes {}, so the Worker’s seam answers 403 exactly as it would a real token lacking the claim.
SystemJobServices
#2136: the cron and queue services a system-tier case drives through the participant Worker’s real scheduled and queue entry points. A svc.schedule("<expr>", …) address on a cron service here lowers to __sysdrive_schedule_<svc>_<index>(…), and q.message(m) on a queue service to __sysdrive_message_<q>(m) (tests_emit::emit_system_job_support).