@chobantonov/jsonforms-extended-spec 0.2.0 → 0.4.0

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.
Files changed (50) hide show
  1. package/conformance/authoring.json +511 -0
  2. package/conformance/behavior.json +2373 -4
  3. package/conformance/config-consumption.json +13 -2
  4. package/docs/audit.md +17 -2
  5. package/docs/conditional-fields.md +133 -6
  6. package/docs/external-resources-proposal.md +8 -2
  7. package/docs/implementation-guide.md +129 -90
  8. package/docs/implementation-pitfalls.md +393 -1
  9. package/docs/implementation-web-typescript.md +2 -5
  10. package/docs/renderer-and-demo.md +47 -34
  11. package/docs/spec.md +235 -14
  12. package/docs/todo.md +72 -18
  13. package/examples/README.md +8 -2
  14. package/examples/additional-errors/README.md +7 -0
  15. package/examples/additional-properties/README.md +15 -0
  16. package/examples/catalog.json +16 -1
  17. package/examples/color-control/README.md +4 -1
  18. package/examples/conditional-fields/README.md +21 -3
  19. package/examples/conditional-fields/translations.json +4 -2
  20. package/examples/conditional-fields/uischema.json +67 -7
  21. package/examples/conditional-template-slots/README.md +14 -0
  22. package/examples/conditional-template-slots/config.json +7 -0
  23. package/examples/conditional-template-slots/data.json +5 -0
  24. package/examples/conditional-template-slots/schema.json +37 -0
  25. package/examples/conditional-template-slots/translations.json +16 -0
  26. package/examples/conditional-template-slots/uischema.json +22 -0
  27. package/examples/index.js +4 -3
  28. package/examples/kitchen-sink/README.md +93 -4
  29. package/examples/kitchen-sink/config.json +7 -0
  30. package/examples/kitchen-sink/data.json +14 -2
  31. package/examples/kitchen-sink/invalid-data.json +13 -1
  32. package/examples/kitchen-sink/schema.json +100 -1
  33. package/examples/kitchen-sink/translations.json +80 -2
  34. package/examples/kitchen-sink/uischema.json +239 -4
  35. package/examples/label-interpolation/README.md +58 -1
  36. package/examples/label-interpolation/config.json +8 -2
  37. package/examples/label-interpolation/translations.json +8 -4
  38. package/examples/label-interpolation/uischema.json +31 -8
  39. package/package.json +1 -1
  40. package/schemas/README.md +8 -3
  41. package/schemas/jsonforms-config.schema.json +1 -1
  42. package/schemas/jsonforms-extended-config.schema.json +5 -0
  43. package/schemas/jsonforms-extended-uischema.schema.json +11 -2
  44. package/schemas/jsonforms-uischema.schema.json +14 -1
  45. package/typescript/README.md +8 -2
  46. package/typescript/lib/authoring/forSchema.d.ts +10 -1
  47. package/typescript/src/authoring/forSchema.ts +10 -1
  48. package/typescript/test/schemaContract.test.ts +12 -0
  49. package/typescript/test/typedAuthoring.test.ts +12 -1
  50. package/typescript/test/typedAuthoringCoverage.test.ts +33 -0
@@ -1325,9 +1325,9 @@
1325
1325
  "path": "config.jsonformsExtended.conditionalFields",
1326
1326
  "status": "consumed",
1327
1327
  "evidence": [
1328
- "packages/jsonforms-react-renderer-common/src/conditionalFields.ts"
1328
+ "packages/jsonforms-react-renderer-common/src/objects/conditionalFields.ts"
1329
1329
  ],
1330
- "finding": "Object controls in React Antd and shadcn resolve local conditionalFields before the namespaced default. Defaults off.",
1330
+ "finding": "Object controls and object-context layout entries in React Antd and shadcn resolve local conditionalFields before the namespaced default. Layout descendants inherit their entry decision. Defaults off; other renderer platforms are unverified for direct layout entries.",
1331
1331
  "declaredBefore": false,
1332
1332
  "declaredAfter": true
1333
1333
  },
@@ -1526,6 +1526,17 @@
1526
1526
  "finding": "Config-only overlay activation and exact in-process trusted function capability; external input remains independent.",
1527
1527
  "declaredBefore": false,
1528
1528
  "declaredAfter": true
1529
+ },
1530
+ {
1531
+ "path": "config.jsonformsExtended.markup.textParamSpans",
1532
+ "status": "pending-implementation",
1533
+ "evidence": [
1534
+ "docs/spec.md#94a-styling-named-substitutions",
1535
+ "schemas/jsonforms-extended-config.schema.json#/$defs/markup/properties/textParamSpans"
1536
+ ],
1537
+ "finding": "Accepted host default, overridden by a Label's options.textParamSpans in either direction; renderer consumption and per-platform support have not been verified in this repository. Non-HTML renderers may document a no-op.",
1538
+ "declaredBefore": false,
1539
+ "declaredAfter": true
1529
1540
  }
