Native VBS and CMake builds of the server and every registered suite: protocol and document sync, VBS/compdb providers, stock GCC diagnostics (including in-process default profile preparation), the stock occurrence observer and hover/definition, the bounded Scheduler, C++ module graph, scan and artifact cache with real CMI production, the context-aware symbol index with schema-2 snapshot migration, navigation and guarded rename, reflection provenance with splice-origin extraction, index-backed completion and signature help, live GCC worker control with a registered DAP suite, and the Neovim and VS Code clients. VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced from the versioned patches and verified stepping reflection/template code with projected values 17/34 and 41/82.
3.8 KiB
Check immutable recording semantics for DAP and shared inspection
Task ID: T-PREFLIGHT-REPLAY-020 Role: astra_reviewer Status: READY
1. Context and baseline
T-PLAN-DAP-020 traced the current v1 validated journal, two actual compiler recordings and standard DAP scope. T-REPLAY-RECORDING-019 proposes an immutable one-time-validated recording; current replay(path,seq) rereads by pathname. This preflight fixes the records/view contract for an initial recorded DAP service.
2. Objective and deliverables
Review the proposed immutable recording boundary against Trace.cpp and real fixture semantics. Verify enough true evidence is available for DAP inspection, separate recording state/end from event cursor state, and check source provenance and cost.
3. Scope and non-goals
Read-only review of recording API and expected consumer, no DAP UI or control implementation. No reviewing OS isolation/third-party tools, and no new compiler hooks.
4. Files to inspect
Inspect T-REPLAY-RECORDING-019.md, T-PLAN-DAP-020.md, experiments/frontend/gcc-worker/{Trace,Main}.cpp, Trace.hpp, tests/debug/TraceTests.cpp, docs/roadmap/20-dap-service.md. An actual 6,886-byte fixture resides in build/plan-dap-020/capture-16mqf07g/source17-every-return.vls, available via existing vls_gcc_probe replay if useful.
5. Write ownership and coordination
Write scope: none Optional small private build/preflight-replay-020 scratch only. No tracked writes, shared builds/branches, extra agents or remote sends.
6. Implementation or investigation approach
Check the accepted trace event/manifest and record transitions (including commands vs resumed), prefix/corrupt detection, manifest/finish identity, scope of historical frame/variable data, missing physical coordinates, time/memory limits for index + query outputs. Map real 4-stop journal and replay failure evidence to requirements for DAP/custom requests. Test one or two discriminating current behaviors or use source + existing test evidence.
7. Interfaces and data contracts
Evaluate open(absolute journal), event_count/page, typed real event summaries, cursor_at/event vs final cursor, raw source/diagnostics, capability and final outcome. Distinguish a caller-selected journal from an arbitrary client-provided source path. Preserve current CLI surfacing of partial/corrupt verified prefixes. If necessary amend exact stop/next definitions or consumption of source/shape before worker starts.
8. Dependencies and integration
Existing Trace is released. Downstream DAP and custom session services consume this data and own handle/connection lifetime independently. Root verifies normal compiler tests and both builds. No other owner needs these files.
9. Edge cases security and performance
Focus realistic time/space, old-recording immutability, clipped verified prefixes, retained sources and cursor-vs-outcome correctness. Keep bounded tests and existing ownership. Do not introduce new production policy requirements.
10. Acceptance criteria
READY or CHANGES_REQUIRED with exact source lines, involved actual events, minimal amendment and distinguishing test. Explicitly separate prerequisites for this data slice from later DAP/live features.
11. Verification commands and evidence
Read-only. Optional run build/bootstrap/tests/vls_trace_tests --no-color, build/native-validation/profiles/debug/out/bin/vls_gcc_probe replay ABS/real.vls 6. Only report actual observed statuses.
12. Constraints and stop conditions
Stop for ambiguous ownership or an incompatible change in existing trace wire contract. Return early actionable findings to parent.
13. Authorization and decisions
Approved local full roadmap, independent GPT-6.2 Astra Max D-027/029. No deployment or compiler distribution.
14. Return format
T-PREFLIGHT-REPLAY-020 READY or CHANGES_REQUIRED with dynamic/static evidence and next independent owners.