Structs§
- Session
- Session model. Fields are public for reads, but the struct is
#[non_exhaustive]: construct viaSession::builder. This lets the model gain fields without breaking every constructor in downstream crates (pre-1.0 freeze requirement). - Session
Builder - Builder for
Session— the only construction path outsidemacp-core(the struct is#[non_exhaustive]).
Enums§
Constants§
- CURRENT_
SEMANTICS_ REV - Current session-semantics revision. Recorded at SessionStart (on the session and its log entry) and consulted wherever acceptance-time behavior changed across releases, so legacy histories replay under the semantics they were accepted with (RFC-MACP-0003 §1).
- MAX_
SUSPEND_ MS - Default cap on the cumulative time a session may spend
Suspendedbefore it is force-expired (RFC-MACP-0001 §7.5). Bounds indefinite human-in-the-loop holds. Sessions may bind their own cap viaSessionStartPayload.max_suspend_ms(0 selects this default); the resolved cap is recorded at SessionStart and used by replay (RFC-MACP-0003 §2) — seeSession::effective_max_suspend_ms. - MAX_
TTL_ MS
Functions§
- extract_
ttl_ ms - Extract and validate TTL from a parsed SessionStartPayload.
- parse_
session_ start_ payload - Parse a protobuf-encoded SessionStartPayload from raw bytes.
- requires_
strict_ session_ start - validate_
canonical_ session_ start_ payload - Validate the complete canonical SessionStart binding contract.
- validate_
session_ id_ for_ acceptance - Validate that a session ID meets the acceptance policy.
- validate_
strict_ session_ start_ payload - Enforce the strict SessionStart binding contract for standards-track and qualifying extension modes.