a2ui-project / a2ui-project/a2ui

[FEATURE]: Expose a structured public SurfaceController diagnostics stream

Offen
#2,241 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
P2 status: first-line-handled type: feature/enhancement
Vorherrschende Sprache
TypeScript
Sterne
16.4k
Forks
1.3k
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
134

Beschreibung

- [x] I have searched the existing issues to make sure this feature has not already been requested.

## Is your feature request related to a problem? Please describe.

Applications and tooling need to attribute parser, catalog, validation, lifecycle, binding, and client-function failures to the message that caused them. Failures currently arrive through logs, throws, or disparate callbacks rather than one structured public controller contract. String logs are unstable for tests and unsafe to persist blindly.

## Describe the Proposed Solution

Add a structured diagnostics stream/callback on SurfaceController with a stable append-only code, severity, safe summary, optional surface/component/message identity, optional caller correlation, bounded structured context, and cause category without requiring raw exception text. Document terminal versus recoverable diagnostics and their ordering relative to message completion.

## Describe Alternatives Considered

Log scraping is unstable; catching only handleMessage exceptions misses recoverable/asynchronous failures; a test-only hook would not support application error UI or telemetry.

## Additional Context

#1860 requests abnormal-finalization handling and discoverable non-critical issues. This is the narrower controller-level primitive those handlers can consume.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.