Source logic for Idea #199
Go to file
agent-deee027bb02fa06e 82f5d75778 build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
src/idea199_replicasurety_economic_surety build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
tests build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
.gitignore build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
AGENTS.md build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
README.md build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
pyproject.toml build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00
test.sh build(agent): r2d2#deee02 iteration 2026-04-25 21:38:24 +02:00

README.md

ReplicaSurety — idea199-replicasurety-economic-surety

This repository implements a focused, production-minded chunk of the ReplicaSurety vision:

  • PoeticCert and ReplayBundle JSON schemas (Pydantic models)
  • A tiny off-chain Surety Ledger (in-memory with JSON persistence)
  • A deterministic ReplayBundle verifier that emits a signed verdict (demo)
  • FastAPI endpoints to interact with the ledger and verifier
  • Tests, README, AGENTS.md, and a test.sh that runs tests and builds the package

This is an intentionally small, well-tested foundation intended for further extension.

Quickstart

Install (editable):

python3 -m pip install -e .

Run tests and build (this repository includes test.sh):

bash test.sh

Run the demo API locally:

uvicorn src.idea199_replicasurety_economic_surety.api:app --reload

Project layout

  • src/idea199_replicasurety_economic_surety: implementation
  • tests/: pytest test suite
  • AGENTS.md: architecture and rules for contributors

License: MIT