FrankenGraphDB

Ripple: Incremental Everything (Bet B4)

3,327 words6 subsectionsA design document: it describes the 1.0 target, not what runs today.

On this page6
9.1 The unification claim9.2 The circuit engine9.3 Recursion = incremental fixpoint9.4 Materialized graph views9.5 Standing queries & changefeeds9.6 Incremental analytics maintainers

9.1 The unification claim

Four features that vendors often build separately—recursive evaluation, materialized views, subscriptions, and incremental analytics—share computation over Z-sets advanced by a total committed time. The source is not the unresolved intent log. Finalization persists Appendix A's exact sequence-neutral LogicalDeltaTemplate {format,intent_semantics_ref:StrongRef<IntentSemantics>,final_effect_digest,source_intent_root_digest,coordinate_entries[]}. Its canonically sorted entries bind {graph,branch,relation_id,validated_schema_binding,schema_transition,delta_payload_ref:ConditionalCoordinateRef,delta_payload_digest} and are exactly equal to the canonical before/after change. The capsule strongly owns the template and commits its digest. Prepared-root traversal has no committed marker/cut context and therefore follows every conditional payload as strong; after commit, the marker supplies the retention coordinate. This preserves relation and per-coordinate before/after schema identity for atomic multi-graph commits without naming the future marker or defeating per-graph retention cuts.

Apply never constructs an untagged batch. Local transaction apply supplies its committed marker, verifies the template/capsule, derives every resulting coordinate binding, and materializes Appendix A's exact self-contained LogicalDeltaBatch<LocalCommitted>. Shard decision apply analogously materializes LogicalDeltaBatch<ShardFragment> from the certified fragment basis and decision; that internal object is not a public CDC source. W12 Meta waits for the complete post-visibility fragment/ack set and publishes only GlobalLogicalDeltaBatch. Each role-specific batch ID is a deterministic function of the registered canonical fields and directly owned payload identities; retry reproduces identical bytes or fails closed. Template/marker/decision fields are nonretaining provenance, while included payloads are owned directly. A batch is derived, not a second source of truth: it may be rematerialized while its authoritative suffix remains, or retained independently by derived/subscription/replay/backup leases without retaining that suffix. A verified checkpoint cut may reclaim the old capsule/template only after all delta-retention promises either transfer to self-contained batch objects or take their explicit GAP/new-baseline transition. Every circuit integrates all relevant coordinate entries or none and records the role-tagged batch ID/idempotency key. Local apply roots its batch/frontier in the same candidate transition as the commit; shard apply roots its fragment in the same shard transition as the decision; Meta advances the public Global frontier only through GlobalDeltaPublishSpec. No-op intents emit no row delta; schema changes use separate versioned system relations.

9.2 The circuit engine

fgdb-ripple implements exact integer Z-set arithmetic: ZWeight uses checked i128 as a fast representation and promotes before overflow to an in-house canonical signed-limb integer. Limb allocation/spill is resource-accounted; exhaustion aborts or lags the derived computation without publishing partial state. Thus the semantic domain is the integer additive group rather than a bounded partial imitation. The engine provides lift/differentiate/integrate/delay, registered derivatives for GLA operators, factorized delta forms with proved flattening equivalence, and spillable LSM-backed arrangements. Batch and incremental plans share typed algebra but have distinct physical optimization/resource contracts.

Logical change weights always form the integer additive group required for retractions. Optional annotations are separate products: Boolean annotations express existence; provenance-polynomial/DAG annotations express why-provenance; tropical values express costs. Each annotation family registers operator, deletion, differentiation, boundedness, and serialization laws. Replacing Z weights with Boolean or tropical values is forbidden because it would erase the additive inverses needed for general deletion. A Confidence annotation family over the [0,1] semiring is registered by name as a post-1.0 candidate under exactly this discipline: it exists only once its operator, deletion, differentiation, boundedness, and serialization laws are registered — provenance-polynomial growth is precisely why the boundedness law is mandatory — and confidence is an annotation product orthogonal to §8.3's AnswerRequirement/AnswerContract approximation typing: a confidence-annotated result is not thereby approximate, and an approximate result acquires no confidence semantics.

9.3 Recursion = incremental fixpoint