1530
1541
  ]
1531
1542
  }
package/docs/audit.md CHANGED
@@ -5,6 +5,12 @@ Audited on 2026-09-27 against the local `jsonforms-react-renderers` checkout at
5
5
  `3.9.0-alpha.1`. The historical comparison used
6
6
  `jsonforms-vuetify-webcomponent/packages/example/src/core/jsonschema/specification`.
7
7
 
8
+ This is a historical snapshot, not a current renderer inventory. Counts, source
9
+ comparisons and core-version observations below apply to the audited revision.
10
+ Later authoring contracts and their validation boundary are maintained in
11
+ [spec §29](spec.md#29-json-schema-artifacts-and-validation-boundary); current
12
+ adapter verification belongs in renderer projects.
13
+
8
14
  ## Result
9
15
 
10
16
  The source documents and worked examples were transferred successfully. The
@@ -36,8 +42,9 @@ setting does not establish adapter support.
36
42
  standalone `.mjs` hooks where needed. The package tests their imports and the
37
43
  UI schemas returned by the object and tuple registries.
38
44
 
39
- The published schemas describe current authoring inputs. `start`/`responsive`
40
- are reserved, and `showRemoveButton` remains unimplemented.
45
+ The published schemas describe accepted authoring inputs. `start`/`responsive`
46
+ remain reserved in the spec, with no published shape definitions;
47
+ `showRemoveButton` is also absent pending a settled contract and implementation.
41
48
  `separateReadonlyFromDisabled` is described without claiming renderer support.
42
49
 
43
50
  ## Coverage reviewed
@@ -148,3 +155,11 @@ build tools and source filenames were replaced with neutral responsibilities.
148
155
  Original source hashes and reconciliation decisions remain in `provenance.json`.
149
156
  Redundant historical copies and the separate coverage map have been removed.
150
157
  This reconciliation does not certify that every renderer implements every contract.
158
+
159
+ ## Job-application example provenance
160
+
161
+ This is a job-application example, inspired by the Svelte demo's
162
+ `packages/jsonforms-svelte-demo-common/src/lib/examples/job` schema, UI schemas,
163
+ translations and host actions. Its applicant/job-preference/experience/reference/
164
+ résumé/declaration workflow is the basis for further expansion. This is an adaptation,
165
+ not a direct port: Svelte app-store actions and dynamic defaults are not copied.
@@ -3,10 +3,67 @@
3
3
  ## Runtime contract
4
4
 
5
5
  Conditional presentation is opt-in: options.conditionalFields on an object
6
- Control overrides config.jsonformsExtended.conditionalFields, default false.
7
- Use an object Control at scope # to opt a whole root object into discovery.
6
+ Control or an object-context layout entry overrides
7
+ config.jsonformsExtended.conditionalFields, default false. A root VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot can therefore activate presentation
8
+ without a wrapping Control. Categories and all nested layout variants participate
9
+ in that presentation, including tabs, steppers and accordions. A layout does not
10
+ create a data binding: evaluate against the current object schema and data path,
11
+ not the document root when rendering a nested object or an array item.
12
+
13
+ The first layout at an object boundary owns the option for its layout subtree.
14
+ Resolve its local boolean before the global default; a local false disables that
15
+ projection. Only the owning layout entry's option is read for that layout
16
+ subtree: descendant layouts inherit the decision and MUST ignore their own
17
+ options.conditionalFields, whether true or false. This applies both to enabling
18
+ and disabling projection. Category is structural content of a Categorization
19
+ and inherits its owner's setting; its own option is ignored. Configure the
20
+ Categorization, not an individual Category. The option is also ignored on
21
+ any element that is neither an object Control nor a supported layout entry.
22
+ Object Controls continue to own their own projection and detail layouts.
23
+ A same-object Control can reuse the inherited projection and reserved inactive
24
+ property names; an explicit local false restores its original object schema for
25
+ its own detail. Layout filtering must not enter that Control's options.detail.
26
+ A whole-value editor bound to the current object (for example, a code editor
27
+ at scope "#" or a custom whole-object editor) MUST receive the original authored
28
+ object schema and reference context, including conditions and inactive property
29
+ constraints. It is not an individual field to omit through layout filtering.
30
+ Projection is for object field presentation, not a replacement schema for every
31
+ Control dispatched beneath a layout. A same-object Control presenting object
32
+ fields may reuse the inherited projection as described above; its local false
33
+ still restores the original schema. Scope alone does not distinguish a
34
+ whole-value editor from an object field editor. New nested object and array-item
35
+ boundaries resolve their options independently.
36
+ Ownership is also local to the host form instance. An embedded independent form
37
+ must not inherit another form's projection or disabled state merely because
38
+ both use the root data path.
39
+
40
+ TemplateLayout, registered Template containers and Slot outlets may own an
41
+ object-boundary projection using the same local/global option precedence. A
42
+ registered template's resolved layout inherits its owner's projection; registry
43
+ lookup MUST NOT lose the active field set or create a new object boundary.
44
+
45
+ For templates, conditional omission MUST NOT erase an authored child address.
46
+ Resolve names and collision rules against the original authored child list,
47
+ including children currently inactive. Unnamed child names use their authored
48
+ decimal position. Preserve named and numeric lookup, ordered iteration and
49
+ repeated occurrences without compacting inactive positions into another child.
50
+ A known inactive slot renders no field, no fallback and no unknown-slot warning.
51
+ Its delegated field renderer MUST NOT be mounted. The authored document and
52
+ inactive data remain unchanged; rendering another branch restores the same slot.
53
+ A genuinely unknown name retains the profile's diagnostic/fallback behavior.
54
+ These rules apply to partials, native Slot components and supported expression
55
+ or component-style references. They do not require a profile to support an
56
+ otherwise unsupported template language or syntax.
57
+
8
58
  Existing UI rules and validator behavior are unchanged when omitted.
9
59
 
60
+ Discovery and projection use the same supported reference context. An opted-in
61
+ allOf can contribute properties and required names even without an if; ordinary
62
+ constraint-only branches do not introduce a field projection. Object-context
63
+ layout entry accepts an absent type, type object, or a type array containing
64
+ object. This eligibility does not select a union editor or convert null data into
65
+ an object. Original validation remains authoritative for every permitted type.
66
+
10
67
  Evaluate if against the current object using the host validator and original
11
68
  reference context. Apply then if it matches and else otherwise; do not derive
12
69
  activity from validation error lists. Conditions still apply in NoValidation.
@@ -17,9 +74,46 @@ Schema-valued Draft-07 dependencies activate on property presence, including
17
74
  false, null and empty strings. Array-valued dependencies contribute required
18
75
  markers, not new fields. Active allOf branches contribute conjunctively.
19
76
  Base fields remain visible; active branches may change their required markers.
77
+ For a base field, the required asterisk appears exactly when the base schema or
78
+ an active branch requires it; it disappears when no active constraint requires
79
+ it, subject to the existing hideRequiredAsterisk presentation option. Visibility
80
+ and requiredness are independent. Explicit layouts never acquire extra controls
81
+ from discovery: only authored bindings participate. Generated object details
82
+ continue to discover active fields.
20
83
  Inactive branch-only fields disappear without data deletion or default insertion.
21
84
  Retained inactive properties are reserved from the additional-property editor.
22
85
 
86
+ Moving controls among groups, columns and categories must not change conditional
87
+ semantics or introduce frames. Preserve layout options, regions, rules, order and
88
+ empty authored containers. A Group's header, footer and cover belong to the same
89
+ object boundary as its body: field bindings use the projection and inactive
90
+ branch-only bindings are omitted, including a directly bound cover Control.
91
+ Layouts inside regions inherit the owner's decision; filtering still stops at
92
+ Control detail boundaries. Preserve unbound region content and apply the normal
93
+ Group presentation rules when a region becomes empty. Apply ordinary UI rules
94
+ after determining active conditional bindings. Project once per owning object boundary, rather than
95
+ reevaluating the same conditions for every nested layout. Never traverse a child
96
+ Control's options.detail as if it belonged to the parent object.
97
+
98
+ Filtering a sibling MUST NOT discard a retained editor's focus, draft value or
99
+ pending update merely because its position in the filtered list changed.
100
+ Repeated bindings are separate authored occurrences and MUST retain independent
101
+ editing state. A change to an editor's own binding, selected renderer or value type
102
+ may require replacement; removing an unrelated binding does not. These are
103
+ observable requirements, not a requirement to use a particular component identity
104
+ mechanism. They apply to Group regions and splitter panes as well as ordinary
105
+ layout children.
106
+
107
+ Renderers SHOULD cache immutable-schema discovery and reuse unchanged presentation
108
+ structure. Editing an ordinary value need not rebuild the presentation when branch
109
+ decisions, dependency presence and effective constraints are unchanged. Equal
110
+ visible field names alone do not establish equal presentation: requiredness and
111
+ constraints can still differ. Always evaluate active conditions against current
112
+ data. Do not remove data-mutation protection from host validator evaluation as a
113
+ performance shortcut. Disabled projection MUST NOT evaluate conditional predicates
114
+ or filter authored layout content; lightweight ownership bookkeeping may remain
115
+ to preserve nested override rules and live configuration behavior.
116
+
23
117
  Only the presentation schema is projected. Original document validation remains
24
118
  authoritative, including additionalProperties and branch constraints. Projection
25
119
  must retain overlapping property constraints rather than replace earlier ones.
@@ -33,15 +127,24 @@ Generated object details include active properties. Explicit detail layouts and
33
127
  registered layouts keep their authored order and containers; ordinary Control
34
128
  scopes bind against the active object schema. Inactive branch-only bindings are
35
129
  omitted. Group fields wherever desired, including tabs and columns. No special
36
- additional-properties collection is required. Empty authored containers are kept.
130
+ additional-properties collection is required. Empty authored containers are kept:
131
+ conditional filtering MUST NOT prune a Group, Category, Categorization or plain
132
+ layout merely because its children were filtered out. An empty HorizontalLayout
133
+ or VerticalLayout may have no visible interior, but retains its existing parent
134
+ layout slot and applicable options, including a slot's styling marker (§5.7 of
135
+ the specification). This does not require an extra wrapper, minimum size, fixed
136
+ gap or identical pixels across platforms. Ordinary UI rules may still hide a
137
+ container; styling markers MUST NOT give hidden elements layout space.
37
138
  Standard detail GENERATE/REGISTERED/inline semantics remain in effect.
