Skip to content

๐Ÿงพ MAP Transaction Model Specification โ€” v2

This document defines the Transaction Model used in the Memetic Activation Platform (MAP), refined to incorporate:

  • the layered validation architecture (PVL, Nursery, Trust Channels, Attestations)
  • the dependency gravity boundary
  • the distinction between structural, semantic, and social validity
  • conflict detection via deterministic indexing (paths + links)
  • the limits of local validation under eventual consistency

This version preserves the original model while clarifying scope, guarantees, and boundaries.


๐Ÿ”น Overview: What Is a Transaction in MAP?

A Transaction in MAP is a semantically meaningful, multi-operation commit unit that:

  • Encapsulates one or more staged holon or relationship updates.
  • Records validation outcomes, operation logs, and possible compensating operations.
  • Results in a locally validated commit, a failed transaction, or a rollback.

Transactions serve as:

  • A logical unit of change (semantic granularity within an Agent),
  • A validation boundary (closed, transaction-scoped context),
  • A record of validation outcomes and intent.

๐Ÿ”‘ Important Clarification

A Transaction guarantees local semantic coherence, not global correctness.

It does NOT guarantee:

  • global uniqueness
  • absence of concurrent conflicting writes
  • agreement conformance across agents

๐Ÿงฑ Structure of a Transaction Holon

{
  "type": "#TransactionType",
  "properties": {
    "transaction_id": "txn:2025-08-19T17:54Z:87af0",
    "timestamp": "2025-08-19T17:54:33Z",
    "initiated_by": "Agent:alice",
    "final_state": "CommittedWithWarnings"
  },
  "relationships": {
    "Updated": [ "$ref": "Holon:book:MAP" ],
    "HasValidationResult": [ "$ref": "#validation-too-many-tags" ],
    "HasOperationLog": [ "$ref": "#op-1", "$ref": "#op-2" ],
    "Compensates": [ "$ref": "#Transaction:txn-original" ]
  }
}

Key Properties

Property Description
transaction_id Unique identifier
initiated_by Agent initiating the transaction
final_state Validated, Committed, CommittedWithWarnings, Failed, RolledBack
timestamp Creation time

Key Relationships

Relationship Target Purpose
Updated Holon(s) All affected holons
HasValidationResult ValidationResult Records validation outcomes
HasOperationLog OperationLog Fine-grained command history
Compensates Transaction Links rollback / corrective transaction

๐Ÿง  Transaction Context and the Nursery

๐ŸŒฑ The Nursery

The Nursery is a transient, in-memory projection of the transaction scope.

It acts as:

  • a materialized read model
  • a closed validation environment
  • the primary locus of semantic validation

๐Ÿชต Nursery Responsibilities

  • maintain a fully materialized view of staged changes
  • allow ergonomic mutation APIs
  • support undo/redo via operation logs
  • evaluate validation rules before commit

โš ๏ธ Constraint

The Nursery operates on:

  • a partial, local snapshot of the DHT
  • no guarantee of global visibility

Therefore:

Nursery validation is strong but not globally authoritative.


๐Ÿ“š Best Practices Integrated into the Transaction Model

โœ… Event Sourcing Practices

Event Sourced Concept MAP Equivalent
Event stream per aggregate StagedHolon per entry
Append-only log OperationLog
Snapshot Nursery projection
Sagas Transaction + Compensates
Read model Nursery

Key Takeaway

The Transaction is the bounded semantic unit, while the Nursery is the projection layer enabling validation.


๐ŸŒ€ Holochain Comparisons (Refined)

Holochain Concept MAP Layer
Entry / link ops Holon persistence
DHT validation callbacks PVL (integrity layer)
Action graph Versioning via hashes
Branching updates MVCC-style divergence

Updated Key Takeaway

MAP does NOT extend Holochain validation into full semantic reproduction.

Instead:

  • Holochain integrity validation โ†’ PVL (structural only)
  • MAP transaction validation โ†’ Nursery (semantic, local)

