@orangecheck/agent-core / isSubScope
Function: isSubScope()
function isSubScope(exercised: Scope, granted: Scope): boolean;
Defined in: agent-core/src/scope.ts:268
Is exercised a sub-scope of granted?
Returns true iff every constraint of granted admits the corresponding constraint
(or absence) in exercised, per SPEC §7.4.
Parameters
| Parameter | Type |
|---|---|
exercised | Scope |
granted | Scope |
Returns
boolean