# Verification evidence ## 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 6 definition modifier from the observer target kind The stock observer now emits `targetKind` ("definition" or "declaration") inside each proven target span. The occurrence decoder carries it as `target_is_definition`, and semantic tokens use the legend's `definition` modifier for definition-name tokens instead of always `declaration`. The observer verifier validates the field; real stdio session over the `Base`/`DerivedA`/`DerivedB` fixture: ``` semanticTokens: [(0, 7, 4, 1, 0), (1, 7, 8, 1, 0), (2, 7, 8, 1, 0), (3, 9, 6, 0, 2), (4, 9, 6, 0, 2), (5, 22, 6, 0, 0), (5, 41, 6, 0, 0)] ``` The two factory definitions now carry modifier 2. All 18 native suites and all 18 CMake tests passed. ## December 6 index snapshot schema 4 The symbol-index snapshot is now schema 4 and records `digestAlgorithm` inside the digested payload. Restore accepts schemas 1-4 (older ones report `migrated`), verifies the digest for schemas 3 and 4, and classifies an unknown algorithm as `incompatible` rather than `corrupt`, so a future digest change cannot be misread as corruption. Registered `vls_index_tests` cover the migration path and the unknown-algorithm rejection (30 cases). All 18 native suites and all 18 CMake tests passed. ## December 6 reflection references `reflection::references_at` collects every source link of the entity covering a position: the links named by its origins join all origins elsewhere that name the same entity id, deduplicated and bounded (registered `vls_reflection_tests` case, 27 total). The server serves `textDocument/references` over a recorded reflection snapshot and advertises `referencesProvider` when one is loaded. Real stdio session: ``` references inside: [{"range": {"start": {"line": 0, "character": 8}, "end": {"line": 0, "character": 13}}, "uri": "file:///.../main.cpp"}, {"range": {"start": {"line": 1, "character": 5}, "end": {"line": 1, "character": 10}}, "uri": "file:///.../main.cpp"}] ``` All 18 native suites and all 18 CMake tests passed. ## December 6 versioned workspace edits in the VS Code client `applyRename` accepts a full WorkspaceEdit: a `changes` map or versioned `documentChanges`. Choosing both, a resource operation, or a stale document version is refused before the single WorkspaceEdit is applied; the existing version/text recheck stays. The disposable extension-host acceptance passed: ``` VS Code client passed: LSP status, replay session, timeline, source, stale rejection and transactional rename ``` covering the versioned apply, stale-version refusal and resource-operation refusal. ## December 6 versioned workspace edits in the Neovim client `clients/neovim/lua/vls/init.lua` `apply_workspace_edit` now accepts a full WorkspaceEdit: a plain `changes` map as before, or `documentChanges` with versioned TextDocumentEdits. A document whose tracked LSP version differs is refused before any buffer is touched, resource operations are refused explicitly, and the existing transactional rollback is unchanged. `tests/native/NeovimRename.lua` runs headless and now covers the versioned apply, stale-version refusal and resource-operation refusal: ``` Neovim rename passed: atomic apply, injected-failure rollback, invalid range, read-only refusal, documentChanges and stale-version refusal ``` The VS Code client still applies `changes` only. ## December 6 reflection definition and capability advertisement `reflection::definition_at` selects the innermost entity covering a position and returns its first reflected-declaration link (else the first chain link), with a registered `vls_reflection_tests` case. The server now serves `textDocument/definition` over a recorded reflection snapshot, and advertises hover and definition whenever a snapshot is loaded (they previously worked but were only advertised with the occurrence observer). Real stdio session: ``` definition inside: {"range": {"start": {"character": 5, "line": 1}, "end": {"character": 10, "line": 1}}, "uri": "file:///.../main.cpp"} hover outside: null ``` All 18 native suites and all 18 CMake tests passed. ## December 6 base-class tokens in semantic tokens Semantic tokens now also cover the observer-reported base-class name spans when they lie in the open document, as `type` tokens alongside the class's own name. Real stdio session over `Base`/`DerivedA`/`DerivedB`: ``` semanticTokens: [(0, 7, 4, 1, 0), (1, 7, 8, 1, 0), (2, 7, 8, 1, 0), (3, 9, 6, 0, 1), ...] ``` The first entry is `Base` at its declaration. All 18 native suites and all 18 CMake tests passed. ## December 6 compiler-agnostic completion source Per D-032, completion can now consume a documented, compiler-agnostic index (`--completion-index PATH`) produced by any external tool: `{"schema":1,"scopes":[{"path","startLine","startCharacter","endLine", "endCharacter","complete","items":[{"label","kind?","detail?","insertText?"}]}]}` with the producer's visibility claim carried through unchanged. The bounded core (`vls/features/CompletionSource.hpp`) parses and selects the innermost covering scope; the server merges its candidates ahead of index-backed ones and sets `isIncomplete` from the scope's `complete` flag. Registered `vls_feature_tests` grew to 115 cases. Real stdio session: ``` inside scope: isIncomplete = False items = ['alpha', 'beta', 'main'] outside scope: isIncomplete = True ``` All 18 native suites and all 18 CMake tests passed. ## December 6 locality ranking in completion Completion candidates now carry whether they are declared in the requesting document, and the sort key ranks local candidates first within each kind (`<0 local|1 remote>