flameox 0.2.7__tar.gz → 0.2.8__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 (238) hide show
  1. flameox-0.2.8/.env.example +5 -0
  2. {flameox-0.2.7 → flameox-0.2.8}/.github/workflows/ci.yml +3 -3
  3. {flameox-0.2.7 → flameox-0.2.8}/AGENTS.md +44 -33
  4. {flameox-0.2.7 → flameox-0.2.8}/CHANGELOG.md +42 -0
  5. flameox-0.2.8/CONTRIBUTING.md +87 -0
  6. flameox-0.2.8/PKG-INFO +175 -0
  7. flameox-0.2.8/README.md +110 -0
  8. flameox-0.2.8/README.zh-CN.md +41 -0
  9. {flameox-0.2.7 → flameox-0.2.8}/SECURITY.md +11 -11
  10. {flameox-0.2.7 → flameox-0.2.8}/docs/adapters.md +23 -2
  11. {flameox-0.2.7 → flameox-0.2.8}/docs/architecture.md +14 -19
  12. flameox-0.2.8/docs/assets/flameox-social-preview-v1.png +0 -0
  13. {flameox-0.2.7 → flameox-0.2.8}/docs/interfaces.md +166 -153
  14. {flameox-0.2.7 → flameox-0.2.8}/docs/investigations.md +18 -11
  15. {flameox-0.2.7 → flameox-0.2.8}/docs/runtime-safety.md +18 -29
  16. {flameox-0.2.7 → flameox-0.2.8}/docs/storage-and-evidence.md +3 -1
  17. flameox-0.2.8/docs/testing.md +77 -0
  18. flameox-0.2.8/examples/semantic-matrix/README.md +20 -0
  19. flameox-0.2.8/npm/README.md +23 -0
  20. {flameox-0.2.7 → flameox-0.2.8}/npm/package-lock.json +2 -2
  21. {flameox-0.2.7 → flameox-0.2.8}/npm/package.json +1 -1
  22. flameox-0.2.8/npm/test/bootstrap.test.cjs +38 -0
  23. {flameox-0.2.7 → flameox-0.2.8}/pyproject.toml +10 -8
  24. {flameox-0.2.7 → flameox-0.2.8}/server.json +2 -2
  25. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/adapters/torch_benchmark.py +1 -17
  26. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/cli.py +59 -27
  27. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/evidence_models.py +6 -19
  28. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/execution.py +34 -5
  29. flameox-0.2.8/src/flameox/mcp/__init__.py +1 -0
  30. flameox-0.2.8/src/flameox/mcp/catalog.py +45 -0
  31. flameox-0.2.8/src/flameox/mcp/descriptions.py +60 -0
  32. flameox-0.2.8/src/flameox/mcp/request_contracts.py +276 -0
  33. flameox-0.2.8/src/flameox/mcp/result_contracts.py +252 -0
  34. flameox-0.2.8/src/flameox/mcp/server.py +661 -0
  35. flameox-0.2.8/src/flameox/mcp/tool_registry.py +181 -0
  36. flameox-0.2.8/src/flameox/mcp/validation.py +56 -0
  37. flameox-0.2.8/src/flameox/observations.py +41 -0
  38. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/benchmark_scaling.py +53 -35
  39. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/benchmarks.py +24 -2
  40. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/contracts.py +29 -7
  41. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/memray.py +7 -12
  42. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/preparation.py +3 -1
  43. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/reliability.py +38 -7
  44. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/structured_workers.py +14 -8
  45. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/xctrace.py +9 -1
  46. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/repository.py +53 -20
  47. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/runtime.py +239 -168
  48. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/runtime_contracts.py +63 -34
  49. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/sdk.py +9 -29
  50. flameox-0.2.8/src/flameox/validation.py +50 -0
  51. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/aiperf.py +14 -6
  52. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/benchmark_samples.py +9 -0
  53. flameox-0.2.8/src/flameox/workers/memray.py +473 -0
  54. flameox-0.2.8/src/flameox/workers/memray_contract.py +70 -0
  55. flameox-0.2.8/src/flameox/workers/parquet_schemas.py +23 -0
  56. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/pyperf.py +5 -0
  57. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/v8_profiles.py +39 -18
  58. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/v8_profiles_contract.py +3 -1
  59. flameox-0.2.8/tests/conftest.py +17 -0
  60. flameox-0.2.8/tests/e2e/test_cli_investigation.py +317 -0
  61. flameox-0.2.8/tests/e2e/test_mcp_request_limits.py +124 -0
  62. {flameox-0.2.7 → flameox-0.2.8}/tests/execution/test_bound_execution.py +33 -0
  63. flameox-0.2.8/tests/execution/test_broker.py +598 -0
  64. {flameox-0.2.7 → flameox-0.2.8}/tests/execution/test_diagnostics.py +0 -27
  65. flameox-0.2.8/tests/mcp/test_capture.py +133 -0
  66. flameox-0.2.8/tests/mcp/test_evidence.py +424 -0
  67. flameox-0.2.8/tests/mcp/test_transport.py +437 -0
  68. flameox-0.2.8/tests/performance/test_runtime_scale.py +41 -0
  69. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_benchmarks.py +163 -132
  70. flameox-0.2.8/tests/providers/test_compute_sanitizer.py +58 -0
  71. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_coverage.py +0 -65
  72. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_cpu.py +3 -160
  73. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_inference_exports.py +107 -0
  74. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_kernel_evidence.py +12 -8
  75. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_memray.py +22 -40
  76. flameox-0.2.8/tests/providers/test_nsight_compute.py +47 -0
  77. flameox-0.2.8/tests/providers/test_nsight_systems.py +189 -0
  78. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_nvbench.py +0 -92
  79. flameox-0.2.8/tests/providers/test_perfetto.py +153 -0
  80. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_pytest.py +19 -31
  81. flameox-0.2.8/tests/providers/test_rocprof.py +38 -0
  82. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_source_evidence.py +3 -50
  83. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_v8_profiles.py +123 -141
  84. flameox-0.2.8/tests/providers/test_xctrace.py +35 -0
  85. {flameox-0.2.7 → flameox-0.2.8}/tests/test_capture_diagnostics.py +25 -41
  86. {flameox-0.2.7 → flameox-0.2.8}/tests/test_capture_lifecycle.py +0 -105
  87. {flameox-0.2.7 → flameox-0.2.8}/tests/test_capture_output_files.py +8 -92
  88. flameox-0.2.8/tests/test_cli.py +177 -0
  89. flameox-0.2.8/tests/test_evidence_contracts.py +242 -0
  90. {flameox-0.2.7 → flameox-0.2.8}/tests/test_evidence_handoffs.py +17 -61
  91. {flameox-0.2.7 → flameox-0.2.8}/tests/test_native_capture_recovery.py +11 -20
  92. flameox-0.2.8/tests/test_provider_preparation.py +123 -0
  93. {flameox-0.2.7 → flameox-0.2.8}/tests/test_release_metadata.py +4 -21
  94. {flameox-0.2.7 → flameox-0.2.8}/tests/test_repository.py +8 -241
  95. flameox-0.2.8/tests/test_runtime.py +316 -0
  96. {flameox-0.2.7 → flameox-0.2.8}/tests/test_runtime_requests.py +1 -68
  97. flameox-0.2.8/tests/test_sdk.py +89 -0
  98. flameox-0.2.8/tests/test_setup.py +72 -0
  99. {flameox-0.2.7 → flameox-0.2.8}/tests/test_text_preview_runtime.py +16 -44
  100. {flameox-0.2.7 → flameox-0.2.8}/tests/test_worker_lifecycle.py +1 -20
  101. {flameox-0.2.7 → flameox-0.2.8}/tests/test_workload_budgets.py +12 -1
  102. {flameox-0.2.7 → flameox-0.2.8}/uv.lock +32 -16
  103. flameox-0.2.7/.env.example +0 -5
  104. flameox-0.2.7/CONTRIBUTING.md +0 -172
  105. flameox-0.2.7/PKG-INFO +0 -262
  106. flameox-0.2.7/README.md +0 -199
  107. flameox-0.2.7/README.zh-CN.md +0 -61
  108. flameox-0.2.7/docs/testing.md +0 -92
  109. flameox-0.2.7/examples/semantic-matrix/README.md +0 -26
  110. flameox-0.2.7/npm/README.md +0 -19
  111. flameox-0.2.7/npm/test/bootstrap.test.cjs +0 -59
  112. flameox-0.2.7/src/flameox/mcp/__init__.py +0 -3
  113. flameox-0.2.7/src/flameox/mcp/capability_tools.py +0 -183
  114. flameox-0.2.7/src/flameox/mcp/result_contracts.py +0 -197
  115. flameox-0.2.7/src/flameox/mcp/server.py +0 -555
  116. flameox-0.2.7/src/flameox/workers/memray.py +0 -946
  117. flameox-0.2.7/src/flameox/workers/memray_contract.py +0 -138
  118. flameox-0.2.7/src/flameox/workers/parquet_schemas.py +0 -110
  119. flameox-0.2.7/tests/adapters/test_memray_aggregation.py +0 -385
  120. flameox-0.2.7/tests/adapters/test_text_preview.py +0 -60
  121. flameox-0.2.7/tests/adapters/test_torch_benchmark.py +0 -192
  122. flameox-0.2.7/tests/conftest.py +0 -21
  123. flameox-0.2.7/tests/execution/test_broker.py +0 -1608
  124. flameox-0.2.7/tests/execution/test_command_binding.py +0 -65
  125. flameox-0.2.7/tests/execution/test_optional_deadline.py +0 -128
  126. flameox-0.2.7/tests/mcp/test_capture.py +0 -261
  127. flameox-0.2.7/tests/mcp/test_catalog.py +0 -192
  128. flameox-0.2.7/tests/mcp/test_evidence.py +0 -557
  129. flameox-0.2.7/tests/mcp/test_transport.py +0 -272
  130. flameox-0.2.7/tests/performance/test_runtime_scale.py +0 -164
  131. flameox-0.2.7/tests/providers/test_aiperf.py +0 -38
  132. flameox-0.2.7/tests/providers/test_compute_sanitizer.py +0 -77
  133. flameox-0.2.7/tests/providers/test_contracts.py +0 -19
  134. flameox-0.2.7/tests/providers/test_nsight_compute.py +0 -219
  135. flameox-0.2.7/tests/providers/test_nsight_systems.py +0 -336
  136. flameox-0.2.7/tests/providers/test_perfetto.py +0 -143
  137. flameox-0.2.7/tests/providers/test_rocprof.py +0 -101
  138. flameox-0.2.7/tests/providers/test_xctrace.py +0 -74
  139. flameox-0.2.7/tests/storage/test_bounded_filesystem.py +0 -37
  140. flameox-0.2.7/tests/support/providers.py +0 -16
  141. flameox-0.2.7/tests/test_canonical.py +0 -15
  142. flameox-0.2.7/tests/test_cli.py +0 -1055
  143. flameox-0.2.7/tests/test_evidence_contracts.py +0 -646
  144. flameox-0.2.7/tests/test_provider_preparation.py +0 -295
  145. flameox-0.2.7/tests/test_runtime.py +0 -1127
  146. flameox-0.2.7/tests/test_runtime_contracts.py +0 -113
  147. flameox-0.2.7/tests/test_sdk.py +0 -170
  148. flameox-0.2.7/tests/test_setup.py +0 -562
  149. flameox-0.2.7/tests/test_source_files.py +0 -29
  150. {flameox-0.2.7 → flameox-0.2.8}/.devcontainer/devcontainer.json +0 -0
  151. {flameox-0.2.7 → flameox-0.2.8}/.github/CODEOWNERS +0 -0
  152. {flameox-0.2.7 → flameox-0.2.8}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  153. {flameox-0.2.7 → flameox-0.2.8}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  154. {flameox-0.2.7 → flameox-0.2.8}/.github/ISSUE_TEMPLATE/design_discussion.yml +0 -0
  155. {flameox-0.2.7 → flameox-0.2.8}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  156. {flameox-0.2.7 → flameox-0.2.8}/.github/labels.yml +0 -0
  157. {flameox-0.2.7 → flameox-0.2.8}/.github/pull_request_template.md +0 -0
  158. {flameox-0.2.7 → flameox-0.2.8}/.github/renovate.json +0 -0
  159. {flameox-0.2.7 → flameox-0.2.8}/.github/workflows/labels.yml +0 -0
  160. {flameox-0.2.7 → flameox-0.2.8}/.github/workflows/release-please.yml +0 -0
  161. {flameox-0.2.7 → flameox-0.2.8}/.github/workflows/release.yml +0 -0
  162. {flameox-0.2.7 → flameox-0.2.8}/.gitignore +0 -0
  163. {flameox-0.2.7 → flameox-0.2.8}/.jscpd.json +0 -0
  164. {flameox-0.2.7 → flameox-0.2.8}/.pre-commit-config.yaml +0 -0
  165. {flameox-0.2.7 → flameox-0.2.8}/.python-version +0 -0
  166. {flameox-0.2.7 → flameox-0.2.8}/LICENSE +0 -0
  167. {flameox-0.2.7 → flameox-0.2.8}/cliff.toml +0 -0
  168. {flameox-0.2.7 → flameox-0.2.8}/docs/assets/flameox-mascot-flamegraph.png +0 -0
  169. {flameox-0.2.7 → flameox-0.2.8}/examples/semantic-matrix/semantic_workload.py +0 -0
  170. {flameox-0.2.7 → flameox-0.2.8}/mcp-publisher +0 -0
  171. {flameox-0.2.7 → flameox-0.2.8}/mcp-publisher.tar.gz +0 -0
  172. {flameox-0.2.7 → flameox-0.2.8}/npm/.oxlintrc.json +0 -0
  173. {flameox-0.2.7 → flameox-0.2.8}/npm/bin/flameox.cjs +0 -0
  174. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/__init__.py +0 -0
  175. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/__main__.py +0 -0
  176. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/adapters/__init__.py +0 -0
  177. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/adapters/json_preview.py +0 -0
  178. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/adapters/sarif.py +0 -0
  179. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/adapters/text_preview.py +0 -0
  180. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/atomic.py +0 -0
  181. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/benchmark_samples.py +0 -0
  182. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/canonical.py +0 -0
  183. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/command_binding.py +0 -0
  184. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/environment_policy.py +0 -0
  185. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/executable_models.py +0 -0
  186. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/filesystem.py +0 -0
  187. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/models.py +0 -0
  188. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/nsight_compute.py +0 -0
  189. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/paths.py +0 -0
  190. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/process_models.py +0 -0
  191. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/__init__.py +0 -0
  192. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/aiperf.py +0 -0
  193. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/availability.py +0 -0
  194. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/capture.py +0 -0
  195. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/cpu.py +0 -0
  196. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/environment.py +0 -0
  197. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/inference_comparison.py +0 -0
  198. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/inference_exports.py +0 -0
  199. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/kernel_evidence.py +0 -0
  200. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/nsight_compute.py +0 -0
  201. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/nsight_systems.py +0 -0
  202. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/nvbench.py +0 -0
  203. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/otlp.py +0 -0
  204. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/perfetto.py +0 -0
  205. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/providers/source_evidence.py +0 -0
  206. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/py.typed +0 -0
  207. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/pytest_capture.py +0 -0
  208. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/pytest_runner.py +0 -0
  209. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/runtime_errors.py +0 -0
  210. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/setup.py +0 -0
  211. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/source_files.py +0 -0
  212. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/__init__.py +0 -0
  213. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/aiperf_contract.py +0 -0
  214. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/benchmark_samples_contract.py +0 -0
  215. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/compute_sanitizer.py +0 -0
  216. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/compute_sanitizer_contract.py +0 -0
  217. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/coverage.py +0 -0
  218. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/coverage_contract.py +0 -0
  219. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/harness.py +0 -0
  220. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/nsight_compute.py +0 -0
  221. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/nsight_compute_contract.py +0 -0
  222. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/otlp.py +0 -0
  223. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/otlp_contract.py +0 -0
  224. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/otlp_parser.py +0 -0
  225. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/perfetto.py +0 -0
  226. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/perfetto_contract.py +0 -0
  227. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/protocol.py +0 -0
  228. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/pstats.py +0 -0
  229. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/pstats_contract.py +0 -0
  230. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/pyperf_contract.py +0 -0
  231. {flameox-0.2.7 → flameox-0.2.8}/src/flameox/workers/pyperf_target.py +0 -0
  232. {flameox-0.2.7 → flameox-0.2.8}/tests/__init__.py +0 -0
  233. {flameox-0.2.7 → flameox-0.2.8}/tests/adapters/test_torch_benchmark_live.py +0 -0
  234. {flameox-0.2.7 → flameox-0.2.8}/tests/providers/test_otlp.py +0 -0
  235. {flameox-0.2.7 → flameox-0.2.8}/tests/support/__init__.py +0 -0
  236. {flameox-0.2.7 → flameox-0.2.8}/tests/support/processes.py +0 -0
  237. {flameox-0.2.7 → flameox-0.2.8}/tests/test_capture_failure_status.py +0 -0
  238. {flameox-0.2.7 → flameox-0.2.8}/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
