ReductionBounds.RpcCompletion (ReductionBounds v0.1.0)

Copy Markdown View Source

Conditional completion of the supplied single-attempt RPC/mailbox model.

Completion is separate from cost safety: no rate or server cost bound implies scheduling, delivery or eventual selection. check_trace/4 accepts progress: [...] and goal: :termination | :success (default :termination). Progress declarations are :client_progress, :request_progress, :server_progress and :response_progress. Each assumes an eventual next admitted action from every corresponding nonterminal continuation, respecting all size/count limits. Success additionally requires :no_failure_outcomes. A finite successful example is not evidence for those universal assumptions.

The active-action rank uses the existing total mailbox step allowance and canonical RPC phases. Arrivals, receive setup, inspections and timeout consume mailbox steps; other protocol actions decrease the control phase. Suspension changes neither. Retries remain zero. Active-action counts are not elapsed time bounds. Timeout values are not progress evidence or cost budgets.

Builders retain lean_status: :not_checked. Missing progress evidence produces :insufficient_assumptions; a separate cost proof can remain usable. Source termination, actual scheduling and runtime correspondence remain unverified.

Summary

Functions

check_trace(conditions, queue, timeline, options \\ [])

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