Skip to content

Commit 894860e

Browse files
committed
test(plugin-auth): the prelude pin's as-declared grant title is the person-named one
Semantic merge conflict with #24941's pin, resolved in one line. Its direct-grant case "as declared" read the declared sys_user_permission_set title as the raw user id, a precondition asserted before the count. On this branch the declared title IS the one-hop person title, so both cases of the pair now read 'Prelude → prelude_editor'. The counts the pin holds (8 reads in 4 round trips) are unchanged and green. Claude-Session: https://claude.ai/code/session_011TdZ8GjixNZFLz1xJD9zzK Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9474db5 commit 894860e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugins/plugin-auth/src/auth-prelude-query-count.pin.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe('[#24061] one authenticated request\'s prelude, counted on a real engin
281281
// not project it — so the hop, where declared, is live on this engine.
282282
const [held] = (await engine.find('sys_user_permission_set', { where: { user_id: userId }, ...SYS })) as any[];
283283
expect(held?.permission_set).toBe('prelude_editor');
284-
expect(held?.display_title).toBe(oneHopGrantTitle ? 'Prelude → prelude_editor' : `${userId} → prelude_editor`);
284+
expect(held?.display_title).toBe('Prelude → prelude_editor');
285285

286286
const run = await probe.measure(prelude);
287287

0 commit comments

Comments
 (0)