Skip to content

Commit 3055f94

Browse files
committed
docs(kernel): the identity-step sample no longer claims resolveExecutionContext always resolves
It rejects with AuthzStoreUnavailableError (503) when an authorization input exists and could not be read — false since #13279 for a failed permission-store read, and now also for a tenancy service that is registered and failed to build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ
1 parent 566e155 commit 3055f94

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

content/docs/protocol/kernel/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,11 @@ that order.
293293

294294
// 1. Identity — resolveExecutionContext() reads the better-auth session (or
295295
// API key), aggregates positions/permission sets/RLS membership, and layers
296-
// locale + timezone on top. It always resolves; anonymous yields
297-
// `{ isSystem: false, positions: [], permissions: [] }`.
296+
// locale + timezone on top. Anonymous yields
297+
// `{ isSystem: false, positions: [], permissions: [] }`. It rejects with
298+
// AuthzStoreUnavailableError (503) only when an authorization input exists
299+
// and could not be read — a failed permission-store read, or a tenancy
300+
// service that is registered and failed to build.
298301
const context = await resolveExecutionContext({ getService, getQl, request });
299302
// → ExecutionContext { userId, tenantId, locale, timezone, positions,
300303
// permissions, isSystem, ... }

0 commit comments

Comments
 (0)