FixpointSpec records recursive SCCs, monotonicity class, finite active-domain bound, duplicate rule, and termination contract; nested time is (commit_seq, iteration). Monotone finite-domain SCCs use differentiated/semi-naïve evaluation. Negation and non-monotone aggregates must be stratified outside a recursive SCC unless a separately proved complete-lattice semantics exists. Every accepted recursion has a finite domain, convergence proof, or explicit visible budget; non-convergence returns a structured error rather than a partial fixpoint unless truncation was requested. Only registered derivatives are incrementally maintained—“for free” is not a substitute for an operator law.

9.4 Materialized graph views

CREATE MATERIALIZED VIEW produces either BindingTable(schema) or an explicitly declared ConstructedGraph(graph_schema); arbitrary scalar/path/aggregate results are never mislabeled as virtual labels or edge types. A view generation is DerivedGeneration { identity: DerivedIdentity, root_oid, global_batch_frontier, answer_contract: AnswerContract } using §12.4's common identity; its coordinate-coverage set, schema roots/epochs, definition, circuit build profile, security/semantic epochs, authorization contract, and exact/approximate semantics therefore cannot drift independently. A definer view pins definer-authority digest plus a separately authorized result-exposure policy; an invoker view is maintained/read in an authority-partitioned domain or recomputed through that invoker's secure view. Branch fork/squash merge, authority change, and schema change have explicit rebuild, tail, or reset rules.

Constructed graphs use a rebuild-pure view-local identity namespace. Canonical ViewElementKey bytes commit definition OID, construction-clause ordinal, output kind, canonical source-binding identity, and deterministic multiplicity/occurrence ordinal. The durable/API identity is ViewElementRef { key_digest:[u8;32], canonical_key_bytes }; the digest is only an accelerator and equality/order always verify the complete bytes, so there is no collision-allocation choice or authoritative map to lose. Base and constructed identities are a tagged ElementIdentity::Base(VId|EId) | Constructed(ViewElementRef). A generation may assign dense local ordinals, but those are discardable projections and never escape it. Full recompute and incremental maintenance therefore derive identical identities from definition and inputs alone. The definition fixes duplicate/parallel-edge keys, endpoint mapping, property-conflict aggregation, provenance, and deletion/multiplicity laws; the derivative-vs-batch oracle compares complete canonical keys and graph contents.

A query supplies target GraphReferenceBinding[] and selects ViewReadPolicy = WaitForSnapshot | TailCompensate | AtWatermark | AllowStale. Each generation carries sorted DerivedSourceCoverage[] inside DerivedIdentity, associating every input role/relation with a base binding and Fixed|Advancing tracking mode. It is direct only when every advancing source base equals its role's target coordinate, every fixed source still names its exact retained historical binding, and the global frontier agrees. Forward tailing is legal only when branch-lineage proofs show every advancing base is the exact ancestor of its target and contiguous crash-atomic batches cover every required source and the shared global frontier; fixed inputs never move. Roles may be coalesced only by a registered circuit equivalence law. A fork requires its registered fork overlay/base rule, while a squash merge appears as an ordinary target-branch delta. For a generation newer than any historical target, the reader uses a retained compatible generation, a proved exact inverse path with full support/history, or recomputes/fails; it never reads future state, and waiting cannot fix a historical query. AtWatermark/AllowStale return effective bindings/frontier. Every view declares deletion/multiplicity/inversion semantics, retained support, memory/spill bounds, and fallback.

Staleness envelopes may be computed from a max-plus maintenance model under named arrival/service assumptions and used as a configuration gate. CREATE rejects an SLO that the current model predicts cannot be met, but the returned artifact is a model-qualified estimate. Runtime monitors expose actual watermark lag and assumption violations; correctness relies on the explicit read policy, not the prediction.

9.5 Standing queries & changefeeds

Subscription creation first materializes a canonical DeliveredBaselinePayload for one internal DerivedIdentity, its sorted source coverage, one posture-tagged internal batch frontier w, and the PublicLogicalPositionProjection authorized as this cursor's START_AFTER position. The payload carries two deliberately different commitments. InternalBaselineDigest covers the complete derived identity, source coverage, raw frontier, public contract, and exact bytes and is retained only in server-side state. PublicBaselineDigest = BLAKE3("fgdb:public-baseline:v1" || canonical(format,baseline_id,public_cursor_position,output_schema,result_answer_contract,canonical_encoding_version,canonical_payload_len,exact_concatenated_canonical_result_bytes)); it excludes DerivedIdentity, raw coverage/frontier, storage refs, and itself. baseline_id is a pre-minted opaque public nonce, not the keyed ObjectId of the payload.

