1.3 KiB
1.3 KiB
AGENTS.md
Architecture
src/idea134_matchops_federated_verifiable/contains the package code.dsl.pycompiles the declarative MatchOps spec into canonical IR.ir.pydefines the canonical data model, verifiable execution graph, and plan delta structures.optimizer.pyimplements the federated, privacy-preserving scheduling loop.adapters.pycontains the Graph-of-Contracts registry and starter adapters.ledger.pyprovides the tamper-evident governance ledger with SQLite storage.tests/contains unit tests for the compiler, optimizer, adapters, and ledger.
Tech Stack
- Python 3.10+
pydanticfor strict schema validation and deterministic serializationsqlite3from the standard library for durable governance ledger storagepytestfor tests
Rules
- Keep serialization canonical; hashes depend on stable JSON ordering.
- Preserve the src layout and package name
idea134_matchops_federated_verifiable. - Prefer small, deterministic functions over ad hoc logic.
- Do not weaken ledger integrity checks or execution graph attestations.
- Add or update tests whenever behavior changes.
Testing
- Run
bash test.shfrom the repository root. test.shmust run both the test suite andpython3 -m buildsuccessfully.