flameox 0.2.8__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.
- {flameox-0.2.8 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/bug_report.yml +1 -1
- {flameox-0.2.8 → flameox-0.2.9}/AGENTS.md +4 -4
- flameox-0.2.9/CHANGELOG.md +112 -0
- {flameox-0.2.8 → flameox-0.2.9}/PKG-INFO +23 -7
- {flameox-0.2.8 → flameox-0.2.9}/README.md +20 -4
- {flameox-0.2.8 → flameox-0.2.9}/README.zh-CN.md +4 -2
- {flameox-0.2.8 → flameox-0.2.9}/docs/adapters.md +50 -14
- {flameox-0.2.8 → flameox-0.2.9}/docs/architecture.md +19 -13
- {flameox-0.2.8 → flameox-0.2.9}/docs/interfaces.md +155 -80
- {flameox-0.2.8 → flameox-0.2.9}/docs/investigations.md +22 -11
- {flameox-0.2.8 → flameox-0.2.9}/docs/runtime-safety.md +8 -7
- {flameox-0.2.8 → flameox-0.2.9}/docs/storage-and-evidence.md +37 -27
- flameox-0.2.9/docs/testing.md +92 -0
- {flameox-0.2.8 → flameox-0.2.9}/npm/README.md +9 -2
- {flameox-0.2.8 → flameox-0.2.9}/npm/bin/flameox.cjs +5 -5
- {flameox-0.2.8 → flameox-0.2.9}/npm/package-lock.json +2 -2
- {flameox-0.2.8 → flameox-0.2.9}/npm/package.json +2 -2
- flameox-0.2.9/npm/test/bootstrap.test.cjs +90 -0
- {flameox-0.2.8 → flameox-0.2.9}/pyproject.toml +6 -4
- {flameox-0.2.8 → flameox-0.2.9}/server.json +2 -2
- flameox-0.2.9/src/flameox/adapters/json_events.py +45 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/adapters/json_preview.py +5 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/adapters/sarif.py +65 -36
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/adapters/text_preview.py +3 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/benchmark_samples.py +18 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/canonical.py +10 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/cli.py +164 -86
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/command_binding.py +32 -17
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/evidence_models.py +5 -3
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/executable_models.py +0 -2
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/execution.py +25 -583
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/filesystem.py +39 -1
- flameox-0.2.9/src/flameox/installation.py +139 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/descriptions.py +17 -13
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/request_contracts.py +43 -42
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/result_contracts.py +19 -14
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/server.py +126 -209
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/tool_registry.py +43 -52
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/aiperf.py +33 -12
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/availability.py +1 -0
- flameox-0.2.9/src/flameox/providers/benchmark_comparison.py +89 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/benchmark_scaling.py +18 -35
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/benchmarks.py +31 -84
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/capture.py +1 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/contracts.py +13 -5
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/cpu.py +53 -29
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/environment.py +1 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/inference_comparison.py +24 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/inference_exports.py +62 -46
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/kernel_evidence.py +96 -44
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/memray.py +32 -32
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/nsight_compute.py +34 -10
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/nsight_systems.py +34 -23
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/nvbench.py +43 -90
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/otlp.py +5 -9
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/perfetto.py +23 -13
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/preparation.py +4 -4
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/reliability.py +25 -27
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/source_evidence.py +10 -4
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/structured_workers.py +24 -55
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/xctrace.py +23 -20
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/pytest_capture.py +22 -6
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/repository.py +98 -50
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/runtime.py +519 -386
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/runtime_contracts.py +211 -178
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/setup.py +344 -174
- flameox-0.2.9/src/flameox/source_files.py +144 -0
- flameox-0.2.9/src/flameox/updates.py +59 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/aiperf.py +34 -19
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/aiperf_contract.py +2 -2
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/compute_sanitizer.py +7 -2
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/compute_sanitizer_contract.py +1 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/harness.py +1 -119
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/memray.py +33 -52
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/memray_contract.py +2 -3
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/otlp.py +0 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/otlp_contract.py +0 -1
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/otlp_parser.py +17 -18
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/perfetto.py +1 -9
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/perfetto_contract.py +0 -2
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/pstats.py +34 -6
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/v8_profiles.py +91 -48
- {flameox-0.2.8 → flameox-0.2.9}/tests/conftest.py +13 -0
- flameox-0.2.9/tests/e2e/test_cli_investigation.py +580 -0
- flameox-0.2.9/tests/e2e/test_cli_setup.py +264 -0
- flameox-0.2.9/tests/e2e/test_cli_update.py +152 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/e2e/test_mcp_request_limits.py +3 -3
- flameox-0.2.9/tests/execution/test_bound_execution.py +274 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/execution/test_broker.py +45 -81
- {flameox-0.2.8 → flameox-0.2.9}/tests/mcp/test_capture.py +12 -8
- {flameox-0.2.8 → flameox-0.2.9}/tests/mcp/test_evidence.py +141 -52
- {flameox-0.2.8 → flameox-0.2.9}/tests/mcp/test_transport.py +295 -32
- flameox-0.2.9/tests/performance/test_provider_scale.py +98 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/performance/test_runtime_scale.py +2 -2
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_benchmarks.py +131 -37
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_compute_sanitizer.py +30 -1
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_coverage.py +3 -3
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_cpu.py +226 -16
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_inference_exports.py +329 -46
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_kernel_evidence.py +236 -38
- flameox-0.2.9/tests/providers/test_memray.py +182 -0
- flameox-0.2.9/tests/providers/test_native_decode_failures.py +43 -0
- flameox-0.2.9/tests/providers/test_nsight_compute.py +91 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_nsight_systems.py +53 -13
- flameox-0.2.9/tests/providers/test_nvbench.py +325 -0
- flameox-0.2.9/tests/providers/test_otlp.py +270 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_perfetto.py +7 -5
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_pytest.py +168 -16
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_rocprof.py +1 -1
- flameox-0.2.9/tests/providers/test_source_evidence.py +370 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_v8_profiles.py +182 -13
- flameox-0.2.9/tests/test_canonical.py +23 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_capture_diagnostics.py +54 -17
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_capture_failure_status.py +1 -1
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_capture_lifecycle.py +8 -8
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_capture_output_files.py +2 -2
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_cli.py +23 -6
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_evidence_contracts.py +27 -13
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_evidence_handoffs.py +82 -38
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_native_capture_recovery.py +72 -33
- flameox-0.2.9/tests/test_native_conversions.py +76 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_provider_preparation.py +51 -2
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_repository.py +224 -16
- flameox-0.2.9/tests/test_runtime.py +811 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_runtime_requests.py +1 -1
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_sdk.py +10 -3
- flameox-0.2.9/tests/test_setup.py +226 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_text_preview_runtime.py +4 -4
- flameox-0.2.9/tests/test_updates.py +361 -0
- flameox-0.2.9/tests/test_worker_lifecycle.py +94 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_workload_budgets.py +15 -10
- {flameox-0.2.8 → flameox-0.2.9}/uv.lock +529 -311
- flameox-0.2.8/CHANGELOG.md +0 -683
- flameox-0.2.8/docs/testing.md +0 -77
- flameox-0.2.8/npm/test/bootstrap.test.cjs +0 -38
- flameox-0.2.8/src/flameox/mcp/catalog.py +0 -45
- flameox-0.2.8/src/flameox/source_files.py +0 -112
- flameox-0.2.8/tests/e2e/test_cli_investigation.py +0 -317
- flameox-0.2.8/tests/execution/test_bound_execution.py +0 -83
- flameox-0.2.8/tests/providers/test_memray.py +0 -88
- flameox-0.2.8/tests/providers/test_nsight_compute.py +0 -47
- flameox-0.2.8/tests/providers/test_nvbench.py +0 -168
- flameox-0.2.8/tests/providers/test_otlp.py +0 -150
- flameox-0.2.8/tests/providers/test_source_evidence.py +0 -153
- flameox-0.2.8/tests/test_runtime.py +0 -316
- flameox-0.2.8/tests/test_setup.py +0 -72
- flameox-0.2.8/tests/test_worker_lifecycle.py +0 -77
- {flameox-0.2.8 → flameox-0.2.9}/.devcontainer/devcontainer.json +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.env.example +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/CODEOWNERS +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/design_discussion.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/labels.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/pull_request_template.md +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/renovate.json +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/workflows/ci.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/workflows/labels.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/workflows/release-please.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.github/workflows/release.yml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.gitignore +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.jscpd.json +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.pre-commit-config.yaml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/.python-version +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/CONTRIBUTING.md +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/LICENSE +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/SECURITY.md +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/cliff.toml +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/docs/assets/flameox-mascot-flamegraph.png +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/docs/assets/flameox-social-preview-v1.png +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/examples/semantic-matrix/README.md +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/examples/semantic-matrix/semantic_workload.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/mcp-publisher +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/mcp-publisher.tar.gz +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/npm/.oxlintrc.json +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/__main__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/adapters/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/adapters/torch_benchmark.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/atomic.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/environment_policy.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/mcp/validation.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/models.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/nsight_compute.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/observations.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/paths.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/process_models.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/providers/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/py.typed +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/pytest_runner.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/runtime_errors.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/sdk.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/validation.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/benchmark_samples.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/benchmark_samples_contract.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/coverage.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/coverage_contract.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/nsight_compute.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/nsight_compute_contract.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/parquet_schemas.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/protocol.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/pstats_contract.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/pyperf.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/pyperf_contract.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/pyperf_target.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/src/flameox/workers/v8_profiles_contract.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/adapters/test_torch_benchmark_live.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/execution/test_diagnostics.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/providers/test_xctrace.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/support/__init__.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/support/processes.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tests/test_release_metadata.py +0 -0
- {flameox-0.2.8 → flameox-0.2.9}/tools/__init__.py +0 -0
|
@@ -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
|
-
-
|
|
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
|
|
@@ -37,7 +37,7 @@ When changing the product:
|
|
|
37
37
|
- use DuckDB only as an ephemeral query engine; Flameox never creates or imports
|
|
38
38
|
SQLite, though upstream packages may read their own native formats internally;
|
|
39
39
|
- keep CLI and MCP as thin transports over the same `AnalysisRuntime` and
|
|
40
|
-
|
|
40
|
+
operation registry;
|
|
41
41
|
- let agents pass validated argv, cwd, environment, provider arguments, and
|
|
42
42
|
request-lowerable limits directly to capture;
|
|
43
43
|
- expose coverage, limitations, compatibility, and containment truthfully;
|
|
@@ -51,9 +51,9 @@ a semantic oracle.
|
|
|
51
51
|
## Project Structure & Module Organization
|
|
52
52
|
|
|
53
53
|
flameox is a Python 3.12+ package using a `src/` layout. `runtime.py` owns the
|
|
54
|
-
process-lifespan
|
|
54
|
+
process-lifespan operation runtime; `runtime_contracts.py` owns strict public
|
|
55
55
|
contracts; `repository.py` owns optional immutable preservation; `execution.py`
|
|
56
|
-
owns bounded subprocess work;
|
|
56
|
+
owns bounded subprocess work; operation integrations live in `providers/`;
|
|
57
57
|
reusable format parsers live in `adapters/`; isolated protocols live in
|
|
58
58
|
`workers/`; and `cli.py` plus `mcp/` are thin transports. Tests mirror these
|
|
59
59
|
semantic owners under `tests/`.
|
|
@@ -73,7 +73,7 @@ Read the relevant contract before changing product behavior:
|
|
|
73
73
|
|
|
74
74
|
## Tool Changes
|
|
75
75
|
|
|
76
|
-
- Expose named, task-shaped MCP tools from the
|
|
76
|
+
- Expose named, task-shaped MCP tools from the operation registry. Do not add
|
|
77
77
|
search/execute gateways or compatibility aliases for removed tools.
|
|
78
78
|
- Keep public fields, bounds, and descriptions in canonical runtime models;
|
|
79
79
|
project transport schemas from them rather than maintaining parallel models.
|
|
@@ -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).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: flameox
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: Runtime evidence that helps agents trace, profile, and burn down hotspots in application and native code, GPU kernels, and inference stacks.
|
|
5
5
|
Project-URL: Homepage, https://github.com/morluto/flameox
|
|
6
6
|
Project-URL: Repository, https://github.com/morluto/flameox
|
|
@@ -28,7 +28,7 @@ Requires-Dist: rfc8785==0.1.4
|
|
|
28
28
|
Requires-Dist: tomlkit<1,>=0.13
|
|
29
29
|
Requires-Dist: typer<1,>=0.16
|
|
30
30
|
Provides-Extra: all
|
|
31
|
-
Requires-Dist: aiperf<0.
|
|
31
|
+
Requires-Dist: aiperf<0.14,>=0.13; extra == 'all'
|
|
32
32
|
Requires-Dist: memray>=1.17; extra == 'all'
|
|
33
33
|
Requires-Dist: opentelemetry-proto<1.45,>=1.44; extra == 'all'
|
|
34
34
|
Requires-Dist: perfetto<0.58,>=0.57; extra == 'all'
|
|
@@ -50,7 +50,7 @@ Requires-Dist: ruff>=0.11; extra == 'dev'
|
|
|
50
50
|
Requires-Dist: types-jsonschema<5,>=4.20; extra == 'dev'
|
|
51
51
|
Requires-Dist: vulture>=2.14; extra == 'dev'
|
|
52
52
|
Provides-Extra: inference
|
|
53
|
-
Requires-Dist: aiperf<0.
|
|
53
|
+
Requires-Dist: aiperf<0.14,>=0.13; extra == 'inference'
|
|
54
54
|
Provides-Extra: memory
|
|
55
55
|
Requires-Dist: memray>=1.17; extra == 'memory'
|
|
56
56
|
Provides-Extra: test
|
|
@@ -99,10 +99,22 @@ clients explicitly, for example `--client codex --yes` or `--all --yes`; `--dry-
|
|
|
99
99
|
paths and actions without writing. Setup preserves unrelated client configuration and does not
|
|
100
100
|
change project files. See [the npm package guide](npm/README.md) for details.
|
|
101
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
|
+
|
|
102
114
|
For direct CLI use, pass exact artifact paths or an explicit command:
|
|
103
115
|
|
|
104
116
|
```console
|
|
105
|
-
uvx flameox analyze
|
|
117
|
+
uvx flameox analyze preview_artifact /absolute/path/to/artifact.json
|
|
106
118
|
uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
|
|
107
119
|
```
|
|
108
120
|
|
|
@@ -138,12 +150,16 @@ semantic oracle.
|
|
|
138
150
|
## MCP
|
|
139
151
|
|
|
140
152
|
The MCP server has no workspace binding. It exposes named analysis and capture tools through the
|
|
141
|
-
same
|
|
142
|
-
a typed target and provider. Tool schemas expose
|
|
143
|
-
catalog with `flameox mcp inspect`; use `--
|
|
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
|
|
144
156
|
focused schemas and examples. The complete contract and current tool catalog are in
|
|
145
157
|
[the interface guide](docs/interfaces.md).
|
|
146
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
|
+
|
|
147
163
|
Capture takes argv, not a shell string. A direct target supplies an absolute working directory and
|
|
148
164
|
bounded environment overrides. Results may include `next_page`; replay its named analysis tool
|
|
149
165
|
and arguments unchanged. Capture continuations read collected artifacts and do not rerun the
|
|
@@ -34,10 +34,22 @@ clients explicitly, for example `--client codex --yes` or `--all --yes`; `--dry-
|
|
|
34
34
|
paths and actions without writing. Setup preserves unrelated client configuration and does not
|
|
35
35
|
change project files. See [the npm package guide](npm/README.md) for details.
|
|
36
36
|
|
|
37
|
+
Update existing MCP registrations with:
|
|
38
|
+
|
|
39
|
+
```console
|
|
40
|
+
npx flameox@latest update
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`update --check` reports available updates without changing configuration. Updates preserve each
|
|
44
|
+
client's provider extras and settings, verify the new environment before changing release pins,
|
|
45
|
+
and report which clients need a restart or reconnect. Use `--client codex` to select one client,
|
|
46
|
+
or `--version 0.2.8` to select a specific release, including for rollback. The Python CLI exposes
|
|
47
|
+
the same `flameox update` command.
|
|
48
|
+
|
|
37
49
|
For direct CLI use, pass exact artifact paths or an explicit command:
|
|
38
50
|
|
|
39
51
|
```console
|
|
40
|
-
uvx flameox analyze
|
|
52
|
+
uvx flameox analyze preview_artifact /absolute/path/to/artifact.json
|
|
41
53
|
uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
|
|
42
54
|
```
|
|
43
55
|
|
|
@@ -73,12 +85,16 @@ semantic oracle.
|
|
|
73
85
|
## MCP
|
|
74
86
|
|
|
75
87
|
The MCP server has no workspace binding. It exposes named analysis and capture tools through the
|
|
76
|
-
same
|
|
77
|
-
a typed target and provider. Tool schemas expose
|
|
78
|
-
catalog with `flameox mcp inspect`; use `--
|
|
88
|
+
same operation registry as the CLI. Analysis tools accept explicit sources; capture tools accept
|
|
89
|
+
a typed target and provider. Tool schemas expose operation-specific fields directly. Inspect the
|
|
90
|
+
catalog with `flameox mcp inspect`; use `--tool TOOL_NAME` for
|
|
79
91
|
focused schemas and examples. The complete contract and current tool catalog are in
|
|
80
92
|
[the interface guide](docs/interfaces.md).
|
|
81
93
|
|
|
94
|
+
Tools return their full bounded results inline, including failures and recovery actions. Preserved
|
|
95
|
+
evidence has a durable `evidence_id`; `inspect_evidence` returns its redacted metadata and replay
|
|
96
|
+
sources inline.
|
|
97
|
+
|
|
82
98
|
Capture takes argv, not a shell string. A direct target supplies an absolute working directory and
|
|
83
99
|
bounded environment overrides. Results may include `next_page`; replay its named analysis tool
|
|
84
100
|
and arguments unchanged. Capture continuations read collected artifacts and do not rerun the
|
|
@@ -17,7 +17,7 @@ npx flameox@latest setup
|
|
|
17
17
|
直接使用 CLI 时,传入工件的绝对路径或明确命令:
|
|
18
18
|
|
|
19
19
|
```console
|
|
20
|
-
uvx flameox analyze
|
|
20
|
+
uvx flameox analyze preview_artifact /absolute/path/to/artifact.json
|
|
21
21
|
uvx flameox capture --provider direct --cwd "$PWD" -- python benchmark.py
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -34,7 +34,9 @@ Flameox 区分观测、推导和推断。性能剖析可用于探索,但不能
|
|
|
34
34
|
|
|
35
35
|
## MCP
|
|
36
36
|
|
|
37
|
-
MCP 服务不绑定工作区。它与 CLI
|
|
37
|
+
MCP 服务不绑定工作区。它与 CLI 共用操作注册表,提供具名分析和采集工具。分析工具接收明确来源;采集工具接收类型化目标和采集器。操作专属字段直接显示在工具 schema 中。运行 `flameox mcp inspect` 查看目录;添加 `--tool TOOL_NAME` 查看对应 schema 和示例。完整工具目录及契约见[接口文档](docs/interfaces.md)。
|
|
38
|
+
|
|
39
|
+
工具直接内联返回完整的有界结果,包括失败信息和恢复操作。保留后的证据具有持久的 `evidence_id`;调用 `inspect_evidence` 可内联获取脱敏元数据和重新分析所需的来源。
|
|
38
40
|
|
|
39
41
|
采集接受 argv,不接受 shell 字符串。直接目标需提供绝对工作目录和有界环境覆盖。结果可能包含 `next_page`;请原样调用其中指定的分析工具和参数。采集后续页读取已生成的工件,不会再次执行目标。MCP 工作属于当前请求,因此取消会作用于该请求,服务重启后也不会留下脱离请求的后台任务。
|
|
40
42
|
|
|
@@ -6,9 +6,9 @@ publish evidence, install providers, or own job lifecycle.
|
|
|
6
6
|
|
|
7
7
|
## Registry contract
|
|
8
8
|
|
|
9
|
-
Each
|
|
9
|
+
Each operation registry entry owns:
|
|
10
10
|
|
|
11
|
-
- the
|
|
11
|
+
- the operation descriptor and canonical task name;
|
|
12
12
|
- accepted source modes and formats;
|
|
13
13
|
- a strict validation-equivalent argument model;
|
|
14
14
|
- compatibility rules derived from declared artifact formats;
|
|
@@ -22,7 +22,7 @@ drift.
|
|
|
22
22
|
|
|
23
23
|
Adding or removing a format is complete only when these surfaces agree:
|
|
24
24
|
|
|
25
|
-
1. the
|
|
25
|
+
1. the operation's accepted formats;
|
|
26
26
|
2. the capture-provider contract and invocation builder, when capture is supported;
|
|
27
27
|
3. explicit-path suffix detection;
|
|
28
28
|
4. analysis dispatch into the provider or isolated worker;
|
|
@@ -30,13 +30,16 @@ Adding or removing a format is complete only when these surfaces agree:
|
|
|
30
30
|
6. the support table below.
|
|
31
31
|
|
|
32
32
|
Tests exercise explicit-path analysis and, when applicable, capture through the public runtime.
|
|
33
|
-
A parser or worker that is not reachable through a declared
|
|
33
|
+
A parser or worker that is not reachable through a declared operation is either intentionally
|
|
34
34
|
internal and documented as such, or an incomplete registration—not latent support.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
Operation tools remain discoverable when a provider is absent. Before dispatch, capture validates
|
|
37
|
+
typed arguments, declared format compatibility, and the selected executable or package binding.
|
|
38
|
+
Provider-specific version and resource checks run where implemented; there is no universal
|
|
39
|
+
permission or hardware preflight. Permissions, hardware availability, and target compatibility can
|
|
40
|
+
still fail when the upstream collector starts. Started attempts retain execution provenance.
|
|
41
|
+
An unavailable provider returns a typed result with either an exact `prepare_providers` retry
|
|
42
|
+
action or external host guidance.
|
|
40
43
|
|
|
41
44
|
## Evidence and capture support
|
|
42
45
|
|
|
@@ -68,6 +71,11 @@ An em dash means callers provide an explicit artifact path; it does not mean
|
|
|
68
71
|
the format is unsupported. The offline inference readers omit prompts,
|
|
69
72
|
generations, error text, endpoints, tools, payloads, and prefix-hash values.
|
|
70
73
|
|
|
74
|
+
CPU hotspot metric selection applies only to pstats. Node, py-spy, and perf
|
|
75
|
+
captures reject an explicit metric before running the workload; omit it to use
|
|
76
|
+
the native fixed weight. Saved artifacts can be reanalyzed with corrected
|
|
77
|
+
arguments without rerunning capture.
|
|
78
|
+
|
|
71
79
|
V8 CPU and heap hotspot rows include their extracted function, file, frame identity,
|
|
72
80
|
symbolization state, and native zero-based line/column coordinates. Omitted coordinates
|
|
73
81
|
use `-1` for unavailable; explicitly exported zero remains a valid first line or column.
|
|
@@ -75,19 +83,22 @@ Source maps are not resolved. CPU counts use exported sample node IDs rather tha
|
|
|
75
83
|
`hitCount` metadata. Inclusive CPU counts sum call-tree occurrences and can repeat recursive
|
|
76
84
|
frames. Heap `sample_count` counts native allocation sample records per
|
|
77
85
|
frame, including records from multiple call-tree nodes with the same identity. `self_value`
|
|
78
|
-
and `inclusive_value` retain V8's allocation estimates, independently of sample counts.
|
|
86
|
+
and `inclusive_value` retain V8's allocation estimates, independently of sample counts. V8 and
|
|
87
|
+
SARIF extraction use literal object keys and distinct array locations; dotted keys cannot
|
|
88
|
+
impersonate native nodes, samples, or results. Malformed V8 child containers and duplicate
|
|
89
|
+
object fields fail decoding.
|
|
79
90
|
Native heap samples can reference nodes absent from the exported call tree. Those samples
|
|
80
91
|
remain in the total counts and estimated bytes, with separate `unresolved_sample_count` and
|
|
81
92
|
`unresolved_sampled_bytes` metrics, incomplete coverage, and an explicit attribution limitation.
|
|
82
93
|
|
|
83
|
-
`
|
|
94
|
+
`inspect_triton_autotune` reads native `*.autotune.json` caches (`triton-cache`) emitted
|
|
84
95
|
by Triton's `cache_results=True`, as well as the existing listener-event format.
|
|
85
96
|
Native timing values retain producer order, including positive-infinity sentinels;
|
|
86
97
|
they are not averaged as repeated samples. The best configuration is derived
|
|
87
98
|
using Triton's lexicographic comparison. Native caches do not prove cache hits,
|
|
88
99
|
device identity, semantic correctness, or representative performance improvement.
|
|
89
100
|
|
|
90
|
-
The `
|
|
101
|
+
The `inspect_triton_autotune` capture request uses Triton 3.7 in the declared workload interpreter.
|
|
91
102
|
It sets `TRITON_CACHE_AUTOTUNING=1` and a fresh request-owned `TRITON_CACHE_DIR`,
|
|
92
103
|
preserving the native cache bundle, including compilation artifacts. This is a
|
|
93
104
|
cold-cache tuning experiment, not a warm-cache benchmark. Kernels must already
|
|
@@ -95,8 +106,11 @@ use Triton's autotuner; Flameox does not invent configurations or patch kernels.
|
|
|
95
106
|
An emitted cache without autotune records produces an explicit analysis failure.
|
|
96
107
|
Pytest capture runs an explicit `python -m pytest` target with a request-bound,
|
|
97
108
|
bounded event plugin.
|
|
109
|
+
Capture checks that pytest 8.3 or newer is available in that exact workload
|
|
110
|
+
interpreter before invoking the collector; installing pytest in the server
|
|
111
|
+
interpreter alone does not satisfy this requirement.
|
|
98
112
|
|
|
99
|
-
`
|
|
113
|
+
`summarize_failures` scans the complete bounded pytest event artifact for aggregate outcomes, but its
|
|
100
114
|
table projects only failed, errored, interrupted, and unexecuted identities. Failed collection
|
|
101
115
|
reports retain their collector identity; successful collection events, passing tests, and skipped
|
|
102
116
|
tests cannot consume the diagnostic row budget.
|
|
@@ -125,8 +139,8 @@ describe that same projected population. A bounded prefix of unrelated native ro
|
|
|
125
139
|
that the requested activity is absent. OTLP time windows apply their span predicate before resource
|
|
126
140
|
and scope rows consume the normalization budget; only owning context for retained spans is emitted.
|
|
127
141
|
|
|
128
|
-
Nsight Systems CUDA runtime, driver, and synchronization tables feed `
|
|
129
|
-
`
|
|
142
|
+
Nsight Systems CUDA runtime, driver, and synchronization tables feed `summarize_trace_operations`.
|
|
143
|
+
`inspect_gpu_launches` selects device kernel and memory activity; CUDA API calls and profiler overhead
|
|
130
144
|
cannot establish that a GPU launch occurred. The native `CUPTI_ACTIVITY_KIND_*` table family
|
|
131
145
|
contains both host and device evidence and must not be selected as one accelerator population.
|
|
132
146
|
|
|
@@ -134,6 +148,9 @@ Projection identity includes every non-axis dimension that can distinguish a ser
|
|
|
134
148
|
device, dtype, variant, scope, and worker identity where applicable. Providers must not blend those
|
|
135
149
|
series. When a composite native label is successfully decomposed into named dimensions, the raw
|
|
136
150
|
label must not remain as a redundant identity that changes with the selected axis.
|
|
151
|
+
NVBench retains its raw state label if any meaningful component cannot be decoded,
|
|
152
|
+
repeats a key, or conflicts with native dimensions. Such labels remain distinct
|
|
153
|
+
even when their decoded numeric dimensions match.
|
|
137
154
|
|
|
138
155
|
Numeric aggregation requires compatible semantic units. Providers normalize convertible units to
|
|
139
156
|
one declared output unit before pooling and reject incompatible dimensions; for example, seconds
|
|
@@ -212,3 +229,22 @@ Pyperf command capture preserves multiline typed argv through a metadata-safe la
|
|
|
212
229
|
pyperf rejects newline characters in its display metadata. The launcher executes the original argv
|
|
213
230
|
without shell parsing, but its startup is included in each command measurement; exact Flameox
|
|
214
231
|
capture provenance remains authoritative for the requested argv.
|
|
232
|
+
|
|
233
|
+
Memray frame extraction applies record, frame, and aggregate bounds to the requested high-watermark
|
|
234
|
+
or retained-end population. Allocation history contributes scalar byte/operation totals without
|
|
235
|
+
producing unrelated frame rows; temporary-allocation projections are not computed. Summary totals
|
|
236
|
+
remain independent of which supported frame population was requested.
|
|
237
|
+
|
|
238
|
+
OTLP encoding comes from native content rather than the artifact filename, including after
|
|
239
|
+
preservation relocates JSON into an extensionless payload. Ambiguous protobuf prefixes are
|
|
240
|
+
validated as protobuf when JSON decoding fails. SARIF's implicit source root is resolved into
|
|
241
|
+
effective analysis arguments, so preserved replay and continuation retain the same path scope.
|
|
242
|
+
Nsight Systems rows preserve colliding native `table` columns under `value`; the outer `table`
|
|
243
|
+
continues to identify the actual source table.
|
|
244
|
+
|
|
245
|
+
OTLP nonfinite double attributes remain distinguishable from strings as tagged
|
|
246
|
+
`{"type":"double","value":"NaN"}` (with `"Infinity"` or `"-Infinity"` for infinite values). Nested
|
|
247
|
+
attributes use the same projection; native integer attributes retain exact values.
|
|
248
|
+
|
|
249
|
+
SARIF candidate coordinates index the native result within each run. Compute Sanitizer marks
|
|
250
|
+
coverage incomplete when host-stack frames are omitted, separately from omitted record counts.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Architecture
|
|
2
2
|
|
|
3
|
-
Flameox is a process-lifespan
|
|
3
|
+
Flameox is a process-lifespan operation runtime with an optional immutable
|
|
4
4
|
evidence repository. It is not a workspace application and has no mutable
|
|
5
5
|
control plane.
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ control plane.
|
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| Artifact location | Exact paths supplied by each analysis request |
|
|
12
12
|
| Target location | Exact absolute `cwd` supplied by each capture request |
|
|
13
|
-
| Available operations | Process-lifespan
|
|
13
|
+
| Available operations | Process-lifespan operation registry |
|
|
14
14
|
| In-progress work | Current MCP request and cancellation scope |
|
|
15
15
|
| Unpreserved output | Bounded session scratch |
|
|
16
16
|
| Completed preserved evidence | Immutable manifest in the user Flameox data directory |
|
|
@@ -30,7 +30,7 @@ Console retention and workload budgets are defined in
|
|
|
30
30
|
[storage and evidence](storage-and-evidence.md) and
|
|
31
31
|
[runtime safety](runtime-safety.md); those documents own their limits and failure semantics.
|
|
32
32
|
|
|
33
|
-
`AnalysisRuntime` owns the
|
|
33
|
+
`AnalysisRuntime` owns the operation registry, subprocess broker, bounded scratch artifacts
|
|
34
34
|
(conversions and materialized evidence), and least-recently-used session analysis cache.
|
|
35
35
|
The MCP lifespan creates one runtime, exposes it through the SDK request context, and destroys its
|
|
36
36
|
scratch on shutdown. Evicting
|
|
@@ -52,37 +52,43 @@ durable SHA-256 identity derived from the canonical manifest body.
|
|
|
52
52
|
|
|
53
53
|
## Package boundaries
|
|
54
54
|
|
|
55
|
-
- `runtime_contracts.py` owns public models and the
|
|
55
|
+
- `runtime_contracts.py` owns public models and the operation/capture-provider registries.
|
|
56
56
|
- `runtime.py` owns bounded analysis, capture orchestration, scratch, and the session cache.
|
|
57
57
|
- `providers/capture.py` owns provider-specific command construction and expected native outputs;
|
|
58
58
|
`providers/availability.py` owns installation and workload requirements.
|
|
59
59
|
- `repository.py` owns lazy repository creation, validation, publication,
|
|
60
|
-
source selection and layout, inventory queries, and immutable
|
|
60
|
+
source selection and layout, inventory queries, and immutable evidence inspection.
|
|
61
61
|
- `evidence_models.py` owns typed persisted document shapes and membership invariants;
|
|
62
62
|
`source_files.py` owns shared native-source identities, hashing, and bounded copying.
|
|
63
63
|
- `adapters/json_preview.py` owns the streaming JSON preview projection.
|
|
64
|
+
- `adapters/json_events.py` distinguishes literal object keys from array locations for native
|
|
65
|
+
streaming parsers.
|
|
64
66
|
- `execution.py` and `command_binding.py` own executable binding, subprocess
|
|
65
67
|
limits, cancellation, output bounds, and descendant cleanup.
|
|
66
68
|
- `mcp/server.py` and `cli.py` are thin projections over the same runtime.
|
|
67
69
|
- Provider adapters accept resolved explicit inputs and return typed evidence;
|
|
68
70
|
they do not discover source trees or publish evidence.
|
|
71
|
+
- `providers/benchmark_comparison.py` owns pooled-mean comparison of aggregated
|
|
72
|
+
benchmark series. Native readers retain ownership of their identity fields,
|
|
73
|
+
sample decoding, and aggregation; the shared comparison does not add or
|
|
74
|
+
discard identity fields.
|
|
69
75
|
|
|
70
76
|
DuckDB may be used in memory for bounded aggregation. It is never a durable
|
|
71
77
|
catalog. Flameox production code must not create or depend on SQLite state.
|
|
72
78
|
|
|
73
|
-
##
|
|
79
|
+
## Operation boundary
|
|
74
80
|
|
|
75
|
-
One registry entry owns
|
|
81
|
+
One registry entry owns an operation descriptor, strict argument model, accepted formats,
|
|
76
82
|
capture/analysis semantics, and model-visible selection guidance. MCP projects a named analysis
|
|
77
|
-
tool for each
|
|
78
|
-
schemas flatten
|
|
83
|
+
tool for each operation and a named capture tool for each capturable operation. Their typed
|
|
84
|
+
schemas flatten operation fields into top-level arguments; capture tools nest only the typed
|
|
79
85
|
provider choice and its provider-specific fields under `provider`. This makes the question being
|
|
80
|
-
asked explicit in the tool name while keeping runtime
|
|
81
|
-
`flameox mcp inspect` lists these names, and `--
|
|
86
|
+
asked explicit in the tool name while keeping one task name throughout runtime, CLI, MCP, and evidence.
|
|
87
|
+
`flameox mcp inspect` lists these names, and `--tool TOOL_NAME` shows the corresponding
|
|
82
88
|
direct schemas and examples.
|
|
83
89
|
|
|
84
90
|
Capture-provider contracts supply typed fields for each compatible capture tool; the tool schema
|
|
85
|
-
advertises them and CLI
|
|
91
|
+
advertises them and CLI operation inspection can show examples. Admission checks them before
|
|
86
92
|
execution. Missing packages, executables, permissions, versions, or platforms do not
|
|
87
93
|
change the catalog; the attempted tool returns typed remediation. The CLI setup command or MCP
|
|
88
94
|
`prepare_providers` tool resolves dependencies according to where they execute. CLI setup prepares
|
|
@@ -94,7 +100,7 @@ operation or provider inventory. Host profilers, drivers, and permissions remain
|
|
|
94
100
|
transports do not infer readiness from installation receipts.
|
|
95
101
|
|
|
96
102
|
Request validation is also a normalization boundary. Runtime admission constructs the typed
|
|
97
|
-
|
|
103
|
+
operation and provider models once; execution, provenance, limitations, and result descriptions
|
|
98
104
|
must consume those validated models. They must not reinterpret truthiness or coercible values from
|
|
99
105
|
the caller's original mapping after admission.
|
|
100
106
|
|