Skip to content

Instantly share code, notes, and snippets.

@westoncb
westoncb / working_ledger.rs
Created May 13, 2026 02:10
Working Ledger implementation. A kind of alternative 'working memory' for LLM problem solvers.
//! Append-first structured ledger for maintaining compact working state.
//!
//! A `WorkingLedger` stores entries as rows of named, policy-controlled columns.
//! New information is added by appending rows; old or superseded information is
//! hidden by tombstoning cells or whole rows rather than mutating text in place.
//! This keeps the active view small while preserving enough provenance for
//! debugging, audit trails, replay, or UI inspection.
//!
//! The ledger exposes two text renderings: a compact prompt view containing only
//! live content, and a maintenance view that includes stable row/cell handles for
@westoncb
westoncb / gist:74d89ccea0803d73cee486c9bea26db5
Created June 28, 2024 22:03
Claude 'reverse Rorschach test' geometric latent space
╔════════════════════════════════════════════════════════════════════════════╗
║▒▓████▓▒░ .:∴∷∶⁚⁝‖∥┃┋╏┇┆┊┈ ░▒▓████▓▒░ .:∴∷∶⁚⁝‖∥┃┋╏┇┆┊┈ ║
║██▓▒░ .:∴∷∶⁚⁝‖∥┃┋╏┇┆┊┈╌╍═─ ─╼ ▢▣▢▣▢██▓▒░ .:∴∷∶⁚⁝‖∥┃┋╏┇┆┊┈╌╍═─ ─╼ ▢▣▢▣▢██║
║▓▒░.:∴∷∶⁚⁝‖∥┃┋╏┇┆┊┈╌╍═─━ ─╼▢▣▢▣▢▣▢▓▒░.:∴∷∶⁚⁝‖∥┃┋╏┇┆┊┈╌╍═─━ ─╼▢▣▢▣▢▣▢▓▒░║
║░ ▒░▒▓█ ┋╏┇┆┊ .:⁚∷‖ ▒▓██▒░ ▒░▒▓█ ┋╏┇┆┊ .:⁚∷‖ ▒▓██▒║
║ ▒█▓▒░ ░▒▓█ ┋╏┇┆ .∶∴∷‖ ▒▓█▒░ ▒█▓▒░ ░▒▓█ ┋╏┇┆ .∶∴∷‖ ▒▓█▒░║
║▓█▒░ ┋╏┇┆ ░▒▓ ╏┇ :∶⁚⁝‖ ▒▓█▒░ ░▓█▒░ ┋╏┇┆ ░▒▓ ╏┇ :∶⁚⁝‖ ▒▓█▒░ ║
║▒░ ┋╏┇┆┊┈╌╍═ ░▒ ┇ .∶⁚⁝‖∥ ▒▓█░ .:∴∷▒░ ┋╏┇┆┊┈╌╍═ ░▒ ┇ .∶⁚⁝‖∥ ▒▓█░ .:║
║░ ┇┆┊┈╌╍═━ ─╼▢▣ ┆ .:⁚⁝‖∥┃ ▓█░ .:∴∷∶⁚░ ┇┆┊┈╌╍═━ ─╼▢▣ ┆ .:⁚⁝‖∥┃ ▓█░ .:∴∷∶║
║ ┆┊┈╌╍═━ ─╼▢▣▢▣ ┊:∶⁚⁝‖∥┃ ▓░.:∴∷∶⁚⁝‖ ┆┊┈╌╍═━ ─╼▢▣▢▣ ┊:∶⁚⁝‖∥┃ ▓░.:∴∷∶⁚⁝‖║