Repository navigation
fix(mothership): let the agent copy files between workspaces without Projects - #9288
Conversation
|
There was a problem hiding this comment.
All reported issues were addressed across 16 files
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; no actionable new issues remain. SummaryLets admitted agent turns copy files between workspaces while Projects are off.
No actionable new issues found. The earlier unnumbered helper finding is fixed with
|
|
@greptile |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 16 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
Turn on auto-fix | Re-trigger cubic
…Projects A copy between workspaces needs only the turn's resource admission, but the copy authorizer required the Projects rollout for every copy and the agent was offered copies only through Project file-owner negotiation, so with Projects off every agent copy failed. The authorizer now requires Projects only for a copy that names a Project owner. Admitted chat turns declare the worker's workspace-file-copy capability whether or not Projects are on, the recovery marker restoring admission is written for every admitted turn, and the sandbox lease records and exports the same so the workbench terminal binds workspace copies under the paired grant.
…om the worker contract
e34b3d8 to
d888da2
Compare
|
@greptile |
|
@cubic-dev-ai review this PR |
There was a problem hiding this comment.
No issues found across 16 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’re close to your flex budget. Increase your flex budget so reviews don’t pause.
Turn on auto-fix | Re-trigger cubic

Summary
The agent could not copy files at all while Projects are off. A copy between workspaces needs only the turn's resource admission, but the copy authorizer required the Projects rollout for every copy, and the agent was offered copies only through Project file-owner negotiation, which Sim sends only with Projects on.
copiesWithinWorkspaces, shared with the sandbox copy routing and proxy). Every workspace belongs to a Project whether or not Projects are on, so the rest of the authorization is unchanged. This also opensPOST /api/v2/files/copybetween workspaces to direct callers (session, personal API key, OAuthapi:write) while Projects are off, under the same per-side role,files.useand personal-key checks that already apply with Projects on; workspace API keys and executors stay refused.workspace-file-copycapability inclientCapabilitieswhether or not Projects are on (withFileOwnerContext). A worker that predates the token ignores it; this Sim's older releases never send it, so neither side offers a copy the other can't serve.workspaceFileCopyfor an admitted tool and exportsSIM_WORKSPACE_FILE_COPY, and workspace-only copies route through the paired-copy proxy, which still refuses a Project owner without the negotiated protocol.generated/protocol.tsfrom the companion mothership PR.Companion: simstudioai/mothership#794
Type of Change
Testing
SIM_WORKSPACE_FILE_COPYand no protocolChecklist