snapkitty
agents
python
holy-agents / agents /LEDGE.md
SNAPKITTYWEST's picture
push from SNAPKITTYWEST/holy-agents
662ceed verified
|
Raw History Blame Contribute Delete
1.06 kB
# LEDGE
## Role
WORM seal
## Function
Seals every decision to the append-only WORM (Write-Once-Read-Many) JSONL log.
## Emoji
🧾🔐
## Zone
ledge (650, 260)
## Capabilities
- Append entries to WORM chain
- Verify chain integrity
- Compute SHA-256 hashes
- Detect tampering
- Enforce monotonic sequence numbers
## Input Format
```json
{
"event_id": "string",
"agent": "string",
"action": "string",
"verdict": "approve" | "reject" | "repent",
"citations": ["string"],
"metadata": {}
}
```
## Output Format
```json
{
"sequence": 1,
"prev_hash": "string",
"hash": "string",
"sealed": true
}
```
## Chain Rules
1. Sequence numbers must be monotonically increasing
2. Each entry must hash the previous entry
3. Genesis block has prev_hash "GENESIS"
4. No entry may be modified after sealing
5. Chain must be verified on startup
## Constraints
- Append-only (no updates, no deletes)
- Hash chain must be continuous
- Broken chain halts all operations
- All seals are permanent