Add the generative-ui plugin, capability gating, and surface projection #149

Merged
weichen merged 1 commits from feature/generative-ui-u3 into main 2026-10-11 10:38:27 +00:00
Owner

Why: U3 of the Generative UI proposal - real submission path (generative-ui.present via exposeAsTool with catalog as prompt=validation), schema-repair strategy measured against real M3 deviations, owner-scoped tool gate (disabled stops injecting), ctxasm surface projection for revision loops, doc-ref artifact authorization.

Evidence: unit suites + full go test green; PG-dialect green for cmdbus/ctxasm; env-gated real-model closed loop passes (revise 1->2 with structure change, CNY 0.08).

Impact: New internal/genui; additive hooks in cmdbus/ctxasm/runmgr/runtime/app.

Refs: proposal r2 U3; Dev task feature/generative-ui-u3

Why: U3 of the Generative UI proposal - real submission path (generative-ui.present via exposeAsTool with catalog as prompt=validation), schema-repair strategy measured against real M3 deviations, owner-scoped tool gate (disabled stops injecting), ctxasm surface projection for revision loops, doc-ref artifact authorization. Evidence: unit suites + full go test green; PG-dialect green for cmdbus/ctxasm; env-gated real-model closed loop passes (revise 1->2 with structure change, CNY 0.08). Impact: New internal/genui; additive hooks in cmdbus/ctxasm/runmgr/runtime/app. Refs: proposal r2 U3; Dev task feature/generative-ui-u3
weichen added 1 commit 2026-10-11 10:38:25 +00:00
Why: Generative UI U3 - the agent needs a real submission path and the
next turn needs to see prior pages: a built-in in-process plugin
registers generative-ui.present (exposeAsTool) carrying the catalog
(prompt=validation single source) with a schema-repair strategy
measured against real MiniMax-M3 deviations; the command bus gains an
owner-scoped tool gate so a disabled plugin stops injecting its tool
(execution guard remains in surfacesvc); ctxasm projects saved surfaces
back into context so the model can revise existing structure; doc-refs
are authorized against the owner's real artifacts.

Evidence: unit suites green (genui guards/epoch/doc-ref, gate fail-closed,
projection content); full go test ./... green; cmdbus/ctxasm also green
under AGENT_PG_TEST_DSN; real-model closed loop (env-gated
TestRealModelSurfaceLoop) passes: task->spec->save->projection->revise
with revision 1->2 and structure change, CNY 0.08 total.

Impact: New internal/genui package; additive cmdbus/ctxasm/runmgr/
runtime hooks; no storage or contract changes (U2 layer untouched).

Refs: Documents proposal r2 U3; Core PR #25/#26; Backend #143; Dev task
feature/generative-ui-u3
weichen merged commit 6abf112765 into main 2026-10-11 10:38:27 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#149