Skip to content

Commit f3e3b13

Browse files
committed
test(spec): the effective-access example lists an everyone-bound set in the position-bound slot, before derived names
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b12e79a commit f3e3b13

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/spec/src/contracts/security-service.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,10 +817,12 @@ describe('Security Service Contract', () => {
817817
organizationId: 'org_1',
818818
positions: ['org_member', 'sales_rep', 'everyone'],
819819
// The resolver's order: grant rows, position-bound sets, derived names, the human baseline.
820+
// `member_default` is bound to `everyone`, a held position, so it sits in the
821+
// position-bound slot (origin `default`), before any derived name.
820822
permissionSets: [
821823
{ name: 'sales_user', origins: [{ kind: 'direct' }, { kind: 'position', position: 'sales_rep' }] },
822-
{ name: 'ai_seat', origins: [{ kind: 'derived', source: 'ai_access' }] },
823824
{ name: 'member_default', origins: [{ kind: 'default' }] },
825+
{ name: 'ai_seat', origins: [{ kind: 'derived', source: 'ai_access' }] },
824826
],
825827
};
826828
const withIt = makeService({ describeEffectiveAccess: async () => answer });

0 commit comments

Comments
 (0)