Make the CEO the grant authority: implicit all-access, agent-tool grants, no manual assignment UI

This commit is contained in:
ZacharyZhang-NY committed 2026-07-07 11:24:28 -04:00
1 parent 934fa71486
commit defe8f12b1
15 files changed
+327 -190

No files matched your search

+2 -1
View File
@@ -83,7 +83,8 @@ describe("connector grants", () => {
const grants = new ConnectorGrantsService(h.connection.db);
expect(grants.toolkitsForAgent(h.orgId, h.danaId)).toEqual(["github"]);
expect(grants.toolkitsForAgent(h.orgId, h.ceoId)).toEqual([]);
// The CEO holds every active connection by role, without a grant row.
expect(grants.toolkitsForAgent(h.orgId, h.ceoId)).toEqual(["github"]);
const listing = dispatchAgentTool(h.deps, h.danaCtx, call("list_connectors", {}));
expect(listing).toContain("GitHub (github): granted to Dana");