{"id":49763267,"url":"https://github.com/fatdinhero/agentsprotocol","last_synced_at":"2026-05-11T10:03:05.269Z","repository":{"id":352543590,"uuid":"1214528763","full_name":"fatdinhero/agentsprotocol","owner":"fatdinhero","description":"AgentsProtocol: decentralised semantic validation layer for AI. MCP/A2A connect systems — AgentsProtocol proves the content is true. Built on PoISV + GHOSTDAG. DOI: 10.5281/zenodo.19642292","archived":false,"fork":false,"pushed_at":"2026-05-11T01:41:47.000Z","size":102,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T02:21:43.659Z","etag":null,"topics":["a2a","agentsprotocol","ap","blockchain","dag","ghostdag","kaspa","mcp","meta-bbell-theory","poww","semantic-validation","system-design","validation","wise-score","wisework","zero-knowledge"],"latest_commit_sha":null,"homepage":"https://agentsprotocol.org","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fatdinhero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-CODE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-18T17:44:45.000Z","updated_at":"2026-05-11T01:41:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fatdinhero/agentsprotocol","commit_stats":null,"previous_names":["fatdinhero/agentsprotocol"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fatdinhero/agentsprotocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatdinhero%2Fagentsprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatdinhero%2Fagentsprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatdinhero%2Fagentsprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatdinhero%2Fagentsprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatdinhero","download_url":"https://codeload.github.com/fatdinhero/agentsprotocol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatdinhero%2Fagentsprotocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a2a","agentsprotocol","ap","blockchain","dag","ghostdag","kaspa","mcp","meta-bbell-theory","poww","semantic-validation","system-design","validation","wise-score","wisework","zero-knowledge"],"created_at":"2026-05-11T10:02:59.771Z","updated_at":"2026-05-11T10:03:05.263Z","avatar_url":"https://github.com/fatdinhero.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AgentsProtocol\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19642292.svg)](https://doi.org/10.5281/zenodo.19642292)\n[![Radicle](https://img.shields.io/badge/Radicle-rad:z2rcpKt6WkzXsdyPs9shwnrtpcPmS-blue)](https://app.radicle.xyz/nodes/iris.radicle.xyz/rad:z2rcpKt6WkzXsdyPs9shwnrtpcPmS)\n![Bitcoin Block](https://img.shields.io/badge/Bitcoin_Block-945622-orange)\n![License](https://img.shields.io/badge/license-Apache--2.0-blue)\n![CI](https://github.com/fatdinhero/agentsprotocol/actions/workflows/ci.yml/badge.svg)\n\n\u003e **AgentsProtocol makes AI-generated knowledge verifiable.**\n\nAn open protocol and reference implementation for decentralised **semantic**\nvalidation. Every claim is scored against a public knowledge corpus (S_con),\nevery block is gated by a statistical non-collusion test (Psi), and only\nblocks that clear both thresholds enter the canonical DAG.\n\n## Research Pillars\n\n| Layer | Contribution | Reference |\n|---|---|---|\n| MBT | Statistical certificate of validator independence (Psi) | Meta-Bell Theory (Dinc, 2026) |\n| PoWW | Composite truth score T × C × R × E | Proof of WiseWork v2 (Dinc, 2026) |\n| PoISV | Operational protocol: S_con + Psi + GHOSTDAG ordering | PoISV Whitepaper v1.0 (Dinc, 2026) |\n| Bell-SPVU | Formal proof: Ψ ≈ 1 − \\|Ŝ\\|/(2√2) | [Bell-SPVU Paper](https://doi.org/10.5281/zenodo.19656679) |\n\n## Quick Start\n\n```bash\npip install agentsprotocol==1.3.0\n```\n\n```python\nfrom agentsprotocol import compute_s_con, compute_psi, check_acceptance\n\ns   = compute_s_con(\"The sky is blue.\", [\"The sky is blue.\"], tau=0.7)\npsi = compute_psi([[0.1, 0.2, 0.3, 0.4], [0.3, 0.2, 0.1, 0.4]])\nprint(check_acceptance([s], psi, theta_min=0.6, psi_min=0.3))\n```\n\nFull demo: `examples/demo.py`\n\n## Repository Structure\n\n```\nagentsprotocol/\n├── src/agentsprotocol/     Python reference implementation (S_con, Psi, WiseScore, schemas)\n├── src/validator/          Rust validator node (tokio, libp2p gossipsub, sled, axum RPC)\n├── detect/                 FastAPI demo backend (POST /validate, GET /health)\n├── tests/                  pytest suite — 105 tests, all green (68 Python + 37 Rust)\n├── examples/               Runnable demos\n├── scripts/                seed_claim.py — generates signed genesis claim\n├── docker-compose.yml      3-node local testnet\n└── .github/workflows/      CI: Python 3.10/3.11/3.12 + Rust stable\n```\n\n## Architecture\n\n```\n  Claim (JSON + Ed25519 sig)\n        │\n        ▼\n  RPC /submit_claim  (axum, port 8545)\n        │\n        ▼\n  verify_claim_signature()   ← ed25519-dalek\n        │\n        ▼\n  ClaimMempool  (max-heap, sorted by S_con score)\n        │\n        ▼\n  BlockProducer  (drains mempool every N secs or M claims)\n        │  computes Psi, GHOSTDAG parent selection\n        ▼\n  DagStore  (sled, two trees: claims / blocks)\n        │\n        ▼\n  P2P gossipsub  (libp2p 0.54, TCP/noise/yamux)\n```\n\n## Running Locally\n\n**Python library:**\n```bash\npip install -e \".[dev]\"\npytest tests/ -v\n```\n\n**Rust validator:**\n```bash\ncd src/validator\ncargo test\ncargo run\n```\n\n**3-node testnet:**\n```bash\ndocker compose up --build\ncurl http://localhost:8545/status\n```\n\n**detect/ API:**\n```bash\npip install -r detect/requirements.txt\nuvicorn detect.api:app --reload --port 8000\n```\n\n## Roadmap\n\n| Phase | Scope | Status |\n|---|---|---|\n| 1 | S_con, Psi, WiseScore, JSON-schema, Ed25519 signatures | ✅ Done |\n| 2 | GHOSTDAG consensus, sled storage, gossipsub P2P, axum RPC | ✅ Done |\n| 3 | Real embeddings (ONNX/fastembed), mDNS peer discovery, docker testnet | 🔧 In progress |\n| 4 | ZK-proof integration (RISC Zero / Nexus), security audit, testnet launch | Planned |\n\n## Citation\n\n```bibtex\n@software{dinc_agentsprotocol_2026,\n  author    = {Fatih Dinc},\n  title     = {AgentsProtocol: Reference Implementation},\n  year      = 2026,\n  publisher = {Zenodo},\n  version   = {1.0.0},\n  doi       = {10.5281/zenodo.19642292},\n  url       = {https://github.com/fatdinhero/agentsprotocol}\n}\n```\n\n## License\n\nCode: Apache-2.0 (`LICENSE-CODE`). Documentation: CC BY 4.0 (`LICENSE-DOCS`).\n\n## Timestamp\n\nAll contents are included in the SHA-256 hash attested on\n**Bitcoin block 945622 (2026-04-18)**.\n\n---\n\n**Author:** Fatih Dinc — `fatdinhero@gmail.com` — Pforzheim, Germany.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatdinhero%2Fagentsprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatdinhero%2Fagentsprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatdinhero%2Fagentsprotocol/lists"}