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.
This commit is contained in:
faumaray committed 2026-12-05 14:06:50 +03:00
1 parent ca04975d54
commit da8003f6d4
310 files changed
+47552 -480

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
# Review the integrated native build, protocol and document synchronization
Task ID: T-REVIEW-005
Role: astra_reviewer
Status: READY
## 1. Context and baseline
Fresh read-only integrated review on /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975. Native build, dependency preparation, checked Protocol, immutable Documents and real session wiring are present. Two upstream JSON precision/range issues remain. Model and workspace workers have disjoint ongoing edits. Earlier preflight accepted four contracts, prescribed model/session amendments; the second contract check got HTTP 429. This is an actual source/diff review of the completed slices.
## 2. Objective and deliverables
Return actionable defects and separate verdicts for native preparation/build/registration, protocol/session and documents. Include actual source surrounding each finding and a minimal benign reproducer when practical. Evaluate the amended session contract against its actual wire implementation. Prioritize correctness/time/resource defects affecting current use.
## 3. Scope and non-goals
Scope is the integrated native, protocol and document/code paths plus the CLI/lifecycle compatibility and their tests. Existing R-003 JSON findings are already tracked; report any new behavior separately. Workspace authority/model/provider internals are separate reviews. Do not evaluate the proposed compiler as a successful backend.
## 4. Files to inspect
Read tasks/T-NATIVE-PREP.md, T-NATIVE-001.md, T-PROTOCOL-005.md, T-DOCS-003.md and T-SESSION-003.md, the relevant preflight corrections and REVIEW.md. Inspect the actual diff from ca04975, including untracked files under include/Void/LanguageServer/{Protocol,Documents}, src/{Protocol,Documents}, src/Server.cpp, src/DocumentSync.cpp, include/vls, build.cpp, tools/prepare-voidlibrary, tests/native/Preparation.py, tests/{NativeRegistration.cpp,TestSupport.hpp,ProcessTests.cpp,ProtocolEncodingTests.cpp,documents/DocumentTests.cpp}, CMakeLists.txt and tests/CMakeLists.txt. Prior 16-file snapshot is build/goal-baseline-20261127; inspect only owned relevant files. Verify VBS seed src/Main.cpp install and src/Package/Fetch.cpp/src/Provider/Provider.cpp in ignored build/tools/vbs-6c225-src only as needed.
## 5. Write ownership and coordination
Write scope: none
Read-only shared checkout. No Git mutations, source changes, recompiling the shared native build, concurrent vbs metadata writes, sibling access beyond scoped code, or independent user contact. For benign runtime probes use synthetic temp files and already-built executables. Root owns any fixes. No children.
## 6. Implementation or investigation approach
Trace ingress through typed envelope and immutable store; check LSP number limits, UTF-8/16 negotiation, null/missing fields, stale version/desync/recovery, observer read races including aliases/ABA, memory accounting incl markers/retained snapshots and incremental CRLF index equivalence. Check stream errors/no partial frame and staged dependency handoff. In preparation, check tracked allowlists, source reuse and staging of immutable generations retained by in-flight builds. Inspect both build definitions and exercise the actual registered process/named tests. Check whether any user-visible native commands/docs overclaim support. Prioritize a short list of material defects. Existing wire precision failures are a separate upstream gate; do not waive them.
## 7. Interfaces and data contracts
The CLI and stdio session use the typed Protocol adapter, document URI/incarnation bindings and one negotiated encoding. Initial capabilities contain positionEncoding and incremental textDocumentSync only. Root supplies static registration and real vls sibling resolution. VoidLibrary follows upstream main. Candidate build and provider/worker integration are separate. Native install requires the development CLI's dependency-aware install path. Existing second contract verdict was unavailable; verify concrete effects.
## 8. Dependencies and integration
Evaluate actual files and outputs together. Root ran native built-in seed 6c225c2 debug and independent CMake comparison on main 7d7d23e. The expanded integer/decimal suite exposes the same two failures. The focused real transcripts prove preceding text mutations through subsequent split-scalar failures. Document tests initially exposed stale size validation on mismatched text; root fixed index text_size_ and reran the full checks. Tests/native/Preparation.py also passed. Targeted isolated tests may run alongside work on other disjoint paths.
## 9. Edge cases security and performance
Bound probes. Use synthetic ASCII/Unicode, regular files and benign references only. Source exclusions include secret env and key material and unrelated caches. Verify typed refusals on limits, aliases, unsuitable file types, stale reads and malformed payloads. Look for library false successes, stale capabilities or resource trust from client metadata. Do not run any project-provided tool or test payload as a command.
## 10. Acceptance criteria
1. Evidence-based READY, CHANGES_REQUIRED or INSUFFICIENT_EVIDENCE per slice with causal source references. 2. Identify each P0–P2 material defect, narrow correction and distinguishing regression, including whether existing tests miss it. 3. Separate existing upstream JSON and VBS install issues from new defects. 4. Report exact executed commands/outcomes, test coverage limits and any fact that blocks a readiness claim.
## 11. Verification commands and evidence
git status --short --branch; git diff ca04975 -- src/Server.cpp src/main.cpp include/vls build.cpp CMakeLists.txt tests; direct reads of untracked scopes. Check graph coverage for material files. The integrated executables live under build/native-validation/profiles/debug/out/bin. Run --list and selected tests directly; use dev cpp-gcc -c ctest --test-dir build/bootstrap -L documents --output-on-failure and python3 tests/native/Preparation.py -v if useful. The prepared generation/provenance is under build/voidlibrary/current. Reuse logs build/native-evidence/foundation-native-retest.log and foundation-ctest-retest.log after verifying observed results.
## 12. Constraints and stop conditions
Stop before source changes, undocumented external permissions or emitting unrelated audits. A 429 or unavailable runtime must be identified as a missing review. Do not produce a merge/release verdict for the full project or require unresolved upstream work to block independent correctness evidence. Do not modify or re-run common metadata producers.
## 13. Authorization and decisions
User authorized full implementation on the separate branch, primary native VBS, following VoidLibrary main and GPT-6.2 family at Max. This is a fresh Astra reviewer via the approved generic runtime. Root retains integration and all external permissions.
## 14. Return format
T-REVIEW-005, per-slice verdict, severity/location/trigger/expected/actual and remediation for each actionable defect, actual commands and exit codes, coverage and limits, files changed none. Return early for serious defects. No user messages or children.