arborist-viz/arborist_viz
russell@unturf.com f78eab6fa4
sessions: richer tree cards, answer inline, /cache/<key> permalink
The bare-tree layout fox flagged ("kinda sucks") showed one line per
node and a huge empty page. Each node is now a card with:

  - bates + audit chip + branch/current pills in the header
  - the question, full width
  - cited-title pills row
  - <details> "answer (N chars)" expandable to the full claim-lattice
    pointer-line answer (monospace, scrollable, indented with a
    cyan accent stripe)
  - <details> "hashes / metadata" with cache_key (clickable to
    /cache/<key>), node_hash, subtree_hash, created_at, parent_bates

cmd-panel-wide on the tree page so cards fill the screen instead of
leaving 70% empty.

New /cache/{cache_key} page lists every session node referencing a
providence cache_key — surfaces the "this answer reused across N
turns/sessions" structure. /api/cache-key/{cache_key} JSON twin.

/api/resolve/{hash} now dispatches a cache_key to /cache/<key> (was
/sessions/find?q=<hash> which FTS5 couldn't tokenize). Also
recognises a session node_hash or subtree_hash → /sessions/{sid}.

Routes: /cache/{cache_key}, /api/cache-key/{cache_key} (distinct
from the pre-existing /api/cache/{cache_key} which targets the
providence_cache row itself; the ticket-§13 surface stays unchanged).

CSS: cmd-node-card, cmd-answer-pre, cmd-meta-dl, cmd-current-pill,
cmd-branch-pill, cmd-panel-wide; dark-themed with status-coded
borders (cyan for current, amber for branch points).
2026-06-01 17:49:35 -04:00
..
models Initial commit: arborist VIZ — Merkle command center 2026-05-28 09:22:59 -04:00
scripts Initial commit: arborist VIZ — Merkle command center 2026-05-28 09:22:59 -04:00
static sessions: richer tree cards, answer inline, /cache/<key> permalink 2026-06-01 17:49:35 -04:00
templates sessions: richer tree cards, answer inline, /cache/<key> permalink 2026-06-01 17:49:35 -04:00
tests Initial commit: arborist VIZ — Merkle command center 2026-05-28 09:22:59 -04:00
views sessions: richer tree cards, answer inline, /cache/<key> permalink 2026-06-01 17:49:35 -04:00
__init__.py sessions: list / tree / FTS5 search views via arborist.read.SessionsView 2026-06-01 17:41:24 -04:00
routes.py sessions: richer tree cards, answer inline, /cache/<key> permalink 2026-06-01 17:49:35 -04:00
schemas.py Initial commit: arborist VIZ — Merkle command center 2026-05-28 09:22:59 -04:00
storage.py sessions: list / tree / FTS5 search views via arborist.read.SessionsView 2026-06-01 17:41:24 -04:00