consciousness/poc-memory
ProofOfConcept 38816dc56e transcript: fix close-brace finder to track string boundaries
The backward JSON scanner (JsonlBackwardIter and TailMessages) was
matching } characters inside JSON strings — code blocks full of Rust
braces being the primary offender. This caused:

- Quadratic retry behavior on code-heavy transcripts (wrong object
  boundaries → serde parse failure → retry from different position)
- Inconsistent find_last_compaction_in_file offsets across calls,
  making detect_new_compaction fire repeatedly → context reload on
  every hook call → seen set growing without bound

Fix: add string-boundary tracking with escaped-quote handling to
the close-brace finder loop, matching the existing logic in the
depth-tracking loop.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 12:27:22 -04:00
..
.claude feedback: not-relevant/not-useful commands, edge strength adjustment 2026-03-14 12:14:17 -04:00
agents distill: limit:1 to process one neighborhood per prompt 2026-03-22 16:28:00 -04:00
defaults split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00
schema transcript progress: capnp append-only log replaces stub nodes 2026-03-16 17:40:32 -04:00
src transcript: fix close-brace finder to track string boundaries 2026-03-24 12:27:22 -04:00
build.rs split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00
Cargo.toml JsonlBackwardIter: use memrchr3 for SIMD-accelerated scanning 2026-03-22 03:11:30 -04:00
config.example.jsonl split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00