@highflame/policy 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_schemas/agent_ops/context.json +1676 -0
- package/_schemas/agent_ops/schema.cedarschema +666 -0
- package/_schemas/agent_ops/templates/defaults/baseline.cedar +21 -0
- package/_schemas/agent_ops/templates/templates.json +66 -0
- package/dist/agent_ops-context.gen.d.ts +146 -0
- package/dist/agent_ops-context.gen.js +280 -0
- package/dist/agent_ops-defaults.gen.d.ts +64 -0
- package/dist/agent_ops-defaults.gen.js +156 -0
- package/dist/agent_ops-entities.gen.d.ts +11 -0
- package/dist/agent_ops-entities.gen.js +37 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -1
- package/dist/service-schemas.gen.d.ts +10 -0
- package/dist/service-schemas.gen.js +1055 -1
- package/dist/types.d.ts +5 -1
- package/dist/types.js +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"service": "agent_ops",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "AgentOps policy templates — unified agent guardrails for code agents, MCP tools, and AI Gateway traffic",
|
|
5
|
+
"categories": [
|
|
6
|
+
{
|
|
7
|
+
"id": "threat-detection",
|
|
8
|
+
"name": "Threat Detection",
|
|
9
|
+
"description": "Detect and block injection, jailbreak, and adversarial attacks across all agent traffic."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": "data-protection",
|
|
13
|
+
"name": "Data Protection",
|
|
14
|
+
"description": "Prevent secrets, PII, and sensitive data from leaking in prompts, responses, or tool calls."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "agent-security",
|
|
18
|
+
"name": "Agent Security",
|
|
19
|
+
"description": "Guard against tool poisoning, rug-pull attacks, and multi-agent delegation abuse."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": "tool-permissioning",
|
|
23
|
+
"name": "Tool Permissioning",
|
|
24
|
+
"description": "Allow-list or block-list specific tools, MCP servers, and shell operations by risk tier."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "code-security",
|
|
28
|
+
"name": "Code Security",
|
|
29
|
+
"description": "Enforce safe coding patterns: no exfiltration commands, no destructive write operations."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "content-safety",
|
|
33
|
+
"name": "Content Safety",
|
|
34
|
+
"description": "Block harmful, toxic, or policy-violating content in agent inputs and outputs."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "organization",
|
|
38
|
+
"name": "Organization",
|
|
39
|
+
"description": "Organization-wide baselines and default permit/deny policies."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"defaults": [
|
|
43
|
+
{
|
|
44
|
+
"id": "organization.permit-baseline",
|
|
45
|
+
"name": "Baseline Permit",
|
|
46
|
+
"description": "Permits all AgentOps actions by default; threat-specific forbid policies override this when detectors fire.",
|
|
47
|
+
"category": "organization",
|
|
48
|
+
"file": "defaults/baseline.cedar",
|
|
49
|
+
"severity": "low",
|
|
50
|
+
"tags": ["category:organization", "posture:permit-default"],
|
|
51
|
+
"is_active": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"templates": [
|
|
55
|
+
{
|
|
56
|
+
"id": "organization.permit-baseline",
|
|
57
|
+
"name": "Baseline Permit",
|
|
58
|
+
"description": "Permits all AgentOps actions by default; threat-specific forbid policies override this when detectors fire.",
|
|
59
|
+
"category": "organization",
|
|
60
|
+
"file": "defaults/baseline.cedar",
|
|
61
|
+
"severity": "low",
|
|
62
|
+
"tags": ["category:organization", "posture:permit-default"],
|
|
63
|
+
"auto_deploy": true
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context attribute keys for AgentOps AgentOps unified agent guardrail policy enforcement — superset of Guardrails, Overwatch, and AI Gateway.
|
|
3
|
+
*
|
|
4
|
+
* These constants correspond to the context attributes defined in the
|
|
5
|
+
* AgentOps Cedar schema and are used at policy evaluation time.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AgentOpsContextKey: {
|
|
8
|
+
readonly AgentFramework: "agent_framework";
|
|
9
|
+
readonly AgentId: "agent_id";
|
|
10
|
+
readonly AgentPublisher: "agent_publisher";
|
|
11
|
+
readonly AgentTrustLevel: "agent_trust_level";
|
|
12
|
+
readonly AgentType: "agent_type";
|
|
13
|
+
readonly BudgetExceeded: "budget_exceeded";
|
|
14
|
+
readonly BudgetRemainingPct: "budget_remaining_pct";
|
|
15
|
+
readonly CodeLanguages: "code_languages";
|
|
16
|
+
readonly CodeRatio: "code_ratio";
|
|
17
|
+
readonly CommandInjectionDetected: "command_injection_detected";
|
|
18
|
+
readonly CommandInjectionScore: "command_injection_score";
|
|
19
|
+
readonly CommandInjectionType: "command_injection_type";
|
|
20
|
+
readonly ContainsCode: "contains_code";
|
|
21
|
+
readonly ContainsNonAscii: "contains_non_ascii";
|
|
22
|
+
readonly ContentSafetyBlocked: "content_safety_blocked";
|
|
23
|
+
readonly ContentSafetyScore: "content_safety_score";
|
|
24
|
+
readonly ContentTopics: "content_topics";
|
|
25
|
+
readonly ContentType: "content_type";
|
|
26
|
+
readonly ConversationTurn: "conversation_turn";
|
|
27
|
+
readonly CrimeScore: "crime_score";
|
|
28
|
+
readonly CrossOriginDetected: "cross_origin_detected";
|
|
29
|
+
readonly CrossOriginScore: "cross_origin_score";
|
|
30
|
+
readonly CrossOriginType: "cross_origin_type";
|
|
31
|
+
readonly Cwd: "cwd";
|
|
32
|
+
readonly DetectedLanguage: "detected_language";
|
|
33
|
+
readonly DetectedScript: "detected_script";
|
|
34
|
+
readonly DetectedThreats: "detected_threats";
|
|
35
|
+
readonly DetectorCount: "detector_count";
|
|
36
|
+
readonly Direction: "direction";
|
|
37
|
+
readonly EncodedContentDetected: "encoded_content_detected";
|
|
38
|
+
readonly EncodedCount: "encoded_count";
|
|
39
|
+
readonly EncodedScore: "encoded_score";
|
|
40
|
+
readonly EncodedTypes: "encoded_types";
|
|
41
|
+
readonly Event: "event";
|
|
42
|
+
readonly FactualityScore: "factuality_score";
|
|
43
|
+
readonly HallucinationScore: "hallucination_score";
|
|
44
|
+
readonly HateSpeechScore: "hate_speech_score";
|
|
45
|
+
readonly HighestSeverity: "highest_severity";
|
|
46
|
+
readonly IdentityType: "identity_type";
|
|
47
|
+
readonly IndirectInjectionScore: "indirect_injection_score";
|
|
48
|
+
readonly IndirectInjectionType: "indirect_injection_type";
|
|
49
|
+
readonly InjectionDeepContextScore: "injection_deep_context_score";
|
|
50
|
+
readonly InjectionPulseScore: "injection_pulse_score";
|
|
51
|
+
readonly InjectionScore: "injection_score";
|
|
52
|
+
readonly InjectionType: "injection_type";
|
|
53
|
+
readonly InvisibleCharsDetected: "invisible_chars_detected";
|
|
54
|
+
readonly InvisibleCharsScore: "invisible_chars_score";
|
|
55
|
+
readonly IsEnglish: "is_english";
|
|
56
|
+
readonly IsLatinScript: "is_latin_script";
|
|
57
|
+
readonly JailbreakDeepContextScore: "jailbreak_deep_context_score";
|
|
58
|
+
readonly JailbreakPulseScore: "jailbreak_pulse_score";
|
|
59
|
+
readonly JailbreakScore: "jailbreak_score";
|
|
60
|
+
readonly KeywordCategories: "keyword_categories";
|
|
61
|
+
readonly KeywordCount: "keyword_count";
|
|
62
|
+
readonly KeywordMatched: "keyword_matched";
|
|
63
|
+
readonly LanguageConfidence: "language_confidence";
|
|
64
|
+
readonly LoopCount: "loop_count";
|
|
65
|
+
readonly LoopDetected: "loop_detected";
|
|
66
|
+
readonly LoopTool: "loop_tool";
|
|
67
|
+
readonly McpConfigRisk: "mcp_config_risk";
|
|
68
|
+
readonly McpRiskScore: "mcp_risk_score";
|
|
69
|
+
readonly McpRiskType: "mcp_risk_type";
|
|
70
|
+
readonly McpServer: "mcp_server";
|
|
71
|
+
readonly McpServerVerified: "mcp_server_verified";
|
|
72
|
+
readonly McpTool: "mcp_tool";
|
|
73
|
+
readonly ModelName: "model_name";
|
|
74
|
+
readonly ModelProvider: "model_provider";
|
|
75
|
+
readonly MultiTurnDetection: "multi_turn_detection";
|
|
76
|
+
readonly ParamTypeViolation: "param_type_violation";
|
|
77
|
+
readonly ParamTypeViolations: "param_type_violations";
|
|
78
|
+
readonly Path: "path";
|
|
79
|
+
readonly PathTraversalDetected: "path_traversal_detected";
|
|
80
|
+
readonly PathTraversalSeverity: "path_traversal_severity";
|
|
81
|
+
readonly PathTraversalType: "path_traversal_type";
|
|
82
|
+
readonly PatternType: "pattern_type";
|
|
83
|
+
readonly PhishingDetected: "phishing_detected";
|
|
84
|
+
readonly PiiCount: "pii_count";
|
|
85
|
+
readonly PiiDetected: "pii_detected";
|
|
86
|
+
readonly PiiScore: "pii_score";
|
|
87
|
+
readonly PiiTypes: "pii_types";
|
|
88
|
+
readonly Principal: "principal";
|
|
89
|
+
readonly PrivilegeScope: "privilege_scope";
|
|
90
|
+
readonly ProfanityScore: "profanity_score";
|
|
91
|
+
readonly RequestId: "request_id";
|
|
92
|
+
readonly Role: "role";
|
|
93
|
+
readonly RugPullDetected: "rug_pull_detected";
|
|
94
|
+
readonly RugPullScore: "rug_pull_score";
|
|
95
|
+
readonly RugPullType: "rug_pull_type";
|
|
96
|
+
readonly ScriptConfidence: "script_confidence";
|
|
97
|
+
readonly SecretCount: "secret_count";
|
|
98
|
+
readonly SecretTypes: "secret_types";
|
|
99
|
+
readonly SecretsDetected: "secrets_detected";
|
|
100
|
+
readonly SentimentScore: "sentiment_score";
|
|
101
|
+
readonly SequenceRisk: "sequence_risk";
|
|
102
|
+
readonly SessionCommandInjection: "session_command_injection";
|
|
103
|
+
readonly SessionCumulativeRiskScore: "session_cumulative_risk_score";
|
|
104
|
+
readonly SessionInjectionDetected: "session_injection_detected";
|
|
105
|
+
readonly SessionMaxCommandInjectionScore: "session_max_command_injection_score";
|
|
106
|
+
readonly SessionMaxInjectionScore: "session_max_injection_score";
|
|
107
|
+
readonly SessionMaxJailbreakScore: "session_max_jailbreak_score";
|
|
108
|
+
readonly SessionMaxPiiScore: "session_max_pii_score";
|
|
109
|
+
readonly SessionMaxSecretScore: "session_max_secret_score";
|
|
110
|
+
readonly SessionMaxSensitivity: "session_max_sensitivity";
|
|
111
|
+
readonly SessionOriginalRequest: "session_original_request";
|
|
112
|
+
readonly SessionPiiDetected: "session_pii_detected";
|
|
113
|
+
readonly SessionPiiTypes: "session_pii_types";
|
|
114
|
+
readonly SessionSecretTypes: "session_secret_types";
|
|
115
|
+
readonly SessionSecretsDetected: "session_secrets_detected";
|
|
116
|
+
readonly SessionThreatTurns: "session_threat_turns";
|
|
117
|
+
readonly SexualScore: "sexual_score";
|
|
118
|
+
readonly Source: "source";
|
|
119
|
+
readonly SqlInjectionDetected: "sql_injection_detected";
|
|
120
|
+
readonly SqlInjectionScore: "sql_injection_score";
|
|
121
|
+
readonly SqlInjectionType: "sql_injection_type";
|
|
122
|
+
readonly SuspiciousPattern: "suspicious_pattern";
|
|
123
|
+
readonly ThreatCategories: "threat_categories";
|
|
124
|
+
readonly ThreatCount: "threat_count";
|
|
125
|
+
readonly Timestamp: "timestamp";
|
|
126
|
+
readonly ToolCategory: "tool_category";
|
|
127
|
+
readonly ToolIsBuiltin: "tool_is_builtin";
|
|
128
|
+
readonly ToolIsSensitive: "tool_is_sensitive";
|
|
129
|
+
readonly ToolName: "tool_name";
|
|
130
|
+
readonly ToolOperationClasses: "tool_operation_classes";
|
|
131
|
+
readonly ToolPoisoningDetected: "tool_poisoning_detected";
|
|
132
|
+
readonly ToolPoisoningScore: "tool_poisoning_score";
|
|
133
|
+
readonly ToolPoisoningType: "tool_poisoning_type";
|
|
134
|
+
readonly ToolRiskScore: "tool_risk_score";
|
|
135
|
+
readonly TopicConfidence: "topic_confidence";
|
|
136
|
+
readonly UserEmail: "user_email";
|
|
137
|
+
readonly ViolenceScore: "violence_score";
|
|
138
|
+
readonly WeaponsScore: "weapons_score";
|
|
139
|
+
readonly WorkspaceRoot: "workspace_root";
|
|
140
|
+
};
|
|
141
|
+
export type AgentOpsContextKey = (typeof AgentOpsContextKey)[keyof typeof AgentOpsContextKey];
|
|
142
|
+
/**
|
|
143
|
+
* The full set of authorable context attribute keys for AgentOps.
|
|
144
|
+
* Iterate this to enumerate the authorable surface (cockpit, conformance).
|
|
145
|
+
*/
|
|
146
|
+
export declare const AgentOpsContextKeys: readonly ["agent_framework", "agent_id", "agent_publisher", "agent_trust_level", "agent_type", "budget_exceeded", "budget_remaining_pct", "code_languages", "code_ratio", "command_injection_detected", "command_injection_score", "command_injection_type", "contains_code", "contains_non_ascii", "content_safety_blocked", "content_safety_score", "content_topics", "content_type", "conversation_turn", "crime_score", "cross_origin_detected", "cross_origin_score", "cross_origin_type", "cwd", "detected_language", "detected_script", "detected_threats", "detector_count", "direction", "encoded_content_detected", "encoded_count", "encoded_score", "encoded_types", "event", "factuality_score", "hallucination_score", "hate_speech_score", "highest_severity", "identity_type", "indirect_injection_score", "indirect_injection_type", "injection_deep_context_score", "injection_pulse_score", "injection_score", "injection_type", "invisible_chars_detected", "invisible_chars_score", "is_english", "is_latin_script", "jailbreak_deep_context_score", "jailbreak_pulse_score", "jailbreak_score", "keyword_categories", "keyword_count", "keyword_matched", "language_confidence", "loop_count", "loop_detected", "loop_tool", "mcp_config_risk", "mcp_risk_score", "mcp_risk_type", "mcp_server", "mcp_server_verified", "mcp_tool", "model_name", "model_provider", "multi_turn_detection", "param_type_violation", "param_type_violations", "path", "path_traversal_detected", "path_traversal_severity", "path_traversal_type", "pattern_type", "phishing_detected", "pii_count", "pii_detected", "pii_score", "pii_types", "principal", "privilege_scope", "profanity_score", "request_id", "role", "rug_pull_detected", "rug_pull_score", "rug_pull_type", "script_confidence", "secret_count", "secret_types", "secrets_detected", "sentiment_score", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_max_sensitivity", "session_original_request", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "source", "sql_injection_detected", "sql_injection_score", "sql_injection_type", "suspicious_pattern", "threat_categories", "threat_count", "timestamp", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_poisoning_type", "tool_risk_score", "topic_confidence", "user_email", "violence_score", "weapons_score", "workspace_root"];
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
// Code generated by highflame-policy-codegen. DO NOT EDIT.
|
|
2
|
+
// Source: schemas/agent_ops/context.json
|
|
3
|
+
/**
|
|
4
|
+
* Context attribute keys for AgentOps AgentOps unified agent guardrail policy enforcement — superset of Guardrails, Overwatch, and AI Gateway.
|
|
5
|
+
*
|
|
6
|
+
* These constants correspond to the context attributes defined in the
|
|
7
|
+
* AgentOps Cedar schema and are used at policy evaluation time.
|
|
8
|
+
*/
|
|
9
|
+
export const AgentOpsContextKey = {
|
|
10
|
+
AgentFramework: 'agent_framework',
|
|
11
|
+
AgentId: 'agent_id',
|
|
12
|
+
AgentPublisher: 'agent_publisher',
|
|
13
|
+
AgentTrustLevel: 'agent_trust_level',
|
|
14
|
+
AgentType: 'agent_type',
|
|
15
|
+
BudgetExceeded: 'budget_exceeded',
|
|
16
|
+
BudgetRemainingPct: 'budget_remaining_pct',
|
|
17
|
+
CodeLanguages: 'code_languages',
|
|
18
|
+
CodeRatio: 'code_ratio',
|
|
19
|
+
CommandInjectionDetected: 'command_injection_detected',
|
|
20
|
+
CommandInjectionScore: 'command_injection_score',
|
|
21
|
+
CommandInjectionType: 'command_injection_type',
|
|
22
|
+
ContainsCode: 'contains_code',
|
|
23
|
+
ContainsNonAscii: 'contains_non_ascii',
|
|
24
|
+
ContentSafetyBlocked: 'content_safety_blocked',
|
|
25
|
+
ContentSafetyScore: 'content_safety_score',
|
|
26
|
+
ContentTopics: 'content_topics',
|
|
27
|
+
ContentType: 'content_type',
|
|
28
|
+
ConversationTurn: 'conversation_turn',
|
|
29
|
+
CrimeScore: 'crime_score',
|
|
30
|
+
CrossOriginDetected: 'cross_origin_detected',
|
|
31
|
+
CrossOriginScore: 'cross_origin_score',
|
|
32
|
+
CrossOriginType: 'cross_origin_type',
|
|
33
|
+
Cwd: 'cwd',
|
|
34
|
+
DetectedLanguage: 'detected_language',
|
|
35
|
+
DetectedScript: 'detected_script',
|
|
36
|
+
DetectedThreats: 'detected_threats',
|
|
37
|
+
DetectorCount: 'detector_count',
|
|
38
|
+
Direction: 'direction',
|
|
39
|
+
EncodedContentDetected: 'encoded_content_detected',
|
|
40
|
+
EncodedCount: 'encoded_count',
|
|
41
|
+
EncodedScore: 'encoded_score',
|
|
42
|
+
EncodedTypes: 'encoded_types',
|
|
43
|
+
Event: 'event',
|
|
44
|
+
FactualityScore: 'factuality_score',
|
|
45
|
+
HallucinationScore: 'hallucination_score',
|
|
46
|
+
HateSpeechScore: 'hate_speech_score',
|
|
47
|
+
HighestSeverity: 'highest_severity',
|
|
48
|
+
IdentityType: 'identity_type',
|
|
49
|
+
IndirectInjectionScore: 'indirect_injection_score',
|
|
50
|
+
IndirectInjectionType: 'indirect_injection_type',
|
|
51
|
+
InjectionDeepContextScore: 'injection_deep_context_score',
|
|
52
|
+
InjectionPulseScore: 'injection_pulse_score',
|
|
53
|
+
InjectionScore: 'injection_score',
|
|
54
|
+
InjectionType: 'injection_type',
|
|
55
|
+
InvisibleCharsDetected: 'invisible_chars_detected',
|
|
56
|
+
InvisibleCharsScore: 'invisible_chars_score',
|
|
57
|
+
IsEnglish: 'is_english',
|
|
58
|
+
IsLatinScript: 'is_latin_script',
|
|
59
|
+
JailbreakDeepContextScore: 'jailbreak_deep_context_score',
|
|
60
|
+
JailbreakPulseScore: 'jailbreak_pulse_score',
|
|
61
|
+
JailbreakScore: 'jailbreak_score',
|
|
62
|
+
KeywordCategories: 'keyword_categories',
|
|
63
|
+
KeywordCount: 'keyword_count',
|
|
64
|
+
KeywordMatched: 'keyword_matched',
|
|
65
|
+
LanguageConfidence: 'language_confidence',
|
|
66
|
+
LoopCount: 'loop_count',
|
|
67
|
+
LoopDetected: 'loop_detected',
|
|
68
|
+
LoopTool: 'loop_tool',
|
|
69
|
+
McpConfigRisk: 'mcp_config_risk',
|
|
70
|
+
McpRiskScore: 'mcp_risk_score',
|
|
71
|
+
McpRiskType: 'mcp_risk_type',
|
|
72
|
+
McpServer: 'mcp_server',
|
|
73
|
+
McpServerVerified: 'mcp_server_verified',
|
|
74
|
+
McpTool: 'mcp_tool',
|
|
75
|
+
ModelName: 'model_name',
|
|
76
|
+
ModelProvider: 'model_provider',
|
|
77
|
+
MultiTurnDetection: 'multi_turn_detection',
|
|
78
|
+
ParamTypeViolation: 'param_type_violation',
|
|
79
|
+
ParamTypeViolations: 'param_type_violations',
|
|
80
|
+
Path: 'path',
|
|
81
|
+
PathTraversalDetected: 'path_traversal_detected',
|
|
82
|
+
PathTraversalSeverity: 'path_traversal_severity',
|
|
83
|
+
PathTraversalType: 'path_traversal_type',
|
|
84
|
+
PatternType: 'pattern_type',
|
|
85
|
+
PhishingDetected: 'phishing_detected',
|
|
86
|
+
PiiCount: 'pii_count',
|
|
87
|
+
PiiDetected: 'pii_detected',
|
|
88
|
+
PiiScore: 'pii_score',
|
|
89
|
+
PiiTypes: 'pii_types',
|
|
90
|
+
Principal: 'principal',
|
|
91
|
+
PrivilegeScope: 'privilege_scope',
|
|
92
|
+
ProfanityScore: 'profanity_score',
|
|
93
|
+
RequestId: 'request_id',
|
|
94
|
+
Role: 'role',
|
|
95
|
+
RugPullDetected: 'rug_pull_detected',
|
|
96
|
+
RugPullScore: 'rug_pull_score',
|
|
97
|
+
RugPullType: 'rug_pull_type',
|
|
98
|
+
ScriptConfidence: 'script_confidence',
|
|
99
|
+
SecretCount: 'secret_count',
|
|
100
|
+
SecretTypes: 'secret_types',
|
|
101
|
+
SecretsDetected: 'secrets_detected',
|
|
102
|
+
SentimentScore: 'sentiment_score',
|
|
103
|
+
SequenceRisk: 'sequence_risk',
|
|
104
|
+
SessionCommandInjection: 'session_command_injection',
|
|
105
|
+
SessionCumulativeRiskScore: 'session_cumulative_risk_score',
|
|
106
|
+
SessionInjectionDetected: 'session_injection_detected',
|
|
107
|
+
SessionMaxCommandInjectionScore: 'session_max_command_injection_score',
|
|
108
|
+
SessionMaxInjectionScore: 'session_max_injection_score',
|
|
109
|
+
SessionMaxJailbreakScore: 'session_max_jailbreak_score',
|
|
110
|
+
SessionMaxPiiScore: 'session_max_pii_score',
|
|
111
|
+
SessionMaxSecretScore: 'session_max_secret_score',
|
|
112
|
+
SessionMaxSensitivity: 'session_max_sensitivity',
|
|
113
|
+
SessionOriginalRequest: 'session_original_request',
|
|
114
|
+
SessionPiiDetected: 'session_pii_detected',
|
|
115
|
+
SessionPiiTypes: 'session_pii_types',
|
|
116
|
+
SessionSecretTypes: 'session_secret_types',
|
|
117
|
+
SessionSecretsDetected: 'session_secrets_detected',
|
|
118
|
+
SessionThreatTurns: 'session_threat_turns',
|
|
119
|
+
SexualScore: 'sexual_score',
|
|
120
|
+
Source: 'source',
|
|
121
|
+
SqlInjectionDetected: 'sql_injection_detected',
|
|
122
|
+
SqlInjectionScore: 'sql_injection_score',
|
|
123
|
+
SqlInjectionType: 'sql_injection_type',
|
|
124
|
+
SuspiciousPattern: 'suspicious_pattern',
|
|
125
|
+
ThreatCategories: 'threat_categories',
|
|
126
|
+
ThreatCount: 'threat_count',
|
|
127
|
+
Timestamp: 'timestamp',
|
|
128
|
+
ToolCategory: 'tool_category',
|
|
129
|
+
ToolIsBuiltin: 'tool_is_builtin',
|
|
130
|
+
ToolIsSensitive: 'tool_is_sensitive',
|
|
131
|
+
ToolName: 'tool_name',
|
|
132
|
+
ToolOperationClasses: 'tool_operation_classes',
|
|
133
|
+
ToolPoisoningDetected: 'tool_poisoning_detected',
|
|
134
|
+
ToolPoisoningScore: 'tool_poisoning_score',
|
|
135
|
+
ToolPoisoningType: 'tool_poisoning_type',
|
|
136
|
+
ToolRiskScore: 'tool_risk_score',
|
|
137
|
+
TopicConfidence: 'topic_confidence',
|
|
138
|
+
UserEmail: 'user_email',
|
|
139
|
+
ViolenceScore: 'violence_score',
|
|
140
|
+
WeaponsScore: 'weapons_score',
|
|
141
|
+
WorkspaceRoot: 'workspace_root',
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* The full set of authorable context attribute keys for AgentOps.
|
|
145
|
+
* Iterate this to enumerate the authorable surface (cockpit, conformance).
|
|
146
|
+
*/
|
|
147
|
+
export const AgentOpsContextKeys = [
|
|
148
|
+
AgentOpsContextKey.AgentFramework,
|
|
149
|
+
AgentOpsContextKey.AgentId,
|
|
150
|
+
AgentOpsContextKey.AgentPublisher,
|
|
151
|
+
AgentOpsContextKey.AgentTrustLevel,
|
|
152
|
+
AgentOpsContextKey.AgentType,
|
|
153
|
+
AgentOpsContextKey.BudgetExceeded,
|
|
154
|
+
AgentOpsContextKey.BudgetRemainingPct,
|
|
155
|
+
AgentOpsContextKey.CodeLanguages,
|
|
156
|
+
AgentOpsContextKey.CodeRatio,
|
|
157
|
+
AgentOpsContextKey.CommandInjectionDetected,
|
|
158
|
+
AgentOpsContextKey.CommandInjectionScore,
|
|
159
|
+
AgentOpsContextKey.CommandInjectionType,
|
|
160
|
+
AgentOpsContextKey.ContainsCode,
|
|
161
|
+
AgentOpsContextKey.ContainsNonAscii,
|
|
162
|
+
AgentOpsContextKey.ContentSafetyBlocked,
|
|
163
|
+
AgentOpsContextKey.ContentSafetyScore,
|
|
164
|
+
AgentOpsContextKey.ContentTopics,
|
|
165
|
+
AgentOpsContextKey.ContentType,
|
|
166
|
+
AgentOpsContextKey.ConversationTurn,
|
|
167
|
+
AgentOpsContextKey.CrimeScore,
|
|
168
|
+
AgentOpsContextKey.CrossOriginDetected,
|
|
169
|
+
AgentOpsContextKey.CrossOriginScore,
|
|
170
|
+
AgentOpsContextKey.CrossOriginType,
|
|
171
|
+
AgentOpsContextKey.Cwd,
|
|
172
|
+
AgentOpsContextKey.DetectedLanguage,
|
|
173
|
+
AgentOpsContextKey.DetectedScript,
|
|
174
|
+
AgentOpsContextKey.DetectedThreats,
|
|
175
|
+
AgentOpsContextKey.DetectorCount,
|
|
176
|
+
AgentOpsContextKey.Direction,
|
|
177
|
+
AgentOpsContextKey.EncodedContentDetected,
|
|
178
|
+
AgentOpsContextKey.EncodedCount,
|
|
179
|
+
AgentOpsContextKey.EncodedScore,
|
|
180
|
+
AgentOpsContextKey.EncodedTypes,
|
|
181
|
+
AgentOpsContextKey.Event,
|
|
182
|
+
AgentOpsContextKey.FactualityScore,
|
|
183
|
+
AgentOpsContextKey.HallucinationScore,
|
|
184
|
+
AgentOpsContextKey.HateSpeechScore,
|
|
185
|
+
AgentOpsContextKey.HighestSeverity,
|
|
186
|
+
AgentOpsContextKey.IdentityType,
|
|
187
|
+
AgentOpsContextKey.IndirectInjectionScore,
|
|
188
|
+
AgentOpsContextKey.IndirectInjectionType,
|
|
189
|
+
AgentOpsContextKey.InjectionDeepContextScore,
|
|
190
|
+
AgentOpsContextKey.InjectionPulseScore,
|
|
191
|
+
AgentOpsContextKey.InjectionScore,
|
|
192
|
+
AgentOpsContextKey.InjectionType,
|
|
193
|
+
AgentOpsContextKey.InvisibleCharsDetected,
|
|
194
|
+
AgentOpsContextKey.InvisibleCharsScore,
|
|
195
|
+
AgentOpsContextKey.IsEnglish,
|
|
196
|
+
AgentOpsContextKey.IsLatinScript,
|
|
197
|
+
AgentOpsContextKey.JailbreakDeepContextScore,
|
|
198
|
+
AgentOpsContextKey.JailbreakPulseScore,
|
|
199
|
+
AgentOpsContextKey.JailbreakScore,
|
|
200
|
+
AgentOpsContextKey.KeywordCategories,
|
|
201
|
+
AgentOpsContextKey.KeywordCount,
|
|
202
|
+
AgentOpsContextKey.KeywordMatched,
|
|
203
|
+
AgentOpsContextKey.LanguageConfidence,
|
|
204
|
+
AgentOpsContextKey.LoopCount,
|
|
205
|
+
AgentOpsContextKey.LoopDetected,
|
|
206
|
+
AgentOpsContextKey.LoopTool,
|
|
207
|
+
AgentOpsContextKey.McpConfigRisk,
|
|
208
|
+
AgentOpsContextKey.McpRiskScore,
|
|
209
|
+
AgentOpsContextKey.McpRiskType,
|
|
210
|
+
AgentOpsContextKey.McpServer,
|
|
211
|
+
AgentOpsContextKey.McpServerVerified,
|
|
212
|
+
AgentOpsContextKey.McpTool,
|
|
213
|
+
AgentOpsContextKey.ModelName,
|
|
214
|
+
AgentOpsContextKey.ModelProvider,
|
|
215
|
+
AgentOpsContextKey.MultiTurnDetection,
|
|
216
|
+
AgentOpsContextKey.ParamTypeViolation,
|
|
217
|
+
AgentOpsContextKey.ParamTypeViolations,
|
|
218
|
+
AgentOpsContextKey.Path,
|
|
219
|
+
AgentOpsContextKey.PathTraversalDetected,
|
|
220
|
+
AgentOpsContextKey.PathTraversalSeverity,
|
|
221
|
+
AgentOpsContextKey.PathTraversalType,
|
|
222
|
+
AgentOpsContextKey.PatternType,
|
|
223
|
+
AgentOpsContextKey.PhishingDetected,
|
|
224
|
+
AgentOpsContextKey.PiiCount,
|
|
225
|
+
AgentOpsContextKey.PiiDetected,
|
|
226
|
+
AgentOpsContextKey.PiiScore,
|
|
227
|
+
AgentOpsContextKey.PiiTypes,
|
|
228
|
+
AgentOpsContextKey.Principal,
|
|
229
|
+
AgentOpsContextKey.PrivilegeScope,
|
|
230
|
+
AgentOpsContextKey.ProfanityScore,
|
|
231
|
+
AgentOpsContextKey.RequestId,
|
|
232
|
+
AgentOpsContextKey.Role,
|
|
233
|
+
AgentOpsContextKey.RugPullDetected,
|
|
234
|
+
AgentOpsContextKey.RugPullScore,
|
|
235
|
+
AgentOpsContextKey.RugPullType,
|
|
236
|
+
AgentOpsContextKey.ScriptConfidence,
|
|
237
|
+
AgentOpsContextKey.SecretCount,
|
|
238
|
+
AgentOpsContextKey.SecretTypes,
|
|
239
|
+
AgentOpsContextKey.SecretsDetected,
|
|
240
|
+
AgentOpsContextKey.SentimentScore,
|
|
241
|
+
AgentOpsContextKey.SequenceRisk,
|
|
242
|
+
AgentOpsContextKey.SessionCommandInjection,
|
|
243
|
+
AgentOpsContextKey.SessionCumulativeRiskScore,
|
|
244
|
+
AgentOpsContextKey.SessionInjectionDetected,
|
|
245
|
+
AgentOpsContextKey.SessionMaxCommandInjectionScore,
|
|
246
|
+
AgentOpsContextKey.SessionMaxInjectionScore,
|
|
247
|
+
AgentOpsContextKey.SessionMaxJailbreakScore,
|
|
248
|
+
AgentOpsContextKey.SessionMaxPiiScore,
|
|
249
|
+
AgentOpsContextKey.SessionMaxSecretScore,
|
|
250
|
+
AgentOpsContextKey.SessionMaxSensitivity,
|
|
251
|
+
AgentOpsContextKey.SessionOriginalRequest,
|
|
252
|
+
AgentOpsContextKey.SessionPiiDetected,
|
|
253
|
+
AgentOpsContextKey.SessionPiiTypes,
|
|
254
|
+
AgentOpsContextKey.SessionSecretTypes,
|
|
255
|
+
AgentOpsContextKey.SessionSecretsDetected,
|
|
256
|
+
AgentOpsContextKey.SessionThreatTurns,
|
|
257
|
+
AgentOpsContextKey.SexualScore,
|
|
258
|
+
AgentOpsContextKey.Source,
|
|
259
|
+
AgentOpsContextKey.SqlInjectionDetected,
|
|
260
|
+
AgentOpsContextKey.SqlInjectionScore,
|
|
261
|
+
AgentOpsContextKey.SqlInjectionType,
|
|
262
|
+
AgentOpsContextKey.SuspiciousPattern,
|
|
263
|
+
AgentOpsContextKey.ThreatCategories,
|
|
264
|
+
AgentOpsContextKey.ThreatCount,
|
|
265
|
+
AgentOpsContextKey.Timestamp,
|
|
266
|
+
AgentOpsContextKey.ToolCategory,
|
|
267
|
+
AgentOpsContextKey.ToolIsBuiltin,
|
|
268
|
+
AgentOpsContextKey.ToolIsSensitive,
|
|
269
|
+
AgentOpsContextKey.ToolName,
|
|
270
|
+
AgentOpsContextKey.ToolOperationClasses,
|
|
271
|
+
AgentOpsContextKey.ToolPoisoningDetected,
|
|
272
|
+
AgentOpsContextKey.ToolPoisoningScore,
|
|
273
|
+
AgentOpsContextKey.ToolPoisoningType,
|
|
274
|
+
AgentOpsContextKey.ToolRiskScore,
|
|
275
|
+
AgentOpsContextKey.TopicConfidence,
|
|
276
|
+
AgentOpsContextKey.UserEmail,
|
|
277
|
+
AgentOpsContextKey.ViolenceScore,
|
|
278
|
+
AgentOpsContextKey.WeaponsScore,
|
|
279
|
+
AgentOpsContextKey.WorkspaceRoot,
|
|
280
|
+
];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentOps policy category identifiers.
|
|
3
|
+
* Maps to UI tab names in Studio.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentOpsCategory = 'threat-detection' | 'data-protection' | 'agent-security' | 'tool-permissioning' | 'code-security' | 'content-safety' | 'organization';
|
|
6
|
+
/**
|
|
7
|
+
* Category metadata for UI display.
|
|
8
|
+
*/
|
|
9
|
+
export interface AgentOpsCategoryInfo {
|
|
10
|
+
id: AgentOpsCategory;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A default policy that is auto-created for new projects.
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentOpsDefaultPolicy {
|
|
18
|
+
/** Template identifier */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Human-readable name */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Description for UI display */
|
|
23
|
+
description: string;
|
|
24
|
+
/** Policy category */
|
|
25
|
+
category: AgentOpsCategory;
|
|
26
|
+
/** Cedar policy text (source of truth) */
|
|
27
|
+
cedarText: string;
|
|
28
|
+
/** Severity level */
|
|
29
|
+
severity: string;
|
|
30
|
+
/** Tags for filtering */
|
|
31
|
+
tags: string[];
|
|
32
|
+
/** Whether this default should be activated immediately */
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A policy template available for users to create from.
|
|
37
|
+
*/
|
|
38
|
+
export interface AgentOpsTemplate {
|
|
39
|
+
/** Template identifier */
|
|
40
|
+
id: string;
|
|
41
|
+
/** Human-readable name */
|
|
42
|
+
name: string;
|
|
43
|
+
/** Description for UI display */
|
|
44
|
+
description: string;
|
|
45
|
+
/** Policy category */
|
|
46
|
+
category: AgentOpsCategory;
|
|
47
|
+
/** Cedar policy text */
|
|
48
|
+
cedarText: string;
|
|
49
|
+
/** Severity level */
|
|
50
|
+
severity: string;
|
|
51
|
+
/** Tags for filtering */
|
|
52
|
+
tags: string[];
|
|
53
|
+
/** True when ensure-defaults should auto-seed this template at
|
|
54
|
+
* project creation. See schemas/*\/templates.json. Defaults to false. */
|
|
55
|
+
autoDeploy?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare const AGENT_OPS_CATEGORIES: AgentOpsCategoryInfo[];
|
|
58
|
+
export declare const AGENT_OPS_DEFAULTS: AgentOpsDefaultPolicy[];
|
|
59
|
+
export declare const AGENT_OPS_TEMPLATES: AgentOpsTemplate[];
|
|
60
|
+
/** Raw templates.json metadata for the AgentOps service. */
|
|
61
|
+
export declare const AGENT_OPS_TEMPLATES_JSON: string;
|
|
62
|
+
export declare function getAgentOpsDefaultsByCategory(category: AgentOpsCategory): AgentOpsDefaultPolicy[];
|
|
63
|
+
export declare function getAgentOpsTemplatesByCategory(category: AgentOpsCategory): AgentOpsTemplate[];
|
|
64
|
+
export declare function getAgentOpsTemplateById(id: string): AgentOpsTemplate | undefined;
|