Repository navigation
Description
Execution plan: claude/design/Apps/Workbench/stages/stage-2-inspect.md · Runways: 08-api-evolution.md, 09-shell-evolution.md · depends on #373 (Stage 1).
Goal: Mount the redesigned zone-D Inspect views onto the finished shell — schema → data → disk — one at a time, each conformant. The GAP-02 consolidation (6 schema panels → 2 deep inspectors + 1 archetype-rooted navigator) happens here; reintroduction is the redesigned view, not a re-enable of the old panel.
Exit gate: the J1 drill E2E green end-to-end — E2E-J1.1 (the 9-gesture archetype→component→field→entity-value→byte drill), J1.2 (M:N used-in), J1.3 (type-first auto-pick), J1.4 (fragmentation + storage health) — within J1's ≤9-gesture budget, with every reintroduced view passing conformance D/E/F/H (+G for colored views).
Build order (dependency sequence — the J1 flow is the order)
Phase 1 — Schema spine (the GAP-02 consolidation)
- 1. Schema Explorer — archetype-rooted navigator; becomes the Open-session default center (kills the StartHere dead-end). (GAP-02, GAP-01)
- 2. Archetype Inspector — deep: Components · Entities · Storage · Indexes-here; un-gated (PC-2 picker on no-selection). (GAP-02)
- 3. Component Inspector — deep: Layout · Indexes · Storage-mode · Used-in · Relationships; field click → bus. GAP-25
StorageModeDTO delta ships in the same PR. (GAP-02, GAP-14 client)
Phase 2 — Data drill
- 4. Data Browser reintroduced — scoped open, paging, entity → bus → decoded component cards; client filter graceful-degraded (GAP-15 client part). (GAP-03 consumer)
- 5. Uniform "Open in → Data Browser" (GAP-03) — identical from Archetype/Component/Resource, no disabled stubs (PC-6), incl. the M:N type-first picker.
Phase 3 — Storage drill + close the loop
- 6. File Map reintroduced onto the bus (retire
useDbMapSelectionStore) + DS-2/3 color consolidation (dbMapColors→ shared scales; stable hue-per-object;onColorAA). (GAP-04, DS-2/3) - 7. Bidirectional reveal (GAP-04) — Reveal in → File Map from Resource/Schema/Inspector; File Map → Open in Schema / Reveal in Resource Tree.
- 8. Storage Health dashboard — aggregate occupancy/dirty/fill/WAL-tail + sortable per-segment table; ships the additive
GET dbmap/healthrollup in the same PR. (GAP-16)
Integration milestone — the J1 drill (continuous anchor)
- After P1: archetype → component → field, all via bus → Inspector (+ context stack) — the schema half.
- After P2: + Open in Data Browser → entity → decoded component cards.
- After P3: + Reveal in File Map → page/chunk with
Segment ⊃ Page ⊃ Chunkancestor stack → close the loop to Schema/Resource; fragmentation lens + Storage Health.
Acceptance criteria (each ↔ a conformance suite / UC-DB / J1 E2E; all must be green)
- AC2.1 Schema Explorer — Open lands here (archetype-rooted, no placeholder); fuzzy search · filters · Archetypes/Types toggle; row → bus. (UC-DB-01/02; D, E)
- AC2.2 Archetype Inspector — un-gated; one selection drives Components/Entities/Storage/Indexes-here; empty state = picker. (UC-DB-21/22; D, E)
- AC2.3 Component Inspector — Layout (field → bus) · Indexes (type-global) · Storage-mode · Used-in · Relationships; un-gated;
[/]cycle,G Cfocus. (UC-DB-03/04/05/06; D, E, F) - AC2.4 StorageMode delta — Component DTO carries
StorageMode; renders per mode (Versioned/SV/Transient). (UC-DB-23; additive-API test) - AC2.5 Data Browser — scoped open; paging with no dupes/skips; entity → bus → decoded component cards. (UC-DB-08/09/10; D)
- AC2.6 Uniform handoffs — Open in → Data Browser identical from Archetype/Component/Resource; zero disabled
Open in / Reveal in / Go tostubs. (GAP-03; E + UC-XV) - AC2.7 M:N type-first picker — type-first Open in Data Browser auto-picks the max-entity archetype and surfaces which + a change control. (E2E-J1.3)
- AC2.8 File Map on the bus + reverse reveal — selection on the bus (
useDbMapSelectionStoreretired); Reveal in → File Map from Resource/Schema; bidirectional loop. (UC-DB-16/17) - AC2.9 Storage Health — dashboard + sortable per-segment table; row → Reveal in File Map; values update on heartbeat. (UC-DB-19; D)
- AC2.10 Color (DS-2/3) — deterministic stable hue-per-object;
onColor(bg)AA ≥ 4.5:1; chrome uses tokens only. (suite G) - AC2.11 Per-view conformance — every reintroduced view: state set (PC-2/D), no broken affordances (PC-6/E), keyboard + roving (PC-8/F), density re-measure (DS-1/H). (parameterized per view)
- AC2.12 J1 E2E (headline) — E2E-J1.1 (9-gesture) + J1.2 + J1.4 green end-to-end within J1's click budget. (exit gate)
- AC2.13 GAP-02 subtraction — the legacy
SchemaBrowserPanel/ArchetypeBrowserPanel+ the fourSchema*panels and their menu/palette entries are removed, not merely superseded. (suite E DOM/command + removed-symbols check) - AC2.14 Handoff matrix green — every Stage-2 cross-view handoff pair resolves end-to-end. (UC-XV- matrix)*
- AC2.15 File Map preserved through the bus migration — render, LOD drill, fragmentation lens → Metrics, page/chunk click → Inspector still work. (UC-DB-13/14/15 regression guard)
- AC2.16 PC-1 preferences persist — Schema Explorer last mode (file); Data Browser page-size + preview columns (file × archetype); File Map bookmarks (database); Component Inspector type-first archetype pick (file × component). (PC-1 conformance)
Risks / out of scope
- GAP-02 is a consolidation, not a port — subtract & unify; delete the old
SchemaBrowser/ArchetypeBrowser/Schema*panels as their replacement lands (never leave both). Phase 1 concentrates the risk. - File Map strangler — the bus already mirrors
useDbMapSelectionStore(Stage 1); flip the consumer, then retire the silo. Don't add new plumbing. - Engine-gated, graceful-degraded (never block) — index find-by-value (GAP-15 engine), component go-to-source / real Open-session revision (GAP-14/G4): ship the UI degraded per PC-2/PC-6; the client filter ships now.
- Reintroduction gating — flip a view's
ZONE_D_VIEW_ACTIVEentry totrueonly when it is conformant (D/E/F/H green), somainnever regresses the shell. - Additive API only —
StorageModeandGET dbmap/healthship in the same PR as their view. - Out of scope: server-side find/sort (GAP-15 engine), component go-to-source / Open-session revision (GAP-14/G4), Compare/Diff multi-session
SessionContextrewrite, write/edit, Stages 3–4 (Profile/Query/Observe).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
Workbench redesign — Stages 1–4 + perf hardening + J2/J3 E2E (#379)