Raxol. AgentClientProtocol. Ext. AttachPolicy. Grant
(Raxol Agent Client Protocol v0.1.0)
Copy Markdown
View Source
A successful attach grant.
The value the bus records at registration. %Grant{} is the ONLY structural
shape the Runner (the fail-closed funnel) admits — a policy cannot "mostly"
grant. The Runner enforces well-formedness:
actor— a map carrying a binary"id"(audit identity, never empty). For a token grant this is the token'sactclaim; for LocalNode a synthesized local identity.scope— an atom in the Runner's allow-list ([:attach]).session_id— binary, MUST==ctx.session_id(the Runner denies a mismatch).via— non-nil provenance for audit (:local_node | {:token, kid}).expires_at— tokenexp(unix seconds) or nil. Consumed byExt.Reattach's mid-attach expiry timer: a held live tail is force-closed atexpires_at.lens— RESERVED: a grow-only redaction transform threaded opaquely by the bus, NEVER interpreted. Always nil.