feat(safety): gate sensitive tools behind elevation and immutable denylist
This commit is contained in:
@@ -293,6 +293,12 @@ export class SessionBridge {
|
||||
agent: primaryTier,
|
||||
provider: config?.models.default.provider,
|
||||
autonomyLevel: config?.agents.autonomy_level ?? 'standard',
|
||||
sensitiveMode: config?.agents.sensitive_mode ?? 'deny_without_elevation',
|
||||
immutableDenylist: (config?.agents.immutable_denylist ?? []).map((rule) => ({
|
||||
tool: rule.tool,
|
||||
argsPattern: rule.args_pattern,
|
||||
reason: rule.reason,
|
||||
})),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user