fix(sandbox): implement canonical task environment resolution - #2772
Abdullah-Builds wants to merge 3 commits into
Conversation
|
/claude review |
|
SHIP WITH CARE — the resolver logic is correct, but the security-critical rejection paths that are this module's whole purpose are largely untested.
RISK — untested security-rejection branches. WHAT:
BLAST RADIUS: this is exactly the NOTE — the module has no callers yet in this PR; it's standalone infrastructure. Nothing regresses at runtime, but nothing exercises it end-to-end either, so the tests are the only guarantee until it's wired in. |
What does this PR do?
Implements the core
task_environmentcontract described in #2769.This change adds a canonical task-environment resolver that converts dataset-provided task environment configuration into the existing provider-neutral
SandboxSpec.The resolver supports:
image@sha256:<digest>.task_id.SandboxSpec.metadata.task_environment.Unit tests are included for task-environment validation, manifest resolution, image consistency, security boundaries, and operator configuration preservation.
Closes #2769.
Checklist
pre-commit run --all-files) (so CI lint/format/copyright pass).git commit -s) (so the DCO check passes).