File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,9 +97,12 @@ export interface EvaluateApprovalsInput {
9797 workspace : GrantWorkspace ;
9898}
9999
100- // Single grant-evaluation owner: both the queued-request path
101- // (isRequestCoveredByGrant) and the shell per-segment path decide coverage
102- // through this function, so the two never drift. Fail-closed throughout:
100+ // Grant-evaluation owner for the live decide() path: the shell per-segment
101+ // checks and the path-arg check inside decide() resolve coverage through this
102+ // function. The queued-request reconciliation path (isRequestCoveredByApprovals
103+ // in gate.ts) matches inline against the same scope helper and pattern
104+ // matcher instead of calling here, so keep the two in sync when changing
105+ // matching semantics. Fail-closed throughout:
103106// unknown tools, unknown runners, and empty grant lists all refuse.
104107export async function approvalCoversSubject (
105108 input : EvaluateApprovalsInput ,
Original file line number Diff line number Diff line change @@ -90,13 +90,6 @@ await withMockedModule(
9090 } ) ,
9191) ;
9292
93- await withMockedModule (
94- import . meta. resolve ( "../../../src/plugins/authz-plugin.js" ) ,
95- ( ) => ( {
96- authzPlugin : ( ) => ( { } ) ,
97- } ) ,
98- ) ;
99-
10093await withMockedModule (
10194 import . meta. resolve ( "../../../src/plugins/verify-plugin.js" ) ,
10295 ( ) => ( {
You can’t perform that action at this time.
0 commit comments