# Review the integrated C++ replay adapter and inspection service Task ID: T-REVIEW-DAP-020 Role: astra_reviewer Status: READY ## 1. Context and baseline Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap, ca04975 plus uncommitted work. The earlier DAP preflight approved lifecycle ordering and integral value mapping and identified invalid UTF-8 source; its paging/control review ended in HTTP 429. A standalone recorded adapter and inspection service now compile. Four DAP subprocess cases pass in CMake. GCC's actual fixture and source path were selected by the launcher. ## 2. Objective and deliverables Review the integrated diff against the recorded-debug adapter and inspection contracts. Find any reproducible correctness, privilege, parsing, resource or interoperability defect. Give separate disposition on session projections, control/page lifetimes, and transport. Independent implementation fixes are root-owned. ## 3. Scope and non-goals Recorded compiler sessions over private stdio, the new C++ files, build wiring, real journal fixtures and tests. Exclude heavy compiler builds, live-debug design, plugin distribution and broad LSP work. ## 4. Files to inspect Read include/vls/debug/inspection/ReplaySession.hpp, src/debug/Fields.hpp, src/debug/inspection/ReplaySession.cpp, src/debug/dap/{Main.cpp,Projection.hpp,Projection.cpp}, experiments/frontend/gcc-worker/{Trace.hpp,Trace.cpp}, tests/debug/DapReplayTests.cpp and build.cpp, CMakeLists.txt, tests/CMakeLists.txt and tests/NativeRegistration.cpp. Original contracts are docs/agent-workflow/tasks/T-{PLAN-DAP-020,PREFLIGHT-DAP-020,DAP-TRANSCRIPTS-020}.md. Inspect protocols at the source lines needed; consult official Microsoft DAP specification for uncertain requirements. ## 5. Write ownership and coordination Write scope: none Only private benign verification material under build/review-dap-020 is permitted. No shared source, repository manifests/workflow, user configurations, Git changes or additional agents. Root is implementing the Python transcripts and final native integration. Report any required change to root. ## 6. Implementation or investigation approach Drive the actual build/bootstrap/vls-dap --replay with structured framed requests through isolated subprocesses. Check sequence correlation, duplicate handling, initialization/configuration orders, recorded stop versus other value, declared source availability versus arbitrary disk, positive reference validity and paging. Follow the same actual object from custom seek/session through standard stack/variables. Test official strict semantics; don't infer pass simply from current tests. ## 7. Interfaces and data contracts Schema v1 and replay are frozen in T-DAP-TRANSCRIPTS-020 ยง7. All read pages and seek require sessionId/schemaVersion/generation. Event 5 is provisional inner 17, E6 the real stopped record; E7 acknowledges step, E8 completes inner, E10 holds 34, E11 acknowledges continue. E20/E22 are observed without a compiler stop. Adapter seq, pause generation and compiler sequence are distinct. Raw source bytes may include NUL or invalid UTF-8. Standard frames have no physical source mapping and use line/column zero. ## 8. Dependencies and integration Real recordings under tests/debug/fixtures/{integral-17,integral-41,cancelled-41}.vls and the private immutable reader are available. Test source opens from arbitrary cwd, no compiler on PATH. Externally verified live evaluation and compiler changes are separate. Root is preparing current VBS artifacts and will relay if available. ## 9. Edge cases security and performance Review captured source bound including 1 MiB expanded JSON, malformed fields, binary source and missing HELLO/empty prefix; no arbitrary path, plugin, shell, executable or debuggee launch. Check stale frame/scopes and page/control generations including seek ABA, deadlines/EOF partial framing, truthful thread/capability state, range and accepted integer representation. Any finding should name what data was actually trusted and a representative input. ## 10. Acceptance criteria 1. Reproduce a real standard and custom transcript using at least one real journal. 2. Recover any distinct observed edge case or explicitly note the examined behavior. 3. Identify remaining missing live/client gates separately from scoped defects. 4. Supply suggested local correction and distinguishing regression for each confirmed defect. ## 11. Verification commands and evidence From the root use build/bootstrap/tests/vls_dap_tests --no-color and --list --no-color. Use build/bootstrap/vls_gcc_probe replay "$PWD/tests/debug/fixtures/integral-17.vls" 6 or 8 for ground truth. Invoke tests/native/DapReplay.py only once available, or a private bounded Python stdio transcript. Never relaunch compiler builds or mutate the shared VBS selector during review. ## 12. Constraints and stop conditions Inspect the current files directly; prior plans and summaries are evidence pointers. Stop this assignment if new source ownership or a scope expansion is required, and send the issue to root. No external messages or commits. Perform only this independent review. ## 13. Authorization and decisions Full implementation D-022, separate branch, native D-025. Execute as generic GPT-6.2 Astra at Max per D-027/029; user specifically requests same-family maximum effort on reviews. ## 14. Return format T-REVIEW-DAP-020 READY or CHANGES_REQUIRED, outcomes per component, priority, paths/lines, actual reproduction and unverified integration gates. Send early concrete findings; no subagents.