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.1 KiB
Markdown
49 lines
5.1 KiB
Markdown
# Exercise the GCC 16 reference module topology
|
|
|
|
Task ID: T-CORPUS-MODULES-011
|
|
Role: sol_implementer
|
|
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.
|
|
|
|
## 2. Objective and deliverables
|
|
Extend the already-approved frontend reference corpus with actual GCC 16 module dependency scanner output, both partition kinds, implementation units, a header unit, global/private fragments and edited transitive inputs. Record real successes and compiler limitations.
|
|
|
|
## 3. Scope and non-goals
|
|
Scope is bounded test corpus under D-028/D-030 and roadmap 08/11, independent of the provider review and GCC patches. No server semantics, source rewriting of real projects or fabricated module edges. Do not alter the existing corpus/reference results.
|
|
|
|
## 4. Files to inspect
|
|
Read tests/corpus/frontend/{verify-gcc.py,probe-gcc-tooling.py,gate.cppm,importer.cpp}, docs/roadmap/08-frontend-feasibility.md and 11-cpp-modules.md, existing native GCC16 dev shell. For scanner flags verify installed GCC --help, exact release source in build/gcc-gate/gcc-16.2.0 if needed, and official GCC documentation.
|
|
|
|
## 5. Write ownership and coordination
|
|
Write scope: tests/corpus/modules/
|
|
Exclusively create the necessary .cpp/.cppm/.hpp fixtures and a small Python driver in this new subdirectory. Build private generated data in unique temp dirs; leave the VBS build, GCC prototype tree, other corpus, docs and build registration to root.
|
|
|
|
## 6. Implementation or investigation approach
|
|
Use real GCC -std=c++26 -freflection -fmodules with source-owned compiler cache per generation and investigate its -fdeps-format=p1689r5/-fdeps-file flags. Check scanner edges against manually expected topology, header-unit path spelling vs lookup and target/flags. Compile and run consumers of a public partition and a private implementation path; assert a wrong old value cannot satisfy importer static_assert. Probe unsupported private module fragment explicitly with version + exit and correct diagnostic; never paper over GCC limits. Use fresh cache for transitive edits to prevent poisoning; keep old reader reusable. No shell commands from dependency metadata.
|
|
|
|
## 7. Interfaces and data contracts
|
|
Driver uses actual gcc from --cxx or developer env, C locale, timeouts, bounded stderr. Emit a readable/JSON result distinguishing passed positive controls, expected negative controls and explicit missing backend capability; return failure for an unexpected outcome. Retain expected edges as fixtures; schema evidence cannot assume header units present in p1689 when not emitted.
|
|
|
|
## 8. Dependencies and integration
|
|
Pre-existing GCC 19 source fidelity and 8 tooling probes already exercise basic module and reflected value. This is a corpus extension; root wires docs and production graph only once sources/worker ready. No production cache or graph changes.
|
|
|
|
## 9. Edge cases security and performance
|
|
Test meaningful compile failures on visibility, missing provider, wrong context and at least one dependency change. Avoid system std headers where unnecessary for minimal reproducible topology. Private/module-cache artifacts never reuse source project CMI; pass/remove in test temp only.
|
|
|
|
## 10. Acceptance criteria
|
|
Show real scanner output with normalized provides/requires per logical module for the supported set. Run reflection import under two controlled source/macro contexts and exercise the before/after result. Run real named targets for implementation unit/partitions and one header-unit import. Report exact gaps in compiler's private fragments, missing/system/header-unit edges, cycles or scans which cannot prove graph completeness.
|
|
|
|
## 11. Verification commands and evidence
|
|
Run git status --short --branch, dev cpp-gcc -c g++ --version, dev cpp-gcc -c python3 tests/corpus/modules/verify.py, and Python compile checks without leaving artifacts in owned sources. Use isolated tmp cwd; report exact status and feature-specific output.
|
|
|
|
## 12. Constraints and stop conditions
|
|
At two unsuccessful retries against an emitted format inspect actual compiler source/options and send root a changed hypothesis. Return an explicit unsupported result when source confirms. Do not invent missing native producer fields.
|
|
|
|
## 13. Authorization and decisions
|
|
User approved GCC feasibility and local prototype. This small, independently testable reference-corpus extension follows the existing planner and feasibility review; it does not authorize semantic backends or compiler patches for this worker. GPT-6.2 Sol at Max.
|
|
|
|
## 14. Return format
|
|
T-CORPUS-MODULES-011 DONE/PARTIAL/BLOCKED, paths, command, emitted graph, observed feature successes/gaps and integration consequence.
|