Skip to content

Commit 870b429

Browse files
committed
test(core): the landing pin asserts the authorization decision before the read count
Claude-Session: https://claude.ai/code/session_01WVbr5J6u8BHh8EyFtcWciH Co-authored-by: Claude <noreply@anthropic.com>
1 parent 606c334 commit 870b429

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/core/src/security/resolve-authz-context.request-grants-memo.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,11 @@ describe('request-scoped grants memo — step 2 reads afresh whenever a fresh re
612612
nowMs: T0,
613613
tenancyPosture: 'isolated',
614614
});
615-
expect(ql.calls.length).toBe(16);
615+
// The decision first: the request is authorised WITHOUT the revoked row…
616616
expect(ctx.positions).not.toContain('auditor');
617617
expect(ctx).toEqual(await postWriteBaseline());
618+
// …because step 2 read afresh after the landing.
619+
expect(ql.calls.length).toBe(16);
618620
});
619621

620622
it('a write that bumped before the first resolution and is still in flight at step 2', async () => {

0 commit comments

Comments
 (0)