Skip to content
/ web4 Public

initial proof of concept for trust-based ecosystems

License

Notifications You must be signed in to change notification settings

dp-web4/web4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,269 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Web4: Trust-Native Ontology for Distributed Intelligence

Status Snapshot (2026-02-12)

Highlights

  • Attack simulations: 424 vectors across 84 tracks (~85% detection rate)
  • Formal threat model: THREAT_MODEL.md v2.0 - adversary model, trust boundaries, attack taxonomy
  • Coordination framework: ~25,000 lines, Phase 2a-2d validated (76% prediction accuracy)
  • Cross-system integration: SAGE ↔ Web4 pattern exchange operational
  • Nova external review: Comprehensive responses documented

Validations

  • Attack simulation suite: 372 attack functions, all defended
  • EP closed-loop simulation: 3+ lives with carry-forward state
  • Federation patterns: 1000+ patterns validated on edge (Jetson)
  • Trust tensor calculations: T3 composite scores stable

Risks / Gaps

  • P0 Blocker: Hardware binding spec complete - implementation progressing privately (contact dp@metalinxx.io)
  • Economic validation: No real-world market testing
  • Formal Sybil proofs: Empirical defenses, not mathematical proofs
  • Production deployment: All testing is synthetic

Open Questions

  • Are stake amounts actually deterrent? (no economic modeling)
  • Does witness diversity resist sophisticated cartels?
  • What's the minimal viable Web4 for production pilot?

Next

  • Hardware binding implementation (TPM 2.0/Secure Enclave/WebAuthn) - in progress, not yet public
  • Economic attack modeling with real parameters
  • ACT ledger integration

Research prototype exploring trust, identity, and authorization for AI agents


🎯 Vision

Web4 formalizes trust as a first-class primitive for distributed AI collaboration and coordinationβ€”not merely data exchange.

The internet evolved from documents (Web1) to applications (Web2) to ownership (Web3). Web4 proposes the next layer: verifiable trust relationships between humans, AI agents, and services that enable meaningful coordination without central control.

About "Web4"

Like Web1, Web2, and Web3, "Web4" is a generational label describing capabilities needed for the agentic AI eraβ€”not a single protocol or product. Many projects are tackling various aspects of this challenge.

This project suite focuses specifically on trust infrastructure for agent-agent and agent-human interactions: how agents establish verifiable presence, build reputation, delegate authority, and coordinate safely across organizational boundaries.


πŸ’‘ Why This Matters

The Problem

AI agents are increasingly autonomousβ€”browsing, transacting, coordinating with other agents. Current architectures assume either:

  • Central control: A platform decides who's trusted (doesn't scale, single point of failure)
  • Cryptographic ownership: You're trusted if you hold the right keys (insufficientβ€”holding a key doesn't mean you'll act well)

Neither addresses the core question: How do I know this agent will behave appropriately in this context?

How Web4 Differs from Web3

Aspect Web3 Web4
Trust basis Cryptographic proof of ownership Behavioral reputation over time
Identity Wallet addresses Linked Context Tokens (LCTs) with witnessed history
Authorization Token-gated access Context-dependent trust tensors
Coordination Smart contracts Federated societies with emergent trust structures
Focus Asset ownership Agent behavior and intent

What Problems This Could Address

  • AI Agent Accountability: Every action traceable to a verifiable presence with reputation at stake
  • Cross-Platform Coordination: Agents from different systems interoperating through shared trust protocols
  • Graduated Authorization: Not just "allowed/denied" but nuanced trust based on context, history, and stakes
  • Self-Organizing Trust: Societies that establish norms through interaction rather than requiring top-down rule enforcement

πŸ“š Quick Navigation

You Are... Your Goal Start Here
New to Web4 Understand the vision docs/START_HERE.md
Developer Implement Web4 docs/how/README.md
Researcher Study the concepts STATUS.md β†’ whitepaper/
AI Agent Integrate docs/how/AGENT_INTEGRATION.md
Contributor Help the project CONTRIBUTING.md

Learning Path

Step Document What You'll Learn
1 STATUS.md Honest assessment: what exists, what works, what's missing
2 docs/reference/GLOSSARY.md Quick reference for all Web4 terminology
3 whitepaper/ Conceptual foundation: LCTs, trust tensors, MRH, R6 framework
4 docs/how/README.md Implementation guides
5 SECURITY.md Security research status and known gaps
6 docs/reference/security/THREAT_MODEL.md What we're defending against
7 docs/reference/LCT_DOCUMENTATION_INDEX.md Index of all LCT-related documentation

⚠️ Project Status: Research Prototype

This is exploratory research, not production software.

Web4 is investigating trust-native architectures for AI coordination. We have interesting ideas, working prototypes, and significant gaps. See STATUS.md for honest assessment.


πŸ—οΈ Four Development Tracks

Web4 contains four development tracks at different maturity levels:

Track 1: 4-Life Society Simulation (Now Standalone)

