Operation Cost Registry (normative contract)
1,790 words1 tableA design document: it describes the 1.0 target, not what runs today.
This appendix is the constitutional instrument required by §1's constraint 12: §1.11 gave correctness claims a registry; this registry does the same for cost, so that no mechanism can accrete protocol weight without a priced row. Two machine-checkable artifacts constitute it. latency_anatomy.toml carries one row per operation class stating five structural quantities: sequenced semantic commands; total Raft log entries including order-attempt and certificate maintenance; the ordered durability-barrier chain (per barrier: the plane from DurableStateSlotRef — SemanticPayload|Protocol|PreparedOwnership|Consensus|Bootstrap — what syncs, the amortization law per-txn|per-group|per-batch|deferrable, and the fusion-legality column settled below); external-authority interactions classified synchronous|episodic; and durable objects minted. stream_capacity.toml carries the maintenance-stream capacity model. Both are generated where possible from command_contracts.toml: a class's command count derives from its registered command arms, and its barrier chain from their publication_mode and consumed/written state slots; hand-declared rows exist only where structure is not yet expressible there (external RTT class, group-commit amortization) and each names the contract rows it summarizes. Per §5.1's registry discipline, the tables in this appendix are checked readability projections — CI regenerates and byte-compares them — never a second source of truth. Claim types are fixed: registry rows are exact structural counts, or exact bounds in declared configuration parameters where a column is configuration-dependent (the tilde-ranged columns), enforced by the same generation bijection that governs command contracts; every µs or throughput budget is an slo.toml row keyed {operation_class,posture,audit_class}; and the capacity model is a configuration-model claim (FG-CFG-04, registered beside FG-CFG-03 in Appendix F), never an invariant.
Counts below are stated for the single-node quorum-one posture at concurrency 1; group commit amortizes every barrier marked per-group or per-batch, and the replicated posture changes barrier behavior (follower append/reply), never command counts. SnapshotQuery and the fused autocommit-write arm are the registered fast classes referenced by §17; their rows bind those class definitions to this registry, and every other §17 gate names one of this registry's rows as its operation class.
| Operation class | Sequenced semantic commands | Total Raft entries (incl. order-attempt/certificate maintenance) | Ordered barrier chain (plane · what syncs · amortization) | External-authority interactions | Durable objects minted |
|---|---|---|---|---|---|
SnapshotQuery point read |
0 | 0 | none — executes against the pipeline's visible endpoint under an existing admission/lease; no order, no barrier | none | 0 (sampled Sextant decision cards are telemetry, not durable protocol objects) |
| Durable autocommit read | 3 — LocalAttemptRegistrationSpec::Autocommit, LocalReadCloseSpec, LocalTerminalCompletionSpec |
~6–10: each command carries its own non-shareable LocalOrderAttemptInput plus availability-certificate plan/lock/share/publication maintenance positions |
per command: D1 supplement/certificate publication (SemanticPayload/PreparedOwnership · staged closure + RootSlot · per-txn), Raft hard-state append (Consensus · log + hard state · per-batch), D2 apply publication (Protocol · maintenance entry + protocol-root slot · per-batch; quorum-one fusion law below) |
none NotRequired; synchronous ticket-issuance CAS plus admission visibility under a Required-read profile | ~6–10: registration/outcome records, order-attempt inputs, certificates, result-retention record, pipeline entries |
| Autocommit write, fused arm | 2 NotRequired — fused Register+PrepareAdmit+Reserve+Commit, then LocalTerminalCompletionSpec; 3 Required (ordered ticket admission precedes protected processing) |
~4–8 | D1 payload barrier (SemanticPayload/PreparedOwnership · capsule + mandatory strong closure + PreparedCommitRecord + RootSlot · per-txn, group-fusable), append-reply hard-state publication (Consensus · per-batch), D2 apply publication (Protocol · entry + slot · per-batch; MAY fuse with append-reply in quorum-one), completion publication (per-batch) |
none NotRequired; synchronous ticket CAS Required | ~15–20: capsule, effect set, delta template, delta batch, authorization decision, resource transitions, outcome preparation, prepared record + successor, two availability certificates, order-attempt input, HLC evidence, command, marker, command record, state root, pipeline entry, manifest generation |
| Explicit multi-statement write commit (N statements) | 5+N — LocalBeginReservationSpec, registration, N statement publications, LocalPrepareAdmissionSpec, CommitCommand, LocalTerminalCompletionSpec |
~2–3 × (5+N) | statement publications amortize per-group; the commit itself pays the fused-arm chain (D1 closure, append, D2, completion) | as the fused arm | fused-arm census + N statement/workspace-generation records |
| Audit-Required write (commit→TerminalReady) | fused/explicit commands plus the ordered AuditTicketAdmissionSpec |
commit entries plus admission, resolution-batch import, visibility-advance, and activation maintenance | 7–10 ordered sync points: external ticket-issuance CAS (strictly serial per AuditDomainId) → ordered admission + admission audit visibility → event/resolution signing under CertificateAttemptPlan quorum-rooting + per-signer CertificateSignerLock installs for both payload and order-attempt certificates → D1 prepared-root publication → Raft closure sync → D2 apply publication (quorum-durable maintenance entry + protocol-root slot update: two ordered publications) → external resolution-batch CAS (per-batch) → AuditVisibilityAdvanceSpec + visible-endpoint publication (again entry + slot) → ProtectedOutputActivationSpec (per output; fresh time evidence) → terminal completion |
≥ 2 external RTTs: ticket issuance synchronous per operation; resolution batch amortized per contiguous batch; time authority per activation | fused-arm census + ticket, admission spec, audit event, resolution, gate, batch, CAS receipts, outcome records |
| Subscription delta delivery | 0 — delivery is Protocol-plane maintenance | ~3 per-subject protocol transitions per Required delivery (pending-output publish, activation, ACK; ~2 NotRequired), amortized into batched maintenance entries per flush/activation tick under §12.8's batch specs; audit release amortized across a pipeline range inside one AuditVisibilityAdvanceSpec via sorted_protected_output_release_recipes[] |
per maintenance entry: quorum-durable append + protocol-root slot update (Protocol · per-batch) | one challenge-nonce-fresh threshold-signed PortableTimeAuthorityObservation per activation subject; amortized to one per activation tick under the registered TimeBoundSubject::ActivationBatch arm |
~4–6: DeltaDeliveryEnvelope, DeliveredDeltaPayload, lease time basis, resume replay record |
| Branch create | 2 — ordered BranchEpochBoundaryReservation, then BranchForkSpec installing the pre-built BranchForkBundle |
~4–6 | bundle D1 (availability certificate over the closed inventory · per-op) + append (per-batch) + D2 root publication (per-batch) | none synchronous; identity-continuity authority episodic per allocation-epoch advance | descriptors, closed/successor key epochs, grants, manifests — proportional to bounded envelope-root fanout, O(1) data copy |
| Branch merge (squash) | 3 — MergePrepareSpec, target-branch CommitCommand, LocalTerminalCompletionSpec (MergeRejectSpec on the pre-effect reject path) |
explicit-commit entries plus prepare | explicit-commit chain, plus the capability-acknowledgement round trip before evaluation may begin | none synchronous | explicit-commit census + MergeRecord, MergeOutcomeCapabilityReplayRecord, ledger and imported-coverage successors |
| Restore open (same-identity) | 4–6 restore controls — guarded restore publication through Reconciling -> VisibilityCommitted -> ServicePreparedHidden -> Operational, then independent reopen confirmation |
~2–3 per control | one full D1/append/D2 chain per control; every control passes the audit-visibility pipeline | continuity-head and catalog CAS, episodic (ExternalCas posture; DirectoryBound uses its local continuity arm and forbids same-identity restore) |
restore state records, phase certificates, promotion receipt, terminal pins |
Barrier fusion is legal only where this registry says so, per barrier pair and per posture — it is a normative column, not an implementation option discovered under load. In a one-member (quorum-one) configuration, the append-reply hard-state publication and the post-apply D2 protocol publication MAY fuse into one ordered slot update: no follower exists to observe the intermediate, recovery cannot observe it (both sides of the fusion land in the same RootManifest/RootSlot closure), and the receipted-but-unordered crash window fusion touches is exactly the window governed by §5.2's two abandonment arms: an unreceipted, provably unordered attempt may be abandoned under a current fence, and a receipted attempt only after consensus proves it cannot be ordered and every certificate/configuration retention floor has expired — and fusion changes nothing in that law. In any multi-member configuration the two publications MUST NOT fuse: followers reply to append before commit, so the hard-state publication is an independently observable protocol obligation with its own durability meaning. A build that fuses against a MUST NOT row fails closed at the G0 conformance gates, and a legal fusion still counts as one ordered sync operation, never zero, in §17's ordered-sync-count gate.
stream_capacity.toml is the maintenance-stream capacity model (FG-CFG-04): total same-group ordered-log entries/s expressed as registered functions of the declared scale parameters — live cursors N, per-cursor coalesced delivery cadence M, durable result rate R, live branch count B, audit batch size k, and activation tick τ. Its governing law is fan-out amplification: a commit matching C cursors mints ~3·C per-subject protocol transitions in Required postures (~2·C NotRequired) — publish, activation, ACK — because the Coalesced provenance arm (§9.5) reduces commits per delivery, never transitions per delivery; ordered-log entries amortize below transitions under §12.8's batch rows — PublishDeltaPending across one Ripple flush tick, ProtectedOutputActivationBatchSpec/ProtectedOutputDispositionBatchSpec per activation tick, audit release across a pipeline range inside one AuditVisibilityAdvanceSpec — so entries/s scale with tick rates while per-subject transitions scale with N×M. The model publishes the implied external time-observation rate — N×M challenge-nonce-fresh threshold-signed observations/s under per-lease subjects, amortized to one observation per activation tick under the registered TimeBoundSubject::ActivationBatch arm — and derives head-of-line cost for user commits: semantic commands and maintenance entries share one role/group ordered log, so user-commit p99 degradation is a stated function of (N,M,R,k,τ), and that derived figure is what §17's sequencer/maintenance-stream row gates. The model is a configuration-model claim in the FG-CFG class: it gates configuration acceptance and CI fixture design, never correctness; §12.8's deterministic backpressure remains the honest overload behavior when its assumptions fail.
Three CI laws bind the registry. Derivability: every §17 gate names its operation class and counting unit (client-visible requests versus internal probes) and must be arithmetically consistent with its row — a latency gate ≥ the class's ordered-barrier count × the benchmark manifest's pinned measured fsync p50, a throughput gate ≤ the apply ceiling implied by its sequenced-command count and the measured serial apply cost; a gate that fails the check is a registry error and fails the build, not the benchmark. Coverage: every stated scale objective in this plan must be covered by a registered stream_capacity.toml scenario — the §5.6 10k-branch objective, §17's cursor-scale gate, the governance-profile gates, and any future objective that names a scale parameter; an objective without a covering scenario is a G0 failure. Same-change update: any change that adds sequenced semantic commands, ordered durability barriers, external-authority interactions, or per-object identity structure updates latency_anatomy.toml/stream_capacity.toml in the same change; CI regenerates the derivable portions from command_contracts.toml, diffs them against the registered rows and this appendix's projections, and rejects a divergence.
The counts above are protocol counts, not aspirations, and their honesty is load-bearing. The durable autocommit read is three commands because read-close semantic success waits for LocalTerminalCompletionSpec (Appendix A) and no terminal result returns before TerminalReady (§5.2). The fused write floor is two because TerminalCompletion consumes durability/visibility evidence of the commit's own publication and FG-INV-07 forbids any pre-order input naming its future applied record — no single-command arm can exist. The audited chain counts both ordered publications of every two-plane advance because §12.8 makes each advance a quorum-durable maintenance entry followed by a protocol-root slot update. Any operation class that wants a smaller row must change the protocol first, and this registry in the same change; that is the entire point.
Fin. The graph database the 2030s deserve, built from parts the 2020s already proved — ours.