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

+2 -2
View File
@@ -1,6 +1,6 @@
# 01 — Bootstrap, dependency provenance and CLI
Status: PARTIAL (T-001); builds verified, final JSON acceptance blocked upstream
Status: IMPLEMENTED_TESTED; updated dependency integration awaiting independent review
Requirements: R-001,R-003,R-005,R-022,R-026
Dependencies: None for repository/CLI; upstream VoidLibrary decimal revision gates final JSON acceptance.
@@ -10,7 +10,7 @@ Future assignments must verify the then-current baseline and exact disjoint path
these proposed scopes do not authorize work in another repository.
## Contracts and data flow
Build with GCC16+, C++26 and -freflection; CMake4+/Ninja. VLS_VOID_SOURCE_DIR is an explicit development override, never an implicit sibling lookup. Follow upstream main per user decision D-021 and record the tested commit and override provenance. CLI modes are default/--stdio, standalone --help/-h and --version/-V, with invalid/mixed options returning2.
Build with GCC 16+, C++26 and -freflection. D-025 makes VoidBuildSystem the primary build. CMake 4+/Ninja provides the previous bootstrap for comparison. VLS_VOID_SOURCE_DIR is an explicit development override. Follow upstream main per D-021 and record the tested commit and override provenance. CLI modes are default/--stdio, standalone --help/-h and --version/-V, with invalid/mixed options returning 2.
## Implementation sequence
1. Select only the verified Void module closure: Configuration/Data/Unicode, with System/Testing for tests. Disable dependency tests/benchmarks and keep output in the VLS binary tree; static linkage simplifies the initial executable.
+2 -2
View File
@@ -1,6 +1,6 @@
# 02 — LSP framing, JSON envelope and lifecycle
Status: PARTIAL (T-001); implemented shell, final JSON acceptance blocked upstream
Status: Lifecycle, checked serialization and synchronization are tested. The exact-number JSON gate passes on VoidLibrary main `9cb86f8f` after the StrictJson fix.
Requirements: R-002,R-003,R-004,R-005
Dependencies: 01, including the verified upstream JSON prerequisite.
@@ -24,7 +24,7 @@ Keep diagnostics on stderr, even after malformed input. Avoid responses to notif
## Acceptance scenarios
1. Feed one byte at a time, split CRLF/body/UTF-8 sequences, concatenate frames and assert complete exact messages with no extra stdout.
2. Test lifecycle ordering, repeated initialize, pre-init/post-shutdown requests, unknown notifications, both exit statuses and premature EOF.
3. Exercise valid decimal/exponent options, integral-valued/fractional/out-of-range IDs, unmatched responses, escaped IDs/astral characters, raw controls, lone surrogates, invalid UTF-8, depth limits and length overflow; enforce subprocess deadlines. Review the actual upstream numeric representation before accepting its integration; current StrictJson cannot exercise decimal ID handling.
3. Exercise valid decimal/exponent options, integral-valued/fractional/out-of-range IDs, unmatched responses, escaped IDs/astral characters, raw controls, lone surrogates, invalid UTF-8, depth limits and length overflow; enforce subprocess deadlines. Current upstream uses double for decimal syntax and now exercises the numeric visitor; independent review must assess this actual representation before integration acceptance.
## Verification and integration
Run the documented configure/build/CTest commands from the repository README. Inspect ctest -N and test output for nonzero registration and real failures. Upstream main and local override use separate build trees.
+1 -1
View File
@@ -1,6 +1,6 @@
# 03 — Versioned documents, positions and overlays
Status: PLANNED; no implementation claim
Status: Implemented and tested through stdio and the 17-case document suite. Integrated review and performance evidence are tracked separately.
Requirements: R-006,R-011
Dependencies: 02; shared revision identity with05 and09 before semantic integration.
@@ -1,6 +1,6 @@
# 04 — Workspace configuration and execution authority
Status: PLANNED; no implementation claim
Status: Passive settings and tool identity policy are implemented and tested. Launcher, provider and job integration are in progress.
Requirements: R-007,R-008,R-021
Dependencies: 02; feeds05,06,07,09 and debugger launch.
+1 -1
View File
@@ -1,6 +1,6 @@
# 05 — Shared build contexts and profile/target selection
Status: PLANNED; no implementation claim
Status: The model's 18 cases and the workspace's 17 compiler-context lease cases pass in VBS and CMake. Native and compilation database leases select and revalidate the real Void translation unit used in the stock diagnostics corpus.
Requirements: R-008,R-009,R-010,R-015
Dependencies: 03,04; freeze model before parallel06/07 implementation.
+1 -1
View File
@@ -1,6 +1,6 @@
# 06 — Native VBS tooling export and consumer
Status: PLANNED; no implementation claim
Status: The passive VBS v1 reader and eight generation tests pass. It follows the selector, profile status and selected immutable compilation database. A richer producer export and its target, dependency, environment and module details remain upstream dependencies.
Requirements: R-008,R-012,R-021,R-023
Dependencies: 04,05; live acceptance additionally requires separately owned VBS graph/toolchain/editor/module producer work.
+1 -1
View File
@@ -1,6 +1,6 @@
# 07 — Compilation-database compatibility provider
Status: PLANNED; no implementation claim
Status: The importer and compatibility provider pass their focused tests. Actual native and CMake command databases retain their alternatives, original command forms and repeated flags. The LSP session integration is being verified.
Requirements: R-007,R-009,R-010
Dependencies: 04,05; may implement in parallel with06 after shared model freeze.
+2 -2
View File
@@ -1,6 +1,6 @@
# 08 — Semantic frontend feasibility, toolchain and license gate
Status: PLANNED; no implementation claim
Status: The pinned Clang frontend fails the required GCC/libstdc++ fidelity gate. The GCC 16.2 reference corpus passed. Per D-028, GCC's suitability as an IDE and debugger backend is under evaluation.
Requirements: R-010,R-012,R-013,R-016,R-026
Dependencies: Corpus definition from24 and actual build contexts from05/07 or equivalent captured fixtures; initial shell is independent.
@@ -19,7 +19,7 @@ Candidate Clang/P2996 revision562409c7942690d59ea470762515f88f24b16e23; GCC16.2
4. Exercise broken ^^/splices/templates, unsaved imports, completion/hover/navigation/references and editable origins. Report feature/version matrix, latency/memory, maintenance burden and dependency license facts.
## Failure behavior and constraints
The pinned documentation explicitly excludes constexpr-range expansion used by VoidLibrary; treat that as likely failure requiring proof, not a small assumed workaround. Missing required semantics rejects this sole-engine candidate. Compiler repairs, GCC integration or mixed backends require a new explicit decision and task scope.
The pinned documentation and the pinned libc++ enum-to-string test give conflicting indications on constexpr-range expansion. Run the real Void headers against GCC's standard library to decide fidelity. Missing required semantics rejects this sole-engine candidate. Compiler repairs, GCC integration or mixed backends require a new explicit decision and task scope.
## Acceptance scenarios
1. Compile/analyze exact source fixtures with reference GCC and candidate, retaining diagnostic/AST/query evidence and unsupported-feature classification.
+5 -1
View File
@@ -1,6 +1,10 @@
# 09 — Semantic worker protocol and compiler integration
Status: PLANNED; no implementation claim
The opt-in Linux/Nix worker runs stock GCC 16.2 on the workspace-selected TU and
publishes diagnostics over stdio. It reconstructs the compiler's observed
lookup paths in an isolated filesystem, retains positive and negative source
receipts, and checks the context and editor revision before publication.
Persistent AST workers, other toolchain profiles and semantic queries remain open.
Requirements: R-007,R-010,R-013,R-014,R-021
Dependencies: 03,04,05 and successful08; shared worker protocol frozen before10-16.
+1 -1
View File
@@ -1,6 +1,6 @@
# 10 — Scheduling, cancellation and resource budgets
Status: PLANNED; no implementation claim
Status: A bounded scheduler library with a registered suite is implemented (pools, admission, coalescing, cancellation, watchdog, metrics). Integrating it into the analysis workers remains open.
Requirements: R-011,R-021
Dependencies: 03,05,09; coordinates11,15 and18 without sharing mutable compiler state.
+4 -1
View File
@@ -1,6 +1,9 @@
# 11 — Named modules, partitions, header units and artifact ownership
Status: PLANNED; no implementation claim
Status: The GCC reference suite passes 33 module and scanner checks. The
C++ module planner and GCC single-rule P1689 decoder pass 22 cases in native
VBS and CMake. Seven integration cases exercise the planner with the compiler
corpus. The private artifact cache, dependency-ordered production and real GCC CMI production are implemented with registered tests; an editor admission queue for scans and artifacts is implemented and wired into the document lifecycle; the editor now submits the real P1689 scan through that queue; editor-driven artifact production remains open.
Requirements: R-008,R-010,R-012,R-021
Dependencies: 05,06/07,08,09,10; generated prerequisites depend on VBS availability.
+1 -1
View File
@@ -1,6 +1,6 @@
# 12 — Reflection, meta values and generated-source provenance
Status: PLANNED; no implementation claim
Status: PARTIAL; the bounded provenance/value representation library, read-only virtual generated views, splice-origin extraction from the reproduced GCC frontend, LSP-shaped hover/location adapters and the live-DAP reflected-entity projection are implemented with registered suites. `EditorDiagnostics` LSP wiring (the server has no reflection data source) and index/rename integration remain open.
Requirements: R-010,R-013,R-014,R-015,R-016
Dependencies: 08,09,11 for module-crossing cases; shared SymbolIdentity with15/16 and events with17.
+5 -1
View File
@@ -1,6 +1,10 @@
# 13 — Diagnostics, freshness and incomplete-edit recovery
Status: PLANNED; no implementation claim
The opt-in stock GCC 16.2 worker publishes verified TU ranges and clears
recovered errors over LSP. An edited Void source, a header overlay, an appearing
optional header and a superseded running compile have stdio coverage. Messages
with unproven locations appear in the per-document analysis status. Cross-file
publication, richer ranges, module scheduling and wider recovery testing remain open.
Requirements: R-004,R-006,R-014,R-021
Dependencies: 03,05,09,10;11/12 for module/reflection cases.
+1 -1
View File
@@ -1,6 +1,6 @@
# 14 — Completion, signatures and hover
Status: PLANNED; no implementation claim
Status: PARTIAL; index-backed `textDocument/completion` and `textDocument/signatureHelp` from the compiler-provided occurrence signature (bounded core, server wiring and registered `vls_feature_tests`) are implemented. Compiler-native completion, visibility proof, deferred detail resolution and signature help for overloads beyond the selected occurrence remain open.
Requirements: R-011,R-013,R-014
Dependencies: 03,05,09,10,12;15 supplies workspace candidates after its contract freezes.
+1 -1
View File
@@ -1,6 +1,6 @@
# 15 — Context-aware symbol index and persistent generations
Status: PLANNED; no implementation claim
Status: A bounded context-aware index library with a registered suite is implemented (contexts, overlays, invalidation, generations, persistence, coverage). It is wired to `workspace/symbol`; migrations, cross-file rename coverage and a persistent backend remain open.
Requirements: R-008,R-014,R-015,R-021
Dependencies: 03,05,09,10,12; coordinates16 coverage and11 dependency edges.
+1 -1
View File
@@ -1,6 +1,6 @@
# 16 — Navigation, references and guarded rename
Status: PLANNED; no implementation claim
Status: A bounded navigation and guarded-rename library with a registered suite is implemented and wired to references/prepareRename/rename. Client buffer-transaction application, cross-context rename coverage and live editor integration remain open.
Requirements: R-013,R-014,R-015,R-020
Dependencies: 03,05,09,12,15; guarded application requires22/23 client contracts.
@@ -1,6 +1,11 @@
# 17 — Compiler instrumentation and debugger feasibility gate
Status: PLANNED; no implementation claim
Status: Both a stock GCC 16.2 package observed through GDB and the private
GCC prototype demonstrated live nested integral returns on the reflection
fixture. The patched worker also passed cancellation and truncation checks.
Operator-level reflection events, constraint events, and editor controls
remain open. The current results and toolchain identity are in the
[verification record](../agent-workflow/VERIFICATION.md).
Requirements: R-010,R-013,R-016,R-017,R-018
Dependencies: Successful08;09/12 DTOs and source provenance; define Gate2 fixture before18-21.
+1 -1
View File
@@ -1,6 +1,6 @@
# 18 — Live metaprogram debugger state and control
Status: PLANNED; no implementation claim
Status: The local GCC hook prototype and an unmodified GCC 16.2/GDB probe both observed nested integral returns after an enum edit. The fixed worker also exercised step, resume, cancellation and cleanup. A LiveSession control core and a live DAP mode (step/continue/cancel, bounded frame inspection with generation-bound handles) are now implemented with registered tests. General reflection, constraint and template inspection, breakpoints and typed value inspection remain open.
Requirements: R-016,R-017,R-019,R-021
Dependencies: 09,10,12, successful17; shared sessions with19-21.
+1 -1
View File
@@ -1,6 +1,6 @@
# 19 — Trace persistence, event-time state and replay
Status: PLANNED; no implementation claim
Status: Both builds pass 13 journal cases and eight immutable recording cases. The standalone DAP adapter reads completed and cancelled sessions without a compiler. Each open recording keeps its original source, frames and acknowledged actions through file replacement or removal.
Requirements: R-016,R-018,R-019,R-021
Dependencies: 12,17,18; bounded storage primitives from15 may be reused after their guarantees are checked.
+6 -1
View File
@@ -1,6 +1,11 @@
# 20 — Debug Adapter Protocol service
Status: PLANNED; no implementation claim
The C++ stdio adapter serves recorded GCC constant evaluations. Standard DAP
clients can launch a selected journal, inspect stack frames, scopes, return
values and captured source, and continue through integral returns. Seven
registered cases and a real-journal transcript exercise lifecycle, error and
source boundaries. A headless Neovim 0.12.6 client reached 17 and 34. Live
compiler control, additional breakpoint kinds and source stepping remain open.
Requirements: R-017,R-018,R-019,R-020
Dependencies: 18,19; shared session service with21 and client integrations22/23.
+8 -1
View File
@@ -1,6 +1,13 @@
# 21 — Shared custom inspection API and view models
Status: PLANNED; no implementation claim
The recorded adapter implements schema version 1 over the same DAP session.
`vls/session` reports the recording outcome and current cursor. Page requests
`vls/timeline` and `vls/frames` take the session ID, schema version, current
generation, start and count. Pages contain up to 256 events or frames.
`vls/seek` moves to a verified event or an adjacent integral result. Every
movement expires the earlier frame, scope and page references. The debugger
retains the captured source for the session. Template and constraint trees,
reflection entities, generated views and live inspection remain open.
Requirements: R-013,R-016,R-018,R-019,R-020
Dependencies: 12,18,19,20; contract frozen before independent22/23 view implementations.
+4 -1
View File
@@ -1,6 +1,9 @@
# 23 — Neovim LSP/DAP integration and inspection buffers
Status: PLANNED; no implementation claim
Headless Neovim 0.12.6 and nvim-dap exercised the recorded adapter through
`dap.run`, `dap.continue` and `Session:disconnect`. The test requested actual
17/34 values, the captured source and the acknowledged timeline. The packaged
Lua client, read-only views and the rest of the editor journeys remain open.
Requirements: R-015,R-019,R-020
Dependencies: 02 for basic launch;16,18-21 for full acceptance. May parallel22 after schema freeze.
+4 -4
View File
@@ -1,16 +1,16 @@
# 26 — Native VBS build and staged Void adoption
Status: PLANNED; no implementation claim
Status: Native build and tests verified. Dependency-aware VBS development CLI installed a working server. Full editor/project adoption is gated.
Requirements: R-008,R-010,R-014,R-020,R-022,R-023
Dependencies: VBS native executor/toolchain/package/testing readiness;06 live producer,08 semantic gate and core IDE/debug milestones for full replacement.
Dependencies: VBS native executor/toolchain/package/testing readiness and01 for the immediate build slice;06 live producer,08 semantic gate and core IDE/debug milestones for full replacement.
## Ownership and boundaries
Future joint work: root coordinates repository boundaries; Sol VLS build descriptions/adoption harnesses, Astra coupled native-tooling issues. NEW build.cpp/build profiles and tests/adoption/ only after scope approval.
Root coordinates repository boundaries; proposed Sol VLS build descriptions/adoption harnesses and Astra coupled native-tooling issues. NEW build.cpp/build profiles are now authorized by D-025; write ownership and preflight still precede substantial implementation.
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
CMake is the initial seed; native VBS becomes the primary build path after verified readiness. VLS runtime consumes a resolved tooling contract independently of how VLS itself was built. Initial adoption corpus is VoidLibrary plus VBS; all remaining Void projects require explicit inventory and evidence.
Native VBS is the primary build path per D-025. The existing CMake seed provides comparison evidence while native readiness is established. VLS runtime consumes a resolved tooling contract independently of how VLS itself was built. Initial adoption corpus is VoidLibrary plus VBS; all remaining Void projects require explicit inventory and evidence.
## Implementation sequence
1. Map the actual built VLS target/module/test closure into ordinary VBS C++ descriptions after its executor/SDK stabilizes. Keep host compiler and analyzed target toolchain identities distinct.
+13 -7
View File
@@ -1,7 +1,7 @@
# Development roadmap
Approved2026-11-25. This directory contains27 subsystem plans. Only01/02 belong
to the current implementation milestone; all later capabilities require the gates
Approved2026-11-25; full roadmap implementation authorized2026-11-27. This directory
contains27 subsystem plans. Implement them in dependency order with the gates
and evidence below. Read [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md)
and [current state](../agent-workflow/STATE.md) first.
@@ -60,11 +60,17 @@ The diagram is not a promise that native VBS production exists. Its separately
owned producer/executor is an explicit prerequisite of06/26 live acceptance.
## Gates and parallel ownership
- M0: documents, CLI/lifecycle shell, unit/subprocess tests; final JSON acceptance
waits for a verified committed VoidLibrary decimal revision.
- G1: actual GCC16/libstdc++ Void fidelity and interactive behavior. Current candidate
likely fails constexpr-range expansion. Failure requires a new explicit decision;
compiler fixes/backend substitution are not silently added.
- D-025 makes native VBS build/test support the immediate priority. Implement the
build portion of26 alongside01; full project/editor adoption still depends on
its semantic/debugger gates. Future CTest labels/commands in individual plans
describe the earlier bootstrap proposal; bind equivalent nonzero native VBS
test targets before implementation. They do not make CMake the primary build.
- M0 covers the CLI, lifecycle and protocol suites. Decimal-capable VoidLibrary
main passes six numeric cases. Two exactness/range cases still fail.
- G1 requires GCC 16/libstdc++ Void fidelity and interactive behavior. The
pinned Clang failed the production-header check. D-028 and D-030 authorize
the private GCC evaluation and versioned hooks. Reference fidelity passes.
Source-occurrence and complete interactive gates are still open.
- G2: evaluator+Sema instrumentation, live control and reliable replay on mixed
template/constraint/constexpr/reflection cases, including adverse outcomes.
- Core and debugger tracks may proceed independently only after their common
+8 -7
View File
@@ -1,7 +1,8 @@
# Requirements and acceptance ledger
Approved 2026-11-25. Scope approval covers milestone0 (repository, detailed plans,
working shell). The remaining requirements describe gated future delivery.
Approved2026-11-25. On2026-11-27 the user authorized implementing all plans.
The full requirement set remains the goal; completion requires the gates and
evidence below, not just bootstrap test success.
| ID | Requirement | Acceptance boundary | Plans |
| --- | --- | --- | --- |
@@ -26,7 +27,7 @@ working shell). The remaining requirements describe gated future delivery.
| R-019 | DAP and custom views | One session/control authority, DAP plus timeline/tree/entity views | 20,21 |
| R-020 | Neovim AND VS Code | End-to-end editing, guarded rename, live and replay debug journeys | 22,23 |
| R-021 | Robustness and resource isolation | Worker recovery, bounded resources, cancellation and ordinary-editing capacity | 09,10,18,19,24 |
| R-022 | CMake bootstrap then native VBS build | Independent seed now, verified native build later | 01,26 |
| R-022 | Native VBS as primary build system | Build/test/install VLS and VoidLibrary natively; existing CMake seed is historical bootstrap evidence | 01,26 |
| R-023 | Staged adoption across Void | VoidLibrary and VBS first; evidence-based expansion to remaining projects | 26 |
| R-024 | Linux first; later parity/ports | Linux release matrix now; Windows/macOS and broader IDE features separate | 25,27 |
| R-025 | Detailed durable plans and decisions | Dependency graph, contracts, ownership, failures, implementation and tests for every part | All |
@@ -43,7 +44,7 @@ The planned C++26 matrix is bounded by the approved GCC16 project corpus and exp
enumerated proposals; do not claim complete final-standard coverage from -std=c++26.
## Current external prerequisites
VoidLibrary decimal support is being developed by another worker. Confirm an exact
committed revision and all JSON tests before final shell acceptance.
The VBS resolved tooling producer is planned independently. The frontend and debugger
feasibility experiments have not run. Licensing is intentionally undecided.
VoidLibrary main `7d7d23e` supplies decimal support. Independent review found
two remaining exact-number requirements, now exercised by failing cases. VBS has new editor
generation/query APIs; complete native tooling coverage and live adoption remain
unverified. Frontend/debugger feasibility and licensing remain explicit gates.