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.
6.8 KiB
Plan the first editor-facing semantic worker against real Void contexts
Task ID: T-PLAN-SEMANTICS-010 Role: astra_planner Status: READY
1. Context and baseline
Shared VoidLanguageServer feat/implement-roadmap ca04975. Primary VBS and optional compile_commands providers now return real contexts from installed stdio server (native36, compatibility58). Reviewer identified alias/grant issues under repair. GCC16.2 private reference parity: 19 language, 8 tooling, 33 module checks. Versioned 0001 returns real eval evidence, 0002 v1 produces typed calls and explicit fields with witnessed definitions and valid source ranges. tests/corpus/frontend/verify-gcc-ide.py exercises direct overload edits, duplicates, macro/line and Unicode. D-028/D-030 authorized evaluation and a local compiler prototype; production backend selection and license remain open.
2. Objective and deliverables
On resumption the stock GCC 16.2 fixture now also passes both edited live return pairs with GDB (tests/corpus/frontend/verify-stock-gcc-gdb.py). Use stock compiler capabilities where evidence supports them. This observation does not settle full debugger/compiler choice. Prior planner assignment returned HTTP 429 before findings. Send a concrete module/dependency slice early so implementation can start independently. Build a concrete, gated plan for a usable compiler-backed editor path: dispatcher/worker, immutable overlays, module ownership, diagnostics/navigation and latency scheduling with real data. Separate work already within the local prototype approval from the remaining explicit product/backend decision. Identify minimum meaningful user-facing integration and the evidence which would justify selection or rejection.
3. Scope and non-goals
Read-only architecture, source evidence and precise independent implementation packages. No implementation, papers in place of actual local APIs, editor protocol advertisement, user messages or unreviewed compiler changes.
4. Files to inspect
Inspect docs/roadmap/{08-frontend-feasibility,09-semantic-workers,10-*,11-cpp-modules,12-reflection-provenance,13-diagnostics-recovery,14-completion-hover,15-index-persistence,16-navigation-rename}.md, docs/agent-workflow/DECISIONS.md, actual include/Void/LanguageServer/{Build/{Model,Providers},Documents/{DocumentStore,DocumentSnapshot},Workspace/Trust}.hpp, include/vls/{Server,WorkspaceSession}.hpp, src/{Server,WorkspaceSession}.cpp, src/Build/{Model,VbsProvider,CommandImport}.cpp, experiments/frontend/gcc-worker, compiler patches 0001/0002, tests/corpus/{modules,frontend}, actual selection and real main.cpp native/context row. Review GCC libcpp locations needed; no shared builds/indexer reconfiguration.
5. Write ownership and coordination
Write scope: none Read-only. If a targeted script is necessary use only private ignored build/plan-semantics-010. No shared source, docs/branch/staging/commits, sibling edits or child agents.
6. Implementation or investigation approach
Trace current stdio single-threaded read/dispatch, document snapshots/epoch, selection status (generations may be ephemeral), model AnalysisRevision/PublicationSlot, scope grants/compiler classifier, patch record coverage and physical proof. Identify concrete missing data gates and how to materialize immutable overlays for both owning TU and headers/importers without executing project descriptors, arbitrary flags or generators. Favor actual compiler APIs, context-specific dependency evidence and real fixture/production Void inputs. Consider first frontend diagnostics and positive hover/go-to-definition/completion using same worker when safe. Account for ordinary clients relying on untrusted metadata and explicit trusted backend/toolchain identity. Determine how backend-neutral module worker/graph scheduler can proceed independently if a future production backend decision is required.
7. Interfaces and data contracts
Propose NEW exact APIs/types/paths and integration points with existing ones. Bind async completion to configuration/trust/document/context/dependency generations with one serialized publication guard, LSP cancellation/id handling plus concurrent document notifications; requests should not block input. Report constraints for wire acceptance, SourceMapping, template/reflection facts and diagnostics coordinate conversion using SARIF display units. For modules inspect actual P1689r5 topology and CMI result formats: model compiler-specific build identity, immutable artifact lease, private caches, honest missing/generated readiness and dynamic unsaved imports.
8. Dependencies and integration
Parallel architecture only. Root owns operational supervisor/trace and compiler integration. Other agents own trace and provider remediation. Do not wait on them or ask to change ownership: plan against known public shape and clearly identify uncertainties. Provide first actionable disjoint slice early for an independent preflight reviewer.
9. Edge cases security and performance
Respect file/root tool authorization, loss of source provenance on macros/#line or system headers, caps on concurrent frontend work/trace/bytes, null vs real empty results, stale publication fencing incl no-op state, symlink races, immutable revisions, no false capability advertisements. Avoid restricting the plan to the existing two types/roles or a one-file demo.
10. Acceptance criteria
Deliver evidence-based packages and distinguishing acceptance cases (at least one actual Void header/TU, real multi-file module/overlay, same spelling different overload, invalid edit then recovery, stale result, cancellation and responsive progress). State what current gate actually proves and what facts/user decision are still necessary. Identify steps root can implement immediately under D-030.
11. Verification commands and evidence
Use git status --short --branch, scoped graph coverage then actual file evidence, read GCC/headers and active database as needed. Read the completed logs build/gcc-gate/{observed-ide,observed-events,private-reference,private-modules}.log and build/native-evidence/providers-installed.log. No full compile/runs needed. Record actual commands and exits for any probes.
12. Constraints and stop conditions
Stop for unresolved product decision or missing data, but continue other independent contracts and explain the exact boundary; do not silently choose the production engine or defer all useful work. No new project licensing decision or backend dependency installation.
13. Authorization and decisions
Approved full roadmap and private compiler evaluation (D-022/028/030). GPT-6.2 Astra at Max planning assignment. User asked all agents to use Max. Root retains integration and user interaction.
14. Return format
T-PLAN-SEMANTICS-010 DONE/PARTIAL, concrete dependency graph/symbols, first disjoint scoped WHAT/HOW, proposed owner contracts and compiler/software evidence, gates/decisions. Send early when first actionable for preflight.