ReductionBounds.RpcConditions (ReductionBounds v0.1.0)

Copy Markdown View Source

Connects a supplied RPC trace to a checked client mailbox timeline.

Timeline entries are {:protocol, name}, {:arrive, reified_term}, :begin_receive, :inspect, and :timeout. Receive/timeout/down observations are derived from mailbox execution, never accepted as free annotations. The coarse RPC arrival observation is emitted when the message is selected; physical modeled arrivals are recorded separately by mailbox actions.

A single RPC receive is supported; retries remain zero. After client return, arrivals may append without reviving the operation. Generic Mailbox traces additionally support repeated receives. Conditions hold for this supplied execution; future arrival/count bounds remain explicit assumptions, not an inferred guarantee about all runtime executions. Server mailbox behavior, reply provenance, source correspondence, cost and progress remain unverified.

Summary

Functions

check_trace(profile, queue, timeline)

@spec check_trace(map(), list(), list()) :: {:ok, map()} | {:error, term()}

new(session, request, options)

@spec new(
  ReductionBounds.RpcProtocol.Session.t(),
  ReductionBounds.RpcTerm.t(),
  keyword()
) ::
  {:ok, map()} | {:error, term()}

validate(profile)

@spec validate(term()) :: :ok | {:error, term()}