flameox 0.2.7__tar.gz → 0.2.9__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 (260) hide show
  1. flameox-0.2.9/.env.example +5 -0
  2. {flameox-0.2.7 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/bug_report.yml +1 -1
  3. {flameox-0.2.7 → flameox-0.2.9}/.github/workflows/ci.yml +3 -3
  4. {flameox-0.2.7 → flameox-0.2.9}/AGENTS.md +45 -34
  5. flameox-0.2.9/CHANGELOG.md +112 -0
  6. flameox-0.2.9/CONTRIBUTING.md +87 -0
  7. flameox-0.2.9/PKG-INFO +191 -0
  8. flameox-0.2.9/README.md +126 -0
  9. flameox-0.2.9/README.zh-CN.md +43 -0
  10. {flameox-0.2.7 → flameox-0.2.9}/SECURITY.md +11 -11
  11. {flameox-0.2.7 → flameox-0.2.9}/docs/adapters.md +71 -14
  12. {flameox-0.2.7 → flameox-0.2.9}/docs/architecture.md +27 -26
  13. flameox-0.2.9/docs/assets/flameox-social-preview-v1.png +0 -0
  14. flameox-0.2.9/docs/interfaces.md +486 -0
  15. {flameox-0.2.7 → flameox-0.2.9}/docs/investigations.md +39 -21
  16. {flameox-0.2.7 → flameox-0.2.9}/docs/runtime-safety.md +26 -36
  17. {flameox-0.2.7 → flameox-0.2.9}/docs/storage-and-evidence.md +39 -27
  18. flameox-0.2.9/docs/testing.md +92 -0
  19. flameox-0.2.9/examples/semantic-matrix/README.md +20 -0
  20. flameox-0.2.9/npm/README.md +30 -0
  21. {flameox-0.2.7 → flameox-0.2.9}/npm/bin/flameox.cjs +5 -5
  22. {flameox-0.2.7 → flameox-0.2.9}/npm/package-lock.json +2 -2
  23. {flameox-0.2.7 → flameox-0.2.9}/npm/package.json +2 -2
  24. flameox-0.2.9/npm/test/bootstrap.test.cjs +90 -0
  25. {flameox-0.2.7 → flameox-0.2.9}/pyproject.toml +15 -11
  26. {flameox-0.2.7 → flameox-0.2.9}/server.json +2 -2
  27. flameox-0.2.9/src/flameox/adapters/json_events.py +45 -0
  28. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/adapters/json_preview.py +5 -1
  29. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/adapters/sarif.py +65 -36
  30. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/adapters/text_preview.py +3 -1
  31. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/adapters/torch_benchmark.py +1 -17
  32. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/benchmark_samples.py +18 -1
  33. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/canonical.py +10 -1
  34. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/cli.py +187 -77
  35. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/command_binding.py +32 -17
  36. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/evidence_models.py +11 -22
  37. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/executable_models.py +0 -2
  38. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/execution.py +36 -565
  39. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/filesystem.py +39 -1
  40. flameox-0.2.9/src/flameox/installation.py +139 -0
  41. flameox-0.2.9/src/flameox/mcp/__init__.py +1 -0
  42. flameox-0.2.9/src/flameox/mcp/descriptions.py +64 -0
  43. flameox-0.2.9/src/flameox/mcp/request_contracts.py +277 -0
  44. flameox-0.2.9/src/flameox/mcp/result_contracts.py +257 -0
  45. flameox-0.2.9/src/flameox/mcp/server.py +578 -0
  46. flameox-0.2.9/src/flameox/mcp/tool_registry.py +172 -0
  47. flameox-0.2.9/src/flameox/mcp/validation.py +56 -0
  48. flameox-0.2.9/src/flameox/observations.py +41 -0
  49. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/aiperf.py +33 -12
  50. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/availability.py +1 -0
  51. flameox-0.2.9/src/flameox/providers/benchmark_comparison.py +89 -0
  52. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/benchmark_scaling.py +68 -67
  53. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/benchmarks.py +47 -78
  54. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/capture.py +1 -1
  55. flameox-0.2.9/src/flameox/providers/contracts.py +90 -0
  56. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/cpu.py +53 -29
  57. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/environment.py +1 -1
  58. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/inference_comparison.py +24 -0
  59. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/inference_exports.py +62 -46
  60. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/kernel_evidence.py +96 -44
  61. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/memray.py +39 -44
  62. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/nsight_compute.py +34 -10
  63. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/nsight_systems.py +34 -23
  64. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/nvbench.py +43 -90
  65. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/otlp.py +5 -9
  66. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/perfetto.py +23 -13
  67. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/preparation.py +7 -5
  68. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/reliability.py +63 -34
  69. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/source_evidence.py +10 -4
  70. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/structured_workers.py +29 -54
  71. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/xctrace.py +25 -14
  72. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/pytest_capture.py +22 -6
  73. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/repository.py +150 -69
  74. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/runtime.py +724 -520
  75. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/runtime_contracts.py +262 -200
  76. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/sdk.py +9 -29
  77. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/setup.py +344 -174
  78. flameox-0.2.9/src/flameox/source_files.py +144 -0
  79. flameox-0.2.9/src/flameox/updates.py +59 -0
  80. flameox-0.2.9/src/flameox/validation.py +50 -0
  81. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/aiperf.py +47 -24
  82. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/aiperf_contract.py +2 -2
  83. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/benchmark_samples.py +9 -0
  84. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/compute_sanitizer.py +7 -2
  85. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/compute_sanitizer_contract.py +1 -0
  86. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/harness.py +1 -119
  87. flameox-0.2.9/src/flameox/workers/memray.py +454 -0
  88. flameox-0.2.9/src/flameox/workers/memray_contract.py +69 -0
  89. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/otlp.py +0 -1
  90. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/otlp_contract.py +0 -1
  91. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/otlp_parser.py +17 -18
  92. flameox-0.2.9/src/flameox/workers/parquet_schemas.py +23 -0
  93. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/perfetto.py +1 -9
  94. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/perfetto_contract.py +0 -2
  95. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/pstats.py +34 -6
  96. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/pyperf.py +5 -0
  97. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/v8_profiles.py +130 -66
  98. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/v8_profiles_contract.py +3 -1
  99. flameox-0.2.9/tests/conftest.py +30 -0
  100. flameox-0.2.9/tests/e2e/test_cli_investigation.py +580 -0
  101. flameox-0.2.9/tests/e2e/test_cli_setup.py +264 -0
  102. flameox-0.2.9/tests/e2e/test_cli_update.py +152 -0
  103. flameox-0.2.9/tests/e2e/test_mcp_request_limits.py +124 -0
  104. flameox-0.2.9/tests/execution/test_bound_execution.py +274 -0
  105. flameox-0.2.9/tests/execution/test_broker.py +562 -0
  106. {flameox-0.2.7 → flameox-0.2.9}/tests/execution/test_diagnostics.py +0 -27
  107. flameox-0.2.9/tests/mcp/test_capture.py +137 -0
  108. flameox-0.2.9/tests/mcp/test_evidence.py +513 -0
  109. flameox-0.2.9/tests/mcp/test_transport.py +700 -0
  110. flameox-0.2.9/tests/performance/test_provider_scale.py +98 -0
  111. flameox-0.2.9/tests/performance/test_runtime_scale.py +41 -0
  112. {flameox-0.2.7 → flameox-0.2.9}/tests/providers/test_benchmarks.py +287 -162
  113. flameox-0.2.9/tests/providers/test_compute_sanitizer.py +87 -0
  114. {flameox-0.2.7 → flameox-0.2.9}/tests/providers/test_coverage.py +3 -68
  115. {flameox-0.2.7 → flameox-0.2.9}/tests/providers/test_cpu.py +227 -174
  116. flameox-0.2.9/tests/providers/test_inference_exports.py +715 -0
  117. {flameox-0.2.7 → flameox-0.2.9}/tests/providers/test_kernel_evidence.py +247 -45
  118. flameox-0.2.9/tests/providers/test_memray.py +182 -0
  119. flameox-0.2.9/tests/providers/test_native_decode_failures.py +43 -0
  120. flameox-0.2.9/tests/providers/test_nsight_compute.py +91 -0
  121. flameox-0.2.9/tests/providers/test_nsight_systems.py +229 -0
  122. flameox-0.2.9/tests/providers/test_nvbench.py +325 -0
  123. flameox-0.2.9/tests/providers/test_otlp.py +270 -0
  124. flameox-0.2.9/tests/providers/test_perfetto.py +155 -0
  125. {flameox-0.2.7 → flameox-0.2.9}/tests/providers/test_pytest.py +186 -46
  126. flameox-0.2.9/tests/providers/test_rocprof.py +38 -0
  127. flameox-0.2.9/tests/providers/test_source_evidence.py +370 -0
  128. flameox-0.2.9/tests/providers/test_v8_profiles.py +513 -0
  129. flameox-0.2.9/tests/providers/test_xctrace.py +35 -0
  130. flameox-0.2.9/tests/test_canonical.py +23 -0
  131. {flameox-0.2.7 → flameox-0.2.9}/tests/test_capture_diagnostics.py +79 -58
  132. {flameox-0.2.7 → flameox-0.2.9}/tests/test_capture_failure_status.py +1 -1
  133. {flameox-0.2.7 → flameox-0.2.9}/tests/test_capture_lifecycle.py +8 -113
  134. {flameox-0.2.7 → flameox-0.2.9}/tests/test_capture_output_files.py +10 -94
  135. flameox-0.2.9/tests/test_cli.py +194 -0
  136. flameox-0.2.9/tests/test_evidence_contracts.py +256 -0
  137. {flameox-0.2.7 → flameox-0.2.9}/tests/test_evidence_handoffs.py +96 -96
  138. {flameox-0.2.7 → flameox-0.2.9}/tests/test_native_capture_recovery.py +80 -50
  139. flameox-0.2.9/tests/test_native_conversions.py +76 -0
  140. flameox-0.2.9/tests/test_provider_preparation.py +172 -0
  141. {flameox-0.2.7 → flameox-0.2.9}/tests/test_release_metadata.py +4 -21
  142. {flameox-0.2.7 → flameox-0.2.9}/tests/test_repository.py +211 -236
  143. flameox-0.2.9/tests/test_runtime.py +811 -0
  144. {flameox-0.2.7 → flameox-0.2.9}/tests/test_runtime_requests.py +2 -69
  145. flameox-0.2.9/tests/test_sdk.py +96 -0
  146. flameox-0.2.9/tests/test_setup.py +226 -0
  147. {flameox-0.2.7 → flameox-0.2.9}/tests/test_text_preview_runtime.py +20 -48
  148. flameox-0.2.9/tests/test_updates.py +361 -0
  149. flameox-0.2.9/tests/test_worker_lifecycle.py +94 -0
  150. {flameox-0.2.7 → flameox-0.2.9}/tests/test_workload_budgets.py +23 -7
  151. {flameox-0.2.7 → flameox-0.2.9}/uv.lock +560 -326
  152. flameox-0.2.7/.env.example +0 -5
  153. flameox-0.2.7/CHANGELOG.md +0 -641
  154. flameox-0.2.7/CONTRIBUTING.md +0 -172
  155. flameox-0.2.7/PKG-INFO +0 -262
  156. flameox-0.2.7/README.md +0 -199
  157. flameox-0.2.7/README.zh-CN.md +0 -61
  158. flameox-0.2.7/docs/interfaces.md +0 -398
  159. flameox-0.2.7/docs/testing.md +0 -92
  160. flameox-0.2.7/examples/semantic-matrix/README.md +0 -26
  161. flameox-0.2.7/npm/README.md +0 -19
  162. flameox-0.2.7/npm/test/bootstrap.test.cjs +0 -59
  163. flameox-0.2.7/src/flameox/mcp/__init__.py +0 -3
  164. flameox-0.2.7/src/flameox/mcp/capability_tools.py +0 -183
  165. flameox-0.2.7/src/flameox/mcp/result_contracts.py +0 -197
  166. flameox-0.2.7/src/flameox/mcp/server.py +0 -555
  167. flameox-0.2.7/src/flameox/providers/contracts.py +0 -60
  168. flameox-0.2.7/src/flameox/source_files.py +0 -112
  169. flameox-0.2.7/src/flameox/workers/memray.py +0 -946
  170. flameox-0.2.7/src/flameox/workers/memray_contract.py +0 -138
  171. flameox-0.2.7/src/flameox/workers/parquet_schemas.py +0 -110
  172. flameox-0.2.7/tests/adapters/test_memray_aggregation.py +0 -385
  173. flameox-0.2.7/tests/adapters/test_text_preview.py +0 -60
  174. flameox-0.2.7/tests/adapters/test_torch_benchmark.py +0 -192
  175. flameox-0.2.7/tests/conftest.py +0 -21
  176. flameox-0.2.7/tests/execution/test_bound_execution.py +0 -50
  177. flameox-0.2.7/tests/execution/test_broker.py +0 -1608
  178. flameox-0.2.7/tests/execution/test_command_binding.py +0 -65
  179. flameox-0.2.7/tests/execution/test_optional_deadline.py +0 -128
  180. flameox-0.2.7/tests/mcp/test_capture.py +0 -261
  181. flameox-0.2.7/tests/mcp/test_catalog.py +0 -192
  182. flameox-0.2.7/tests/mcp/test_evidence.py +0 -557
  183. flameox-0.2.7/tests/mcp/test_transport.py +0 -272
  184. flameox-0.2.7/tests/performance/test_runtime_scale.py +0 -164
  185. flameox-0.2.7/tests/providers/test_aiperf.py +0 -38
  186. flameox-0.2.7/tests/providers/test_compute_sanitizer.py +0 -77
  187. flameox-0.2.7/tests/providers/test_contracts.py +0 -19
  188. flameox-0.2.7/tests/providers/test_inference_exports.py +0 -325
  189. flameox-0.2.7/tests/providers/test_memray.py +0 -106
  190. flameox-0.2.7/tests/providers/test_nsight_compute.py +0 -219
  191. flameox-0.2.7/tests/providers/test_nsight_systems.py +0 -336
  192. flameox-0.2.7/tests/providers/test_nvbench.py +0 -260
  193. flameox-0.2.7/tests/providers/test_otlp.py +0 -150
  194. flameox-0.2.7/tests/providers/test_perfetto.py +0 -143
  195. flameox-0.2.7/tests/providers/test_rocprof.py +0 -101
  196. flameox-0.2.7/tests/providers/test_source_evidence.py +0 -200
  197. flameox-0.2.7/tests/providers/test_v8_profiles.py +0 -362
  198. flameox-0.2.7/tests/providers/test_xctrace.py +0 -74
  199. flameox-0.2.7/tests/storage/test_bounded_filesystem.py +0 -37
  200. flameox-0.2.7/tests/support/providers.py +0 -16
  201. flameox-0.2.7/tests/test_canonical.py +0 -15
  202. flameox-0.2.7/tests/test_cli.py +0 -1055
  203. flameox-0.2.7/tests/test_evidence_contracts.py +0 -646
  204. flameox-0.2.7/tests/test_provider_preparation.py +0 -295
  205. flameox-0.2.7/tests/test_runtime.py +0 -1127
  206. flameox-0.2.7/tests/test_runtime_contracts.py +0 -113
  207. flameox-0.2.7/tests/test_sdk.py +0 -170
  208. flameox-0.2.7/tests/test_setup.py +0 -562
  209. flameox-0.2.7/tests/test_source_files.py +0 -29
  210. flameox-0.2.7/tests/test_worker_lifecycle.py +0 -96
  211. {flameox-0.2.7 → flameox-0.2.9}/.devcontainer/devcontainer.json +0 -0
  212. {flameox-0.2.7 → flameox-0.2.9}/.github/CODEOWNERS +0 -0
  213. {flameox-0.2.7 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  214. {flameox-0.2.7 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/design_discussion.yml +0 -0
  215. {flameox-0.2.7 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  216. {flameox-0.2.7 → flameox-0.2.9}/.github/labels.yml +0 -0
  217. {flameox-0.2.7 → flameox-0.2.9}/.github/pull_request_template.md +0 -0
  218. {flameox-0.2.7 → flameox-0.2.9}/.github/renovate.json +0 -0
  219. {flameox-0.2.7 → flameox-0.2.9}/.github/workflows/labels.yml +0 -0
  220. {flameox-0.2.7 → flameox-0.2.9}/.github/workflows/release-please.yml +0 -0
  221. {flameox-0.2.7 → flameox-0.2.9}/.github/workflows/release.yml +0 -0
  222. {flameox-0.2.7 → flameox-0.2.9}/.gitignore +0 -0
  223. {flameox-0.2.7 → flameox-0.2.9}/.jscpd.json +0 -0
  224. {flameox-0.2.7 → flameox-0.2.9}/.pre-commit-config.yaml +0 -0
  225. {flameox-0.2.7 → flameox-0.2.9}/.python-version +0 -0
  226. {flameox-0.2.7 → flameox-0.2.9}/LICENSE +0 -0
  227. {flameox-0.2.7 → flameox-0.2.9}/cliff.toml +0 -0
  228. {flameox-0.2.7 → flameox-0.2.9}/docs/assets/flameox-mascot-flamegraph.png +0 -0
  229. {flameox-0.2.7 → flameox-0.2.9}/examples/semantic-matrix/semantic_workload.py +0 -0
  230. {flameox-0.2.7 → flameox-0.2.9}/mcp-publisher +0 -0
  231. {flameox-0.2.7 → flameox-0.2.9}/mcp-publisher.tar.gz +0 -0
  232. {flameox-0.2.7 → flameox-0.2.9}/npm/.oxlintrc.json +0 -0
  233. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/__init__.py +0 -0
  234. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/__main__.py +0 -0
  235. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/adapters/__init__.py +0 -0
  236. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/atomic.py +0 -0
  237. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/environment_policy.py +0 -0
  238. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/models.py +0 -0
  239. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/nsight_compute.py +0 -0
  240. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/paths.py +0 -0
  241. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/process_models.py +0 -0
  242. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/providers/__init__.py +0 -0
  243. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/py.typed +0 -0
  244. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/pytest_runner.py +0 -0
  245. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/runtime_errors.py +0 -0
  246. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/__init__.py +0 -0
  247. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/benchmark_samples_contract.py +0 -0
  248. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/coverage.py +0 -0
  249. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/coverage_contract.py +0 -0
  250. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/nsight_compute.py +0 -0
  251. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/nsight_compute_contract.py +0 -0
  252. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/protocol.py +0 -0
  253. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/pstats_contract.py +0 -0
  254. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/pyperf_contract.py +0 -0
  255. {flameox-0.2.7 → flameox-0.2.9}/src/flameox/workers/pyperf_target.py +0 -0
  256. {flameox-0.2.7 → flameox-0.2.9}/tests/__init__.py +0 -0
  257. {flameox-0.2.7 → flameox-0.2.9}/tests/adapters/test_torch_benchmark_live.py +0 -0
  258. {flameox-0.2.7 → flameox-0.2.9}/tests/support/__init__.py +0 -0
  259. {flameox-0.2.7 → flameox-0.2.9}/tests/support/processes.py +0 -0
  260. {flameox-0.2.7 → flameox-0.2.9}/tools/__init__.py +0 -0
@@ -0,0 +1,5 @@
1
+ # flameox environment variables
2
+ # Export these settings in the invoking shell; Flameox does not load .env files.
3
+
4
+ # Path to Perfetto Trace Processor binary (optional, for trace analysis)
5
+ # FLAMEOX_TRACE_PROCESSOR=/usr/bin/trace_processor
@@ -123,7 +123,7 @@ body:
123
123
  description: Select the earliest stage where the incorrect behavior is observable.
124
124
  options:
125
125
  - Request parsing or validation
126
- - Capability discovery or provider setup
126
+ - Operation discovery or provider setup
127
127
  - Capture or explicit source resolution
128
128
  - Native artifact validation or provenance
129
129
  - Bounded provider analysis
@@ -55,7 +55,7 @@ jobs:
55
55
  run: >-
56
56
  uv run pytest -o addopts='' -ra -q
57
57
  -m 'not optional and not performance and not process'
58
- --cov=flameox --cov-report= --cov-fail-under=0
58
+ --cov=flameox --cov-report=
59
59
  tests
60
60
  - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
61
61
  with:
@@ -84,7 +84,7 @@ jobs:
84
84
  run: >-
85
85
  uv run pytest -o addopts='' -ra -q
86
86
  -m 'not optional and not performance and process'
87
- --cov=flameox --cov-report= --cov-fail-under=0
87
+ --cov=flameox --cov-report=
88
88
  tests
89
89
  - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
90
90
  with:
@@ -113,7 +113,7 @@ jobs:
113
113
  pattern: "*-coverage"
114
114
  merge-multiple: true
115
115
  - run: uv run coverage combine .coverage.deterministic .coverage.process
116
- - run: uv run coverage report --fail-under=60
116
+ - run: uv run coverage report
117
117
  - run: uv run coverage xml -o coverage.xml
118
118
  - uses: codecov/codecov-action@v5
119
119
  if: github.event_name == 'pull_request'
@@ -3,15 +3,10 @@
3
3
  ## Product Direction
4
4
 
5
5
  flameox is a permanently local evidence layer for coding agents investigating
6
- performance, memory, execution, concurrency, and reliability. It gives an agent
7
- a reproducible path from a runtime symptom to a conclusion that another person
8
- or agent can inspect and try to disprove.
9
-
10
- Existing profilers, benchmark tools, debuggers, and trace processors measure
11
- runtime behavior. flameox coordinates those tools, preserves their native
12
- artifacts and provenance, extracts bounded evidence, and compares runs and
13
- experiments. The agent forms hypotheses, chooses discriminating experiments,
14
- and explains the conclusion.
6
+ performance, memory, execution, concurrency, and reliability. It coordinates
7
+ existing measurement tools, preserves native artifacts and provenance, extracts
8
+ bounded evidence, and compares runs and experiments. The agent forms hypotheses
9
+ and chooses experiments; conclusions must remain inspectable and falsifiable.
15
10
 
16
11
  A typical investigation moves through:
17
12
 
@@ -42,7 +37,7 @@ When changing the product:
42
37
  - use DuckDB only as an ephemeral query engine; Flameox never creates or imports
43
38
  SQLite, though upstream packages may read their own native formats internally;
44
39
  - keep CLI and MCP as thin transports over the same `AnalysisRuntime` and
45
- capability registry;
40
+ operation registry;
46
41
  - let agents pass validated argv, cwd, environment, provider arguments, and
47
42
  request-lowerable limits directly to capture;
48
43
  - expose coverage, limitations, compatibility, and containment truthfully;
@@ -53,18 +48,15 @@ performance improvement. Confirmatory claims require representative workloads,
53
48
  declared metrics and estimands, compatible identities, preserved samples, and
54
49
  a semantic oracle.
55
50
 
56
- A passing test suite does not prove the documented behavior complete. Before
57
- calling work complete, identify the relevant behavioral contracts and state any
58
- remaining proof gaps.
59
-
60
51
  ## Project Structure & Module Organization
61
52
 
62
53
  flameox is a Python 3.12+ package using a `src/` layout. `runtime.py` owns the
63
- process-lifespan capability runtime; `runtime_contracts.py` owns strict public contracts; `repository.py`
64
- owns optional immutable preservation; `execution.py` owns bounded subprocess
65
- work; capability integrations live in `providers/`; reusable format parsers live
66
- in `adapters/`; isolated protocols live in `workers/`; and `cli.py` plus `mcp/`
67
- are thin transports. Tests mirror these semantic owners under `tests/`.
54
+ process-lifespan operation runtime; `runtime_contracts.py` owns strict public
55
+ contracts; `repository.py` owns optional immutable preservation; `execution.py`
56
+ owns bounded subprocess work; operation integrations live in `providers/`;
57
+ reusable format parsers live in `adapters/`; isolated protocols live in
58
+ `workers/`; and `cli.py` plus `mcp/` are thin transports. Tests mirror these
59
+ semantic owners under `tests/`.
68
60
 
69
61
  Read the relevant contract before changing product behavior:
70
62
 
@@ -77,7 +69,19 @@ Read the relevant contract before changing product behavior:
77
69
  behavior;
78
70
  - `docs/runtime-safety.md` for concurrency, recovery, retention, integrity,
79
71
  security, privacy, and observability;
80
- - `docs/interfaces.md` for CLI and MCP behavior and trust boundaries;
72
+ - `docs/interfaces.md` for CLI and MCP behavior and trust boundaries.
73
+
74
+ ## Tool Changes
75
+
76
+ - Expose named, task-shaped MCP tools from the operation registry. Do not add
77
+ search/execute gateways or compatibility aliases for removed tools.
78
+ - Keep public fields, bounds, and descriptions in canonical runtime models;
79
+ project transport schemas from them rather than maintaining parallel models.
80
+ Validate admitted arguments against the advertised schema before execution.
81
+ - Fix behavior in its semantic owner. Add a wrapper, abstraction, or reexport
82
+ only when it serves a distinct contract or removes meaningful duplication.
83
+ - Preserve exact continuation and recovery handoffs. Reading another page must
84
+ not rerun a capture; session handles and durable evidence have different lifetimes.
81
85
 
82
86
  ## Build, Test, and Development Commands
83
87
 
@@ -88,33 +92,40 @@ uv sync --extra dev --extra memory --extra trace --extra cpu
88
92
  uv run flameox --help
89
93
  uv run pytest -q
90
94
  uv run ruff check src tests tools
95
+ uv run ruff format --check src tests tools
91
96
  uv run mypy src tests tools
92
97
  ```
93
98
 
94
99
  The first command installs development tools and supported lightweight
95
100
  integrations. Run a focused test while iterating, for example
96
- `uv run pytest tests/test_runtime.py -q`. Marked performance checks
97
- can be selected with `uv run pytest -m performance`.
101
+ `uv run pytest tests/test_runtime.py -q`. See [docs/testing.md](docs/testing.md)
102
+ for optional and performance selections and the CI workflow for additional checks.
98
103
 
99
104
  ## Coding Style & Naming Conventions
100
105
 
101
106
  Use four-space indentation, complete type annotations, and Python 3.12 syntax.
102
107
  Ruff enforces a 100-character line limit, import ordering, modernization, and
103
- common bug patterns; mypy runs in strict mode. Keep modules and functions
104
- `snake_case`, classes `PascalCase`, and constants `UPPER_SNAKE_CASE`. Follow
105
- existing architectural boundaries: keep request/runtime coordination in
106
- `runtime.py`, repository publication in `repository.py`, transports thin, and
107
- provider-specific behavior in `providers/`, with shared format parsing in
108
- `adapters/` and isolated protocols in `workers/`.
108
+ common bug patterns; mypy runs in strict mode.
109
109
 
110
110
  ## Testing Guidelines
111
111
 
112
- Pytest is configured with strict markers and configuration. Name files
113
- `test_<area>.py` and tests `test_<observable_behavior>`. Add regression tests
114
- near the affected component and prefer public behavior over assertions about
115
- private implementation. Use Hypothesis where invariants or input ranges matter.
116
- Coverage tracks branches in `flameox`; no fixed percentage is declared, but new
117
- behavior should include meaningful success and failure-path coverage.
112
+ Prefer real end-to-end workflows, then integration behavior, then focused golden
113
+ examples. Extend an existing workflow when it can prove the regression. Remove
114
+ redundant tests, private-helper assertions, and mock scaffolding; retain narrower
115
+ tests only for distinct contracts those workflows cannot reliably prove. When
116
+ pruning, identify the remaining proof for each distinct behavior or record the gap
117
+ in [docs/testing.md](docs/testing.md).
118
+
119
+ For tool changes, exercise the installed CLI and real MCP stdio transport with
120
+ valid and adversarial inputs, native evidence, and relevant continuation or
121
+ recovery flows. Check advertised schemas against accepted inputs and emitted
122
+ results. Include failure paths; a passing suite alone does not establish the
123
+ documented behavior. Report the exercised surface and remaining proof gaps.
124
+
125
+ Name files `test_<area>.py` and tests `test_<observable_behavior>`. Mark tests that
126
+ spawn or communicate with subprocesses `process`; use `e2e` for installed CLI or
127
+ MCP workflows with real processes and native evidence. CI reports combined branch
128
+ coverage without a percentage gate.
118
129
 
119
130
  ## Commit & Pull Request Guidelines
120
131
 
@@ -0,0 +1,112 @@
1
+ # Changelog
2
+
3
+ All notable changes to flameox are documented in this file.
4
+
5
+ ## [0.2.9] - 2026-10-10
6
+
7
+ ### Bug Fixes
8
+
9
+ - **setup:** Honor active client profiles and review interactive changes
10
+ - **runtime:** Avoid following workload links during scratch accounting
11
+ - **inference:** Include prefix reuse hashes in workload identity
12
+ - **cpu:** Reject unresolved pstats callers
13
+ - **runtime:** Bind cached projections to external reader identity
14
+ - **readers:** Bind native parser reads to regular files
15
+ - **runtime:** Reject source-kind changes during decoding
16
+ - **execution:** Tolerate disappearing scratch files during accounting
17
+ - **evidence:** Retain source kind and reject incomplete directory inputs
18
+ - **setup:** Verify final launcher environments with bounded installers
19
+ - **traces:** Preserve native OTLP encoding and source-table provenance
20
+ - **providers:** Validate unresolved weights and report omitted stack frames
21
+ - **comparison:** Retain wide identities and check infinite kernel metrics
22
+ - **parsers:** Preserve literal JSON structure and native SARIF coordinates
23
+ - **inference:** Retain failed records and enforce native input bounds
24
+ - **pytest:** Preserve bounded test identities and worker outcomes
25
+ - **mcp:** Retain live recovery and redact native decoder diagnostics
26
+ - **preview:** Preserve native fields and canonicalize bounded values
27
+ - **runtime:** Publish verified projections and tolerate stale cache inputs
28
+ - **capture:** Retain admitted identities and completed experiment evidence
29
+ - **setup:** Bound configuration reads and verify preparation responses
30
+ - **repository:** Validate layouts before initializing evidence storage
31
+ - **pstats:** Reject invalid native measurements before projection
32
+ - **runtime:** Detach continuation handoffs from cached provenance
33
+ - **files:** Bind native reads to regular-file descriptors
34
+ - **identity:** Preserve wide native integers without tag collisions
35
+ - **triton:** Average finite timings without sum overflow
36
+ - **repository:** Reject special metadata files without blocking
37
+ - **setup:** Reject null MCP sections consistently
38
+ - **benchmarks:** Exclude empty series from mean comparisons
39
+ - **kernel:** Validate rows before comparing consistency
40
+ - **pytest:** Use one outcome classifier for metrics and rows
41
+ - **setup:** Reject ambiguous duplicate JSON keys
42
+ - **mcp:** Advertise and enforce selector item bounds
43
+ - **nsight:** Classify malformed Parquet tables as decoding failures
44
+ - **cpu:** Preserve sample counts and reject weight overflow
45
+ - **filesystem:** Reject special files without blocking
46
+ - **setup:** Preserve scalar comments and reject ambiguous configuration
47
+ - **evidence:** Rescue preserved bundles from unusable store metadata
48
+ - **inference:** Preserve exact AIPerf values and share finite comparisons
49
+ - **nvbench:** Enforce sample bounds before integer conversion
50
+ - **runtime:** Contain recursive artifact and metadata decoding failures
51
+ - **evidence:** Retain completed captures when publication fails
52
+ - **providers:** Validate native boundaries and preserve exact counts
53
+ - **runtime:** Reject recursive continuation tokens safely
54
+ - **trace:** Preserve exact epoch nanosecond windows
55
+ - **runtime:** Enforce capture admission and scratch ownership
56
+ - **providers:** Bound and validate native profile inputs
57
+ - **benchmarks:** Preserve semantic series identity
58
+
59
+ ### Chores
60
+
61
+ - **deps:** Update AIPerf and vulnerable transitive packages
62
+
63
+ ### Documentation
64
+
65
+ - **adapters:** State collector admission limits accurately
66
+ - Remove historical release and performance records
67
+ - **testing:** Record audit regression coverage
68
+ - Record audited evidence contracts and native regression proofs
69
+ - **testing:** Record native-read and handoff regression proofs
70
+ - **testing:** Record native edge-case regressions
71
+ - **testing:** Record retained comparison and failure proofs
72
+ - **testing:** Record retained execution and boundary coverage
73
+
74
+ ### Features
75
+
76
+ - **npm:** Expose MCP update through the uvx bootstrap
77
+ - **cli:** Verify releases before updating MCP client pins
78
+ - **mcp:** Return bounded evidence inline and remove resource receipts
79
+
80
+ ### Performance
81
+
82
+ - **memray:** Filter bounded frames before fetching rows
83
+ - **pytest:** Index workers with teardown failures
84
+ - **v8:** Reuse frame identities within extraction
85
+ - **repository:** Reuse validated inventory traversal
86
+ - **runtime:** Reuse model validators and validated results
87
+ - **mcp:** Reuse schemas and inspect contracts directly
88
+
89
+ ### Refactoring
90
+
91
+ - **setup:** Remove legacy launcher compatibility
92
+ - **api:** Use task names directly across runtime and transports
93
+ - **execution:** Remove unused contracts and normalize path failures
94
+ - **memray:** Bound extraction to the requested frame population
95
+ - **benchmarks:** Share bounded series comparison
96
+ - **setup:** Reuse external provider requirements
97
+ - **contracts:** Share source-kind normalization
98
+ - **v8:** Share CPU and heap worker orchestration
99
+ - **workers:** Keep one request-owned session path
100
+ - **execution:** Use one bounded subprocess lifecycle
101
+ - **setup:** Reuse unchanged client configuration without rendering
102
+ - **setup:** Import environment contracts from their owner
103
+
104
+ ### Testing
105
+
106
+ - **setup:** Measure bounded diagnostics independently of terminal styling
107
+ - **inference:** Prove line limits with valid native control records
108
+ - **performance:** Retain scale workloads and measured evidence
109
+ - **transports:** Isolate evidence stores and normalize terminal styling
110
+ # Changelog
111
+
112
+ Release notes are published on the [GitHub releases page](https://github.com/morluto/flameox/releases).
@@ -0,0 +1,87 @@
1
+ # Contributing to flameox
2
+
3
+ Contributions should improve how an investigator collects, preserves, compares, or inspects runtime
4
+ evidence. Flameox coordinates existing profilers and trace processors; it is not a profiler,
5
+ hosted observability service, unrestricted command or SQL gateway, or source-code modification
6
+ system. Read the [architecture authority map](docs/architecture.md#authority-map) before proposing
7
+ a change that crosses product boundaries.
8
+
9
+ ## Before you start
10
+
11
+ Use the issue templates for bugs, feature requests, and design discussions. Small fixes and
12
+ documentation changes can go directly to a pull request. For a substantial feature, new
13
+ integration, or public or persisted contract change, open an issue first to align on behavior and
14
+ scope. Search existing issues and pull requests. Report security vulnerabilities privately as
15
+ described in [SECURITY.md](SECURITY.md).
16
+
17
+ ## Development
18
+
19
+ Flameox requires Python 3.12 or newer and uses `uv` with the committed lockfile:
20
+
21
+ ```console
22
+ git clone https://github.com/morluto/flameox.git
23
+ cd flameox
24
+ uv sync --extra dev
25
+ uv run flameox --help
26
+ ```
27
+
28
+ Install optional extras only for the providers needed in your work. See
29
+ [docs/testing.md](docs/testing.md) for test markers, provider requirements, CI selections, and
30
+ known proof gaps.
31
+
32
+ Read the contract that owns the behavior before changing it:
33
+
34
+ - [Architecture](docs/architecture.md) for process model and package boundaries.
35
+ - [Storage and evidence](docs/storage-and-evidence.md) for provenance and preservation.
36
+ - [Investigations](docs/investigations.md) for experiments and comparisons.
37
+ - [Adapters](docs/adapters.md) for providers and compatibility.
38
+ - [Runtime safety](docs/runtime-safety.md) for concurrency, recovery, and privacy.
39
+ - [Interfaces](docs/interfaces.md) for CLI and MCP behavior.
40
+
41
+ Preserve native artifacts and provenance, including failed attempts. Keep observed, derived, and
42
+ inferred claims distinct, and report limitations instead of hiding them behind fallbacks. Keep CLI
43
+ and MCP as thin transports over the shared runtime. Prefer an existing repository helper or a
44
+ maintained public interface over a new abstraction.
45
+
46
+ Use complete type annotations and Python 3.12 syntax. Ruff enforces formatting, import ordering,
47
+ and lint rules; mypy runs in strict mode. Prefer end-to-end workflows through the CLI or real MCP
48
+ stdio transport, then integration tests across the affected boundary, then focused golden examples.
49
+ Retain narrower tests only for behavior those workflows cannot prove.
50
+
51
+ Run focused checks for the code you changed, followed by the relevant project checks:
52
+
53
+ ```console
54
+ uv run ruff check src tests tools
55
+ uv run ruff format --check src tests tools
56
+ uv run mypy src tests tools
57
+ uv run pytest -q
58
+ ```
59
+
60
+ `pytest -q` runs the default suite. Select optional-provider, performance, or other marked tests
61
+ using the guidance in [docs/testing.md](docs/testing.md). For changes under `npm/`, run its checks:
62
+
63
+ ```console
64
+ cd npm
65
+ npm ci
66
+ npm run lint
67
+ npm run format:check
68
+ npm test
69
+ ```
70
+
71
+ Update the owning contract when behavior changes. Update user guides and examples when their
72
+ commands or claims are affected. Describe proof gaps when the available validation cannot establish
73
+ the behavior.
74
+
75
+ ## Commits and pull requests
76
+
77
+ Keep commits focused and reviewable. Use Conventional Commit subjects such as
78
+ `fix(storage): preserve provenance during artifact deduplication` or
79
+ `docs: explain comparison compatibility`.
80
+
81
+ Open pull requests against `main` and complete the repository template. Explain the concrete
82
+ problem and chosen approach, link related issues, list commands actually run, and describe relevant
83
+ compatibility or safety effects and proof gaps. Include representative output for user-visible CLI
84
+ or protocol changes. Before submitting, review the complete diff against `main` and check that
85
+ documentation and validation claims match the final tree.
86
+
87
+ The project is available under the [MIT License](LICENSE).
flameox-0.2.9/PKG-INFO ADDED
@@ -0,0 +1,191 @@
1
+ Metadata-Version: 2.5
2
+ Name: flameox
3
+ Version: 0.2.9
4
+ Summary: Runtime evidence that helps agents trace, profile, and burn down hotspots in application and native code, GPU kernels, and inference stacks.
5
+ Project-URL: Homepage, https://github.com/morluto/flameox
6
+ Project-URL: Repository, https://github.com/morluto/flameox
7
+ Project-URL: Issues, https://github.com/morluto/flameox/issues
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Requires-Python: >=3.12
11
+ Requires-Dist: anyio<5,>=4.9
12
+ Requires-Dist: coverage<8,>=7.14
13
+ Requires-Dist: defusedxml<0.8,>=0.7.1
14
+ Requires-Dist: duckdb<1.6,>=1.5.4
15
+ Requires-Dist: ijson<4,>=3.4
16
+ Requires-Dist: json5<1,>=0.12
17
+ Requires-Dist: jsonschema<5,>=4.20
18
+ Requires-Dist: mcp-types==2.3.0
19
+ Requires-Dist: mcp==2.3.0
20
+ Requires-Dist: packaging<27,>=24
21
+ Requires-Dist: psutil<8,>=7.0
22
+ Requires-Dist: pyarrow<26,>=20
23
+ Requires-Dist: pydantic<2.14,>=2.13.4
24
+ Requires-Dist: pyperf<2.11,>=2.10
25
+ Requires-Dist: pytz>=2024.2
26
+ Requires-Dist: questionary<3,>=2.1
27
+ Requires-Dist: rfc8785==0.1.4
28
+ Requires-Dist: tomlkit<1,>=0.13
29
+ Requires-Dist: typer<1,>=0.16
30
+ Provides-Extra: all
31
+ Requires-Dist: aiperf<0.14,>=0.13; extra == 'all'
32
+ Requires-Dist: memray>=1.17; extra == 'all'
33
+ Requires-Dist: opentelemetry-proto<1.45,>=1.44; extra == 'all'
34
+ Requires-Dist: perfetto<0.58,>=0.57; extra == 'all'
35
+ Requires-Dist: protobuf<7,>=5; extra == 'all'
36
+ Requires-Dist: py-spy<0.5,>=0.4.2; extra == 'all'
37
+ Requires-Dist: torch>=2.7; extra == 'all'
38
+ Provides-Extra: cpu
39
+ Requires-Dist: py-spy<0.5,>=0.4.2; extra == 'cpu'
40
+ Provides-Extra: dev
41
+ Requires-Dist: deptry>=0.23; extra == 'dev'
42
+ Requires-Dist: import-linter>=2.2; extra == 'dev'
43
+ Requires-Dist: mypy>=1.15; extra == 'dev'
44
+ Requires-Dist: pip-audit>=2.9; extra == 'dev'
45
+ Requires-Dist: pyarrow-stubs>=20.0.0.20260625; extra == 'dev'
46
+ Requires-Dist: pytest-cov>=6.1; extra == 'dev'
47
+ Requires-Dist: pytest-xdist<4,>=3.8; extra == 'dev'
48
+ Requires-Dist: pytest>=8.3; extra == 'dev'
49
+ Requires-Dist: ruff>=0.11; extra == 'dev'
50
+ Requires-Dist: types-jsonschema<5,>=4.20; extra == 'dev'
51
+ Requires-Dist: vulture>=2.14; extra == 'dev'
52
+ Provides-Extra: inference
53
+ Requires-Dist: aiperf<0.14,>=0.13; extra == 'inference'
54
+ Provides-Extra: memory
55
+ Requires-Dist: memray>=1.17; extra == 'memory'
56
+ Provides-Extra: test
57
+ Requires-Dist: pytest>=8.3; extra == 'test'
58
+ Provides-Extra: torch
59
+ Requires-Dist: torch>=2.7; extra == 'torch'
60
+ Provides-Extra: trace
61
+ Requires-Dist: opentelemetry-proto<1.45,>=1.44; extra == 'trace'
62
+ Requires-Dist: perfetto<0.58,>=0.57; extra == 'trace'
63
+ Requires-Dist: protobuf<7,>=5; extra == 'trace'
64
+ Description-Content-Type: text/markdown
65
+
66
+ <h1 align="center">flameox</h1>
67
+
68
+ <p align="center">
69
+ <img
70
+ src="docs/assets/flameox-mascot-flamegraph.png"
71
+ width="420"
72
+ alt="flameox mascot: an ox with a flame graph between its horns"
73
+ >
74
+ </p>
75
+
76
+ <p align="center"><strong>Bounded local runtime evidence for coding agents.</strong></p>
77
+
78
+ <!-- mcp-name: io.github.morluto/flameox -->
79
+
80
+ Flameox coordinates profilers, benchmark tools, trace processors, and direct local targets. It
81
+ turns an explicit artifact or command into bounded evidence while keeping durable preservation
82
+ optional. The agent chooses hypotheses and experiments; Flameox records observed inputs,
83
+ execution provenance, typed evidence, coverage, and limitations.
84
+
85
+ There is no workspace to initialize or project configuration to maintain. Pass exact artifact
86
+ paths to analysis and an explicit argv plus absolute working directory to capture. Flameox does not
87
+ search parent directories, edit project files, or provide a hosted service.
88
+
89
+ ## Quick start
90
+
91
+ Configure an MCP client with the global setup command:
92
+
93
+ ```console
94
+ npx flameox@latest setup
95
+ ```
96
+
97
+ Setup detects supported clients and asks which configurations to update. For automation, select
98
+ clients explicitly, for example `--client codex --yes` or `--all --yes`; `--dry-run` reports the
99
+ paths and actions without writing. Setup preserves unrelated client configuration and does not
100
+ change project files. See [the npm package guide](npm/README.md) for details.
101
+
102
+ Update existing MCP registrations with:
103
+
104
+ ```console
105
+ npx flameox@latest update
106
+ ```
107
+
108
+ `update --check` reports available updates without changing configuration. Updates preserve each
109
+ client's provider extras and settings, verify the new environment before changing release pins,
110
+ and report which clients need a restart or reconnect. Use `--client codex` to select one client,
111
+ or `--version 0.2.8` to select a specific release, including for rollback. The Python CLI exposes
112
+ the same `flameox update` command.
113
+
114
+ For direct CLI use, pass exact artifact paths or an explicit command:
115
+
116
+ ```console
117
+ uvx flameox analyze preview_artifact /absolute/path/to/artifact.json
118
+ uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
119
+ ```
120
+
121
+ To launch the stdio MCP server manually:
122
+
123
+ ```console
124
+ uvx flameox mcp serve
125
+ ```
126
+
127
+ For local development, clone the repository, install its development dependencies, and inspect the
128
+ available tools:
129
+
130
+ ```console
131
+ git clone https://github.com/morluto/flameox.git
132
+ cd flameox
133
+ uv sync --extra dev --extra memory --extra trace --extra cpu
134
+ uv run flameox mcp inspect
135
+ ```
136
+
137
+ ## Evidence and storage
138
+
139
+ Analysis and unpreserved capture use bounded session scratch. Session `analysis_id` values expire
140
+ when evicted or when the server stops. Explicit preservation creates the user-level Flameox data
141
+ directory and stores native bytes and a canonical evidence bundle by SHA-256. Set
142
+ `FLAMEOX_DATA_DIR` to choose another location. Preservation is optional; it does not imply full
143
+ console-output retention.
144
+
145
+ Flameox distinguishes observed, derived, and inferred claims. Profiles guide exploration but do
146
+ not establish causality or performance improvement. Confirmatory claims require representative
147
+ workloads, declared metrics and estimands, compatible identities, preserved samples, and a
148
+ semantic oracle.
149
+
150
+ ## MCP
151
+
152
+ The MCP server has no workspace binding. It exposes named analysis and capture tools through the
153
+ same operation registry as the CLI. Analysis tools accept explicit sources; capture tools accept
154
+ a typed target and provider. Tool schemas expose operation-specific fields directly. Inspect the
155
+ catalog with `flameox mcp inspect`; use `--tool TOOL_NAME` for
156
+ focused schemas and examples. The complete contract and current tool catalog are in
157
+ [the interface guide](docs/interfaces.md).
158
+
159
+ Tools return their full bounded results inline, including failures and recovery actions. Preserved
160
+ evidence has a durable `evidence_id`; `inspect_evidence` returns its redacted metadata and replay
161
+ sources inline.
162
+
163
+ Capture takes argv, not a shell string. A direct target supplies an absolute working directory and
164
+ bounded environment overrides. Results may include `next_page`; replay its named analysis tool
165
+ and arguments unchanged. Capture continuations read collected artifacts and do not rerun the
166
+ target. MCP work belongs to the live request, so cancellation applies directly and no detached job
167
+ survives a restart.
168
+
169
+ ## Documentation
170
+
171
+ - [Architecture](docs/architecture.md) describes process and package boundaries.
172
+ - [Storage and evidence](docs/storage-and-evidence.md) defines preservation and provenance.
173
+ - [Investigations](docs/investigations.md) covers experiments, comparison, and evidence quality.
174
+ - [Adapters](docs/adapters.md) documents provider compatibility and integration policy.
175
+ - [Runtime safety](docs/runtime-safety.md) covers limits, recovery, integrity, and privacy.
176
+ - [Interfaces](docs/interfaces.md) defines CLI and MCP contracts.
177
+ - [Testing](docs/testing.md) describes test selections and known proof gaps.
178
+
179
+ ## Development
180
+
181
+ Flameox requires Python 3.12 or newer and uses the committed `uv.lock`. See
182
+ [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and contribution guidance.
183
+
184
+ ```console
185
+ uv run ruff check src tests tools
186
+ uv run ruff format --check src tests tools
187
+ uv run mypy src tests tools
188
+ uv run pytest -q
189
+ ```
190
+
191
+ Flameox is licensed under the MIT License.