Expand description
Pacta-native execution abstractions.
Structs§
- Composition
- A blind, ordered assembly of middleware composed over
Identity. It is itself aMiddleware, so applying it is justwrap. - Execution
- A single attempt to fulfill a claimed pact.
- Identity
- The no-op middleware:
wrapreturns the executor unchanged.Identityis the neutral element of composition — the empty stack — so “zero middleware” is a first-class, holdable value rather than an absence. - Stack
- Two middleware composed into one, reifying the closure property as a value: because
Stackis itself aMiddleware, a composed stack can be named, stored, and passed as one middleware before an executor exists.outerwraps the result ofinner, soouteris applied last and therefore observes each execution first.
Enums§
- Outcome
- The lifecycle outcome an execution produces for a claimed pact.
- Verdict
- The decision a
Policyrenders for one infrastructure failure.
Traits§
- Executor
- Public role responsible for executing claimed pacts through middleware.
- Middleware
- A Pacta-native decorator over execution: the Tower
Layeranalog. Becausewraptakes anExecutorand returns anExecutor, middleware compose arbitrarily (the closure property), which is how orchestration is composed onto the seam. - Policy
- A user-obligation trait deciding, after a claimed pact’s execution fails with an infrastructure error, whether to keep letting the claim lapse (to be reclaimed and attempted again) or concede as a terminal breach.
Type Aliases§
- Settlement
- The lifecycle conclusion applied to a claim, currently a fulfilled or breached
Outcome.