From 89342d8ae822ea75ae387d9b54dffdf6a08cb499 Mon Sep 17 00:00:00 2001 From: rUv Date: Mon, 2 Feb 2026 03:52:12 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: claude/guidance-control-plane-uhmR3 - Timestamp: 2026-02-02T03:52:12Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/guidance/docs/adrs/ADR-G005-proof-envelope.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/@claude-flow/guidance/docs/adrs/ADR-G005-proof-envelope.md b/v3/@claude-flow/guidance/docs/adrs/ADR-G005-proof-envelope.md index 286c8bc113..cf35c02033 100644 --- a/v3/@claude-flow/guidance/docs/adrs/ADR-G005-proof-envelope.md +++ b/v3/@claude-flow/guidance/docs/adrs/ADR-G005-proof-envelope.md @@ -75,7 +75,7 @@ The ledger supports temporal queries: `getEventsInRange(startMs, endMs)`, `getRe ### Negative -- **In-memory storage.** The current implementation stores events in an in-memory array. Long-running sessions with thousands of events will consume memory. Mitigation: events can be exported and cleared periodically via `exportEvents()` and `clear()`. +- **In-memory storage.** The current implementation stores events in an in-memory array. Mitigation: `RunLedger` accepts a `maxEvents` constructor parameter (default 0 = unlimited). When set, the oldest 10% of events are evicted in a batch splice when the limit is exceeded (see ADR-G026). Events can also be exported and cleared periodically via `exportEvents()` and `clear()`. - **No cryptographic chaining.** The current implementation uses UUIDs and guidance hashes but does not implement full hash-chain linking (each event's hash includes the previous event's hash). This is a future enhancement. - **Clock dependency.** Timestamps rely on `Date.now()`, which can be manipulated on the host. Mitigation: in production, timestamps should be sourced from a trusted time service.