@highflame/policy 2.2.42 → 2.2.43
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 +0 -42
- package/_schemas/agent_ops/schema.cedarschema +44 -6
- package/_schemas/guardrails/context.json +0 -36
- package/_schemas/guardrails/detectors.json +0 -1
- package/_schemas/guardrails/schema.cedarschema +43 -5
- package/_schemas/guardrails/templates/dual_attribution.cedar +110 -0
- package/_schemas/guardrails/templates/multi_turn_trajectory.cedar +116 -0
- package/_schemas/guardrails/templates/session_risk_accumulation.cedar +103 -0
- package/_schemas/guardrails/templates/templates.json +50 -0
- package/dist/agent_ops-context.gen.d.ts +1 -2
- package/dist/agent_ops-context.gen.js +0 -2
- package/dist/guardrails-context.gen.d.ts +1 -2
- package/dist/guardrails-context.gen.js +0 -2
- package/dist/guardrails-defaults.gen.js +409 -0
- package/dist/parser.d.ts +2 -1
- package/dist/parser.js +124 -37
- package/dist/service-schemas.gen.d.ts +2 -2
- package/dist/service-schemas.gen.js +87 -24
- package/package.json +1 -1
|
@@ -140,6 +140,44 @@ namespace AgentOps {
|
|
|
140
140
|
// Context Types (Action-Specific)
|
|
141
141
|
// =========================================================================
|
|
142
142
|
|
|
143
|
+
/// The ZeroID NHI principal block (ADR 0009 / CAP-IDN-011).
|
|
144
|
+
///
|
|
145
|
+
/// A record, not a string: Shield projects the whole identity block under
|
|
146
|
+
/// \`context.principal\`, so policies read members off it —
|
|
147
|
+
///
|
|
148
|
+
/// permit ... when { context has principal &&
|
|
149
|
+
/// context.principal.trust_level == "first_party" };
|
|
150
|
+
/// forbid ... unless { context has principal &&
|
|
151
|
+
/// context.principal has act_sub };
|
|
152
|
+
///
|
|
153
|
+
/// Declared once and shared by every action context so a new member cannot
|
|
154
|
+
/// land on one action and go missing on another.
|
|
155
|
+
///
|
|
156
|
+
/// \`act\` (RFC 8693 delegation) is flattened to \`act_sub\` / \`act_iss\`
|
|
157
|
+
/// because Cedar records are flat key/value at each level; the full
|
|
158
|
+
/// delegation tree is reconstructable audit-side by joining on \`mission_id\`.
|
|
159
|
+
///
|
|
160
|
+
/// Every member is optional except \`delegation_depth\`: the projector omits
|
|
161
|
+
/// a field whose value is empty, but always emits the depth because zero is
|
|
162
|
+
/// the meaningful base case for a direct (non-delegated) token. The record
|
|
163
|
+
/// itself is optional — it is absent, not empty, when the request carries no
|
|
164
|
+
/// NHI claims (RS256 human tokens, internal-service callers), so
|
|
165
|
+
/// \`context has principal\` is false rather than true-but-empty.
|
|
166
|
+
type PrincipalContext = {
|
|
167
|
+
"identity_type"?: String, // "human" | "agent" | "service" | "mcp_server"
|
|
168
|
+
"sub_type"?: String, // Identity subtype (e.g. "coding_agent")
|
|
169
|
+
"trust_level"?: String, // "first_party" | "verified" | "unverified"
|
|
170
|
+
"framework"?: String, // Agent framework (e.g. "langchain")
|
|
171
|
+
"publisher"?: String, // Agent publisher
|
|
172
|
+
"capabilities"?: Set<String>, // Capabilities granted to the identity
|
|
173
|
+
"scopes"?: Set<String>, // OAuth scopes carried by the token
|
|
174
|
+
"delegation_depth": Long, // Delegation hops; 0 for a direct token
|
|
175
|
+
"act_sub"?: String, // RFC 8693 actor — the accountable human
|
|
176
|
+
"act_iss"?: String, // Issuer of the actor claim
|
|
177
|
+
"mission_id"?: String, // Correlates one delegation tree
|
|
178
|
+
"grant_type"?: String, // How the token was obtained (e.g. "api_key")
|
|
179
|
+
};
|
|
180
|
+
|
|
143
181
|
/// Context for the process_response action.
|
|
144
182
|
///
|
|
145
183
|
/// An alias, not a copy: prompts and responses are inspected by the same
|
|
@@ -154,7 +192,7 @@ namespace AgentOps {
|
|
|
154
192
|
"role"?: String,
|
|
155
193
|
"privilege_scope"?: Set<String>,
|
|
156
194
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service" | "mcp_server"
|
|
157
|
-
"principal"?:
|
|
195
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
158
196
|
// Core metadata (required)
|
|
159
197
|
"request_id": String,
|
|
160
198
|
"timestamp": Long,
|
|
@@ -349,7 +387,7 @@ namespace AgentOps {
|
|
|
349
387
|
"role"?: String,
|
|
350
388
|
"privilege_scope"?: Set<String>,
|
|
351
389
|
"identity_type"?: String,
|
|
352
|
-
"principal"?:
|
|
390
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
353
391
|
// Core metadata (required)
|
|
354
392
|
"request_id": String,
|
|
355
393
|
"timestamp": Long,
|
|
@@ -560,7 +598,7 @@ namespace AgentOps {
|
|
|
560
598
|
"role"?: String,
|
|
561
599
|
"privilege_scope"?: Set<String>,
|
|
562
600
|
"identity_type"?: String,
|
|
563
|
-
"principal"?:
|
|
601
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
564
602
|
// Core metadata (required)
|
|
565
603
|
"request_id": String,
|
|
566
604
|
"timestamp": Long,
|
|
@@ -668,7 +706,7 @@ namespace AgentOps {
|
|
|
668
706
|
"role"?: String,
|
|
669
707
|
"privilege_scope"?: Set<String>,
|
|
670
708
|
"identity_type"?: String,
|
|
671
|
-
"principal"?:
|
|
709
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
672
710
|
// Core metadata (required)
|
|
673
711
|
"request_id": String,
|
|
674
712
|
"timestamp": Long,
|
|
@@ -780,7 +818,7 @@ namespace AgentOps {
|
|
|
780
818
|
"role"?: String,
|
|
781
819
|
"privilege_scope"?: Set<String>,
|
|
782
820
|
"identity_type"?: String,
|
|
783
|
-
"principal"?:
|
|
821
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
784
822
|
// Core metadata (required)
|
|
785
823
|
"request_id": String,
|
|
786
824
|
"timestamp": Long,
|
|
@@ -913,7 +951,7 @@ namespace AgentOps {
|
|
|
913
951
|
"role"?: String,
|
|
914
952
|
"privilege_scope"?: Set<String>,
|
|
915
953
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service" | "mcp_server"
|
|
916
|
-
"principal"?:
|
|
954
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
917
955
|
"agent_trust_level"?: String, // "untrusted" | "low" | "verified" | "trusted"
|
|
918
956
|
|
|
919
957
|
// Core metadata (required)
|
|
@@ -1687,6 +1725,44 @@ namespace Guardrails {
|
|
|
1687
1725
|
// Context Types (Action-Specific)
|
|
1688
1726
|
// =========================================================================
|
|
1689
1727
|
|
|
1728
|
+
/// The ZeroID NHI principal block (ADR 0009 / CAP-IDN-011).
|
|
1729
|
+
///
|
|
1730
|
+
/// A record, not a string: Shield projects the whole identity block under
|
|
1731
|
+
/// \`context.principal\`, so policies read members off it —
|
|
1732
|
+
///
|
|
1733
|
+
/// permit ... when { context has principal &&
|
|
1734
|
+
/// context.principal.trust_level == "first_party" };
|
|
1735
|
+
/// forbid ... unless { context has principal &&
|
|
1736
|
+
/// context.principal has act_sub };
|
|
1737
|
+
///
|
|
1738
|
+
/// Declared once and shared by every action context so a new member cannot
|
|
1739
|
+
/// land on one action and go missing on another.
|
|
1740
|
+
///
|
|
1741
|
+
/// \`act\` (RFC 8693 delegation) is flattened to \`act_sub\` / \`act_iss\`
|
|
1742
|
+
/// because Cedar records are flat key/value at each level; the full
|
|
1743
|
+
/// delegation tree is reconstructable audit-side by joining on \`mission_id\`.
|
|
1744
|
+
///
|
|
1745
|
+
/// Every member is optional except \`delegation_depth\`: the projector omits
|
|
1746
|
+
/// a field whose value is empty, but always emits the depth because zero is
|
|
1747
|
+
/// the meaningful base case for a direct (non-delegated) token. The record
|
|
1748
|
+
/// itself is optional — it is absent, not empty, when the request carries no
|
|
1749
|
+
/// NHI claims (RS256 human tokens, internal-service callers), so
|
|
1750
|
+
/// \`context has principal\` is false rather than true-but-empty.
|
|
1751
|
+
type PrincipalContext = {
|
|
1752
|
+
"identity_type"?: String, // "human" | "agent" | "service"
|
|
1753
|
+
"sub_type"?: String, // Identity subtype (e.g. "coding_agent")
|
|
1754
|
+
"trust_level"?: String, // "first_party" | "verified" | "unverified"
|
|
1755
|
+
"framework"?: String, // Agent framework (e.g. "langchain")
|
|
1756
|
+
"publisher"?: String, // Agent publisher
|
|
1757
|
+
"capabilities"?: Set<String>, // Capabilities granted to the identity
|
|
1758
|
+
"scopes"?: Set<String>, // OAuth scopes carried by the token
|
|
1759
|
+
"delegation_depth": Long, // Delegation hops; 0 for a direct token
|
|
1760
|
+
"act_sub"?: String, // RFC 8693 actor — the accountable human
|
|
1761
|
+
"act_iss"?: String, // Issuer of the actor claim
|
|
1762
|
+
"mission_id"?: String, // Correlates one delegation tree
|
|
1763
|
+
"grant_type"?: String, // How the token was obtained (e.g. "api_key")
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1690
1766
|
/// Context for the process_response action.
|
|
1691
1767
|
///
|
|
1692
1768
|
/// An alias, not a copy: prompts and responses are inspected by the same
|
|
@@ -1703,7 +1779,7 @@ namespace Guardrails {
|
|
|
1703
1779
|
"role"?: String,
|
|
1704
1780
|
"privilege_scope"?: Set<String>,
|
|
1705
1781
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service"
|
|
1706
|
-
"principal"?:
|
|
1782
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
1707
1783
|
// Core metadata (required)
|
|
1708
1784
|
"request_id": String,
|
|
1709
1785
|
"timestamp": Long,
|
|
@@ -1855,7 +1931,7 @@ namespace Guardrails {
|
|
|
1855
1931
|
"role"?: String,
|
|
1856
1932
|
"privilege_scope"?: Set<String>,
|
|
1857
1933
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service"
|
|
1858
|
-
"principal"?:
|
|
1934
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
1859
1935
|
// Core metadata (required)
|
|
1860
1936
|
"request_id": String,
|
|
1861
1937
|
"timestamp": Long,
|
|
@@ -2051,7 +2127,7 @@ namespace Guardrails {
|
|
|
2051
2127
|
"role"?: String,
|
|
2052
2128
|
"privilege_scope"?: Set<String>,
|
|
2053
2129
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service"
|
|
2054
|
-
"principal"?:
|
|
2130
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
2055
2131
|
// Core metadata (required)
|
|
2056
2132
|
"request_id": String,
|
|
2057
2133
|
"timestamp": Long,
|
|
@@ -2124,7 +2200,7 @@ namespace Guardrails {
|
|
|
2124
2200
|
"role"?: String,
|
|
2125
2201
|
"privilege_scope"?: Set<String>,
|
|
2126
2202
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service"
|
|
2127
|
-
"principal"?:
|
|
2203
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
2128
2204
|
// Core metadata (required)
|
|
2129
2205
|
"request_id": String,
|
|
2130
2206
|
"timestamp": Long,
|
|
@@ -2201,7 +2277,7 @@ namespace Guardrails {
|
|
|
2201
2277
|
"role"?: String,
|
|
2202
2278
|
"privilege_scope"?: Set<String>,
|
|
2203
2279
|
"identity_type"?: String, // Principal identity class: "human" | "agent" | "service"
|
|
2204
|
-
"principal"?:
|
|
2280
|
+
"principal"?: PrincipalContext, // ZeroID NHI identity block; absent when the token carries no NHI claims
|
|
2205
2281
|
// Core metadata (required)
|
|
2206
2282
|
"request_id": String,
|
|
2207
2283
|
"timestamp": Long,
|
|
@@ -3470,7 +3546,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
3470
3546
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011)" },
|
|
3471
3547
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011)" },
|
|
3472
3548
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
3473
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id)" },
|
|
3474
3549
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request, useful for audit trails and debugging" },
|
|
3475
3550
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds when the request was processed" },
|
|
3476
3551
|
{ "key": "direction", "type": "string", "required": true, "description": "Content flow direction: \'input\' for user prompts, \'output\' for AI responses" },
|
|
@@ -3601,7 +3676,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
3601
3676
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011)" },
|
|
3602
3677
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011)" },
|
|
3603
3678
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
3604
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id)" },
|
|
3605
3679
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request, useful for audit trails and debugging" },
|
|
3606
3680
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds when the request was processed" },
|
|
3607
3681
|
{ "key": "direction", "type": "string", "required": true, "description": "Content flow direction: \'input\' for user prompts, \'output\' for AI responses" },
|
|
@@ -3732,7 +3806,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
3732
3806
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token" },
|
|
3733
3807
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller" },
|
|
3734
3808
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
3735
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier" },
|
|
3736
3809
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
3737
3810
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
3738
3811
|
{ "key": "source", "type": "string", "required": false, "description": "Traffic origin: \'ide\' | \'cli\' | \'api\' | \'browser\'" },
|
|
@@ -3860,7 +3933,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
3860
3933
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token" },
|
|
3861
3934
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller" },
|
|
3862
3935
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
3863
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier" },
|
|
3864
3936
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
3865
3937
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
3866
3938
|
{ "key": "source", "type": "string", "required": false, "description": "Traffic origin: \'ide\' | \'cli\' | \'api\' | \'browser\'" },
|
|
@@ -3927,7 +3999,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
3927
3999
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token" },
|
|
3928
4000
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller" },
|
|
3929
4001
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
3930
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier" },
|
|
3931
4002
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
3932
4003
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
3933
4004
|
{ "key": "source", "type": "string", "required": false, "description": "Traffic origin: \'ide\' | \'cli\' | \'api\' | \'browser\'" },
|
|
@@ -3996,7 +4067,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
3996
4067
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token" },
|
|
3997
4068
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller" },
|
|
3998
4069
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
3999
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier" },
|
|
4000
4070
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
4001
4071
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
4002
4072
|
{ "key": "source", "type": "string", "required": false, "description": "Traffic origin: \'ide\' | \'cli\' | \'api\' | \'browser\'" },
|
|
@@ -4069,7 +4139,6 @@ export const AGENT_OPS_CONTEXT = {
|
|
|
4069
4139
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token" },
|
|
4070
4140
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller" },
|
|
4071
4141
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class: \'human\', \'agent\', \'service\', or \'mcp_server\'" },
|
|
4072
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier (ZeroID / WIMSE URI or user id)" },
|
|
4073
4142
|
{ "key": "agent_trust_level", "type": "string", "required": false, "description": "Agent trust tier: \'untrusted\' | \'low\' | \'verified\' | \'trusted\'" },
|
|
4074
4143
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
4075
4144
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
@@ -4481,7 +4550,6 @@ export const GUARDRAILS_CONTEXT = {
|
|
|
4481
4550
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011), e.g. finance_lead. Absent when the token carries no role claim." },
|
|
4482
4551
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011), e.g. transfer:approve. Absent when the token carries no claim." },
|
|
4483
4552
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', or \'service\'. Use to apply identity-class-specific policies" },
|
|
4484
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id). Absent when the token carries no principal claim" },
|
|
4485
4553
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request, useful for audit trails and debugging" },
|
|
4486
4554
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds when the request was processed" },
|
|
4487
4555
|
{ "key": "direction", "type": "string", "required": true, "description": "Content flow direction: \'input\' for user prompts, \'output\' for AI responses. Use this to apply different policies to inputs vs outputs (e.g., block PII only in outputs)" },
|
|
@@ -4592,7 +4660,6 @@ export const GUARDRAILS_CONTEXT = {
|
|
|
4592
4660
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011), e.g. finance_lead. Absent when the token carries no role claim." },
|
|
4593
4661
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011), e.g. transfer:approve. Absent when the token carries no claim." },
|
|
4594
4662
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', or \'service\'. Use to apply identity-class-specific policies" },
|
|
4595
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id). Absent when the token carries no principal claim" },
|
|
4596
4663
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request, useful for audit trails and debugging" },
|
|
4597
4664
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds when the request was processed" },
|
|
4598
4665
|
{ "key": "direction", "type": "string", "required": true, "description": "Content flow direction: \'input\' for user prompts, \'output\' for AI responses. Use this to apply different policies to inputs vs outputs (e.g., block PII only in outputs)" },
|
|
@@ -4703,7 +4770,6 @@ export const GUARDRAILS_CONTEXT = {
|
|
|
4703
4770
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011), e.g. finance_lead. Absent when the token carries no role claim." },
|
|
4704
4771
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011), e.g. transfer:approve. Absent when the token carries no claim." },
|
|
4705
4772
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', or \'service\'. Use to apply identity-class-specific policies" },
|
|
4706
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id). Absent when the token carries no principal claim" },
|
|
4707
4773
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
4708
4774
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
4709
4775
|
{ "key": "tool_name", "type": "string", "required": false, "description": "Name of the tool being called (e.g., \'shell\', \'write_file\', \'http_post\'). Use this to block specific dangerous tools" },
|
|
@@ -4825,7 +4891,6 @@ export const GUARDRAILS_CONTEXT = {
|
|
|
4825
4891
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011), e.g. finance_lead. Absent when the token carries no role claim." },
|
|
4826
4892
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011), e.g. transfer:approve. Absent when the token carries no claim." },
|
|
4827
4893
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', or \'service\'. Use to apply identity-class-specific policies" },
|
|
4828
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id). Absent when the token carries no principal claim" },
|
|
4829
4894
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
4830
4895
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
4831
4896
|
{ "key": "path", "type": "string", "required": false, "description": "File path being read. Use for path-based access control policies (e.g., block .env files, system directories, credential directories)" },
|
|
@@ -4870,7 +4935,6 @@ export const GUARDRAILS_CONTEXT = {
|
|
|
4870
4935
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011), e.g. finance_lead. Absent when the token carries no role claim." },
|
|
4871
4936
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011), e.g. transfer:approve. Absent when the token carries no claim." },
|
|
4872
4937
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', or \'service\'. Use to apply identity-class-specific policies" },
|
|
4873
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id). Absent when the token carries no principal claim" },
|
|
4874
4938
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
4875
4939
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
4876
4940
|
{ "key": "path", "type": "string", "required": false, "description": "File path being written. Use for path-based blocking policies (e.g., block writes to .env files, credential directories)" },
|
|
@@ -4917,7 +4981,6 @@ export const GUARDRAILS_CONTEXT = {
|
|
|
4917
4981
|
{ "key": "role", "type": "string", "required": false, "description": "Caller\'s RBAC role projected from the principal\'s token (AARM R6 / CAP-IDN-011), e.g. finance_lead. Absent when the token carries no role claim." },
|
|
4918
4982
|
{ "key": "privilege_scope", "type": "array", "required": false, "description": "Privilege-scope strings granted to the caller, projected from the token (AARM R6 / CAP-IDN-011), e.g. transfer:approve. Absent when the token carries no claim." },
|
|
4919
4983
|
{ "key": "identity_type", "type": "string", "required": false, "description": "Principal identity class projected from the token: \'human\', \'agent\', or \'service\'. Use to apply identity-class-specific policies" },
|
|
4920
|
-
{ "key": "principal", "type": "string", "required": false, "description": "Stable principal identifier projected from the token (e.g. a ZeroID / WIMSE URI or user id). Absent when the token carries no principal claim" },
|
|
4921
4984
|
{ "key": "request_id", "type": "string", "required": true, "description": "Unique identifier for this request" },
|
|
4922
4985
|
{ "key": "timestamp", "type": "number", "required": true, "description": "Unix timestamp in milliseconds" },
|
|
4923
4986
|
{ "key": "mcp_server", "type": "string", "required": false, "description": "Name of the MCP server being connected to (e.g., \'github\', \'filesystem\', \'slack\'). Use this to allow or block specific MCP servers" },
|