commit
ca04975d54
62 files changed
+3381
No files matched your search
@@ -0,0 +1,37 @@
|
||||
# 04 — Workspace configuration and execution authority
|
||||
|
||||
Status: PLANNED; no implementation claim
|
||||
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
|
||||
1. Define explicit CLI/user-runtime/workspace configuration precedence; security-sensitive grants come only from explicit user/launcher configuration, never repository-local booleans.
|
||||
2. 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.
|
||||
3. Permit trusted metadata refresh/private IDE caches under the confirmed scope; expose explicit user commands for project generators and dependency builds.
|
||||
4. 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
|
||||
1. Use marker executables/plugins to prove passive opens and metadata reads execute nothing.
|
||||
2. Test flags nested inside response files, changed executable bytes, relative/wrapped compiler paths and workspace-supplied trust escalation.
|
||||
3. 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:
|
||||
```sh
|
||||
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.
|
||||
Reference in new issue
Block a user