Expand description
Contractual formation & agreement (§22, legal_logic.md) — private ordering.
Beyond universal human rights, agents create binding private law through agreements. This formalises the micro-states of formation (Offer → Assent → Binding) and composes §18 capacity: mutual assent only creates a binding obligation when both parties had the juridical capacity to agree. A contract may also incorporate a larger normative corpus by reference (e.g. the UN Guiding Principles).
Enums§
- Contract
State - The lifecycle state of a binding contract.
- Formation
Stage - The formation stage of an agreement.
Functions§
- contract_
state - Contract lifecycle (precedence order): an unmet condition precedent →
Pending; a condition subsequent that occurred →Discharged; performance →Performed; a passed deadline without performance →Breached; otherwiseActive. - formation_
stage - The raw formation stage from the two acts (capacity aside): an offer needs a stipulation; binding needs assent on top of it.
- incorporates_
by_ reference - Incorporation by reference: the agreement imports the clauses of
instrument(a corpus URI hash). A non-zero instrument means clauses are incorporated. - is_
binding_ contract - A contract is binding iff it was stipulated, assented to, AND both parties had intact
juridical capacity (composes
capacity::stipulation_binding— an agreement assented to under duress or by an incapacitated party does not bind). - liable_
party - Trace liability through a sub-contract
chain:chain[i]is the party at depthi(the prime contractorchain[0]sub-contracts tochain[1], etc.). Liability for a breach atdepthrests onchain[depth], capped at the performing sub-contractor at the chain’s end.Nonefor an empty chain. - performance_
met - Performance is met iff an oracle-trusted measurement shows
deliveredreachingrequired(performance_ratio >= 1.0). An untrusted oracle measurement is not admissible (fail closed). - performance_
ratio - Performance ratio =
delivered / required(clamped ≥ 0);1.0= fully performed. A non-positiverequiredis vacuously satisfied (1.0). - terms_
respect_ limits - A contract term that obligates a FORBIDDEN action (a deontic / human-rights limit — e.g. an
agreement to waive a non-derogable right) is VOID. The terms respect the limits iff none of
obligated_actionsis inforbidden. (Private ordering cannot contract out of the baselines.)