Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/security / / RuleOfTwoCompilation

Interface: RuleOfTwoCompilation

Defined in: packages/security/src/policy/tool-argument-policy.ts:259

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