What it is: A fractal sandbox for simulating Web4 societies - agents form societies, societies join societies, trust emerges through interaction. Named "4-Life" for the emergent, self-organizing nature of the simulation (like Conway's Game of Life, but with trust dynamics).

Status: Evolved to standalone project β†’ github.com/dp-web4/4-life

The original prototype (/game/) has been archived to archive/game-prototype/ with documentation of its evolution. Active simulation research continues in /simulations/ (attack simulations, trust dynamics) and the standalone 4-life repo.

Documentation:

Use for: Historical reference; for active game development see 4-life repo

Track 2: web4-standard/implementation/authorization/ - PostgreSQL Authorization Layer

What it is: Database-backed authorization with security mitigations.

Status: More mature, but still research

  • Real SQL schemas with constraints
  • ATP drain/refund mitigations
  • Reputation washing detection
  • Delegation validation
  • ~50 test files with security attack tests

Key files:

  • schema.sql, schema_atp_drain_mitigation.sql, schema_reputation_washing_detection.sql
  • authorization_engine.py, delegation_validator.py, sybil_resistance.py
  • test_security_attacks.py, test_atp_refund_exploit.py

Use for: Authorization logic that needs persistence and real constraints

Track 3: demo/ - Commerce Demo (Narrow Application)

What it is: A working demo showing one use case (AI agent purchasing).

Status: Functional demo, not production deployment

  • Delegation UI for setting agent limits
  • Demo store for testing purchases
  • In-memory (no real payments)

Use for: Demonstrations and presentations

Track 4: web4-standard/implementation/reference/ - Coordination Framework (Active Development)

What it is: Reference implementations for distributed coordination, pattern learning, and cross-system integration.

Status: Active research with validated components (~25,000 lines added Dec 2025)

  • Phase 2 coordinators (epistemic, integrated, circadian, adaptive)
  • Pattern exchange protocol (bidirectional SAGE ↔ Web4)
  • EM-state (Epistemic Monitoring) framework
  • Temporal/phase-tagged learning
  • LCT Unified Presence Specification

Key Components:

Component Purpose Status
Phase 2a Epistemic Coordinator Runtime epistemic state tracking Validated
Phase 2b Integrated Coordinator Epistemic + pattern learning Validated
Phase 2c Circadian Coordinator Temporal/phase-aware decisions Validated
Phase 2d Adaptive Coordinator EM-state modulation Validated
Pattern Exchange Protocol Cross-system learning transfer Operational
LCT Presence Specification Unified presence format v1.0.0 draft

Validation Results (Dec 2025):

  • 76% prediction validation (13 of 17 predictions confirmed)
  • +386% efficiency improvement demonstrated
  • Long-duration testing (1000+ cycles)

Key Files:

  • web4_phase2b_integrated_coordinator.py - Combined epistemic + learning
  • temporal_pattern_exchange.py - Phase-aware pattern transfer
  • universal_pattern_schema.py - Cross-system pattern format
  • LCT_UNIFIED_PRESENCE_SPECIFICATION.md - Presence standard (in /docs/)

Use for: Coordination research, SAGE integration, cross-system pattern transfer


πŸ“Š Key Documentation

Document What It Covers
STATUS.md Honest assessment - what exists, what works, what's missing
SECURITY.md Security research status and gaps
docs/reference/security/THREAT_MODEL.md Formal threat model for the overall system
docs/reference/GLOSSARY.md Canonical terminology definitions
Whitepaper Conceptual foundation (LCTs, trust, MRH)

Start here: STATUS.md for fair evaluation criteria


What Is Web4?

Web4 is a research ontology β€” a formal structure of typed relationships through which trust, identity, and value are expressed.

Web4 = MCP + RDF + LCT + T3/V3*MRH + ATP/ADP

Where: / = "verified by", * = "contextualized by", + = "augmented with"

Core equation components:

  • MCP (Model Context Protocol) β€” I/O membrane for inter-entity communication
  • RDF (Resource Description Framework) β€” Ontological backbone; all trust relationships are typed triples, all MRH graphs are RDF, all semantic queries use SPARQL
  • LCT (Linked Context Token) β€” Verifiable presence anchored to hardware
  • T3/V3 (Trust/Value Tensors) β€” Multi-dimensional trust (Talent/Training/Temperament) and value (Valuation/Veracity/Validity), bound to entity-role pairs via RDF
  • MRH (Markov Relevancy Horizon) β€” Fractal context scoping, implemented as RDF graphs
  • ATP/ADP (Allocation Transfer/Discharge Packets) β€” Bio-inspired energy metabolism

Built on this foundation: Societies, SAL (governance), AGY (delegation), ACP (autonomous operation), Dictionaries (semantic bridges), R6/R7 (action framework), Federation (multi-society coordination)

The Research Questions

  • How do you give AI agents authority without losing control?
  • How does trust emerge and decay in distributed systems?
  • How do you coordinate multiple AI societies?
  • What security properties are achievable at scale?

What We're Exploring

Fine-grained delegation with enforcement:

Example: Agent purchasing with constraints
- Daily budget limits
- Per-transaction limits
- Resource type restrictions
- Approval thresholds
- Instant revocation

Concept β†’ Implementation Map

Concept Specification Implementation Notes
LCT (Presence) web4-standard/core-spec/LCT-linked-context-token.md web4-standard/implementation/authorization/ Also in 4-life repo
Multi-Device Binding web4-standard/core-spec/multi-device-lct-binding.md Implementation in progress (private repo) Contact dp@metalinxx.io
Trust Tensors (T3/V3) web4-standard/core-spec/t3-v3-tensors.md simulations/ Trust dynamics simulations
MRH (Context) web4-standard/core-spec/mrh-tensors.md simulations/ Context boundary research
ATP (Economics) web4-standard/core-spec/atp-adp-cycle.md simulations/ Economic attack simulations
Federation docs/how/integration/SAGE_WEB4_INTEGRATION_DESIGN.md simulations/ Federation patterns
Societies web4-standard/core-spec/SOCIETY_SPECIFICATION.md 4-life repo Society simulation
Authorization web4-standard/core-spec/security-framework.md web4-standard/implementation/authorization/ PostgreSQL schemas
Coordination docs/what/specifications/LCT_UNIFIED_PRESENCE_SPECIFICATION.md web4-standard/implementation/reference/ Phase 2 coordinators

πŸš€ Quick Start

Run the Demo

# Terminal 1: Start the demo store
cd demo/store
pip install -r requirements.txt
python app.py
# Visit: http://localhost:8000

# Terminal 2: Start the delegation UI
cd demo/delegation-ui
pip install -r requirements.txt
python app.py
# Visit: http://localhost:8001

See demo/DEMO_SCRIPT.md for walkthrough.

Run Simulations

cd simulations

# Attack simulations
python attack_simulations.py               # Core attack simulation framework
python attack_track_fb.py                  # Trust manipulation attacks
python attack_track_fc.py                  # Economic attacks

# For full 4-Life game demos, see: https://github.com/dp-web4/4-life

πŸ“Š Repository Structure

web4/
β”œβ”€β”€ simulations/                       # Attack simulations and trust dynamics research
β”‚   β”œβ”€β”€ attack_track_*.py             # Attack scenario simulations
β”‚   └── *.py                          # Trust/federation simulations
β”‚
β”œβ”€β”€ web4-standard/                     # Core specifications and implementations
β”‚   β”œβ”€β”€ core-spec/                    # Canonical specifications (LCT, T3, MRH, ATP, R6)
β”‚   └── implementation/
β”‚       β”œβ”€β”€ authorization/            # PostgreSQL schemas & security mitigations
β”‚       └── reference/                # Coordination framework (~25k lines)
β”‚
β”œβ”€β”€ demo/                              # Commerce demo (delegation UI + store)
β”‚
β”œβ”€β”€ docs/                              # Documentation (why/what/how/history/reference)
β”‚   β”œβ”€β”€ why/                          # Vision and motivation
β”‚   β”œβ”€β”€ what/specifications/          # Technical specifications
β”‚   β”œβ”€β”€ how/                          # Implementation guides
β”‚   β”œβ”€β”€ history/                      # Research and decisions
β”‚   └── reference/                    # Glossary, indexes, security
β”‚
β”œβ”€β”€ archive/game-prototype/            # Historical: original 4-Life prototype
β”œβ”€β”€ sessions/                          # Research session scripts and outputs
β”œβ”€β”€ whitepaper/                        # Conceptual foundation
β”œβ”€β”€ review/                            # External review artifacts
β”‚
β”œβ”€β”€ STATUS.md                          # Honest project status
β”œβ”€β”€ SECURITY.md                        # Security research status
└── CONTRIBUTING.md                    # How to contribute

🀝 Related Projects

  • HRM/SAGE - Edge AI kernel with MoE expert selection and trust-based routing
  • ACT - Distributed ledger for ATP tokens and LCT presence registry (Cosmos SDK)
  • Synchronism - Theoretical physics framework (MRH, coherence)
  • Memory - Distributed memory and witnessing

Cross-Project Integration

Web4 integrates with SAGE (neural MoE) and ACT (distributed ledger) via:

  • Unified LCT Presence: lct://{component}:{instance}:{role}@{network}
  • ATP Resource Allocation: Synchronized between ledger and edge systems
  • Bidirectional Pattern Exchange: Coordination patterns transfer between domains
  • Trust Tensor Synchronization: Trust scores flow across system boundaries

See docs/what/specifications/LCT_UNIFIED_PRESENCE_SPECIFICATION.md for the presence standard.


πŸ“– Whitepaper

The Web4 whitepaper provides the conceptual foundation:

Key concepts: LCTs, MRH, Trust Tensors, ATP, Federation, Dictionaries


πŸ“„ License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) - see LICENSE.

Patent Notice

This software implements technology covered by patents owned by MetaLINXX Inc. A royalty-free patent license is granted for non-commercial and research use under AGPL-3.0 terms.

For commercial licensing: Contact dp@metalinxx.io

See PATENTS.md for full patent details.


Research prototype. Interesting ideas. Significant gaps. Honest about both.

About

initial proof of concept for trust-based ecosystems

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors