Skip to content

Improve Personal Assistant guidance for native Gen UI - #1764

Closed
contextablemark wants to merge 8 commits into
mainfrom
contextablemark/genui-guidance
Closed

contextablemark wants to merge 8 commits into
mainfrom
contextablemark/genui-guidance

Conversation

@contextablemark

@contextablemark contextablemark commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Personal Assistant currently receives HTML iframe design instructions even when drawing with the native A2UI catalog. Those instructions describe iframe CSS and grayscale charts, which can misdirect native answers.

Add reusable guidance for choosing useful interfaces, binding controls to live results, drawing labeled native charts, checking facts and operation results, and keeping simple answers in prose. Deliver it through the existing per-run Bot-facts middleware, using the starter package identity and an advertised native catalog. Explicitly scope the retained iframe instructions to HTML on those runs. Other Bots and runs without native Gen UI retain their existing context.

This uses the existing catalog and renderers.

Where it runs

  • New state that outlives a request? None. Guidance is static text; each eligible browser run receives a new context array.
  • What happens on the second replica? That server receives the guidance in the same AG-UI run request. It requires no state from the previous server.
  • Anything serialised? Only the existing run context; no new shared mutation or serialisation lock.
  • Anything fanned out to a browser? No new event path. Existing generated-interface events and history continue through the current runtime.
  • New listener, port, or schedule? None.

Boundary and audit

  • Existing acting calls still use the current gateway, grants and audit paths.
  • No new refusal or failure path; missing profile/catalog simply leaves the existing offer unchanged.
  • Guidance grants no authority. The server still resolves access and checks every tool/action.

Changelog

  • Added an Unreleased entry.

Proof

Same prompt with guidance off and on

I sent this exact message to Personal Assistant in two fresh conversations. I ran the base version first, with the PR guidance off, then ran the PR version with the guidance on. Both runs used GPT-6.1 Terra at Low, the same server, and the same native catalog. The PR guidance was the only change to the run configuration.

Quick favor: make my Lisbon weekend notes easier to glance at here when I’m out. I’d like to see just the day I’m on without sifting through the other two. Friday: Walk from Baixa to Praça do Comércio, then follow the river to Cais do Sodré. Have a slow lunch, return through Chiado, and leave the evening open. Saturday: Spend the morning in Belém, take a bakery break, then choose one museum or a longer walk by the river. Sunday: Explore Alfama early, pick one viewpoint, and have lunch before a quiet café stop or a short riverside walk. I’ve already decided what I’m doing, so no research is needed.

The base run delegated the request and left a task card in the conversation. The PR run drew native Friday, Saturday, and Sunday tabs directly in the reply. I switched to each day and verified its contents.

The same Lisbon prompt with guidance off shows a delegated task card. With guidance on, the reply shows native weekday tabs with Saturday selected.

What Open thread shows

In the guidance-off run, Open thread opens a separate conversation containing the instructions Personal Assistant handed to the delegated task. The task card says Done, but the result inside the thread is marked [blocked]. The reply says it couldn’t place the controls in the conversation, and the thread shows no interactive day tabs.

The guidance-off task thread shows the forwarded Lisbon itinerary and a blocked result saying it could not place the day controls in the conversation.

This is one observed pair. A separate, longer itinerary prompt was delegated in both versions.

Independent review found no actionable issues. Scoped Biome formatting/lint, app typecheck and full production build passed. Relevant and adjacent suites: 102 passed, 2 existing opt-in browser tests skipped, 0 failed.

Real browser checks against the published local server with GPT-6.1 Terra/Low:

  • An ordinary request for an editable weekend budget produced native inputs and a pie directly in chat, with no HTML iframe. Changing Food from $80 to $180 changed the total from $380 to $480 and redrew the pie with the message count unchanged.
  • A simple arithmetic request returned 391 in prose, with no generated interface.
  • Started another Bot, opened the PA's budget while it was still running, then ran the retained Bot again. Both offers retained the original HTML context and contained no PA native guidance.
  • Remaining limitation: a broader fusion-comparison request was delegated and returned a gallery table rather than native A2UI. This guidance does not enforce automatic UI selection or override delegation policy.

davidmckayv added a commit that referenced this pull request Dec 3, 2026
Builds on #1764 by @contextablemark. The native generative UI guidance goes into every run's AG-UI context whenever the run advertises the native catalog, built-in or connected Bot alike; the HTML design guide is scoped to HTML.
@davidmckayv

Copy link
Copy Markdown
Contributor

Brought in as #2831 (credited to @contextablemark), re-done on current main so the guidance reaches every Bot offered the native catalog, not only the built-in Personal Assistant. Closing as superseded. Thanks Mark.

@davidmckayv davidmckayv closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants