mutualAuthDeriveSession
Derive a mutual-authentication session from both agents' attests, computing the same session ID on each side and returning certificates, expiry, or failure.
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 | Yes | MutualAuthPolicy | |
| is_attest | Yes | The information system's MutualAuthAttest | |
| agent_attest | Yes | The agent's MutualAuthAttest |