feat(a2ui): validation checks + client error message (Phase 3 of the v0.9 migration) - #819
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ntext (Phase 3)
<a2ui-surface> owns the render state store (seed-preserve semantics), so
checks and {path} action-context values resolve against current user input;
failing checks block the event, render inline messages via /_a2uiChecks/<id>
bindings, and emit a VALIDATION_FAILED A2uiErrorMessage.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Aug 17, 2026
feat(a2ui): live sendDataModel round-trip + capabilities helper (Phase 4 of the v0.9 migration)
#820
Merged
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
Phase 3 of the A2UI v0.9.1 migration (follows #817, #818): client-side validation per the official
CheckRuleschema, plus a correctness fix that makes event-time values live.@threadplane/a2ui:A2uiCheckcorrected to the official CheckRule shape ({condition: DynamicBoolean, message}); validator functions added to the standard registry —required,regex,length,numeric,email(all linear-time; composable withand/or/not).@threadplane/chat:<a2ui-surface>now owns the renderStateStore(seed-preserve semantics copied from chat-generative-ui) and passes it to<render-spec>, so event-time logic sees current user input. On an event action: every check rule evaluates againstdataModel ∪ store snapshot; failures block the action, write per-component messages to reserved/_a2uiChecks/<id>store paths that checkable catalog inputs bind for reactive inline display, and emit a spec{"error":{"code":"VALIDATION_FAILED",...}}through the newvalidationErroroutput.TextField.validationRegexp(with a bound value) is enforced as an implicit regex rule. Action-context{path}values are now live$bindStatemarkers substituted at dispatch time — fixing the pre-existing gap where contexts froze the agent-seeded snapshot and user-typed values never reached the agent.checks+ validators; docs updated from "typed, not enforced" to shipped semantics; api-docs regenerated.Additive; the only public-type change (
A2uiCheck) was unused before this phase. Plan:docs/superpowers/plans/2026-08-17-a2ui-v09-phase3-checks.md.Verification
libs/a2ui92 unit tests,libs/chat1133 — green; both libs build + lint clean; pytest twins 56 + 23 passednx affected -t lint test build: green except the pre-existingcockpit-telemetry:lintworktree-environment failure (untouched project)🤖 Generated with Claude Code