Skip to content

feat(clickhouse): add fleet compliance and audit analytics#1272

Merged
msaad00 merged 2 commits intomainfrom
feat/clickhouse-final-closeout
Apr 6, 2026
Merged

feat(clickhouse): add fleet compliance and audit analytics#1272
msaad00 merged 2 commits intomainfrom
feat/clickhouse-final-closeout

Conversation

@msaad00
Copy link
Copy Markdown
Owner

@msaad00 msaad00 commented Apr 6, 2026

Summary

  • add fleet snapshot, compliance-control, and audit-event analytics rows to the ClickHouse backend
  • keep CLI and API scan pipelines aligned through one shared analytics payload builder
  • expose richer fleet analytics workflows in the CLI, MCP analysis tool, and ClickHouse query layer

Why

The current ClickHouse backend is real, but the CLI scan path was ahead of the API path and the fleet/compliance/audit analytics story was still thinner than the issue text implies. This closes that truth gap so we can evaluate #1028 against the implementation honestly.

Validation

  • UV_CACHE_DIR=/tmp/agent-bom-uv-cache-2 uv run pytest -q tests/test_clickhouse.py tests/test_api_pipeline_image_contract.py tests/test_cli_analysis.py
  • UV_CACHE_DIR=/tmp/agent-bom-uv-cache-2-mypy uv run mypy src/agent_bom/analytics_contract.py src/agent_bom/api/clickhouse_store.py src/agent_bom/api/audit_log.py src/agent_bom/api/pipeline.py src/agent_bom/cli/_analysis.py src/agent_bom/cli/agents/_post.py src/agent_bom/mcp_tools/analysis.py src/agent_bom/mcp_server.py
  • python3 -m compileall src/agent_bom/analytics_contract.py src/agent_bom/api/clickhouse_store.py src/agent_bom/api/audit_log.py src/agent_bom/api/pipeline.py src/agent_bom/cli/_analysis.py src/agent_bom/cli/agents/_post.py src/agent_bom/mcp_tools/analysis.py src/agent_bom/mcp_server.py
  • UV_CACHE_DIR=/tmp/agent-bom-uv-cache-2-mypy uv run ruff check src/agent_bom/analytics_contract.py src/agent_bom/api/clickhouse_store.py src/agent_bom/api/audit_log.py src/agent_bom/api/pipeline.py src/agent_bom/cli/_analysis.py src/agent_bom/cli/agents/_post.py src/agent_bom/cloud/clickhouse.py src/agent_bom/mcp_tools/analysis.py src/agent_bom/mcp_server.py tests/test_api_pipeline_image_contract.py tests/test_cli_analysis.py tests/test_clickhouse.py
  • UV_CACHE_DIR=/tmp/agent-bom-uv-cache-2-mypy uv run ruff format --check src/agent_bom/analytics_contract.py src/agent_bom/api/clickhouse_store.py src/agent_bom/api/audit_log.py src/agent_bom/api/pipeline.py src/agent_bom/cli/_analysis.py src/agent_bom/cli/agents/_post.py src/agent_bom/cloud/clickhouse.py src/agent_bom/mcp_tools/analysis.py src/agent_bom/mcp_server.py tests/test_api_pipeline_image_contract.py tests/test_cli_analysis.py tests/test_clickhouse.py

@msaad00 msaad00 requested a review from andres-linero as a code owner April 6, 2026 21:38
@msaad00 msaad00 enabled auto-merge (squash) April 6, 2026 22:24
@msaad00 msaad00 merged commit 54ad4d0 into main Apr 6, 2026
20 checks passed
@msaad00 msaad00 deleted the feat/clickhouse-final-closeout branch April 6, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants