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.
3.7 KiB
11 — Named modules, partitions, header units and artifact ownership
Status: The GCC reference suite passes 33 module and scanner checks. The C++ module planner and GCC single-rule P1689 decoder pass 22 cases in native VBS and CMake. Seven integration cases exercise the planner with the compiler corpus. The private artifact cache, dependency-ordered production and real GCC CMI production are implemented with registered tests; an editor admission queue for scans and artifacts is implemented and wired into the document lifecycle; the editor now submits the real P1689 scan through that queue; editor-driven artifact production remains open. Requirements: R-008,R-010,R-012,R-021 Dependencies: 05,06/07,08,09,10; generated prerequisites depend on VBS availability.
Ownership and boundaries
Proposed Astra: NEW include/vls/modules/, src/modules/, tests/modules/. Root serializes module graph schema; no writes to VBS-produced artifacts. Future assignments must verify the then-current baseline and exact disjoint paths; these proposed scopes do not authorize work in another repository.
Contracts and data flow
ModuleGraph contains provider/import edges, unit kind, owning compile context, source/generated identity and scan provenance. Artifact keys include exact frontend/toolchain/stdlib, flags/macros, transitive content, backend version and relevant physical paths. Private IDE BMIs/PCHs are never assumed binary-compatible with project artifacts.
Implementation sequence
- Use the accepted compiler's dependency scanner/semantic APIs, with native VBS topology as additional context. Model primary interfaces, implementation units, exported/internal partitions and explicit header units.
- Order generated inputs and module prerequisites before analysis. Missing generators remain unready until an explicit build action; private compiler cache generation follows approved metadata/tool authority.
- Construct overlay-aware dependency snapshots and invalidate transitively when an unsaved interface/header/context changes, including new providers and previously absent/shadowing includes.
- Publish complete artifacts atomically into private cache generations, retain readers' referenced artifacts and enforce cycle/duplicate-provider diagnosis. Test imported std modules only for a proven exact toolchain configuration.
Failure behavior and constraints
Report missing, cyclic or ambiguous providers and incompatible artifacts explicitly. A filename/mtime or compiler-family label does not establish validity. Do not load GCC CMI into Clang or relocate opaque path-sensitive artifacts on faith. Cancellation withholds publication.
Acceptance scenarios
- Cover interfaces, implementations, both partition kinds, header units, private/global fragments and import visibility with positive/negative semantic queries.
- Edit an imported unsaved module, delete/add providers, switch macros/toolchains and verify importer invalidation and current diagnostics.
- Test missing generated source/header, duplicate/cyclic providers, corrupt cache, reverse completion and eviction while old readers remain active.
Verification and integration
Proposed NEW CTest label: modules. Once implemented, register a nonzero suite and run:
dev cpp-gcc -c ctest --test-dir build/bootstrap -L modules --output-on-failure
This future command is not evidence that the label/tests exist now. Before dispatch, bind the fixtures above to actual targets and record prerequisites/side effects. Require fresh independent review of the implemented contract and affected integrations. Quarantine incompatible cache generations and rebuild without altering project-produced artifacts. Preserve known source/module graph diagnostics; never fall back to regex-derived authoritative semantics.