๐Ÿ” CRDT Perspective (Refined)

CRDT Trait MAP Position
Automatic merge โŒ No
Convergence guarantee Conditional
Conflict handling Explicit and semantic
Merge logic Agreement + application

Key Takeaway

MAP prioritizes:

semantic correctness over automatic convergence


โš™๏ธ MVCC in MAP

MAP uses MVCC:

  • multiple concurrent versions allowed
  • no write blocking
  • conflicts detected later
  • resolution is semantic

Important Refinement

MVCC enables divergence; it does not guarantee correctness.


๐Ÿงช Validation Model

๐Ÿ”น Structural Validation (PVL)

Performed in integrity:

  • type correctness
  • property validation
  • relationship constraints
  • lifecycle rules

๐Ÿ”น Transaction Validation (Nursery)

Performed pre-commit:

  • multi-holon invariants
  • cardinality constraints
  • referential coherence
  • derived consistency

๐Ÿ”น Validation Categories

Required (Hard Fail)

  • transaction-internal invariants
  • bounded cardinality
  • required claim presence
  • direct reference consistency

Optional (Warning)

  • snapshot-based duplicate detection
  • advisory rules
  • quality checks

Deferred

  • global uniqueness
  • cross-agent semantics
  • agreement constraints

๐Ÿ”น Validation Outcomes

  • Fail โ†’ abort
  • Warn โ†’ commit with warnings
  • Defer โ†’ commit, unresolved

๐Ÿ”— Uniqueness and Claims

๐Ÿ”น Claim Holon Pattern

Uniqueness is represented via Claim Holons:

  • deterministic key = hash(normalized_value)
  • linked to claimant

๐Ÿ”น Path Index

Paths act as deterministic indexes:

claims..

Links:

Path โ†’ ClaimHolon


๐Ÿ”น Conflict Set

All claims linked to the same path form a conflict set.


๐Ÿ”น Critical Insight

Absence of conflict โ‰  uniqueness


๐Ÿ”น Transaction Role

Transactions:

  • check local snapshot
  • prevent obvious duplicates
  • cannot guarantee global uniqueness

โš ๏ธ Conflict Detection

Conflicts are detected:

  • during Nursery validation (best effort)
  • on DHT integration
  • during reads

Detection rule:

multiple links from same path โ†’ conflict


Properties

  • eventual
  • partial
  • monotonic

๐Ÿ”” Conflict Signaling

Conflicts may be recorded via:

  • ConflictsWith relationships
  • conflict holons
  • validation results
  • attestations

๐Ÿ” Conflict Resolution

Occurs outside transactions:

  • follow-up transactions
  • trust channel enforcement
  • attestation consensus

๐Ÿ“œ Agreement Scope vs Transaction Scope

๐Ÿ”น Key Distinction

Concept Scope
Transaction Intra-agent
Agreement Inter-agent

๐Ÿ”น Implication

Transaction validation does NOT enforce:

  • agreement rules
  • inter-agent policies

Those belong to:

  • Trust Channels
  • Attestation layer

๐Ÿงพ Validation Results (Refined)

Validation results should distinguish:

  • structural (PVL)
  • semantic (Nursery)
  • deferred
  • social (attestation-derived)

๐Ÿงฉ Summary

MAP Transactions provide:

  • bounded semantic units of change
  • strong local validation via Nursery
  • explicit validation records
  • MVCC-based divergence
  • compatibility with eventual consistency

๐Ÿงญ Final Principles

  • Transactions ensure local coherence
  • Integrity ensures structural correctness
  • Trust Channels enforce agreements
  • Attestations establish truth
  • Conflicts are detected, not prevented

๐Ÿง  Closing Statement

MAP Transactions allow Agents to construct coherent local state,
while the broader system ensures that this state can be challenged,
validated, and reconciled through decentralized interaction and shared meaning.