Repository navigation
Description
What happens
Since fullsend moved to OpenShell 0.1.2 (#7233), a sandbox harness must name a valid policy. If it doesn't, fullsend run still creates the sandbox, retries 3 times with backoff, and fails with an OpenShell error that doesn't mention the harness's policy: field:
- No
policy:: the sandbox ends in phaseError, with or without providers attached:Configuration: ConfigurationInvalid: Effective configuration could not be activated; replace the policy or repair attached providers - A policy file that declares no fields (for example, only comments):
openshell sandbox createfails withfailed to decode sandbox policy fields.
Both reproduce on a local 0.1.2 gateway with a dummy-runtime harness and no providers. The same harness with internal/agentnew/templates/policies/base.yaml runs to exit 0. This is what broke the behaviour suite after #7233 (fixed for the suite in #7847).
fullsend ships and layers no default policy on purpose (#7266), so a harness has to name one. The CLI should say so before it creates a sandbox.
Where
Harness.Validaterequiresagentandrolebut notpolicy.ValidateFilesExistskips an empty path. Its fix guidance for a missing policy file only fires whenpolicy:is set.sandbox.goomits--policywhen the policy is empty, so the sandbox is created with none.- Nothing reads the policy file's content before create, so an empty or comment-only file is only caught by OpenShell.
Proposed
- Fail before sandbox creation when a harness that runs in a sandbox has no
policy:. Reuse the guidanceValidateFilesExistalready gives: commit a copy of the fleet policy fromfullsend-ai/agents, or setpolicy:to its URL with a#sha256=hash underallowed_remote_resources. For a new agent, point tofullsend agent new. Check the composed harness, afterbase:inheritance, so a child that inherits its base's policy passes. - Optionally, parse a local policy file and reject one that declares no fields, naming the path.
- Docs:
docs/cli/run.md: theprobe-timeoutexample harness has nopolicy:, so a user who pastes it as-is hits the error above.running-agents-locally.mdexplains why a custom harness needspolicy: policies/base.yamlthrough "the sandbox image's default policy". On 0.1.2 a harness with no policy doesn't start at all, so the reason should say that.
Whether a missing policy should get a default instead is a separate question. #7266 decided against shipping one, and a reviewer on #7847 questioned that decision. This issue only asks for a clear, early error under the current rule.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Sep 30, 2026
🤖 Finished Triage · ✅ Success · Started 1:31 AM UTC · Completed 1:34 AM UTC
Commit:
3bd9c6f· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.34
fullsend-ai-triage commentedon Sep 30, 2026
Investigated related history: #7266 (merged) intentionally removed fullsend's shipped default policy, so this issue correctly treats 'no default policy' as settled and out of scope, and only asks for a clear, early error. #7847 (open) fixes the internal behaviour test suite's own instance of this same OpenShell 0.1.2 regression by committing real policies into test harnesses -- it explicitly calls out this issue as the separate, general CLI-side fix, so it neither resolves nor blocks this issue. No open issue duplicates this report, and no PR currently implements the validation change described here.
Classified as a bug (medium severity, component/harness + component/sandbox): the symptom, root cause, and reproduction are all clearly documented with exact file/line references, and the proposed fix is concrete enough to implement without further clarification. The docs impact is limited to two named files, not CI/workflow configuration.
Labels: Matches this repo's convention of pairing type/bug + bug with the relevant component labels (harness validation and the OpenShell sandbox it targets) and a medium priority given the workaround (naming a valid policy) is simple and already documented.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Sep 30, 2026
🤖 Finished Code · ✅ Success · Started 1:36 AM UTC · Completed 2:33 AM UTC
Commit:
3bd9c6f· View workflow run →Runtime: pi · Model: xai/grok-4.6 · Effort: high · Cost: $43.63
fix(#7849)!: fail before sandbox create when harness has no policy
Merge pull request fullsend-ai#7852 from fullsend-ai/agent/7849-sandb…
test(#7689): give runner-secret harness fixtures a policy
test(#7689): give runner-secret harness fixtures a policy
test(#7689): give runner-secret harness fixtures a policy
test(#7689): give runner-secret harness fixtures a policy
test(#7689): give runner-secret harness fixtures a policy