CreateSubscriptionCursorSpec<Role> is the sole initial semantic transition. It installs SubscriptionCursorSemanticRecord<Role> {cursor_creation_request_digest,resume_cursor_id,internal_derived_identity_ref:StrongRef<DerivedIdentity>,baseline_payload_ref:StrongRef<DeliveredBaselinePayload>,internal_baseline_digest,public_baseline_digest,public_cursor_position,delivery_policy_ref:StrongRef<SubscriptionDeliveryPolicy<Role>>,semantic_resource_transition_ref:StrongRef<ResourceLedgerTransition>,audit_gate_commitment,detachment_commitment} and, in the same RootManifest publication, transfers the charge into SubscriptionResourceEscrow<Role> and creates exactly one Protocol owner. A same-apply-visible NotRequired candidate with a valid inline recipe may create BaselineDeliverable; a visible candidate without fresh time evidence creates ReleasedInitialAwaitingActivation; every Required candidate and every candidate behind an earlier pipeline gap creates PendingInitialVisibility. Pending/released states strongly own the baseline/policy/escrow but contain no not_before, expires_at, delivery lease, capability bytes, capability nonce, or sender authority and cannot emit SUBSCRIBE_READY or baseline bytes. Audit visibility maintenance only moves PendingInitialVisibility to ReleasedInitialAwaitingActivation; the independent activation maintenance supplies a fresh SubscriptionDeliveryLeaseTimeBasis<Role>, time evidence, and prebuilt generation-zero Resume capability and selects BaselineDeliverable. Therefore neither audit delay nor a time-authority outage consumes a client-visible subscription window or blocks semantic visibility.

The transport stream_id is session-bound, but durable resumption uses Appendix D's generated ResumeCapabilityBody::SubscriptionCursor{resume_cursor_id,cursor_state_version,capability_generation,lineage,public_derived_identity_commitment,baseline_id,public_state_commitment} and is intentionally not bound to one connection. PublicCursorStateCommitment is the domain-separated digest of the cursor version, public state tag, baseline ID and PublicBaselineDigest, PublicLogicalPositionProjection, and, when outstanding, the opaque delivery ID and PublicDeliveryDigest; it never includes a raw Local/Global frontier, batch/source identity, internal DeliveryDigest, lease ObjectId, DerivedIdentity/digest, or derived-state provenance. The server cursor record, not token contents, is authoritative and byte-matches the commitment against its public projection. A capability may be replayed only through the exact current-or-immediate-predecessor rule below, is never widened by AUTH_REFRESH, and becomes unusable after expiry, revocation/reset, incarnation or service-visibility change, successor consumption beyond that replay window, or baseline retirement. The capability itself is lookup authority, not a GC root; its replay object is retained by the active Protocol owner.

Every emitted standing-query delta owns the delivered output, not merely its base-graph input batch. DeliveredDeltaPayload {format,output_schema,result_answer_contract,canonical_encoding_version,canonical_zset_segment_refs:StrongRef[],canonical_payload_len,output_payload_digest} contains the exact authorized query-result Z-set stream. output_payload_digest = BLAKE3("fgdb:delivered-zset:v1" || canonical(format,output_schema,result_answer_contract,canonical_encoding_version,canonical_payload_len,exact logical Z-set bytes)); segment references are storage ownership only, and the public digest is recomputed from reassembled canonical bytes. CommittedDeltaSourceRef = Local{batch_ref:StrongRef<LogicalDeltaBatch>,commit_seq}|Global{batch_ref:StrongRef<GlobalLogicalDeltaBatch>,global_commit_seq} is posture-tagged; W12 delivery/CDC is Meta-owned and accepts only a completely published Global batch, never a shard fragment. Preactivation leases retain their Local variant after activation.

