Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/security / / RuleOfTwoCompilation
Interface: RuleOfTwoCompilation
Defined in: packages/security/src/policy/tool-argument-policy.ts:139
Result of compiling a Rule-of-Two profile.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
capability? | readonly | "read-only" | The capability floor: 'read-only' when the profile denies external side effects (so the agent runtime's capability gate blocks writer tools too), else undefined. | packages/security/src/policy/tool-argument-policy.ts:147 |
heldLegs | readonly | readonly TrifectaLeg[] | The legs the profile holds - > 2 is flagged unsafe. | packages/security/src/policy/tool-argument-policy.ts:149 |
holdsFullTrifecta | readonly | boolean | true when the profile holds all three legs (the dangerous case). | packages/security/src/policy/tool-argument-policy.ts:151 |
policy | readonly | ToolArgumentPolicy | The tool-argument policy enforcing the profile at call time. | packages/security/src/policy/tool-argument-policy.ts:141 |