execweave 0.8.35__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.35 → execweave-0.8.37}/PKG-INFO +56 -12
- {execweave-0.8.35 → execweave-0.8.37}/README.md +52 -10
- {execweave-0.8.35 → execweave-0.8.37}/pyproject.toml +4 -3
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/__init__.py +1 -1
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cli.py +1 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/collector.py +5 -2
- execweave-0.8.37/src/execweave/command_privacy.py +20 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/graph.py +33 -1
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/graph_ops.py +12 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/integrity.py +0 -20
- execweave-0.8.37/src/execweave/integrity_cli.py +55 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/investigation_index.py +5 -4
- execweave-0.8.37/src/execweave/openai_agents.py +267 -0
- execweave-0.8.37/src/execweave/openai_agents_sdk.py +445 -0
- execweave-0.8.37/src/execweave/reader_identity.py +13 -0
- execweave-0.8.37/src/execweave/session_summary.py +159 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/sink.py +19 -1
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/strace_backend.py +32 -5
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/validate.py +10 -7
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel.py +77 -16
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_dashboard_clean.py +7 -2
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_framework_flow.py +15 -1
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_projection_base.py +6 -1
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_run_assessment.py +149 -0
- execweave-0.8.35/src/execweave/integrity_cli.py +0 -63
- execweave-0.8.35/src/execweave/session_summary.py +0 -86
- {execweave-0.8.35 → execweave-0.8.37}/.gitignore +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/LICENSE +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/__main__.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/_conversation_records_core.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/_dashboard_shell_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/_http_proxy_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/_http_proxy_bounded.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/_http_proxy_stage.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/acceptance_output.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/agent_bootstrap.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/agent_topology.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/agent_trace.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/agy_preview_sanitize.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/analysis.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/anthropic.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/anthropic_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/anthropic_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_adapter.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_adapter_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_full_fidelity_collaboration_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_hook_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_record.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_subagent_linkage.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/antigravity_trace_capability.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/auto_specialized.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/backends.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/benchmark.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_adapter.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_child_transcript.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_delegation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_hook_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_hook_contract.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_model_observer.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/claude_record.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_adapter.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_conversation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_hook_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_hook_entry.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_hook_lifecycle.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_message_diagnostics.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_message_transport_diagnostics.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_record.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_rollout_structures.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_rollout_trace.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/codex_rollout_trace_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/command.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/content_evidence.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/content_integrity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/content_store.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/controlled_checks.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_archive.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_message_identity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_antigravity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_claude.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_codex.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_common.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_generic.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_lines.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_preview_transcript.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_records.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_records_antigravity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_records_codex.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_records_common.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/conversation_records_ollama.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/correlation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_adapter.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_delegation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_delegation_base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_hook_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_hook_contract.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_lifecycle.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/cursor_record.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/dashboard_shell.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/delivery_status.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/entry.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/evidence_availability.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/evidence_grade.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/filesystem.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/finalization.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/focus.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/__init__.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/autogen.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/base.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/camel.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/camel_channel.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/metagpt.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/framework_adapters/registry.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/hook_command.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/hook_delivery.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/hook_input.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/http_proxy.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/http_proxy_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/inference_gateway.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/inference_gateway_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/inference_gateway_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/inference_identity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/inference_identity_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/litellm_callback.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/litellm_callback_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_core.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_extra_style.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_markup.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_process_layout.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_readability.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_script_a.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_script_b.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_script_c.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_script_d.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/live_view_style.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/model_runtime.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/model_runtime_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/model_runtime_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/observation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/observation_demo.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/openai_compatible.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/openai_compatible_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/openai_compatible_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_adapter.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_event_contract.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_full_fidelity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_hook_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_plugin_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_record.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/opencode_task_linkage.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/overhead_benchmark.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/privacy.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/private_io.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/provider_capability.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/provider_lifecycle.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/provider_record.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/redacted_archive.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/risk.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/rule_pack.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/rule_pack_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/run_assessment.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/runtime_endpoint_availability.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/scalability_benchmark.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/schema.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/scope.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/semantic.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/stream_assembly.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/task_artifacts.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/task_validation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/theme.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/top.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/top_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/vendor/dagre.min.js +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/view_cli.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_antigravity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_claude.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_codex.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_cursor.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_default.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_ollama.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_opencode.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_agent_panel_registry.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_archive_verifier.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_background_files.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_content_browser.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_content_health.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_content_inspector.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_controlled_checks.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_conversation_sync.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_dashboard_focus.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_dashboard_hardening.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_dashboard_hardening_v2.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_dashboard_pr70.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_delivery_status.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_edge_decross.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_execution_flow.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_execution_flow_provider_normalization.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_execution_flow_safety.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_external_endpoints.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_flow_canvas.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_flow_layout.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_fold_state.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_framework_model_output.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_gif.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_history_browser.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_investigation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_layout_geometry.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_layout_v2.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_layout_v2_detached.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_limits.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_live_layout.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_message_handoffs.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_projection.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_projection_bridges.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_recorded_sources.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_run_guide.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_runtime_evidence.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_semantic_projection.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_session_flow.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_structure_share.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_task_validation.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_tool_mirror_identity.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/viewer_workflow_mode.py +0 -0
- {execweave-0.8.35 → execweave-0.8.37}/src/execweave/workflow.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: execweave
|
|
3
|
-
Version: 0.8.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.8.37
|
|
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
|
|
7
7
|
Project-URL: Documentation, https://github.com/Irish-kw/ExecWeave#documentation
|
|
@@ -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'
|
|
@@ -89,6 +91,8 @@ Description-Content-Type: text/markdown
|
|
|
89
91
|
|
|
90
92
|
**See what AI agents actually do on your machine.**
|
|
91
93
|
|
|
94
|
+
**In multi-role agent workflows, ExecWeave automatically flags recorded handoffs where a send event has no matching observed receive event, identifies the sender and recipient, and records `message_receive_not_observed` in `graph.json`. This is an observation gap, not proof of failed delivery.**
|
|
95
|
+
|
|
92
96
|
ExecWeave is a local-first observability project for AI agents and AI-assisted development tools. It combines provider-level semantics with operating-system runtime evidence and presents them as one interactive execution graph.
|
|
93
97
|
|
|
94
98
|
> **Events are evidence. The graph is a materialized view.**
|
|
@@ -126,29 +130,54 @@ python -m pip install -e ".[dev]"
|
|
|
126
130
|
|
|
127
131
|
## Quick start
|
|
128
132
|
|
|
129
|
-
|
|
133
|
+
First create an isolated, user-owned virtual environment (no sudo):
|
|
130
134
|
|
|
131
135
|
```bash
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
execweave live --open -- cursor
|
|
136
|
-
execweave live --open -- opencode
|
|
137
|
-
execweave live --open -- python my_agent.py
|
|
136
|
+
python -m venv .venv
|
|
137
|
+
source .venv/bin/activate
|
|
138
|
+
python -m pip install -U execweave
|
|
138
139
|
```
|
|
139
140
|
|
|
140
|
-
|
|
141
|
+
On Windows PowerShell, activate with `.venv\Scripts\Activate.ps1` instead.
|
|
142
|
+
|
|
143
|
+
Reproduce the built-in negative example **before** enabling any provider hook:
|
|
141
144
|
|
|
142
145
|
```bash
|
|
143
|
-
|
|
146
|
+
python -m execweave.observation_demo --output-dir ./observation-negative
|
|
144
147
|
```
|
|
145
148
|
|
|
146
|
-
|
|
149
|
+
The example's workload can succeed while evidence remains incomplete. Inspect
|
|
150
|
+
`observation-negative/graph.json` and `observation-negative/finalization.json`;
|
|
151
|
+
`execution_state=succeeded` is not the same as complete observation.
|
|
152
|
+
|
|
153
|
+
If you need provider-specific lifecycle evidence, explicitly approve and install
|
|
154
|
+
its hook in this user environment; **do not use sudo**:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
execweave hooks install antigravity
|
|
158
|
+
execweave hooks status antigravity
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Now launch a real provider (Antigravity's CLI is `agy`, if installed):
|
|
147
162
|
|
|
148
163
|
```bash
|
|
164
|
+
execweave live --open -- agy
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Other available client commands can be wrapped the same way:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
execweave live --open -- claude
|
|
171
|
+
execweave live --open -- codex
|
|
172
|
+
execweave live --open -- cursor
|
|
173
|
+
execweave live --open -- opencode
|
|
174
|
+
execweave record --open -- codex
|
|
149
175
|
execweave top -- codex
|
|
150
176
|
```
|
|
151
177
|
|
|
178
|
+
Provider-specific hooks require their own explicit installation/approval.
|
|
179
|
+
An exit code of zero does not establish recording completeness or task validity.
|
|
180
|
+
|
|
152
181
|
### Provider integration approval
|
|
153
182
|
|
|
154
183
|
Since 0.8.35, `live` only checks hook configuration; it never installs or rewrites it. Explicitly run `execweave hooks install antigravity` (or `claude`, `codex`, `cursor`, `opencode`) from your user-owned environment, without sudo. `execweave hooks status antigravity` checks setup without writing. Provider approval may still be required. **Configured does not mean evidence was delivered.** Missing delivery and incomplete observation are recorded independently of process exit.
|
|
@@ -416,3 +445,18 @@ the adapter automatically joins that run and the finished Dashboard is built
|
|
|
416
445
|
from the merged runtime plus framework evidence. Task prompts and routed
|
|
417
446
|
messages remain local content references and are visible from their task and
|
|
418
447
|
agent nodes.
|
|
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
|
+
|
|
460
|
+
## Custom OpenAI Python scripts
|
|
461
|
+
|
|
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.
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
**See what AI agents actually do on your machine.**
|
|
28
28
|
|
|
29
|
+
**In multi-role agent workflows, ExecWeave automatically flags recorded handoffs where a send event has no matching observed receive event, identifies the sender and recipient, and records `message_receive_not_observed` in `graph.json`. This is an observation gap, not proof of failed delivery.**
|
|
30
|
+
|
|
29
31
|
ExecWeave is a local-first observability project for AI agents and AI-assisted development tools. It combines provider-level semantics with operating-system runtime evidence and presents them as one interactive execution graph.
|
|
30
32
|
|
|
31
33
|
> **Events are evidence. The graph is a materialized view.**
|
|
@@ -63,29 +65,54 @@ python -m pip install -e ".[dev]"
|
|
|
63
65
|
|
|
64
66
|
## Quick start
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
First create an isolated, user-owned virtual environment (no sudo):
|
|
67
69
|
|
|
68
70
|
```bash
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
execweave live --open -- cursor
|
|
73
|
-
execweave live --open -- opencode
|
|
74
|
-
execweave live --open -- python my_agent.py
|
|
71
|
+
python -m venv .venv
|
|
72
|
+
source .venv/bin/activate
|
|
73
|
+
python -m pip install -U execweave
|
|
75
74
|
```
|
|
76
75
|
|
|
77
|
-
|
|
76
|
+
On Windows PowerShell, activate with `.venv\Scripts\Activate.ps1` instead.
|
|
77
|
+
|
|
78
|
+
Reproduce the built-in negative example **before** enabling any provider hook:
|
|
78
79
|
|
|
79
80
|
```bash
|
|
80
|
-
|
|
81
|
+
python -m execweave.observation_demo --output-dir ./observation-negative
|
|
81
82
|
```
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
The example's workload can succeed while evidence remains incomplete. Inspect
|
|
85
|
+
`observation-negative/graph.json` and `observation-negative/finalization.json`;
|
|
86
|
+
`execution_state=succeeded` is not the same as complete observation.
|
|
87
|
+
|
|
88
|
+
If you need provider-specific lifecycle evidence, explicitly approve and install
|
|
89
|
+
its hook in this user environment; **do not use sudo**:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
execweave hooks install antigravity
|
|
93
|
+
execweave hooks status antigravity
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Now launch a real provider (Antigravity's CLI is `agy`, if installed):
|
|
84
97
|
|
|
85
98
|
```bash
|
|
99
|
+
execweave live --open -- agy
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Other available client commands can be wrapped the same way:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
execweave live --open -- claude
|
|
106
|
+
execweave live --open -- codex
|
|
107
|
+
execweave live --open -- cursor
|
|
108
|
+
execweave live --open -- opencode
|
|
109
|
+
execweave record --open -- codex
|
|
86
110
|
execweave top -- codex
|
|
87
111
|
```
|
|
88
112
|
|
|
113
|
+
Provider-specific hooks require their own explicit installation/approval.
|
|
114
|
+
An exit code of zero does not establish recording completeness or task validity.
|
|
115
|
+
|
|
89
116
|
### Provider integration approval
|
|
90
117
|
|
|
91
118
|
Since 0.8.35, `live` only checks hook configuration; it never installs or rewrites it. Explicitly run `execweave hooks install antigravity` (or `claude`, `codex`, `cursor`, `opencode`) from your user-owned environment, without sudo. `execweave hooks status antigravity` checks setup without writing. Provider approval may still be required. **Configured does not mean evidence was delivered.** Missing delivery and incomplete observation are recorded independently of process exit.
|
|
@@ -353,3 +380,18 @@ the adapter automatically joins that run and the finished Dashboard is built
|
|
|
353
380
|
from the merged runtime plus framework evidence. Task prompts and routed
|
|
354
381
|
messages remain local content references and are visible from their task and
|
|
355
382
|
agent nodes.
|
|
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
|
+
|
|
395
|
+
## Custom OpenAI Python scripts
|
|
396
|
+
|
|
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,9 +4,9 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "execweave"
|
|
7
|
-
# ExecWeave v0.8.
|
|
8
|
-
version = "0.8.
|
|
9
|
-
description = "
|
|
7
|
+
# ExecWeave v0.8.37 release metadata; OpenAI Agents SDK native tracing
|
|
8
|
+
version = "0.8.37"
|
|
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"
|
|
12
12
|
license = { file = "LICENSE" }
|
|
@@ -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",
|
|
@@ -187,6 +187,7 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
187
187
|
"validate", help="Validate one graph-ready ExecWeave JSONL event stream"
|
|
188
188
|
)
|
|
189
189
|
validate.add_argument("path", type=Path, help="Path to a .jsonl event stream")
|
|
190
|
+
validate.add_argument("--json", action="store_true", help="emit structured JSON (the default)")
|
|
190
191
|
validate.add_argument(
|
|
191
192
|
"--allow-incomplete",
|
|
192
193
|
action="store_true",
|
|
@@ -28,6 +28,7 @@ from .cursor_lifecycle import (
|
|
|
28
28
|
from .filesystem import FileWatcher
|
|
29
29
|
from .privacy import content_capture_policy
|
|
30
30
|
from .schema import Entity, RuntimeEvent
|
|
31
|
+
from .command_privacy import public_command
|
|
31
32
|
from .sink import JsonlSink
|
|
32
33
|
from .risk import privilege_process_trigger, risk_attributes
|
|
33
34
|
|
|
@@ -55,7 +56,8 @@ class ProcessSnapshot:
|
|
|
55
56
|
attributes={
|
|
56
57
|
"pid": self.pid,
|
|
57
58
|
"ppid": self.ppid,
|
|
58
|
-
"cmdline": self.cmdline,
|
|
59
|
+
"cmdline": public_command(self.cmdline),
|
|
60
|
+
"argv_redacted": True,
|
|
59
61
|
"exe": self.exe,
|
|
60
62
|
"create_time": self.create_time,
|
|
61
63
|
},
|
|
@@ -189,7 +191,8 @@ class RuntimeCollector:
|
|
|
189
191
|
id=f"session:{self.session_id}",
|
|
190
192
|
name=self.session_id,
|
|
191
193
|
attributes={
|
|
192
|
-
"command": command,
|
|
194
|
+
"command": public_command(command),
|
|
195
|
+
"argv_redacted": True,
|
|
193
196
|
"cwd": str(self.watch_root),
|
|
194
197
|
"backend": self.backend_name,
|
|
195
198
|
"execweave_version": __version__,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Deliberately metadata-only argv serialization for recorded OS processes.
|
|
2
|
+
|
|
3
|
+
An arbitrary Python argument may itself be a secret or full prompt; a denylist
|
|
4
|
+
of flag spellings cannot protect it. Keep only executable and script basename
|
|
5
|
+
when the script is an unambiguous .py path. Actual child argv is unchanged.
|
|
6
|
+
"""
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Iterable
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def public_command(command: Iterable[str]) -> list[str]:
|
|
14
|
+
argv = list(command)
|
|
15
|
+
if not argv:
|
|
16
|
+
return []
|
|
17
|
+
display = [Path(argv[0]).name]
|
|
18
|
+
if len(argv) > 1 and argv[1].endswith(".py") and not argv[1].startswith("-"):
|
|
19
|
+
display.append(Path(argv[1]).name)
|
|
20
|
+
return display
|
|
@@ -160,7 +160,17 @@ class GraphNode:
|
|
|
160
160
|
*,
|
|
161
161
|
logical: bool = True,
|
|
162
162
|
) -> None:
|
|
163
|
-
|
|
163
|
+
incoming_name = entity.get("name")
|
|
164
|
+
self.name = self.name or incoming_name
|
|
165
|
+
# Strace sees a PID at spawn time, and the executable only at execve.
|
|
166
|
+
# Upgrade this PID-only display name when syscall evidence arrives.
|
|
167
|
+
if (
|
|
168
|
+
self.type == "process"
|
|
169
|
+
and isinstance(self.name, str) and self.name.isdecimal()
|
|
170
|
+
and isinstance(incoming_name, str) and incoming_name != self.name
|
|
171
|
+
and incoming_name.endswith(" · " + self.name)
|
|
172
|
+
):
|
|
173
|
+
self.name = incoming_name
|
|
164
174
|
incoming = entity.get("attributes") or {}
|
|
165
175
|
if isinstance(incoming, dict):
|
|
166
176
|
for key, value in incoming.items():
|
|
@@ -171,6 +181,28 @@ class GraphNode:
|
|
|
171
181
|
self.attributes.setdefault(key, None)
|
|
172
182
|
elif self.attributes.get(key) is None:
|
|
173
183
|
self.attributes[key] = value
|
|
184
|
+
# Event-level exit status belongs to the *exiting process*, never to
|
|
185
|
+
# the run-level session outcome and never to an unrelated target node.
|
|
186
|
+
if (
|
|
187
|
+
self.type == "process"
|
|
188
|
+
and event.get("event_type") == "process.exited"
|
|
189
|
+
and isinstance(event.get("source"), dict)
|
|
190
|
+
and event["source"].get("id") == self.id
|
|
191
|
+
):
|
|
192
|
+
exit_fields = event.get("attributes")
|
|
193
|
+
if isinstance(exit_fields, dict):
|
|
194
|
+
code = exit_fields.get("exit_code")
|
|
195
|
+
if type(code) is int:
|
|
196
|
+
self.attributes["exit_code"] = code
|
|
197
|
+
self.attributes["return_code"] = code
|
|
198
|
+
signal = exit_fields.get("signal")
|
|
199
|
+
if isinstance(signal, str) and signal:
|
|
200
|
+
self.attributes["exit_signal"] = signal
|
|
201
|
+
if type(code) is int or (isinstance(signal, str) and signal):
|
|
202
|
+
self.attributes["exit_observed"] = True
|
|
203
|
+
when = event.get("timestamp")
|
|
204
|
+
if isinstance(when, str):
|
|
205
|
+
self.attributes["exit_observed_at"] = when
|
|
174
206
|
timestamp = event.get("timestamp")
|
|
175
207
|
if isinstance(timestamp, str):
|
|
176
208
|
self.first_seen = min(self.first_seen, timestamp) if self.first_seen else timestamp
|
|
@@ -23,6 +23,18 @@ def validate_graph_payload(
|
|
|
23
23
|
if not isinstance(version, str) or version not in supported_versions:
|
|
24
24
|
shown = version if isinstance(version, str) else "missing"
|
|
25
25
|
raise ValueError(f"unsupported graph schema version: {shown}")
|
|
26
|
+
# Reject graphs that explicitly declare a future/malformed source stream.
|
|
27
|
+
# Graph schema and event-stream schema are separate version namespaces.
|
|
28
|
+
source_versions = payload.get("source_schema_versions")
|
|
29
|
+
if source_versions is not None:
|
|
30
|
+
if not isinstance(source_versions, list) or any(
|
|
31
|
+
not isinstance(item, str) or item not in {"0.1", "0.2"}
|
|
32
|
+
for item in source_versions
|
|
33
|
+
):
|
|
34
|
+
raise ValueError(
|
|
35
|
+
"unsupported_schema_version: graph declares an unsupported "
|
|
36
|
+
f"source event-stream schema {source_versions!r}; supported: 0.2"
|
|
37
|
+
)
|
|
26
38
|
if not isinstance(payload.get("nodes"), list) or not isinstance(payload.get("edges"), list):
|
|
27
39
|
raise ValueError("graph must contain nodes and edges arrays")
|
|
28
40
|
return payload
|
|
@@ -23,8 +23,6 @@ class IntegrityResult:
|
|
|
23
23
|
checked_file_count: int
|
|
24
24
|
manifest_body_sha256: str | None
|
|
25
25
|
errors: tuple[str, ...]
|
|
26
|
-
external_anchor_checked: bool = False
|
|
27
|
-
external_anchor_match: bool | None = None
|
|
28
26
|
|
|
29
27
|
def to_dict(self) -> dict[str, object]:
|
|
30
28
|
data = asdict(self)
|
|
@@ -134,8 +132,6 @@ def _load_manifest(path: Path) -> dict[str, Any]:
|
|
|
134
132
|
|
|
135
133
|
def verify_run_integrity(
|
|
136
134
|
run_root: str | Path,
|
|
137
|
-
*,
|
|
138
|
-
expected_manifest_body_sha256: str | None = None,
|
|
139
135
|
) -> IntegrityResult:
|
|
140
136
|
root = Path(run_root).expanduser().resolve()
|
|
141
137
|
manifest_path = _manifest_path(root)
|
|
@@ -143,16 +139,6 @@ def verify_run_integrity(
|
|
|
143
139
|
body_digest: str | None = None
|
|
144
140
|
sealed_count = 0
|
|
145
141
|
checked_count = 0
|
|
146
|
-
external_anchor_checked = expected_manifest_body_sha256 is not None
|
|
147
|
-
external_anchor_match: bool | None = None
|
|
148
|
-
expected_anchor: str | None = None
|
|
149
|
-
if expected_manifest_body_sha256 is not None:
|
|
150
|
-
candidate = expected_manifest_body_sha256.strip().lower()
|
|
151
|
-
if len(candidate) != 64 or any(ch not in "0123456789abcdef" for ch in candidate):
|
|
152
|
-
errors.append("external anchor digest must be a 64-character SHA-256 hex value")
|
|
153
|
-
else:
|
|
154
|
-
expected_anchor = candidate
|
|
155
|
-
|
|
156
142
|
try:
|
|
157
143
|
manifest = _load_manifest(manifest_path)
|
|
158
144
|
expected_keys = {
|
|
@@ -190,10 +176,6 @@ def verify_run_integrity(
|
|
|
190
176
|
body_digest = _sha256_bytes(_canonical_bytes(body))
|
|
191
177
|
if manifest["manifest_body_sha256"] != body_digest:
|
|
192
178
|
errors.append("manifest body digest mismatch")
|
|
193
|
-
if expected_anchor is not None:
|
|
194
|
-
external_anchor_match = body_digest == expected_anchor
|
|
195
|
-
if not external_anchor_match:
|
|
196
|
-
errors.append("external anchor digest mismatch")
|
|
197
179
|
|
|
198
180
|
expected_paths: set[str] = set()
|
|
199
181
|
for entry in files:
|
|
@@ -250,6 +232,4 @@ def verify_run_integrity(
|
|
|
250
232
|
checked_file_count=checked_count,
|
|
251
233
|
manifest_body_sha256=body_digest,
|
|
252
234
|
errors=tuple(errors),
|
|
253
|
-
external_anchor_checked=external_anchor_checked,
|
|
254
|
-
external_anchor_match=external_anchor_match,
|
|
255
235
|
)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import json
|
|
5
|
+
import sys
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from .integrity import seal_run_integrity, verify_run_integrity
|
|
9
|
+
from .reader_identity import reader_identity
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
13
|
+
parser = argparse.ArgumentParser(
|
|
14
|
+
prog="execweave-integrity",
|
|
15
|
+
description="Seal or verify completed ExecWeave run files for local consistency only.",
|
|
16
|
+
)
|
|
17
|
+
subs = parser.add_subparsers(dest="command", required=True)
|
|
18
|
+
seal = subs.add_parser("seal", help="create a local integrity manifest")
|
|
19
|
+
seal.add_argument("run_dir", type=Path)
|
|
20
|
+
verify = subs.add_parser("verify", help="check local manifest and sealed files")
|
|
21
|
+
verify.add_argument("run_dir", type=Path)
|
|
22
|
+
return parser
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def main(argv: list[str] | None = None) -> int:
|
|
26
|
+
args = build_parser().parse_args(argv)
|
|
27
|
+
if args.command == "seal":
|
|
28
|
+
try:
|
|
29
|
+
manifest = seal_run_integrity(args.run_dir)
|
|
30
|
+
except (FileExistsError, OSError, TypeError, ValueError) as exc:
|
|
31
|
+
print(f"ExecWeave integrity error: {exc}", file=sys.stderr)
|
|
32
|
+
return 2
|
|
33
|
+
print(json.dumps({
|
|
34
|
+
"status": "sealed",
|
|
35
|
+
"run_dir": str(args.run_dir.expanduser().resolve()),
|
|
36
|
+
"sealed_file_count": manifest["sealed_file_count"],
|
|
37
|
+
"manifest_body_sha256": manifest["manifest_body_sha256"],
|
|
38
|
+
"local_integrity_valid": True,
|
|
39
|
+
"malicious_writer_resistance": False,
|
|
40
|
+
"reader": reader_identity(),
|
|
41
|
+
}, sort_keys=True))
|
|
42
|
+
return 0
|
|
43
|
+
|
|
44
|
+
result = verify_run_integrity(args.run_dir)
|
|
45
|
+
report = result.to_dict()
|
|
46
|
+
report["status"] = "locally_valid" if result.valid else "local_integrity_failed"
|
|
47
|
+
report["local_integrity_valid"] = result.valid
|
|
48
|
+
report["malicious_writer_resistance"] = False
|
|
49
|
+
report["reader"] = reader_identity()
|
|
50
|
+
print(json.dumps(report, sort_keys=True))
|
|
51
|
+
return 0 if result.valid else 1
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
if __name__ == "__main__":
|
|
55
|
+
raise SystemExit(main())
|
|
@@ -141,11 +141,12 @@ def _scan(root: Path, names: list[str], session: str | None,
|
|
|
141
141
|
report["invalid_records"] += 1
|
|
142
142
|
continue
|
|
143
143
|
framework = _id(a.get("framework")) or _id(_obj(source.get("attributes")).get("framework"))
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
|
|
144
|
+
# Canonical SDK events may declare user-defined framework names.
|
|
145
|
+
# Trust the native event/participant/scope checks above rather than
|
|
146
|
+
# a product-specific enum that rejects otherwise valid handoffs.
|
|
147
|
+
if framework is None:
|
|
147
148
|
report["invalid_records"] += 1
|
|
148
|
-
diagnostic("
|
|
149
|
+
diagnostic("missing_canonical_emitter", name)
|
|
149
150
|
continue
|
|
150
151
|
kind, state, native_key = phase
|
|
151
152
|
native_id = _id(a.get(native_key))
|