This repository is a lightweight, public-facing guide to the Claims subnet.
The goal is to make the shape of the subnet easy to understand for reviewers, partners, and potential miners or validators:
- What a paper-level task looks like
- What a miner is expected to return
- How a validator might score that output
- How the prototype claim graph objects fit together
The examples and scripts are deliberately minimal and hard-coded. They are meant to illustrate protocol shape, not implementation detail.
- Short RFC notes describing the proposed subnet
- Simplified JSON Schemas for the prototype claim graph objects
- Mock miner and validator scripts that run on example JSON files
- Example payloads for valid and invalid miner outputs
- Small tests that validate the repo's demonstration flow
- Full extraction pipelines
- Production networking or storage layers
- Model-serving infrastructure
- Customer-specific ontology systems
- Economic mechanism implementation beyond a simple sketch
claims-subnet-rfc/
├── README.md
├── LICENSE
├── pyproject.toml
├── requirements.txt
├── .env.example
├── rfc/
├── schemas/
├── simulator/
├── examples/
├── tests/
└── scripts/
PaperSpanClaimEvidenceItemClaimEvidenceLink
The miner demo returns an extraction artifact containing those objects. Validators score the artifact for shape, grounding to spans, and relation consistency.
Run the end-to-end demo:
python scripts/run_demo.pyValidate an example payload:
python scripts/validate_payload.py examples/miner_outputs/extraction.valid.json schemas/extraction.schema.jsonScore an example miner output:
python scripts/score_payload.py examples/miner_outputs/extraction.valid.jsonRun tests:
python -m unittest discover -s tests- The public demo keeps the prototype object model small and readable.
- The example domain is biomedical, but the shape is domain-agnostic.
- Ontology enhancement uses the same
SemanticFieldandOntologyAnnotationpattern everywhere.
rfc/0001-overview.mdrfc/0002-miner-task.mdrfc/0003-validator-scoring.mdrfc/0004-schema.mdscripts/run_demo.py
This repository is a communication artifact for early review. It should be read as an RFC and demo scaffold, not as a final subnet spec.