A durable internal DeltaDeliveryEnvelope<Role:AuthorityOwningRole> {authority_bound_header:AuthorityBoundHeader<Role>,format,derived_identity_digest,baseline_id,start_frontier,resulting_frontier,delivery_id:OpaquePublicNonce,delivery_sequence,authorized_cursor_position,output_payload_ref:StrongRef<DeliveredDeltaPayload>,output_payload_digest,provenance,internal_delivery_digest} separates output from provenance. provenance = Atomic{source:CommittedDeltaSourceRef,source_batch_digest}|Coalesced{source_role:Local|Global,first_batch_id,last_batch_id,ordered_source_commitment,source_count}; frontiers and IDs are role-tagged, and the coalesced commitment includes every same-role source ID/digest, including zero-net intermediates. Cross-role ranges are invalid and require a baseline boundary. The full header must byte-match the cursor, derived identity, payload result contract, policy, and release decision; a tenant/principal/authority digest is insufficient. InternalDeliveryDigest = BLAKE3("fgdb:internal-delivery:v1" || canonical(envelope excluding internal_delivery_digest)) commits the full source range and is server-side/audit-authorized only. The separately derived AuthorizedDeltaPublicProvenance is Appendix D's closed Opaque|Declassified union. PublicDeliveryDigest = BLAKE3("fgdb:public-delivery:v1" || canonical(delivery_id,delivery_sequence,authorized_cursor_position,format,output_schema,result_answer_contract,canonical_encoding_version,canonical_payload_len,output_payload_digest,authorized_public_provenance)); the Opaque arm contains no source/frontier/cadence fact, while the Declassified arm includes only its explicitly authorized and audit-released projection. DeliveryId is a pre-minted opaque public nonce stored in the envelope, not the envelope ObjectId. Clients validate only output_payload_digest, PublicDeliveryDigest, authorized public provenance, and exact bytes; internal provenance and InternalDeliveryDigest never cross the default wire boundary.

SubscriptionCursorDeliveryIndex<Role:AuthorityOwningRole> is the Protocol-plane canonical pair of maps cursors[resume_cursor_id -> StrongRef<SubscriptionCursorDeliveryRecord<Role>>] and active_leases[delivery_lease_id -> StrongRef<SubscriptionDeliveryLeaseRecord<Role>>] plus generation, state counts, terminal-disposition floor, and root digest. The separate bounded PendingCursorOutputIndex<Role> maps a cursor to at most one data-output PendingCursorOutputRecord<Role> (plus, when the reserved freshness policy field is inhabited, at most one standing FreshnessBreach notice record beside it — never in the data-output slot; see below); keeping an applied-hidden delta/reset out of the current cursor value prevents an existing capability from detecting it. SubscriptionCursorActiveCommon<Role> is {role_and_group,authority_bound_header:AuthorityBoundHeader<Role>,cursor_creation_request_digest,resume_cursor_id,cursor_state_version,semantic_detachment_identity,escrow_ref:StrongRef<SubscriptionResourceEscrow<Role>>,internal_baseline_digest,public_baseline_digest,public_derived_identity_commitment,public_state_commitment,nonretaining_predecessor_digest}. SubscriptionCursorTerminalCommon<Role> is {role_and_group,terminal_authority_commitment:TerminalAuthorityCommitment<Role>,cursor_creation_request_digest,resume_cursor_id,terminal_cursor_state_version,semantic_detachment_identity,public_baseline_digest,public_derived_identity_commitment,terminal_public_state_commitment,nonretaining_predecessor_digest} and carries no escrow, lease, payload, capability replay, or live authority edge. SubscriptionCursorDeliveryRecord<Role> is the closed state union:

PendingInitialVisibility{common:SubscriptionCursorActiveCommon<Role>,baseline_payload_ref:StrongRef<DeliveredBaselinePayload>,baseline_policy_ref:StrongRef<SubscriptionDeliveryPolicy<Role>>,public_cursor_position,audit_gate_commitment} | ReleasedInitialAwaitingActivation{common:SubscriptionCursorActiveCommon<Role>,baseline_payload_ref,baseline_policy_ref,public_cursor_position,audit_release_evidence} | BaselineDeliverable{common:SubscriptionCursorActiveCommon<Role>,lease_ref:StrongRef<SubscriptionDeliveryLeaseRecord<Role>>,capability_lineage_ref:StrongRef<ResultCapabilityLineage>,public_cursor_position} | ActiveIdle{common:SubscriptionCursorActiveCommon<Role>,acknowledged_internal_frontier,last_acked_public_delivery_commitment?,current_capability_lineage_ref,public_cursor_position} | ActiveOutstandingDelta{common:SubscriptionCursorActiveCommon<Role>,lease_ref:StrongRef<SubscriptionDeliveryLeaseRecord<Role>>,prior_acknowledged_internal_frontier,resulting_internal_frontier,current_capability_lineage_ref,public_cursor_position} | ResetNoticeDeliverable{common:SubscriptionCursorActiveCommon<Role>,reset_record_ref:StrongRef<CursorResetRecord>,notice_lease_ref:StrongRef<SubscriptionDeliveryLeaseRecord<Role>>,current_capability_lineage_ref,prior_public_cursor_position} | ResetAwaitingBaselineActivation{common:SubscriptionCursorActiveCommon<Role>,reset_record_ref:StrongRef<CursorResetRecord>,reset_ack_ref:StrongRef<AuthenticatedCursorResetAckReceipt<Role>>,successor_baseline_payload_ref:StrongRef<DeliveredBaselinePayload>,successor_policy_ref:StrongRef<SubscriptionDeliveryPolicy<Role>>,successor_public_cursor_position,current_capability_lineage_ref} | ResetBaselineDeliverable{common:SubscriptionCursorActiveCommon<Role>,reset_record_ref:StrongRef<CursorResetRecord>,successor_baseline_lease_ref:StrongRef<SubscriptionDeliveryLeaseRecord<Role>>,successor_capability_lineage_ref,successor_public_cursor_position} | ExplicitlyPaused{common:SubscriptionCursorActiveCommon<Role>,pause_record_ref:StrongRef<CursorDisconnectRecord>,preserved_delivery_state:PausedCursorState,detached_sender_generation,current_capability_lineage_ref} | Closed{common:SubscriptionCursorTerminalCommon<Role>,terminal_digest,close_request_digest,outstanding_disposition_commitment,capability_tombstone_ref,escrow_disposition_commitment} | Expired{common:SubscriptionCursorTerminalCommon<Role>,terminal_digest,expiry_evidence_commitment,capability_tombstone_ref,escrow_disposition_commitment}.

PendingCursorOutputRecord<Role:AuthorityOwningRole> is PendingVisibility{authority_bound_header:AuthorityBoundHeader<Role>,resume_cursor_id,expected_active_idle_state_version,kind:Delta{envelope_ref:StrongRef<DeltaDeliveryEnvelope<Role>>,policy_ref:StrongRef<SubscriptionDeliveryPolicy<Role>>}|Reset{reset_record_ref:StrongRef<CursorResetRecord>,notice_payload_ref:StrongRef<CursorResetNoticePayload>,policy_ref:StrongRef<SubscriptionDeliveryPolicy<Role>>},audit_gate_commitment,resource_reservation_ref}|ReleasedAwaitingActivation{same_owned_output_fields,audit_release_evidence,release_maintenance_ref}. Its header byte-matches the active cursor, envelope/reset policy, and release subject. It never owns a lease/capability or changes the public cursor projection. PausedCursorState is a generated, nonrecursive inline copy of exactly the role-valid BaselineDeliverable|ActiveIdle|ActiveOutstandingDelta|ResetNoticeDeliverable|ResetAwaitingBaselineActivation|ResetBaselineDeliverable fields; it owns every still-outstanding payload/lease and no prior cursor record. SubscriptionDeliveryLeaseRecord<Role:AuthorityOwningRole> is {authority_bound_header:AuthorityBoundHeader<Role>,role_and_group,resume_cursor_id,cursor_state_version,delivery_lease_id,lease_generation,sender_generation,time_basis_ref:StrongRef<SubscriptionDeliveryLeaseTimeBasis<Role>>,not_before,expires_at,delivery:Baseline{payload_ref:StrongRef<DeliveredBaselinePayload>,baseline_id,internal_baseline_digest,public_baseline_digest,internal_frontier,public_cursor_position}|Delta{envelope_ref:StrongRef<DeltaDeliveryEnvelope<Role>>,delivery_id,internal_delivery_digest,public_delivery_digest,resulting_internal_frontier,public_cursor_position}|ResetNotice{payload_ref:StrongRef<CursorResetNoticePayload>,public_reset_commitment,prior_public_cursor_position},body_digest}. Only Deliverable/Paused states root a lease. PendingVisibility, ReleasedAwaitingActivation, and ResetAwaitingBaselineActivation own bytes/policy/escrow but no absolute delivery window. The indexes enforce exactly one current cursor record, at most one outstanding lease, and at most one pending future data output (plus, when the reserved freshness policy field is inhabited, at most one standing FreshnessBreach notice beside it — never in the data-output slot; §9.5 below). Internal fields remain available for recovery, retention, coalescing proof, and authorized audit, but only registered public projections are tokenized or framed.

The initial semantic CreateSubscriptionCursorSpec plus its declared Protocol detachment is followed only by generated maintenance transitions. Audit release changes PendingInitialVisibility to ReleasedInitialAwaitingActivation; ProtectedOutputActivationSpec::SubscriptionInitialBaseline alone builds the fresh lease/capability and selects BaselineDeliverable. AckBaselineComplete requires both an authenticated baseline ACK receipt and CursorOutputEndSendCompletionRecord, joins/fences sender obligations, moves BaselineDeliverable to ActiveIdle, advances the internal acknowledged frontier, retires the lease, and installs the prebuilt successor replay record atomically. PublishDeltaPending leaves the cursor byte-identically ActiveIdle and inserts one pending output; audit release changes only that pending leaf to ReleasedAwaitingActivation. SubscriptionDelta activation consumes it and atomically selects ActiveOutstandingDelta with a fresh lease/successor capability. AckDeltaComplete likewise requires the exact durable END-send completion and authenticated ACK, then advances to ActiveIdle and consumes the lease. RotateCapability preserves state while replacing the exact replay lineage. Per-cursor activation and ACK/release/expiry bookkeeping rides §12.8's batched Protocol-maintenance rows — ProtectedOutputActivationBatchSpec<Role>/ProtectedOutputDispositionBatchSpec<Role>, in which each activation and ACK/rotation transition above is one per-subject sub-record of a canonically one-or-more-entry batch (PublishDeltaPending batches across the cursors of one Ripple flush tick, and audit release stays inside AuditVisibilityAdvanceSpec's sorted release recipes) — while baseline/reset creation semantics are unchanged.

PublishResetPending constructs the complete CursorResetRecord, reset-notice payload, successor baseline payload/policy, and audit candidate but not a lease/capability and leaves the current public cursor projection unchanged. Audit release changes only that pending leaf to ReleasedAwaitingActivation; SubscriptionResetNotice activation builds a fresh notice lease, consumes the pending leaf, and selects ResetNoticeDeliverable. AcknowledgeReset requires CursorOutputEndSendCompletionRecord plus AuthenticatedCursorResetAckReceipt<Role>, retires the notice lease, and selects ResetAwaitingBaselineActivation—still with no successor-baseline lease. Only the later SubscriptionResetBaseline activation uses fresh time evidence to build that baseline lease/capability and selects ResetBaselineDeliverable. Its ordinary baseline ACK returns ActiveIdle. A terminal reset — branch retirement (§5.6) or another declared no-successor cause — carries a CursorResetRecord with no successor baseline: the acknowledged GAP notice completes the cursor into Closed (framed as SUBSCRIPTION_ENDED) instead of ResetAwaitingBaselineActivation, with the ordinary close dispositions. Thus neither audit delay nor time waiting for the client to acknowledge a reset consumes the successor delivery window. BUFFER overflow drives PublishResetPending{Gap}; COALESCE keeps hidden source commitment internal unless declassified.

Ordinary socket loss is runtime sender detachment and requires no durable state mutation. Explicit PauseForDisconnect fences and joins the current sender, preserves the exact active state/outstanding lease in PausedCursorState, installs CursorDisconnectRecord, rotates the capability, and advances no frontier. ResumeAfterDisconnect is the sole explicit-paused reattachment transition: under a fresh Ready/current-authority binding it either reuses a still-usable exact lease or atomically replaces it with a freshly validated lease for identical bytes, increments sender generation, rotates capability, and restores the preserved active tag. Runtime-detached owners may attach a new sender through the same validation/fencing path without first fabricating ExplicitlyPaused. Neither path is ACK, release, gap, or reset.

