# Review stability and lifetime of the editor context lease Task ID: T-PREFLIGHT-LEASE-009 Role: astra_reviewer Status: READY ## 1. Context and baseline Shared VLS feat/implement-roadmap ca04975; passive status, actual providers, authority pinning and guarded analysis model exist. Planner T-PLAN-SEMANTICS-010 established the new lease to connect actual compiler contexts to diagnostics; before implementation review the attached contract. ## 2. Objective and deliverables Return early READY or CHANGES_REQUIRED for a context lease that acquires a real selection, authenticates its selected driver and revalidates when inputs change without degrading unaffected documents. Catch new contract holes before worker coding. ## 3. Scope and non-goals Read-only preflight limited to the proposed semantic context acquisition API and relevant existing projection/selection and settings. Do not implement, do not change any tools or release/pin choices. ## 4. Files to inspect Read T-SEMANTIC-LEASE-009, actual src/WorkspaceSession.cpp, src/Build/{Model,CommandImport,CompdbProvider,VbsProvider,ProviderFile}.cpp, src/Workspace/Trust.cpp, include/vls/WorkspaceSession.hpp, include/Void/LanguageServer/Build/{Providers,Model}.hpp and semantic-planner notes in the contract. Existing docs/agent-workflow/DECISIONS.md supplies authority decisions. ## 5. Write ownership and coordination Write scope: none Use private build/preflight-semantic-lease-009 for ordinary files if needed. Preserve shared checkout, no global or sibling changes, further agents, direct user contact, or process launches from workspace commands. ## 6. Implementation or investigation approach Trace how identical generation identity/selection, query aliases and distinct in-flight documents can remain correct. Scope frontend/driver distinction and trust generation checks. Look for precise minimal amendments affecting real users, selected command fidelity, lifetime, equality and false generation changes. ## 7. Interfaces and data contracts NEW acquire_semantic_context/validate from the attached ยง7, consuming existing TrustPolicy, SelectionState, generation/stamps and immutable document binding. Ensure no untrusted executable is selected implicitly, repeated ordinary provider status can't break cached selection and unrelated documents aren't serialized to one latest issuance. Check handling of staleness during validation. ## 8. Dependencies and integration Root owns integration; no active source writer for affected files until preflight clears them. Module graph and SARIF decoder are parallel separate owners. Passive provider already has working stdio/regression checks. ## 9. Edge cases security and performance Bound cache/history and return safe immutable lifetime after eviction or removal. Track observed change and affected context rather than arbitrary process lifetime for readiness. Check that explicit file/workspace, missing/native precedence and config source choose the real row. ## 10. Acceptance criteria Deliver concrete P1/P2 interface or ordering changes with a distinguishing fixture, then a READY verdict if scope is technically sufficient. No need to approve later compiler isolation or wire protocol here. ## 11. Verification commands and evidence git status --short --branch, targeted symbol/source inspection and existing build/bootstrap/tests/vls_workspace_tests --no-color if helpful. No commands on arbitrary project input or shared rebuilds. ## 12. Constraints and stop conditions Stop at preflight verdict; role must stay GPT-6.2 Astra at Max. No changes to product scope or user commitments. ## 13. Authorization and decisions D-022/025/027/029, approved full roadmap, first semantic context integration follows the planner. This assignment is independent review only. ## 14. Return format T-PREFLIGHT-LEASE-009 READY/CHANGES_REQUIRED with actual evidence, smallest amendment and test. Report to root only.