Files
jinyeandQwen-Coder 7ad260bceb feat(managed-agent): persist Session execution diagnostics (#16642)
* feat(managed-agent): add Session resource and agent-trace diagnostics

Expose configured Skills/MCP resources with bounded persisted discovery
history and the direct child-agent invocation trace through Public GET
and WebShell query routes, and add the Session diagnostics dialog with
Resources and Child agents tabs.

Reads use existing persisted records only: no write path, storage
version change or DDL. Split from #16475.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(managed-agent): persist Session model statistics and request context

Collect Session-owned model statistics across main, Hook and compression
sources and the last committed main-request context, fold them at the
native commit boundary, project them into the existing Session records,
and expose them through Public GET and WebShell query routes with the
Context and Model statistics tabs.

The diagnostic resource raises the stored reader floor to storage 3; the
diagnostics-aware csi-files-retirement/2 profile carries it without
widening CSI execution admission. Split from #16475.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(managed-agent): persist Session execution diagnostics

Record per-invocation tool admission, execution and delivery, explicit
built-in file operations, loaded Skill instructions and expandable child
invocations alongside the existing message, intent and receipt commits,
project them atomically into the Session records, and expose activity
statistics and pages through Public GET and WebShell query routes with
the Activity tab and invocation tree.

Execution evidence raises the stored reader floor to storage 4. Split
from #16475 and carries the content previously reviewed as #16499.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(cli): consolidate hosted tool-turn diagnostic bookkeeping

Route policy refusals through one denied() helper, merge invocation
overrides through noteDiagnostic(), reset per-batch diagnostic state in
one place, share the Runtime Broker bypass predicate with the tool-kind
classifier, and validate diagnostic file paths with the same rule the
evidence parser enforces.

---------

Co-authored-by: Qwen-Coder <[email protected]>
2026-11-09 07:13:59 +00:00
..