Skip to content

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

PropertyModifierTypeDescriptionDefined 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
heldLegsreadonlyreadonly TrifectaLeg[]The legs the profile holds - > 2 is flagged unsafe.packages/security/src/policy/tool-argument-policy.ts:149
holdsFullTrifectareadonlybooleantrue when the profile holds all three legs (the dangerous case).packages/security/src/policy/tool-argument-policy.ts:151
policyreadonlyToolArgumentPolicyThe tool-argument policy enforcing the profile at call time.packages/security/src/policy/tool-argument-policy.ts:141