a2ui-project / a2ui-project/a2ui

[FEATURE]: Expose a structured public SurfaceController diagnostics stream

Aperta
#2,241 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P2 status: first-line-handled type: feature/enhancement
Lingua principale
TypeScript
Stelle
16.4k
Fork
1.3k
Merge medio
2g 13h
PR unite (30g)
134

Descrizione

- [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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.