Skip to content

Commit a7b1de2

Browse files
committed
docs(objectql): point callerlessFunctionResolution at the core rule steps it relies on
Review nit N1: a caller package stops at resolvePackageScopedHolders' steps 1-3; only the environment-wide branch answers unique-holder. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cz4f7zEQZ2C9GTG382
1 parent d0af531 commit a7b1de2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/objectql/src/package-scoped-resolver.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ export type PackageScopedFunctionEngine = Pick<ObjectQL, 'registry' | 'functionH
194194
* through unchanged: a refusal, the platform's item, and a caller package's
195195
* own item or its closure's holder (`own` / `closure`, a reader that names
196196
* its package).
197+
*
198+
* Relies on the core rule (`resolvePackageScopedHolders` in
199+
* `@objectstack/core`): a caller package stops at its steps 1–3 (`own`,
200+
* `closure`, `platform`, or a refusal) and only the environment-wide branch
201+
* for a caller with no package answers `unique-holder`. An edit of the rule
202+
* that lets a caller package reach `unique-holder` must revisit this wrapper.
197203
*/
198204
export function callerlessFunctionResolution<T>(
199205
resolution: PackageScopedResolution<T>,

0 commit comments

Comments
 (0)