Catalog PyPI
Back to packageRELEASE DETAILS

1.3.0

PyPI

agentsprotocol

Semantic validation protocol — DOI:10.5281/zenodo.19642292

ai-verificationconsensusghostdagmeta-bellproof-of-worksemantic-validationzkvm
Published11 May 2026
Direct dependencies9
Transitive dependenciesNot calculated

README

Version 1.3.0 documentation

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

LayerContributionReference
MBTStatistical certificate of validator independence (Psi)Meta-Bell Theory (Dinc, 2026)
PoWWComposite truth score T × C × R × EProof of WiseWork v2 (Dinc, 2026)
PoISVOperational protocol: S_con + Psi + GHOSTDAG orderingPoISV Whitepaper v1.0 (Dinc, 2026)
Bell-SPVUFormal 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

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

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
numpy>=1.24runtime
scipy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
scipy>=1.10runtime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pydantic>=2.0runtime
cryptography
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
cryptography>=41.0runtime
fastapi
Environment
{
  "extras": "",
  "marker": "extra == \"detect\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
fastapi>=0.110; extra == "detect"runtime
uvicorn
Environment
{
  "extras": "standard",
  "marker": "extra == \"detect\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
uvicorn[standard]>=0.29; extra == "detect"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest>=7; extra == "dev"runtime
flake8
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
flake8>=6; extra == "dev"runtime
aiohttp
Environment
{
  "extras": "",
  "marker": "extra == \"kaspa\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
aiohttp>=3.9; extra == "kaspa"runtime

Distribution files

2 collected
agentsprotocol-1.3.0-py3-none-any.whl

bdist_wheel · 18.21 KB · Python py3

Source file
agentsprotocol-1.3.0.tar.gz

sdist · 25.75 KB · Python source

Source file

Repository

ACCESSIBLE
fatdinhero/agentsprotocol

Shared repository data · GitHub

License detected in repository
NOASSERTION
License branch / ref
main
Last push
13 May 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots21 Oct 2026
10.50
2026-10-21: 0 · observed 2026-10-21T18:38:10.7278176Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2102026-10-21T18:38:10.7278176Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:1d22e73f7fc0bd833362782f91af712683fbf417e2dd03ef2a62682564a3f4b1

Other collected versions

View all collected versions →