@praxisui/core 10.0.0-rc.6 → 10.0.0-rc.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,12 +4,214 @@ Shared contracts, tokens, services, metadata models, widget runtime primitives,
4
4
 
5
5
  Use this package directly when a host application or library needs Praxis UI types, global actions, metadata registries, schema clients, resource discovery, i18n, theme bridge, dynamic widget contracts, or shared runtime services.
6
6
 
7
+ `DomainRuleSnapshotGovernanceState` includes `WITHDRAWN`. A withdrawn head is
8
+ not executable (`executionReady=false`); its last selected snapshot key and
9
+ current ETag/revision are audit and concurrency information. Consumers must not
10
+ infer activation from the presence of that key. `DomainRuleService.withdrawSnapshotHead`
11
+ (`POST /api/praxis/config/domain-rules/snapshots/withdrawals`) submits a strong
12
+ `If-Match` precondition and an auditable `reason` (`1..1000` characters) to
13
+ record a tombstone head (`DomainRuleSnapshotWithdrawalResponse`), while
14
+ `DomainRuleService.getSnapshotHeadSet` (`GET /api/praxis/config/domain-rules/snapshots/head-set`)
15
+ reads a consistent, non-withdrawn multi-operation head bundle (`1..64` unique
16
+ `operationKeys`). Reentry after withdrawal requires the backend's governed
17
+ `REQUIRED` rollout (`createRollout` with the withdrawn head's `If-Match`) and
18
+ fresh preload quorum (`DomainRuleCandidateProbeResponse`).
19
+
20
+ ## Global dynamic pages defaults (`GlobalConfig.pages`)
21
+
22
+ `GlobalConfigService` supports `pages.defaults` (`GlobalDynamicPagesDefaultsConfig`) through `provideGlobalConfig` and runtime overrides:
23
+
24
+ - `layoutPreset`: Optional default `WidgetPageLayoutPresetId` when a page omits an explicit `layoutPreset`
25
+ - `themePreset`: Default `WidgetPageThemePresetId` (`operational-command`, `executive-clarity`, `editorial-canvas`)
26
+ - `shellPreset`: Default widget shell preset (`default`, `minimal`, `borderless`, `outlined`, `elevated`, `compact`, `spacious`)
27
+ - `columns` (1–24), `gap`, `paddingInline`, and `autoRows` (`fixed` | `content`)
28
+
29
+ `DynamicWidgetPageComponent` resolves page presentation with strict precedence:
30
+ `authored page property > GlobalConfig.pages.defaults > builtin preset/component fallback`, without polluting persisted canonical page documents with global defaults.
31
+
32
+ ## Closed page authoring profile
33
+
34
+ The additive page codec validates and preserves the Config-owned publication
35
+ profile, copies typed widget/link identities and materializes stable route/child
36
+ identities. Structural success is distinct from native validation and server
37
+ admission. See [the codec contract](https://github.com/codexrodrigues/praxis-ui-angular/blob/main/projects/praxis-core/docs/page-publication-codec.md) for APIs,
38
+ limits, examples and evidence scope. This API alone does not activate publication.
39
+
40
+ ## Context-bound runtime navigation
41
+
42
+ `EnterpriseRuntimeContextService.navigation({ parentRef?, cursor?, pageSize? })`
43
+ reads one page from the host's existing `/api/praxis/runtime/navigation` endpoint.
44
+ It waits for a confirmed ready context and sends its `X-Praxis-Context-Version`
45
+ with the existing authenticated host headers. `pageSize` defaults to 50 (1–100);
46
+ `parentRef` is a canonical group UUID and the opaque cursor is bounded to 4096
47
+ characters. Omit `parentRef` for roots; use a returned group ID for its children.
48
+ The server remains responsible for current authorization, cursor admission,
49
+ ordering and the complete authorized projection.
50
+
51
+ The response uses `praxis-enterprise-runtime-navigation.v1` and requires `nodes`,
52
+ `capabilities`, `contextVersion`, `receiptEtag`, `headReceipts`, `nextCursor` and
53
+ `resolvedAt`; empty arrays and a null `nextCursor` are valid. Nodes can carry an
54
+ admitted icon identifier, and `children: null` denotes on-demand loading. Head
55
+ receipts use Core's existing `UiLayoutReleaseHeadReceipt`. The semantic read
56
+ receipt is distinct from each strong write `headEtag`; Core does not introduce
57
+ navigation caching or send `If-None-Match` in this slice.
58
+
59
+ The service captures the local context generation before awaiting readiness and
60
+ rejects stale success/error responses with `EnterpriseRuntimeContextObsoleteError`,
61
+ including A → B → A and a response confirming another context. An unconfirmed
62
+ context fails before navigation dispatch. HTTP errors in the current generation
63
+ remain HTTP errors; callers must handle unavailable or stale continuations rather
64
+ than silently restarting or combining pages. A cursor never grants access.
65
+
66
+ This is the Core wire/transport slice of [Config's frozen P3-B design](https://github.com/codexrodrigues/praxis-config-starter/blob/c161609f14ffcdc39024e66a886a1bd5df471fc8/docs/ai/contracts/page-publication-p0/P3B-DESIGN.md).
67
+ It does not install a host navigation provider. An absent provider remains
68
+ `503 RUNTIME_PROVIDER_UNAVAILABLE`. Shell rendering, published-page routes and
69
+ their visual E2E remain P4; real host HTTP proof remains P3-C. A service HTTP spec
70
+ and a direct-consumer build do not establish those later integrations.
71
+
72
+ ## Contextual table defaults
73
+
74
+ `createDefaultTableConfig()` leaves `pagination.strategy` and `sorting.strategy`
75
+ unset. These shared contracts cannot choose a data source: `@praxisui/table`
76
+ infers server processing for remote data and client processing for local data.
77
+ Explicit `client` or `server` choices remain authored choices. Optional strategy
78
+ properties allow sparse metadata and editor resets to preserve contextual
79
+ resolution; `auto` is not a public serialized value.
80
+
81
+ ## Governed bulk client: basic synchronous slice
82
+
83
+ `requestCancellation(contract, executionId)` follows the published cancel binding.
84
+ Cancellation is cooperative: the returned server state is authoritative, including
85
+ an execution that already completed. It does not undo confirmed items. Use
86
+ `readExecution` and `readResults` to resume observation from a retained execution ID.
87
+
88
+ `BulkOperationClientService` consumes the Metadata published `BulkExecutionContract`
89
+ from an action or CRUD capability. `discoverAction` and `discoverCapability` use the
90
+ existing resource discovery surface; operation paths and filtered schema URLs come
91
+ from that descriptor. `evaluationSchema` loads the backend's filtered request schema
92
+ for a caller to render the operation's form. The client admits only `SYNC`,
93
+ `EXPLICIT` and `PER_ITEM` in this first Angular slice. A descriptor that also
94
+ advertises query selection is usable only with an explicit target request here.
95
+
96
+ The Quickstart candidate migrates its existing uniform update operation to an
97
+ `ASYNC`-only profile; that host adoption is still being validated. BASIC omits
98
+ an `ASYNC`-only operation without a `SYNC` fallback. Angular ASYNC support needs
99
+ its own consumer implementation and acceptance; this note does not establish a
100
+ Render deployment or an ASYNC UI journey.
101
+
102
+ Provide the exact wire ID and opaque resource `expectedVersion` for every selected
103
+ target. In particular, int64/Long IDs remain decimal strings; do not convert them
104
+ through JavaScript numbers. Evaluate first, review the returned READY or BLOCKED
105
+ proposal and its authorized paged results, then confirm a READY proposal using
106
+ only `{ proposalId }` and one `Idempotency-Key`. `BulkSyncStateService.createSession`
107
+ keeps that key fixed across a retry of the same confirmation. A new intention gets
108
+ a new session. The key and proposal live only in that session; it makes no claim
109
+ of recovery across a page reload.
110
+
111
+ For a selected collection row that publishes a `self` link,
112
+ `readTargetVersion(row._links, wireId, identityPath, options)` reads that exact
113
+ item, verifies its returned identity and returns the original strong quoted ETag
114
+ as `expectedVersion`. It rejects absent/weak ETags, foreign origins and mismatched
115
+ IDs. Callers should bound concurrent reads and cancel them when their resource
116
+ context closes. A row value, schema ETag or locally inferred URL is not a resource
117
+ version.
118
+
119
+ ```ts
120
+ const contract = await firstValueFrom(bulkClient.discoverCapability(resourceResponse, operationId));
121
+ const session = bulkState.createSession(contract);
122
+ const proposal = await session.evaluate(explicitSyncRequest);
123
+ const preview = await firstValueFrom(bulkClient.readProposalResults(contract, proposal.proposalId));
124
+ // Present proposal and preview to the person; a BLOCKED proposal cannot be confirmed.
125
+
126
+ // In a separate, explicit confirmation action for a READY proposal:
127
+ await session.confirm(idempotencyKeyForThisIntent);
128
+ // On an uncertain HTTP failure, retain this session and retry with the same key.
129
+ // The host schedules further authorized readbacks for an accepted nonterminal execution.
130
+ const reads = new AbortController(); // This view owns GET lifetime, not confirmation custody.
131
+ if (!session.isTerminal()) await session.refreshExecution(reads.signal);
132
+ if (session.isTerminal()) {
133
+ const results = await session.readResults(200, undefined, reads.signal);
134
+ }
135
+ ```
136
+
137
+ `resourceResponse`, `operationId`, the explicit request and the key come from the
138
+ caller's governed selection and form flow; the client resolves operation URLs from
139
+ the descriptor. The caller controls when to read status again and presents each
140
+ authorized page of results. This example is a service integration sketch, not a
141
+ ready visual workflow or a deployment claim.
142
+
143
+ `refreshExecution(signal?)` and `readResults(size?, after?, signal?)` retain their
144
+ Promise API and optionally accept a standard `AbortSignal`. An already aborted
145
+ signal dispatches no GET; abort unsubscribes the actual HTTP request, releases the
146
+ read slot, and prevents a late Promise continuation from updating the session.
147
+ Abort listeners are removed on success, failure and cancellation. A cancelled GET
148
+ keeps the original proposal, confirmation key and accepted execution; it does not
149
+ mark that execution terminal or prove rollback. A new authorized read may observe
150
+ the same execution. Overlapping execution refreshes remain rejected, while an
151
+ aborted generation cannot release the slot of its successor.
152
+
153
+ The caller owns GET cancellation and its observation budget; the Core session does
154
+ not invent a global read timeout. Use a fresh read lifetime for a fresh consultation
155
+ and abort reads when the owning view closes. Do not race a Promise with a timer:
156
+ connect the signal to the read itself so the HTTP subscription is torn down.
157
+ `evaluate` and `confirm` do not accept this signal: a dispatched POST and its original
158
+ key stay in intent custody across view teardown. GET failure/cancellation must never
159
+ start a new evaluation or confirmation automatically.
160
+
161
+ The backend is the authority on proposal expiry. A client clock hint must not
162
+ block a same-key replay after an uncertain confirmation; the backend may return
163
+ 409 or 410 and the host must explain that state without inventing a new intent.
164
+
165
+ HTTP 202, `RUNNING`, `CANCEL_REQUESTED` and `RECONCILIATION_REQUIRED` are not
166
+ business success. Read the authorized execution until its reconciled terminal
167
+ state and use the paged result reader for each item outcome. Preserve backend
168
+ errors (including 409, 410, 429 and 503) for the host's governed UX mapping;
169
+ do not turn them into a new submission with a new key. The backend continues to
170
+ own authorization, policy, identity, idempotency, limits and the domain transaction.
171
+ The table library has a candidate visual path for a published CRUD
172
+ `bulk-update` capability in `UNIFORM_UPDATE` mode. It uses this client and a
173
+ separate review/confirmation surface; it does not add a second backend contract.
174
+ The service also supports typed command and per-item requests, but that table
175
+ surface does not advertise them. Query selection, ASYNC jobs and ATOMIC mode are
176
+ outside this Angular slice. This is not a claim that the reference host or full
177
+ backend B7 acceptance is complete.
178
+
179
+ ## Published asynchronous execution tracking
180
+
181
+ `PraxisBulkClientService.waitForExecution` is separate from the BASIC client
182
+ above. Use its published execution operation only when that operation actually
183
+ supports the asynchronous profile; an enum member does not enable a backend
184
+ profile. The Observable emits one canonical terminal snapshot, preserving
185
+ `COMPLETED`, `COMPLETED_WITH_ERRORS`, `CANCELLED`, `STOPPED` and
186
+ `RECONCILIATION_REQUIRED`. `CANCEL_REQUESTED` remains pending.
187
+
188
+ Each subscription starts its own strict overall deadline. At most one GET is in
189
+ flight: interval ticks do not abort a useful slow read or queue overlapping reads.
190
+ Pending responses do not renew the deadline, which also bounds a GET that never
191
+ responds. Terminal completion, transport error, deadline and unsubscribe release
192
+ the active read and polling timers; a late response cannot revive an expired
193
+ subscription. Stopping a GET does not reverse server effects or cancel a POST.
194
+
195
+ A read failure means the outcome is unknown. Explicitly resume reads for the same
196
+ execution and preserve the original proposal and confirmation key; do not confirm
197
+ or evaluate again to restore progress. This transport does not provide custody
198
+ across closing/reopening a dialog, reload recovery or operational ASYNC acceptance.
199
+
7
200
  ## Governed color palettes
8
201
 
9
202
  `materializeGovernedPaletteEntries(palette, purposes)` returns `MaterializedGovernedColorToken[]`, pairing each original `entry` with its resolved `color`. It preserves distinct token IDs even when CSS references/colors match, applies purpose filtering, and resolves fallback dependencies against the complete palette. Use this projection for identified swatches; do not zip color arrays to entries or infer identity from color equality. `materializeGovernedPaletteColors` remains the string-only projection of the same resolver.
10
203
 
11
204
  `GovernedColorPaletteService` is the canonical Angular client for color-palette projections published by Praxis Config. Published palettes carry a stable `familyKey`, an explicit `variant` identity and token-level `displayName`/`aliases`; incomplete legacy projections are rejected before caching. The service supports list/read/capabilities/preview, exact `list(familyKey)` queries, tenant/environment-isolated caching, conditional ETag revalidation and deterministic `version`/`etag` pins. Consumers may use names and aliases for presentation and discovery only: `paletteKey` and `tokenId` remain the persisted identities, and local metadata must not become a second source of governance. `GovernedColorTokenSelection` carries the exact palette/version/ETag/token observation beside the existing CSS-string field value; applications persist it only through an explicit domain field or mapping.
12
205
 
206
+ ## Declarative Page DataSources (`page.dataSources`)
207
+
208
+ `WidgetPageDefinition.dataSources` and `WidgetPageDataSourceRuntimeService` allow dynamic pages and dashboards to fetch backend KPIs, group-by aggregations, and time-series metrics without imperative host `HttpClient` orchestration:
209
+
210
+ - **Endpoint resolution (`endpointKey` + `resourcePath`)**: resolves URLs through the `API_URL` token using `endpointKey` (falling back to `'default'`) so multi-service enterprise hosts route each DataSource to its target microservice.
211
+ - **Transform presets & JsonLogic**: supports `{ kind: 'path', path }`, `{ kind: 'group-by-map', mappings, totalField }` (initializing declared keys with `0` for sparse buckets), `{ kind: 'timeseries-last', mappings }`, or arbitrary JsonLogic expressions.
212
+ - **Transient state overlay (`targetStatePath`)**: merges resolved payloads into a non-persisted runtime overlay over `page.state.values[targetStatePath]` and coalesces concurrent emissions via microtask batching before re-evaluating `page.state.derived` and `composition.links`. Live runtime payloads never dirty `authoredPageDefinition` or trigger `autoPersist` writes.
213
+ - **Resilience & visibility-aware polling**: `errorPolicy` (`'fallback' | 'silent' | 'propagate'`) applies `fallbackValue` only before the first successful response so transient network errors during polling (`refreshIntervalMs`) never overwrite live data with static fallbacks. Subsequent poll ticks pause while `document.visibilityState === 'hidden'` and resume immediately on `visibilitychange`.
214
+
13
215
  ## LLM Recommendation Guide
14
216
 
15
217
  - `BUILTIN_WIDGET_SHELL_PRESETS` is the canonical catalog for reusable shell
@@ -31,6 +233,9 @@ Use this package directly when a host application or library needs Praxis UI typ
31
233
  through `context.ui.shell.presets`, then widget-specific `appearance`; use CSS
32
234
  variables there for corporate theming. The `dark-glass` and `graphite` material palettes remain dark by default;
33
235
  adaptive finishes follow the host Material tokens. Do not mutate either exported catalog to configure an application.
236
+ Shell titles use the host Material title-medium weight by default, including
237
+ expanded and fullscreen states; `appearance.typography.titleWeight` remains
238
+ the more specific widget-authored override at desktop and narrow viewports.
34
239
  The deliberate `frameless` inset improvement differs from 9.0.67: persist
35
240
  `appearance.body.padding: "0"` when the original edge-to-edge layout is required.
36
241
  - `WidgetShellConfig.stickyHeader: true` retains the existing composition-derived
@@ -209,6 +414,12 @@ Peer dependencies:
209
414
  - `@angular/common`, `@angular/core`, `@angular/forms`, `@angular/material`, `@angular/platform-browser`, `@angular/router` `^21.0.0`
210
415
  - `rxjs` `~7.8.0`
211
416
 
417
+ ## Resource HTTP responses and revision custody
418
+
419
+ `GenericCrudService.getByIdHttpResponse(id, options?)` and `updateHttpResponse(id, entity, options?)` expose the original `HttpResponse<RestApiResponse<T>>`, pairing a representation with its response headers. Existing `getById`, `getByIdResponse`, `update` and `updateResponse` keep their original DTO/envelope return shapes.
420
+
421
+ `CrudOperationOptions.resourceVersion` overrides a write's shared item cache: a strong quoted ETag supplies the exact `If-Match`, `null` intentionally omits that precondition, and `undefined` preserves existing cache → DTO `resourceVersion` fallback (or the configured header when neither is present). Consumers that edit a captured representation must provide its original revision, rather than a revision obtained by another read. `readStrongResourceEtag` validates a single strong tag without normalizing its bytes; weak, unquoted and multi-valued headers cannot stand in for a write revision. An explicitly invalid/weak response header clears the previous cached token. When the header is absent, the existing Core cache can capture DTO `resourceVersion`; this legacy/manual fallback does not authorize an automatic Form snapshot. Explicit overrides never fall back to cached, DTO or configured tokens.
422
+
212
423
  ## Theme And Icons
213
424
 
214
425
  ### Canonical SCSS Theming (Recommended)
@@ -272,8 +483,11 @@ Hosts should load the icon fonts they use. Without the classic Material Icons fo
272
483
  Use `PraxisIconButtonComponent` for icon-only actions. It keeps the native
273
484
  `button` contract, centers the glyph, and preserves a 44px pointer target even
274
485
  when the visible surface is compact. It accepts the same `mi:`, `mso:`, `msr:`
275
- and `mss:` icon-family prefixes as `PraxisIconDirective`; unprefixed names keep
276
- the legacy Material Icons behavior.
486
+ and `mss:` icon-family prefixes as `PraxisIconDirective`; explicit prefixes
487
+ always select their named family. Unprefixed names follow the configured
488
+ `MatIconRegistry` default for Material Icons or Symbols (outlined, rounded, or
489
+ sharp). Without a configured Symbols default, they retain legacy Material Icons
490
+ behavior; `providePraxisIconDefaults()` selects Symbols Outlined.
277
491
 
278
492
  ```ts
279
493
  import { Component, signal } from "@angular/core";
@@ -407,6 +621,17 @@ identity (`USER` when `X-User-ID` is present), and never sends a tenant ETag as
407
621
  `If-Match` for that user-owned write. Editing or deleting the tenant document
408
622
  requires an explicitly tenant-scoped provider.
409
623
 
624
+ `ApiConfigStorageOptions.canRead?: () => boolean` gates read requests (`loadConfig` and `loadConfigDocument`) when configured. Returning `false` skips remote GET dispatches and emits `null`, allowing hosts with deferred or session-gated authentication to avoid premature pre-session reads without replacing backend authorization.
625
+
626
+ `ApiConfigStorageOptions.canWrite?: () => boolean` and `ApiConfigStorageOptions.canWriteScope?: (scope: ConfigStorageScope) => boolean` gate remote config writes/clears (`saveConfig`, `clearConfig`, `deletePersonalOverrideAndReloadTenantBaseline`) and runtime scope switches (`setWriteScope`, `toggleWriteScope`). Both predicates are evaluated lazily inside `defer()`, complete without emitting (`EMPTY`, "not acknowledged" per `AsyncConfigStorage` semantics) without dispatching HTTP PUT/DELETE when denied, and expose `storage.canWriteConfig(key, options)` so runtimes like `DynamicWidgetPageComponent` avoid false `'saved'` states when writes are disabled. `providePraxisGlobalConfigBootstrap` also forwards `canRead`, `canWrite`, `canWriteScope`, `writeScope`, and `resolveWriteScope` into `ApiConfigStorageOptions`.
627
+
628
+ ### Workspace Customization Governance (`PraxisCustomizationModeService`)
629
+
630
+ `PraxisCustomizationModeService` coordinates layout customization across `@praxisui/core`, `@praxisui/page-builder`, `@praxisui/crud`, and `PraxisAppShellComponent`:
631
+
632
+ - `disableCustomization(reason?: string | null): () => void`: acquires a token-scoped lock (`isAvailable()` becomes `false`, `unavailableReason()` exposes the active lock reason, `isDisabled()` becomes `true`, and active customization exits automatically). Calling the returned release callback restores availability once all locks are released.
633
+ - `PraxisAppShellComponent` reflects `unavailableReason()` on the customization toggle's accessible metadata and blocks toggles while `isDisabled()` is `true`.
634
+
410
635
  ## Dynamic Page Runtime
411
636
 
412
637
  `DynamicWidgetPageComponent` renders `WidgetPageDefinition` documents.
@@ -439,6 +664,20 @@ export class PageComponent {
439
664
 
440
665
  Use `page.composition.links` for persisted wiring. `page.connections` is legacy/residual and should not be used for new pages or examples. Nested component ports should use `component-port` endpoints with `ref.nestedPath`.
441
666
 
667
+ ### Transient runtime overlays and persistence hooks
668
+
669
+ `DynamicWidgetPageComponent.patchWidgetInputs(widgetKey, inputsPatch, options?)` and `updateWidgetShell(widgetKey, shellPatch, options?)` treat runtime updates as non-persistable overlays by default (`options?.persistable === false` when omitted). Authored widget configuration and shell titles/actions remain intact in persisted snapshots and child editors unless `{ persistable: true }` is explicitly passed, and transient keys are restored before persistence emission.
670
+
671
+ Hosts using Core-managed persistence can supply opt-in hooks on `<praxis-dynamic-page>`:
672
+ - `reconcilePersistedPage?: (saved, current) => WidgetPageDefinition`: merges a loaded persisted document against the current canonical page before hydration.
673
+ - `preparePageForPersistence?: (page) => WidgetPageDefinition`: strips volatile runtime projections or normalizes layout geometry before `ASYNC_CONFIG_STORAGE.saveConfig(...)`.
674
+
675
+ The helper `cloneInputsPreservingLiveReferences(inputs)` is exported from `@praxisui/core` for deep-cloning plain input structures while preserving functions, Angular signals, RxJS observables, non-plain class instances, and circular references.
676
+
677
+ ### Header action pinning and keyboard tab navigation
678
+
679
+ `WidgetShellAction.pinned?: boolean` keeps critical shell actions directly visible in the card header before overflow collapsing is evaluated, even when compact header width (`< 480px`) limits unpinned header slots. Shell tabs follow WAI-ARIA roving `tabindex` (`0` on the active tab, `-1` on inactive tabs) with reactive `ArrowRight`, `ArrowLeft`, `Home`, and `End` keyboard navigation in `WidgetShellComponent`.
680
+
442
681
  When a host enables dynamic-page customization, it can pass a transient
443
682
  `WidgetPageAuthoringCapabilities` grant through `authoringCapabilities` to expose only the canvas,
444
683
  page settings, widget shell, component-input, removal and child-customization operations that the
@@ -451,6 +690,20 @@ Hosts that maintain an authored source separately from runtime state should cons
451
690
  `pageChange` remains the compatibility stream for every canonical page update, including persistent
452
691
  runtime state; transient composition projections remain excluded from both outputs.
453
692
 
693
+ With `autoPersist` enabled, pass a stable `pageIdentity` to scope the document and
694
+ listen to `persistenceChange: WidgetPagePersistenceState` for `loading`, `saving`,
695
+ `saved`, `resetting`, `idle` or `error`. `savedAt` is emitted only after the
696
+ storage confirms a save. An empty `{ widgets: [] }` document is a valid customized
697
+ page; absence of a stored document falls back to the host's page. The runtime
698
+ serializes save and reset operations for the identity so each storage call uses
699
+ the latest provider ETag. A 409/412 conflict blocks later writes until the host
700
+ explicitly calls `reloadPersistedPage(defaultPage)`, which discards the current
701
+ draft. `resetPersistedPage(defaultPage)` clears storage and applies the factory
702
+ page only after acknowledgement. `persistCurrentPage(page?)` requests an
703
+ explicit save or retries a recoverable save failure; callers can pass the exact
704
+ authored snapshot they want saved. Completion without a storage value reports
705
+ `errorKind: 'unacknowledged'` rather than claiming success.
706
+
454
707
  Pointer drag/resize in the canvas snapshots rendered CSS Grid track sizes and gutters at gesture
455
708
  start. Content-sized rows are not treated as uniformly sized `rowUnit` rows. Horizontal resize
456
709
  snaps to columns; vertical resize in `autoRows: 'content'` authors the item's independent
@@ -585,6 +838,8 @@ it must not infer authorization from a `canonicalOperations` boolean or discard
585
838
 
586
839
  `ResourceRecordOpenService` materializes the minimal `ResourceRecordOpenRef` published by governed analytics. It resolves the target resource catalog, loads the real item, follows its HATEOAS `surfaces` relation, requires the exact item surface to be available for the current context, and only then delegates to `ResourceSurfaceOpenAdapterService`. Consumers must not replace this flow with `${item.id}`, a copied surface path, a label match, or a prebuilt `surface.open` payload.
587
840
 
841
+ When a readable item surface (`VIEW` or `READ_PROJECTION` with `scope === 'ITEM'` and no `relatedResource` of its own) is materialized from a contextual surface catalog, `ResourceSurfaceOpenAdapterService.extractRelatedSurfaces` filters the sibling `ITEM` surfaces that are authorized (`availability.allowed === true`) and publish a complete `relatedResource` contract (`childResourceKey`, `childResourcePath`, `childParentField`), sorted by `order`, and attaches them to `payload.context.relatedSurfaces`. `PraxisSurfaceHostComponent` automatically composes a `[data-testid="surface-related-resources"]` section containing `<praxis-related-resource-outlet>` cards in `mode="open-action"` (`compact: true`) by default so opening a 360° dossier with multiple `1:N` child collections never triggers an N-table HTTP prefetch storm. Activating any card dispatches `surface.open` with the parent `surfaceRuntime`, pushing the child `<praxis-table>` onto the `SurfaceDrawerComponent` navigation stack (`pushFrame`/`backFrame`). Callers may opt into inline tables (`context.relatedResourcesMode = 'inline'`) or suppress the section (`context.relatedResourcesMode = 'off'`).
842
+
588
843
  When a discovered item surface publishes `relatedResource`, `ResourceSurfaceOpenAdapterService` delegates to `RelatedResourceSurfaceResolverService`. The resulting table targets the canonical child resource and receives the parent identity through `queryContext.filters`; it does not prefetch the item projection and rebuild a host-local table before opening. When the child surface publishes `childParentField`, related create actions seed that field through `actions[].form.initialValue`, and both create/update command policies project it into `groupedCommand.contextFields`. The field therefore remains in the schema-backed form and submit payload without rendering a redundant lookup for context the dossier already established. The generated related-resource empty state is informational: CREATE remains the stable, capability-governed toolbar action instead of being duplicated inside the empty state. An explicit host `emptyState.actions` declaration is preserved when the product journey intentionally needs a different contextual action. The materializer declares `openMode: "drawer"` but does not redefine drawer geometry: positioning, viewport height, focus, and close behavior remain owned by `@praxisui/crud`. This keeps the drawer responsive and preserves child operations, empty states, endpoint routing, and resource identity from the backend contract.
589
844
 
590
845
  The outlet's `ComponentDocMeta.configEditor` intentionally owns presentation only: `title`, `subtitle`, `icon`, `mode`, `presentation`, `compact`, and the closed copy/layout subset of `emptyState`. Opening it does not resolve runtime/materialized inputs. Apply and Save preserve every other persisted input opaquely, including Table-owned `tableConfig` and behavior-bearing empty-state fields. The relationship path, parent field/id, operation, filters, query context, surface and runtime state remain metadata/runtime-owned and cannot be authored by this editor or its AI manifest.
@@ -604,12 +859,37 @@ Core exports schema and metadata infrastructure used by form, table, list, chart
604
859
  - form layout item models
605
860
  - JSON Logic models and runtime service
606
861
 
862
+ `SchemaNormalizerService` expands `x-ui.customFieldsContainer: true` into child
863
+ fields such as `customFields.numero_calcado`, preserving each child's label,
864
+ control type, group, order, validators and option source. It also recognizes an
865
+ object named `customFields` with inline `properties`. `FieldDefinition` and
866
+ `FieldMetadata` retain `customField`, `customFieldKey` and `customFieldScope`;
867
+ the container itself does not become a control. See [schema flow](https://github.com/codexrodrigues/praxis-ui-angular/blob/feat/custom-fields-runtime/projects/praxis-core/docs/schema-flow.md#custom-fields)
868
+ for the value path and identity defaults.
869
+
870
+ For scalar arrays, `FieldDefinition.items` and `FieldMetadata.items` preserve the
871
+ operation schema's `FieldScalarItemsSchema` (`type`, optional `format` and `enum`).
872
+ This is distinct from `array.itemSchema.fields` for object collections.
873
+ `normalizeScalarArrayValue` is the shared Core projection for UI tokens: it admits
874
+ only declared scalar types and the finite enum after conversion, rejects invalid
875
+ items without partial output, and does not infer types from labels or value shape.
876
+ Consumers must apply it at validation and query/submit boundaries; saved metadata
877
+ cannot widen the server's `items` or `enumValues` constraints.
878
+
879
+ Expansion does not make arbitrary property names safe Angular controls or turn
880
+ read-only into automatic omission. The canonical Metadata key policy rejects
881
+ reserved control names, and its command request projection excludes read-only
882
+ custom fields. Consumers must use that operation schema rather than merge a
883
+ response schema into a command. See the
884
+ [enterprise adoption review](https://github.com/codexrodrigues/praxis-ui-angular/pull/658)
885
+ for contract blockers, context/freshness limits and the exact proof boundary.
886
+
607
887
  For governed analytics cross-filtering, `bindings.primaryDimension.keyFilterField` is the public request field that receives the raw `bucket.key`. Consumers must preserve its type, verify the target request schema, and must not infer this field from the dimension name, display label, or backend property paths.
608
888
 
609
889
  `valuePresentation` is the shared display contract for scalar read-only values such as currency, number, date, datetime, time, percentage, and boolean.
610
890
  `presentation` is the shared semantic wrapper contract for presentation-capable consumers. It can request chip, badge, status or iconValue rendering while preserving the raw value used for filtering, sorting and export.
611
891
 
612
- `FieldPresentationConfig` is the shared semantic presentation contract for read-only surfaces that need a visual primitive around the value, such as `chip`, `badge`, `status`, `iconValue`, or `microVisualization`. It keeps business data in the original field and lets consumers map `tone`, `appearance`, `icon`, `tooltip`, and optional fixed `label` values to their own renderer and theme tokens.
892
+ `FieldPresentationConfig` is the shared semantic presentation contract for read-only surfaces that need a visual primitive around the value, such as `chip`, `badge`, `status`, `iconValue`, or `microVisualization`. It keeps business data in the original field and lets consumers map `tone`, `appearance`, `icon`, `tooltip`, and optional fixed `label` values to their own renderer and theme tokens. For `microVisualization` (`PraxisPresentationVisualizationConfig`), `@praxisui/core` also publishes canonical normalization (`title`, `legend`, `targetLabel`, over-capacity `>100%` readouts, deterministic per-instance SVG gradient IDs) and `PraxisMicroTooltipOverlayService`, a `document.body` / HTML Top Layer singleton portal that renders unclipped floating telemetry readouts (`data-micro-readout`) across tables, cards, dynamic fields, and analytical drawers.
613
893
 
614
894
  ## Global Actions
615
895
 
@@ -668,7 +948,7 @@ the same value at runtime. Ordinary runtime change outputs keep using `pageChang
668
948
  composition targets still pass through canonical restoration before persistence.
669
949
  This lets Page Builder save the edited config instead of its previous draft.
670
950
 
671
- Dynamic widgets may implement `WidgetShellActionContributor` to publish transient, stateful content actions to their owning `WidgetShell`. The loader observes that signal and the shell merges contributions with authored actions by stable id without writing them into the page document. The widget remains the owner of command handling, localized labels, availability and controlled-region state; the shell owns responsive toolbar materialization and ARIA projection.
951
+ Dynamic widgets may implement `WidgetShellActionContributor` to publish transient, stateful content actions to their owning `WidgetShell`. The loader observes that signal and synchronizes header visibility (`setShellActionHostHeaderVisible`), and the shell merges contributions with authored actions by stable id without writing them into the page document. The primary header row (`.pdx-shell-header-main`) remains single-line across desktop and tablet card widths (`>= 448px`) using real `44px` icon-button touch-target budgets and standalone/`pinned` icon compaction before overflow, while preserving readable minimum identity (`min(14rem, 50%)`) and `44px` touch targets on narrow shells (`< 448px`) and keeping optional `.pdx-shell-tabs` on a dedicated secondary row below. Standalone, `pinned` (`compactVariant: 'icon'`), and segmented actions (`groupVariant: 'segmented'`, optional `groupLabel`, `compactVariant: 'icon'`, `selectionRole: 'radio'`) share the same width cascade along `icon + label -> icon-only + tooltip -> overflow menu (⋯)`, where grouped options render as labeled radio sections with checkmarks. The widget remains the owner of command handling, localized labels, availability and controlled-region state; the shell owns responsive toolbar materialization and ARIA projection.
672
952
 
673
953
  ## Global configuration snapshots
674
954
 
@@ -692,12 +972,18 @@ contracts are unchanged.
692
972
 
693
973
  `DomainKnowledgeService` and `DomainRuleService` are shared clients for governed semantic decision flows exposed by `praxis-config-starter`. `browseDefinitionCatalog` exposes the bounded, redacted and server-scoped decision catalog; consumers then use `getDefinition` with the exact returned definition id instead of downloading every rule body or joining versions by key. `getDefinitionFacts` projects the same definition's versioned fact vocabulary, including type, localized meaning, provider evidence, sensitivity and redaction policy; Angular must not reconstruct that vocabulary from JSON Logic or host-specific fixtures. `getDefinitionCapabilities` returns the authenticated principal's server-scoped `CREATE_NEW_VERSION` action per definition; consumers must not treat projection metadata such as editor support as authorization. For change workspaces, `getChangeWorkspaceCapabilities` returns the authenticated principal's `availableActions` and stable blockers; consumers must not infer submit, review or promotion authority from lifecycle status. `DomainRuleService` also exposes the safe RuleSet version catalog, active head/status, redacted execution summary, aggregate host alignment, forward activation and rollback protected by the current head ETag. The same client projects immutable rollout-policy versions, their independent anti-ABA head, maker-checker approval, activation and append-only timeline; policy authority and lifecycle validation remain server-owned. It also exposes the two-phase operational rollout through a recoverable human catalog, redacted readiness, create/cancel commands and candidate activation bound to the rollout identity. Consumers must obey the Config-owned `availableActions`; they must not recalculate quorum or head validity. Execution summaries contain only aggregate outcome counts, distinct-host count and observation timestamps for an immutable snapshot. Host-status summaries contain only aligned, snapshot-drifted, runtime-incompatible, unavailable and stale counts derived against the active head and its approved compatibility coordinates; facts and host identities remain outside Angular. Runtime surfaces should treat materializations as derived projections of backend-governed decisions, not as frontend-owned business rules.
694
974
 
975
+ `getDefinitionParameters` reads the same immutable definition's Engine-owned parameter template and typed constraints, together with declared/default/effective values. An absent `defaultValue` or `declaredValue` property differs from explicit JSON null; `origin` identifies the declared/default source. Consumers edit only workspace `parameters.parameterValues`, preserve other parameter metadata, and let Config derive the structural condition. Template identity, read-only flags, constraints, workspace ETags and publication through the governed snapshot lifecycle remain server-owned.
976
+
977
+ An intact historical snapshot with a different runtime compatibility is `RUNTIME_INCOMPATIBLE`, remains available for authorized audit, and is not executable (`executionReady=false`). All non-`READY` versions expose `availableAction=UNAVAILABLE`, including an incompatible version still referenced by the active head. Consumers must preserve that historical identity without offering activation, rollback or rollout; `READY` still requires the current compiler and implementation catalog. Historical readability never authorizes execution.
978
+
979
+ Snapshot publication returns `DomainRuleSnapshotStored` (immutable content/hash), without selecting or refreshing an active head. Before a first activation, a server-published `CREATE_ROLLOUT` version action may authorize starting the staged flow together with the rollout catalog action. `createRollout` and `activateSnapshotCandidate` accept an explicit null head token for verified absence and send only `If-None-Match: *`; existing tokens send only `If-Match`. Candidate activation retains the actual rollout ID. The nullable expected snapshot/head pair records bootstrap absence; clients must never replace it with a content hash, fabricated head or local readiness calculation.
980
+
695
981
  ## Public API Areas
696
982
 
697
983
  Core exports:
698
984
 
699
985
  - shared services such as `GenericCrudService`, `GlobalConfigService`, `GlobalActionService`, `ResourceDiscoveryService`, `ComponentMetadataRegistry`, `PraxisJsonLogicService`, `LoadingOrchestratorService`
700
- - governed submit-error normalization through `ErrorMessageService`, preserving public `code`, `target`, `category`, and safe messages while keeping transport details out of UI fallbacks
986
+ - governed submit-error normalization through `ErrorMessageService`, preserving public `code`, `target`, `category`, `decision`, and safe messages while keeping transport details out of UI fallbacks; unknown decisions retain safe summary copy without implying a field correction
701
987
  - tokens and providers for API URLs, global config, global actions, loading, i18n, settings panel bridge, surface drawer bridge, collection export, field selector registry, overlay/layer scale, the shared collection-search visual contract (`PRAXIS_COLLECTION_SEARCH_DEFAULTS`, `PRAXIS_COLLECTION_SEARCH_VARS`, `buildPraxisCollectionSearchCss`), and the shared action-control geometry contract (`PRAXIS_ACTION_CONTROL_DEFAULTS`, `PRAXIS_ACTION_CONTROL_VARS`, `buildPraxisActionControlCss`)
702
988
  - models for table config, fields, forms, rich content, editorial content, widget pages, global actions, resource discovery, domain knowledge/rules, analytics, query context, loading, and collection export
703
989
  - helpers for schema ids, ETag fetch, field mapping, config merge, validation, IDs, inline filter controls, global action refs, and form hooks
@@ -719,7 +1005,9 @@ Action-bearing components must use the semantic `--praxis-action-control-*` vari
719
1005
 
720
1006
  ### Catálogo no quick connect e isolamento do editor de página
721
1007
 
722
- `ResourceQuickConnectComponent` apresenta recursos publicados em `/schemas/catalog` usando o seletor `pdx-material-select` registrado em `ComponentMetadataRegistry`. O host deve registrar os descritores oficiais de DynamicFields. O controle é inicializado pelo protocolo `setInputMetadata` e ControlValueAccessor; Core não importa a biblioteca de campos. A conexão avançada por rota continua disponível.
1008
+ `ResourceQuickConnectComponent` apresenta recursos publicados em `/schemas/catalog` usando o seletor `pdx-material-select` registrado em `ComponentMetadataRegistry`. O host deve registrar os descritores oficiais de DynamicFields. O controle é inicializado pelo protocolo `setInputMetadata` e `ControlValueAccessor`; Core não importa a biblioteca de campos. A conexão avançada por rota continua disponível (com `<datalist>` de sugestões do catálogo e abertura automática da seção avançada quando o seletor dinâmico não está disponível ou quando o recurso atual é uma rota customizada fora do catálogo).
1009
+
1010
+ O componente expõe `[resourcePath]`, `(resourcePathChange)`, `[endpointKey]`, `[apiUrlEntry]`, `[intent]`, `ControlValueAccessor` (`ngModel` / `formControl`) e os hooks `reset()` / `acceptAppliedValue()` de `SettingsValueProvider`. A projeção e reconciliação de opções do catálogo são centralizadas em `ResourceDiscoveryService.getDiscoveredResources()`, `loadDiscoveredResources()`, `projectSchemaCatalogResources()` e `resolveCatalogResourceOptionValue()`, deduplicando chamadas concorrentes a `/schemas/catalog` por URL, consumindo `resourcePath`, `resourceReadOnly` e `resourceCapabilities` publicados pelo backend para eliminar falsos-positivos de capacidades (como endpoints herdados `/stats/*` desabilitados) e sinalizando recursos somente leitura no subtítulo do seletor. `ResourceDiscoveryService` reutiliza a instância do injetor ancestral quando um componente standalone cria injetor filho sem override local de `API_URL`.
723
1011
 
724
1012
  O editor de configurações da página recebe uma cópia da definição autoral. Dados carregados e entradas transitórias dos widgets não devem virar configuração ao alterar o layout.
725
1013
 
@@ -829,7 +1117,7 @@ interpolation does not add date masks, CPF masks or an expression language. Lite
829
1117
  separators remain when both bound fields are empty.
830
1118
  The canonical link pipeline now supports explicit `format-value` for civil dates,
831
1119
  digit masks and numeric presentation.
832
- The [complete identity recipe](../../examples/ai-recipes/praxis-dynamic-page.widget-selection-identity.json)
1120
+ The complete identity recipe (`examples/ai-recipes/praxis-dynamic-page.widget-selection-identity.json`)
833
1121
  resets the transient identity before formatting and composes only available subtitle
834
1122
  parts. The lab and Core integration test consume the same executable page artifact.
835
1123
 
@@ -899,10 +1187,17 @@ widget appearance/size, or registered content editor session. It uses the existi
899
1187
  `owner` option; no session identity is persisted in the page document.
900
1188
 
901
1189
  The session is cancelled when its panel closes, the page is destroyed, or an external
902
- page/context/identity/authoring input change invalidates it. A page-only acknowledgement
903
- identical to the current authored document keeps the session alive for subsequent
904
- Apply/Save. This is deliberately conservative: a different external document cancels
905
- open editors even when a particular widget happens to be unchanged.
1190
+ page/context/identity/authoring input change invalidates it. An acknowledgement identical
1191
+ to the current authored page keeps the session alive for subsequent Apply/Save, including
1192
+ when the host resends an equivalent `pageIdentity` object. After the first input change,
1193
+ identity equivalence means strict equality of its five fields: `appId`, `tenantId`,
1194
+ `userId`, `routePath` and `locale`; whitespace, delimiters and missing values are not
1195
+ normalized. Core retains a private snapshot of those accepted primitive values, so
1196
+ mutating the host's previous object before resending a clone still changes the scope.
1197
+ Resending only that equivalent identity also preserves data-source overlays,
1198
+ composition and persistence scope. Context, instance and authoring capability changes
1199
+ remain invalidating. A different external document cancels open editors even when a
1200
+ particular widget happens to be unchanged. This does not confirm an HTTP save.
906
1201
 
907
1202
  Confirmed widget removal cancels sessions targeting that key, plus page-wide settings
908
1203
  that could restore the removed widget. Asynchronous editor results cannot open a panel
@@ -1065,6 +1360,125 @@ blur does not become an inner widget's default. Intentional inheritance through
1065
1360
  `context.ui.shell.preset/presets` remains supported. This isolation does not remove
1066
1361
  the host's shared theme tokens.
1067
1362
 
1363
+ ## App shell: host appearance
1364
+
1365
+ `PraxisAppShellComponent` materializes the host theme for both the sidebar and
1366
+ header. The existing theme roles `--sidebar` (falling back to `--card`),
1367
+ `--surface-gradient` (falling back to `--card`), `--command-gradient`,
1368
+ `--sidebar-foreground`, `--sidebar-primary`, `--sidebar-accent`,
1369
+ `--sidebar-accent-foreground`, `--primary-deep`, `--primary-foreground`,
1370
+ `--accent`, `--secondary`, `--overlay`
1371
+ and `--shadow-panel` apply to the native chrome and brand icon. Navigation,
1372
+ loading and mobile behavior do not change when these colors change. Without host
1373
+ theme tokens, the brand uses a dark blue fallback with a white icon; custom host
1374
+ colors should always supply their corresponding foreground roles.
1375
+
1376
+ Semantic badges use tinted surfaces with the host's foreground. Success,
1377
+ warning and info consume `--praxis-success`, `--praxis-warning` and
1378
+ `--praxis-info`; the established `--ready`/`--warning` variables and bounded
1379
+ fallbacks remain available. Error consumes `--destructive`. Hosts should use
1380
+ these existing roles rather than overriding private shell selectors. No new
1381
+ shell input, saved layout field or theme-specific component is required.
1382
+
1383
+ ## Governed Resource Quick View
1384
+
1385
+ `ResourceQuickViewBinding`, `PraxisQuickViewTriggerDirective` (`[praxisQuickView]`),
1386
+ `ResourceQuickViewService` and `PraxisQuickViewOverlayComponent` provide the
1387
+ canonical hover/focus/click contextual dossier across `@praxisui/table`,
1388
+ `@praxisui/list`, `@praxisui/dynamic-fields`, `@praxisui/dynamic-form`,
1389
+ `@praxisui/rich-content`, `@praxisui/charts`, `@praxisui/stepper` and
1390
+ `@praxisui/ai`:
1391
+
1392
+ - **Metadata synthesis (`resolveFieldQuickViewBinding` & `reconcileFieldQuickViewBinding`)**:
1393
+ Synthesizes `ResourceQuickViewBinding` from explicit `field.quickView`,
1394
+ backend `x-ui.resourceReference` (`@ResourceReference`) or
1395
+ `x-ui.optionSource.detail` when it declares a `resourceKey`. The binding reuses
1396
+ `recordOpen.sourceIdentityField` and `recordOpen.target.resourceKey/surfaceId`;
1397
+ `previewSurfaceId` can select a separate read projection. Persisted presentation
1398
+ preferences must preserve the server-owned record target and identity field.
1399
+ - **Context resolution (`resolveResourceQuickViewTarget`)**:
1400
+ Resolves `recordOpen.sourceIdentityField` from direct records or nested `row`,
1401
+ `item` and `values` envelopes, including dotted field paths, and extracts
1402
+ scalar IDs (`id`, `value`, `key`) when a form control holds an entity-lookup
1403
+ selection object.
1404
+ - **Enterprise security and request lifetime**:
1405
+ `ResourceQuickViewService` coalesces matching in-flight projections and invalidates
1406
+ the active generation on context changes; it does not retain a completed-record
1407
+ LRU cache. Every fresh open resolves the current item surface. Surface, action,
1408
+ capability and schema discovery share requests within the current runtime context
1409
+ generation. A context change cancels the whole record opening and invalidates
1410
+ late discovery responses, including a return to the same context. The hover trigger
1411
+ waits 280 ms by default; explicit activation starts immediately. Discovery reads
1412
+ the resource catalog, the item and its contextual surfaces before resolving the
1413
+ filtered response schema and projection. A pending HTTP request can therefore
1414
+ outlive dismissal even though its obsolete result cannot update that popover.
1415
+ Fields restricted by `x-ui.fieldAccess` are filtered or masked (`•••`) before
1416
+ rendering, and `recordOpen` actions are validated against the item's
1417
+ authorized `_links` / `surfaces` / `actions` snapshot.
1418
+ - **Metadata presentation**:
1419
+ Summary labels come from normalized domain metadata (`x-ui.label`), not field-name
1420
+ humanization. Explicit numeric `valuePresentation` uses the shared resolver and
1421
+ formatter for `currency`, `number` and `percentage`, including `currency.code`,
1422
+ zero precision and fractional `digitsInfo`. A presentation-level value config
1423
+ takes precedence over the field config. Existing field currency/decimal defaults
1424
+ remain the fallback when the explicit config omits them. Options, masking and
1425
+ presentation affixes retain their precedence. This numeric correction does not
1426
+ add support for compact notation or change the existing date/time formatting path.
1427
+
1428
+ Hosts must install `providePraxisQuickViewDialogPresenter()` from `@praxisui/dialog`.
1429
+ Bindings with `contentRef` also require the rich-content body renderer; the standard
1430
+ summary does not. Source changes require publication and consumer adoption before
1431
+ they can be claimed for an installed package.
1432
+
1433
+ ### Optional editing highlight
1434
+
1435
+ This feature was added in source after `10.0.0-rc.36`; it is not yet part of a published package release.
1436
+
1437
+ `WidgetShellConfig.appearance.card.interactionHighlight` selects `standard` or
1438
+ `gradient`. Omit it to inherit the shell preset; the final default is `standard`.
1439
+ An explicit `standard` overrides a gradient preset. This is editing chrome: it
1440
+ appears on selection or keyboard focus while customization is enabled, never as a
1441
+ permanent border in the published page. Focusing a child control does not change selection; the highlight itself does not emit selection.
1442
+ The gradient uses the current primary, tertiary and secondary theme tokens. Resize
1443
+ grips follow the same choice. Internal control focus indicators remain intact;
1444
+ blocked canvas operations retain the error indicator and forced colors use a solid
1445
+ system-color outline. The highlight follows the resolved card radius (square for
1446
+ content-only shells).
1447
+
1448
+ ```json
1449
+ {"shell":{"kind":"dashboard-card","appearance":{"card":{"interactionHighlight":"gradient"}}}}
1450
+ ```
1451
+
1452
+ In Widget settings → Appearance, choose Inherit, Standard or Gradient and inspect
1453
+ its preview. Apply updates the local draft; the host controls remote persistence.
1454
+ Saving the settings panel alone is not proof of a server write: the reference Page
1455
+ Builder host requires Save page. Reopening and Reset preserve the distinction between
1456
+ an omitted value and an explicit override. Editing appearance on a widget without a
1457
+ shell preserves content-only presentation (`kind: 'none'`); a card requires an explicit
1458
+ choice. The option does not change child component inputs or enable customization.
1459
+
1460
+ This preference controls editing appearance; it grants no authorization and carries
1461
+ no business selection state. The host integrates persistence, identity and tenant
1462
+ scope through the canonical configuration infrastructure, including its ETag
1463
+ contract; this option requires no separate ETag implementation in the host. Editing only this preference must preserve unrelated
1464
+ shell settings, including `bodyLayout`, `windowActions` and action `pressed` values.
1465
+ Local editor round-trip tests do not prove remote tenant isolation or ETag behavior.
1466
+
1467
+ The existing AI operation `widget.shell.configure` merges partial shell input.
1468
+ Omitting `interactionHighlight` from that input preserves an existing override; it
1469
+ does not perform the visual editor's Inherit action, which removes the field from
1470
+ the complete saved document. Explicit `standard` disables the gradient but remains
1471
+ an override. Resetting an existing override to inherited styling through this AI
1472
+ operation remains unsupported; this option does not imply full editor/AI parity.
1473
+
1474
+
1475
+
1476
+ ### Domain Rules: identidade explícita de operação (candidato G3)
1477
+
1478
+ As leituras `listSnapshotVersions`, `getSnapshotHeadStatus`, `getSnapshotHead`, `getSnapshotHostStatusSummary` e `getRolloutCatalog` exigem `operationKey` após `ruleSetKey`. A inspeção de lifecycle recebe `{ ruleSetKey, operationKey }` quando incluir snapshots. Nenhum método escolhe o primeiro perfil. As projeções de versão, head, rollout, status e publicação preservam essa identidade retornada pelo servidor.
1479
+
1480
+ O consumidor deve invalidar cache, requisições tardias e confirmações ao mudar de operação. Políticas de rollout permanecem familiares. Preparação neutra de candidato continua limitada ao endpoint host que resolve uma única operação registrada; não inventar um campo ou capacidade no cliente para compor famílias múltiplas. O corte público exige release coordenado do Core, bibliotecas dependentes e consumidores, seguido de instalação a partir do registry; tarball local só comprova candidato.
1481
+
1068
1482
  <!-- praxis-npm-catalog-links:start -->
1069
1483
  ## Official documentation and examples
1070
1484