|
| 1 | +# BUILD_PR_DEBUG_SURFACES_INSPECTORS |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Build a docs-first, implementation-ready bundle for the first inspector layer in debug surfaces. |
| 5 | + |
| 6 | +## Workflow |
| 7 | +PLAN_PR -> BUILD_PR -> APPLY_PR |
| 8 | + |
| 9 | +## Build Scope |
| 10 | +- define read-only inspector contracts |
| 11 | +- define entity/component/state/timeline/event inspector boundaries |
| 12 | +- define adapter ownership (shared vs project-specific) |
| 13 | +- define validation and rollout for inspector apply |
| 14 | + |
| 15 | +## Hard Constraints |
| 16 | +- docs only in this BUILD bundle |
| 17 | +- no runtime implementation code |
| 18 | +- no engine core API pollution |
| 19 | +- inspectors remain read-only in this phase |
| 20 | +- preserve existing debug behavior and boundaries |
| 21 | + |
| 22 | +## Inspector Contract Targets (v1) |
| 23 | +1. Entity inspector surface: |
| 24 | +- id/label/type summaries |
| 25 | +- filtered listing and selection contract |
| 26 | + |
| 27 | +2. Component inspector surface: |
| 28 | +- component type summaries |
| 29 | +- read-only component payload preview contract |
| 30 | + |
| 31 | +3. State diff viewer surface: |
| 32 | +- deterministic before/after summary format |
| 33 | +- bounded diff size and truncation rules |
| 34 | + |
| 35 | +4. Timeline debugger surface: |
| 36 | +- event marker summaries |
| 37 | +- timestamped sequence contract |
| 38 | + |
| 39 | +5. Event stream viewer surface: |
| 40 | +- normalized event record shape |
| 41 | +- severity/category tagging contract |
| 42 | + |
| 43 | +## Adapter Boundaries |
| 44 | +Shared layer: |
| 45 | +- inspector interface contracts |
| 46 | +- read-only normalization rules |
| 47 | +- registration and lifecycle seams |
| 48 | + |
| 49 | +Project/sample layer: |
| 50 | +- source extraction adapters |
| 51 | +- domain-specific mapping/formatting |
| 52 | +- sensitive field redaction policy |
| 53 | + |
| 54 | +## Validation Targets |
| 55 | +- all inspector surfaces remain read-only |
| 56 | +- no direct mutation paths are introduced |
| 57 | +- adapter boundaries are explicit and enforceable |
| 58 | +- apply sequence remains additive and non-destructive |
| 59 | + |
| 60 | +## Apply Handoff |
| 61 | +`APPLY_PR_DEBUG_SURFACES_INSPECTORS` should implement only approved read-only seams and keep project-specific extraction outside shared engine-debug surfaces. |
0 commit comments