Expand description
Seam traits (spec 002, 3.1.2, amended by spec 003, 3.2.6; design section
8), declared as signatures over std::future only. The runtime (spec 003)
composes them. They are transport-neutral; network implementations live
under integrations/ (spec 001, 3.4.3).
Nothing here reads a clock, performs I/O or spawns: time reaches a seam as
a remaining duration, and cancellation as a CancelSignal.
Structs§
- Acquire
Call - One acquisition attempt, with the core’s canonical request and identity.
- Acquire
Report - Raw page bytes are always validated by the core before becoming values.
- Attempt
Call - One dispatched attempt (spec 003, 3.2.6).
- Attempt
Report - What one attempt produced, what it cost and how cancellation went.
- Batch
Attempt Call - One general batch dispatch. Member order is stable and evidence-visible.
- Batch
Attempt Report - One backend-wide batch report. A top-level failure is attributed to every dispatched member. The batch charge is allocated by the plan policy.
- Batch
Capability - A backend’s explicit declaration that one projection may participate in a
general runtime batch. Equal compatibility identifiers mean the backend
promises compatible semantics. Work units are backend-defined and are
used only against the plan’s hard
max_backend_workbound. - Batch
Member Call - One owned member of a general runtime batch.
- Batch
Member Report - A member result is keyed by attempt id. Duplicate, unknown, or missing ids are malformed for the affected member and never fill another member.
- Call
Context - Passed to every seam call. Time is a value, not a clock read.
- Cancel
Signal - A one-way, clonable cancellation signal with children, using
stdonly. Raising a signal raises every child created from it; a child can be raised alone. - Dynamic
Call - One dynamic question’s single attempt (spec 019, 3.5).
- Dynamic
Report - What a dynamic attempt produced, who served it, what it cost and how cancellation went. Invalid answers are judged by the core.
Enums§
- Acquisition
Failure - Adapter
Failure - How an adapter says an attempt failed. Invalid outputs are judged by the core, not reported here.
- Cancel
Ack - The adapter’s answer to a raised cancellation signal.
- Remote
End - Whether remote work may outlive a report the adapter returned of its own accord (spec 013, 3.1).
Traits§
- Acquisition
Source - An acquisition adapter. Dispatch belongs to the caller, never to the core. Its future uses only std and has no executor or runtime dependency.
- Context
Source - Supplies an authorized context snapshot. Returns only what the caller may read; a missing field is reported missing, never filled.
- Decision
Backend - Answers semantic requests. States its capabilities and its cost; never manufactures a distribution or a calibration claim.
- Dynamic
Backend - Answers dynamic questions (spec 019, 3.4). Separate from
DecisionBackend: implementing that trait never makes a backend dynamic, and a backend answers only when it returns a dynamic capability. It is offered no tool, function or retrieval surface. - Dynamic
Evidence Sink - Receives dynamic outcomes (spec 019, 3.6). A receipt establishes that the sink accepted the outcome under its own durability terms, nothing more.
- Evaluator
- A task adapter producing an evaluation report envelope (R-06).
- Evidence
Sink - Receives run records (spec 003, 3.9). A receipt establishes that the sink accepted the record for its decision id under the sink’s own durability terms, nothing more.
Type Aliases§
- BoxFuture
- A boxed future, so the traits stay object-safe without an executor.