Skip to main content

Semantic validation protocol — DOI:10.5281/zenodo.19642292

Project description

AgentsProtocol

DOI Radicle Bitcoin Block License CI

AgentsProtocol makes AI-generated knowledge verifiable.

An open protocol and reference implementation for decentralised semantic validation. Every claim is scored against a public knowledge corpus (S_con), every block is gated by a statistical non-collusion test (Psi), and only blocks that clear both thresholds enter the canonical DAG.

Research Pillars

Layer Contribution Reference
MBT Statistical certificate of validator independence (Psi) Meta-Bell Theory (Dinc, 2026)
PoWW Composite truth score T × C × R × E Proof of WiseWork v2 (Dinc, 2026)
PoISV Operational protocol: S_con + Psi + GHOSTDAG ordering PoISV Whitepaper v1.0 (Dinc, 2026)
Bell-SPVU Formal proof: Ψ ≈ 1 − |Ŝ|/(2√2) Bell-SPVU Paper

Quick Start

pip install agentsprotocol
from agentsprotocol import compute_s_con, compute_psi, check_acceptance

s   = compute_s_con("The sky is blue.", ["The sky is blue."], tau=0.7)
psi = compute_psi([[0.1, 0.2, 0.3, 0.4], [0.3, 0.2, 0.1, 0.4]])
print(check_acceptance([s], psi, theta_min=0.6, psi_min=0.3))

Full demo: examples/demo.py

Repository Structure

agentsprotocol/
├── src/agentsprotocol/     Python reference implementation (S_con, Psi, WiseScore, schemas)
├── src/validator/          Rust validator node (tokio, libp2p gossipsub, sled, axum RPC)
├── detect/                 FastAPI demo backend (POST /validate, GET /health)
├── tests/                  pytest suite — 105 tests, all green (68 Python + 37 Rust)
├── examples/               Runnable demos
├── scripts/                seed_claim.py — generates signed genesis claim
├── docker-compose.yml      3-node local testnet
└── .github/workflows/      CI: Python 3.10/3.11/3.12 + Rust stable

Architecture

  Claim (JSON + Ed25519 sig)
        │
        ▼
  RPC /submit_claim  (axum, port 8545)
        │
        ▼
  verify_claim_signature()   ← ed25519-dalek
        │
        ▼
  ClaimMempool  (max-heap, sorted by S_con score)
        │
        ▼
  BlockProducer  (drains mempool every N secs or M claims)
        │  computes Psi, GHOSTDAG parent selection
        ▼
  DagStore  (sled, two trees: claims / blocks)
        │
        ▼
  P2P gossipsub  (libp2p 0.54, TCP/noise/yamux)

Running Locally

Python library:

pip install -e ".[dev]"
pytest tests/ -v

Rust validator:

cd src/validator
cargo test
cargo run

3-node testnet:

docker compose up --build
curl http://localhost:8545/status

detect/ API:

pip install -r detect/requirements.txt
uvicorn detect.api:app --reload --port 8000

Roadmap

Phase Scope Status
1 S_con, Psi, WiseScore, JSON-schema, Ed25519 signatures ✅ Done
2 GHOSTDAG consensus, sled storage, gossipsub P2P, axum RPC ✅ Done
3 Real embeddings (ONNX/fastembed), mDNS peer discovery, docker testnet 🔧 In progress
4 ZK-proof integration (RISC Zero / Nexus), security audit, testnet launch Planned

Citation

@software{dinc_agentsprotocol_2026,
  author    = {Fatih Dinc},
  title     = {AgentsProtocol: Reference Implementation},
  year      = 2026,
  publisher = {Zenodo},
  version   = {1.0.0},
  doi       = {10.5281/zenodo.19642292},
  url       = {https://github.com/fatdinhero/agentsprotocol}
}

License

Code: Apache-2.0 (LICENSE-CODE). Documentation: CC BY 4.0 (LICENSE-DOCS).

Timestamp

All contents are included in the SHA-256 hash attested on Bitcoin block 945622 (2026-04-18).


Author: Fatih Dinc — fatdinhero@gmail.com — Pforzheim, Germany.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentsprotocol-1.3.0.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentsprotocol-1.3.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file agentsprotocol-1.3.0.tar.gz.

File metadata

  • Download URL: agentsprotocol-1.3.0.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentsprotocol-1.3.0.tar.gz
Algorithm Hash digest
SHA256 faef83896a33ddfb73defb464458a6969111de34c34141677866772b31db8acd
MD5 340e0cac05367256647572c7e94ec616
BLAKE2b-256 0221371829ab43e95866bd8d8729e2895ec28bd61caf2112bb498cedf21deff2

See more details on using hashes here.

File details

Details for the file agentsprotocol-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: agentsprotocol-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentsprotocol-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce992880ee70806fa992dc987e12749371eea8ea95379323bc7eb998498aedcc
MD5 ca172424f922f6ebf002a95a1654747b
BLAKE2b-256 61be829d7cb150a8db14d426e7b928f934dbc987dfdfddc1c743137def044501

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page