Skip to main content

Distributed Transaction Ontology

Distributed Computing Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
DISTRIBUTED TRANSACTION ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Distributed Computing Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/distributed-computing-entities/distributed-transaction-ontology.html
Prepared: 11 November 2026
Status: Constructed subject-specific Flow Algebra mapping; not a verified transcription of the source page.

1. PURPOSE
Model a distributed transaction as a coordinated set of operations across multiple independently failing participants. Express validation, execution, agreement, commitment, rollback and recovery as bounded, auditable state transitions. Distinguish atomic commit protocols from sagas and eventual consistency.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current transaction observations: identifier, participants, read/write sets, votes, deadlines, log positions and outcomes.
R_t = relations between coordinator, participants, operations, resources, messages and durable records.
B_t = boundaries: authorisation, isolation policy, timeouts, protocol, quorum/commit requirements, resource constraints.
K_t = knowledge: observed states, protocol rules, failure history and recovery evidence.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
The argmax is a conceptual selection operator, not a claim of measured probabilities.

3. ENTITY MODEL
DistributedTransaction: id, protocol, coordinator, participant_set, state, deadline, isolation_level, result.
Participant: id, service_or_store, availability, local_transaction_id, vote, durable_decision.
Operation: id, participant, kind, input, preconditions, idempotency_key, outcome.
Coordinator: transaction_id, membership_snapshot, decision_log, recovery_policy.
PrepareVote: participant, YES|NO, term_or_epoch, timestamp, evidence.
CommitDecision: COMMIT|ABORT, decision_id, durable_log_reference.
TransactionLog: append-only records, durability guarantees and replay cursor.
Compensation: saga_step, reverse_business_action, retry_policy, compensation_status.
FailureEvent: type, affected_node, detection_time, evidence, retryability.

4. RELATIONSHIP GRAPH
Transaction --hasParticipant--> Participant
Transaction --contains--> Operation
Operation --targets--> Resource
Coordinator --requestsPrepareFrom--> Participant
Participant --records--> PrepareVote
Coordinator --records--> CommitDecision
Participant --applies--> CommitDecision
Transaction --generates--> TransactionLog
SagaStep --hasCompensation--> Compensation
FailureEvent --affects--> Participant|Coordinator|Network

5. CORE FLOW ALGEBRA
F1 ADMISSION: request -> identity/authorisation check -> transaction ID -> participant scope -> accepted|rejected.
F2 PREPARATION (2PC): active -> prepare requests -> participant validation and durable prepare -> YES/NO votes.
F3 DECISION (2PC): all required YES votes -> durably log COMMIT; otherwise durably log ABORT, subject to protocol-specific failure rules.
F4 FINALISATION: distribute recorded decision -> participant commit/rollback -> acknowledgement -> terminal state when evidence is sufficient.
F5 RECOVERY: restart -> inspect durable logs -> resolve known decision -> replay idempotently -> reconcile participants.
F6 SAGA: ordered local transactions -> publish outcomes -> on failure invoke compensations in reverse dependency order where feasible.
F7 OBSERVABILITY: collect trace IDs, participant outcomes, durations and reconciliation alerts without exposing secrets.

6. INFERENCE RULES
R1: Missing authorisation or invalid participant scope => reject admission.
R2: Any explicit NO vote in standard 2PC => ABORT decision.
R3: All required YES votes plus durable coordinator decision => COMMIT decision may be distributed.
R4: A prepared participant without a known decision must not independently guess COMMIT; standard 2PC can block.
R5: A repeated message with the same transaction and decision identifiers => idempotent handling where supported.
R6: Timeout or network partition => UNKNOWN/IN_DOUBT until protocol evidence resolves it; timeout alone is not proof of rollback.
R7: Saga compensation failure => record unresolved business state and retry or escalate; compensation is not necessarily a perfect inverse.
R8: Conflicting durable decisions => integrity incident requiring investigation, not automatic silent reconciliation.

7. BOUNDED RECURSION ENGINE
function resolve(tx, max_steps):
    seen = set()
    for step in range(max_steps):
        state = observe(tx)
        fingerprint = (state.phase, state.log_offset, state.decision_id)
        if state.terminal_and_reconciled: return VERIFIED_TERMINAL
        if fingerprint in seen and not state.new_evidence: return IN_DOUBT
        seen.add(fingerprint)
        candidates = expand(state, relationships)
        valid = filter_by_protocol_and_boundaries(candidates)
        if not valid: return ESCALATE
        action = select_with_evidence(valid)
        execute_idempotently(action)
    return BOUNDED_UNRESOLVED

8. LIFECYCLE AND INVARIANTS
Example 2PC phases: NEW -> ACTIVE -> PREPARING -> PREPARED/ABORTING -> COMMITTING/ABORTED -> COMMITTED/ABORTED.
Invariant A: A participant must not apply mutually contradictory terminal decisions for the same transaction epoch.
Invariant B: A COMMIT decision is durable before notification in the assumed coordinator protocol.
Invariant C: Participant membership and vote requirements are fixed for a decision epoch.
Invariant D: Retries must not duplicate non-idempotent side effects.
Invariant E: Recovery preserves uncertainty explicitly when decisive evidence is unavailable.

9. SEMANTIC EQUIVALENCE AND DIFFERENCES
Distributed transaction != single-node database transaction.
Atomic commitment != serialisable isolation; isolation requires separate concurrency-control guarantees.
2PC != consensus: 2PC alone does not solve coordinator failure availability or Byzantine faults.
Saga != atomic rollback: compensations are application-level actions with possible residual effects.
Exactly-once effect requires appropriate deduplication/transactional mechanisms; message delivery alone rarely guarantees it.

10. EXAMPLE EXECUTION TRACE
T42 coordinates inventory and billing participants.
Step 1: Validate request, authorisation and participant scope.
Step 2: Inventory prepares and durably votes YES.
Step 3: Billing prepares and durably votes YES.
Step 4: Coordinator durably records COMMIT.
Step 5: Coordinator sends COMMIT to both; inventory acknowledges.
Step 6: Billing acknowledgement is lost; coordinator retries using transaction ID.
Step 7: Billing reports previously committed state; reconciliation closes T42.
Alternative: If billing votes NO before a commit decision, coordinator records ABORT and participants roll back prepared work.

11. OPERATIONAL BOUNDARIES
Guarantees are conditional on crash/recovery model, stable storage, protocol implementation, membership consistency, isolation level and trust assumptions. Network partitions can prevent progress. Byzantine participants, split-brain coordinators, and data loss require additional mechanisms. Do not equate a successful HTTP response with global transaction finality. Set finite retries and explicit escalation for unresolved transactions.

12. PROVENANCE AND CITATION
Title: Distributed Transaction Ontology — Flow Algebra v1.0
Authors: Mark Anthony Higgins — Sky Recursive AI
Reference topic: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/distributed-computing-entities/distributed-transaction-ontology.html
This document is a constructed semantic mapping and should not be represented as a quotation or validated reproduction of the source webpage.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