# Review the private GCC worker and the first real evaluator and IDE hooks Task ID: T-PREFLIGHT-GCC-008 Role: astra_reviewer 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. D-030 explicitly authorizes a local isolated GCC 16.2 worker + versioned compiler hooks. Root has built cc1plus from the verified release. Planner T-PLAN-GCC-008 mapped actual source and APIs. ## 2. Objective and deliverables Fresh independent preflight of the proposed compiler patch, worker launch/control boundary, direct IDE occurrences and debugger witness. Give per-slice verdicts and decisive changes; let independent implementation start when a slice is ready. ## 3. Scope and non-goals No code edits or publication. Probe only task-owned synthetic fixtures and exact local GCC source/evidence. No semantic fallback to raw-dump parsing in the product or exposure of experimental capabilities on ordinary LSP. ## 4. Files to inspect Read docs/roadmap/08*,09*,12*,17*,18*,19*, docs/agent-workflow/tasks/T-PLAN-GCC-008.md and actual implementation under build/gcc-gate/gcc-16.2.0/gcc/{cp/constexpr.cc,cp/parser.cc,cp/lex.cc,cp/Make-lang.in,cp/constraint.cc,cp/pt.cc,cp/reflect.cc,c-family/c.opt,json.h,diagnostics/sarif-sink.cc}. Verify exact source points below. Read tests/corpus/frontend/{gcc-live.cpp,gcc-queries.cpp,probe-gcc-tooling.py}, Build/Model.hpp, Workspace/Trust.hpp and build/voidlibrary/current/include/Void/System/Process.hpp. ## 5. Write ownership and coordination Write scope: none Independent reviewer only. Root owns integration, checked source build and clients. Separate implementers will own compiler-patches/gcc-16.2.0/ and experiments/frontend/gcc-worker/ respectively; each gets an exact task after preflight. ## 6. Implementation or investigation approach Check core evaluator observation after admission/bindings at constexpr.cc 4279, real body 4531, copied result of get_value(res) at 4552 before destroy_value_checked at 4576; final error/outcome 4653, cache branch 4426 and exceptions. Ordinary successful integral return needs actual TYPE_PRECISION/signed/exact bits at event time. Use scope IDs/parents for recursion/early returns. Local compiler flags opt-in; disabled path has no formatting/I/O and preserves semantics. Review frontend-origin HELLO/EOF/finalization at cp/lex.cc 340/80 and fixed private pipe framing. Check saved/edit/malformed/recovered direct call (parser.cc 7150, 8941, 9129) at terminal identifier token, member use at 9639,9725. Require exact spelling bytes in immutable snapshot and same invocation DECL_UID; reject tentative/rolled-back evidence, macro/#line/generated/implicit or missing origins. Validate direct target rather than dumping all lexical spellings. ## 7. Interfaces and data contracts NEW private v1 interface proposal. Patch records on dedicated fd 4, bounded newline-delimited UTF-8 JSON frames of at most 64 KiB, parent control on fd 3, up to 4 KiB per control. Trusted launcher remaps Void::Process child pipes, isolates raw cc1 stdout/stdin, separately drains stderr and execs selected private ELF (absolute, stable open identity), with explicit environment/no PATH selection, process group and resource bounds. Request nonce/version + backend build/patch identity, contiguous seq and owned call IDs, kind/source origin and value DTO {kind:integer,precision,signed,bitsHex} or explicit unavailable. At actual value snapshot, can stop; only matched nonce/stop generation can step/continue/cancel. Buffer/cap/truncate with typed terminal reasons on overflow/crash, distinguish paused/running deadlines/EOF, reap whole group. One frozen fixed fixture per invocation, no arbitrary launch or flags from project metadata. Keep frontend diagnostics and IDE/debug records independently correlated and do not misread SARIF display columns as UTF units. ## 8. Dependencies and integration T-PLAN-GCC-008 source mapping complete. Known release SHA + tag, stock plugin and GDB evidence are partial; full compiler parity, hook values, source and state-machine tests remain mandatory. Root can continue provider implementation and standalone baseline build during your review. ## 9. Edge cases security and performance On resumption the evaluator slice has an independent READY verdict with amendments. T-GCC-EVALUATOR-017 records those amendments and the concrete v1 stream. The outstanding verdicts cover the worker launcher, control/replay and direct IDE evidence. The actual private cc1plus built and matched the stock predefined macros and all 19 reference cases, eight tooling cases and 33 module scans with the reference include roots and explicit PIE/preinclude flags. Verify remaining boundaries against source. Do not duplicate the accepted evaluator review except to report a concrete cross-component defect. Guard GC tree lifetime, arbitrary widths, caching/silent failure/reentrant parsing, exceptions, real vs diagnostic replays; stable origin identity for src snapshot/macro/line directives, malicious strings cannot frame injection, pipe FD collision/EOF/kill/leaked descendants. Scope only claims actual direct expressions, ordinary ints/closed fixture. Later template/constraint/metafunction/splice/expansion hooks have separate source anchors; no silent classification of deferred as satisfied. ## 10. Acceptance criteria Compiler event vs supervisor vs IDE per-slice READY/CHANGES_REQUIRED. Require synthetic Ready=17→41 with same assertion >0 produces distinct real values 17/34, 41/82 with observed nested parent, held stop with same PID/no later events, step/cancel and mutation/replay witness. Require multi-occurrence direct overload definition/field/hover and malformed/recovered edits, raw byte accuracy incl Unicode/tab or explicit unavailable. Distinguish prototype success from full backend/debugger/adoption gates. ## 11. Verification commands and evidence Read bounded local GCC release slices and VLS graph coverage/direct source; use git status --short --branch and optional bounded known-fixture smoke with stock GCC, never modify in-progress compiler build. Return evidence and concrete distinguishing checks. No large new source/build downloads. ## 12. Constraints and stop conditions Report genuine blockers/change requirements early. Do not assume GCC public plugins alone provide evaluation state, invent compiler results, widen project license or invoke project metadata. Do not expand the narrow witness into a prerequisite for independent passive work. ## 13. Authorization and decisions User approved D-030 and retained independent Astra Max review in D-029. This new substantial change requires a fresh planner/preflight followed by source and integration review. No remote action/Git changes authorized. ## 14. Return format T-PREFLIGHT-GCC-008 per-slice verdicts, exact amendments/source anchors, test oracle, and separable work/actual blockers.