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.
49 lines
5.8 KiB
Markdown
49 lines
5.8 KiB
Markdown
# Design the isolated GCC 16 worker and evaluator hooks
|
|
|
|
Task ID: T-PLAN-GCC-008
|
|
Role: astra_planner
|
|
Status: READY
|
|
|
|
## 1. Context and baseline
|
|
Shared /home/faumaray/Projects/VoidLanguageServer, feat/implement-roadmap at ca04975, dirty files authorized. Primary native descriptor build.cpp, optional CMake verification, VoidLibrary main 7d7d23e. T-PLAN-006 verified VBS 6c225c2 selector/status/generations and actual compdb rows. Build/Model.hpp, Workspace/{Configuration,Trust}.hpp and Protocol/Json.hpp are implemented. Root owns build/test registration, CLI, session, docs and integration. No shared tree branch switches, Git mutations, sibling writes, child agents or independent user messages. User D-030 now expressly authorizes local versioned GCC 16.2 instrumentation and an isolated prototype worker; distribution and project license deferred.
|
|
|
|
## 2. Objective and deliverables
|
|
Provide source-grounded, implementable contracts for the first compiler-backed IDE operations and a genuine event-time debugger. Map an initial vertical slice and follow-on work across 08/09/12/17/18/19 before compiler patch implementation.
|
|
|
|
## 3. Scope and non-goals
|
|
Read-only planning. No compiler source modifications, API implementation, agent children, external disclosure or dependency changes. Derive from actual GCC 16.2 code and feasible bounded declarations. Do not resurrect Clang-only path or produce fake semantic data.
|
|
|
|
## 4. Files to inspect
|
|
Read tests/corpus/frontend/gcc-{evaluation,queries}.cpp, probe-gcc-tooling.py, docs/roadmap/{08,09,12,17,18,19}* and Build/Model.hpp. Official source: verified checksum extract build/gcc-gate/gcc-16.2.0/gcc/cp/{constexpr,constraint,pt,reflect,decl,parser,semantics}.cc and gcc/{plugin.def,input.h}. Probe logs under build/gcc-gate (declarations.sarif,queries.original,tooling-report.json,live-stop.log). VoidLibrary generated include/Void/System/Process.hpp for bounded live stdout/stdin/stderr; do not inspect ambient user files.
|
|
|
|
## 5. Write ownership and coordination
|
|
Write scope: none
|
|
Root owns compiler source download/config/build and the future versioned patch integration; you only plan fields, hook points, owner boundaries and stop conditions.
|
|
|
|
## 6. Implementation or investigation approach
|
|
Inspect real semantic resolution/decl use, evaluator call-entry/exit, constraint accept/failure, nested instantiation, reflection query/splice/expansion hooks. Determine availability of exact source location/macro/spelling/origin, event-time typed value and nested causality. Separate paths requiring hooks from already proven diagnostics. Plan disabled fast path, private trace/control descriptors, bounded input, fixture filters, public client-worker protocol covering cancellation/reaping and trace loss. Consider Nix GCC driver uses same libstdc++ and effective include path; private cc1plus/build driver must prove corpus equivalence. Recommend how to send real AST identity for declaration/use without retaining tree pointers beyond compiler lifetime. Send early small NEW hook contract with exact symbols and test distinguishing real return values from final static_assert.
|
|
|
|
## 7. Interfaces and data contracts
|
|
One worker owns cc1 state; inspector results reference session/request/source snapshot/compiler identity. Capture typed, bounded copies at event time, sequence and causal parent, physical+logical/spelling origin; unsupported/optimized-away explicit. Isolated prototype explicit opt-in for fixed workspace-owned fixtures only, with real values (e.g. 17/34), resuming/stepping must control live process. Hooks measured disabled/enabled. No arbitrary plugin selection from metadata. No requirement to decide a global license to build this local GCC patch.
|
|
|
|
## 8. Dependencies and integration
|
|
This planner does not own provider preflight or normal CLI. Root runs stock source build in parallel; production compiler launch remains gated by actual scoped command and trusted worker, not D-030 alone. Derive disjoint actual files for compiler patch/export and worker with common DTOs owner.
|
|
|
|
## 9. Edge cases security and performance
|
|
Material risks include recursion during pretty printing, GC lifecycle, early returns/cached calls/error unwinding, exception/failure/abort, implicit functions/builtins, nested constraints/compiler Sema re-entry, pipe backpressure and malformed control, terminal state on kill and unbounded header evidence. Live stop watchdog must distinguish stopped/running and permit process group cancellation.
|
|
|
|
## 10. Acceptance criteria
|
|
1. Exact source symbols/locations for early narrow hooks and future interfaces; 2. Scoped data contract and disjoint ownership, 3. concrete passing/failing constexpr fixtures and tests for event-time values + stop/cancel; 4. sources/commands for a real IDE lookup/invalid edit and a debugger witness; state compiler limitations explicitly. 5. No general LICENSE decision or production claim.
|
|
|
|
## 11. Verification commands and evidence
|
|
Use git status --short --branch, scoped code graph coverage on VLS sources, direct GCC release reads and existing probe logs. No GCC rebuild/second copy or expensive compilation necessary. Read GNU plugin and diagnostic docs only when needed; exact local release primary source is authoritative.
|
|
|
|
## 12. Constraints and stop conditions
|
|
Report early any hook unable to produce source or values and propose next genuine alternative within the approved local experiment; ask root before scope expansion. Stop after mapping useful code, no generic exhaustive narrative.
|
|
|
|
## 13. Authorization and decisions
|
|
User selected GCC16 evaluation and explicitly approved a local worker and versioned hooks. Requested GPT-6.2 Astra Max. Planner meets mandatory dependency/risk gate for this substantial new change.
|
|
|
|
## 14. Return format
|
|
T-PLAN-GCC-008 DONE/PARTIAL/BLOCKED, early implementation-ready slice, exact source anchors, field/control/liveness model, executable fixtures/acceptance and unresolved questions.
|