CursorOutputEndSendCompletionRecord binds the surface (NativeFgp|Http2|Grpc|WebSocket), authority public commitment, role/domain/service/session/process/cursor/output kind and ID/state/sender generation, exact surface END and canonical FGP END transcript, payload/public digest, flow reservation/cost, write-start frame-time requirement-set commitment, and the matching TransportSendObligation::Sent; it is the channel-transport bridge into a baseline/delta/reset ACK. EmbeddedCursorOutputFullyConsumedRecord<Role:AuthorityOwningRole> is the distinct embedded-only {session_authorization_ref:StrongRef<SessionAuthorizationRecord<Role>>,host_session_generation,cursor_identity,cursor_state_version,output_kind_and_id,lease_identity,stream_owner_token_commitment,public_digest,completion_source:ExplicitFinish|IteratorExhaustion,canonical_finish_call_digest,server_process_incarnation,signing_key_epoch,signature} and is constructible only after complete consumption plus joined borrows/tasks. SubscriptionDispositionAuthority<Role> is ReadyChannelResumeCapability{validation_ref:StrongRef<DurableCapabilityValidationEvidence>,presented_resume_capability_commitment}|EmbeddedCursorOwner{stream_owner_token_commitment,host_session_generation}; SubscriptionDispositionCompletion<Role> is ChannelSent{record_ref:StrongRef<CursorOutputEndSendCompletionRecord>}|EmbeddedFullyConsumed{record_ref:StrongRef<EmbeddedCursorOutputFullyConsumedRecord<Role>>}|NotApplicable. AuthenticatedClientSubscriptionDispositionReceipt<Role:AuthorityOwningRole> is {authority_bound_header:AuthorityBoundHeader<Role>,session_authorization_ref:StrongRef<SessionAuthorizationRecord<Role>>,disposition_authority:SubscriptionDispositionAuthority<Role>,completion:SubscriptionDispositionCompletion<Role>,auth_context_generation,session_binding,public_authority_commitment,cursor_identity,cursor_state_version,lease_identity?,public_digest,request_nonce,action:AckBaseline|AckDelta|AckReset|ReleaseOutstanding|CloseWithoutOutstanding,canonical_request_digest,server_process_incarnation,signing_key_epoch,signature}. Only the ReadyChannel arm selects a ResumeSubscriptionCursor validation row; it byte-matches the exact request, capability commitment, session, current cursor lineage, authority header, and action. ACK actions require the matching ChannelSent or EmbeddedFullyConsumed completion selected by their authority source; ReleaseOutstanding and CloseWithoutOutstanding require NotApplicable. The Embedded authority is a non-capability cursor-owner proof and cannot carry a validation ref. Receipt/action bijection is exact: AckBaseline -> SubscriptionAckBaseline, AckDelta -> SubscriptionAckDelta, AckReset -> SubscriptionAckResetOrGap, and ReleaseOutstanding or CloseWithoutOutstanding -> SubscriptionClose. Its full header/session binding must equal or be proved narrower than the active cursor/lease binding; public commitments are integrity projections only. CloseCursor requires outstanding_disposition=None{receipt:CloseWithoutOutstanding}|Acknowledged{receipt:AckBaseline|AckDelta|AckReset,completion}|Released{receipt:ReleaseOutstanding,sender_fence_and_join_proof}|ResetSuperseded{typed_gap_supersession_evidence} and also proves the pending-output index empty or terminally disposes each remaining leaf (the one pending data output plus, when present, the standing FreshnessBreach notice). It atomically creates Closed, derives the terminal authority commitment from the last active header, disposes escrow, and tombstones capability lineage; a generic CLOSE frame, socket loss, drain, or Rust Drop cannot construct that evidence. ExpireCursor requires profiled expiry evidence for the exact current lease/capability/action, sender fence/join, pending-output disposition, and escrow disposition. PostActivationCursorTransition is the certified Local-to-Sharded transition and is legal only with no outstanding or pending Local output; it creates a new Sharded PendingInitialVisibility baseline, never a cross-role delta. No catch-all ResetOrExpire exists. Current/immediate-predecessor replay makes lost READY/SNAPSHOT_ACKED/ACKED/RESUMED/RESET/DISCONNECT/CLOSE replies byte-identical; anything older fails. Checkpoints, protocol snapshots, backup/configuration floors, restore, and GC preserve all cursor/pending-output/lease/replay records. Disconnect never releases.