38
139
 
39
- The implemented first slice discovers properties, required names, if/then/else,
140
+ The initial discovery scope covers properties, required names, if/then/else,
40
141
  allOf and Draft-07 dependencies at each rendered object boundary. It does not
41
142
  infer fields from not, contains or alternatives inside anyOf/oneOf. Arbitrary
42
143
  remote references, nested $id rebasing and contradictory editor constraints
43
- are not certified. Branch ownership under reusable Template/Slot models is not
44
- filtered by this first slice; author branch fields directly in the detail layout.
144
+ are not certified. Template/Slot ownership and inactive-slot address preservation
145
+ are part of the accepted contract above. The [conditional template example](../examples/conditional-template-slots/README.md)
146
+ and `conditional-template-*` vectors describe acceptance cases; their presence
147
+ does not establish that an adapter implements them.
45
148
 
46
149
  ## Graphical editor contract
47
150
 
@@ -68,6 +171,30 @@ by this feature. Keep JSON Schema validation and UI-schema placement separate.
68
171
  categories belong to categorizations, detail layouts use the edited value's
69
172
  scope, and a Slot fallback uses one layout to hold multiple controls.
70
173
 
174
+ ## Acceptance and implementation status
175
+
176
+ The conditional-fields example demonstrates both object-Control and direct-layout
177
+ entry points. The conditional-layout behavior vectors are portable acceptance
178
+ inputs, not executed renderer tests. This package does not certify current React
179
+ or other adapter support for direct-layout entry, Group regions, whole-value
180
+ schema preservation, template slots, editor continuity or diagnostic ownership.
181
+ Record real registry test results and the tested revision in each renderer
182
+ repository. The dated source audit below has its own narrower evidence boundary.
183
+
184
+ ### Svelte source audit (2026-12-03)
185
+
186
+ Inspection of the Svelte checkout at `d7ae9954` found object-Control conditional
187
+ projection, but did not establish direct-layout entry support. Its discovery
188
+ helper rescans conditional/reference/allOf structure; its layout filter recreates
189
+ containers and traverses `elements`, without filtering Group regions. Portable
190
+ layout and region child keys use positions, so conditional removal before a
191
+ retained editor presents the same identity risk described in the pitfalls.
192
+ The object-detail path passes its projected schema onward; whole-value editor
193
+ restoration needs component-level verification. These are source audit findings,
194
+ not claims that renderer interaction cases were executed or that the port has
195
+ adopted the clarified layout contract. Existing projection/dynamic-tree helper
196
+ tests do not establish focus, draft or performance behavior in native components.
197
+
71
198
  ## Follow-up priorities
