Skip to content

Commit 3b39a5e

Browse files
committed
chore(spec): regenerate artifacts and ledgers for PageSchema.apps
Claude-Session: https://claude.ai/code/session_01ADHkmSGMLCTCPxZfV3GqHr Co-authored-by: Claude <noreply@anthropic.com>
1 parent 89fed2c commit 3b39a5e

6 files changed

Lines changed: 25 additions & 2 deletions

File tree

‎content/docs/references/ui/page.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ View filter rule
227227
| **template** | `Enum<'default' \| 'header-sidebar-main' \| 'three-column' \| 'dashboard'>` | optional (default: `"default"`) | Layout template — 'default', 'header-sidebar-main', 'three-column' or 'dashboard'. Each places its own regions (PAGE_TEMPLATE_SLOTS); a region the template does not place, or a second region filling the same slot, is refused at the region's name. |
228228
| **regions** | `{ name: string; width?: Enum<'small' \| 'medium' \| 'large' \| 'full'>; components: object[] }[]` | optional | Layout regions (header, main, sidebar, footer) with their components. Optional — list pages use interfaceConfig, slotted pages use slots, and an empty full page falls back to the synthesized default layout. |
229229
| **isDefault** | `boolean` | optional (default: `false`) | Whether this record page is the default record page of its `object` — the page the record view opens. At most one `isDefault: true` record page may exist for an object in a deployment: a second is refused (by defineStack / os validate, at package registration and at metadata save), naming both pages. Saving a page under the existing default's own name is that page, not a second default. Refused on any other page — a page that is not a record page bound to an object: nothing reads it there. An app opens on its first navigation item, and the root landing follows the app's own isDefault. |
230+
| **apps** | `string[]` | optional | [PLANNED — not yet rendered] The apps whose routes open this record page for its `object`: inside an app named here, the object's record view (`/apps/<app>/<object>/record/<id>`) opens this page; everywhere else, Setup included, the object's one `isDefault` record page still opens, so the default and an app's page coexist. App names, non-empty and unique. At most one record page per object per app: a second page naming the same app for the same object is refused (by defineStack / os validate, at package registration and at metadata save), naming both pages. Refused on any page that is not a record page bound to an object. Until the console reads it, every app opens the default record page. |
230231
| **assignedProfiles** | `never` | optional | [REMOVED] `page.assignedProfiles` was removed in @objectstack/spec 17.5.0 (ADR-0090 D2, ADR-0049 enforce-or-remove) — it was named for the Profile concept ADR-0090 D2 deleted, and it gated nothing: no renderer, route or metadata read door ever read the key, so a page that "assigned profiles" stayed open to every caller who could reach it. Delete the key. Page audience is the permission set's: gate the DATA the page shows with the object's permission sets, and bind those sets to people through positions (named in a position's `permissionSets`) — those are the checks the runtime actually runs. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
231232
| **interfaceConfig** | `{ source?: string; columns?: string[] \| object[]; sort?: object[]; filterBy?: (object \| object)[]; … }` | optional | Interface-level page configuration (for Airtable-style interface pages) |
232233
| **aria** | `{ ariaLabel?: string \| Record<string, string>; ariaDescribedBy?: string; role?: string }` | optional | ARIA accessibility attributes |

‎packages/spec/authorable-surface/ui.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@
10511051
"ui/Page:_packageId",
10521052
"ui/Page:_packageVersion",
10531053
"ui/Page:_provenance",
1054+
"ui/Page:apps",
10541055
"ui/Page:aria",
10551056
"ui/Page:assignedProfiles [RETIRED]",
10561057
"ui/Page:description",

‎packages/spec/dropped-refinements.baseline.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"measured": {
44
"zod": "4.4.3",
55
"publishedSchemasWithDroppedRefinements": 248,
6-
"droppedRefinementSites": 988,
6+
"droppedRefinementSites": 993,
77
"refinementSitesThatDidProject": 369,
88
"refinementSitesWithNoJsonFormToCompare": 0
99
},
@@ -115,6 +115,7 @@
115115
"manifest.objects.element.membershipKeys",
116116
"manifest.objects.element.membershipKeys.valueType",
117117
"manifest.pages.element",
118+
"manifest.pages.element.apps",
118119
"manifest.pages.element.slots.header.options[0].type",
119120
"manifest.permissions.element.fields.valueType",
120121
"manifest.permissions.element.objects.valueType.out.out",
@@ -259,6 +260,7 @@
259260
"data.options[1].manifest.objects.element.membershipKeys",
260261
"data.options[1].manifest.objects.element.membershipKeys.valueType",
261262
"data.options[1].manifest.pages.element",
263+
"data.options[1].manifest.pages.element.apps",
262264
"data.options[1].manifest.pages.element.slots.header.options[0].type",
263265
"data.options[1].manifest.permissions.element.fields.valueType",
264266
"data.options[1].manifest.permissions.element.objects.valueType.out.out",
@@ -398,6 +400,7 @@
398400
"options[1].manifest.objects.element.membershipKeys",
399401
"options[1].manifest.objects.element.membershipKeys.valueType",
400402
"options[1].manifest.pages.element",
403+
"options[1].manifest.pages.element.apps",
401404
"options[1].manifest.pages.element.slots.header.options[0].type",
402405
"options[1].manifest.permissions.element.fields.valueType",
403406
"options[1].manifest.permissions.element.objects.valueType.out.out",
@@ -477,6 +480,7 @@
477480
"data.packages.element.options[1].manifest.objects.element.membershipKeys",
478481
"data.packages.element.options[1].manifest.objects.element.membershipKeys.valueType",
479482
"data.packages.element.options[1].manifest.pages.element",
483+
"data.packages.element.options[1].manifest.pages.element.apps",
480484
"data.packages.element.options[1].manifest.pages.element.slots.header.options[0].type",
481485
"data.packages.element.options[1].manifest.permissions.element.fields.valueType",
482486
"data.packages.element.options[1].manifest.permissions.element.objects.valueType.out.out",
@@ -1840,6 +1844,7 @@
18401844
"ui/Page": {
18411845
"sites": [
18421846
"",
1847+
"apps",
18431848
"interfaceConfig.emptyState.link.url",
18441849
"record.filter.element",
18451850
"record.filter.element.options[0]",

‎packages/spec/liveness/page.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@
131131
"status": "live",
132132
"note": "the default record page of the object a record page binds — objectui page resolution (the one reading every door judges by is defaultRecordPageObject, default-record-page.ts). On any other page it is REFUSED (#23610, ruling 6190536588 Q1 A; checkPageDefaultPlacement and the registry door, one sentence misplacedDefaultPageRefusal): nothing read it there — an app opens on its first navigation item and the root landing follows the app's own isDefault. LOAD PATH (P0 after #23610): an installed or stored page still carrying the flag replays the retired D2 entry page-is-default-off-record-page-removed on read — stored rows, the artifact doors, and the kernel's package registration door for a body that declares its protocol range (ObjectQL.convertPackageBodyForward) — so the kernel builds with an OS_METADATA_CONVERTED notice; the authoring, save and publish doors keep refusing."
133133
},
134+
"apps": {
135+
"status": "planned",
136+
"verifiedAt": "2026-11-02",
137+
"evidence": "packages/spec/src/ui/default-record-page.ts#defaultRecordPageObject (with the app passed: the object a record page is the page of inside that app — the one reading defineStack, the registry's package door and the metadata save door ask); packages/spec/src/ui/page.zod.ts#checkPageDefaultPlacement (refuses `apps` on a page that is not a record page bound to an object)",
138+
"note": "PLANNED, the renderer half pending — ruling A on #28979 (record 6573557633): inside an app `apps` names, the object's record view opens this page; elsewhere, Setup included, the object's one isDefault page still opens. The refusal half is enforced now: two record pages for one object naming the same app are refused by defineStack / composeStacks, the objectql registry's package door and item seam, and the metadata save door (DEFAULT_RECORD_PAGE_CONFLICT, naming both pages). Measured on objectstack main @2f7977cd: the console's page assignment (ui usePageAssignment / appObjectScope.declaredRecordPage) reads no app, so every app opens the default record page, as before the key existed. Flip to `live` when the ui follow-up reads the route's app first, citing the read point."
139+
},
134140
"interfaceConfig": {
135141
"status": "live",
136142
"note": "the entire Airtable-parity list surface (source/columns/filterBy/appearance/userFilters/userActions/addRecord/buttons/recordAction/...) — objectui app-shell/src/views/InterfaceListPage.tsx + PageView.tsx. Verified in browser during the dogfood (grid+kanban+filters). [#23005] This blanket `live` verdict covers `interfaceConfig.emptyState` too: the list page's own empty state, the list view's EmptyStateSchema by reference. It was declared ahead of its renderer, contract first, with the `[PLANNED — not yet rendered]` marker on its describe; the renderer half, objectstack-ai/objectui#12270 (objectui b434f5f47), is inside the console pin from objectui b9814b334, and the marker is dropped. Measured there: InterfaceListPage hands ListView `cfg.emptyState ?? view.emptyState` (InterfaceListPage.tsx:509), so the page's own empty state wins over the source view's. `page/interfaceConfig` is a recorded undrilled container (undrilled-containers.baseline.json), so the walk reads no row for the member. The reading before objectui#12270 (first cited by the Studio-form omit row for `interfaceConfig.emptyState` in packages/spec/src/system/metadata-form-zod-reconciliation.test.ts, which #23568 removed once the renderer half shipped; recorded here by #23434): objectui @7af0ab3 packages/app-shell/src/views/InterfaceListPage.tsx#schema handed ListView the source view's `emptyState` only; at objectui @b9814b334 the same symbol hands `cfg.emptyState ?? view.emptyState`."

‎packages/spec/liveness/state-counts/page.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ committed anywhere: `check:liveness` sums the shards when it reads them.
1212

1313
| Type | live | exp | elsewhere | dead | planned | classified |
1414
|---|---|---|---|---|---|---|
15-
| `page` | 34 | 0 | 0 | 1 | 9 | 44 |
15+
| `page` | 34 | 0 | 0 | 1 | 10 | 45 |

‎packages/spec/src/system/metadata-form-zod-reconciliation.test.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,16 @@ const LEDGER: ReadonlyArray<OmitEntry | SubsetEntry> = [
354354
key: 'record',
355355
why: "planned, not yet rendered — the binding's one-row query is validated at parse and refused on every page that is not `type: 'app'`, but no renderer mounts it as the page's `record` until the console's page-root binding lands. A form control offered today would let an author bind a row no predicate can read yet",
356356
},
357+
// #28979 — a record page's app scope lands spec-first the same way:
358+
// `planned` in the liveness ledger, read by no console until the ui card
359+
// that makes the page assignment read the route's app.
360+
{
361+
kind: 'omit',
362+
type: 'page',
363+
path: ROOT_PATH,
364+
key: 'apps',
365+
why: "planned, not yet rendered — the app scope is validated at parse, refused off a record page bound to an object, and a second page for one object in one app is refused at every door, but no console opens the scoped page in its app until the page assignment reads the route's app. A form control offered today would let an author scope a page no route opens yet",
366+
},
357367
// #28022 — an app's per-audience landing list lands spec-first the same way:
358368
// `planned` in the liveness ledger, read by no console until the landing
359369
// redirect card. Offering it in the app form first would be the UI half of

0 commit comments

Comments
 (0)