@@ -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
 
@@ -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 capability runtime; `runtime_contracts.py` owns strict public
55
+ contracts; `repository.py` owns optional immutable preservation; `execution.py`
56
+ owns bounded subprocess work; capability 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 capability 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
 
@@ -2,6 +2,48 @@
2
2
 
3
3
  All notable changes to flameox are documented in this file.
4
4
 
5
+ ## [0.2.8] - 2026-10-09
6
+
7
+ ### Bug Fixes
8
+
9
+ - **cli:** Reject excessive JSON and nonfinite experiment thresholds
10
+ - **evidence:** Enforce bounded observation and canonical text contracts
11
+ - **evidence:** Recover expired handles and clarify capture provenance
12
+ - **tools:** Align input schemas and actionable validation recovery
13
+ - **benchmarks:** Preserve scaling means and reject numeric overflow
14
+ - **aiperf:** Report missing reader as unavailable capability
15
+ - **mcp:** Enforce direct tool schemas and inherit request limits
16
+ - **providers:** Bound XML parsing and handle benchmark overflow
17
+ - **tools:** Correct V8 evidence and repair discovery, rescue, and cleanup (#525) ([#525](https://github.com/morluto/flameox/pull/525))
18
+
19
+ ### Documentation
20
+
21
+ - Prune duplicate guides and obsolete audit records
22
+ - **contracts:** Correct interface and evidence guidance
23
+ - **agents:** Align tool and test guidance with current contracts
24
+ - **tools:** Record native evidence and admission probe results
25
+ - **tools:** Record independent live hardening verification
26
+ - **mcp:** Record live probing fixes and remaining proof gaps
27
+ - **mcp:** Record direct tool design and validation
28
+ - Restore original ox mascot in README
29
+ - Add white ox social preview image
30
+
31
+ ### Features
32
+
33
+ - **mcp:** Replace gateway tools with direct typed operations
34
+
35
+ ### Refactoring
36
+
37
+ - **mcp:** Remove unused resource-list convenience method
38
+ - Remove obsolete option wrapper and redundant catch
39
+ - **memray:** Remove unused worker evidence outputs
40
+
41
+ ### Testing
42
+
43
+ - Prune redundant checks and remove coverage gate
44
+ - Prioritize real CLI and MCP workflows
45
+ - **runtime:** Prune duplicate execution and evidence checks
46
+ - **providers:** Replace simulated captures with native evidence
5
47
  ## [0.2.7] - 2026-09-12
6
48
 
7
49
  ### Bug Fixes
@@ -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.8/PKG-INFO ADDED
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.5
2
+ Name: flameox
3
+ Version: 0.2.8
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.13,>=0.12; 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.13,>=0.12; 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
+ For direct CLI use, pass exact artifact paths or an explicit command:
103
+
104
+ ```console
105
+ uvx flameox analyze artifact.preview /absolute/path/to/artifact.json
106
+ uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
107
+ ```
108
+
109
+ To launch the stdio MCP server manually:
110
+
111
+ ```console
112
+ uvx flameox mcp serve
113
+ ```
114
+
115
+ For local development, clone the repository, install its development dependencies, and inspect the
116
+ available tools:
117
+
118
+ ```console
119
+ git clone https://github.com/morluto/flameox.git
120
+ cd flameox
121
+ uv sync --extra dev --extra memory --extra trace --extra cpu
122
+ uv run flameox mcp inspect
123
+ ```
124
+
125
+ ## Evidence and storage
126
+
127
+ Analysis and unpreserved capture use bounded session scratch. Session `analysis_id` values expire
128
+ when evicted or when the server stops. Explicit preservation creates the user-level Flameox data
129
+ directory and stores native bytes and a canonical evidence bundle by SHA-256. Set
130
+ `FLAMEOX_DATA_DIR` to choose another location. Preservation is optional; it does not imply full
131
+ console-output retention.
132
+
133
+ Flameox distinguishes observed, derived, and inferred claims. Profiles guide exploration but do
134
+ not establish causality or performance improvement. Confirmatory claims require representative
135
+ workloads, declared metrics and estimands, compatible identities, preserved samples, and a
136
+ semantic oracle.
137
+
138
+ ## MCP
139
+
140
+ The MCP server has no workspace binding. It exposes named analysis and capture tools through the
141
+ same capability registry as the CLI. Analysis tools accept explicit sources; capture tools accept
142
+ a typed target and provider. Tool schemas expose capability-specific fields directly. Inspect the
143
+ catalog with `flameox mcp inspect`; use `--capability CAPABILITY_ID` or `--tool TOOL_NAME` for
144
+ focused schemas and examples. The complete contract and current tool catalog are in
145
+ [the interface guide](docs/interfaces.md).
146
+
147
+ Capture takes argv, not a shell string. A direct target supplies an absolute working directory and
148
+ bounded environment overrides. Results may include `next_page`; replay its named analysis tool
149
+ and arguments unchanged. Capture continuations read collected artifacts and do not rerun the
150
+ target. MCP work belongs to the live request, so cancellation applies directly and no detached job
151
+ survives a restart.
152
+
153
+ ## Documentation
154
+
155
+ - [Architecture](docs/architecture.md) describes process and package boundaries.
156
+ - [Storage and evidence](docs/storage-and-evidence.md) defines preservation and provenance.
157
+ - [Investigations](docs/investigations.md) covers experiments, comparison, and evidence quality.
158
+ - [Adapters](docs/adapters.md) documents provider compatibility and integration policy.
159
+ - [Runtime safety](docs/runtime-safety.md) covers limits, recovery, integrity, and privacy.
160
+ - [Interfaces](docs/interfaces.md) defines CLI and MCP contracts.
161
+ - [Testing](docs/testing.md) describes test selections and known proof gaps.
162
+
163
+ ## Development
164
+
165
+ Flameox requires Python 3.12 or newer and uses the committed `uv.lock`. See
166
+ [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and contribution guidance.
167
+
168
+ ```console
169
+ uv run ruff check src tests tools
170
+ uv run ruff format --check src tests tools
171
+ uv run mypy src tests tools
172
+ uv run pytest -q
173
+ ```
174
+
175
+ Flameox is licensed under the MIT License.
@@ -0,0 +1,110 @@
1
+ <h1 align="center">flameox</h1>
2
+
3
+ <p align="center">
4
+ <img
5
+ src="docs/assets/flameox-mascot-flamegraph.png"
6
+ width="420"
7
+ alt="flameox mascot: an ox with a flame graph between its horns"
8
+ >
9
+ </p>
10
+
11
+ <p align="center"><strong>Bounded local runtime evidence for coding agents.</strong></p>
12
+
13
+ <!-- mcp-name: io.github.morluto/flameox -->
14
+
15
+ Flameox coordinates profilers, benchmark tools, trace processors, and direct local targets. It
16
+ turns an explicit artifact or command into bounded evidence while keeping durable preservation
17
+ optional. The agent chooses hypotheses and experiments; Flameox records observed inputs,
18
+ execution provenance, typed evidence, coverage, and limitations.
19
+
20
+ There is no workspace to initialize or project configuration to maintain. Pass exact artifact
21
+ paths to analysis and an explicit argv plus absolute working directory to capture. Flameox does not
22
+ search parent directories, edit project files, or provide a hosted service.
23
+
24
+ ## Quick start
25
+
26
+ Configure an MCP client with the global setup command:
27
+
28
+ ```console
29
+ npx flameox@latest setup
30
+ ```
31
+
32
+ Setup detects supported clients and asks which configurations to update. For automation, select
33
+ clients explicitly, for example `--client codex --yes` or `--all --yes`; `--dry-run` reports the
34
+ paths and actions without writing. Setup preserves unrelated client configuration and does not
35
+ change project files. See [the npm package guide](npm/README.md) for details.
36
+
37
+ For direct CLI use, pass exact artifact paths or an explicit command:
38
+
39
+ ```console
40
+ uvx flameox analyze artifact.preview /absolute/path/to/artifact.json
41
+ uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
42
+ ```
43
+
44
+ To launch the stdio MCP server manually:
45
+
46
+ ```console
47
+ uvx flameox mcp serve
48
+ ```
49
+
50
+ For local development, clone the repository, install its development dependencies, and inspect the
51
+ available tools:
52
+
53
+ ```console
54
+ git clone https://github.com/morluto/flameox.git
55
+ cd flameox
56
+ uv sync --extra dev --extra memory --extra trace --extra cpu
57
+ uv run flameox mcp inspect
58
+ ```
59
+
60
+ ## Evidence and storage
61
+
62
+ Analysis and unpreserved capture use bounded session scratch. Session `analysis_id` values expire
63
+ when evicted or when the server stops. Explicit preservation creates the user-level Flameox data
64
+ directory and stores native bytes and a canonical evidence bundle by SHA-256. Set
65
+ `FLAMEOX_DATA_DIR` to choose another location. Preservation is optional; it does not imply full
66
+ console-output retention.
67
+
68
+ Flameox distinguishes observed, derived, and inferred claims. Profiles guide exploration but do
69
+ not establish causality or performance improvement. Confirmatory claims require representative
70
+ workloads, declared metrics and estimands, compatible identities, preserved samples, and a
71
+ semantic oracle.
72
+
73
+ ## MCP
74
+
75
+ The MCP server has no workspace binding. It exposes named analysis and capture tools through the
76
+ same capability registry as the CLI. Analysis tools accept explicit sources; capture tools accept
77
+ a typed target and provider. Tool schemas expose capability-specific fields directly. Inspect the
78
+ catalog with `flameox mcp inspect`; use `--capability CAPABILITY_ID` or `--tool TOOL_NAME` for
79
+ focused schemas and examples. The complete contract and current tool catalog are in
80
+ [the interface guide](docs/interfaces.md).
81
+
82
+ Capture takes argv, not a shell string. A direct target supplies an absolute working directory and
83
+ bounded environment overrides. Results may include `next_page`; replay its named analysis tool
84
+ and arguments unchanged. Capture continuations read collected artifacts and do not rerun the
85
+ target. MCP work belongs to the live request, so cancellation applies directly and no detached job
86
+ survives a restart.
87
+
88
+ ## Documentation
89
+
90
+ - [Architecture](docs/architecture.md) describes process and package boundaries.
91
+ - [Storage and evidence](docs/storage-and-evidence.md) defines preservation and provenance.
92
+ - [Investigations](docs/investigations.md) covers experiments, comparison, and evidence quality.
93
+ - [Adapters](docs/adapters.md) documents provider compatibility and integration policy.
94
+ - [Runtime safety](docs/runtime-safety.md) covers limits, recovery, integrity, and privacy.
95
+ - [Interfaces](docs/interfaces.md) defines CLI and MCP contracts.
96
+ - [Testing](docs/testing.md) describes test selections and known proof gaps.
97
+
98
+ ## Development
99
+
100
+ Flameox requires Python 3.12 or newer and uses the committed `uv.lock`. See
101
+ [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and contribution guidance.
102
+
103
+ ```console
104
+ uv run ruff check src tests tools
105
+ uv run ruff format --check src tests tools
106
+ uv run mypy src tests tools
107
+ uv run pytest -q
108
+ ```
109
+
110
+ Flameox is licensed under the MIT License.
@@ -0,0 +1,41 @@
1
+ # flameox
2
+
3
+ **面向编码代理的本地、有界运行时证据层。**
4
+
5
+ Flameox 协调分析器、基准工具、跟踪处理器和明确指定的本地目标,将原生工件或命令转换为有界证据,并可选择保留证据。代理负责提出假设和选择实验;Flameox 记录观测到的输入、执行来源、类型化证据、覆盖范围和限制。
6
+
7
+ 无需初始化工作区或维护项目配置。分析时传入工件的明确路径;采集时传入 argv 和绝对工作目录。Flameox 不搜索父目录、不修改项目文件,也不是托管服务。
8
+
9
+ ## 快速开始
10
+
11
+ 要连接 MCP 客户端,可运行全局配置向导:
12
+
13
+ ```console
14
+ npx flameox@latest setup
15
+ ```
16
+
17
+ 直接使用 CLI 时,传入工件的绝对路径或明确命令:
18
+
19
+ ```console
20
+ uvx flameox analyze artifact.preview /absolute/path/to/artifact.json
21
+ uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
22
+ ```
23
+
24
+ 向导会检测受支持的客户端,并询问要修改哪些配置。自动化时应明确指定客户端,例如
25
+ `--client codex --yes` 或 `--all --yes`;`--dry-run` 只报告路径和操作,不会写入配置。
26
+ 向导会保留客户端配置中的其他内容,也不会修改项目文件。详见
27
+ [npm 包说明](npm/README.md)。
28
+
29
+ ## 证据与存储
30
+
31
+ 分析和未保留的采集使用有界会话暂存。缓存淘汰或服务停止后,`analysis_id` 会过期。显式保留证据时,Flameox 才会创建用户级数据目录,并按 SHA-256 保存原生字节和规范化证据包。可用 `FLAMEOX_DATA_DIR` 指定其他位置。保留证据不会自动要求保留完整控制台输出。
32
+
33
+ Flameox 区分观测、推导和推断。性能剖析可用于探索,但不能单独证明因果关系或性能提升。确认性结论需要有代表性的工作负载、明确的指标和估计量、兼容的身份、保留的样本以及语义预言机。
34
+
35
+ ## MCP
36
+
37
+ MCP 服务不绑定工作区。它与 CLI 共用能力注册表,提供具名分析和采集工具。分析工具接收明确来源;采集工具接收类型化目标和采集器。能力专属字段直接显示在工具 schema 中。运行 `flameox mcp inspect` 查看目录;添加 `--capability CAPABILITY_ID` 或 `--tool TOOL_NAME` 查看对应 schema 和示例。完整工具目录及契约见[接口文档](docs/interfaces.md)。
38
+
39
+ 采集接受 argv,不接受 shell 字符串。直接目标需提供绝对工作目录和有界环境覆盖。结果可能包含 `next_page`;请原样调用其中指定的分析工具和参数。采集后续页读取已生成的工件,不会再次执行目标。MCP 工作属于当前请求,因此取消会作用于该请求,服务重启后也不会留下脱离请求的后台任务。
40
+
41
+ 详细设计见英文文档:[架构](docs/architecture.md)、[存储与证据](docs/storage-and-evidence.md)、[调查与实验](docs/investigations.md)、[适配器](docs/adapters.md)、[运行时安全](docs/runtime-safety.md)、[接口](docs/interfaces.md)和[测试](docs/testing.md)。开发流程见[贡献指南](CONTRIBUTING.md)。
@@ -9,23 +9,23 @@ Do not open a public issue.
9
9
  ## Secrets management
10
10
 
11
11
  flameox is a local CLI tool and MCP server. Analysis and capture do not make
12
- control-process network requests. `flameox setup` may invoke the selected Python
13
- package installer, and a directly executed target may use the network according
14
- to its own behavior. Capture is trusted local execution; Flameox reports the
15
- available containment but does not claim a sandbox. Configuration that could
16
- contain sensitive values should be provided through environment variables, not
17
- committed to the repository.
18
-
19
- - Copy `.env.example` to `.env` for local development and keep `.env` in
20
- `.gitignore` (already configured).
12
+ control-process network requests. `flameox setup` and MCP `prepare_providers`
13
+ may invoke package installers that access the network; directly executed targets
14
+ may use the network according to their own behavior. Capture is trusted local
15
+ execution; Flameox reports the available containment but does not claim a sandbox.
16
+ Configuration that could contain sensitive values should be provided through
17
+ environment variables, not committed to the repository.
18
+
19
+ - Export environment settings into the invoking process; Flameox does not load
20
+ `.env` files automatically. See `.env.example` for the Trace Processor setting.
21
21
  - Never commit credentials, tokens, or private keys.
22
22
 
23
23
  ## Dependency security
24
24
 
25
25
  - [pip-audit](https://github.com/pypa/pip-audit) runs in CI to flag known
26
26
  vulnerabilities in Python dependencies.
27
- - [Renovate](https://docs.renovatebot.com/) is configured with a 3-day minimum
28
- release age to reduce supply-chain risk from compromised new releases.
27
+ - [Renovate](https://docs.renovatebot.com/) waits three days before proposing
28
+ dependency updates. This delay does not establish a release's safety.
29
29
 
30
30
  ## Evidence safety
31
31