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.
4.5 KiB
Check module evidence, name resolution and partial graph admission
Task ID: T-PREFLIGHT-MODULE-011 Role: astra_reviewer Status: READY
1. Context and baseline
Shared VoidLanguageServer feat/implement-roadmap ca04975. Root and the independent semantic planner just scoped T-MODULE-GRAPH-011 on the working tree. Stock GCC 16.2 produced 33 module/scanner checks. Existing BuildContext represents TU alternatives; native v1 does not attest library/dependency completeness. This is preflight, not postimplementation certification.
2. Objective and deliverables
Resume preflight after the previous Astra reviewer identified membership/census and header-unit cache/input identity gaps, then hit HTTP 429 before final disposition. The amended implementation contract records those actual observations at §7, including GCC 0/0 versus the paper's 1/0. Re-read the amendments and return actionable remaining changes or READY. Deadline-sensitive implementation can proceed once the contract is cleared. Inspect the actual module graph assignment and representative stock compiler rules, then return READY or necessary amendments for module scan admission, scope, scheduling and invalidation. Send the earliest usable contract as soon as possible.
3. Scope and non-goals
Independent technical design review only. Do not design the full unrelated frontend, implement graph code, edit compiler, advertise capabilities or send user messages.
4. Files to inspect
Read docs/agent-workflow/tasks/T-MODULE-GRAPH-011.md in full, docs/roadmap/11-cpp-modules.md, tests/corpus/modules/verify.py, include/Void/LanguageServer/{Build/Model,Protocol/Json}.hpp, actual bounded scan JSON in build/gcc-gate/private-modules.log and P1689R5 paper when needed. Actual language APIs and tests override a task author's assumptions.
5. Write ownership and coordination
Write scope: none Private benign fixtures only under ignored build/preflight-module-011. Do not change graph, captures, build-dir selections, shared source, git or siblings. No additional agents.
6. Implementation or investigation approach
Check for unsupported-version/default semantics, failure status with rule output, distinction of -M -MG from warm -E -MD, header-unit lookup and partitions, negative membership, mixed commands/incomplete inventory, ambiguity resolution and graph budget failures. Distinguish verified ready order for known graph from all-project indexing or launch authority.
7. Interfaces and data contracts
Proposed graph calls are pure decode_scan(expected target) and build_module_plan(identity-scoped inputs, requested key). Return owned rule, transitive dependency order, reverse consumers and structured blockers; never open paths. Confirm strong semantics for scan provenance, pointer lifetime, unit kind, expected output, explicit compatible domain and full inventory. Provide exact corrected interface if needed.
8. Dependencies and integration
Implementation awaits your verdict, root will dispatch after resolving actionable items. Independent of ongoing review of GCC instrumentation. No production backend decision required.
9. Edge cases security and performance
Verify bounded untrusted JSON/graph costs, deeply nested and high-degree graphs, unrelated component damage, determinism, immutable lifetime and reverse invalidation for added/missing provider or changed contents. Use only harmless finite data.
10. Acceptance criteria
Send decisive verdict plus precise action for each material risk and distinguishing fixtures. Confirm whether a normal legal real GCC primary/partition/importer context, some with different per-TU flags, can actually be modeled. Check which header-unit semantics need an explicit unsupported/missing result.
11. Verification commands and evidence
git status --short --branch; examine tests/corpus/modules/verify.py and the already verified saved module report. Optional run stock corpus via dev cpp-gcc -c python3 tests/corpus/modules/verify.py, no shared mutations. Bounded code graph queries with coverage as appropriate. Report which commands executed.
12. Constraints and stop conditions
Stop after delivering preflight, or exact missing dependency; no implicit fallback model or authority. No shared Nix/config, source or compiler builds.
13. Authorization and decisions
D-022/025/027/029 require full roadmap native VBS and independent GPT-6.2 Astra at Max. Review targets are engineering checks within established user scope only.
14. Return format
T-PREFLIGHT-MODULE-011 READY / CHANGES_REQUIRED, evidence, concrete changes/test witnesses; send ASAP to root, no user messages.