mutualAuthDeriveSession
Derive a shared mutual-authentication session record from both parties' Attests by computing a canonical session ID using JCS and cryptographic hash. Returns session ID, certificates, and expiry bounds for verified mutual trust.
Instructions
Derive the shared mutual-auth session record from both sides' Attests. Both parties MUST compute identical session_id given identical inputs (canonical JCS + sha256 of chosen_version, both cert ids, both nonces). Returns a MutualAuthSession with session_id + both certificates + expiry bounds, or failure reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_attest | No | The agent's MutualAuthAttest | |
| is_attest | No | The information system's MutualAuthAttest | |
| policy | No | MutualAuthPolicy | |
| now_ms | No | Current unix ms — defaults to Date.now() |