@@ -30,6 +30,7 @@ export const FEATURE_FLAG = {
3030 internalApiOriginEnabled : "internalApiOriginEnabled" ,
3131 realtimeBackend : "realtimeBackend" ,
3232 computeMigrationEnabled : "computeMigrationEnabled" ,
33+ computeOnlyDeploys : "computeOnlyDeploys" ,
3334 computeMigrationFreePercentage : "computeMigrationFreePercentage" ,
3435 computeMigrationPaidPercentage : "computeMigrationPaidPercentage" ,
3536 computeTemplatePrebuildWait : "computeTemplatePrebuildWait" ,
@@ -67,6 +68,7 @@ export const FEATURE_FLAG = {
6768 trustedDeploysEnabled : "trustedDeploysEnabled" ,
6869 sessionTraceEnabled : "sessionTraceEnabled" ,
6970 sandboxTasks : "sandboxTasks" ,
71+ computeOnly : "computeOnly" ,
7072 auditLogsRecording : "auditLogsRecording" ,
7173 hasAuditLogsAccess : "hasAuditLogsAccess" ,
7274} as const ;
@@ -140,6 +142,9 @@ export const FeatureFlagCatalog = {
140142 // `suggested-prompts/promotedPrompt.server.ts`.
141143 [ FEATURE_FLAG . promotedDashboardAgentPrompt ] : z . string ( ) ,
142144 [ FEATURE_FLAG . hasComputeAccess ] : z . coerce . boolean ( ) ,
145+ // Set by the deploy path, never by hand: the org's deployed runs execute only on compute
146+ // (microVM) lanes, with no container fallback. Org-scoped only. Strict z.boolean().
147+ [ FEATURE_FLAG . computeOnly ] : z . boolean ( ) ,
143148 [ FEATURE_FLAG . hasPrivateConnections ] : z . coerce . boolean ( ) ,
144149 [ FEATURE_FLAG . hasSso ] : z . coerce . boolean ( ) ,
145150 // Gates the Interface theme setting in /account. Off by default.
@@ -168,6 +173,10 @@ export const FeatureFlagCatalog = {
168173 // way if written as a string via the admin PAT route. The admin toggle sends a real
169174 // boolean, so this only rejects the dangerous stringified case.
170175 [ FEATURE_FLAG . computeMigrationEnabled ] : z . boolean ( ) ,
176+ // Global only. When on, the deployment access plugin may allow an organization it would
177+ // otherwise deny, with its deployed runs limited to compute (microVM) lanes. Off: it denies as before.
178+ // Read from the global flag snapshot and sent with each deploy access check. Strict z.boolean().
179+ [ FEATURE_FLAG . computeOnlyDeploys ] : z . boolean ( ) ,
171180 [ FEATURE_FLAG . computeMigrationFreePercentage ] : z . coerce . number ( ) . int ( ) . min ( 0 ) . max ( 100 ) ,
172181 [ FEATURE_FLAG . computeMigrationPaidPercentage ] : z . coerce . number ( ) . int ( ) . min ( 0 ) . max ( 100 ) ,
173182 // When on, deploy finalisation waits (up to a timeout) for the compute template
@@ -288,6 +297,7 @@ export const GLOBAL_LOCKED_FLAGS: FeatureFlagKey[] = [
288297 FEATURE_FLAG . runOpsMintShardSetFlippedAt ,
289298 FEATURE_FLAG . sandboxTasks ,
290299 FEATURE_FLAG . deployCliVersionEnforcedFrom ,
300+ FEATURE_FLAG . computeOnly ,
291301] ;
292302
293303// Flags that are read-only on the org-level dialog.
@@ -304,6 +314,8 @@ export const ORG_LOCKED_FLAGS: FeatureFlagKey[] = [
304314 FEATURE_FLAG . runOpsMintShardOverride ,
305315 // Read per dequeue from the global flag snapshot only; the org's flags aren't loaded there.
306316 FEATURE_FLAG . deploymentStatusMode ,
317+ // Read per deploy access check from the global flag snapshot only.
318+ FEATURE_FLAG . computeOnlyDeploys ,
307319] ;
308320
309321export type OrgLockedFlagEffect = "live" | "ignored" | "derived" ;
@@ -322,6 +334,7 @@ export const ORG_LOCKED_FLAG_EFFECT: Partial<Record<FeatureFlagKey, OrgLockedFla
322334 [ FEATURE_FLAG . runOpsMintShardSetFlippedAt ] : "ignored" ,
323335 [ FEATURE_FLAG . runOpsMintShardOverride ] : "ignored" ,
324336 [ FEATURE_FLAG . deploymentStatusMode ] : "ignored" ,
337+ [ FEATURE_FLAG . computeOnlyDeploys ] : "ignored" ,
325338 [ FEATURE_FLAG . runOpsMintKindPrev ] : "derived" ,
326339 [ FEATURE_FLAG . runOpsMintKindFlippedAt ] : "derived" ,
327340} ;
0 commit comments