execweave 0.8.36__tar.gz → 0.8.37__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of execweave might be problematic. Click here for more details.
- {execweave-0.8.36 → execweave-0.8.37}/PKG-INFO +14 -1
- {execweave-0.8.36 → execweave-0.8.37}/README.md +11 -0
- {execweave-0.8.36 → execweave-0.8.37}/pyproject.toml +3 -2
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/__init__.py +1 -1
- execweave-0.8.37/src/execweave/openai_agents_sdk.py +445 -0
- {execweave-0.8.36 → execweave-0.8.37}/.gitignore +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/LICENSE +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/__main__.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/_conversation_records_core.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/_dashboard_shell_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/_http_proxy_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/_http_proxy_bounded.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/_http_proxy_stage.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/acceptance_output.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/agent_bootstrap.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/agent_topology.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/agent_trace.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/agy_preview_sanitize.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/analysis.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/anthropic.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/anthropic_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/anthropic_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_adapter.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_adapter_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity_collaboration_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_hook_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_record.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_subagent_linkage.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_trace_capability.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/auto_specialized.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/backends.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/benchmark.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_adapter.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_child_transcript.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_delegation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_hook_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_hook_contract.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_model_observer.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/claude_record.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_adapter.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_conversation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_hook_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_hook_entry.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_hook_lifecycle.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_message_diagnostics.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_message_transport_diagnostics.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_record.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_rollout_structures.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_rollout_trace.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/codex_rollout_trace_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/collector.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/command.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/command_privacy.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/content_evidence.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/content_integrity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/content_store.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/controlled_checks.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_archive.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_message_identity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_antigravity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_claude.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_codex.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_common.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_generic.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_lines.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_preview_transcript.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_records.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_records_antigravity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_records_codex.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_records_common.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/conversation_records_ollama.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/correlation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_adapter.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_delegation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_delegation_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_hook_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_hook_contract.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_lifecycle.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/cursor_record.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/dashboard_shell.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/delivery_status.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/entry.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/evidence_availability.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/evidence_grade.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/filesystem.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/finalization.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/focus.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/__init__.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/autogen.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/camel.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/camel_channel.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/metagpt.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/framework_adapters/registry.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/graph.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/graph_ops.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/hook_command.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/hook_delivery.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/hook_input.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/http_proxy.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/http_proxy_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/inference_gateway.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/inference_gateway_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/inference_gateway_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/inference_identity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/inference_identity_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/integrity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/integrity_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/investigation_index.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/litellm_callback.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/litellm_callback_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_core.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_extra_style.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_markup.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_process_layout.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_readability.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_script_a.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_script_b.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_script_c.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_script_d.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/live_view_style.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/model_runtime.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/model_runtime_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/model_runtime_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/observation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/observation_demo.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/openai_agents.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/openai_compatible.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/openai_compatible_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/openai_compatible_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_adapter.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_event_contract.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_full_fidelity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_hook_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_plugin_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_record.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/opencode_task_linkage.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/overhead_benchmark.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/privacy.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/private_io.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/provider_capability.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/provider_lifecycle.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/provider_record.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/reader_identity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/redacted_archive.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/risk.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/rule_pack.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/rule_pack_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/run_assessment.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/runtime_endpoint_availability.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/scalability_benchmark.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/schema.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/scope.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/semantic.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/session_summary.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/sink.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/strace_backend.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/stream_assembly.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/task_artifacts.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/task_validation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/theme.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/top.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/top_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/validate.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/vendor/dagre.min.js +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/view_cli.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_antigravity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_claude.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_codex.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_cursor.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_default.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_ollama.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_opencode.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_agent_panel_registry.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_archive_verifier.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_background_files.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_content_browser.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_content_health.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_content_inspector.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_controlled_checks.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_conversation_sync.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_dashboard_clean.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_dashboard_focus.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_dashboard_hardening.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_dashboard_hardening_v2.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_dashboard_pr70.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_delivery_status.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_edge_decross.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_execution_flow.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_execution_flow_provider_normalization.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_execution_flow_safety.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_external_endpoints.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_flow_canvas.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_flow_layout.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_fold_state.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_framework_flow.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_framework_model_output.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_gif.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_history_browser.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_investigation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_layout_geometry.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_layout_v2.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_layout_v2_detached.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_limits.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_live_layout.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_message_handoffs.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_projection.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_projection_base.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_projection_bridges.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_recorded_sources.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_run_assessment.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_run_guide.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_runtime_evidence.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_semantic_projection.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_session_flow.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_structure_share.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_task_validation.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_tool_mirror_identity.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/viewer_workflow_mode.py +0 -0
- {execweave-0.8.36 → execweave-0.8.37}/src/execweave/workflow.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: execweave
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.37
|
|
4
4
|
Summary: Local AI-agent execution graphs that identify sender/recipient handoffs with no observed receive in graph.json.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Irish-kw/ExecWeave
|
|
6
6
|
Project-URL: Repository, https://github.com/Irish-kw/ExecWeave
|
|
@@ -41,6 +41,8 @@ Classifier: Topic :: System :: Monitoring
|
|
|
41
41
|
Requires-Python: >=3.10
|
|
42
42
|
Requires-Dist: psutil>=5.9
|
|
43
43
|
Requires-Dist: watchdog>=4.0
|
|
44
|
+
Provides-Extra: agents
|
|
45
|
+
Requires-Dist: openai-agents<0.25,>=0.24; extra == 'agents'
|
|
44
46
|
Provides-Extra: dev
|
|
45
47
|
Requires-Dist: cryptography>=44; extra == 'dev'
|
|
46
48
|
Requires-Dist: pillow>=10.0; extra == 'dev'
|
|
@@ -444,6 +446,17 @@ from the merged runtime plus framework evidence. Task prompts and routed
|
|
|
444
446
|
messages remain local content references and are visible from their task and
|
|
445
447
|
agent nodes.
|
|
446
448
|
|
|
449
|
+
## Native OpenAI Agents SDK integration
|
|
450
|
+
|
|
451
|
+
For Python applications built with `agents.Agent`, `Runner.run`, and
|
|
452
|
+
`@function_tool`, ExecWeave provides an optional native trace processor.
|
|
453
|
+
Install `execweave[agents]` and register
|
|
454
|
+
`install_agents_sdk_tracing(capture_mode="metadata_only")` before running any
|
|
455
|
+
agents. It records SDK Agent, generation, tool and handoff spans separately
|
|
456
|
+
from observed OS effects, including source IDs and trace coverage gaps.
|
|
457
|
+
SDK results do not certify remote-host effects. See
|
|
458
|
+
[the Agents SDK guide](docs/openai-agents-sdk.md).
|
|
459
|
+
|
|
447
460
|
## Custom OpenAI Python scripts
|
|
448
461
|
|
|
449
462
|
Use `execweave record -- python my_agent.py` or `execweave live --open -- python my_agent.py` to observe the runtime. For **OpenAI API-key single-/multi-Agent semantic evidence**, wrap the official SDK with `OpenAIAgentRecorder` and explicitly record each Agent's send/receive handoffs. No API key is read by the adapter, and HTTPS cannot reveal roles by itself. See [OpenAI Python integration](docs/openai-python.md) for synchronous/async calls, privacy and limitations.
|
|
@@ -381,6 +381,17 @@ from the merged runtime plus framework evidence. Task prompts and routed
|
|
|
381
381
|
messages remain local content references and are visible from their task and
|
|
382
382
|
agent nodes.
|
|
383
383
|
|
|
384
|
+
## Native OpenAI Agents SDK integration
|
|
385
|
+
|
|
386
|
+
For Python applications built with `agents.Agent`, `Runner.run`, and
|
|
387
|
+
`@function_tool`, ExecWeave provides an optional native trace processor.
|
|
388
|
+
Install `execweave[agents]` and register
|
|
389
|
+
`install_agents_sdk_tracing(capture_mode="metadata_only")` before running any
|
|
390
|
+
agents. It records SDK Agent, generation, tool and handoff spans separately
|
|
391
|
+
from observed OS effects, including source IDs and trace coverage gaps.
|
|
392
|
+
SDK results do not certify remote-host effects. See
|
|
393
|
+
[the Agents SDK guide](docs/openai-agents-sdk.md).
|
|
394
|
+
|
|
384
395
|
## Custom OpenAI Python scripts
|
|
385
396
|
|
|
386
397
|
Use `execweave record -- python my_agent.py` or `execweave live --open -- python my_agent.py` to observe the runtime. For **OpenAI API-key single-/multi-Agent semantic evidence**, wrap the official SDK with `OpenAIAgentRecorder` and explicitly record each Agent's send/receive handoffs. No API key is read by the adapter, and HTTPS cannot reveal roles by itself. See [OpenAI Python integration](docs/openai-python.md) for synchronous/async calls, privacy and limitations.
|
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "execweave"
|
|
7
|
-
# ExecWeave v0.8.
|
|
8
|
-
version = "0.8.
|
|
7
|
+
# ExecWeave v0.8.37 release metadata; OpenAI Agents SDK native tracing
|
|
8
|
+
version = "0.8.37"
|
|
9
9
|
description = "Local AI-agent execution graphs that identify sender/recipient handoffs with no observed receive in graph.json."
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.10"
|
|
@@ -42,6 +42,7 @@ dependencies = [
|
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
[project.optional-dependencies]
|
|
45
|
+
agents = ["openai-agents>=0.24,<0.25"]
|
|
45
46
|
validation = ["cryptography>=44"]
|
|
46
47
|
dev = [
|
|
47
48
|
"cryptography>=44",
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
"""Opt-in native OpenAI Agents SDK trace bridge.
|
|
2
|
+
|
|
3
|
+
Consumes SDK tracing callbacks, not HTTP traffic or inferred OS effects.
|
|
4
|
+
The module remains importable without the optional openai-agents package.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
import hashlib
|
|
9
|
+
import threading
|
|
10
|
+
from collections import Counter
|
|
11
|
+
from typing import Any
|
|
12
|
+
|
|
13
|
+
from .framework_adapters.base import (
|
|
14
|
+
AdapterContext, AgentRecord, ContentCapturePolicy, MessageRecord,
|
|
15
|
+
TaskRecord,
|
|
16
|
+
ModelCallRecord, ToolCallRecord,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
try:
|
|
20
|
+
from agents.tracing import TracingProcessor
|
|
21
|
+
except ImportError: # Optional dependency: pip install execweave[agents]
|
|
22
|
+
TracingProcessor = object
|
|
23
|
+
|
|
24
|
+
_BLOCKED = frozenset({
|
|
25
|
+
"authorization", "api_key", "apikey", "password", "token",
|
|
26
|
+
"access_token", "refresh_token", "client_secret", "cookie",
|
|
27
|
+
"reasoning", "chain_of_thought", "hidden_reasoning", "private_reasoning",
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _safe(value: Any, depth: int = 0) -> Any:
|
|
32
|
+
"""Serialize explicitly exposed content with bounded depth/size.
|
|
33
|
+
|
|
34
|
+
Keys suggesting credentials or hidden reasoning are never retained.
|
|
35
|
+
Arbitrary object repr() and exception messages are never stored.
|
|
36
|
+
"""
|
|
37
|
+
if depth > 6:
|
|
38
|
+
return "[depth limit]"
|
|
39
|
+
if value is None or type(value) in (bool, int, float):
|
|
40
|
+
return value
|
|
41
|
+
if isinstance(value, str):
|
|
42
|
+
return value[:32768]
|
|
43
|
+
if isinstance(value, (tuple, list)):
|
|
44
|
+
return [_safe(item, depth + 1) for item in value[:100]]
|
|
45
|
+
if isinstance(value, dict):
|
|
46
|
+
if value.get("type") in {"reasoning", "chain_of_thought", "hidden_reasoning"}:
|
|
47
|
+
return "[reasoning omitted]"
|
|
48
|
+
return {
|
|
49
|
+
str(k)[:128]: _safe(v, depth + 1)
|
|
50
|
+
for k, v in list(value.items())[:100]
|
|
51
|
+
if str(k).lower().replace("-", "_") not in _BLOCKED
|
|
52
|
+
}
|
|
53
|
+
if hasattr(value, "model_dump"):
|
|
54
|
+
try:
|
|
55
|
+
return _safe(value.model_dump(mode="json"), depth + 1)
|
|
56
|
+
except (AttributeError, TypeError, ValueError):
|
|
57
|
+
return "[unserializable SDK value]"
|
|
58
|
+
return "[unsupported content type]"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _name(value: Any, default: str) -> str:
|
|
62
|
+
return value[:160] if isinstance(value, str) and value.strip() else default
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class AgentsSDKTraceProcessor(TracingProcessor):
|
|
66
|
+
"""Synchronous SDK processor producing run-bound canonical evidence.
|
|
67
|
+
|
|
68
|
+
No recorder is enabled unless ExecWeave supplied both session and sidecar.
|
|
69
|
+
A function-tool result is framework-reported and *not* proof of an OS effect.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
def __init__(self, *, capture_mode: str = "prompt_and_response") -> None:
|
|
73
|
+
import os
|
|
74
|
+
|
|
75
|
+
ContentCapturePolicy(capture_mode)
|
|
76
|
+
self.enabled = bool(
|
|
77
|
+
os.environ.get("EXECWEAVE_SESSION_ID")
|
|
78
|
+
and os.environ.get("EXECWEAVE_SEMANTIC_SIDECAR")
|
|
79
|
+
)
|
|
80
|
+
self.context = (
|
|
81
|
+
AdapterContext.from_environment("openai-agents-sdk", capture_mode=capture_mode)
|
|
82
|
+
if self.enabled else None
|
|
83
|
+
)
|
|
84
|
+
self.capture_mode = capture_mode
|
|
85
|
+
self.callback_errors = 0
|
|
86
|
+
self._lock = threading.RLock()
|
|
87
|
+
self._runs: dict[str, dict[str, Any]] = {}
|
|
88
|
+
|
|
89
|
+
def _state(self, trace_id: str) -> dict[str, Any]:
|
|
90
|
+
return self._runs.setdefault(trace_id, {
|
|
91
|
+
"owners": {}, "parents": {}, "models": {}, "model_input_at_start": {},
|
|
92
|
+
"tasks": {}, "seen": set(),
|
|
93
|
+
"started": set(), "ended": set(), "counts": Counter(),
|
|
94
|
+
"unattributed": 0,
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
@staticmethod
|
|
98
|
+
def _owner_from_ancestors(state: dict[str, Any], parent_id: str | None):
|
|
99
|
+
"""Find the nearest SDK-observed agent through intermediate task/turn spans.
|
|
100
|
+
|
|
101
|
+
An unobserved parent stays unattributed; names in turn metadata are not
|
|
102
|
+
silently promoted into authoritative agent identities.
|
|
103
|
+
"""
|
|
104
|
+
cursor = parent_id
|
|
105
|
+
seen: set[str] = set()
|
|
106
|
+
while cursor is not None and cursor not in seen:
|
|
107
|
+
seen.add(cursor)
|
|
108
|
+
owner = state["owners"].get(cursor)
|
|
109
|
+
if owner is not None:
|
|
110
|
+
return owner
|
|
111
|
+
cursor = state["parents"].get(cursor)
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
def _agent(self, trace_id: str, agent_name: str):
|
|
115
|
+
assert self.context is not None
|
|
116
|
+
return self.context.entity(
|
|
117
|
+
"agent", f"{trace_id}:{agent_name}", name=agent_name,
|
|
118
|
+
attributes={
|
|
119
|
+
"conversation_scope": "framework_agent",
|
|
120
|
+
"conversation_agent_path": f"/openai-agents-sdk/{agent_name}",
|
|
121
|
+
"provider": "openai-agents-sdk",
|
|
122
|
+
},
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
def _identity(self, span: Any) -> dict[str, Any]:
|
|
126
|
+
"""Stable evidence pointer, without user-controlled payloads."""
|
|
127
|
+
return {
|
|
128
|
+
"sdk_trace_id": str(span.trace_id),
|
|
129
|
+
"sdk_span_id": str(span.span_id),
|
|
130
|
+
"sdk_parent_span_id": str(span.parent_id) if span.parent_id else None,
|
|
131
|
+
"evidence_source": "agents_sdk_tracing_callback",
|
|
132
|
+
"process_effect_verified": False,
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
def on_trace_start(self, trace: Any) -> None:
|
|
136
|
+
self._guard(self._trace_start, trace)
|
|
137
|
+
|
|
138
|
+
def _trace_start(self, trace: Any) -> None:
|
|
139
|
+
if not self.enabled:
|
|
140
|
+
return
|
|
141
|
+
assert self.context is not None
|
|
142
|
+
with self._lock:
|
|
143
|
+
trace_id = str(trace.trace_id)
|
|
144
|
+
self._state(trace_id)
|
|
145
|
+
task = self.context.entity("task", f"trace:{trace_id}", name="SDK trace")
|
|
146
|
+
group_id = getattr(trace, "group_id", None)
|
|
147
|
+
attrs = {
|
|
148
|
+
"sdk_trace_id": trace_id,
|
|
149
|
+
"evidence_source": "agents_sdk_tracing_callback",
|
|
150
|
+
"task_category": "sdk_trace",
|
|
151
|
+
"span_completion_is_not_task_success": True,
|
|
152
|
+
}
|
|
153
|
+
if isinstance(group_id, str) and group_id:
|
|
154
|
+
attrs["sdk_group_sha256"] = hashlib.sha256(
|
|
155
|
+
group_id.encode("utf-8")
|
|
156
|
+
).hexdigest()
|
|
157
|
+
self.context.record_task(TaskRecord(task, attributes=attrs))
|
|
158
|
+
|
|
159
|
+
def on_trace_end(self, trace: Any) -> None:
|
|
160
|
+
self._guard(self._trace_end, trace)
|
|
161
|
+
|
|
162
|
+
def _trace_end(self, trace: Any) -> None:
|
|
163
|
+
if not self.enabled:
|
|
164
|
+
return
|
|
165
|
+
assert self.context is not None
|
|
166
|
+
with self._lock:
|
|
167
|
+
trace_id = str(trace.trace_id)
|
|
168
|
+
state = self._runs.pop(trace_id, None)
|
|
169
|
+
if state is None:
|
|
170
|
+
return
|
|
171
|
+
task = self.context.entity("task", f"trace:{trace_id}", name="SDK trace")
|
|
172
|
+
self.context.emit(
|
|
173
|
+
"TASK_UPDATED", "OBSERVATION_COVERAGE", source=task,
|
|
174
|
+
attributes={
|
|
175
|
+
"sdk_trace_id": trace_id,
|
|
176
|
+
"span_counts": dict(state["counts"]),
|
|
177
|
+
"unattributed_spans": state["unattributed"],
|
|
178
|
+
"unclosed_spans": len(state["started"] - state["ended"]),
|
|
179
|
+
"callback_errors": self.callback_errors,
|
|
180
|
+
"coverage_scope": "sdk_callbacks_only",
|
|
181
|
+
"runtime_effects_verified": False,
|
|
182
|
+
},
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
def on_span_start(self, span: Any) -> None:
|
|
186
|
+
self._guard(self._span_start, span)
|
|
187
|
+
|
|
188
|
+
def _span_start(self, span: Any) -> None:
|
|
189
|
+
if not self.enabled:
|
|
190
|
+
return
|
|
191
|
+
assert self.context is not None
|
|
192
|
+
with self._lock:
|
|
193
|
+
trace_id = str(span.trace_id)
|
|
194
|
+
span_id = str(span.span_id)
|
|
195
|
+
state = self._state(trace_id)
|
|
196
|
+
if span_id in state["started"]:
|
|
197
|
+
return
|
|
198
|
+
state["started"].add(span_id)
|
|
199
|
+
parent_id = str(span.parent_id) if span.parent_id else None
|
|
200
|
+
state["parents"][span_id] = parent_id
|
|
201
|
+
data = span.span_data
|
|
202
|
+
kind = getattr(data, "type", "unknown")
|
|
203
|
+
state["counts"][str(kind)] += 1
|
|
204
|
+
owner = self._owner_from_ancestors(state, parent_id)
|
|
205
|
+
if kind == "agent":
|
|
206
|
+
name = _name(getattr(data, "name", None), "unnamed-agent")
|
|
207
|
+
owner = self._agent(trace_id, name)
|
|
208
|
+
if owner.id not in state["seen"]:
|
|
209
|
+
self.context.record_agent(AgentRecord(
|
|
210
|
+
owner, role=name,
|
|
211
|
+
attributes={"sdk_trace_id": trace_id, "source": "sdk_agent_span"},
|
|
212
|
+
))
|
|
213
|
+
state["seen"].add(owner.id)
|
|
214
|
+
self.context.emit(
|
|
215
|
+
"AGENT_STARTED", "AGENT_STARTED", source=owner,
|
|
216
|
+
attributes=self._identity(span),
|
|
217
|
+
)
|
|
218
|
+
# Tools listed on an AgentSpan are *available*, not executed.
|
|
219
|
+
available = getattr(data, "tools", None)
|
|
220
|
+
if isinstance(available, list):
|
|
221
|
+
self.context.emit(
|
|
222
|
+
"TASK_UPDATED", "AVAILABLE_TOOLS", source=owner,
|
|
223
|
+
attributes={
|
|
224
|
+
**self._identity(span),
|
|
225
|
+
"tool_names": [_name(x, "unknown") for x in available[:100]],
|
|
226
|
+
"tool_list_truncated": len(available) > 100,
|
|
227
|
+
"selection_not_inferred": True,
|
|
228
|
+
},
|
|
229
|
+
)
|
|
230
|
+
state["owners"][span_id] = owner
|
|
231
|
+
if kind == "task":
|
|
232
|
+
task = self.context.entity("task", f"{trace_id}:{span_id}", name="SDK Runner task")
|
|
233
|
+
parent_task = self.context.entity(
|
|
234
|
+
"task", f"trace:{trace_id}", name="SDK trace"
|
|
235
|
+
)
|
|
236
|
+
self.context.record_task(TaskRecord(
|
|
237
|
+
task, owner=owner, parent_task=parent_task,
|
|
238
|
+
attributes={
|
|
239
|
+
**self._identity(span),
|
|
240
|
+
"task_category": "sdk_runner_invocation",
|
|
241
|
+
"span_completion_is_not_task_success": True,
|
|
242
|
+
},
|
|
243
|
+
))
|
|
244
|
+
self.context.emit("TASK_STARTED", "SDK_TASK_STARTED",
|
|
245
|
+
source=owner or task, target=task,
|
|
246
|
+
attributes=self._identity(span))
|
|
247
|
+
state["tasks"][span_id] = task
|
|
248
|
+
elif kind == "turn":
|
|
249
|
+
self.context.emit(
|
|
250
|
+
"TASK_UPDATED", "SDK_TURN_STARTED", source=owner,
|
|
251
|
+
attributes={
|
|
252
|
+
**self._identity(span),
|
|
253
|
+
"sdk_turn_number": getattr(data, "turn", None),
|
|
254
|
+
"sdk_turn_agent_name": _name(
|
|
255
|
+
getattr(data, "agent_name", None), "unknown"
|
|
256
|
+
),
|
|
257
|
+
"turn_completion_is_not_task_success": True,
|
|
258
|
+
},
|
|
259
|
+
)
|
|
260
|
+
if kind not in ("agent",) and owner is None:
|
|
261
|
+
state["unattributed"] += 1
|
|
262
|
+
if kind in ("generation", "response"):
|
|
263
|
+
response_object = getattr(data, "response", None)
|
|
264
|
+
model_name = _name(
|
|
265
|
+
getattr(data, "model", None)
|
|
266
|
+
or getattr(response_object, "model", None),
|
|
267
|
+
"unknown",
|
|
268
|
+
)
|
|
269
|
+
state["models"][span_id] = model_name
|
|
270
|
+
observed_input = getattr(data, "input", None)
|
|
271
|
+
state["model_input_at_start"][span_id] = observed_input is not None
|
|
272
|
+
model = self.context.entity("model", model_name, name=model_name)
|
|
273
|
+
call = self.context.entity("model_call", f"{trace_id}:{span_id}")
|
|
274
|
+
self.context.record_model_call(ModelCallRecord(
|
|
275
|
+
call, owner, model,
|
|
276
|
+
request=_safe(observed_input)
|
|
277
|
+
if self.capture_mode != "metadata_only" else None,
|
|
278
|
+
attributes={
|
|
279
|
+
**self._identity(span),
|
|
280
|
+
"input_observed_at_start": observed_input is not None,
|
|
281
|
+
},
|
|
282
|
+
))
|
|
283
|
+
elif kind == "function":
|
|
284
|
+
name = _name(getattr(data, "name", None), "unknown-tool")
|
|
285
|
+
tool = self.context.entity("tool", name, name=name)
|
|
286
|
+
call = self.context.entity("tool_call", f"{trace_id}:{span_id}")
|
|
287
|
+
self.context.record_tool_call(ToolCallRecord(
|
|
288
|
+
call, owner, tool,
|
|
289
|
+
arguments=_safe(getattr(data, "input", None))
|
|
290
|
+
if self.capture_mode != "metadata_only" else None,
|
|
291
|
+
attributes={**self._identity(span), "effect_attestation": "not_provided"},
|
|
292
|
+
))
|
|
293
|
+
|
|
294
|
+
def on_span_end(self, span: Any) -> None:
|
|
295
|
+
self._guard(self._span_end, span)
|
|
296
|
+
|
|
297
|
+
def _span_end(self, span: Any) -> None:
|
|
298
|
+
if not self.enabled:
|
|
299
|
+
return
|
|
300
|
+
assert self.context is not None
|
|
301
|
+
with self._lock:
|
|
302
|
+
trace_id = str(span.trace_id)
|
|
303
|
+
span_id = str(span.span_id)
|
|
304
|
+
state = self._state(trace_id)
|
|
305
|
+
if span_id in state["ended"]:
|
|
306
|
+
return
|
|
307
|
+
if span_id not in state["started"]:
|
|
308
|
+
# No invented start event when a callback was missed.
|
|
309
|
+
state["counts"]["end_without_start"] += 1
|
|
310
|
+
return
|
|
311
|
+
state["ended"].add(span_id)
|
|
312
|
+
data = span.span_data
|
|
313
|
+
kind = getattr(data, "type", "unknown")
|
|
314
|
+
owner = state["owners"].get(span_id)
|
|
315
|
+
failed = getattr(span, "error", None) is not None
|
|
316
|
+
evidence = {**self._identity(span), "sdk_span_error": failed}
|
|
317
|
+
if kind == "agent":
|
|
318
|
+
self.context.emit(
|
|
319
|
+
"AGENT_STOPPED", "AGENT_STOPPED", source=owner,
|
|
320
|
+
attributes=evidence,
|
|
321
|
+
)
|
|
322
|
+
elif kind == "task":
|
|
323
|
+
task = state["tasks"].get(span_id)
|
|
324
|
+
if task is not None:
|
|
325
|
+
self.context.emit(
|
|
326
|
+
"TASK_UPDATED", "SDK_TASK_SPAN_ENDED",
|
|
327
|
+
source=owner or task, target=task,
|
|
328
|
+
attributes={**evidence, "task_success_verified": False},
|
|
329
|
+
)
|
|
330
|
+
elif kind == "turn":
|
|
331
|
+
self.context.emit(
|
|
332
|
+
"TASK_UPDATED", "SDK_TURN_ENDED", source=owner,
|
|
333
|
+
attributes={**evidence, "turn_success_verified": False},
|
|
334
|
+
)
|
|
335
|
+
elif kind in ("generation", "response"):
|
|
336
|
+
initial_model = state["models"].get(span_id, "unknown")
|
|
337
|
+
call = self.context.entity("model_call", f"{trace_id}:{span_id}")
|
|
338
|
+
observed_response = (
|
|
339
|
+
getattr(data, "response", None) if kind == "response"
|
|
340
|
+
else getattr(data, "output", None)
|
|
341
|
+
)
|
|
342
|
+
# The SDK can fill in the final model identity only when the
|
|
343
|
+
# span ends. Preserve the initial unknown instead of claiming
|
|
344
|
+
# that the model was known at request time.
|
|
345
|
+
resolved_model = _name(
|
|
346
|
+
getattr(data, "model", None)
|
|
347
|
+
or getattr(observed_response, "model", None),
|
|
348
|
+
initial_model,
|
|
349
|
+
)
|
|
350
|
+
model = self.context.entity("model", resolved_model, name=resolved_model)
|
|
351
|
+
# The official Responses SDK populates span_data.input
|
|
352
|
+
# *after* the model call. Keep the original request boundary
|
|
353
|
+
# intact and append content with its true observation stage.
|
|
354
|
+
late_input = getattr(data, "input", None)
|
|
355
|
+
if (
|
|
356
|
+
self.capture_mode != "metadata_only"
|
|
357
|
+
and late_input is not None
|
|
358
|
+
and not state["model_input_at_start"].get(span_id, False)
|
|
359
|
+
):
|
|
360
|
+
self.context.record_model_call(ModelCallRecord(
|
|
361
|
+
call, owner, model, request=_safe(late_input),
|
|
362
|
+
attributes={
|
|
363
|
+
**evidence,
|
|
364
|
+
"content_observed_at": "sdk_span_end",
|
|
365
|
+
"late_request_content": True,
|
|
366
|
+
"request_timestamp_not_inferred": True,
|
|
367
|
+
},
|
|
368
|
+
))
|
|
369
|
+
response = (
|
|
370
|
+
_safe(observed_response)
|
|
371
|
+
if self.capture_mode == "prompt_and_response" else None
|
|
372
|
+
)
|
|
373
|
+
self.context.record_model_call(ModelCallRecord(
|
|
374
|
+
call, owner, model, response=response,
|
|
375
|
+
status="failure" if failed else "response",
|
|
376
|
+
attributes={
|
|
377
|
+
**evidence,
|
|
378
|
+
"sdk_reported_model": resolved_model,
|
|
379
|
+
"sdk_initial_model": initial_model,
|
|
380
|
+
"model_identity_resolved_at_end": resolved_model != initial_model,
|
|
381
|
+
},
|
|
382
|
+
))
|
|
383
|
+
elif kind == "function":
|
|
384
|
+
name = _name(getattr(data, "name", None), "unknown-tool")
|
|
385
|
+
tool = self.context.entity("tool", name, name=name)
|
|
386
|
+
call = self.context.entity("tool_call", f"{trace_id}:{span_id}")
|
|
387
|
+
response = (
|
|
388
|
+
_safe(getattr(data, "output", None))
|
|
389
|
+
if self.capture_mode == "prompt_and_response" else None
|
|
390
|
+
)
|
|
391
|
+
self.context.record_tool_call(ToolCallRecord(
|
|
392
|
+
call, owner, tool, result=response,
|
|
393
|
+
status="failure" if failed else "result",
|
|
394
|
+
attributes={**evidence, "effect_attestation": "not_provided"},
|
|
395
|
+
))
|
|
396
|
+
elif kind == "handoff" and not failed:
|
|
397
|
+
sender_name = getattr(data, "from_agent", None)
|
|
398
|
+
recipient_name = getattr(data, "to_agent", None)
|
|
399
|
+
if sender_name and recipient_name:
|
|
400
|
+
sender = self._agent(trace_id, sender_name)
|
|
401
|
+
recipient = self._agent(trace_id, recipient_name)
|
|
402
|
+
for agent in (sender, recipient):
|
|
403
|
+
if agent.id not in state["seen"]:
|
|
404
|
+
self.context.record_agent(AgentRecord(agent, role=agent.name))
|
|
405
|
+
state["seen"].add(agent.id)
|
|
406
|
+
message = self.context.entity("message", f"{trace_id}:{span_id}")
|
|
407
|
+
self.context.record_message(MessageRecord(
|
|
408
|
+
message, sender, recipient, direction="sent",
|
|
409
|
+
attributes={**evidence, "receive_observed": False,
|
|
410
|
+
"handoff_proof": "sdk_handoff_span_only"},
|
|
411
|
+
))
|
|
412
|
+
else:
|
|
413
|
+
self.context.emit(
|
|
414
|
+
"MESSAGE_UNROUTED", "HANDOFF_UNROUTED",
|
|
415
|
+
attributes={**evidence, "reason": "missing_agent_identity"},
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
def _guard(self, handler: Any, value: Any) -> None:
|
|
419
|
+
try:
|
|
420
|
+
handler(value)
|
|
421
|
+
except Exception:
|
|
422
|
+
# Never surface SDK payloads, exception messages or tracebacks.
|
|
423
|
+
with self._lock:
|
|
424
|
+
self.callback_errors += 1
|
|
425
|
+
|
|
426
|
+
def force_flush(self) -> None:
|
|
427
|
+
"""Events are synchronously written to the run-bound sidecar."""
|
|
428
|
+
|
|
429
|
+
def shutdown(self) -> None:
|
|
430
|
+
"""No external resources or background worker to close."""
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
def install_agents_sdk_tracing(*, capture_mode: str = "prompt_and_response") -> AgentsSDKTraceProcessor:
|
|
434
|
+
"""Register an additive processor before Runner.run.
|
|
435
|
+
|
|
436
|
+
Does not disable the SDK's own tracing exporter or change its privacy policy.
|
|
437
|
+
"""
|
|
438
|
+
try:
|
|
439
|
+
from agents.tracing import add_trace_processor
|
|
440
|
+
except ImportError as exc:
|
|
441
|
+
raise ImportError("Install the optional 'openai-agents' package") from exc
|
|
442
|
+
processor = AgentsSDKTraceProcessor(capture_mode=capture_mode)
|
|
443
|
+
if processor.enabled:
|
|
444
|
+
add_trace_processor(processor)
|
|
445
|
+
return processor
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{execweave-0.8.36 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity_collaboration_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|