Skip to content

Database File Map (Workbench Module 15) — Track A: the Map - #361

Merged
nockawa merged 4 commits into
mainfrom
feature/358-database-file-map
May 19, 2026
Merged

nockawa merged 4 commits into
mainfrom
feature/358-database-file-map

Conversation

@nockawa

@nockawa nockawa commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Closes #358.

Track A — the Map of the Database File Map Workbench module (Module 15): a 2D, semantic-zoom map of a Typhon database's on-disk layout where on-screen area is strictly proportional to bytes on disk — exposing fragmentation, free space and locality. Built from the live DatabaseEngine in-process; a Hilbert-curve page layout makes tiles and the LOD pyramid trivial.

Delivered in 4 phases:

  • A1 — Coarse map. Engine read-only accessors; StorageMapService + coarse StructuralMap + Hilbert aggregate pyramid; /dbmap REST surface; hand-rolled 2D camera + Hilbert layout + viewport culling; L0/L1 bands + crossfade; three coarse encodings; minimap, breadcrumb, offset strip.
  • A2 — Depth. Page-body read accessor; detail-tier StructuralMap; L3 chunk grid + L4 content bands + crossfades; server-side L4 decoders; detail-tier encodings (fill/write-age/CRC/residency); full Detail-panel decode.
  • A3 — Analysis. Lenses (fragmentation/free-space/pathology); fragmentation-%/density/reclaimable metrics; decode-free entropy + byte-class encodings; sortable region table; search / fly-to.
  • A4 — Integration & scale. Cross-links (Resource Explorer ↔ map, Schema Inspector ↔ map; Admin Ops Compact + WAL Events degrade to disabled+tooltip — modules absent) + nav-history (Alt+←/→); bookmarks (persisted per database); filter-to-dim; export (PNG view / PNG whole map / region CSV) + copy/reveal context menu; down-sampling + approximate mode for large databases.

Design doc: claude/design/Apps/Workbench/Modules/15-database-file-map.md §13 Track A (per-phase acceptance criteria, decisions, deviations). Track B (Captures & Diff) is explicitly out of scope.

Tests: server NUnit (Typhon.Workbench.Tests — coarse/detail/scale + auth + invariants), client Vitest (libs/dbmap + stores), Playwright canaries (e2e/dbmap-*.spec.ts). All green; typecheck + ESLint clean.

🤖 Generated with Claude Code

@nockawa
nockawa merged commit 16b4c58 into main May 19, 2026
6 checks passed
@nockawa
nockawa deleted the feature/358-database-file-map branch May 19, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database File Map (Workbench Module 15) — Track A: the Map

1 participant