Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
492 changes: 492 additions & 0 deletions packages/core/src/__tests__/sandbox-boundary.test.ts

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion packages/core/src/backend-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ import type {
} from './events.js';
import type { InteractionClosureReason } from './interaction.js';
import type { RuntimeEvent } from './runtime-event.js';
import type { SandboxBoundaryResponse, SandboxBoundarySettlement } from './sandbox-boundary.js';
import type {
SandboxBoundaryNegotiationState,
SandboxBoundaryResponse,
SandboxBoundarySettlement,
} from './sandbox-boundary.js';
import type { StoredMessage, PersistedBackendKind } from './session.js';
import type { AgentRunHeader } from './agent-run.js';
import type { UserQuestionResponse } from './user-question.js';
Expand All @@ -52,6 +56,8 @@ export interface RuntimeContinuationMetadata {
sourceRunId: string;
sourceTurnId: string;
sourceRuntimeEventHighWater: number;
/** Authenticated negotiation projection; never grants execution authority. */
sandboxBoundaryNegotiationState: SandboxBoundaryNegotiationState;
}

export interface BackendSendInput {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ export interface SandboxDenialRecovery extends SandboxDenialSignal {
}

export interface SandboxBoundaryFailureSignal {
reason: 'sandbox_boundary_required' | 'requires_bypass';
reason: 'invalid_boundary_declaration' | 'sandbox_boundary_required' | 'requires_bypass';
requiredExpansion?: SandboxBoundaryExpansion;
source?: 'client_capability';
}
Expand Down
Loading