Files
Language-Server/docs/agent-workflow/tasks/T-PREFLIGHT-STOCK-NAVIGATION-014.md
T
faumaray da8003f6d4 Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite:
protocol and document sync, VBS/compdb providers, stock GCC diagnostics
(including in-process default profile preparation), the stock occurrence
observer and hover/definition, the bounded Scheduler, C++ module graph,
scan and artifact cache with real CMI production, the context-aware
symbol index with schema-2 snapshot migration, navigation and guarded
rename, reflection provenance with splice-origin extraction, index-backed
completion and signature help, live GCC worker control with a registered
DAP suite, and the Neovim and VS Code clients.

VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced
from the versioned patches and verified stepping reflection/template code
with projected values 17/34 and 41/82.
2026-12-05 14:06:50 +03:00

49 lines
6.3 KiB
Markdown

# Preflight stock GCC observation and its editor authority
Task ID: T-PREFLIGHT-STOCK-NAVIGATION-014
Role: astra_reviewer
Status: READY
## 1. Context and baseline
Shared VoidLanguageServer ca04975 on feat/implement-roadmap. T-PLAN-STOCK-NAVIGATION-014 obtained a real stock-GCC match for the saved and edited Void::Hash::fnv1a64 call and tested two same-line overloads. A hidden same-name macro can leave all ordinary CALL_EXPR endpoint locations, and a dependent wrapper may resolve twice at the identical token. The stock worker already closes lookup inputs for LSP diagnostics. Frozen candidate producer contract accompanies this spec.
## 2. Objective and deliverables
Independently preflight T-STOCK-OCCURRENCES-014 and the eventual reader/worker/editor boundary. Return early separate producer and consumer verdicts so bounded implementation may begin. Identify distinguishing tests for false semantic facts and authorization/regressions. No implementation.
## 3. Scope and non-goals
Stock GCC 16.2 optional approved observer for direct-call return type/definition. User project compiler stays unchanged. No live DAP, project rename, generated reflection semantics or other backend selection.
## 4. Files to inspect
Review docs/agent-workflow/tasks/T-{STOCK-OCCURRENCES-014,PLAN-STOCK-NAVIGATION-014}.md including full producer contract. Inspect private source build/plan-stock-navigation-014/observe.cc, relevant evidence, include/vls/semantic/{StockCompiler,SourceCatalog}.hpp, src/semantic/{StockCompiler,EditorDiagnostics}.cpp, src/Server.cpp, src/Build/Model.cpp, tests/corpus/frontend/gcc-queries.cpp and actual stock plugin headers. Review published operator precedence and source-location semantics if necessary using official GCC source. No project data in public requests.
## 5. Write ownership and coordination
Write scope: none
Private checks under build/preflight-stock-navigation-014 only. No application or task edits, shared compiler/builder execution, changing editor selections or shared profiles. No subagents. Return to root only.
## 6. Implementation or investigation approach
Check native plugin API can prove the identity of the selected call and an actual function body. Challenge token-to-byte mapping for hidden macro maps, duplicated/qualified names, line remaps, BOM/tabs, declared-only targets, template instantiations sharing physical occurrences and cross-file header edits. Check per-job stdout/stderr separation, dynamic loader inputs, bounded report, closed mounts, and LSP location/hover correctly tied to receiver and version. Require clear and stale outcomes to distinguish unsupported, interrupted and complete.
## 7. Interfaces and data contracts
Initial wire is in T-STOCK-OCCURRENCES-014 §7. Root proposes an explicit trusted GCC profile option for a fixed ABI observer digest. Capture the verified plugin bytes from the same opened object and bind a private copy read-only at /vls-observer/occurrences.so for the isolated run; only the exact instrumentation inputs and report file receive infrastructure access. Original source spellings are matched to the final source capture. Compdb, initialization options and workspace settings cannot select a plugin or alter its args. On a verified successful run, retain per-TU facts under the selected capture. Revalidate receipt, issuer, source closure and chosen edition before answering hover/definition; emit capability only on opt-in launch. Use a specific occurrence proof and readiness separate from project-wide completeness and diagnostic cleanliness. Client asks ordinary LSP requests at negotiated position. Unknown calls and prior revisions must not authorize links. If a shadow or negative lookup changes, invalidate cache. Distinguish overlay coordinates from disk targets unchecked by clients.
## 8. Dependencies and integration
The producer's tool and host contract now include the linker's effective ELF search paths and dependencies. The observed planner binary has a project RUNPATH. The worker must refuse this object and admit a prepared object with verified immutable resolution.
Existing opt-in stock GCC profiles, immutable source catalog and real diagnostics server. Root owns producer/decoder schema, integration build + tests, and any version-selective capabilities. Existing code imposes conservative directory, symlink, manifest and process limits, so do not add a generic escape hatch. Fresh corpus is allowed only on task-owned minimal source/stock compiler.
## 9. Edge cases security and performance
Bound macro maps (real Void TU observed 26,106), path input counts, generated source, retained queries and lifecycle. Test false positives caused by GCC coordinate normalization or a target declared in an included header but defined elsewhere. Check a plugin change after profile selection and source changes between compilation and LSP response; local trusted binaries only, no remote service. No project license decision in this assignment.
## 10. Acceptance criteria
1. Early positive/changes-required verdict for the producer. 2. Separate disposition with precise host proof/receipts for opt-in publication. 3. Identify any service-facing risk or proven unsoundness and its minimal distinguishing test. 4. Keep genuine high-impact uncertainty visible and allow independent work to proceed once amended.
## 11. Verification commands and evidence
Run dev cpp-gcc -c g++ --version, inspect build/plan-stock-navigation-014/real-{saved,edited,broken,recovered}.json and actual code. If needed, build a benign isolated counterexample with stock GCC under own build path. No project build or compiler edits. Distinguish a source-backed assertion from a runtime proof.
## 12. Constraints and stop conditions
Read-only review; no source edits; stop on a genuine unavailable fact and return the specific missing evidence. Do not review unrelated product areas or seek user approval independently. No Git operations or external messages.
## 13. Authorization and decisions
D-022 full roadmap, D-025 native primary, D-027/029 user selects GPT-6.2 Astra at Max for review, D-028/030 local experiments. Existing GCC and normal compilation remain available.
## 14. Return format
T-PREFLIGHT-STOCK-NAVIGATION-014 READY/CHANGES_REQUIRED with separate producer and host gates, actual paths/tests, proposed amendments and unrun checks. Send early verified findings; no subagents.