Files
Language-Server/docs/agent-workflow/tasks/T-REVIEW-SEMANTIC-013.md
T
faumaray da8003f6d4 Implement the VLS roadmap on the native VBS build
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.
2026-12-05 14:06:50 +03:00

7.4 KiB

Review stock GCC diagnostic and module-planning integration

Task ID: T-REVIEW-SEMANTIC-013 Role: astra_reviewer Status: READY

1. Context and baseline

November 28 retry on feat/implement-roadmap, HEAD ca04975. The original code remains in the working tree. Both builds now run 266 C++ cases, with only two known JSON number failures. The native and comparison executables passed the real stock GCC stdio corpus. This retry retains the original SARIF decoder and module planner review scope. The root is implementing DAP independently; its files are outside this review. The shared branch feat/implement-roadmap at ca04975 now has a C++ GCC16 SARIF adapter and P1689 module planner. Native VBS and CMake passed 210 inventoried C++ cases apart from two already recorded JSON precision/range cases. A native real GCC run applied the adapter to the actual DocumentSnapshot.cpp. The module owner released a final 21st case and claims_complete after that run. Both components are data-only (no compiler execution in these library functions).

2. Objective and deliverables

Independently review the integrated code, normal registrations and cross-component correctness; prioritize demonstrable wrong editor ranges, erroneous clean results, incorrect graph readiness/order or stale CMI reuse. Return concrete findings, severity and realistic distinguishing tests. Verify newly authored code, not worker summaries.

3. Scope and non-goals

Read-only focused postimplementation review of the two components below, their fixture evidence and registration. No workspace/provider permission or private compiler/OS supervisor review; no unrelated repository audit. No user contact, subagents, external actions or changes to source.

4. Files to inspect

Read docs/agent-workflow/tasks/T-{DIAGNOSTIC-SARIF-013,MODULE-GRAPH-011}.md and preflight amendments. Inspect include/vls/semantic/Diagnostics.hpp, src/semantic/Diagnostics.cpp, tests/semantic/{DiagnosticTests,GccDiagnosticFixture}.cpp, tests/corpus/frontend/verify-stock-diagnostics.py, include/vls/modules/ModuleGraph.hpp, src/modules/ModuleGraph.cpp, tests/modules/ModuleGraphTests.cpp, build.cpp, tests/NativeRegistration.cpp, CMakeLists.txt, tests/CMakeLists.txt. Compare with existing Docs snapshots and Build model, and actual GCC report examples under build/gcc-gate/{queries,constraint}.sarif. Use git diff plus actual untracked files. The separate real module-corpus bridge is still owned and in progress, so defer its final review.

5. Write ownership and coordination

Write scope: none Use only a private ignored build/review-semantic-013 directory for optional ephemeral benign source fixtures. No tracked changes, running VBS discovery, Git operations that mutate state, broad index of build artifacts or integration builds.

6. Implementation or investigation approach

Trace source/identity and all conditions required to admit a complete result. Inspect exact variant handling, unique expected artifact/RUN, traceable location policy, false positives at end-of-line, tabs and BOM, valid runner failures, estimate actual bounded work. For modules, distinguish absolute verified output/cwd, true incidence of complete scanned claims, partial graph, census changes, header info and live consumer set. Reuse existing actual data and deterministic controlled test mutations when testing. Interpret all claims against the reviewed task contracts.

7. Interfaces and data contracts

Public APIs decode_gcc_diagnostics, decode_scan and build_module_plan. Their caller must provide actual run and input identities, source-origin evidence, and an explicit validated module domain/census. A caller omitting required evidence should get an explicit limitation. Identify mistakes within that contract rather than treating receipt generation as implemented. Project entries are still passive in stdio. Providers already reviewed independently; do not re-audit them here.

8. Dependencies and integration

For the retry, the module bridge is now released and verified, superseding the earlier deferral in §4. Include tests/modules/GccScanFixture.cpp and tests/corpus/modules/verify.py and the final 21-case ModuleGraph. Stock GCC and the native helper passed all 33 observations; biased DAG detail→api→topology→importer and failed-with-rule status came from the C++ planner. The diagnostics fixture can also run with --isolated-inputs, and uses the new checked compiler-context lease. Assess only this fixture as a consumer; WorkspaceSession implementation has a separate owner. The original review assignment returned HTTP 429 before examining the files. No previous implementation or review role for this assignment. Root and module worker are validating target integration. You may run build/module-graph-011/module-graph-tests and build/bootstrap/tests/vls_diagnostic_tests or execute the standalone user-selected stock GCC corpus using its fixed flags. CMake/native may be recompiling the last header delta. Check actual timestamps/binary state if relying on behavior.

9. Edge cases security and performance

Watch for stale and missing evidence, scope of operation, numeric precision, catalog collision, deterministic limits, accidentally wrong errors/clears or silent resource amplification. Bound any local test data. No active project/compiler invocation other than explicit fixed test fixtures. No new UX/release requirements.

10. Acceptance criteria

Return READY only when the actual integrated files and affected contracts have been read. Otherwise identify file:line, concrete failing input, observed vs expected and smallest recommended correction. Distinguish real and unit verification, report which artifact you used. Treat a pending bridge or a separately documented upstream limitation as such.

11. Verification commands and evidence

From the repository root run build/bootstrap/tests/vls_diagnostic_tests --no-color and build/bootstrap/tests/vls_module_tests --no-color. These executables currently register 26 and 21 tests. The two original focused contracts and the immutable module planner are available in the shared worktree. The current stock caller's evidence is in build/stock-editor/final-installed-editor.log; review its interface to the decoder if a finding depends on caller behavior. Compiler execution for this review is optional and restricted to benign fixtures. Permitted checks: build/bootstrap/tests/vls_diagnostic_tests --no-color; build/module-graph-011/module-graph-tests --no-color; dev cpp-gcc -c python3 -B tests/corpus/frontend/verify-stock-diagnostics.py --fixture build/bootstrap/tests/vls_gcc_diagnostic_fixture --database build/native-validation/profiles/debug/editor/generations/b7da5a9f204361f4/compile_commands.json. All are from the repository root. Use scoped syntax/probes if informative.

12. Constraints and stop conditions

Stop and ask root for ownership ambiguity or major scope change. If provider/serializer changes might be needed, report a concise dependency; don't edit it or repeat the previous provider review. Keep separate responsibilities for compiler preparation/guards and the data adapter.

13. Authorization and decisions

Implementation D-022, native VBS D-025, GPT-6.2 Astra Max review D-027/029, optional local compiler feasibility D-028/030. No staging or deployment.

14. Return format

T-REVIEW-SEMANTIC-013 READY or CHANGES_REQUIRED per component, findings first with priorities, observations and commands, outstanding integration gates. Send confirmed actionable findings early.