72
199
 
73
200
  1. More conditional compositions and named-template placement coverage.
@@ -1,9 +1,15 @@
1
1
  # JSON Forms Extended — External Resources and Reactive Data Binding
2
2
 
3
- **Status:** Proposed design for specification review
3
+ **Status:** Proposed design for specification review; outside static v1 conformance\
4
4
  **Scope:** Portable UI schema contract, host-provided resource resolution, runtime integration, security, and optional interaction capabilities
5
5
  **Target runtimes:** React, Vue, Svelte, Kotlin/Android, and other JSON Forms-compatible implementations
6
6
 
7
+ This document does not define published authoring options or current adapter
8
+ support. It proposes an extension to the [experimental `$dynamic` profile](spec.md#11-dynamic-values-and-path-grammar);
9
+ `resources` is not an existing evaluation namespace. Requirements and “V1” below
10
+ refer to a future resource profile, not the consolidated specification's v1.
11
+ See the [backlog](todo.md#future--other-designs) for promotion status.
12
+
7
13
  ## 1. Executive decision
8
14
 
9
15
  Introduce a **small, portable external-resource binding contract** rather than a REST-aware renderer or a full application orchestration framework.
@@ -51,7 +57,7 @@ A Camunda task form needs to select an assignee. The host may retrieve users fro
51
57
  ```text
52
58
  Extended UI Schema
53
59
  ├── Control / Layout / custom renderer options
54
- ├── $resource references (virtual names + parameters)
60
+ ├── $resources aliases (virtual names + parameters)
55
61
  └── $dynamic bindings (arbitrary target paths)
56
62
  │
57
63
  ▼
@@ -11,14 +11,14 @@ This guide is for new renderer implementations, including ports to other languag
11
11
  5. [Web and TypeScript notes](implementation-web-typescript.md), where applicable.
12
12
  6. [Behavior vectors](../conformance/behavior.json) and [examples](../examples/README.md).
13
13
 
14
- The specification and renderer acceptance guide govern requirements. This guide explains how to preserve them; it does not turn gaps in an existing implementation into the contract. The [Draft-07 audit](draft-07-visual-support.md) records known limits, not a universal certification. If these documents conflict, identify and reconcile the conflict instead of silently copying a reference implementation.
14
+ The specification and renderer acceptance guide govern requirements. This guide explains how to preserve them; it does not turn gaps in an existing implementation into the contract. The [Draft-07 checklist](draft-07-visual-support.md) defines editing cases to verify, not a universal certification. If these documents conflict, identify and reconcile the conflict instead of silently copying a reference implementation.
15
15
 
16
16
  ## What a comparable implementation preserves
17
17
 
18
18
  - Typed JSON values, literal keys, schema constraints and data paths.
19
19
  - Renderer selection, option precedence and supported authoring capabilities.
20
20
  - Field labels, descriptions, local errors, container errors and action placement.
21
- - Confirmation, selection, editing, focus and keyboard behavior.
21
+ - Confirmation, selection, editing, focus and keyboard behavior. Independent informational overlays must not acquire dismissal ownership over edit dialogs merely through native stack order.
22
22
  - Translated built-in and authored text, including error overrides.
23
23
  - Search and sorting based on displayed summaries where specified.
24
24
  - Responsive containment, collection boundaries and pagination placement.
@@ -33,7 +33,7 @@ Use native components and theme tokens. A native error icon may differ in shape;
33
33
  | Input adornment | Apply to supported input-like variants, including time, duration, cron and password where they expose a coherent text-entry surface. By default, start sits before native leading icons and end after native trailing icons. Use an established library slot order where applicable; translated content remains accessible without entering the value or obscuring built-in actions. |
34
34
  | Invalid ordinary control | Native invalid styling, accessible state and the applicable error indicator; readable error text below the control. Tooltip-only feedback is insufficient. |
35
35
  | Table cell | Column header supplies the label. Compact local feedback belongs beside/in the cell; error text is available through the accessible indicator/tooltip instead of expanding every row. |
36
- | Container | Direct errors stay at the container boundary; descendant errors use a localized summary and do not replace field-level feedback. |
36
+ | Container | Direct errors stay at the container boundary; descendant summaries follow the container-specific contract and do not replace field-level feedback. Object direct-error feedback excludes a child-error notice. |
37
37
  | Dynamic property | One property-name label. Name error indicator stays beside it, with edit/delete actions aligned separately. |
38
38
  | Object | The resolved Group identifies the object boundary. Do not replace it with a VerticalLayout merely because the title is absent. Omit empty static sections and redundant internal frames. |
39
39
  | Collection | Pagination remains inside the collection boundary, below its content. |
@@ -61,98 +61,50 @@ When work reveals an ambiguity or a commonly overlooked behavior:
61
61
  4. Record platform limits explicitly. Keep normative requirements separate from optimization advice and implementation certification.
62
62
  5. Link the new material from the relevant example or guide.
63
63
 
64
- Do not catalogue every typo, missing import or accidental regression. Record lessons another competent implementer could reasonably miss when reading the schema/specification. Describe the final behavior rather than a chronological bug history. The entries below were seeded from renderer fixes and existing spec material; they are not an exhaustive audit of all historical changes.
64
+ Do not catalogue every typo, missing import or accidental regression. Record lessons another competent implementer could reasonably miss when reading the schema/specification. Describe the final behavior rather than a chronological bug history. The [pitfalls](implementation-pitfalls.md) collect these lessons; they are not an exhaustive audit of all historical changes.
65
65
 
66
- ### Authoring mixed values as JSON code
67
-
68
- Set `options.structuredLayout: "code"` on a mixed Control, or `jsonformsExtended.mixed.structuredLayout: "code"` in config. Tree remains the default. Code mode edits the entire value, including scalars and null, without a separate type selector. It requires the extended Monaco renderer registry and the additional-error provider (`ExtendedJsonForms`, or the additional-error store integration).
69
-
70
- Monaco validates the bound section schema, with local references resolved against the document schema. Invalid JSON text stays in the editor and contributes an owner-scoped additional error; it must not overwrite the last parsed value. Parsed values update normally and AJV reports schema errors. Do not duplicate Monaco schema diagnostics into additional errors. Hosts must gate submission on additional errors as well as schema errors, because an invalid draft is newer than the stored value. Multiple editor models must retain independent schema registrations and clean them up on unmount.
66
+ ## Authoring mixed values as JSON code
71
67
 
68
+ Use the [mixed code contract](spec.md#authoring-mixed-values-as-json-code) for
69
+ configuration and parsing/error semantics. Verify independent model registrations,
70
+ local-reference context, additional-error ownership and submission gating through
71
+ the actual host integration. An invalid draft must remain editable without
72
+ replacing the last parsed value.
72
73
 
73
74
  ## Recursive node tree presentation
74
75
 
75
- A Control can opt into a tree with a selected-node detail pane using
76
- `options.recursiveTree: { childrenProperty: "children", labelProperty: "name" }`.
77
- Both properties name direct members of each node, not dotted paths. The tree
78
- omits intermediate collection and scalar-property entries. Unnamed nodes use
79
- an index label. The optional `detail` UI schema is relative to the selected node;
80
- it must not enable recursiveTree again. Branch layouts from the UI schema
81
- registry remain available. Without this option, recursive controls retain their
82
- existing nested presentation. This differs from mixed `structuredLayout: "tree"`,
83
- which navigates arbitrary JSON structure.
84
-
85
- The selected node's child collection retains native add/delete behavior and
86
- uses links to child editors rather than recursively expanding their fields.
87
- Tree rows also expose rename and delete actions. Rename edits the configured
88
- label property's value, not an object key, and validates the new value against
89
- its schema. Delete removes the node from its parent's child array and respects
90
- minItems, read-only ancestors, and deletion confirmation (the mixed catalog).
91
- The displayed root cannot be deleted. Confirmation rechecks the current target
92
- and permissions to avoid deleting a replacement node at a reused array index.
93
- Editing a node preserves sibling data. Node error indicators include descendants
94
- and follow the container-indicator and validation-visibility settings. After a
95
- selected node is removed, select its closest remaining parent. Navigation remains
96
- available in read-only forms; mutations remain disabled.
97
-
98
- The recursive-tree example includes a Tree editor tab for comparison.
76
+ The [recursive node tree contract](spec.md#recursive-node-tree-presentation)
77
+ distinguishes node-label renaming from mixed-tree object-key renaming. Exercise
78
+ child creation, ancestor permissions, confirmation after target replacement,
79
+ root deletion prevention and parent selection after removal. Use the
80
+ [recursive-tree example](../examples/recursive-tree/README.md); publish executed
81
+ adapter results separately from the example's acceptance instructions.
99
82
 
100
83
  ## Array detail resolution
101
84
 
102
- Array controls support these case-insensitive string modes:
103
-
104
- | detail | Behavior |
105
- | --- | --- |
106
- | Omitted or DEFAULT | Keep normal array presentation. Schema nesting may still require a nested editor. |
107
- | GENERATE | Use a nested editor and generate its detail UI schema without consulting the registry. |
108
- | REGISTERED | Use a nested editor; consult the UI-schema registry, then generate if no entry matches. |
109
- | Other strings, including GENERATED | Same registry-first behavior as REGISTERED, matching JSON Forms core. |
110
- | Inline UI schema | Use that layout for the item, with scopes relative to the item schema. |
111
-
112
- GENERATE is the canonical upstream implementation spelling. The upstream controls
113
- webpage says GENERATED, but that spelling does not bypass the registry in core.
114
- An explicit table option retains this project's table-selection precedence.
115
- Registry lookup and detail rendering are separate from renderer selection:
116
- DEFAULT does not force a table for structurally nested items.
117
- Use the existing detail mechanism for custom layouts instead of inventing a
118
- second generated/registered switch.
119
-
120
- The array-detail-modes example demonstrates a matching registry entry, generation,
121
- inline layout, DEFAULT, and registry fallback.
85
+ Follow [§18.6](spec.md#186-shared-detail-ui-schema-selection) and the
86
+ [array mode table](spec.md#array-detail-resolution). Verify registry bypass for
87
+ `GENERATE`, registry-first handling for `GENERATED`, and normal nested selection
88
+ with `DEFAULT` through the real registry. The
89
+ [array-detail-modes example](../examples/array-detail-modes/README.md) provides
90
+ matching, fallback and inline cases.
122
91
 
123
92
  ## Editor detail modes and mixed type overrides
124
93
 
125
- The detail resolver is also used for object and mixed editors. Explicit editor
126
- details in composite cells, tuple-field editors, recursiveTree.detail, and row
127
- editors accept the same string modes or inline layout. GENERATE bypasses registry
128
- lookup and preserves that intent through a fallback Control. REGISTERED and other
129
- strings use the registry before the context-specific fallback. DEFAULT preserves
130
- normal presentation; it does not mean table outside array selection. An omitted
131
- option retains the editor's existing default, which may already be a registered
132
- layout. Scopes in inline layouts are relative to the edited value's schema.
133
-
134
- Tuple container detail remains a position layout scoped to the whole tuple.
135
- Do not apply an array-item editor layout to each tuple position.
136
-
137
- Mixed controls accept object-detail, array-detail, string-detail, number-detail,
138
- integer-detail, boolean-detail, and null-detail. For the current mixed value,
139
- the selected type's option takes precedence over detail, including string modes.
140
- This is a project extension, not a new upstream detail mode. It does not change
141
- structuredLayout (tree/nested/code). Tree mode uses it for that mixed value's root
142
- detail pane; it does not impose a root-specific layout on every descendant.
143
- Code presentation edits the whole value and does not use these field layouts.
144
- Null retains the existing no-value-control presentation.
145
-
146
- See the editor-details example.
94
+ Use the [editor detail contract](spec.md#editor-detail-modes-and-mixed-type-overrides)
95
+ and [editor-details example](../examples/editor-details/README.md). Check that
96
+ registry-bypass intent survives fallback dispatch, inline scopes remain relative
97
+ to the edited value, and mixed root-specific details do not leak to descendants.
98
+ Keep tuple position layouts distinct from item editor layouts.
147
99
 
148
100
  ## Named templates are separate from ranked detail lookup
149
101
 
150
- Resolve Template.name against entry.uischema.name in registry order without
151
- calling testers. Slot.name resolves the inherited caller-content map, with local
152
- named children overriding it; fallback is the first Slot.elements child.
153
- Preserve schema, path and enabled state through both dispatches. A UI-model name
154
- is not a data binding. Named-only registry entries should return -1 from testers
155
- so ordinary detail selection does not accidentally choose them.
102
+ Follow [Template and Slot lookup](spec.md#134-template-and-slot) independently
103
+ of ranked detail selection. Preserve schema, path and enabled state through
104
+ both dispatches. Named-only registry entries should return -1 from testers so
105
+ ordinary detail selection does not accidentally choose them. See the
106
+ [lookup ownership pitfall](implementation-pitfalls.md#template-lookup-policies-have-different-ownership-boundaries)
107
+ for duplicate names and recursion boundaries.
156
108
 
157
109
  The template-slots example covers supplied content, fallback, empty slots and
158
110
  nested overrides. Implementations should also check missing-name diagnostics,
@@ -161,20 +113,107 @@ duplicate-name diagnostics and cycle protection against the normative requiremen
161
113
  ## Conditional fields
162
114
 
163
115
  See [conditional field presentation and graphical authoring](conditional-fields.md).
164
- Use `options.conditionalFields: true` on an object Control or the default
165
- `config.jsonformsExtended.conditionalFields`. Local false opts out.
166
-
116
+ Use `options.conditionalFields: true` on an object Control or an object-context
117
+ layout entry (VerticalLayout, HorizontalLayout, Group, Categorization, TemplateLayout, Template or Slot), or use
118
+ `config.jsonformsExtended.conditionalFields` as the default. Local false opts out.
119
+ The entry owns the projection for descendant layouts and Categories at that
120
+ object boundary; their local options are ignored in either direction. Filter
121
+ Group regions as well as bodies, and retain empty authored containers and
122
+ existing layout slots. Whole-value editors retain the original schema; object
123
+ field editors may reuse the projection. Nested object and array-item boundaries
124
+ resolve independently. Reset inherited state at every independent host form,
125
+ even when its data path matches the enclosing form.
126
+ Explicit layouts preserve placement and update conditional required indicators
127
+ without generating extra controls. See the conditional-fields contract for
128
+ ownership, validation, examples and platform support limits.
129
+
130
+
131
+ Preserve retained editors' focus, drafts and pending writes when an earlier
132
+ conditional binding disappears, including Group regions and splitter panes. Keep
133
+ occurrence identity separate from filtered indices and data-binding scope. Cache
134
+ immutable discovery and reuse unchanged projections without caching away current
135
+ condition evaluation. See [editor continuity](implementation-pitfalls.md#conditional-filtering-must-preserve-retained-editing-sessions)
136
+ and [bounded static work](implementation-pitfalls.md#conditional-presentation-needs-a-bounded-static-path).
167
137
 
168
138
  ## Choice-card branch details
169
139
 
170
- Resolve each branch card's detail mode before dispatching its editor. GENERATE
171
- must bypass registry selection, including a previously selected registered
172
- layout; REGISTERED uses the resolved branch schema with the control's schema
173
- scope, data path and document root. Inline layouts remain relative to the branch
174
- value. Missing registrations fall back to generation. Value-choice cards do not
175
- use branch editors.
140
+ Apply the [choice-card detail contract](spec.md#choice-cards) before dispatching
141
+ the branch editor. Check registry bypass even after a registered detail was
142
+ selected, then verify nested scope and reference-root preservation through the
143
+ actual renderer. Value-choice cards do not use branch editors.
176
144
 
177
145
  The choice-controls Card detail modes example covers generation with a matching
178
146
  registry, registry selection and fallback, inline layouts, and editing a nested
179
147
  value. Check the example in English and Bulgarian, including registry fallback
180
148
  for Postal mail.
149
+
150
+
151
+ ## Comparable renderer contract tests
152
+
153
+ Maintain matching behavioral cases for each supported renderer family. Shared
154
+ helper tests establish the helper policy, while renderer integration tests must
155
+ also verify that the real registry supplies the context, options, validator and
156
+ callbacks required to apply it. Use the same input data, option-precedence cases,
157
+ expected committed values and cancellation outcomes across families. Adapt widget
158
+ selectors and host wrappers to each UI library.
159
+
160
+ Exercise non-default states as well as initial rendering. Include clearing by
161
+ button and by deleting text, literal dynamic keys, referenced isolated schemas,
162
+ confirmation accept/cancel and policy overrides, locale changes, external data
163
+ replacement, focus retention, array reorder/deletion, and temporal serialization
164
+ and bounds. Rendering an example establishes only the assertions executed by that
165
+ test. Record missing renderer or browser interaction coverage explicitly.
166
+
167
+
168
+ ## Verify native adapter policy boundaries
169
+
170
+ After testing shared logic, execute the same operation through each native registry.
171
+ Check script permission and pending action behavior, batch deletion confirmation,
172
+ and accessible unset/invalid primitive status. A rendering slot does not imply its
173
+ operation policy is connected. See [adapter boundaries](implementation-pitfalls.md#adapter-boundaries-must-retain-operation-semantics)
174
+ and the proposed `adapter-operation-policy` and `primitive-presence-presentation`
175
+ vectors. Record actual host test results separately from proposed vectors.
176
+
177
+
178
+ ## Host styling hooks depend on the rendering platform
179
+
180
+ Implement the contracts in [§5.7](spec.md#57-host-styling-markers) and
181
+ [§9.4a](spec.md#94a-styling-named-substitutions) at the layout-slot and Label
182
+ text boundaries. Keep host CSS separate from the form definition. A DOM host
183
+ needs access to the relevant styling boundary; document Shadow Root limits.
184
+ A native or canvas renderer may expose equivalent names or document a no-op.
185
+ Do not infer support from the implementation language or report a no-op as
186
+ implemented CSS hooks.
187
+
188
+ Compare marker-enabled and marker-disabled Markdown output after unwrapping
189
+ only generated spans. Preserve parsing and URL decisions, and use unmarked
190
+ output if equivalence is uncertain. Resolve the Label's own `options.textParamSpans`
191
+ before the host default and then false; explicit false must survive option
192
+ merging. Ignore unchecked non-boolean local values as omitted. Derive marker
193
+ eligibility only from declared parameter keys. Text has no implicit locale:
194
+ expose it through a parameter such as `"language": "{locale}"`; a parameter
195
+ named `locale` is also valid. The host default is not a permission gate, and layout options do not
196
+ cascade. Skip tracking and additional parsing when the effective value is false. See the [pitfall](implementation-pitfalls.md#host-styling-markers-must-not-change-content)
197
+ and the acceptance cases in the [Label example](../examples/label-interpolation/README.md).
198
+ Renderer support remains unverified until an adapter executes the cases.
199
+
200
+
201
+ ### Conditional discovery and object eligibility
202
+
203
+ Use the original reference root during both conditional discovery and projection.
204
+ Include supported referenced branches and ordinary allOf field contributions;
205
+ cache only completed searches by schema and reference-root identity. Object-context
206
+ layout eligibility includes type arrays containing object. Preserve null values
207
+ and original document validation. See the conditional discovery pitfall and the
208
+ conditional-layout-discovery-* behavior vectors for adapter acceptance cases.
209
+
210
+
211
+ ### Templates inside conditional projections
212
+
213
+ TemplateLayout, Template and Slot participate in object-boundary projection.
214
+ Keep known inactive child slots addressable as empty content. Preserve authored
215
+ numeric addresses and iteration, not just explicit name maps; dense-array fallback
216
+ can otherwise reintroduce aliases. Distinguish known inactive slots from unknown
217
+ names, retain genuine diagnostics, and forward the projection through registered
218
+ layouts. Execute conditional-template-* acceptance vectors and see the associated
219
+ pitfall for focus/selection and DOM staging requirements.