Name: [IMP] viin_ai_agent, viin_ai_base: streaming trace header lifecycle + provider Test Connection

State: Failed finished in 175m

PR State: merged

PR Author: David Tran

PR Author Email:

PR: #69

Committer: David Tran

Committer Email: davidtran.hp@gmail.com

Commit: f87e77d4838020fe7ef4e1a10ec3796459e92b9d

Description:

                                            [IMP] viin_ai_agent, viin_ai_base: streaming trace header lifecycle + provider Test Connection

WI-A (viin_ai_agent): run_streaming() now materializes + closes the viin.ai.trace
header symmetric to run(); run() also closes its header (end_time/status/final_response);
_ensure_trace_header stamps agent_id. Closes the ADR-019 deferred follow-up - streamed
sessions are now observable in the P-OPS-4 cockpit, retention, and proposal.trace_id.
Header create-to-loop span is guarded so an error still closes the header (AGENTS.md #7).

WI-B (viin_ai_base): provider "Test Connection" button (WI-008 WI-F) - a BYOK
reachability/auth probe routed through call_completion (satisfies AGENTS.md #7/#11/#12),
returns {status, latency_ms, model_list} via the built-in display_notification. Vendor
error text is redacted (_redact_secrets) so a BYOK api_key can never leak to the surface.

Docs: roadmap, AGENTS status, observability, wi-008 updated to reflect both changes.

Tests: 333 Odoo-native tests (viin_ai_agent 181 + viin_ai_base 318), 0 failed / 0 error.
                                            

Branch: 17.0

Instance ID: 0

Age:

Up-time: