|
| 1 | +# PR_26160_077 DB Viewer Table Classification Report |
| 2 | + |
| 3 | +Generated: 2026-06-09 |
| 4 | + |
| 5 | +## Branch Validation |
| 6 | + |
| 7 | +| Check | Status | Evidence | |
| 8 | +| --- | --- | --- | |
| 9 | +| Current branch is `main` | PASS | `git branch --show-current` returned `main`. | |
| 10 | + |
| 11 | +## Requirement Checklist |
| 12 | + |
| 13 | +| Requirement | Status | Evidence | |
| 14 | +| --- | --- | --- | |
| 15 | +| Audit every DB Viewer table | PASS | See Full DB Viewer Table Classification. | |
| 16 | +| Classify each table as active runtime, deprecated/history, empty schema-only, or remove candidate | PASS | Every table from `/api/mock-db/snapshot` is listed with row count and classification. | |
| 17 | +| Ensure DB Viewer visually separates categories | PASS | `src/engine/api/mock-db-viewer-ui.js` table summaries now include `Active runtime data`, `Deprecated/history`, or `Empty schema-only`, with visible notes in each table body. | |
| 18 | +| Run targeted DB Viewer and Colors validation only | PASS | DB Viewer and Colors Playwright lanes passed; no full samples lane was run. | |
| 19 | +| Do not use inline script/style/event handlers | PASS | Changes are external JS/test/report only. | |
| 20 | + |
| 21 | +## Classification Rules |
| 22 | + |
| 23 | +| Classification | Rule | |
| 24 | +| --- | --- | |
| 25 | +| Active runtime data | Non-deprecated table with one or more records in the active DB adapter snapshot. | |
| 26 | +| Deprecated/history | Table listed in DB Viewer `DEPRECATED_TABLE_NOTES`. Currently only `palette_source_swatches`. | |
| 27 | +| Empty schema-only | Non-deprecated table with zero records; DB Viewer still shows headers for schema/readiness. | |
| 28 | +| Remove candidate | No table currently qualifies. Removal requires a later proof-only audit showing no runtime, migration, or history dependency. | |
| 29 | + |
| 30 | +## Full DB Viewer Table Classification |
| 31 | + |
| 32 | +| Table | Row Count | Classification | Notes | |
| 33 | +| --- | ---: | --- | --- | |
| 34 | +| `asset_import_events` | 0 | Empty schema-only | Asset import event schema is visible, but no baseline records exist. | |
| 35 | +| `asset_library_items` | 0 | Empty schema-only | Asset library schema is visible, but no baseline uploaded assets exist. | |
| 36 | +| `asset_role_definitions` | 8 | Active runtime data | Asset tool role definitions. | |
| 37 | +| `asset_storage_objects` | 0 | Empty schema-only | Asset storage schema is visible, but no baseline storage records exist. | |
| 38 | +| `asset_validation_items` | 1 | Active runtime data | Asset validation/checklist data. | |
| 39 | +| `game_configuration_records` | 0 | Empty schema-only | Game Configuration schema is visible, but no baseline configuration record exists. | |
| 40 | +| `game_configuration_validation_items` | 1 | Active runtime data | Game Configuration validation/checklist data. | |
| 41 | +| `game_design_documents` | 3 | Active runtime data | Game Design document records. | |
| 42 | +| `game_design_validation_items` | 0 | Empty schema-only | Game Design validation schema is visible, but no baseline rows exist. | |
| 43 | +| `palette_colors` | 0 | Empty schema-only | Active Colors table, empty until Project Swatches are added. | |
| 44 | +| `palette_source_swatches` | 838 | Deprecated/history | Deprecated source history/reference data only; not active Colors runtime data. | |
| 45 | +| `palette_swatch_usages` | 0 | Empty schema-only | Active usage-tracking table, empty until usage records are written. | |
| 46 | +| `project_journey_activity` | 2 | Active runtime data | Project Journey activity records. | |
| 47 | +| `project_journey_items` | 9 | Active runtime data | Project Journey note item records. | |
| 48 | +| `project_journey_note_types` | 7 | Active runtime data | Project Journey note type records. | |
| 49 | +| `project_journey_notes` | 4 | Active runtime data | Project Journey note records. | |
| 50 | +| `project_journey_templates` | 9 | Active runtime data | Project Journey template SSoT records. | |
| 51 | +| `project_workspace_palette_globals` | 1 | Active runtime data | Active Colors workspace metadata/global row. | |
| 52 | +| `roles` | 4 | Active runtime data | Users/roles model data. | |
| 53 | +| `tool_state_samples` | 47 | Active runtime data | Local/dev sample/tool state rows. | |
| 54 | +| `toolbox_tool_metadata` | 43 | Active runtime data | Tool metadata SSoT rows. | |
| 55 | +| `toolbox_tool_planning` | 43 | Active runtime data | Tool planning SSoT rows. | |
| 56 | +| `toolbox_votes` | 0 | Empty schema-only | Vote schema is visible, but no baseline user votes exist. | |
| 57 | +| `user_roles` | 7 | Active runtime data | Users/roles join rows. | |
| 58 | +| `users` | 5 | Active runtime data | User rows; Guest remains unauthenticated state only. | |
| 59 | +| `workspace_progress` | 1 | Active runtime data | Workspace progress record. | |
| 60 | +| `workspace_projects` | 4 | Active runtime data | Workspace project records. | |
| 61 | + |
| 62 | +## Remove Candidate Findings |
| 63 | + |
| 64 | +No table is currently recommended for removal. `palette_source_swatches` remains deprecated/history because PR_076 intentionally kept it for migration/reference inspection in DB Viewer. |
| 65 | + |
| 66 | +## Validation Evidence |
| 67 | + |
| 68 | +| Lane | Status | Evidence | |
| 69 | +| --- | --- | --- | |
| 70 | +| Branch guard | PASS | `git branch --show-current` returned `main`. | |
| 71 | +| Syntax checks | PASS | `node --check src/engine/api/mock-db-viewer-ui.js`; `node --check tests/playwright/tools/AdminDbViewer.spec.mjs`. | |
| 72 | +| DB snapshot audit | PASS | Inline Node/server probe listed every table, row count, and classification from `/api/mock-db/snapshot`. | |
| 73 | +| DB Viewer Playwright | PASS | `npx playwright test tests/playwright/tools/AdminDbViewer.spec.mjs --reporter=line` -> 7 passed. | |
| 74 | +| Colors Playwright | PASS | `npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs --reporter=line` -> 9 passed. | |
| 75 | +| Static validation | PASS | `git diff --check` passed with line-ending warnings only. | |
| 76 | + |
| 77 | +## Impacted Lanes |
| 78 | + |
| 79 | +- Admin DB Viewer runtime/UI lane. |
| 80 | +- Colors runtime/UI validation lane. |
| 81 | +- Changed-file syntax/static lane. |
| 82 | + |
| 83 | +## Skipped Lanes |
| 84 | + |
| 85 | +| Lane | Reason | |
| 86 | +| --- | --- | |
| 87 | +| Full samples validation | Samples and sample loaders were not touched. | |
| 88 | +| Unrelated Toolbox/Admin metadata migration | Out of scope for this DB Viewer table classification PR. | |
| 89 | + |
| 90 | +## Manual Test Notes |
| 91 | + |
| 92 | +No manual browser walkthrough was required. The targeted DB Viewer Playwright assertions prove visible category separation, and the Colors lane verifies grid behavior remains unchanged. |
0 commit comments