Repository navigation
[RFC / Idea] Privacy-Preserving Implicit Intent Awareness for A2UI #2731
Replies: 1 comment 1 reply
|
Here's how I read the proposal. You want the client to notice when someone is struggling with a surface, without shipping their data anywhere, and let an agent offer help if it makes sense. How it works Building it today Getting into A2UI eventually Spec changes need broad support, and there isn't enough of it for this yet. A v1.0 prototype and keeping this thread going are the right next steps. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
I would like to propose IIAP (Implicit Intent Aware Protocol) as an optional, privacy-preserving intent-awareness layer for A2UI.
A2UI gives agents a safe, declarative way to present interactive user interfaces. IIAP explores the complementary direction: how a host can recognize that a user may need help while interacting with an A2UI surface, without uploading raw field values, the complete data model, or arbitrary DOM events.
At a high level, IIAP:
This post is a request for design feedback. It does not propose making IIAP a mandatory part of A2UI, and it does not ask the A2UI project to adopt the existing reference implementation as-is. The main question is whether this capability fits the A2UI ecosystem as an optional Feature Blueprint and, if so, which integration points should be standardized.
Motivation
A2UI already models explicit interactions well. An agent can generate a surface, the renderer can safely display it, and an explicit user action can be sent back to the agent.
There is another class of interaction that is useful but easy to handle badly: the user has not submitted an action or asked a question, but their local interaction suggests that the current UI may be causing friction. Examples include:
A naive solution is to send every browser event, every field value, or the complete data model to the agent. That creates unnecessary privacy exposure, high event volume, unstable renderer-specific semantics, and a risk of turning assistance into tracking.
IIAP instead treats local interaction as a privacy and policy boundary. The client derives a small set of protocol-level semantic events and deterministic patterns, then sends only the minimum context needed for a backend to decide whether offering help would be appropriate.
Goals
The proposed capability has the following goals:
no_intervention,defer, oroffer_help.Non-goals
IIAP is not intended to provide:
Proposed end-to-end flow
flowchart LR A["A2UI surface"] --> B["Local semantic events"] B --> C["Local aggregation and policy"] C --> D["Privacy-safe intent context packet"] D --> E["Backend decision"] E -->|"no_intervention / defer"| F["No UI interruption"] E -->|"offer_help"| G["Optional non-blocking assistance"] G --> H["User accepts, rejects, or dismisses"] H --> I["Correlated feedback"]1. Observation plan
After a final, validated A2UI surface is accepted by the renderer, an adapter derives an observation plan from the surface definition. The plan identifies observable components, their semantic capabilities, owner information, and any host-authorized update targets.
Streaming or otherwise uncommitted UI drafts are not observed.
2. Local semantic events
The renderer or host converts native interactions into a small semantic vocabulary, for example:
These events carry component and surface identity plus temporary, local comparison tokens where needed. They do not carry the original value or text.
3. Local aggregation
The client applies deterministic rules and local thresholds. A pattern such as
selection_reversalmeans only that a sequence of relevant events was observed. It does not mean that the user is confused, undecided, or wants a particular outcome.Short or ordinary interactions produce no packet.
4. Intent context packet
When local policy allows a report, the client emits a packet containing only the context needed for a decision, such as:
The packet excludes raw input, raw visible text entered by the user, stable value hashes, action context values, and the complete current data model.
5. Backend decision
The backend returns one of three outcomes:
no_intervention: remain silent;defer: do not intervene now;offer_help: present an optional assistance offer.Malformed or uncorrelated model output fails closed as no intervention. A model does not directly control the renderer and cannot directly execute an update.
6. Non-blocking assistance
An
offer_helpdecision can lead to:The user can accept, reject, or dismiss the offer while continuing to interact with the original A2UI surface.
Privacy and security model
The privacy boundary is part of the protocol design, not an implementation detail.
Data minimization
Ownership and lifecycle
Consent-gated updates
An update suggestion is intentionally narrower than a general A2UI action:
Relationship to A2UI
IIAP depends on A2UI semantics rather than browser-specific telemetry. Its useful context comes from A2UI concepts such as:
The proposed design does not require changing the base A2UI wire format. IIAP can be implemented as a sidecar protocol and SDK, while an A2UI renderer exposes the minimum semantic observation hooks needed by the adapter.
A2UI v1.0 also defines optional
metadata.extensionsat surface, component, catalog-definition, and action-egress scopes. Those fields may be useful for policy identifiers or correlation metadata, but this RFC does not assume that complete IIAP packets should be embedded in A2UI metadata.Possible upstream integration boundary
If the community finds the capability useful, a minimal upstream boundary could be:
Packet transport, backend decision policy, assistance generation, and presentation could remain in an independent IIAP SDK. This keeps A2UI focused on UI interchange while allowing multiple hosts and languages to implement intent-aware assistance consistently.
Reference implementation status
A reference implementation is being prepared as an Apache-2.0 open-source SDK. It currently includes:
The current candidate version is
0.1.0-rc.1.Important compatibility limitation: the reference adapter has been validated against A2UI v0.8 only. A2UI v0.9.1 is the current stable protocol and v1.0 is a release candidate, so a current-version adapter and conformance suite would be required before claiming support for the active A2UI ecosystem. The architectural proposal is intended to be version-independent, but that still needs to be demonstrated in code.
The SDK itself does not depend on the host application used for integration testing.
Alternatives considered
Send every interaction as a normal A2UI action
Normal actions represent explicit application interactions. Using them for every focus, value change, retry, or viewport event would increase traffic and mix implicit observation with business intent. It would also encourage applications to expose raw values unnecessarily.
Synchronize the complete data model
The complete data model can be useful for explicit application workflows, but it is too broad for deciding whether a user may need help. IIAP is designed to work without it.
Use generic analytics or session replay
Generic telemetry lacks A2UI's portable component, binding, catalog, and surface semantics. Session replay also creates a much larger privacy and governance surface.
Keep the behavior entirely host-specific
A host-only implementation is possible, but every renderer would otherwise invent a different event vocabulary, lifecycle model, privacy boundary, and decision contract. A small optional specification would make implementations interoperable without forcing them into the base protocol.
Let a model inspect the DOM or raw UI events
This is renderer-specific, difficult to validate, and inconsistent with A2UI's declarative trust boundary.
Questions for the A2UI community
metadata.extensionsappropriate for policy and correlation identifiers, or should IIAP avoid A2UI wire metadata entirely?Proposed next steps
If there is community interest, I propose the following sequence:
Feedback on the problem framing, scope, naming, security boundary, and appropriate upstream integration point would be very welcome.
All reactions