Authorization evolution has explicit relation semantics. STICKY_AUTHORITY fixes a non-widenable creation authority and terminates on revocation/expiry. LIVE_AUTHORITY ends the old segment at a policy boundary with AUTHORITY_RESET { old_digest, new_digest, effective_seq }, then emits a newly authorized snapshot plus START_AFTER; an optional retraction/insertion diff is used only when its disclosure is policy-approved. Ordinary data deltas never silently mix authority domains, and a cursor cannot resume across a reset without acknowledging the new baseline. Schema or branch changes likewise use a declared migration/reset contract.

SUBSCRIBE … WITH FRESHNESS <bound> reserves an optional freshness field on SubscriptionDeliveryPolicy<Role>: a delivery-lag target expressed in watermark/commit-sequence units — never wall clock, which would drag per-delivery time-authority observations onto the fan-out path — bounding how far the cursor's acknowledged frontier may lag the published source batch frontier. The bound is claim-typed slo under §1.11 and lives in slo.toml-class rows, never invariants.toml: delivery latency is hostage to the audit-visibility pipeline, external resolution RTT, and time-evidence activation, none of which the delivery plane may bypass, so no delivery-freshness statement is ever an invariant. CREATE-time admission reuses §9.4's mechanism verbatim — a bound the current maintenance/delivery model predicts cannot be met is rejected at cursor creation, and the returned artifact remains a model-qualified estimate. A runtime breach is observed, never enforced: the cursor emits a typed FreshnessBreach notice registered as a pending-output notice kind beside Delta|Reset — a registration that, in the same G0-frozen batch that inhabits the reserved policy field, adds matching FreshnessBreach arms to PendingCursorOutputRecord.kind, the deliverable cursor states, SubscriptionDeliveryLeaseRecord.delivery, the disposition-receipt action set, AuditVisibilityProtectedOutputReleaseRecipe, ProtectedOutputActivationSpec, and the matching Appendix D wire arms (ProtectedOutputManagementStatus.output_kind and the notice frame projection) — following the same publish → audit-release → activation → ACK discipline as a reset notice while changing no public cursor position, retiring no baseline, and consuming no successor delivery window; the notice never occupies the Delta|Reset pending-output slot (the one-pending-future-output law is per data output, with at most one standing notice beside it, consumed or superseded by the next publish), and a persistent breach coalesces into one standing notice under the policy's declared cadence rather than a per-delta storm. A breach never blocks the delivery pipeline, never silently drops or coalesces deltas beyond the policy's declared coalescing rules, and never causes the server to advertise a bound it did not meet; realized lag is derivable from the envelope's start_frontier/resulting_frontier against the published source frontier and crosses the wire only through the registered public projections when disclosure is policy-approved.

MMR proofs authenticate commit membership and raw-log continuity as scoped in §5.8; they do not prove arbitrary MATCH-circuit completeness. Post-commit triggers provide exactly-once durable scheduling records. External effects are exactly once only with a transactional sink; otherwise the invocation carries a stable idempotency key and is at-least-once. The plan never derives external exactly-once effects from an internal obligation alone.

9.6 Incremental analytics maintainers

For algorithm families with known delta algorithms, Ripple hosts maintainers that keep results warm under updates: delta-PageRank (residual propagation), incremental connected components (union-find + bounded rebuild on deletes), incremental triangle/k-core counts, degree/label statistics (this is how §8.5's StatsSegments stay fresh). Each maintainer declares a staleness contract (exact | bounded-error(ε) | eventually-refreshed) surfaced in query certificates; recompute via Prism is the universal fallback. This directly answers the market's "derived state goes stale" complaint — including for the vector/FTS indexes, whose ingestion pipelines (§10) are Ripple consumers too.

For bounded-error(ε) maintainers, a conformal/risk controller may advise recompute under its named calibration population and exchangeability/nonexchangeability assumptions. The semantic contract is enforced by deterministic error bounds or exact validation where available; otherwise the result is explicitly approximate and carries the model-qualified error evidence. Assumption alarms trigger deterministic recompute/fallback but do not retroactively guarantee prior estimates.