Repository navigation
feat(catalogs): add experimental v1.0 decision layout grammar and basic catalog patterns - #4153
Closed
gspencergoog wants to merge 5 commits into
Closed
gspencergoog wants to merge 5 commits into
gspencergoog wants to merge 5 commits into
Conversation
Contributor
🧹 Docs Site Preview RemovedThe preview for PR #4153 has been cleaned up because the pull request is closed. |
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the experimental decision layout grammar and catalog patterns, adding schemas, archetypes, and documentation under catalogs/decision/v1/, alongside the basic catalog's pattern implementation in catalogs/basic/v1/patterns.json. Feedback on the changes highlights a critical schema validation issue in patterns.json where @call is incorrectly written as call in a condition check. Additionally, it is recommended to consistently implement the checks block across all input field variants in patterns.json to enforce the required constraint uniformly.
gspencergoog
force-pushed
the
feat/decision-catalogs
branch
from
November 13, 2026 22:50
68590c4 to
7577cf4
Compare
gspencergoog
marked this pull request as ready for review
November 16, 2026 21:59
gspencergoog
added a commit
that referenced
this pull request
Nov 18, 2026
…ic catalog patterns Squashed from the stacked branch history (backup: refs/backups/pre-squash-20261118/feat/decision-catalogs). PR: #4153
gspencergoog
force-pushed
the
feat/decision-catalogs
branch
from
November 18, 2026 17:48
ccf0f9a to
437e44b
Compare
gspencergoog
added a commit
that referenced
this pull request
Nov 18, 2026
…ic catalog patterns Squashed from the stacked branch history (backup: refs/backups/pre-squash-20261118/feat/decision-catalogs). PR: #4153
gspencergoog
force-pushed
the
feat/decision-catalogs
branch
from
November 18, 2026 20:43
437e44b to
4ca38f3
Compare
…ic catalog patterns Squashed from the stacked branch history (backup: refs/backups/pre-squash-20261118/feat/decision-catalogs). PR: #4153
…namespace Move the decision archetype and pattern JSON Schema $id and $schema URLs from https://a2ui.org/specification/v1_0/decision/ to https://a2ui.org/specification/inference_formats/experimental/decision/v1/ so the experimental schemas stay outside the normative v1.0 specification namespace. Signed-off-by: Greg Spencer <gspencer@google.com>
…tion schema
- Allow {$action: <slot>} in eventDirective via oneOf and remove stale $switch text in pattern_definition.json.
- Guard unbound optional slots in Basic v1 patterns.json (compose.draft, collection rows picture, headline.label, filters search, and form ChoicePicker options).
- Document the $format directive in catalogs/decision/README.md.
Signed-off-by: Greg Spencer <gspencer@google.com>
- Remove unimplemented duration kind from formatDirective schema and catalogs/decision/README.md. - Restore $if: query guard on filters_search in Basic v1 patterns.json. Signed-off-by: Greg Spencer <gspencer@google.com>
gspencergoog
force-pushed
the
feat/decision-catalogs
branch
from
November 24, 2026 18:01
dc3680c to
40944f5
Compare
gspencergoog
marked this pull request as draft
November 30, 2026 23:51
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the experimental layout grammar (
catalogs/decision/v1/) and Basic Catalog v1.0 recipes (catalogs/basic/v1/patterns.json) for thedecisioninference format. Both schemas and data files use unpublished schema identifiers underhttps://a2ui.org/specification/inference_formats/experimental/decision/v1/, carrygrammarVersionfields, and mark themselves as experimental, non-normative Python assets.Reviewer Focus
catalogs/decision/v1/archetype_definition.jsonandcatalogs/decision/v1/archetypes.json: inspect Stage 1 (job) and Stage 2 (anatomy,salience,instance) questions andthresholds. Thecollectionblock'siconslot accepts onlyicon-typed pointers, so domain enums (dietary tags, statuses) route tobadgeormetainstead of rendering as icon names.catalogs/decision/v1/pattern_definition.json: inspect the experimental$idnamespace (https://a2ui.org/specification/inference_formats/experimental/decision/v1/), the singlecatalogIdheader,grammarVersion,$eventslot resolution ($slot,$default),$actionContextrules, and the$formatdirective (formatDirective: aslotplus optionalkindandtemplate) that lets a recipe ask the expander forformatCurrency,formatNumber, orformatStringwhen the catalog declares them.catalogs/basic/v1/patterns.json: check the Basic Catalog v1.0 recipes,$ifguards onitem_imgandprose_body,$formatonheadline,facts,steps, and collectionitem_meta, and$actionContextbindings on collection items.Changes
catalogs/decision/v1/archetype_definition.jsonandcatalogs/decision/v1/archetypes.jsondefining layout families (inform,choose,input,act,settings), archetypes, slots, and thresholds, with$id/$schemaunderhttps://a2ui.org/specification/inference_formats/experimental/decision/v1/.catalogs/decision/v1/pattern_definition.jsondefining the JSON Schema for catalog pattern files, pinned to one v1.0catalogIdandgrammarVersion: "1", including the$formatdirective.catalogs/basic/v1/patterns.jsonmapping decision blocks (headline,facts,collection,form,actions,groups,prose,steps) to Basic Catalog v1.0 components.proserenders a heading without a body (so a section heading can stand alone), andheadline_valueuses$formatwith a### {value}template because BasicText.varianthas no heading levels.catalogs/decision/README.mdand updatecatalogs/README.mdto document the directory layout and experimental status.Impact & Risks
catalogs/. Existing v0.8, v0.9, v0.9.1, and v1.0 protocol schemas and Basic Catalog component definitions are unchanged.$idURLs live under the experimental namespace and are unpublished identifiers only.https://a2ui.org/specification/v1_0/catalogs/basic/catalog.json). Pre-1.0 catalogs are out of scope for thedecisionformat.Testing
catalogs/decision/v1/archetypes.jsonagainstcatalogs/decision/v1/archetype_definition.jsonwith Draft 2020-12 JSON Schema validation.catalogs/basic/v1/patterns.jsonagainstcatalogs/decision/v1/pattern_definition.jsonand check that every referenced component exists incatalogs/basic/v1/catalog.json.