Files
leleka/engine/strata/apps/host/docs/plans/06-workspace.md
T
Pavlo RatushnyiandClaude Sonnet 5.5 87e2633afe engine/strata: bring the Strata subtree to upstream 41cf05a0 (engine 0.1.50) with the local patches re-applied
Documented tree replacement (the history has no git-subtree metadata): 3-way merge of the old subtree
(570201a:engine/strata) against upstream 41cf05a06a25dd29103b7b27a2279a3f60c21876 (2026-10-25), merge base =
the old pin d9ab8435 (tree-identical to upstream 5b734e42; d9ab8435 is not an ancestor of upstream main).

Local patches re-applied by hand where they conflicted (15 files): STRATA_CUDA_STATIC profile, experimental KAR
experts and KAR PLE arms, keyless V-only arm (now beside upstream's K8V4 hybrid KV and fused norm+rope). Details,
conflict table and left-out files are in docs/upstream.md.

Left out (weights, captures, logs, media): new bench/results (2022 files), binary media and app assets (61),
docs/work/evidence (24), *.bin / *.gguf data files, and the 7 files the first import already left out.

scripts/build-cpu.sh: build the 11 CPU tests upstream registered since the old pin (they ran as "Not Run").
Checked: build-cpu.sh 16/16 ctest in WSL; sm_86 CUDA objects of the patched files compile, also with the KAR
macros on. No GPU run, no quality gate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 12:49:15 +01:00

3.8 KiB

06 · Workspace

Route #/workspace · File src/screens/Workspace.tsx (219 lines)

What the model can see. The screen that makes "local" concrete: these are your files, and this is the boundary.

What it is today

  • A file tree — treerow per node, directories expandable, sizes on files, a Select for workspace root.
  • A "What Strata may touch" card — the scope explanation.
  • Filters — a few Select controls and a search field.

Where it falls short

  1. Directories use the layers icon. The kit gained real folder and file glyphs two rounds ago and the sprite carries them; only the sidebar uses folder. This is the most visible inconsistency in the app — the file tree is the one place a folder icon is unambiguous.
  2. Files have no icon at all, only a size. A directory and a file differ by the presence of a chevron.
  3. Tree expand/collapse is instant. The workspace tree in the sidebar animates a grid track; this one, the main event, does not. The two should not behave differently.
  4. The detail panel shows metadata, not the file. Selecting a node does render a panel (Workspace.tsx:168) with kind, path, item count or size, changed time, Copy path and "Add as reference" — but never the file's contents. Reading a file the model can read is the obvious next step and the panel is already there to hold it.
  5. Modified time is shown in the detail panel but not in the tree, so scanning for what changed recently means clicking through nodes one at a time.
  6. No indication of what the model has actually read. The tool runs are in the transcript; the workspace does not reflect them, though it is the natural place to see "these three files were opened".
  7. The scope card states the rule but not the consequence — no count of files or total size in reach.

The plan

Substance — make the boundary legible

  1. Real icons: folder for directories, file for files, both already in the sprite. Distinguish common types by tint only, never by adding a second icon family.
  2. Extend the existing detail panel with contents. It already carries the header (kind, path, size, changed) and two actions; add the file body beneath as a read-only code surface, fetched on selection. Metadata without contents is a panel that answers every question except the one that was asked.
  3. "Read by the model" markers. Done. Files that appear in a tool call in the current session get a subtle marker and a count, so the boundary is not just stated but demonstrated.
  4. The scope card gains figures: 128 files · 4.2 MB in reach.

Hierarchy

  1. Tree is the hero, filters are secondary. Today the filter row and the tree have comparable weight.

Fluidity

  1. Tree rows animate open and closed using the same grid-track technique as the sidebar tree and the context rail — one technique, three places.
  2. The preview pane slides in from the right like the context rail, on the same --st-t-surface track animation, rather than appearing.
  3. Keyboard navigation: arrows to move and expand, Enter to preview. A tree without keyboard traversal is a list with extra steps.

Motion

Interaction Spec
Node expand/collapse grid track 0fr → 1fr, --st-t-local
Preview open/close grid track, --st-t-surface — same as the context rail
Row selection Background only, --st-t-micro
Icon swap on expand None. The chevron rotates, --st-t-control; the icon does not change

Verification

  • Assert no directory renders the layers glyph — the audit can check icon names against node kind.
  • Assert selecting a file renders a preview with non-empty content.
  • Add flow workspace: expand a directory, select a file, assert the preview path matches, collapse again.