execweave 1.0.0__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.
Files changed (234) hide show
  1. execweave-1.0.0/.gitignore +12 -0
  2. execweave-1.0.0/LICENSE +16 -0
  3. execweave-1.0.0/PKG-INFO +462 -0
  4. execweave-1.0.0/README.md +397 -0
  5. execweave-1.0.0/pyproject.toml +129 -0
  6. execweave-1.0.0/src/execweave/__init__.py +3 -0
  7. execweave-1.0.0/src/execweave/__main__.py +5 -0
  8. execweave-1.0.0/src/execweave/_conversation_records_core.py +902 -0
  9. execweave-1.0.0/src/execweave/_dashboard_shell_base.py +148 -0
  10. execweave-1.0.0/src/execweave/_http_proxy_base.py +565 -0
  11. execweave-1.0.0/src/execweave/_http_proxy_bounded.py +560 -0
  12. execweave-1.0.0/src/execweave/_http_proxy_stage.py +509 -0
  13. execweave-1.0.0/src/execweave/acceptance_output.py +19 -0
  14. execweave-1.0.0/src/execweave/agent_bootstrap.py +395 -0
  15. execweave-1.0.0/src/execweave/agent_topology.py +313 -0
  16. execweave-1.0.0/src/execweave/agent_trace.py +1162 -0
  17. execweave-1.0.0/src/execweave/agy_preview_sanitize.py +102 -0
  18. execweave-1.0.0/src/execweave/analysis.py +427 -0
  19. execweave-1.0.0/src/execweave/anthropic.py +228 -0
  20. execweave-1.0.0/src/execweave/anthropic_cli.py +171 -0
  21. execweave-1.0.0/src/execweave/anthropic_full_fidelity.py +385 -0
  22. execweave-1.0.0/src/execweave/antigravity_adapter.py +112 -0
  23. execweave-1.0.0/src/execweave/antigravity_adapter_base.py +479 -0
  24. execweave-1.0.0/src/execweave/antigravity_full_fidelity.py +656 -0
  25. execweave-1.0.0/src/execweave/antigravity_full_fidelity_base.py +172 -0
  26. execweave-1.0.0/src/execweave/antigravity_full_fidelity_collaboration_base.py +451 -0
  27. execweave-1.0.0/src/execweave/antigravity_hook_cli.py +209 -0
  28. execweave-1.0.0/src/execweave/antigravity_record.py +96 -0
  29. execweave-1.0.0/src/execweave/antigravity_subagent_linkage.py +449 -0
  30. execweave-1.0.0/src/execweave/antigravity_trace_capability.py +39 -0
  31. execweave-1.0.0/src/execweave/auto_specialized.py +547 -0
  32. execweave-1.0.0/src/execweave/backends.py +102 -0
  33. execweave-1.0.0/src/execweave/benchmark.py +80 -0
  34. execweave-1.0.0/src/execweave/claude_adapter.py +517 -0
  35. execweave-1.0.0/src/execweave/claude_child_transcript.py +314 -0
  36. execweave-1.0.0/src/execweave/claude_delegation.py +136 -0
  37. execweave-1.0.0/src/execweave/claude_full_fidelity.py +396 -0
  38. execweave-1.0.0/src/execweave/claude_hook_cli.py +209 -0
  39. execweave-1.0.0/src/execweave/claude_hook_contract.py +943 -0
  40. execweave-1.0.0/src/execweave/claude_model_observer.py +353 -0
  41. execweave-1.0.0/src/execweave/claude_record.py +106 -0
  42. execweave-1.0.0/src/execweave/cli.py +629 -0
  43. execweave-1.0.0/src/execweave/codex_adapter.py +455 -0
  44. execweave-1.0.0/src/execweave/codex_conversation.py +621 -0
  45. execweave-1.0.0/src/execweave/codex_full_fidelity.py +287 -0
  46. execweave-1.0.0/src/execweave/codex_hook_cli.py +301 -0
  47. execweave-1.0.0/src/execweave/codex_hook_entry.py +207 -0
  48. execweave-1.0.0/src/execweave/codex_hook_lifecycle.py +363 -0
  49. execweave-1.0.0/src/execweave/codex_message_diagnostics.py +322 -0
  50. execweave-1.0.0/src/execweave/codex_message_transport_diagnostics.py +399 -0
  51. execweave-1.0.0/src/execweave/codex_record.py +199 -0
  52. execweave-1.0.0/src/execweave/codex_rollout_structures.py +402 -0
  53. execweave-1.0.0/src/execweave/codex_rollout_trace.py +56 -0
  54. execweave-1.0.0/src/execweave/codex_rollout_trace_base.py +1509 -0
  55. execweave-1.0.0/src/execweave/collector.py +768 -0
  56. execweave-1.0.0/src/execweave/command.py +157 -0
  57. execweave-1.0.0/src/execweave/command_privacy.py +20 -0
  58. execweave-1.0.0/src/execweave/content_evidence.py +101 -0
  59. execweave-1.0.0/src/execweave/content_integrity.py +289 -0
  60. execweave-1.0.0/src/execweave/content_store.py +273 -0
  61. execweave-1.0.0/src/execweave/controlled_checks.py +561 -0
  62. execweave-1.0.0/src/execweave/conversation_archive.py +338 -0
  63. execweave-1.0.0/src/execweave/conversation_message_identity.py +264 -0
  64. execweave-1.0.0/src/execweave/conversation_preview.py +66 -0
  65. execweave-1.0.0/src/execweave/conversation_preview_antigravity.py +32 -0
  66. execweave-1.0.0/src/execweave/conversation_preview_claude.py +31 -0
  67. execweave-1.0.0/src/execweave/conversation_preview_codex.py +107 -0
  68. execweave-1.0.0/src/execweave/conversation_preview_common.py +180 -0
  69. execweave-1.0.0/src/execweave/conversation_preview_generic.py +188 -0
  70. execweave-1.0.0/src/execweave/conversation_preview_lines.py +133 -0
  71. execweave-1.0.0/src/execweave/conversation_preview_transcript.py +121 -0
  72. execweave-1.0.0/src/execweave/conversation_records.py +349 -0
  73. execweave-1.0.0/src/execweave/conversation_records_antigravity.py +370 -0
  74. execweave-1.0.0/src/execweave/conversation_records_codex.py +83 -0
  75. execweave-1.0.0/src/execweave/conversation_records_common.py +17 -0
  76. execweave-1.0.0/src/execweave/conversation_records_ollama.py +39 -0
  77. execweave-1.0.0/src/execweave/correlation.py +818 -0
  78. execweave-1.0.0/src/execweave/cursor_adapter.py +349 -0
  79. execweave-1.0.0/src/execweave/cursor_delegation.py +87 -0
  80. execweave-1.0.0/src/execweave/cursor_delegation_base.py +220 -0
  81. execweave-1.0.0/src/execweave/cursor_full_fidelity.py +489 -0
  82. execweave-1.0.0/src/execweave/cursor_hook_cli.py +195 -0
  83. execweave-1.0.0/src/execweave/cursor_hook_contract.py +439 -0
  84. execweave-1.0.0/src/execweave/cursor_lifecycle.py +159 -0
  85. execweave-1.0.0/src/execweave/cursor_record.py +96 -0
  86. execweave-1.0.0/src/execweave/dashboard_shell.py +283 -0
  87. execweave-1.0.0/src/execweave/delivery_status.py +94 -0
  88. execweave-1.0.0/src/execweave/entry.py +98 -0
  89. execweave-1.0.0/src/execweave/evidence_availability.py +113 -0
  90. execweave-1.0.0/src/execweave/evidence_grade.py +166 -0
  91. execweave-1.0.0/src/execweave/fidelity.py +304 -0
  92. execweave-1.0.0/src/execweave/filesystem.py +327 -0
  93. execweave-1.0.0/src/execweave/finalization.py +92 -0
  94. execweave-1.0.0/src/execweave/focus.py +118 -0
  95. execweave-1.0.0/src/execweave/framework_adapters/__init__.py +34 -0
  96. execweave-1.0.0/src/execweave/framework_adapters/autogen.py +398 -0
  97. execweave-1.0.0/src/execweave/framework_adapters/base.py +580 -0
  98. execweave-1.0.0/src/execweave/framework_adapters/camel.py +270 -0
  99. execweave-1.0.0/src/execweave/framework_adapters/camel_channel.py +71 -0
  100. execweave-1.0.0/src/execweave/framework_adapters/metagpt.py +315 -0
  101. execweave-1.0.0/src/execweave/framework_adapters/metagpt_ollama_compat.py +54 -0
  102. execweave-1.0.0/src/execweave/framework_adapters/metagpt_recording.py +342 -0
  103. execweave-1.0.0/src/execweave/framework_adapters/registry.py +90 -0
  104. execweave-1.0.0/src/execweave/graph.py +590 -0
  105. execweave-1.0.0/src/execweave/graph_ops.py +472 -0
  106. execweave-1.0.0/src/execweave/hook_command.py +32 -0
  107. execweave-1.0.0/src/execweave/hook_delivery.py +32 -0
  108. execweave-1.0.0/src/execweave/hook_input.py +16 -0
  109. execweave-1.0.0/src/execweave/http_proxy.py +187 -0
  110. execweave-1.0.0/src/execweave/http_proxy_cli.py +84 -0
  111. execweave-1.0.0/src/execweave/inference_gateway.py +476 -0
  112. execweave-1.0.0/src/execweave/inference_gateway_cli.py +211 -0
  113. execweave-1.0.0/src/execweave/inference_gateway_full_fidelity.py +613 -0
  114. execweave-1.0.0/src/execweave/inference_identity.py +76 -0
  115. execweave-1.0.0/src/execweave/inference_identity_cli.py +60 -0
  116. execweave-1.0.0/src/execweave/integrity.py +235 -0
  117. execweave-1.0.0/src/execweave/integrity_cli.py +55 -0
  118. execweave-1.0.0/src/execweave/investigation_index.py +445 -0
  119. execweave-1.0.0/src/execweave/litellm_callback.py +211 -0
  120. execweave-1.0.0/src/execweave/litellm_callback_cli.py +42 -0
  121. execweave-1.0.0/src/execweave/live.py +445 -0
  122. execweave-1.0.0/src/execweave/live_core.py +972 -0
  123. execweave-1.0.0/src/execweave/live_view.py +109 -0
  124. execweave-1.0.0/src/execweave/live_view_extra_style.py +11 -0
  125. execweave-1.0.0/src/execweave/live_view_markup.py +29 -0
  126. execweave-1.0.0/src/execweave/live_view_process_layout.py +650 -0
  127. execweave-1.0.0/src/execweave/live_view_readability.py +502 -0
  128. execweave-1.0.0/src/execweave/live_view_script_a.py +59 -0
  129. execweave-1.0.0/src/execweave/live_view_script_b.py +97 -0
  130. execweave-1.0.0/src/execweave/live_view_script_c.py +59 -0
  131. execweave-1.0.0/src/execweave/live_view_script_d.py +40 -0
  132. execweave-1.0.0/src/execweave/live_view_style.py +34 -0
  133. execweave-1.0.0/src/execweave/model_runtime.py +560 -0
  134. execweave-1.0.0/src/execweave/model_runtime_cli.py +265 -0
  135. execweave-1.0.0/src/execweave/model_runtime_full_fidelity.py +519 -0
  136. execweave-1.0.0/src/execweave/observation.py +53 -0
  137. execweave-1.0.0/src/execweave/observation_demo.py +69 -0
  138. execweave-1.0.0/src/execweave/openai_agents.py +267 -0
  139. execweave-1.0.0/src/execweave/openai_agents_sdk.py +453 -0
  140. execweave-1.0.0/src/execweave/openai_compatible.py +239 -0
  141. execweave-1.0.0/src/execweave/openai_compatible_cli.py +189 -0
  142. execweave-1.0.0/src/execweave/openai_compatible_full_fidelity.py +438 -0
  143. execweave-1.0.0/src/execweave/opencode_adapter.py +325 -0
  144. execweave-1.0.0/src/execweave/opencode_event_contract.py +734 -0
  145. execweave-1.0.0/src/execweave/opencode_full_fidelity.py +198 -0
  146. execweave-1.0.0/src/execweave/opencode_hook_cli.py +119 -0
  147. execweave-1.0.0/src/execweave/opencode_plugin_cli.py +150 -0
  148. execweave-1.0.0/src/execweave/opencode_record.py +96 -0
  149. execweave-1.0.0/src/execweave/opencode_task_linkage.py +225 -0
  150. execweave-1.0.0/src/execweave/overhead_benchmark.py +440 -0
  151. execweave-1.0.0/src/execweave/privacy.py +84 -0
  152. execweave-1.0.0/src/execweave/private_io.py +465 -0
  153. execweave-1.0.0/src/execweave/provider_capability.py +578 -0
  154. execweave-1.0.0/src/execweave/provider_lifecycle.py +282 -0
  155. execweave-1.0.0/src/execweave/provider_record.py +290 -0
  156. execweave-1.0.0/src/execweave/reader_identity.py +13 -0
  157. execweave-1.0.0/src/execweave/redacted_archive.py +906 -0
  158. execweave-1.0.0/src/execweave/risk.py +106 -0
  159. execweave-1.0.0/src/execweave/rule_pack.py +359 -0
  160. execweave-1.0.0/src/execweave/rule_pack_cli.py +57 -0
  161. execweave-1.0.0/src/execweave/run_assessment.py +200 -0
  162. execweave-1.0.0/src/execweave/runtime_endpoint_availability.py +44 -0
  163. execweave-1.0.0/src/execweave/scalability_benchmark.py +195 -0
  164. execweave-1.0.0/src/execweave/schema.py +62 -0
  165. execweave-1.0.0/src/execweave/scope.py +85 -0
  166. execweave-1.0.0/src/execweave/semantic.py +453 -0
  167. execweave-1.0.0/src/execweave/session_summary.py +159 -0
  168. execweave-1.0.0/src/execweave/sink.py +71 -0
  169. execweave-1.0.0/src/execweave/strace_backend.py +927 -0
  170. execweave-1.0.0/src/execweave/stream_assembly.py +363 -0
  171. execweave-1.0.0/src/execweave/task_artifacts.py +192 -0
  172. execweave-1.0.0/src/execweave/task_validation.py +317 -0
  173. execweave-1.0.0/src/execweave/theme.py +40 -0
  174. execweave-1.0.0/src/execweave/top.py +599 -0
  175. execweave-1.0.0/src/execweave/top_cli.py +150 -0
  176. execweave-1.0.0/src/execweave/validate.py +196 -0
  177. execweave-1.0.0/src/execweave/vendor/dagre.min.js +815 -0
  178. execweave-1.0.0/src/execweave/view_cli.py +49 -0
  179. execweave-1.0.0/src/execweave/viewer.py +474 -0
  180. execweave-1.0.0/src/execweave/viewer_agent_panel.py +630 -0
  181. execweave-1.0.0/src/execweave/viewer_agent_panel_antigravity.py +31 -0
  182. execweave-1.0.0/src/execweave/viewer_agent_panel_claude.py +9 -0
  183. execweave-1.0.0/src/execweave/viewer_agent_panel_codex.py +50 -0
  184. execweave-1.0.0/src/execweave/viewer_agent_panel_cursor.py +9 -0
  185. execweave-1.0.0/src/execweave/viewer_agent_panel_default.py +79 -0
  186. execweave-1.0.0/src/execweave/viewer_agent_panel_ollama.py +20 -0
  187. execweave-1.0.0/src/execweave/viewer_agent_panel_opencode.py +9 -0
  188. execweave-1.0.0/src/execweave/viewer_agent_panel_registry.py +20 -0
  189. execweave-1.0.0/src/execweave/viewer_archive_verifier.py +178 -0
  190. execweave-1.0.0/src/execweave/viewer_background_files.py +86 -0
  191. execweave-1.0.0/src/execweave/viewer_content_browser.py +307 -0
  192. execweave-1.0.0/src/execweave/viewer_content_health.py +208 -0
  193. execweave-1.0.0/src/execweave/viewer_content_inspector.py +309 -0
  194. execweave-1.0.0/src/execweave/viewer_controlled_checks.py +258 -0
  195. execweave-1.0.0/src/execweave/viewer_conversation_sync.py +115 -0
  196. execweave-1.0.0/src/execweave/viewer_dashboard_clean.py +405 -0
  197. execweave-1.0.0/src/execweave/viewer_dashboard_focus.py +127 -0
  198. execweave-1.0.0/src/execweave/viewer_dashboard_hardening.py +264 -0
  199. execweave-1.0.0/src/execweave/viewer_dashboard_hardening_v2.py +62 -0
  200. execweave-1.0.0/src/execweave/viewer_dashboard_projection.py +261 -0
  201. execweave-1.0.0/src/execweave/viewer_delivery_status.py +155 -0
  202. execweave-1.0.0/src/execweave/viewer_edge_decross.py +117 -0
  203. execweave-1.0.0/src/execweave/viewer_execution_flow.py +611 -0
  204. execweave-1.0.0/src/execweave/viewer_execution_flow_provider_normalization.py +107 -0
  205. execweave-1.0.0/src/execweave/viewer_execution_flow_safety.py +349 -0
  206. execweave-1.0.0/src/execweave/viewer_external_endpoints.py +307 -0
  207. execweave-1.0.0/src/execweave/viewer_flow_canvas.py +1140 -0
  208. execweave-1.0.0/src/execweave/viewer_flow_layout.py +922 -0
  209. execweave-1.0.0/src/execweave/viewer_fold_state.py +31 -0
  210. execweave-1.0.0/src/execweave/viewer_framework_flow.py +68 -0
  211. execweave-1.0.0/src/execweave/viewer_framework_model_output.py +133 -0
  212. execweave-1.0.0/src/execweave/viewer_gif.py +278 -0
  213. execweave-1.0.0/src/execweave/viewer_history_browser.py +225 -0
  214. execweave-1.0.0/src/execweave/viewer_investigation.py +268 -0
  215. execweave-1.0.0/src/execweave/viewer_layout_geometry.py +192 -0
  216. execweave-1.0.0/src/execweave/viewer_layout_v2.py +429 -0
  217. execweave-1.0.0/src/execweave/viewer_layout_v2_detached.py +25 -0
  218. execweave-1.0.0/src/execweave/viewer_limits.py +93 -0
  219. execweave-1.0.0/src/execweave/viewer_live_layout.py +61 -0
  220. execweave-1.0.0/src/execweave/viewer_message_handoffs.py +114 -0
  221. execweave-1.0.0/src/execweave/viewer_projection.py +488 -0
  222. execweave-1.0.0/src/execweave/viewer_projection_base.py +522 -0
  223. execweave-1.0.0/src/execweave/viewer_projection_bridges.py +214 -0
  224. execweave-1.0.0/src/execweave/viewer_recorded_sources.py +146 -0
  225. execweave-1.0.0/src/execweave/viewer_run_assessment.py +274 -0
  226. execweave-1.0.0/src/execweave/viewer_run_guide.py +175 -0
  227. execweave-1.0.0/src/execweave/viewer_runtime_evidence.py +258 -0
  228. execweave-1.0.0/src/execweave/viewer_semantic_projection.py +641 -0
  229. execweave-1.0.0/src/execweave/viewer_session_flow.py +491 -0
  230. execweave-1.0.0/src/execweave/viewer_structure_share.py +132 -0
  231. execweave-1.0.0/src/execweave/viewer_task_validation.py +241 -0
  232. execweave-1.0.0/src/execweave/viewer_tool_mirror_identity.py +75 -0
  233. execweave-1.0.0/src/execweave/viewer_workflow_mode.py +127 -0
  234. execweave-1.0.0/src/execweave/workflow.py +183 -0
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ .venv/
6
+ venv/
7
+ dist/
8
+ build/
9
+ *.egg-info/
10
+ .execweave/
11
+ .execweave-acceptance/
12
+ artifacts/dashboard-acceptance/
@@ -0,0 +1,16 @@
1
+ PolyForm Noncommercial License 1.0.0
2
+
3
+ This software is licensed under the PolyForm Noncommercial License 1.0.0.
4
+ The complete license terms are available at:
5
+ https://polyformproject.org/licenses/noncommercial/1.0.0
6
+
7
+ Required Notice: Copyright (c) 2026 GWW
8
+
9
+ Commercial use is not permitted under this license. Any commercial use,
10
+ including use in or for a commercial product or service, requires a separate
11
+ written commercial license from the licensor.
12
+
13
+ For the avoidance of doubt, this license change applies to versions released
14
+ under these terms. Earlier versions that were already distributed under the
15
+ MIT License remain available under the license terms that accompanied those
16
+ versions.
@@ -0,0 +1,462 @@
1
+ Metadata-Version: 2.5
2
+ Name: execweave
3
+ Version: 1.0.0
4
+ Summary: Local AI-agent execution graphs that identify sender/recipient handoffs with no observed receive in graph.json.
5
+ Project-URL: Homepage, https://github.com/Irish-kw/ExecWeave
6
+ Project-URL: Repository, https://github.com/Irish-kw/ExecWeave
7
+ Project-URL: Documentation, https://github.com/Irish-kw/ExecWeave#documentation
8
+ Project-URL: Issues, https://github.com/Irish-kw/ExecWeave/issues
9
+ Author: ExecWeave contributors
10
+ License: PolyForm Noncommercial License 1.0.0
11
+
12
+ This software is licensed under the PolyForm Noncommercial License 1.0.0.
13
+ The complete license terms are available at:
14
+ https://polyformproject.org/licenses/noncommercial/1.0.0
15
+
16
+ Required Notice: Copyright (c) 2026 GWW
17
+
18
+ Commercial use is not permitted under this license. Any commercial use,
19
+ including use in or for a commercial product or service, requires a separate
20
+ written commercial license from the licensor.
21
+
22
+ For the avoidance of doubt, this license change applies to versions released
23
+ under these terms. Earlier versions that were already distributed under the
24
+ MIT License remain available under the license terms that accompanied those
25
+ versions.
26
+ License-File: LICENSE
27
+ Keywords: ai-agents,execution-graph,observability,provenance,runtime,security
28
+ Classifier: Development Status :: 4 - Beta
29
+ Classifier: Environment :: Console
30
+ Classifier: Intended Audience :: Developers
31
+ Classifier: Intended Audience :: Information Technology
32
+ Classifier: License :: Other/Proprietary License
33
+ Classifier: Operating System :: OS Independent
34
+ Classifier: Programming Language :: Python :: 3
35
+ Classifier: Programming Language :: Python :: 3.10
36
+ Classifier: Programming Language :: Python :: 3.11
37
+ Classifier: Programming Language :: Python :: 3.12
38
+ Classifier: Programming Language :: Python :: 3.13
39
+ Classifier: Topic :: Software Development :: Debuggers
40
+ Classifier: Topic :: System :: Monitoring
41
+ Requires-Python: >=3.10
42
+ Requires-Dist: psutil>=5.9
43
+ Requires-Dist: watchdog>=4.0
44
+ Provides-Extra: agents
45
+ Requires-Dist: openai-agents<0.25,>=0.24; extra == 'agents'
46
+ Provides-Extra: dev
47
+ Requires-Dist: cryptography>=44; extra == 'dev'
48
+ Requires-Dist: pillow>=10.0; extra == 'dev'
49
+ Requires-Dist: pytest>=8.0; extra == 'dev'
50
+ Requires-Dist: pywinpty<4,>=3.0.5; (platform_system == 'Windows') and extra == 'dev'
51
+ Requires-Dist: pyyaml>=6.0; extra == 'dev'
52
+ Requires-Dist: ruff<0.17,>=0.16; extra == 'dev'
53
+ Requires-Dist: tomli>=2.0; (python_version < '3.11') and extra == 'dev'
54
+ Provides-Extra: e2e
55
+ Requires-Dist: pillow>=10.0; extra == 'e2e'
56
+ Requires-Dist: playwright>=1.44; extra == 'e2e'
57
+ Requires-Dist: pywinpty<4,>=3.0.5; (platform_system == 'Windows') and extra == 'e2e'
58
+ Provides-Extra: release
59
+ Requires-Dist: build>=1.2; extra == 'release'
60
+ Requires-Dist: tomli>=2.0; (python_version < '3.11') and extra == 'release'
61
+ Requires-Dist: twine>=6.0; extra == 'release'
62
+ Provides-Extra: validation
63
+ Requires-Dist: cryptography>=44; extra == 'validation'
64
+ Description-Content-Type: text/markdown
65
+
66
+ <p align="center">
67
+ <img src="docs/assets/shot5_brand.jpg" alt="ExecWeave" width="100%">
68
+ </p>
69
+
70
+ # ExecWeave
71
+
72
+ <!-- i18n-nav:start -->
73
+ <p align="center">
74
+ <strong>English</strong> |
75
+ <a href="README.zh-TW.md">繁體中文</a> |
76
+ <a href="README.zh-CN.md">简体中文</a> |
77
+ <a href="README.ja.md">日本語</a> |
78
+ <a href="README.ko.md">한국어</a> |
79
+ <a href="README.fr.md">Français</a> |
80
+ <a href="README.de.md">Deutsch</a> |
81
+ <a href="README.ru.md">Русский</a>
82
+ </p>
83
+ <!-- i18n-nav:end -->
84
+
85
+ <p align="center">
86
+ <a href="https://pypi.org/project/execweave/"><img src="https://img.shields.io/pypi/v/execweave" alt="PyPI"></a>
87
+ <a href="https://github.com/Irish-kw/ExecWeave/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/Irish-kw/ExecWeave/ci.yml?branch=main" alt="CI"></a>
88
+ <img src="https://img.shields.io/badge/Python-3.10%2B-blue" alt="Python 3.10+">
89
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-PolyForm%20Noncommercial-blue" alt="License"></a>
90
+ </p>
91
+
92
+ **See what AI agents actually do on your machine.**
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
+
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.
97
+
98
+ > **Events are evidence. The graph is a materialized view.**
99
+
100
+ <p align="center">
101
+ <img src="docs/assets/codex.gif" alt="ExecWeave live dashboard demo" width="100%">
102
+ </p>
103
+
104
+ ## Why ExecWeave
105
+
106
+ An agent can say it used a tool, edited a file, or contacted a service. That is useful semantic evidence, but it is not the same as observing what happened on the machine. ExecWeave keeps those layers separate and lets you inspect them together.
107
+
108
+ - **One dashboard for live and finished runs.** The live page, completed run, and standalone `viewer.html` use the same graph and conversation model.
109
+ - **Provider-aware semantics.** Hooks, rollout transcripts, plugins, and runtime APIs are used when a provider exposes them.
110
+ - **OS-runtime evidence.** Processes, files, and network endpoints can be observed independently of provider semantics.
111
+ - **Evidence-aware attribution.** Direct observations, exact identities, conservative inference, and causal claims are not flattened into one label.
112
+ - **Local-first storage.** Run artifacts stay on the machine unless you choose to copy or share them.
113
+ - **Works beyond one agent.** You can wrap ordinary local commands even when no specialized provider adapter exists.
114
+
115
+ ## Install
116
+
117
+ Install from PyPI:
118
+
119
+ ```bash
120
+ python -m pip install -U execweave
121
+ ```
122
+
123
+ For development:
124
+
125
+ ```bash
126
+ git clone https://github.com/Irish-kw/ExecWeave.git
127
+ cd ExecWeave
128
+ python -m pip install -e ".[dev]"
129
+ ```
130
+
131
+ ## Quick start
132
+
133
+ First create an isolated, user-owned virtual environment (no sudo):
134
+
135
+ ```bash
136
+ python -m venv .venv
137
+ source .venv/bin/activate
138
+ python -m pip install -U execweave
139
+ ```
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:
144
+
145
+ ```bash
146
+ python -m execweave.observation_demo --output-dir ./observation-negative
147
+ ```
148
+
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):
162
+
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
175
+ execweave top -- codex
176
+ ```
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
+
181
+ ### Provider integration approval
182
+
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.
184
+
185
+ See [observation integrity and the negative example](docs/observation-integrity.md) for the three result axes and their honest limits. These changes ship in 0.8.35; earlier versions do not contain them.
186
+
187
+ **Live privacy and authentication (0.8.35)**
188
+
189
+ `execweave live` and `execweave top` record the complete provider/model content an integration exposes (prompts, responses, tool values) by default, because the run stays on your own machine for you to inspect. Add `--metadata-only` when a run must not store that plaintext; `--capture-content` remains accepted and selects the default explicitly. Invalid capture-policy values fail closed to metadata-only at automatic recorder boundaries.
190
+
191
+ The live dashboard no longer puts its API credential in `?t=...`. The announced URL contains no credential. Browser access uses a one-time pairing code submitted in a POST body and then an `HttpOnly; SameSite=Strict` cookie; non-browser API clients use the private `X-ExecWeave-Token` header.
192
+
193
+ Google Antigravity currently uses the `agy` CLI command. ExecWeave also accepts `antigravity` as a friendly alias.
194
+
195
+ On Windows, bare `cursor` follows the Cursor installation referenced by the user's PATH. Explicit launcher paths are respected.
196
+
197
+ ## Ollama
198
+
199
+ ExecWeave supports two common local Ollama workflows.
200
+
201
+ ### Managed server capture
202
+
203
+ Start Ollama through ExecWeave:
204
+
205
+ ```bash
206
+ execweave live --open -- ollama serve
207
+ ```
208
+
209
+ Then use Ollama normally from another terminal:
210
+
211
+ ```bash
212
+ ollama run deepseek-r1:1.5b
213
+ ```
214
+
215
+ SDK calls, OpenAI-compatible local requests, and `curl` requests that reach the managed local endpoint can be associated with the same ExecWeave run. The second terminal does not need another ExecWeave wrapper.
216
+
217
+ Managed relay mode is intentionally limited to local loopback endpoints. ExecWeave does not rewrite wildcard or externally exposed Ollama listeners.
218
+
219
+ ### Direct client capture
220
+
221
+ If an Ollama server is already running, you can wrap the client directly:
222
+
223
+ ```bash
224
+ execweave live --open -- ollama run deepseek-r1:1.5b
225
+ ```
226
+
227
+ This mode does not start an Ollama server. A reachable upstream server is still required.
228
+
229
+ In both modes the relay forwards every request and, by default, records each inference exchange so the prompts and responses appear in the run and on the dashboard. Add `--metadata-only` (for example, `execweave live --metadata-only --open -- ollama serve`) when the conversation must not be stored.
230
+
231
+ ## Dashboard
232
+
233
+ The dashboard is designed to keep large, multi-agent runs inspectable without changing the underlying evidence.
234
+
235
+ - **Execution graph:** agents, processes, files, network endpoints, tools, model/runtime entities, and supported relations.
236
+ - **Conversation rounds:** recent and historical rounds remain associated with the correct agent instead of being overwritten by later messages.
237
+ - **Node details:** inspect process identity, file history, network endpoints, tools, and provider conversation content.
238
+ - **Stable live updates:** the dashboard updates in place instead of replacing the whole document when a run changes state.
239
+ - **Large-run folding:** high-cardinality node types can collapse older members while keeping them inspectable.
240
+ - **Selection-focused layout:** selecting an agent or runtime object de-emphasizes unrelated graph traffic.
241
+
242
+ **Download GIF** saves the graph viewport as it appeared while this Dashboard page
243
+ was open and visible, including labels, folding, camera changes, and elapsed time
244
+ (sampled at up to 10 frames per second). It excludes the inspector and logs. A
245
+ reopened finished run has no recorded screen history and exports a still image.
246
+ Keep the viewport size fixed for a consistent frame; resizing adds padding rather
247
+ than rescaling older frames. Recording stops with an explicit message if the page
248
+ is hidden during a live run, rendering is paused, or the 64 MB recording limit is
249
+ reached; it never substitutes an animation reconstructed from the final graph.
250
+
251
+ You can tune large-run rendering with:
252
+
253
+ ```text
254
+ --fold-budget N
255
+ --viewer-max-nodes N
256
+ --viewer-max-edges N
257
+ --viewer-max-dom-elements N
258
+ ```
259
+
260
+ ## Supported integrations
261
+
262
+ | Integration | OS-runtime observation | Specialized evidence |
263
+ | --- | --- | --- |
264
+ | Claude Code | Yes when launched under ExecWeave | native hooks and provider-supplied conversation/tool content |
265
+ | OpenAI Codex | Yes | lifecycle hooks, validated rollout transcripts, agent/subagent routing where exposed |
266
+ | Google Antigravity | Yes | passive hooks and conversation/subagent routing where exposed |
267
+ | Cursor | Yes | native hooks and task/subagent routing where exposed |
268
+ | OpenCode | Yes | project plugin, session/task routing, supplied plugin content |
269
+ | Ollama | Yes | managed local relay and model-runtime evidence |
270
+ | llama.cpp | Yes | model-runtime event/exchange/probe integration |
271
+ | vLLM | Yes | model-runtime event/exchange/probe integration |
272
+ | LM Studio | When the local process is observed | model-runtime catalog/runtime evidence |
273
+ | LiteLLM Proxy | When the local proxy is observed | gateway metadata and event integration |
274
+ | OpenRouter | Local client only; the remote service process is not observable | caller-supplied gateway event/exchange evidence |
275
+
276
+ Provider identifiers such as a tool-call ID, session ID, rollout thread ID, or subagent route are logical identities. They are not automatically OS process IDs. ExecWeave links layers only when the available evidence supports the link.
277
+
278
+ ## Evidence model
279
+
280
+ ExecWeave separates four broad layers:
281
+
282
+ ```text
283
+ Agent / IDE semantics and supplied content
284
+ ↓
285
+ Inference gateway / routing evidence
286
+ ↓
287
+ Model runtime / inference-server evidence
288
+ ↓
289
+ OS runtime evidence: process / file / network
290
+ ```
291
+
292
+ A relationship is marked causal only when the underlying telemetry supports a causal claim. Conservative bridges remain explicit derived evidence, for example:
293
+
294
+ ```text
295
+ inferred: true
296
+ causal: false
297
+ ```
298
+
299
+ An exact shared request identity can prove identity without proving causality:
300
+
301
+ ```text
302
+ identity_exact: true
303
+ inferred: false
304
+ causal: false
305
+ ```
306
+
307
+ If attribution is ambiguous, ExecWeave should leave the edge absent rather than invent a stronger relationship.
308
+
309
+ ### Full-fidelity supplied content
310
+
311
+ Supported integrations can preserve complete values explicitly supplied by provider hooks, plugins, or APIs in a local SHA-256 content-addressed store:
312
+
313
+ ```text
314
+ <run-root>/content/sha256/<sha256>.<json|txt|bin>
315
+ ```
316
+
317
+ Depending on the integration, this can include prompts, messages, request/response objects, tool inputs/results, assistant responses, exposed reasoning text, shell output, and supplied file content.
318
+
319
+ `complete_from_source: true` means ExecWeave stored the complete value delivered by that integration point. It does **not** mean ExecWeave observed hidden model state or provider-side data that was never exposed.
320
+
321
+ ## Common commands
322
+
323
+ ### Agent and IDE recorders
324
+
325
+ ```bash
326
+ execweave-claude-record --open -- claude
327
+ execweave-codex-record --open -- codex
328
+ execweave-antigravity-record --open -- antigravity
329
+ execweave-cursor-record --open -- cursor
330
+ execweave-opencode-plugin --install
331
+ execweave-opencode-record --open -- opencode
332
+ ```
333
+
334
+ ### Gateways and model runtimes
335
+
336
+ ```bash
337
+ execweave-inference-gateway event --gateway openrouter --sidecar gateway.jsonl
338
+ execweave-inference-gateway exchange --gateway openrouter --sidecar gateway.jsonl
339
+ execweave-model-runtime event --runtime ollama --sidecar model-runtime.jsonl
340
+ execweave-model-runtime exchange --runtime ollama --sidecar model-runtime.jsonl
341
+ execweave-model-runtime probe --runtime ollama --sidecar model-runtime.jsonl
342
+ ```
343
+
344
+ `event` records one-sided event evidence. `exchange` records a caller-supplied request/response pair; it does not claim transparent wire interception.
345
+
346
+ ### Runtime, graph, security, and integrity
347
+
348
+ ```bash
349
+ execweave doctor
350
+ execweave run --backend portable -- your-command
351
+ execweave run --backend strace -- your-command
352
+ execweave graph-summary run.graph.json
353
+ execweave graph-filter run.graph.json --causal-only --output causal.graph.json
354
+ execweave graph-focus run.graph.json NODE_ID --hops 2 --output focused.graph.json
355
+ execweave path run.graph.json SOURCE TARGET --causal-only
356
+ execweave analyze run.graph.json --output analysis.json
357
+ execweave-rule-pack graph.json --rule-pack local-policy.json --output report.json
358
+ execweave-integrity seal .execweave/runs/<run-id>
359
+ execweave-integrity verify .execweave/runs/<run-id>
360
+ ```
361
+
362
+ ## Run artifacts
363
+
364
+ A provider-integrated run can contain:
365
+
366
+ ```text
367
+ .execweave/runs/<run-id>/
368
+ ├── events.jsonl
369
+ ├── graph.json
370
+ ├── viewer.html
371
+ ├── semantic.jsonl
372
+ ├── content/sha256/...
373
+ ├── conversations.md
374
+ ├── conversations.json
375
+ ├── events.semantic.jsonl
376
+ ├── graph.semantic.json
377
+ ├── viewer.semantic.html
378
+ ├── events.correlated.jsonl
379
+ ├── graph.correlated.json
380
+ ├── viewer.correlated.html
381
+ └── integrity.json
382
+ ```
383
+
384
+ Raw observations remain separate from derived semantic and correlation outputs.
385
+
386
+ ## Limits and privacy
387
+
388
+ - The portable collector runs on Linux, macOS, and Windows. Portable filesystem observation is session-correlated rather than always process-causal, and polling can miss sufficiently short-lived activity.
389
+ - **Process lifetime identity:** portable process tracking distinguishes PID reuse with the process creation time. A reused PID is recorded as a new process lifetime instead of being collapsed into the earlier process.
390
+ - **Explicit degraded-state reporting:** terminal network collection health is reported as `available`, `degraded`, `unavailable`, `not_sampled`, or `not_requested`. A finished live conversation is considered synchronized only after the final conversation fetch succeeds; stopping polling alone is not treated as successful synchronization.
391
+ - **Failure ownership cleanup:** if the portable collector fails unexpectedly after launching a managed workload, it terminates the workload it owns before recording terminal session state. A filesystem observer that only partially starts is also torn down before the startup error propagates.
392
+ - Linux also provides a `strace` reference backend with stronger syscall-attributed evidence for supported executions.
393
+ - Provider semantics depend on what each integration actually exposes. Missing prompts, hidden reasoning, remote provider internals, and unexposed routing cannot be reconstructed reliably.
394
+ - Full-fidelity provider content may contain credentials, secrets, source code, prompts, tool values, model responses, shell output, and file contents. `live`/`top` store it by default because the run stays on the local machine; the run directory is owner-private, and `--metadata-only` keeps that plaintext out of the run entirely.
395
+ - Run artifacts are written through owner-private primitives. POSIX permissions are established before sensitive bytes are published; the Windows path applies a protected owner DACL. Final Windows guarantees still depend on the release CI matrix and are not inferred from Linux tests.
396
+ - Conversation isolation is an attribution rule, not a redaction boundary. Explicitly routed content may legitimately appear at more than one participant.
397
+ - A local integrity manifest detects changes relative to the manifest; it is not an adversary-resistant trusted logging system if both evidence and manifest remain inside the same writable trust boundary.
398
+ - Review the complete run directory before sharing it.
399
+
400
+ ## Development
401
+
402
+ Run the test suite:
403
+
404
+ ```bash
405
+ python -m pytest
406
+ ```
407
+
408
+ Run linting:
409
+
410
+ ```bash
411
+ python -m ruff check .
412
+ ```
413
+
414
+ Issues and pull requests are welcome. Keep new integrations evidence-aware: document what is directly observed, what is supplied by the provider, and what is derived.
415
+
416
+ ## License
417
+
418
+ ExecWeave is distributed under the **PolyForm Noncommercial License 1.0.0**. See [LICENSE](LICENSE) for the full terms.
419
+ ## Framework Adapter SDK
420
+
421
+ ExecWeave includes an optional authoritative adapter SDK for CAMEL Workforce,
422
+ AutoGen AgentChat/Core, and MetaGPT. Adapters emit canonical agent, task,
423
+ message, model, and tool records; they do not infer logical conversations from
424
+ process names or network traffic. Content capture is opt-in and hidden
425
+ reasoning/private reasoning is never captured by the SDK. Transport credentials
426
+ are removed from semantic metadata.
427
+
428
+ See [the framework adapter guide](docs/framework-adapters.md) for the public
429
+ API, compatibility matrix, live/final parity contract, and official CAMEL,
430
+ AutoGen, and MetaGPT paper references. Current framework versions still require
431
+ the corresponding optional dependency and an authoritative callback or event
432
+ boundary in the application.
433
+
434
+ Paper context: Li et al., *CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society* ([arXiv:2303.17760](https://arxiv.org/abs/2303.17760), 2023); Wu et al., *AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation* ([arXiv:2308.08155](https://arxiv.org/abs/2308.08155), 2023); Hong et al., *MetaGPT: Meta Programming for a Multi-Agent Collaborative Framework* ([OpenReview, ICLR 2024](https://openreview.net/forum?id=VtmBAGCN7o)).
435
+
436
+ ```python
437
+ from execweave.framework_adapters import AdapterContext, CAMELAdapter
438
+ context = AdapterContext.from_environment("camel", capture_mode="prompt_and_response")
439
+ adapter = CAMELAdapter(context)
440
+ task = adapter.task_created("task-1", content="Inspect the endpoint and report completion.")
441
+ ```
442
+
443
+ When the application is launched by `execweave record` or `execweave live`,
444
+ the adapter automatically joins that run and the finished Dashboard is built
445
+ from the merged runtime plus framework evidence. Task prompts and routed
446
+ messages remain local content references and are visible from their task and
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.