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:
1 parent
ca04975d54
commit
da8003f6d4
310 files changed
+47552
-480
No files matched your search
@@ -1,8 +1,958 @@
|
||||
# Verification evidence
|
||||
|
||||
Updated: 2026-11-25. Builds and independent shell suites pass; final JSON acceptance is blocked upstream.
|
||||
## December 5 private compiler stepping and index recovery
|
||||
|
||||
The reproduced private GCC 16.2.0 frontend (stripped of debug info to fit the
|
||||
leaf's executable-image bound) ran under the sealed supervisor:
|
||||
|
||||
```sh
|
||||
strip --strip-debug build/private-gcc/build/gcc/cc1plus
|
||||
dev cpp-gcc -c python3 -B tests/native/GccSupervisor.py \
|
||||
--probe "$PWD/build/native/profiles/debug/out/bin/vls_gcc_probe" \
|
||||
--cc1plus "$PWD/build/private-gcc/build/gcc/cc1plus"
|
||||
```
|
||||
|
||||
Observed: `Live and offline GCC sessions agree on 17/34 and 41/82, stale
|
||||
controls and cancellation` and `Verified truncated input, bounded stderr,
|
||||
running cancellation and leader-first process cleanup`.
|
||||
|
||||
`vls_index_tests` passed 20 cases including
|
||||
`generation_backend_recovers_a_missing_current_file`: a missing current
|
||||
generation file is recovered from the previous generation and promoted back.
|
||||
|
||||
## December 5 reflection provenance representation
|
||||
|
||||
Roadmap 12 now has its bounded representation slice: `include/vls/reflection/`,
|
||||
`src/reflection/` and the registered `vls_reflection_tests` (label `reflection`,
|
||||
20 cases) covering the innermost-first origin chain (spelling, expansion,
|
||||
splice, reflected declaration, synthesized) with the rename policy that a
|
||||
generated entity may stay navigable while never being automatically editable;
|
||||
variant values with canonical types and honest `opaque`/`unavailable` kinds;
|
||||
bounded depth-first expansion that reports cycles, depth/value-limit cuts and
|
||||
dangling entity references instead of silently dropping them; a versioned
|
||||
canonical JSON snapshot with round-trip identity, duplicate rejection and
|
||||
oversized/incompatible-byte rejection; a proposal/facility capability matrix
|
||||
where an unknown entry is an explicit error; and read-only virtual generated
|
||||
views that render an entity and its expansion as explanation lines with source
|
||||
links, explicit cycle/truncation markers and a `compilable() == false`
|
||||
contract. The private compiler's inspection frames report evaluator frames
|
||||
(name, source, line, value) but no reflection origin kinds, so no provenance is
|
||||
inferred from them; extraction needs a backend that reports origins.
|
||||
Compiler extraction of splice origins is now real: compiler patch
|
||||
`0004-splice-origins.patch` records one `splice` event from the reproduced GCC
|
||||
16.2.0 frontend (the splice site plus the designated entity's kind, name and
|
||||
declaration location), the worker trace accepts it with backward-compatible
|
||||
handshakes, and the inspection snapshot exposes an `origins` array. Evidence
|
||||
from a sealed session compiling `enum class State { Ready = 17 }; ... [:e:]`:
|
||||
|
||||
```
|
||||
origins: [{"byteColumn": 31, "line": 4, "source": "input.cpp",
|
||||
"targetByteColumn": 20, "targetKind": "declaration",
|
||||
"targetLine": 1, "targetName": "Ready", "targetSource": "input.cpp"}]
|
||||
```
|
||||
|
||||
`GccSupervisor.py` passed against the rebuilt frontend (`Live and offline GCC
|
||||
sessions agree on 17/34 and 41/82, stale controls and cancellation`). The
|
||||
registered test `Reflection.real_compiler_splice_origin_builds_a_provenance_chain`
|
||||
feeds that exact recorded origin through `snapshot_from_splices` and asserts a
|
||||
navigable, non-editable, complete chain (splice site then reflected
|
||||
declaration) for `gcc:declaration:Ready@input.cpp:1:20`. The compiler reports a
|
||||
start coordinate only, so ranges are zero-width until an end is available.
|
||||
LSP adapters and index/rename/debugging integration remain open. `vbs test`
|
||||
passed all 17 native suites; CMake passed the reflection and trace suites.
|
||||
|
||||
## December 5 persistent index snapshot migration
|
||||
|
||||
The symbol-index snapshot is now schema 2 with a canonical payload digest
|
||||
(SHA-256 over the serialized payload without the digest itself). `restore`
|
||||
classifies bytes before touching state: schema 1 is accepted and reported as
|
||||
`migrated`, an unknown schema or backend is `incompatible`, malformed content or
|
||||
a digest mismatch is `corrupt`, and over-limit bytes are `oversized`. Rejected
|
||||
snapshots are quarantined and the index rebuilds. `restore_generation` persists
|
||||
the upgraded snapshot (keeping `snapshot.prev.json`) and rewrites a legacy
|
||||
`CURRENT` selector. Registered `vls_index_tests` grew from 20 to 24 cases:
|
||||
`snapshot_schema_migration_is_reported_and_rewritten`,
|
||||
`generation_restore_persists_the_migrated_schema`,
|
||||
`digest_mismatch_is_quarantined_as_corruption` and
|
||||
`schema_2_rejects_edited_records`. All 24 passed in VBS and CMake. The CMake
|
||||
`vls_trace_tests` timeout was raised from 30s to 120s because the suite takes
|
||||
about 25-30s in a Debug build (it passed VBS at ~27s); the full CMake run then
|
||||
passed 18/18.
|
||||
|
||||
## December 5 signature help from stock occurrence facts
|
||||
|
||||
`include/vls/features/SignatureHelp.hpp` and
|
||||
`src/features/SignatureHelp.cpp` parse the compiler-provided occurrence
|
||||
signature into a label with parameter labels and nested-aware ranges, count the
|
||||
active parameter at the cursor (bounded backward/forward scan that ignores
|
||||
literals, comments and nested brackets), and decide whether a cursor lies in a
|
||||
call's argument list (`in_call`). `EditorDiagnostics::signature_help` selects
|
||||
the innermost call occurrence containing the cursor and `Server.cpp`
|
||||
advertises `signatureHelpProvider` (`(`, `,`) and answers
|
||||
`textDocument/signatureHelp`. `vls_feature_tests` grew from 13 to 27 cases.
|
||||
|
||||
A real stdio session with the stock observer on `add(1, 2)`:
|
||||
```
|
||||
at 'add(': activeParameter=0 (expected 0) signatures=1
|
||||
label: int add(int, int)
|
||||
parameters: [{'label': [8, 11]}, {'label': [13, 16]}]
|
||||
at 'add(1, ': activeParameter=1 (expected 1) signatures=1
|
||||
```
|
||||
All 18 native suites and all 18 CMake tests passed.
|
||||
|
||||
## December 5 editor-driven module artifact production
|
||||
|
||||
`tests/native/EditorModules.py` observed the
|
||||
full editor path with the real compiler: after opening a module interface TU in a
|
||||
compilation-database workspace, `moduleScan` provided `editor.cmi` and
|
||||
`moduleArtifact` published a 64-character generation. This passed against the native
|
||||
VBS-built server (`build/native/profiles/debug/out/bin/vls`) and against the installed
|
||||
server after refreshing `build/install` from the comparison CMake build
|
||||
(`editor modules: scan provided editor.cmi, artifact generation ...`).
|
||||
|
||||
`vbs install` into that prefix currently fails with
|
||||
`target 'vls_protocol' links unresolved imported target 'Void::Data' from dependency
|
||||
'VoidLibrary'`, so the prefix was refreshed with `cmake --install build/bootstrap`
|
||||
instead. The VBS native build and tests are unaffected.
|
||||
|
||||
## December 5 index-backed cross-file rename coverage
|
||||
|
||||
`include/vls/features/IndexNavigation.hpp` and
|
||||
`src/features/IndexNavigation.cpp` merge a published symbol-index generation
|
||||
into the navigation `FactSet`: unknown contexts join with the index's
|
||||
completeness, each record's use and proven references become facts joined by
|
||||
name and definition, duplicates never replace compiler-derived facts, and a
|
||||
record whose source content identity is unknown stays non-editable so rename
|
||||
refuses. `EditorDiagnostics::fact_set_locked` calls it with the current source
|
||||
identities, so multi-file rename becomes ready when coverage is complete and a
|
||||
transactional client is present. Registered `vls_feature_tests` grew from 6 to
|
||||
13 cases, including `cross_file_rename_is_ready_from_index_data` (a real
|
||||
`SymbolIndex` generation yields a two-file ready plan, while a non-transactional
|
||||
client is refused), stale-content detection, incomplete-context blocking,
|
||||
unknown-source refusal and cross-file reference joins. The stock occurrence
|
||||
corpus still passed: `hover and definition selected string_view at Hash.hpp:59
|
||||
then byte_span at 65; module scan ready`. All 18 native suites and all 18 CMake
|
||||
tests passed.
|
||||
|
||||
## December 5 index-backed completion
|
||||
|
||||
`textDocument/completion` is implemented for the bounded slice that the
|
||||
current backend can prove: `include/vls/features/Completion.hpp`,
|
||||
`src/features/Completion.cpp` and registered `vls_feature_tests` (label
|
||||
`completion-hover`, 6 cases) cover identifier-prefix extraction, prefix
|
||||
filtering with replacement ranges, label+kind deduplication, deterministic
|
||||
ranking (types before functions before variables), bounded empty-prefix
|
||||
listing and per-field limits. `EditorDiagnostics::completion` ranks the symbol
|
||||
index and `Server.cpp` advertises `completionProvider` and answers
|
||||
`textDocument/completion`. Every result is `isIncomplete` because the index
|
||||
does not prove visibility: this is not compiler-native completion. A real stdio
|
||||
session with the stock observer at `Void::Hash::fnv1a64(text)` returned
|
||||
`fnv1a64` and `fnv1a64_update`. All 18 native suites and all 18 CMake tests
|
||||
passed.
|
||||
|
||||
## December 5 reflection adapters and debugging integration
|
||||
|
||||
The reflection library now has LSP-shaped adapters: `hover(entity, expansion)`
|
||||
returns Markdown explanation lines plus the provenance source links, and
|
||||
`locations(provenance)` returns deduplicated, bounded navigation targets in
|
||||
chain order. The live DAP `variables` projection consumes the worker's
|
||||
`splice` origins through `snapshot_from_splices` and exposes each reflected
|
||||
entity as a read-only entry with its declaration and splice coordinates. The
|
||||
live worker fixture carries the real-shaped origin, and the registered DAP
|
||||
test asserts `Ready` = `reflected Ready at input.cpp:1:20 (splice at
|
||||
input.cpp:4:31)`. `vls_reflection_tests` passed 24 cases and `vls_live_tests`
|
||||
7/7 in VBS and CMake. The LSP server path remains open because the private
|
||||
worker runs only in `vls-dap`; `EditorDiagnostics` has no reflection data source
|
||||
to serve yet.
|
||||
|
||||
## December 5 registered C++ live-DAP typed projection
|
||||
|
||||
The registered C++ DAP suite now asserts the typed projection over the live
|
||||
adapter: `stackTrace` returns the `reflected_value` frame, `scopes` exposes its
|
||||
handle, and `variables` contains `Result = 17` from the inspection snapshot.
|
||||
The earlier failures were a dangling pointer in the test harness: `object_of`
|
||||
returned a pointer into a temporary `wait_response` reply. Keeping each reply
|
||||
in a local fixed it. Observed: `vls_live_tests` 7/7 passed in VBS.
|
||||
|
||||
## December 5 private-compiler reproduction package
|
||||
|
||||
`compiler-patches/gcc-16.2.0/configure.args` now records the exact 40 configure
|
||||
options from the verified private build. `tools/prepare-private-gcc` validates
|
||||
a GCC 16.2.0 source tree, classifies each patch as `unpatched`,
|
||||
`already-applied` or `mismatch` with forward/reverse dry runs, prints the
|
||||
reproduction recipe and either stops (`--check-only`) or copies the source,
|
||||
applies the patches, configures and builds.
|
||||
|
||||
Against `build/gcc-gate/gcc-16.2.0`, patch 0003 reports `already-applied`; 0001
|
||||
and 0002 report `mismatch`, so the set cannot be certified against that
|
||||
already-built tree (overlapping patches or drift). A pristine GCC 16.2.0 source
|
||||
is required to complete the validation, and the full build is a multi-hour
|
||||
operation. The package is therefore implemented but not yet proven to reproduce
|
||||
the existing compiler byte-for-byte.
|
||||
|
||||
## December 5 index migrations and cross-context rename coverage
|
||||
|
||||
`SymbolIndex::restore` classifies a saved snapshot and quarantines rejected
|
||||
bytes instead of leaving them in place: a schema-9 snapshot and a corrupt file
|
||||
were renamed to a `.quarantine-<pid>-<n>` sibling, the in-memory records were
|
||||
cleared and a new generation was published; a compatible snapshot loads in
|
||||
place and a missing one is reported separately. The index suite passed 15 cases.
|
||||
|
||||
Navigation gained three cross-context cases: references from two complete
|
||||
contexts are both returned and a transactional rename edits both files; an
|
||||
incomplete second context refuses the rename and names it; a same-spelling
|
||||
binding in another context is not renamed. The navigation suite passed 15
|
||||
cases. All 16 native targets and the comparison CMake suite (16/16) pass.
|
||||
|
||||
## December 5 live DAP breakpoints and typed inspection
|
||||
|
||||
`vls-dap --live` now maps `setBreakpoints` to the live session and projects
|
||||
typed values from the inspection snapshot. The real DAP transcript test:
|
||||
|
||||
```sh
|
||||
python3 -B tests/native/LiveDap.py \
|
||||
--adapter "$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
--worker "$PWD/build/native/profiles/debug/out/bin/vls_live_worker_fixture"
|
||||
```
|
||||
|
||||
passed `stopped/typed inspection/breakpoints/step/stale rejection/continue,
|
||||
pause refused`: the first stop exposed the projected `Result=17`; breakpoints
|
||||
at lines 2 and 99 were verified, and the next stop carried
|
||||
`hitBreakpointIds: [2]`; the previous stop's frame handle was then rejected as
|
||||
stale. All 16 native targets and the comparison CMake suite (16/16) pass.
|
||||
|
||||
## December 5 editor-driven module artifact preparation
|
||||
|
||||
The semantic command grammar now accepts the module compilation flags
|
||||
`-fmodules`, `-fmodules-ts` and `-fmodule-header` (plugins and forwarded
|
||||
options remain refused). A synthetic compilation-database workspace opened a
|
||||
real module interface and exercised the complete editor path:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 -B tests/native/EditorModules.py \
|
||||
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
--gcc-profile "$PWD/build/stock-occurrences/profile.json"
|
||||
```
|
||||
|
||||
`EditorDiagnostics` submitted the P1689 scan through `ModuleWorkQueue`, decoded
|
||||
a rule providing `editor.cmi`, then submitted artifact preparation at artifact
|
||||
priority and published generation `53ba6589...`. Output: `editor modules: scan
|
||||
provided editor.cmi, artifact generation 53ba6589...`. All 16 native test
|
||||
targets and the comparison CMake suite (16/16) pass.
|
||||
|
||||
## December 5 scan-driven module artifact generation
|
||||
|
||||
The real-GCC module corpus decodes a P1689 scan through `ModuleWorkQueue`, then
|
||||
uses the verified rule to prepare module artifacts through
|
||||
`produce_module_artifacts_scheduled` at artifact priority:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 -B tests/corpus/modules/verify.py \
|
||||
--artifacts "$PWD/build/native/profiles/debug/out/bin/vls_module_artifact_fixture"
|
||||
```
|
||||
|
||||
Observed: `scan: {'provides': ['corpus.cmi'], 'requires': [], 'generation':
|
||||
'7be725904eaf6f5b27dae40b6ec4c3ca241cd27a991d3e80cbf1aa44e5c09764'}`. The
|
||||
generation is a complete `ArtifactCache` publication of the CMI for the scanned
|
||||
module.
|
||||
|
||||
## December 5 real module scan through the editor work queue
|
||||
|
||||
The module corpus ran a real GCC P1689 scan through `ModuleWorkQueue` and the
|
||||
bounded Scheduler using `gcc_module_scan_work`, which executes the checked scan
|
||||
command, reads the dependency file and verifies it with `decode_scan`:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 -B tests/corpus/modules/verify.py \
|
||||
--artifacts "$PWD/build/native/profiles/debug/out/bin/vls_module_artifact_fixture"
|
||||
```
|
||||
|
||||
Observed `scan: {'provides': ['corpus.cmi'], 'requires': []}` alongside the
|
||||
existing CMI production, supersession and importer checks. All 16 native test
|
||||
targets pass.
|
||||
|
||||
## December 5 module work admission in the editor scheduler
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug --target vls_module_tests
|
||||
```
|
||||
|
||||
`ModuleWorkQueue` was exercised against the real bounded Scheduler in the
|
||||
registered module suite (five new cases): scans use the background pool while
|
||||
artifact work completes independently during a saturated scan; a newer revision
|
||||
cancels the running older one; cancelling a document stops both kinds; stale
|
||||
revisions and empty keys are refused; terminal counts distinguish completion
|
||||
from failure. `EditorDiagnostics` owns the queue and cancels per-document work
|
||||
on edit/close and all work on shutdown. The full native suite (16 targets) and
|
||||
the comparison CMake suite (16/16) pass.
|
||||
|
||||
## December 5 live DAP control
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug --target vls_live_tests
|
||||
python3 -B tests/native/LiveDap.py \
|
||||
--adapter "$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
--worker "$PWD/build/native/profiles/debug/out/bin/vls_live_worker_fixture"
|
||||
```
|
||||
|
||||
`vls_live_tests` (CMake label `live-debug`) passed six cases: stepping through
|
||||
stops with per-generation inspection, continue to completion, cancel at a stop,
|
||||
refusal of movement without a stop, malformed worker output, and the notice
|
||||
deadline. The DAP transcript test spawned `vls-dap --live`, initialized,
|
||||
launched, configured, received `stopped`, read `threads`/`stackTrace`/`scopes`/
|
||||
`variables`, stepped with `next`, rejected the previous stop's frame handle as
|
||||
stale, continued to `terminated`, and confirmed `pause` is refused. Output:
|
||||
`live DAP passed: stopped/inspection/step/stale rejection/continue, pause refused`.
|
||||
The full native suite (16 targets) and the comparison CMake suite (16/16) pass.
|
||||
|
||||
## December 5 transactional rename application
|
||||
|
||||
```sh
|
||||
nvim --headless -u NONE -i NONE -l tests/native/NeovimRename.lua
|
||||
python3 -B tests/native/VscodeClient.py \
|
||||
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
--adapter "$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
--trace "$PWD/tests/debug/fixtures/integral-17.vls"
|
||||
```
|
||||
|
||||
Neovim output: `Neovim rename passed: atomic apply, injected-failure rollback,
|
||||
invalid range and read-only refusal`. The test applied a two-buffer rename,
|
||||
then monkey-patched `nvim_buf_set_text` to fail on the second write and
|
||||
asserted both buffers were restored byte-for-byte with their modified flags;
|
||||
an out-of-range edit and a read-only buffer were also refused before mutation.
|
||||
|
||||
VS Code output: `VS Code client passed: LSP status, replay session, timeline,
|
||||
source, stale rejection and transactional rename`. The extension-host test
|
||||
applied a two-document rename, then injected a document version change after
|
||||
preparation and asserted the plan was refused with the other document
|
||||
unchanged; an out-of-range edit was refused as well.
|
||||
|
||||
## December 5 references and guarded rename
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug --target vls_navigation_tests
|
||||
dev cpp-gcc -c python3 -B tests/native/StockOccurrences.py \
|
||||
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
--gcc-profile "$PWD/build/stock-occurrences/profile.json"
|
||||
```
|
||||
|
||||
`vls_navigation_tests` (CMake label `navigation-rename`) passed twelve cases:
|
||||
unique binding resolution, same-spelling bindings distinguished by definition,
|
||||
ambiguity not resolved by order, deduplicated references, incomplete-coverage
|
||||
reporting, truncation, a ready cross-file rename with a transactional client,
|
||||
and refusals for incomplete coverage, stale sources, non-editable origins,
|
||||
multi-file without a transaction, invalid/generated/unchanged names and unknown
|
||||
bindings.
|
||||
|
||||
The real stdio corpus requested `textDocument/references`,
|
||||
`textDocument/prepareRename` and `textDocument/rename` at the `fnv1a64` call.
|
||||
Because the observer report is partial (system headers are not captured), all
|
||||
three returned `-32803` with an explicit incomplete-coverage refusal instead of
|
||||
a fabricated complete answer. Hover/definition and `workspace/symbol` still
|
||||
succeeded. The full native suite (15 targets) and the comparison CMake suite
|
||||
(15/15) pass.
|
||||
|
||||
## December 5 context-aware symbol index
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug --target vls_index_tests
|
||||
dev cpp-gcc -c python3 -B tests/native/StockOccurrences.py \
|
||||
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
--gcc-profile "$PWD/build/stock-occurrences/profile.json"
|
||||
```
|
||||
|
||||
`vls_index_tests` passed twelve cases: publication and query, same-spelling
|
||||
distinct contexts, overlay shadowing and reconciliation, changed-source
|
||||
incompleteness that keeps last-good records, dependency invalidation, context
|
||||
removal, generation reader retention, persistence roundtrip, corrupt and
|
||||
incompatible snapshot rejection, oversized snapshot rejection, deterministic
|
||||
limit truncation and invalid-input rejection. The registered suite has the
|
||||
CMake label `index`.
|
||||
|
||||
`EditorDiagnostics` now publishes occurrence facts into the index after each
|
||||
analysis and the server advertises `workspaceSymbolProvider`. The real stdio
|
||||
corpus requested `workspace/symbol` for `fnv1a64` and reached the `Hash.hpp`
|
||||
definition, while an unknown query returned an empty array; hover and definition
|
||||
still selected the `string_view` overload then `byte_span` after the edit. The
|
||||
full native suite (14 targets) and the comparison CMake suite (14/14) pass.
|
||||
|
||||
## December 5 scheduler and module artifacts
|
||||
|
||||
The scheduler-driven module artifact producer was verified with the real GCC
|
||||
corpus:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 -B tests/corpus/modules/verify.py \
|
||||
--planner "$PWD/build/native/profiles/debug/out/bin/vls_module_scan_fixture" \
|
||||
--artifacts "$PWD/build/native/profiles/debug/out/bin/vls_module_artifact_fixture"
|
||||
```
|
||||
|
||||
The artifact case published `corpus.cmi` through `ArtifactCache`, consumed the
|
||||
published CMI with a real importer, rejected a truncated CMI, and then ran a
|
||||
superseded build: the fixture held the unit after admission, submitted a newer
|
||||
revision for the same key, and asserted the producer returned cancelled with no
|
||||
published generation. A clean run afterwards published a new generation. The
|
||||
same run passed the seven real planner corpus cases. Output excerpt:
|
||||
`{'usable': True, 'truncated_rejected': True, 'superseded_published': False,
|
||||
'clean_generation': 'b5b62d6e...'}`.
|
||||
|
||||
The registered module suite also covers scheduler-driven production in
|
||||
dependency order and a superseded production that publishes nothing (a
|
||||
scheduler outcome of `cancelled` now overrides a stopped task's thrown error).
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug --target vls_scheduler_tests
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug --target vls_module_tests
|
||||
```
|
||||
|
||||
`vls_scheduler_tests` passed nine cases: work and metrics, foreground capacity
|
||||
reserved under a saturated background pool, revision coalescing, cooperative
|
||||
running cancellation, watchdog timeout, queue/oversize rejection, memory
|
||||
serialization, exactly one terminal result across 100 superseded revisions, and
|
||||
invalid-budget rejection. Repeated runs (40) passed and five runs of the
|
||||
sanitized profile were clean after fixing a worker-construction order bug and a
|
||||
drain race that could destroy a completion target while a worker still used it.
|
||||
`vls_module_tests` added eight artifact cases: publish and find, failed
|
||||
publication leaving nothing, content deduplication, reader retention across
|
||||
eviction, retained-limit eviction, dependency-ordered production, producer
|
||||
failure/cancellation publishing nothing, and unready-plan refusal.
|
||||
|
||||
The scheduler now runs the `EditorDiagnostics` analysis jobs. The real stdio
|
||||
corpus `tests/native/StockOccurrences.py` superseded a running revision and
|
||||
asserted `scheduler.cancelled >= 1` in `analysisStatus` before the final
|
||||
revision's hover and definition were served. The full native suite (13
|
||||
targets) and the comparison CMake suite (13/13) pass.
|
||||
|
||||
## December 5 stock occurrence host integration
|
||||
|
||||
The observer-enabled profile was prepared and the real Void translation unit was
|
||||
exercised through a stdio LSP session:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 tools/prepare-gcc-profile \
|
||||
--observer "$PWD/build/stock-observer-014/occurrences.so" \
|
||||
--output "$PWD/build/stock-occurrences/profile.json"
|
||||
dev cpp-gcc -c python3 -B tests/native/StockOccurrences.py \
|
||||
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
--gcc-profile "$PWD/build/stock-occurrences/profile.json"
|
||||
```
|
||||
|
||||
Output: `stock occurrences: hover and definition selected string_view at
|
||||
Hash.hpp:59 then byte_span at 65`. The session opened
|
||||
`src/Documents/DocumentSnapshot.cpp`, waited for the selected TU analysis, and
|
||||
checked that hover reports `fnv1a64` with its signature and canonical type,
|
||||
that definition resolves to `Void/Core/Hash.hpp`, that the `string_view`
|
||||
overload is selected, that the same query selects the `byte_span` overload at
|
||||
line 65 after editing the argument, and that an unrelated position returns
|
||||
`null`. The observer facts were `partial` as expected because immutable system
|
||||
headers are outside the captured file set.
|
||||
|
||||
The diagnostic suite grew to 38 cases, including nine occurrence decoder cases
|
||||
for capture binding, negotiated UTF-16/UTF-8 conversion, wrong nonce, unknown
|
||||
paths, mismatched bytes, duplicates, incomplete reports, withheld definitions
|
||||
and malformed envelopes. All native and comparison test targets pass.
|
||||
|
||||
## December 5 editor clients
|
||||
|
||||
Both thin clients were exercised against the installed server and adapter
|
||||
built in `build/native`.
|
||||
|
||||
```sh
|
||||
VLS_SERVER="$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
VLS_DAP="$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
VLS_TRACE="$PWD/tests/debug/fixtures/integral-17.vls" \
|
||||
VLS_NVIM_DAP="$PWD/build/dap-evidence/nvim-dap" \
|
||||
nvim --headless -u NONE -i NONE -l tests/native/NeovimClient.lua
|
||||
|
||||
python3 -B tests/native/VscodeClient.py \
|
||||
--server "$PWD/build/native/profiles/debug/out/bin/vls" \
|
||||
--adapter "$PWD/build/native/profiles/debug/out/bin/vls-dap" \
|
||||
--trace "$PWD/tests/debug/fixtures/integral-17.vls"
|
||||
```
|
||||
|
||||
Neovim `0.12.6` and nvim-dap `cfa2d58f4537aca6ca83e2de1a0d9f1491121264` passed
|
||||
with `Neovim client passed: LSP status, replay session, timeline, source and
|
||||
stale rejection`. VS Code `1.147.0` (commit
|
||||
`8a14f0cc1b08d531eb83255ea3764ae22aa932b5`) with Node `24.22.3` and npm `11.19.1`
|
||||
passed in a disposable extension host with `VS Code client passed: LSP status,
|
||||
replay session, timeline, source and stale rejection`. The VS Code test used
|
||||
temporary user-data and extensions directories and invoked the application
|
||||
binary directly because the Nix `code` launcher detaches from the terminal.
|
||||
|
||||
## December 5 VoidLibrary main, JSON gate and stock observer
|
||||
|
||||
VoidLibrary main `9cb86f8f978668215328ead51ee6f132552847c1` was prepared with
|
||||
`tools/prepare-voidlibrary`. After `vbs deps resolve`, the native debug build
|
||||
compiled 75 actions and all 12 test targets passed:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c $VBS build --project "$PWD" --build-dir "$PWD/build/native" --profile debug
|
||||
dev cpp-gcc -c $VBS test --project "$PWD" --build-dir "$PWD/build/native" --profile debug
|
||||
```
|
||||
|
||||
`vls_json_capabilities` passed all eight cases, including
|
||||
`rounded_fractional_id_cannot_change_lifecycle` and
|
||||
`valid_number_outside_machine_range_is_still_json`. The earlier failures on
|
||||
`e6745ac` were reported as [Void/Library#60](https://git.faumaray.com/Void/Library/issues/60)
|
||||
and the issue was closed after this verification. The comparison CMake build
|
||||
was reconfigured with `--fresh` against the same main and `ctest` passed all 12
|
||||
test targets.
|
||||
|
||||
The stock GCC occurrence observer was built and verified with stock GCC 16.2.0
|
||||
and its matching plugin headers:
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 tools/prepare-gcc-observer --output "$PWD/build/stock-observer-014/occurrences.so"
|
||||
dev cpp-gcc -c python3 -B tests/corpus/frontend/verify-stock-observer.py --observer "$PWD/build/stock-observer-014/occurrences.so"
|
||||
```
|
||||
|
||||
The prepared artifact reports plugin ABI 16.2.0, SHA-256
|
||||
`e4b19a4089fd69885b09887188bff26ae28d1b7f51eb87baf30910d8fffffe15`, and only
|
||||
`libstdc++.so.6`, `libm.so.6`, `libgcc_s.so.1` and `libc.so.6`. Its two RUNPATH
|
||||
entries are immutable compiler-runtime paths. `--inspect` accepts it and rejects
|
||||
the planner's probe with its mutable project RUNPATH
|
||||
`/home/faumaray/Projects/VoidLanguageServer/outputs/out/lib`. The verifier passed
|
||||
same-line overloads and an overload edit, header definition and shift, macro
|
||||
withholding, `#line` invalidation, a same-name qualifier, a declared-only call,
|
||||
a template instantiation, UTF-8 BOM byte positions, a path with spaces, the
|
||||
capacity quota, a compile error, recovery, malformed manifests, and a sealed
|
||||
fixed-path run with 27 compiler runtime paths.
|
||||
|
||||
## November 28 stock GCC diagnostics in the editor
|
||||
|
||||
The Linux/Nix developer shell prepared a stock x86-64 GCC 16.2.0 profile with
|
||||
48 immutable runtime and include mounts. Its unmodified `cc1plus` SHA-256
|
||||
begins with `984a888604a3`. The compiler profile is optional and local to the
|
||||
launcher-selected workspace. The build still follows VoidLibrary main. An
|
||||
upstream check returned `7d7d23ec0a6a55d4b30921432fa215b29a29e59b`, matching
|
||||
the prepared source generation.
|
||||
|
||||
The stdio corpus exercises the normal executable with an empty PATH, ordinary
|
||||
LSP document notifications and asynchronous diagnostic notifications. A real
|
||||
compilation database supplies the small workspace. The tests change a header
|
||||
in memory, create and remove an optional header on disk, remove and restore
|
||||
build metadata, and check a file timestamp observed by GCC. An error from a
|
||||
header with a remapped line and filename remains available in analysis status
|
||||
without attaching it to an inactive line in the editor. A client that omits
|
||||
diagnostic version support receives notifications without a version field.
|
||||
|
||||
In the native VBS workspace the client opens an edited `DocumentSnapshot.cpp`.
|
||||
GCC diagnoses the missing member of `Void::Hash`. The notification covers
|
||||
zero-based line 18, columns 33 through 40 exclusive. Fixing the source yields
|
||||
an empty diagnostic list. A subsequent edit supersedes a running compiler
|
||||
process. The transcript checks that the earlier version receives no result.
|
||||
The initial TU needed ten isolated frontend passes to discover 605 workspace
|
||||
lookup names. The recovered TU needed one pass. These are observations from the
|
||||
development host. A positive test used a header with an on-disk timestamp in
|
||||
January 2000. The worker preserves that timestamp and runs with a fixed UTC
|
||||
timezone whose lookup stays inside the immutable toolchain.
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c tools/prepare-gcc-profile --output "$PWD/build/stock-editor/profile.json"
|
||||
python3 -B tests/native/StockDiagnostics.py --server build/bootstrap/vls \
|
||||
--gcc-profile "$PWD/build/stock-editor/profile.json" --vbs-workspace "$PWD"
|
||||
```
|
||||
|
||||
The two new catalog tests cover a missing parent becoming a directory and
|
||||
metadata-only acquisition of existing files and directories. The resulting
|
||||
suite has 26 cases. Both builds passed 264 of 266 C++ cases and the separate
|
||||
registration executable. The native test command exited 1 and CTest exited 8.
|
||||
Both failed only the rounded fractional JSON-RPC ID and valid out-of-range JSON
|
||||
number cases. The eight preparation tests passed. The comparison executable
|
||||
and the executable staged by VBS both passed the stdio corpus above, including
|
||||
the real Void translation unit. The installed server also passed both position
|
||||
encodings and resolved one command for `main.cpp` from 54 native and 76
|
||||
comparison database entries. The native build/test used VBS `6c225c2`; the
|
||||
dependency-aware development CLI installed the executable under
|
||||
`build/stock-editor/install`. The process logs in `build/stock-editor` include
|
||||
`final-installed-editor.log`, `final-installed-passive.log`,
|
||||
`final-native-test.log` and `final-comparison-test.log`.
|
||||
The independent integration review, wider toolchain coverage and project-wide
|
||||
diagnostics remain open.
|
||||
|
||||
## November 28 source capture and immutable replay
|
||||
|
||||
The native build and comparison build each enumerated 264 C++ cases. VBS test
|
||||
exited 1 and CTest exited 8. Both passed 262 cases and the registration
|
||||
executable. The two failures were the previously recorded exact JSON number
|
||||
cases. This checkpoint added 14 source catalog and eight immutable recording
|
||||
cases. The diagnostics executable passed 24 of 24, and the trace executable
|
||||
passed 21 of 21. The freshly staged server's stdio test passed both position
|
||||
encodings and selected the correct TU among 52 native and 74 comparison rows.
|
||||
|
||||
The catalog binds an installed workspace grant and the editor store to each
|
||||
capture. Tests used an actual file-access watch to verify zero payload reads
|
||||
for a mismatched grant, a foreign census and a refused or desynchronized
|
||||
overlay. Further cases cover an empty overlay, missing optional headers,
|
||||
replacement of an identical-byte file, overlapping roots, retained bytes,
|
||||
revocation during capture and bounded historical readers. A membership
|
||||
witness lets a capture release unrelated editor buffers.
|
||||
|
||||
Both builds' stock GCC fixtures passed the isolated source-view check with
|
||||
the real catalog. Each staged the saved TU and three project headers through
|
||||
the selected compiler context, then supplied an edited TU and Void header
|
||||
from the document store. The real compiler diagnosed the edited inputs and
|
||||
cleared the recovered source. The independent lookup-coverage and asynchronous
|
||||
publication work remains necessary for production stdio diagnostics.
|
||||
|
||||
Four real journals replayed offline with an empty PATH. The four-stop
|
||||
recording yielded 17, 34, 22 and 44. The edited source yielded 41 and 82,
|
||||
and the cancelled recording retained 41 with exit 125. The actual supervisor
|
||||
test with the private GCC frontend also passed live control, replay,
|
||||
cancellation, bounded diagnostic output and descendant cleanup.
|
||||
|
||||
Full runs are in `build/native-evidence/catalog-recording-{ctest,native-test}.log`.
|
||||
The two real source-view logs are `catalog-stock-{native,cmake}-corpus.log`.
|
||||
The same directory contains `catalog-installed-test.log`,
|
||||
`recording-real-offline.log` and `recording-live-supervisor.log`.
|
||||
|
||||
## November 28 integrated build and stock compiler checks
|
||||
|
||||
VoidBuildSystem and CMake each registered 242 C++ cases across ten suites and
|
||||
ran the registration executable. Each passed 240 cases. The eight JSON number
|
||||
cases had six passes and the two known failures for a rounded request ID and
|
||||
valid JSON outside the numeric representation. VoidLibrary upstream main still
|
||||
resolved to `7d7d23ec0a6a55d4b30921432fa215b29a29e59b`.
|
||||
|
||||
| Suite | Registered C++ cases |
|
||||
| --- | ---: |
|
||||
| Unit, JSON numbers, stdio | 29, 8, 18 |
|
||||
| Documents, workspace, build model | 37, 46, 18 |
|
||||
| Providers, debugger trace | 42, 13 |
|
||||
| GCC diagnostics, module planner | 10, 21 |
|
||||
|
||||
The newly staged native executable negotiated UTF-8 and UTF-16 and detected
|
||||
an edit that split the preceding replacement. It reported 49 VBS commands and
|
||||
71 comparison commands from an empty working directory and PATH. Each provider
|
||||
selected the sole owner of `src/main.cpp`.
|
||||
|
||||
Both diagnostic fixture executables acquired a compiler lease on the real
|
||||
`DocumentSnapshot.cpp` through native and compatibility metadata. The stock
|
||||
GCC worker with isolated source inputs compiled the saved TU, observed both
|
||||
edited overloads and located the bad edit. Its lookup of a positive host-only
|
||||
`__has_include` control returned false inside the isolated process.
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 -B tests/corpus/frontend/verify-stock-diagnostics.py \
|
||||
--fixture build/native-validation/profiles/debug/out/bin/vls_gcc_diagnostic_fixture \
|
||||
--comparison build/bootstrap/compile_commands.json --isolated-inputs
|
||||
dev cpp-gcc -c python3 -B tests/corpus/modules/verify.py --cxx g++ \
|
||||
--planner "$PWD/build/native-validation/profiles/debug/out/bin/vls_module_scan_fixture"
|
||||
```
|
||||
|
||||
The GCC module corpus checked 33 behaviors. Seven planner integration cases
|
||||
covered baseline, edited and longer dependency orders, malformed data, incorrect
|
||||
output identity, a pending header CMI and a failed compiler scan that produced
|
||||
a rule. Logs are under `build/native-evidence`, including
|
||||
`bound-source-{ctest,native-test}.log`, `stock-lease-view-{native,final}.log`,
|
||||
`module-bridge-stock.log` and `semantic-current-installed-test.log`.
|
||||
|
||||
## Stock diagnostics, module graph and installed contexts
|
||||
|
||||
Both native `vbs build` and `cmake --build build/bootstrap` exited 0 on
|
||||
the working tree with 210 registered C++ bodies. VBS test exited 1 and CTest
|
||||
exited 8. Each ran eleven executables including registration. Only the
|
||||
`vls_json_capabilities` suite failed, with six passing cases and the same two
|
||||
precision/range failures. The rolling upstream main was rechecked at
|
||||
`7d7d23ec0a6a55d4b30921432fa215b29a29e59b`. Inventories were independently
|
||||
enumerated with each executable's `--list --no-color`.
|
||||
|
||||
| Suite | Cases |
|
||||
| --- | ---: |
|
||||
| Unit, JSON capability, stdio subprocess | 29, 8, 18 |
|
||||
| Documents, workspace, build model | 23, 29, 18 |
|
||||
| Providers, debugger trace | 42, 13 |
|
||||
| GCC diagnostics, module planner | 10, 20 |
|
||||
|
||||
The native diagnostic fixture used unmodified dev-shell GCC 16.2.0 and the
|
||||
selected VBS row for `src/Documents/DocumentSnapshot.cpp` from generation
|
||||
`b7da5a9f204361f4`. The saved source, byte-span edit and restored source
|
||||
compiled. Replacing `fnv1a64` with `missing` produced a compiler error at
|
||||
line 19, columns [34,41), projected to LSP line 18, characters [33,40).
|
||||
Distinct deprecated attributes in a copied Void header identified the
|
||||
`string_view` and byte-span overloads. Removing them cleared the messages.
|
||||
A real `#line` header preserved the error without attaching it to the inactive
|
||||
line GCC named. This fixture supplies physical-location evidence for the
|
||||
controlled edit. The stdio server does not yet publish compiler diagnostics.
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 -B tests/corpus/frontend/verify-stock-diagnostics.py \
|
||||
--fixture build/native-validation/profiles/debug/out/bin/vls_gcc_diagnostic_fixture \
|
||||
--comparison build/bootstrap/compile_commands.json
|
||||
```
|
||||
|
||||
The previous staged executable ran from an empty cwd with an empty PATH,
|
||||
negotiated both encodings and reported all 41 native and 63 compatibility rows
|
||||
that existed before adding the new targets. Two further installed transcripts
|
||||
with 16 and 17 owners each agreed with the compact status response and its
|
||||
truncation indicator. The C++ provider tests also verified the source language
|
||||
of a checked compiler's actual operand, explicit `-x c` and a `.cpp` alias
|
||||
pointing to a generated file with a different suffix.
|
||||
|
||||
GCC prototype patch 0003 has SHA-256
|
||||
`46a66dcd255eec7872284e66db77fbb2db1add75536ea3f9a6a0ece024fe1da2`.
|
||||
The combined private `cc1plus` has SHA-256
|
||||
`5823173025a7c58d042be2dd819a1f3437412811c1d4d3334b25cc31a3e586b2`.
|
||||
Both evaluator and IDE harnesses exited 0. The repeated 19 language and
|
||||
33 module checks using the reference driver and this ELF also exited 0.
|
||||
The new BOM fixture distinguishes the terminal call name from a same-spelled
|
||||
namespace qualifier three bytes earlier.
|
||||
|
||||
## Live nested returns on the installed GCC package
|
||||
|
||||
On November 27, the installed x86-64 Linux GCC 16.2.0 `cc1plus` with SHA-256
|
||||
`984a888604a33488e0fface3d1e4fd926ce11e45258244a120b9b71c002cbbeb`
|
||||
ran the reflection fixture twice under GDB. The probe compiled a type object
|
||||
from the package's matching public development headers and loaded it into GDB.
|
||||
The compiler executable, arguments for evaluation and source assertions
|
||||
required no instrumentation. The package retained the out-of-line call
|
||||
evaluator symbol even though GDB could not resolve its source lines or locals.
|
||||
|
||||
The standalone check exited 0. With the enum value 17, GDB held the compiler
|
||||
at the inner and outer returns and read 17/34 for bias 0 and 22/44 for bias 5.
|
||||
With the enum value 41 the corresponding pairs were 41/82 and 46/92. Each
|
||||
compilation used one PID and exited successfully. The probe checks the callee
|
||||
name, nesting, integer result and process identity. It does not classify an
|
||||
unobserved call body, cache hit, constraint or splice. Other compiler builds
|
||||
and architectures need their own validation.
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 tests/corpus/frontend/verify-stock-gcc-gdb.py \
|
||||
--include-dir /nix/store/fs234b3nv0bv3jij5nf6jkpj5n575g8i-gmp-with-cxx-6.3.0-dev/include
|
||||
```
|
||||
|
||||
The observed package exposes no public per-return evaluator callback. The
|
||||
probe uses a GDB finish breakpoint and the compiler's matching tree types.
|
||||
See [GCC 16.2 plugin events](https://github.com/gcc-mirror/gcc/blob/releases/gcc-16.2.0/gcc/plugin.def)
|
||||
and [GDB finish breakpoints](https://sourceware.org/gdb/current/onlinedocs/gdb.html/Finish-Breakpoints-in-Python.html).
|
||||
|
||||
## GCC evaluator prototype and build metadata on November 27
|
||||
|
||||
The reference and unmodified private GCC 16.2 frontend both passed 19 language
|
||||
checks, eight tooling probes and 33 module/scanner checks. The private driver
|
||||
used the reference compiler's ordered eleven header paths, explicit PIE and
|
||||
the same standard predefines. Its macro set matched the reference. The
|
||||
optional full compiler-tools build stopped in fixincludes on the absent
|
||||
system /usr/include. Building the cc1plus target directly succeeded.
|
||||
|
||||
Root applied compiler patch 0001 to the owned GCC release tree with zero
|
||||
fuzz and rebuilt cc1plus. Patch SHA-256 was
|
||||
`4b4ff5b664457dcdd1842ed63c8e8ff54896bb73ccc64c95ae8e4c173c5d52bf`.
|
||||
The rebuilt executable SHA-256 was
|
||||
`5780c2604fb49e70597a710c594627802f4c547f34335b74071496019e2f217f`.
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c python3 tests/corpus/frontend/verify-gcc-events.py \
|
||||
--cc1plus "$PWD/build/gcc-gate/compiler-build/gcc/cc1plus"
|
||||
```
|
||||
|
||||
The independent root run exited 0. The compiler returned (17,34) and (22,44)
|
||||
at biases 0 and 5. After editing the enumerator it returned (41,82) and (46,92).
|
||||
The child held at the inner result, accepted a matching step, returned the
|
||||
outer value and resumed. Separate children exited 125 on cancel and 126 on
|
||||
control EOF or oversize input. Scalar width/sign, cache reuse, exception and
|
||||
quota checks passed. Warm medians on 500 calls were 21.53 ms with hooks off
|
||||
and 30.17 ms with 2,031 records. The pristine and instrumented builds used
|
||||
different optimization flags, so the figures do not measure disabled-hook
|
||||
overhead against pristine GCC.
|
||||
|
||||
The provider reader passed its seven acquisition tests. The importer passed
|
||||
17 tests. Passive import of actual database rows retained all 24 native and
|
||||
47 CMake commands. With an explicitly checked compiler identity, all rows in
|
||||
both generations classified. The native main translation unit retained three
|
||||
reflection flags and the CMake row retained one. Native v1 lacks role and
|
||||
per-command target metadata. The November 27 sanitizer profile linked both
|
||||
libasan and libubsan, emitted `-fsanitize=address,undefined` and reproduced
|
||||
the same two JSON capability failures as the debug foundation.
|
||||
|
||||
## Integrated foundation and GCC tooling checks
|
||||
|
||||
On November 27, the native debug build and optional CMake build listed the
|
||||
same 106 C++ test bodies. Both passed 29 protocol/unit, 12 stdio process,
|
||||
22 document and long-line, 17 workspace, 18 build-model and six of eight JSON
|
||||
capability cases. Both registration executables passed. Native `vbs test` exited
|
||||
1 and CTest exited 8. The two exact-number regressions below remain ordinary
|
||||
failures. The install-capable development VBS staged the updated executable.
|
||||
`python3 tests/native/InstalledServer.py build/native-evidence/install-reviewed/bin/vls`
|
||||
verified its version, incremental edits, split-scalar diagnostics and lifecycle
|
||||
in an empty directory and with an empty PATH. Dependency preparation passed
|
||||
all eight cases with `python3 tests/native/Preparation.py -v`.
|
||||
|
||||
The earlier independent review found a long-line slowdown. In paired GCC 16.2
|
||||
debug runs, the median 64 KiB near-end edit round trip fell from 7.71 ms to
|
||||
2.86 ms. Release p95 fell from 0.50 ms to 0.33 ms. The three-run experiment
|
||||
used eight edits per run. Release multiline p95 after the correction was
|
||||
4.40 ms for 1 MiB and 34.27 ms for 8 MiB, using 20 edits per run.
|
||||
|
||||
`dev cpp-gcc -c python3 tests/corpus/frontend/probe-gcc-tooling.py` exited 0
|
||||
on GCC 16.2.0. The compiler bound the original call to the integer overload at
|
||||
line 6, the projected edit to the double overload at line 7, and the recovered
|
||||
edit back to line 6. A malformed edit produced a SARIF error at line 11,
|
||||
columns 20–27. Two independently built modules materialized enum values 17
|
||||
and 41. A failed concept reported six related locations. The instantiation dump
|
||||
identified the nested consteval calls; a GDB probe stopped inside the actual
|
||||
evaluator and resumed to completion. The prototype still needs event-time
|
||||
variables and user-level control.
|
||||
|
||||
GCC's release archive matched the published SHA-512 in
|
||||
[the GCC release checksums](https://gcc.gnu.org/pub/gcc/releases/gcc-16.2.0/sha512.sum).
|
||||
The four evaluator, constraint, template and reflection source files matched
|
||||
tag commit `78d4ac73dd391005b895a6148cd9831e28e1208b` byte for byte. The
|
||||
local compiler build uses an isolated directory under `build/gcc-gate`.
|
||||
|
||||
## Native build, installation and reference corpus on November 27
|
||||
|
||||
Root used GCC 16.2 in the repository root. The native descriptor consumed the
|
||||
immutable VoidLibrary main generation `3095596650a59c07588398f5ed5cf35bc990eb31f14abeecafd0b26aaaadf81c`,
|
||||
revision `7d7d23ec0a6a55d4b30921432fa215b29a29e59b`. Preparation compared
|
||||
119 selected files with their Git blobs. Root repeated
|
||||
`python3 tests/native/Preparation.py -v`, which passed all seven tests.
|
||||
|
||||
* The committed VBS 6c225c2 seed ran `vbs build --project "$PWD" --build-dir
|
||||
"$PWD/build/native-validation" --profile debug --jobs 4`. The first clean
|
||||
build exited 0 with 20 native dependency actions and 16 VLS actions. A failing
|
||||
`cmake` executable headed PATH during every VLS action. The native suites
|
||||
retained all 39 case names from the comparison build. Unit 22/22, subprocess
|
||||
9/9 and registration passed. JSON 6/8 passed. Full `vbs test` exited 1 and
|
||||
comparison CTest exited 8 on the same two ordinary numeric regressions.
|
||||
* The coordinated Protocol switch introduced seven encoding tests. Both builds
|
||||
succeeded. The canonical unit suite grew to 29 cases, and full native and
|
||||
comparison runs still failed only the two known JSON cases. The independent
|
||||
package run passed its seven encoding tests under UBSan.
|
||||
* The committed seed's native install omitted imported targets during graph
|
||||
lowering and exited 1 on `Void::Data`. The local VBS development checkout
|
||||
resolves dependencies for install. Its CLI uses ConsoleLogger, so the
|
||||
isolated tool build added the existing `Void::Log` library to that executable
|
||||
with a deferred CMake link command. Tool SHA-256 was
|
||||
`703d8d7743865778fb9e16da631de4b552f498b851571632bc4c66250d5fc20c`.
|
||||
VLS itself ran its native descriptor with CMake trapped.
|
||||
`vbs install --project "$PWD" --build-dir "$PWD/build/native-development"
|
||||
--profile debug --prefix "$PWD/build/native-evidence/install-dev"
|
||||
--no-cmake-export` exited 0. From /tmp with an empty PATH, staged `bin/vls`
|
||||
printed version 0.1.0 and completed its framed lifecycle with two correct
|
||||
replies and empty stderr. Both VBS sources were read-only to this task.
|
||||
* `dev cpp-gcc -c python3 tests/corpus/frontend/verify-gcc.py --void-include
|
||||
build/bootstrap/_deps/voidlibrary-src/include` exited 0. All 19 reference
|
||||
checks matched, including six expected errors and the imported reflection
|
||||
splice. The pinned candidate was fetched and configured in build/frontend-gate.
|
||||
|
||||
### Integrated document and workspace foundations
|
||||
|
||||
Both builds linked the server and six test targets against the same upstream
|
||||
revision. Root corrected the text-length check in LineIndex after a mismatch
|
||||
regression failed in both builds. The incremental edit path updates that length
|
||||
with the line offsets. Rerunning both full suites left the two JSON cases.
|
||||
The native runner exited 1 and CTest exited 8. The registered C++ bodies were
|
||||
29 unit, 17 document, 15 workspace, 11 subprocess and 8 JSON, totaling 80.
|
||||
All 78 independent of the two JSON regressions passed. Registration independently
|
||||
enumerated every suite and executed its named framing regression.
|
||||
|
||||
Two additional focused subprocess cases passed with exit 0. The first replaces
|
||||
`a` with an astral scalar and verifies the distinct UTF-8 and UTF-16 diagnostics
|
||||
for a subsequent edit at column one. The second rejects a malformed late change,
|
||||
a stale recovery and an out-of-range coordinate. Each transcript finishes with
|
||||
only the initialize and shutdown responses.
|
||||
|
||||
The native Release target also built with `--offline --profile release --target
|
||||
vls --jobs 4`. On this machine, the real stdio edit-and-reply measurement ran
|
||||
20 one-character replacements at different lines for each file size. At 1 MiB
|
||||
the median was 4.03 ms, p95 4.45 ms and peak RSS 19,456 KiB. At 8 MiB they were
|
||||
33.01 ms, 36.22 ms and 29,192 KiB. The command was `python3
|
||||
tests/performance/document_sync.py build/native-validation/profiles/release/out/bin/vls
|
||||
--mib SIZE --samples 20`. These measurements include synchronization and one
|
||||
JSON-RPC round trip. Compiler completion and navigation have separate budgets.
|
||||
|
||||
### Pinned frontend fidelity experiment
|
||||
|
||||
Root fetched candidate `562409c7942690d59ea470762515f88f24b16e23` into
|
||||
`build/frontend-gate/source`. LLVM configured with GCC 16.2, assertions on,
|
||||
Release with `-O1 -g0 -DNDEBUG`, X86, and one parallel link. Building the
|
||||
external `clang` and `clang-resource-headers` targets completed 3,112 actions
|
||||
and exited 0. The binary identified itself as Clang 21.0.0git at the exact SHA.
|
||||
|
||||
`tests/corpus/frontend/probe-clang.py` used the GCC driver's target and system
|
||||
include list, substituting the candidate's own compiler resource headers in
|
||||
the builtin include slot. Six of ten compile checks passed. The cstddef
|
||||
baseline, reflection/splice language control, constexpr-range expansion, plain
|
||||
module provider/importer and the reflection module interface passed. GCC's
|
||||
`<meta>` hid its declarations because the candidate lacked the required
|
||||
`__cpp_impl_reflection` macro. Its module importer consequently lacked
|
||||
`std::meta::identifier_of`. Both real Void enum header entry points stopped
|
||||
inside Clang expression classification. The probe exited 1. GCC passed the
|
||||
same Void header and module examples. Compiler-source repairs, alternate
|
||||
backends, production IDE queries and debug instrumentation were outside this
|
||||
experiment. The full report is retained under `build/frontend-gate/candidate-report.json`.
|
||||
|
||||
Updated: 2026-11-27. The fetched bootstrap passes 37 of 39 cases after two
|
||||
independent review findings were added to the suite.
|
||||
|
||||
## Resumption evidence — 2026-11-27
|
||||
|
||||
Repository base ca04975d545efd4a891ee90edf22f130069bd191. Current branch
|
||||
feat/implement-roadmap was created on explicit user instruction, preserving all
|
||||
dirty/untracked work. No staging, commits, pushes or sibling edits in this run.
|
||||
|
||||
The first ordinary configure/build succeeded but retained cached VoidLibrary9931c5f;
|
||||
CTest exited8 with the previous6 JSON failures. A fresh configure was necessary to
|
||||
refresh the dependency population stamps. The fetched and local source now both
|
||||
resolve7d7d23ec0a6a55d4b30921432fa215b29a29e59b. StrictJson uses double for decimal
|
||||
syntax and now has checked serialization; raw source was inspected because its
|
||||
sibling graph was stale. No competing parser was added.
|
||||
|
||||
Commands below ran in /home/faumaray/Projects/VoidLanguageServer:
|
||||
|
||||
| Command | Observed result |
|
||||
| --- | --- |
|
||||
| `dev cpp-gcc -c cmake --fresh -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON` | Exit0; main7d7d23e fetched |
|
||||
| `dev cpp-gcc -c cmake --build build/bootstrap --parallel 2` | Exit0 |
|
||||
| `dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure` before CLI fix | Exit8; JSON6/6 pass, one process case fails on bare -- |
|
||||
| Executable argument matrix via bounded Python subprocesses | Bare -- incorrectly exits1 after entering stdio; all other invalid modes exit2 |
|
||||
| Same build and full CTest after src/main.cpp correction | Both exit0;4/4 entries,22 unit+6 JSON+9 subprocess cases pass |
|
||||
| `dev cpp-gcc -c cmake -S . -B build/local -G Ninja -DCMAKE_BUILD_TYPE=Debug -DVLS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary` | Exit0; explicit source override |
|
||||
| `dev cpp-gcc -c cmake --build build/local --parallel 2` | Exit0 |
|
||||
| `dev cpp-gcc -c ctest --test-dir build/local --output-on-failure` | Exit0; same4/4 entries and37 bodies |
|
||||
| `dev cpp -c clang-format -i src/main.cpp` | Exit0; only the owned changed source formatted |
|
||||
| Task linter on tasks/T-PLAN-002.md | Exit0 after setting READY contract status with blocked dispatch recorded separately |
|
||||
|
||||
The pre-existing16-file uncommitted baseline was preserved under ignored
|
||||
build/goal-baseline-20261127. No claim that the new foundation files are wired,
|
||||
tested or independently reviewed. All existing37 test bodies remain enabled.
|
||||
The user subsequently authorized explicit GPT-6.2 models at Max through the
|
||||
generic runtime. Task contracts T-PLAN-002, T-RESEARCH-008 and T-REVIEW-003
|
||||
passed codex-tasklint. Dispatch accepted gpt-6.2-astra and reasoning_effort=max
|
||||
for each. The spawn response exposed an agent ID and nickname only.
|
||||
|
||||
The old sibling VBS binary and a relocated copy both aborted during profile
|
||||
discovery. A driver compiled directly from the matching SDK sources returned
|
||||
profiles successfully. The dirty sibling's CMake seed failed at link time on
|
||||
ConsoleLogger constructor/destructor symbols. Its committed source at
|
||||
6c225c2dff58b64fe8dbb0e5072f8e23f566efe5 configured and built successfully
|
||||
under build/tools/vbs-6c225-bin, using GCC 16.2 and the tested VoidLibrary above.
|
||||
Only committed build inputs and LICENSE were extracted from Git into the ignored
|
||||
build directory. CMake served solely to bootstrap this build tool.
|
||||
|
||||
From build/vbs-native-probe the resulting binary ran `vbs test --project .
|
||||
--build-dir out-committed-seed --profile debug --jobs 2` with a failing cmake
|
||||
executable at the front of PATH. Exit 0. VBS built the native VoidLibrary
|
||||
dependency and compiled and linked the C++ probe, which parsed 1.25 as a double.
|
||||
Its subsequent `vbs ide query` exited 0. The generated status described a
|
||||
valid immutable generation with two real commands, for main.cpp and build.cpp.
|
||||
|
||||
The five-module native framework probe built 20 dependency actions, then
|
||||
compiled and ran a self-registering `VOID_TEST`. A direct list returned
|
||||
`NativeRegistration.decimal`, and its filtered run executed one passing body.
|
||||
|
||||
T-REVIEW-003 verified the CLI fix and the original 37 cases. Its stdin/stdout
|
||||
probes reproduced precision loss and numeric range rejection, recorded in
|
||||
REVIEW.md. After adding `rounded_fractional_id_cannot_change_lifecycle` and
|
||||
`valid_number_outside_machine_range_is_still_json`, the fetched build succeeded
|
||||
and full CTest exited 8. The JSON suite ran eight bodies with six passes and two
|
||||
failures. Unit, process and registration entries passed. A focused rerun of just
|
||||
the new bodies returned 1. The comparison build's earlier 37-case results above
|
||||
precede these regressions.
|
||||
|
||||
## Historical planning evidence — 2026-11-25
|
||||
|
||||
## Planning evidence
|
||||
- `dev cpp-gcc -c g++ --version`: exit0, GCC16.2.0.
|
||||
- `dev cpp -c clang++ --version`: exit0, Clang23.1.3.
|
||||
- Syntax-only enum helper probe including Void/Detail/Enum.hpp:
|
||||
@@ -17,7 +967,7 @@ Updated: 2026-11-25. Builds and independent shell suites pass; final JSON accept
|
||||
directly. VBS graph lacked current source coverage. No reindex of secret-bearing
|
||||
sibling checkouts occurred.
|
||||
|
||||
## Implementation evidence
|
||||
## Historical implementation evidence — 2026-11-25
|
||||
All commands below ran in /home/faumaray/Projects/VoidLanguageServer unless stated.
|
||||
Root observed:
|
||||
|
||||
|
||||
Reference in new issue
Block a user