Skip to content

Commit ae2a7b3

Browse files
committed
feat(objectql): the bare picklist read answers by package (ADR-0150 D3)
The picklist joins PACKAGE_SCOPED_READ_TYPES, so its by-name read goes through the one package-scoped resolver: a bare read of a name two packages hold is refused naming both, and the qualified addresses reach only their own holder. Field resolution is unchanged. Claude-Session: https://claude.ai/code/session_01ADHkmPVZExCQQ1dwRy6Cbp Co-authored-by: Claude <noreply@anthropic.com>
1 parent ff04ad8 commit ae2a7b3

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
*
1414
* {@link PACKAGE_SCOPED_READ_TYPES}: the presentation and AI types of child E8
1515
* (#31680) — app, page, dashboard, report, book, analytics cube, tool, skill
16-
* and agent. A later child adds its own types to the list in its own change;
17-
* until then a type's by-name read stays `SchemaRegistry.getItem`'s, exactly
18-
* as before (`SchemaRegistry.resolveItem`).
16+
* and agent — and the picklist (#32070), whose bare by-name read was the
17+
* last of its readers still on `getItem`. A later child adds its own types to
18+
* the list in its own change; until then a type's by-name read stays
19+
* `SchemaRegistry.getItem`'s, exactly as before (`SchemaRegistry.resolveItem`).
1920
*
2021
* ## What a reader answers
2122
*
@@ -59,8 +60,8 @@ import {
5960

6061
/**
6162
* The types whose by-name readers consult `(package, name)` today — child E8's
62-
* nine (#31680), as the registry spells them. Each later child of epic #31527
63-
* appends its own.
63+
* nine (#31680) and the picklist (#32070), as the registry spells them. Each
64+
* later child of epic #31527 appends its own.
6465
*/
6566
export const PACKAGE_SCOPED_READ_TYPES = Object.freeze([
6667
'app',
@@ -72,6 +73,9 @@ export const PACKAGE_SCOPED_READ_TYPES = Object.freeze([
7273
'tool',
7374
'skill',
7475
'agent',
76+
// [#32070] the bare `/meta/picklist/NAME` read; a field's `picklist:` is
77+
// already resolved by its referrer's package (child E6), not through here.
78+
'picklist',
7579
] as const);
7680

7781
/** A type whose by-name readers consult `(package, name)` ({@link PACKAGE_SCOPED_READ_TYPES}). */

0 commit comments

Comments
 (0)