1.1 KiB
1.1 KiB
BuildLedger Agent Guide
Architecture
buildledger.modelsdefines the canonical provenance objects.buildledger.ledgerstores immutable entries in SQLite and verifies chain integrity.buildledger.schemasprovides a versioned schema registry over the core models.buildledger.syncemits and applies delta packets for reconnect/resync workflows.buildledger.anchorsrecords tamper-evident head anchors.buildledger.adaptersnormalizes CI context into build contracts.buildledger.clioffers small operational commands for local use.
Tech Stack
- Python 3.11+
pydanticfor strict model validationsqlite3for local persistencepytestfor testsbuildfor packaging verification
Testing
- Run
bash test.shfrom the repo root. test.shmust succeed withpytestandpython3 -m build.
Rules
- Keep ledger records append-only and hash-verified.
- Prefer canonical JSON serialization for hashes and sync packets.
- Keep adapters thin and deterministic.
- Add or update tests when changing model, storage, or sync logic.
- Preserve ASCII unless a file already requires otherwise.