Skip to content

Commit 78c32a4

Browse files
committed
Remove stale authz plugin mock and correct grant-owner comment
1 parent 7379e61 commit 78c32a4

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

src/permission/authz-grants.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
104107
export async function approvalCoversSubject(
105108
input: EvaluateApprovalsInput,

tests/unit/tui/agent-tools.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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-
10093
await withMockedModule(
10194
import.meta.resolve("../../../src/plugins/verify-plugin.js"),
10295
() => ({

0 commit comments

Comments
 (0)