# Preflight stock GCC diagnostic locations and clean-result admission Task ID: T-PREFLIGHT-DIAGNOSTIC-013 Role: astra_reviewer Status: READY ## 1. Context and baseline VLS branch feat/implement-roadmap ca04975. Planner has a successful ordinary-GCC real-TU diagnostic probe. A pure SARIF adapter T-DIAGNOSTIC-SARIF-013 is proposed to support roadmap 09/13. Existing snapshots have UTF-8/16 conversion. Compiler outputs and working tree are available. ## 2. Objective and deliverables Review this particular assignment for meaningful implementation acceptance, especially what GCC SARIF does and does not prove about real source ranges, process success, partial source evidence and primary/related locations. Return an early implementable verdict. ## 3. Scope and non-goals Read-only preflight for this adapter only. No code changes, separate compiler gate, other worker ownership or external operations. ## 4. Files to inspect Read the attached implementation contract, source fixtures tests/corpus/frontend/{gcc-queries.cpp,verify-gcc-ide.py}, build/gcc-gate/{constraint,queries}.sarif, include/Void/LanguageServer/{Protocol/Json,Documents/{DocumentSnapshot,Position}}.hpp, docs/roadmap/13-diagnostics-recovery.md and relevant GCC16 SARIF source. Verify facts locally rather than infer from format name. ## 5. Write ownership and coordination Write scope: none Optional private ordinary compiler fixtures under build/preflight-diagnostics-013. All shared code/docs/builds owned by root and separate workers. No child agents or user contact. ## 6. Implementation or investigation approach Examine actual GCC status/artifact representations, column convention and Unicode/BOM witness. Check proposed decoder's ability to produce a real positively bound result while withholding ambiguous origins and incomplete clean clears. Identify minimal additional gate or witness if needed. Distinguish structural failures from a valid source diagnostic with unlocated related data. ## 7. Interfaces and data contracts Public contracts proposed in T-DIAGNOSTIC-SARIF-013 section 7. Positive mapped outcomes have a retained exact document and verified physical origin; process outcome separate from bytes. Verify the design supports multiple artifacts/index/base references without reading arbitrary paths or pulling in an independent parser. ## 8. Dependencies and integration Milestone is independent of module graph, adapter does no process launching and will be used by the stock diagnostics worker. Root integrates native/CMake/actual gcc fixture. Implementation awaits reviewed interfaces; please issue early amendment only for consequential problems. ## 9. Edge cases security and performance Check bounded decoding and source materialization, integer range, endpoint ambiguity, partial compiler stderr, absence of expected result fields, diagnostics from headers/imports and stale snapshots. Use harmless ordinary compile fixtures. ## 10. Acceptance criteria READY or CHANGES_REQUIRED with exact contract section and distinguishing tests. Provide evidence for defaults and any important limits, including whether success/error SARIF can cause false clean clears or false source positions. ## 11. Verification commands and evidence git status --short --branch; actual local GCC16 reports and snapshot code. Optional focused stock syntax-only/diagnostic probe in your private directory. Report exact sources and checks; no edits/builds in shared areas. ## 12. Constraints and stop conditions No production backend/permission decisions, no expanded scope or changes. If rate-limited report honestly. Fast early verdict allows independent coding. ## 13. Authorization and decisions User wants full project with native VBS, GPT-6.2 Astra Max for independent review. D-028/030 approves local GCC prototype and evidence. Read-only task. ## 14. Return format T-PREFLIGHT-DIAGNOSTIC-013 READY/CHANGES_REQUIRED, necessary amendments and attested checks. Report to root.