Skip to content

Workbench File Map per-kind rendering + docs overhaul + engine cleanup - #371

Merged
nockawa merged 5 commits into
mainfrom
feature/file-map-impr
May 22, 2026
Merged

nockawa merged 5 commits into
mainfrom
feature/file-map-impr

Conversation

@nockawa

@nockawa nockawa commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Bundles three related streams plus engine cleanup. Headlined by the Workbench Database File Map — A6 per-kind chunk rendering feature; also lands a full DocFx documentation overhaul and several engine correctness/quality changes.

Scope: 5 commits, 139 files (+26,270 / −2,028).


1. Workbench — Database File Map: A6 per-kind chunk rendering (tools/Typhon.Workbench, 24 files)

Every chunk-based segment kind now renders its intra-chunk structure (L3 fill) and gets a typed L4 decoder, replacing the prior binary occupancy-only view. Establishes the ChunkFill (0–255 SoA) + ChunkClass (enum byte) wire format, extended incrementally per kind.

  • Cluster — intra-chunk fill heatmap, L4 N-slot entity sub-grid, per-component enabledMask overlay picker (green=enabled / dim=disabled / dark=free).
  • Occupancy pages — render their governed-page allocation region-map (were blank).
  • VSBS + String — per-chunk element/payload fill + traverse-free L4 decoders (element count/capacity + chain link; UTF-8 preview + chain link).
  • Hashmap (EntityMap) — bucket fill = EntryCount/capacity, meta/directory chunks hatched as non-data, overflow buckets dotted; L4 decoder for meta/directory/bucket/overflow.
  • Index (B-tree) — leaf/internal two-tone from the node control word, directory chunks (0..3) hatched non-data; L4 node + directory decoder (lists every tree: PK + secondaries). Per-node fill-heat deliberately skipped (low signal for a self-balancing B+tree; would need a tree walk).
  • Per-segment harvest summary card, L0 minimap, overlay/selection stores, Legend overhaul, Detail panel.
  • Server: new L4Decoder decoders + StorageMapService.Detail populators + StorageDetailDtos fields.

2. Engine — introspection, LogicalSegment, EcsQuery, doc crefs (src/Typhon.Engine)

  • StorageIntrospection (DatabaseEngine.StorageIntrospection.cs) — new cluster / occupancy / hashmap / index / VSBS layout accessors; introspection APIs made internal (via InternalsVisibleTo) except the three footprint queries.
  • LogicalSegment now persists its Kind in the root header (read back on Load) for authoritative segment classification. Removed the NoNextMap static field (CA1000) in favour of stack locals.
  • EcsQuery fluent API now throws on invalid cascades; NextEcsQueryId static moved out of the generic type into EcsQueryIdAllocator (CA1000).
  • XML doc crefs — converted <c>Type&lt;T&gt;</c> → <see cref="..."> across Runtime, Profiler, Spatial, Transactions, Schema, Ecs, Storage for IDE navigation + compiler validation.

3. Documentation (DocFx doc/, 77 files)

  • Removed 20 stale design docs + the obsolete typhon-architecture-layers.svg.
  • Added a user guide (6 chapters + a runnable SkirmishGuide example project).
  • Added a 46-file in-depth-overview series.
  • README refresh.

4. Tests

  • Engine: ClusterStorageTests (+274), EcsQueryTests (+44), SpatialEcsIntegrationTests (+117), StorageIntrospectionTests (+70).
  • Workbench: StorageDecoderTests (+255), StorageMapDetailTests (+317), extended fixtures.
  • Client: vitest suites for dbMap colors / grid / L0 + overlay store.

Test plan

  • dotnet test test/Typhon.Engine.Tests (cluster / query / spatial / introspection)
  • dotnet test test/Typhon.Workbench.Tests (decoder + detail)
  • Client: npm run typecheck + npx vitest run src/libs/dbmap
  • Visual: /wb-dev start, open a cluster-heavy .typhon, verify per-kind L3 fill, L4 decoders, occupancy region-map
  • DocFx build of doc/

🤖 Generated with Claude Code

nockawa added 5 commits May 20, 2026 17:08
+ Fix many doc <c/> instead of <see/>
+ EcsQuery fluent API now throws on invalid cascades
+ Workbench File Map view: many improvements
@nockawa
nockawa merged commit d10cf23 into main May 22, 2026
6 checks passed
@nockawa
nockawa deleted the feature/file-map-impr branch May 22, 2026 07:52
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.

1 participant