Protocol Architecture Demo

7-State AI Exchange Lifecycle

Interactive state machine simulator demonstrating how NodeHash transitions multi-party barter loops through the canonical seven-stage AI pipeline: from dual-profile ingestion to bilateral and trilateral loop discovery, AI mediation, cryptographic passkey attestation, and zero-sum mutual credit recording.

State Machine Invariants

Strict Linear Progression: Every barter trade cycle progresses through the canonical sequence: REGISTEREDCLASSIFIEDMATCHEDRANKEDNEGOTIATINGCOMPLETEDRECORDED.

Rollback Containment: If any counterparty rejects negotiation terms or disputes fulfillment, the atomic transaction aborts cleanly, releasing unmatched supply items back to active candidate pools with zero financial liability.

Two-Tier Value Taxonomy

Bounded Depth (≤ 2): Free-text skill descriptions are categorized into Tier 1 Primary Tags for coarse-grained candidate clustering and Tier 2 Sub-Tags for precision rank scoring.

Computational Tractability: Hard-bounding taxonomy nesting depth prevents exponential graph expansion while semantic embeddings enable fuzzy cross-domain alignment.

Hard Depth Cap: K ≤ 3

Algorithmic Boundary: The exchange engine strictly discovers 2-way (bilateral) and 3-way (trilateral) closed loops. 4-way and 5-way cycles are mathematically disallowed.

Contagion Containment: Caps systemic counterparty delivery default risk to at most 3 peers while guaranteeing sub-500ms graph traversal finality.

AI Intermediary Mediation

Frictionless Convergence: An autonomous AI intermediary buffers counter-offers, schedules compatible UTC delivery windows, and computes objective friction scores.

Unanimous Quorum: Transitions to active execution require 100% agreement across all participants, codifying deliverables into atomic milestones before work starts.

Proof of Work & Passkeys

Cryptographic Attestation: Deliverables are verified by beneficiaries and confirmed with WebAuthn / Passkey Ed25519 signatures, generating tamper-evident proof-of-fulfillment hashes.

360-Degree Ratings: All counterparties submit mutual 1–5 ratings and qualitative feedback, updating decentralized reputation graphs.

Zero-Sum Consensus & Damping

Zero-Sum Balance Clearing: Ledger consensus verifies that total credits issued equal total debts cleared:

∑ ΔCi = 0

Sponsor Lineage Damping: Network invitation trees hold sponsors accountable for dispute penalties or trust dividends using exponential liability attenuation:

Factor = 0.5(depth − 1) (Depth ≤ 3)

Explore Interactive Multi-Party Barter Cycles

View the directed graph visualizer demonstrating 2-node bilateral and 3-node trilateral barter cycles, token flow animations, and zero-sum clearing proofs.