mutualAuthDeriveSession
Derive a shared mutual authentication session by combining attestations from both parties, ensuring identical session IDs for verifiable communication.
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 |
|---|---|---|---|
| now_ms | No | Current unix ms — defaults to Date.now() | |
| policy | No | MutualAuthPolicy | |
| is_attest | No | The information system's MutualAuthAttest | |
| agent_attest | No | The agent's MutualAuthAttest |