Files
Language-Server/docs/agent-workflow/tasks/T-PLAN-006.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.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Map the live VBS and compilation database provider interfaces
Task ID: T-PLAN-006
Role: astra_planner
Status: READY
## 1. Context and baseline
Work read-only in /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975. The server now builds natively, advertises tested document sync and contains tested passive trust primitives. T-MODEL-005 implements the immutable common model. Root needs the next provider and workspace-session integration contracts while that model settles. GPT-6.2 Astra Max is requested.
## 2. Objective and deliverables
Deliver a concrete source-backed implementation plan for native VBS tooling and compile_commands compatibility plus their passive session entry points. Identify reusable paths, file formats and constraints with a minimal set of fixtures. Send early concrete advice on shared file I/O and actual VBS v1 locator semantics.
## 3. Scope and non-goals
Read-only architecture and dependency mapping for roadmaps 04–07. Read only synthetic artifacts generated by this VLS task or the indicated source files. Keep compiler/debugger/clients and actual process launch out of this package. Never turn a VBS declaration file or a compilation database into evidence of a complete resolved tooling export.
## 4. Files to inspect
Read docs/roadmap/04-workspace-configuration-trust.md, 05-build-contexts.md, 06-native-vbs-tooling.md, 07-compilation-database.md, docs/agent-workflow/tasks/{T-TRUST-004,T-MODEL-005}.md, actual Workspace configuration/trust and RegularFile interfaces, src/main.cpp and src/Server.cpp. Native evidence: build/vbs-native-probe/query-debug.json, build/native-validation/profiles/debug/editor/status.json, .vbs/editor_selection.json and the specific generation compdb it references within build/native-validation. The committed VBS seed is build/tools/vbs-6c225-src, notably src/Editor/CompDb.cpp; current sibling /home/faumaray/Projects/VoidBuildSystem/src/Editor/CompDb.cpp is read-only for source comparison. Inspect Model.hpp only if present, use the planned API as provisional until handoff.
## 5. Write ownership and coordination
Write scope: none
No changes to shared source, Git, generated selections/compdb, dependencies or sibling repositories. Root authors/contracts shared schemas and registers tests. The planner has no children and sends no user messages.
## 6. Implementation or investigation approach
Determine exact v1 selection-ticket, build-root, profile-status, generation and compdb relationships, including relative paths from real outputs and effects of stale status and moved aliases. Define a passive native importer that preserves VBS provenance and unready fields. Locate evidence of any richer resolved export. If proposed rather than produced, keep a versioned fixture contract distinct from existing v1 and list evidence needed from upstream. Map compdb arguments/command quoting per the official LLVM schema and supported Linux GCC/Clang behavior, driver response-file rules, path normalization and unknown-operand outcomes. Recommend where bounded regular-file read, path authority and stable identity logic can be safely shared. Keep deterministic CPU/memory/expansion limits and file replacement semantics. Define VS Code/Neovim neutral LSP/CLI entry: workspace roots, manual provider choice, passive status and configuration invalidation. Use only genuinely scoped source inputs and avoid speculative compiler endpoints.
## 7. Interfaces and data contracts
T-MODEL-005 design: scoped session/workspace/provider generation, multiple BuildContexts each with one owning TU and ContextKey(profile,target,role,alternative,TU), source mappings, original/analyzed argv/cwd, explicit metadata unknowns and capability-specific readiness. Model selection takes editor and explicit override. Trust classifier takes tokens, known wrappers, pinned ToolIdentity and explicit driver, but passive status must work without authority; uninspected tool is an unknown with execution denied. Keep caller and provider responsibilities explicit and avoid cross-root authority.
## 8. Dependencies and integration
Provider writers own disjoint VBS and compdb paths after shared model freeze. Root owns shared provider bookkeeping/file I/O and protocol/workspace session or can assign separately. Identify which work can start without the other adapter, which needs provider-neutral parsing helpers, and which genuinely depends on a VBS producer outside VLS. Preserve caller-visible behavior and safe read-only fallback.
## 9. Edge cases security and performance
Never execute compiler commands, wrappers, project descriptors, response-file content or generators while discovering. Separate declarative arguments, authority, and execution. Address relative paths/traversal/symlinks, unstable reads, stale reverse completions, opaque drivers, response-file cycles, duplicate output rows, header ownership, missing generated artifacts and last-good status. Include a bounded approach for large compdb inputs and prohibiting shell evaluation.
## 10. Acceptance criteria
1. Exact source and observed synthetic file/field references, proven versus unavailable native metadata. 2. Explicit contract and ownership per shared helper/provider/session, with proposed new public names clearly marked. 3. Test fixtures for selection/replacement/compdb duplicate and dangerous command cases, plus one live read of our synthetic VBS generation and one actual CMake compilation database entry. 4. Return amendments needed before fresh provider preflight and any true scope-level decisions early.
## 11. Verification commands and evidence
Use git status --short --branch, targeted git/source reads, scoped graph coverage for relied-on paths and bounded JSON extraction for synthetic fixtures. No build required. If citing standard compdb grammar, rely on the official LLVM compilation database documentation only and use public queries with no local data. Return actual operations and identified evidence gaps.
## 12. Constraints and stop conditions
Stop before cross-repository changes, project commands/execution, accessing private settings or unrelated profiled data. Low level details absent from a published schema must be unknown; do not suggest assigning fabricated toolchain/module data. Distinguish per-provider blocker from tasks that can ship independently.
## 13. Authorization and decisions
User authorized all plans on a separate branch, native VBS primary, VoidLibrary main, and GPT-6.2 family at Max. This source-level planning assignment precedes implementation contracts. Capability promotion or an upstream publish requires its own evidence and authorization.
## 14. Return format
T-PLAN-006 DONE/PARTIAL/BLOCKED, exact observed data flows, contracts and failure semantics, proposed file ownership, root integration order, acceptance checks, unresolved upstream requirements and commands/evidence. No edits or user-facing messages.