File size: 1,057 Bytes
662ceed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | # 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
|