commit
ca04975d54
62 files changed
+3381
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# 21 — Shared custom inspection API and view models
|
||||
|
||||
Status: PLANNED; no implementation claim
|
||||
Requirements: R-013,R-016,R-018,R-019,R-020
|
||||
Dependencies: 12,18,19,20; contract frozen before independent22/23 view implementations.
|
||||
|
||||
## Ownership and boundaries
|
||||
Proposed Sol: NEW include/vls/debug/inspection/, src/debug/inspection/, tests/debug/inspection/. Root owns versioned response schemas consumed by both clients.
|
||||
Future assignments must verify the then-current baseline and exact disjoint paths;
|
||||
these proposed scopes do not authorize work in another repository.
|
||||
|
||||
## Contracts and data flow
|
||||
NEW read-only custom DAP requests expose event timeline, template/constraint tree, reflection entities and generated-source views. All requests include session and stop/replay generation; responses are bounded/paged and carry the same identity. DAP remains the sole execution-control authority.
|
||||
|
||||
## Implementation sequence
|
||||
1. Define stable view DTOs with source links, event/type/entity IDs, child pagination and explicit incomplete/unavailable states. Avoid exposing raw AST structures as a public schema.
|
||||
2. Project live captured state and saved replay through the same query service, preserving the difference between source snapshot and current editor contents.
|
||||
3. Implement lazy expansion, deterministic ordering, pagination/cancellation and bounded content rendering. Generated-source views include origin chains and remain read-only.
|
||||
4. Define command bindings for clients to select an event/entity and navigate to source through standard controls, without creating a second independent debugger state machine.
|
||||
|
||||
## Failure behavior and constraints
|
||||
Stale responses are rejected after continue/step/seek even if source bytes have not changed. Missing values, truncated trees or unsupported entity forms remain visible. Paging tokens are session/generation-bound; client text is escaped before HTML/editor rendering.
|
||||
|
||||
## Acceptance scenarios
|
||||
1. Compare identical live/replay view queries and verify stable origins/values at matched positions.
|
||||
2. Race inspection/paging against continue, replay seek, termination and backend restart; ensure obsolete content cannot replace current views.
|
||||
3. Test huge graphs, cycles, hostile display strings, incomplete traces and client cancellation within memory/latency limits.
|
||||
|
||||
## Verification and integration
|
||||
Proposed NEW CTest label: `inspection`. Once implemented, register a nonzero suite and run:
|
||||
```sh
|
||||
dev cpp-gcc -c ctest --test-dir build/bootstrap -L inspection --output-on-failure
|
||||
```
|
||||
This future command is not evidence that the label/tests exist now. Before dispatch,
|
||||
bind the fixtures above to actual targets and record prerequisites/side effects.
|
||||
Require fresh independent review of the implemented contract and affected integrations.
|
||||
Keep old schema versions only through explicit adapters; incompatible clients receive clear errors. Disable custom inspection without disabling standard DAP control or altering trace data.
|
||||
Reference in new issue
Block a user