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.
3.0 KiB
04 — Workspace configuration and execution authority
Status: Passive settings and tool identity policy are implemented and tested. Launcher, provider and job integration are in progress. Requirements: R-007,R-008,R-021 Dependencies: 02; feeds05,06,07,09 and debugger launch.
Ownership and boundaries
Proposed Sol: NEW include/vls/workspace/, src/workspace/, tests/workspace/. Root owns configuration and permission schema. Future assignments must verify the then-current baseline and exact disjoint paths; these proposed scopes do not authorize work in another repository.
Contracts and data flow
Workspace records declare roots, provider choice, selected tool identities and limits. Trust for VBS metadata evaluation is separate from compiler/plugin/wrapper execution. Repository files and compile metadata cannot grant their own authority. No remote listener or telemetry is enabled by default.
Implementation sequence
- Define explicit CLI/user-runtime/workspace configuration precedence; security-sensitive grants come only from explicit user/launcher configuration, never repository-local booleans.
- Resolve configured tool executables to an identity containing canonical path and executable content/version information. Revalidate identity before a launch when mutable locations can change.
- Permit trusted metadata refresh/private IDE caches under the confirmed scope; expose explicit user commands for project generators and dependency builds.
- Publish actionable status for absent provider/tool, unsupported flags and revoked trust. Settings changes invalidate only the affected contexts and queued requests.
Failure behavior and constraints
Reject arbitrary plugins and unapproved wrappers in v1. Recognized transparent wrappers may be unwrapped as data, never executed for discovery. A changed tool identity revokes reuse until approved configuration is refreshed. Process isolation is not advertised as a sandbox.
Acceptance scenarios
- Use marker executables/plugins to prove passive opens and metadata reads execute nothing.
- Test flags nested inside response files, changed executable bytes, relative/wrapped compiler paths and workspace-supplied trust escalation.
- Exercise configuration precedence, multiple workspace roots, trust revocation while queued and explicit build-action cancellation.
Verification and integration
Proposed NEW CTest label: workspace. Once implemented, register a nonzero suite and run:
dev cpp-gcc -c ctest --test-dir build/bootstrap -L workspace --output-on-failure
This future command is not evidence that the label/tests exist now. Before dispatch, bind the fixtures above to actual targets and record prerequisites/side effects. Require fresh independent review of the implemented contract and affected integrations. Configuration migrations retain old user settings and reject unsupported security-sensitive values. Reverting a provider/tool selection cancels affected work and restores only verified prior identities.