# Check the editor overlay handoff for a stock compiler input view Task ID: T-PREFLIGHT-SOURCE-009 Role: astra_reviewer Status: READY ## 1. Context and baseline Roadmap 03/09/13 has a working overlay store, stock GCC diagnostic mapper and trusted build-context/lease contract. T-SOURCE-OVERLAYS-009 proposes a document-side source binding for a future real compiler view. ## 2. Objective and deliverables Read the actual DocumentStore and the proposed contract. Validate the minimum API for a stock input owner to materialize approved bytes plus authoritative editor overlays and recheck them, with no second ambient open. Identify required corrections before code starts. ## 3. Scope and non-goals Preflight read-only for the document capture contract; no review of other components or new architecture beyond this boundary. No compiler launches or security testing needed. No filesystem staging, LSP work or source-checker implementation. ## 4. Files to inspect Read docs/agent-workflow/tasks/T-SOURCE-OVERLAYS-009.md and T-DOCS-003.md, include/Void/LanguageServer/Documents/{DocumentStore,DocumentSnapshot,Uri}.hpp, src/Documents/{DocumentStore,DocumentSnapshot,Uri}.cpp, tests/documents/DocumentTests.cpp and relevant model eligibility in src/Build/Model.cpp. Inspect actual state transitions and retained budget; never inspect excluded environment data. ## 5. Write ownership and coordination Write scope: none A private bounded build/preflight-source-009 fixture may be used to validate a neutral regression, but no shared mutations or extra agents. ## 6. Implementation or investigation approach Trace overlay acquisition, unknown and refused opens, zero-length content, two physical aliases, close/reopen, recovery/desync with unchanged version, same_input_as, snapshot bytes, membership and concurrent edits. Read all methods receiving already-bound paths; verify cross-store and cross-generation stamps do not require IO. Distinguish evidence the document owner can establish from the future disk/namespace catalog. ## 7. Interfaces and data contracts Review proposed opaque bounded inventory and one-file bound observation, post-read creation and validity. Require missing, refused, invalid and available state to remain distinct; no need to prescribe new public types if an existing type suffices. Existing disk resolve remains a separate entry point with ambient reads. ## 8. Dependencies and integration One cleared semantic planner and document foundations are prerequisites. Independent workspace/diagnostic/module tasks own no overlapping file. Report early verdict as soon as API can be implemented; root handles code and wiring after READY. ## 9. Edge cases security and performance Review for concrete failures observable in an editor or compiler input, overbroad invalidation, deadlocks, identity lifetimes and retained budget. Bound any diagnostics/distinguishing fixtures. No external network, project discovery or stress beyond ordinary unit inputs. ## 10. Acceptance criteria READY if scope and contract give a credible first stock diagnostic handoff. Otherwise give exact minimal amendments and a distinguishing test. Include concrete source lines, note actual reads versus unrun tests and outstanding caller responsibilities. ## 11. Verification commands and evidence Inspect checked-in baselines and latest changed files; optional build/bootstrap/tests/vls_document_tests --no-color or --list, no shared build changes. Record actual command and exit if running tests. ## 12. Constraints and stop conditions Stop for ambiguous project identity or ownership. Source materialization, verified catalog closure and OS isolation will get separate integration gates. Do not make unrelated work a precondition for the document package. ## 13. Authorization and decisions User authorized separate-branch full implementation D-022/025/027 and wants independent Astra at Max D-029. ## 14. Return format T-PREFLIGHT-SOURCE-009 READY or CHANGES_REQUIRED with lines, needed clauses and distinguishing cases, plus final ownership and next unblocked work.