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.
150 lines
9.8 KiB
Markdown
150 lines
9.8 KiB
Markdown
# Plan foundation implementation against the resumed checkout
|
|
Task ID: T-PLAN-002
|
|
Role: astra_planner
|
|
Status: READY
|
|
Dispatch: user approved the generic runtime role after escalation. Select gpt-6.2-astra at Max for the astra_planner assignment.
|
|
|
|
## 1. Context and baseline
|
|
Cwd/repository /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at
|
|
ca04975d545efd4a891ee90edf22f130069bd191. User now requests implementation of all27
|
|
roadmap parts, preserving gates and acceptance, and explicitly requires Max effort.
|
|
The named roles are fixed at XHigh. The user approved an explicit Max override
|
|
on the generic runtime and then selected the 6.2 family for all assignments.
|
|
Existing uncommitted foundation code is available: user confirmed no active writer.
|
|
Root has preserved its16-file baseline in build/goal-baseline-20261127.
|
|
Root additionally repaired src/main.cpp bare '--' handling and updated workflow docs.
|
|
VoidLibrary main tested at7d7d23ec0a6a55d4b30921432fa215b29a29e59b; fetched build now
|
|
passes all4 CTest entries (22 unit+6 JSON+9 subprocess bodies plus registration).
|
|
|
|
## 2. Objective and deliverables
|
|
Return a dependency/invariant map and exact implementation wave for native VBS
|
|
primary build support (01/26), then03/04/05 with protocol consolidation and real LSP
|
|
document synchronization. User D-025 explicitly makes VBS primary now. Preserve the full
|
|
27-part objective. Distinguish immediate executable work from later frontend/VBS/
|
|
debugger gates. Provide proposed interfaces, disjoint ownership, concrete acceptance
|
|
tests, migration order and unresolved consequential decisions for fresh preflight.
|
|
Do not approve your own plan or claim this report is implementation.
|
|
|
|
## 3. Scope and non-goals
|
|
Assess the existing uncommitted Protocol/Documents/Workspace implementation and
|
|
how to integrate it, rather than replacing it wholesale or inventing a new namespace.
|
|
Plan BuildContext/AnalysisRevision contracts before provider tasks06/07.
|
|
Do not implement application code, compiler semantics, a competing JSON parser,
|
|
sibling producer changes, new tool installations, license selection or releases.
|
|
|
|
## 4. Files to inspect
|
|
AGENTS.md; docs/agent-workflow/STATE.md,TASKS.md,DECISIONS.md,
|
|
RESUMPTION-2026-11-27.md and VERIFICATION.md; docs/roadmap/README.md,REQUIREMENTS.md,
|
|
ARCHITECTURE.md and03-documents-positions.md,04-workspace-configuration-trust.md,
|
|
05-build-contexts.md,06-native-vbs-tooling.md,07-compilation-database.md,
|
|
09-semantic-workers.md,10-scheduling-resources.md,16-navigation-rename.md.
|
|
Current build: CMakeLists.txt, cmake/VoidDependency.cmake, tests/CMakeLists.txt;
|
|
docs/roadmap/01-bootstrap-dependencies.md and26-vbs-self-build-adoption.md.
|
|
VBS references are source-only: /home/faumaray/Projects/VoidBuildSystem/include/Void/Build.hpp,
|
|
docs/SDK.md, build.cpp, recipes/VoidLibrary/VoidLibraryRecipe.cpp and
|
|
src/SelfHost/TestRegistryGen.cpp. Check current root evidence for seed readiness.
|
|
Current protocol: include/vls/{Framing,Json,Server}.hpp, src/{Framing,Json,Server,main}.cpp.
|
|
Uncommitted code: include/Void/LanguageServer/{Protocol,Documents,Workspace}/ and
|
|
src/{Protocol,Documents,Workspace}/. Tests: tests/{JsonTests,JsonCapabilities,
|
|
LifecycleTests,ProcessTests}.cpp and tests/TestSupport.hpp. Relevant dependency only as needed:
|
|
build/bootstrap/_deps/voidlibrary-src/include/Void/Data/StrictJson.hpp,
|
|
Unicode/Utf.hpp, Core/Hash.hpp and System/Path.hpp. No broad sibling scans.
|
|
|
|
## 5. Write ownership and coordination
|
|
Write scope: none
|
|
All actors share the checkout. Root owns integration/build/docs; no active source
|
|
worker currently. Source changes require later explicit owned tasks. No Git writes,
|
|
branch switches, staging, commits, pushes, cleanup, global changes, sibling changes
|
|
or Serena project switches. Never scan credentials/env/keys/WG.conf or ignored caches.
|
|
|
|
## 6. Implementation or investigation approach
|
|
Use exact graph project home-faumaray-Projects-VoidLanguageServer only after coverage
|
|
checks, then source verification. Current index2026-11-27 mostly matches; some headers
|
|
have partial parse ranges. Do not assume an edge or absence proves behavior.
|
|
Map existing APIs and call paths, identify semantic gaps, then propose one canonical
|
|
protocol layer and a controlled compatibility transition. Upstream StrictJson now
|
|
provides checked serialize; specify how errors propagate without fabricated data.
|
|
Review URI/position/snapshot lifetime, edits/desync recovery and disk/overlay races.
|
|
Define a native build/test/dependency path using verified VBS APIs, not a custom
|
|
action that delegates to CMake. Its Git SDK currently requires Commit{sha40}; retain
|
|
the no-pin main policy through explicit managed-source acquisition/path input,
|
|
without inventing branch APIs. Native Void::Testing registration must execute all37
|
|
existing bodies and preserve process-executable discovery. Keep all build/dependency
|
|
outputs inside this repository's ignored trees. No VBS/Library sibling mutations.
|
|
Define trust/configuration behavior independently from actual subprocess execution.
|
|
Freeze NEW build/revision identities and cancellation/publication rules. Sequence
|
|
separate workers only after public headers and shared CMake/test ownership are clear.
|
|
Research protocol facts from primary LSP3.17 docs; ask root only for product choices.
|
|
|
|
## 7. Interfaces and data contracts
|
|
Existing names: Void::LanguageServer::Documents::{LineIndex,DocumentIdentity,
|
|
DocumentSnapshot,DocumentStore,TextEdit}; Workspace::{WorkspaceSettings,
|
|
PartialWorkspaceSettings,TrustPolicy,ToolIdentity}; Protocol::{Json,RequestId,
|
|
parse_json,serialize_json}. TrustPolicy is declarations only, not working authority.
|
|
NEW BuildContext and AnalysisRevision must encode original provider/context/profile/
|
|
target/toolchain/environment/source/dependency identity and immutable generations.
|
|
No flag merging across alternatives; missing native metadata remains explicit.
|
|
LSP UTF16 default/negotiated UTF8, CR/LF/CRLF, sequential edits, immutable snapshots,
|
|
oversized character clamping, invalid scalar boundaries and versioned desync recovery.
|
|
No semantic capabilities until actual semantics exist; document synchronization may
|
|
be advertised once the real handler and executable tests prove it.
|
|
|
|
## 8. Dependencies and integration
|
|
Root retains source ownership while contracts are planned. Fresh astra_reviewer
|
|
preflight must inspect your proposed wave before implementation. Root serializes
|
|
CMake, shared schemas and final server integration. Documents/workspace can be disjoint
|
|
workers after interface agreement; build-model depends on their identities.
|
|
VBS current source has Editor CompDb/IDE query APIs but required native tooling
|
|
coverage must be assessed separately. Compiler and debugger feasibility remain gates.
|
|
|
|
## 9. Edge cases security and performance
|
|
Root observed: temporary serializer silently nulls nonfinite numbers; line offsets
|
|
past line end currently reject instead of clamp; disk content is read outside the
|
|
store lock and may race a newly opened overlay; TrustPolicy has no implementation.
|
|
Assess these against source, not as mandated verdicts. Examine URI alias/symlink
|
|
policy, stale versions, bounded file/text growth, snapshot lifetimes, trust revocation,
|
|
execution-bearing flags and unknown configuration fields. Repository-local settings
|
|
never grant executable/plugin/wrapper authority. Plan large-file and concurrency
|
|
checks, not just happy-path unit tests; benchmark targets remain full-roadmap goals.
|
|
|
|
## 10. Acceptance criteria
|
|
1. Requirement-to-wave map for R-003,R-006,R-007,R-008,R-009,R-011,R-021.
|
|
2. Existing implementation gaps and exact NEW/retained interfaces clearly separated.
|
|
3. Disjoint write sets and ordered integration for protocol/documents/workspace/model.
|
|
4. Failure semantics and regression scenarios for identified cross-component risks.
|
|
5. Concrete validation based on existing Void::Testing/CTest, proposed additions
|
|
clearly marked NEW; no imaginary registered suites.
|
|
6. Remaining27-part gates preserved, not reduced to bootstrap success.
|
|
|
|
## 11. Verification commands and evidence
|
|
All commands cwd repository. Existing observed:
|
|
dev cpp-gcc -c cmake --fresh -S . -B build/bootstrap -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
dev cpp-gcc -c cmake --build build/bootstrap --parallel 2
|
|
dev cpp-gcc -c ctest --test-dir build/bootstrap --output-on-failure
|
|
All now exit0 after the root CLI fix. LastTest.log is in
|
|
build/bootstrap/Testing/Temporary. Existing test bodies are22+6+9.
|
|
Local override configure uses -DVLS_VOID_SOURCE_DIR=/home/faumaray/Projects/VoidLibrary
|
|
in build/local; root records its latest outcome in VERIFICATION.md.
|
|
Planning may use read-only source/graph queries and bounded existing test probes;
|
|
no mutations or broad rebuilds needed for this report.
|
|
|
|
## 12. Constraints and stop conditions
|
|
Stop if the gpt-6.2-astra Max dispatch fails, if role/model access fails, or if
|
|
the requested investigation requires secrets/unowned changes. Do not substitute a
|
|
role/model or say Max was verified from a role label. Keep unsupported frontend
|
|
semantics and compiler patches as separate gates, not implied approvals.
|
|
|
|
## 13. Authorization and decisions
|
|
User's2026-11-27 goal authorizes implementing the plans beyond the original milestone0;
|
|
later steering makes VBS primary and requires the separate branch already created.
|
|
no repeat scope approval needed for their stated scope. User also authorized continuing
|
|
from existing dirty files and explicitly rejected XHigh. Global configuration edits
|
|
are not part of this task. This persisted contract must pass tasklint and root semantic
|
|
review before dispatch; delivery is read-only advice, not permission or acceptance.
|
|
|
|
## 14. Return format
|
|
T-PLAN-002; DONE/PARTIAL/BLOCKED; dependency/invariant map; proposed exact interfaces
|
|
and ownership; ordered implementation/test plan; severity-ranked existing risks;
|
|
sources/coverage; observed commands/results; unresolved product choices; files changed
|
|
none. Do not spawn children or message the user.
|