agentmetry 0.10.4__tar.gz → 0.10.6__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.
- {agentmetry-0.10.4 → agentmetry-0.10.6}/PKG-INFO +2 -2
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/routes/audit.py +14 -6
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/cli/__init__.py +21 -2
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/forwarder.py +13 -2
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/redaction.py +30 -5
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/trail_chain.py +113 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/auth.py +7 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/doctor.py +145 -13
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/version.py +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/404.html +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/__next.__PAGE__.txt +3 -3
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/__next._full.txt +3 -3
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/__next._tree.txt +1 -1
- agentmetry-0.10.6/agentmetry/dashboard_static/_next/static/chunks/16sszuo8m5-lu.js +4 -0
- agentmetry-0.10.4/agentmetry/dashboard_static/_next/static/chunks/2gvu8dyrhibpa.js → agentmetry-0.10.6/agentmetry/dashboard_static/_next/static/chunks/216iyidhmrh3u.js +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_not-found/__next._full.txt +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_not-found/__next._not-found.__PAGE__.txt +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_not-found/__next._tree.txt +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_not-found.html +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_not-found.txt +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/index.html +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/index.txt +3 -3
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/demo.py +4 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/hooks/ingest.py +112 -8
- {agentmetry-0.10.4 → agentmetry-0.10.6}/pyproject.toml +1 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_agentmetry_ingest_client.py +62 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_auth_default.py +10 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_demo.py +9 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_doctor.py +55 -0
- agentmetry-0.10.6/tests/test_doctor_first_run.py +200 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_forwarder.py +34 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_funding_manifest.py +2 -1
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_ingest_roundtrip.py +80 -0
- agentmetry-0.10.6/tests/test_redaction.py +133 -0
- agentmetry-0.10.4/agentmetry/dashboard_static/_next/static/chunks/2-sq6__g8tt5-.js +0 -4
- agentmetry-0.10.4/tests/test_redaction.py +0 -66
- {agentmetry-0.10.4 → agentmetry-0.10.6}/.dockerignore +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/.env.agentmetry-demo +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/.env.example +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/.gitignore +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/Dockerfile +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/README.md +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/main.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/routes/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/routes/auth.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/trusted_host.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/websocket.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/api/ws_bridge.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/cli/__main__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/api_token.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/agt.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/chronicle.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/cloudevents.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/ecs.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/sentinel.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/adapters/splunk.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/alerts.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/antigravity_trajectory.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/atlas.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/canonical.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/cloud_bridge.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/compliance_digest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/cursor_cloud_cache.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/benchmark.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_approval_denied_then_executed.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_arbitrary_host_stage_execute.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_autonomous_unapproved_write.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_credential_exfil.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_credential_then_cloud_api.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_destructive_delete_burst.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_discovery_then_collect.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_dotfile_then_git_push.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_encoded_command_download.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_env_credential_exfil.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_hashed_only_no_command.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_interpreter_egress.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_pr_merged_without_review.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_proc_substitution_cradle.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_remote_pipe_to_shell.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_remote_staging_then_execute.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_secret_manager_then_egress.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_session_tool_burst.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_single_command_exfil.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_single_quoted_interpreter_egress.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_ssh_directory_exfil.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_subagent_swarm.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_timestamp_collision.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/attack_untrusted_input_then_action.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_authoring_merge_fixtures.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_autonomous_after_approval.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_build_artifact_cleanup.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_ci_artifact_download.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_commit_message_names_cloud_clis.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_container_registry_publish.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_database_migration.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_dependency_audit_network_burst.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_dependency_install_and_build.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_download_release_archive.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_env_example_read.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_fetch_data_then_run_repo_script.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_fetch_dataset_then_analyse.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_fetch_lockfile_then_install.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_fetch_piped_into_own_script.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_git_review_and_push.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_github_raw_docs_then_script.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_human_driven_deletes.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_local_api_probing.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_long_but_calm_session.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_loopback_is_not_egress.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_loopback_pipe_to_interpreter.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_mcp_text_mentions_credential_path.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_ordinary_development.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_package_manager_after_fetch.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_reading_config_that_is_not_secret.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_remote_api_call_no_credentials.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_research_then_docs.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_reversed_order_is_not_exfil.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_secret_names_and_docs.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_terraform_apply_with_profile.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_test_and_fix_loop.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/benign_writing_about_credentials.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/corpus/corpus.yaml +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/disposition.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/engine.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/live.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/live_store.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/models.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/rules.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/traits.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/yaml_config.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/detection/yaml_rules.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/dlp/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/dlp/loader.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/dlp/models.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/dlp/scanner.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/dogfood.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/evidence_pack.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/external.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/grok_bot_transcript.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/hashing.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/heartbeat.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/hook_bootstrap.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/identity.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/ingest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/ingest_quota.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/managed_hooks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/mcp_inventory_event.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/migrate.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/mitre.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/otel_ingest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/policy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/policy_settings.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/posture_event.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/replay.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/run_context.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/session_tree.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/signing.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/sinks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/spool.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/tool_policy/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/tool_policy/capability.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/tool_policy/evaluator.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/tool_policy/loader.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/tool_policy/models.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/trail_anchor.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/trail_db.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/trail_merkle.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/audit/trail_rotation.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/bus/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/bus/audit_exporter.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/bus/bridges.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/bus/bus.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/bus/events.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/bus/outbox.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/config.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/dashboard_session.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/autostart.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/driver_paths.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/env_file.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/hook_coverage.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/machine_view.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/mcp_inventory.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/mcp_schema.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/diagnostics/posture.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/drivers/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/drivers/host.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/drivers/permissions.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/drivers/spec.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/extensions.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/health.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/managed_policy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/operator_identity.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/paths.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/scanner/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/scanner/injection.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/scanner/instruction_files.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/scanner/known_packages.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/scanner/scan.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/core/scanner/typosquat.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/.gitkeep +0 -0
- {agentmetry-0.10.4/agentmetry/dashboard_static/_next/static/l1c5aqzUQhPxL4zFWEdSO → agentmetry-0.10.6/agentmetry/dashboard_static/_next/static/J0aKlqH-KWdyNe48Kd-3V}/_buildManifest.js +0 -0
- {agentmetry-0.10.4/agentmetry/dashboard_static/_next/static/l1c5aqzUQhPxL4zFWEdSO → agentmetry-0.10.6/agentmetry/dashboard_static/_next/static/J0aKlqH-KWdyNe48Kd-3V}/_clientMiddlewareManifest.js +0 -0
- {agentmetry-0.10.4/agentmetry/dashboard_static/_next/static/l1c5aqzUQhPxL4zFWEdSO → agentmetry-0.10.6/agentmetry/dashboard_static/_next/static/J0aKlqH-KWdyNe48Kd-3V}/_ssgManifest.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/0cz1d0mv5g_q7.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/0umf92h1sb77c.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/1ix59xuhq-q14.css +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/1q292q_rc4_p6.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/31qp8jfkw0x2h.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/3ia-1961js2lo.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/3in77zrqn0wml.css +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/chunks/turbopack-3-ry682tkyiqk.js +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-mono-latin-400-normal.2lhng2ntocry9.woff +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-mono-latin-400-normal.3xdfs0-p_zi4c.woff2 +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-mono-latin-500-normal.11q3guvgd1r20.woff2 +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-mono-latin-500-normal.1fgk-kmy-32_a.woff +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-sans-latin-400-normal.19i24--p24z3r.woff +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-sans-latin-400-normal.1xf5nwxyfigak.woff2 +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-sans-latin-500-normal.14sc3d7sk_zzh.woff +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-sans-latin-500-normal.2i4a1iuj6lbvw.woff2 +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-sans-latin-600-normal.2ovda_azncp9b.woff2 +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/_next/static/media/ibm-plex-sans-latin-600-normal.2wn5p1s7u3utm.woff +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/dashboard_static/agentmetry-icon-white.svg +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/hooks/__init__.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/hooks/mcp_proxy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/policies/detection/manifest.yaml +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/policies/dlp/manifest.yaml +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/policies/opa/agent_rules.rego +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/agentmetry/policies/tool/manifest.yaml +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/conftest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/agt_filesink_exfil.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/agt_filesink_mixed.jsonl +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/codex_hooks/README.md +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/codex_hooks/permission-request.command.output.schema.json +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/codex_hooks/pre-tool-use.command.output.schema.json +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/fake_mcp_server.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/otel_claude_code_session.json +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/scanner/benign_skill/SKILL.md +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/scanner/benign_tools.json +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/scanner/poisoned_skill/SKILL.md +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/fixtures/scanner/poisoned_tools.json +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_agentmetry_audit.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_agt_adapter.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_antigravity_trajectory.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_ask_gate_phase_a.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_atlas_detection_enrichment.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_atlas_mapping.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_audit_sinks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_audit_stats.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_audit_tail.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_auth.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_autostart.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_boot_sequence.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_burst_windows.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_chinese_agent_hooks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_chinese_agent_sprint_b.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_chinese_agent_sprint_c.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_chronicle_adapter.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_classification_bounds.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_cli_backup.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_cli_commands.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_cli_env_var_names.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_cloud_bridge.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_cloudevents_adapter.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_codex_windows_command.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_compliance_digest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_container_and_legacy_runtime.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_copilot_hooks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_coverage_observed.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_crewai_adapter.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_cursor_cloud_cache.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_demo_isolation.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_demo_mode_flag.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_adi.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_benchmark.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_default_config.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_disposition.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_disposition_api.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_duplicate_emission.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_emit_durability.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_engine.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_evasion.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_hf_incident.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_quoted_command_words.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_rule_identity.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_detection_rules_v2.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_dlp_agent_env_override.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_dlp_invisible_unicode.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_dlp_markdown_exfil.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_dlp_scanner.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_doctor_json_and_remediation.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_dogfood.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_dogfood_freeze.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_driver_paths.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_ecs_threat.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_event_bus.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_event_signing.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_evidence_pack.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_extensions.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_external_ingest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_fail_closed_partial.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_forwarding_shape.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_grok_bot_transcript.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hash_key.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_heartbeat.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_bootstrap.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_coverage.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_decision_format.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_enforcement_timing.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_import_cost.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_real_process.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_hook_spool.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_identity_enrich.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_identity_provider.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_ingest_rate_limit.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_ingest_token.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_isolation.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_launch_targets.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_live_detection.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_live_detection_store.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_machine_view.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_managed_hooks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_managed_policy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_audit_proxy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_concealed_text.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_inventory.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_inventory_event.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_meta_fingerprint.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_proxy_packaged.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mcp_schema.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_mitre_dlp.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_opensre_adapter.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_operator_attribution.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_otel_ingest.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_paths.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_posture.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_powershell_encoding.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_readme_claims.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_replay.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_scanner.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_sentinel.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_serve_script_binds_loopback.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_session_tree.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_shared_install.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_sigma_pack.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_static_serving.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_subagent_lifecycle.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_suite_leaves_real_home_alone.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_tool_policy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_tool_policy_agent_cli.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_tool_policy_git_hooks.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_trail_anchor.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_trail_chain.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_trail_concurrency.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_trail_merkle.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_transcript_watcher.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_trusted_host.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_unattended_agent_policy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_user_profile_dir.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_version.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tests/test_yaml_detection_rules.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tools/generate_sigma_pack.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tools/mcp_audit_proxy.py +0 -0
- {agentmetry-0.10.4 → agentmetry-0.10.6}/tools/vault_fs_server.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentmetry
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.6
|
|
4
4
|
Summary: Open-source security for AI coding agents: record, detect and block at the tool boundary, with a verifiable audit trail and SIEM forwarding
|
|
5
5
|
Project-URL: Homepage, https://agentmetry.ai
|
|
6
6
|
Project-URL: Source, https://github.com/blitzcrieg1/agentmetry
|
|
@@ -37,7 +37,7 @@ Provides-Extra: dev
|
|
|
37
37
|
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
38
38
|
Requires-Dist: pytest-cov>=6.0; extra == 'dev'
|
|
39
39
|
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
40
|
-
Requires-Dist: ruff==0.17.
|
|
40
|
+
Requires-Dist: ruff==0.17.3; extra == 'dev'
|
|
41
41
|
Description-Content-Type: text/markdown
|
|
42
42
|
|
|
43
43
|
# Agentmetry
|
|
@@ -43,6 +43,12 @@ class IngestToolBody(BaseModel):
|
|
|
43
43
|
# (hashed-only) events are invisible to every command-based sequence rule.
|
|
44
44
|
traits: list[str] = Field(default_factory=list)
|
|
45
45
|
mitre: dict[str, str] | None = None
|
|
46
|
+
# "partial" when the hook classified only the two ends of an oversized
|
|
47
|
+
# command (#348), so an empty trait list is not read as a clean command.
|
|
48
|
+
# And "hmac-sha256" when input_hash is keyed. external.py read both, and
|
|
49
|
+
# both were dropped here, the third time this model has done that.
|
|
50
|
+
classification: str = ""
|
|
51
|
+
input_hash_alg: str = ""
|
|
46
52
|
|
|
47
53
|
|
|
48
54
|
#: Actor kinds a capture surface may assert. Anything else is coerced to
|
|
@@ -93,12 +99,14 @@ class ExternalIngestBody(BaseModel):
|
|
|
93
99
|
what it does not know, silently, so an undeclared field is not an error at
|
|
94
100
|
ingest: it is a feature that works in unit tests and disappears over HTTP.
|
|
95
101
|
|
|
96
|
-
That has now happened
|
|
97
|
-
hashed-only events invisible to every command rule. Then 0.6.0 shipped
|
|
98
|
-
per-tool digests and the initialize handshake, and those were dropped
|
|
99
|
-
so the release headline did not survive the wire.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
That has now happened three times. `traits` and `mitre` were dropped, which
|
|
103
|
+
made hashed-only events invisible to every command rule. Then 0.6.0 shipped
|
|
104
|
+
MCP per-tool digests and the initialize handshake, and those were dropped
|
|
105
|
+
too, so the release headline did not survive the wire. Then 0.10.4's
|
|
106
|
+
`tool.classification` and 0.9.3's HMAC label went the same way, because the
|
|
107
|
+
roundtrip test covered the proxy's builders and not the hook's.
|
|
108
|
+
`test_ingest_roundtrip.py` now builds both and fails if any key does not
|
|
109
|
+
survive this model.
|
|
102
110
|
"""
|
|
103
111
|
|
|
104
112
|
source_app: str = Field(
|
|
@@ -1572,7 +1572,17 @@ def cmd_doctor(args: argparse.Namespace) -> int:
|
|
|
1572
1572
|
sys.path.insert(0, str(_ORCH_ROOT))
|
|
1573
1573
|
from agentmetry.core.diagnostics.doctor import print_report, run_doctor
|
|
1574
1574
|
|
|
1575
|
-
|
|
1575
|
+
# `agentmetry --port N doctor` used to probe the configured ingest URL
|
|
1576
|
+
# (8000 by default) and report on whatever answered there. The port given
|
|
1577
|
+
# on the command line names the recorder to check; with no port given, the
|
|
1578
|
+
# configured URL still decides.
|
|
1579
|
+
port = getattr(args, "port", 8000)
|
|
1580
|
+
recorder_url = _api_base_url(port) if port != 8000 else ""
|
|
1581
|
+
report = run_doctor(
|
|
1582
|
+
fix_drivers=getattr(args, "fix", False),
|
|
1583
|
+
full_trail=getattr(args, "full", False),
|
|
1584
|
+
recorder_url=recorder_url,
|
|
1585
|
+
)
|
|
1576
1586
|
print_report(report, as_json=getattr(args, "json", False))
|
|
1577
1587
|
return report.exit_code
|
|
1578
1588
|
|
|
@@ -1724,7 +1734,10 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1724
1734
|
)
|
|
1725
1735
|
export.add_argument("--from", dest="date_from", metavar="DATE", required=False)
|
|
1726
1736
|
export.add_argument("--to", dest="date_to", metavar="DATE", required=False)
|
|
1727
|
-
export.add_argument(
|
|
1737
|
+
export.add_argument(
|
|
1738
|
+
"-o", "--output", default=None,
|
|
1739
|
+
help="output path (default: exports/ beside the trail; in a checkout with a vault, vault/30-Archive/exports/)",
|
|
1740
|
+
)
|
|
1728
1741
|
import_agt = sub.add_parser(
|
|
1729
1742
|
"import-agt",
|
|
1730
1743
|
help="ingest a Microsoft Agent Governance Toolkit audit file into the trail",
|
|
@@ -1864,6 +1877,12 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1864
1877
|
help="the report as JSON, for a deployment script: exit_code, "
|
|
1865
1878
|
"orchestrator_reachable, hooks, policy and findings",
|
|
1866
1879
|
)
|
|
1880
|
+
doctor.add_argument(
|
|
1881
|
+
"--full",
|
|
1882
|
+
action="store_true",
|
|
1883
|
+
help="walk the whole trail chain and its anchors, however long it takes; by default "
|
|
1884
|
+
"a trail over 32 MB has only its newest 5000 records checked",
|
|
1885
|
+
)
|
|
1867
1886
|
doctor.add_argument(
|
|
1868
1887
|
"--fix",
|
|
1869
1888
|
action="store_true",
|
|
@@ -55,12 +55,23 @@ class ForwardError(Exception):
|
|
|
55
55
|
self.retryable = retryable
|
|
56
56
|
|
|
57
57
|
|
|
58
|
+
#: Answers about the destination, not the batch: a revoked or expired token, a
|
|
59
|
+
#: wrong inbox path. Every event would get the same answer, so isolating one and
|
|
60
|
+
#: dead-lettering it moved the cursor past records the destination never saw,
|
|
61
|
+
#: and delivery did not resume when the credential was fixed. The trail is the
|
|
62
|
+
#: queue; holding the cursor and retrying with backoff loses nothing.
|
|
63
|
+
DESTINATION_STATUSES = frozenset({401, 403, 404, 407})
|
|
64
|
+
|
|
65
|
+
|
|
58
66
|
def raise_for(response: httpx.Response, target: str) -> None:
|
|
59
67
|
status = response.status_code
|
|
60
68
|
if 200 <= status < 300:
|
|
61
69
|
return
|
|
62
|
-
retryable = status in (408, 425, 429) or status >= 500
|
|
63
|
-
|
|
70
|
+
retryable = status in (408, 425, 429) or status >= 500 or status in DESTINATION_STATUSES
|
|
71
|
+
message = f"{target} answered HTTP {status}"
|
|
72
|
+
if status in DESTINATION_STATUSES:
|
|
73
|
+
message += " (check the destination URL and credential; forwarding resumes when it accepts)"
|
|
74
|
+
raise ForwardError(message, retryable=retryable)
|
|
64
75
|
|
|
65
76
|
|
|
66
77
|
class Destination(Protocol):
|
|
@@ -43,8 +43,33 @@ def scrub_secrets(text: str) -> str:
|
|
|
43
43
|
return out
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
#: Argument keys whose value is never stored, at any depth. Mirrors the hook's
|
|
47
|
+
#: REDACT_KEYS (see test). Applied here as well because not every client is
|
|
48
|
+
#: the hook: an SDK adapter posting `{"password": ...}` used to be kept as sent.
|
|
49
|
+
REDACT_KEYS = frozenset({
|
|
50
|
+
"token", "api_key", "apikey", "password", "secret", "authorization",
|
|
51
|
+
"anthropic_api_key", "openai_api_key",
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
#: Mirrors the hook's SCRUB_MAX_DEPTH.
|
|
55
|
+
SCRUB_MAX_DEPTH = 32
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def scrub_arg_values(args: object, _depth: int = 0) -> object:
|
|
59
|
+
"""Mask secrets in stored arguments at every depth, not only the top.
|
|
60
|
+
|
|
61
|
+
Sensitive keys are redacted wherever they sit and every string is scrubbed,
|
|
62
|
+
lists included. Until 0.10.5 only top-level string values were scrubbed, so
|
|
63
|
+
a nested token in full-argument capture was stored as sent. Best effort:
|
|
64
|
+
the patterns catch shapes, not every secret.
|
|
65
|
+
"""
|
|
66
|
+
if _depth > SCRUB_MAX_DEPTH:
|
|
67
|
+
return "<redacted-depth>"
|
|
68
|
+
if isinstance(args, dict):
|
|
69
|
+
return {
|
|
70
|
+
k: "<redacted>" if str(k).lower() in REDACT_KEYS else scrub_arg_values(v, _depth + 1)
|
|
71
|
+
for k, v in args.items()
|
|
72
|
+
}
|
|
73
|
+
if isinstance(args, (list, tuple)):
|
|
74
|
+
return [scrub_arg_values(v, _depth + 1) for v in args]
|
|
75
|
+
return scrub_secrets(args) if isinstance(args, str) else args
|
|
@@ -486,3 +486,116 @@ def verify_trail_file(trail_path: Path) -> TrailVerifyResult:
|
|
|
486
486
|
head_seq=expected_seq,
|
|
487
487
|
head_sha256=prev,
|
|
488
488
|
)
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
def _last_lines(path: Path, count: int, block: int = 1 << 20) -> list[str]:
|
|
492
|
+
"""The last `count` non-empty lines of a file, read from the end.
|
|
493
|
+
|
|
494
|
+
Reading forward would cost as much as verifying, which is the cost this
|
|
495
|
+
exists to avoid.
|
|
496
|
+
"""
|
|
497
|
+
with path.open("rb") as fh:
|
|
498
|
+
fh.seek(0, os.SEEK_END)
|
|
499
|
+
pos = fh.tell()
|
|
500
|
+
data = b""
|
|
501
|
+
while pos > 0 and data.count(b"\n") <= count:
|
|
502
|
+
step = min(block, pos)
|
|
503
|
+
pos -= step
|
|
504
|
+
fh.seek(pos)
|
|
505
|
+
data = fh.read(step) + data
|
|
506
|
+
lines = data.decode("utf-8", errors="replace").splitlines()
|
|
507
|
+
if pos > 0:
|
|
508
|
+
# The first line read from the middle of the file is a fragment.
|
|
509
|
+
lines = lines[1:]
|
|
510
|
+
return [line for line in lines if line.strip()][-count:]
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
def verify_trail_tail(trail_path: Path, records: int) -> TrailVerifyResult:
|
|
514
|
+
"""Verify the newest `records` lines of the trail, not the whole chain.
|
|
515
|
+
|
|
516
|
+
`verify_trail_file` walks from genesis, which on a trail of months takes
|
|
517
|
+
minutes. This checks what a health check needs in a second: that the newest
|
|
518
|
+
records link to each other, that each hash recomputes, and that the file
|
|
519
|
+
still ends where the sidecar says the writer stopped. It cannot see an edit
|
|
520
|
+
older than the window, because the first record in the window is trusted
|
|
521
|
+
for its `prev_sha256`. The message says how far it looked, so nobody reads
|
|
522
|
+
it as a full verification.
|
|
523
|
+
"""
|
|
524
|
+
if not trail_path.is_file():
|
|
525
|
+
return TrailVerifyResult(False, f"no such file: {trail_path}")
|
|
526
|
+
try:
|
|
527
|
+
lines = _last_lines(trail_path, records)
|
|
528
|
+
except OSError as exc:
|
|
529
|
+
return TrailVerifyResult(False, f"read failed: {exc}")
|
|
530
|
+
|
|
531
|
+
prev: str | None = None
|
|
532
|
+
first_seq = expected_seq = 0
|
|
533
|
+
chained = legacy = 0
|
|
534
|
+
for offset, line in enumerate(lines, start=1):
|
|
535
|
+
where = f"record {offset} of the last {len(lines)}"
|
|
536
|
+
try:
|
|
537
|
+
record = json.loads(line)
|
|
538
|
+
except json.JSONDecodeError:
|
|
539
|
+
return TrailVerifyResult(False, f"invalid JSON at {where}", len(lines), chained, legacy)
|
|
540
|
+
if not isinstance(record, dict) or not is_chained_record(record):
|
|
541
|
+
if chained > 0:
|
|
542
|
+
return TrailVerifyResult(
|
|
543
|
+
False,
|
|
544
|
+
f"unchained line after chained records at {where} (forged append?)",
|
|
545
|
+
len(lines),
|
|
546
|
+
chained,
|
|
547
|
+
legacy,
|
|
548
|
+
)
|
|
549
|
+
legacy += 1
|
|
550
|
+
continue
|
|
551
|
+
trail = record["trail"]
|
|
552
|
+
seq = int(trail.get("seq", -1))
|
|
553
|
+
prev_sha = str(trail.get("prev_sha256", ""))
|
|
554
|
+
if prev is None:
|
|
555
|
+
first_seq = seq
|
|
556
|
+
else:
|
|
557
|
+
if seq != expected_seq + 1:
|
|
558
|
+
return TrailVerifyResult(
|
|
559
|
+
False,
|
|
560
|
+
f"sequence break at {where}: expected seq {expected_seq + 1}, got {seq}",
|
|
561
|
+
len(lines),
|
|
562
|
+
chained,
|
|
563
|
+
legacy,
|
|
564
|
+
)
|
|
565
|
+
if prev_sha != prev:
|
|
566
|
+
return TrailVerifyResult(False, f"prev_sha256 mismatch at {where}", len(lines), chained, legacy)
|
|
567
|
+
record_sha = str(trail.get("record_sha256", ""))
|
|
568
|
+
if record_sha != compute_record_sha256(prev_sha, record["event"]):
|
|
569
|
+
return TrailVerifyResult(
|
|
570
|
+
False, f"record_sha256 mismatch at {where} (tampered?)", len(lines), chained, legacy
|
|
571
|
+
)
|
|
572
|
+
chained += 1
|
|
573
|
+
expected_seq = seq
|
|
574
|
+
prev = record_sha
|
|
575
|
+
|
|
576
|
+
if prev is None:
|
|
577
|
+
return TrailVerifyResult(True, "no chained records in the newest lines", len(lines), 0, legacy)
|
|
578
|
+
|
|
579
|
+
sidecar_head = _load_sidecar(chain_sidecar_path(trail_path))
|
|
580
|
+
if sidecar_head is not None and sidecar_head.seq > expected_seq:
|
|
581
|
+
return TrailVerifyResult(
|
|
582
|
+
False,
|
|
583
|
+
f"trail ends at seq {expected_seq} but sidecar records seq {sidecar_head.seq} (truncated?)",
|
|
584
|
+
len(lines),
|
|
585
|
+
chained,
|
|
586
|
+
legacy,
|
|
587
|
+
)
|
|
588
|
+
if sidecar_head is not None and sidecar_head.seq == expected_seq and sidecar_head.last_sha256 != prev:
|
|
589
|
+
return TrailVerifyResult(
|
|
590
|
+
False,
|
|
591
|
+
f"sidecar head hash does not match the last chained record at seq {expected_seq}",
|
|
592
|
+
len(lines),
|
|
593
|
+
chained,
|
|
594
|
+
legacy,
|
|
595
|
+
)
|
|
596
|
+
message = f"newest {chained} record(s) verified, seq {first_seq} to {expected_seq}"
|
|
597
|
+
if sidecar_head is None:
|
|
598
|
+
message += "; no sidecar head found, so tail truncation cannot be ruled out"
|
|
599
|
+
return TrailVerifyResult(
|
|
600
|
+
True, message, len(lines), chained, legacy, head_seq=expected_seq, head_sha256=prev
|
|
601
|
+
)
|
|
@@ -85,8 +85,14 @@ def _token_matches(token: str | None, key: str) -> bool:
|
|
|
85
85
|
A plain `==` short-circuits on the first differing byte, leaking the key's
|
|
86
86
|
prefix through response timing to anyone who can reach the endpoint.
|
|
87
87
|
`compare_digest` runs in time independent of where the mismatch is.
|
|
88
|
+
|
|
89
|
+
It compares bytes: on two `str` it raises for anything outside ASCII, so a
|
|
90
|
+
bearer token carrying a stray non-ASCII byte was a 500 instead of a 401.
|
|
88
91
|
"""
|
|
89
|
-
|
|
92
|
+
if not key:
|
|
93
|
+
return False
|
|
94
|
+
presented = (token or "").encode("utf-8", "surrogateescape")
|
|
95
|
+
return secrets.compare_digest(presented, key.encode("utf-8", "surrogateescape"))
|
|
90
96
|
|
|
91
97
|
|
|
92
98
|
def _presented_token(request: Request, header_value: str | None) -> str | None:
|
|
@@ -50,6 +50,13 @@ class DoctorReport:
|
|
|
50
50
|
#: in the observed window. Configured is a file check; these are not.
|
|
51
51
|
hooks_last_seen: dict[str, str | None] = field(default_factory=dict)
|
|
52
52
|
hooks_silent: list[str] = field(default_factory=list)
|
|
53
|
+
#: The trail the recorder answering on the configured port writes, when it
|
|
54
|
+
#: is not this install's. Checks that read install-local state then describe
|
|
55
|
+
#: this install, not the recorder that is running (#340).
|
|
56
|
+
other_install_trail: str = ""
|
|
57
|
+
#: `full` walked the chain from genesis; `tail` checked the newest records
|
|
58
|
+
#: of a trail too large to walk inside a health check (#366).
|
|
59
|
+
trail_scope: str = ""
|
|
53
60
|
|
|
54
61
|
def ok(self, code: str, message: str) -> None:
|
|
55
62
|
self.findings.append(Finding("ok", code, message))
|
|
@@ -67,23 +74,105 @@ class DoctorReport:
|
|
|
67
74
|
return 0
|
|
68
75
|
|
|
69
76
|
|
|
70
|
-
def
|
|
71
|
-
|
|
77
|
+
def _same_path(a: str, b: str) -> bool:
|
|
78
|
+
try:
|
|
79
|
+
return os.path.normcase(str(Path(a).resolve())) == os.path.normcase(str(Path(b).resolve()))
|
|
80
|
+
except (OSError, ValueError):
|
|
81
|
+
return a == b
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def _check_health_endpoint(report: DoctorReport, base_url: str = "") -> None:
|
|
85
|
+
"""Is the orchestrator up? A recorder that is not running records nothing.
|
|
86
|
+
|
|
87
|
+
It also asks whose recorder it is. A second install on the same machine, a
|
|
88
|
+
`pip install` beside a checkout, finds the checkout's recorder on the port
|
|
89
|
+
and used to report on its own empty data directory as if it were that
|
|
90
|
+
recorder's: a false FAIL that the token Codex needs was missing (#340).
|
|
91
|
+
"""
|
|
72
92
|
import urllib.request
|
|
73
93
|
|
|
74
|
-
url = settings.audit_ingest_url.rstrip("/") + "/api/v1/health"
|
|
94
|
+
url = (base_url or settings.audit_ingest_url).rstrip("/") + "/api/v1/health"
|
|
75
95
|
try:
|
|
76
96
|
with urllib.request.urlopen(url, timeout=2) as resp: # noqa: S310
|
|
77
|
-
if resp.status
|
|
78
|
-
report.
|
|
79
|
-
report.ok("orchestrator_up", f"Orchestrator responding at {url}")
|
|
97
|
+
if resp.status != 200:
|
|
98
|
+
report.warn("orchestrator_up", f"Orchestrator returned HTTP {resp.status} at {url}")
|
|
80
99
|
return
|
|
81
|
-
|
|
100
|
+
body = resp.read()
|
|
82
101
|
except Exception:
|
|
83
102
|
report.warn(
|
|
84
103
|
"orchestrator_up",
|
|
85
104
|
f"Orchestrator not reachable at {url} - start it with `agentmetry start`",
|
|
86
105
|
)
|
|
106
|
+
return
|
|
107
|
+
report.orchestrator_reachable = True
|
|
108
|
+
report.ok("orchestrator_up", f"Orchestrator responding at {url}")
|
|
109
|
+
try:
|
|
110
|
+
theirs = str(json.loads(body)["audit_export"]["path"] or "")
|
|
111
|
+
except (ValueError, KeyError, TypeError):
|
|
112
|
+
return
|
|
113
|
+
ours = str(settings.audit_export_path)
|
|
114
|
+
if theirs and not _same_path(theirs, ours):
|
|
115
|
+
report.other_install_trail = theirs
|
|
116
|
+
report.warn(
|
|
117
|
+
"other_install",
|
|
118
|
+
f"The recorder at {url} writes {theirs}, not this install's {ours}, so it belongs "
|
|
119
|
+
"to a different install. The checks below that read this install's files describe "
|
|
120
|
+
"this install, not that recorder. Run doctor from the install that started it.",
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def _host_only(text: str) -> str:
|
|
125
|
+
"""URLs reduced to scheme and host: an inbox URL carries its token in the path,
|
|
126
|
+
and doctor output gets pasted into bug reports."""
|
|
127
|
+
import re
|
|
128
|
+
|
|
129
|
+
return re.sub(r"(https?://[^/\s?#]+)[^\s]*", r"\1/...", text)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def _check_forwarding(report: DoctorReport, base_url: str = "") -> None:
|
|
133
|
+
"""Is every SIEM or webhook destination accepting what the trail sends?
|
|
134
|
+
|
|
135
|
+
Since a 401, 403, 404 or 407 holds the forward cursor instead of
|
|
136
|
+
dead-lettering, a revoked token stops delivery until someone fixes it, and
|
|
137
|
+
only the log and the status API said so. `doctor` is where an operator
|
|
138
|
+
looks, so the stall is reported here. Asked only of this install's own
|
|
139
|
+
recorder, with this install's token; a recorder that cannot be asked is
|
|
140
|
+
already reported by the health check.
|
|
141
|
+
"""
|
|
142
|
+
import urllib.request
|
|
143
|
+
|
|
144
|
+
from agentmetry.core import api_token
|
|
145
|
+
|
|
146
|
+
if not report.orchestrator_reachable or report.other_install_trail:
|
|
147
|
+
return
|
|
148
|
+
token = settings.api_key.strip() or api_token.read_token()
|
|
149
|
+
if not token:
|
|
150
|
+
return
|
|
151
|
+
url = (base_url or settings.audit_ingest_url).rstrip("/") + "/api/v1/audit/status"
|
|
152
|
+
request = urllib.request.Request(url, headers={"Authorization": f"Bearer {token}"}) # noqa: S310
|
|
153
|
+
try:
|
|
154
|
+
with urllib.request.urlopen(request, timeout=3) as resp: # noqa: S310
|
|
155
|
+
forwarding = json.loads(resp.read()).get("forwarding") or {}
|
|
156
|
+
except Exception: # noqa: BLE001 - a diagnostic, never the reason doctor fails
|
|
157
|
+
return
|
|
158
|
+
for name, state in sorted(forwarding.items()):
|
|
159
|
+
if not isinstance(state, dict):
|
|
160
|
+
continue
|
|
161
|
+
if state.get("failing_since"):
|
|
162
|
+
seconds = int(state.get("failing_for_seconds") or 0)
|
|
163
|
+
report.warn(
|
|
164
|
+
"forwarding",
|
|
165
|
+
f"Forwarding to {name} has been failing for {seconds} s: {_host_only(state.get('last_error') or 'no detail')}. "
|
|
166
|
+
"Nothing is lost: the trail keeps every event and delivery resumes from the same record.",
|
|
167
|
+
)
|
|
168
|
+
elif state.get("dead_lettered"):
|
|
169
|
+
report.warn(
|
|
170
|
+
"forwarding",
|
|
171
|
+
f"{name} refused {state['dead_lettered']} event(s) since start; they are in its "
|
|
172
|
+
"deadletter file beside the trail's forward cursors",
|
|
173
|
+
)
|
|
174
|
+
else:
|
|
175
|
+
report.ok("forwarding", f"{name} accepting, {state.get('forwarded', 0)} event(s) forwarded")
|
|
87
176
|
|
|
88
177
|
|
|
89
178
|
#: Bind addresses that keep the API on this machine.
|
|
@@ -314,7 +403,9 @@ def _check_observed(report: DoctorReport) -> None:
|
|
|
314
403
|
from agentmetry.core.diagnostics import hook_coverage
|
|
315
404
|
|
|
316
405
|
covered = [n for n, s in report.hooks.items() if s == hook_coverage.COVERED]
|
|
317
|
-
if not covered:
|
|
406
|
+
if not covered or report.other_install_trail:
|
|
407
|
+
# Another install's recorder writes another index; this one would only
|
|
408
|
+
# report that this install has recorded nothing.
|
|
318
409
|
return
|
|
319
410
|
last_seen = _last_event_by_source(Path(settings.audit_db_path))
|
|
320
411
|
if last_seen is None:
|
|
@@ -356,6 +447,16 @@ def _check_codex_sandbox(report: DoctorReport) -> None:
|
|
|
356
447
|
if not accounts:
|
|
357
448
|
return
|
|
358
449
|
path = api_token.ingest_token_path()
|
|
450
|
+
if report.other_install_trail:
|
|
451
|
+
# The sandbox authenticates to the running recorder with that install's
|
|
452
|
+
# token, which this install cannot see. Its own token proves nothing
|
|
453
|
+
# either way.
|
|
454
|
+
report.warn(
|
|
455
|
+
"codex_sandbox",
|
|
456
|
+
"Not checked: the running recorder belongs to another install, whose ingest-only "
|
|
457
|
+
"token Codex's sandbox uses. Run doctor from that install to check it.",
|
|
458
|
+
)
|
|
459
|
+
return
|
|
359
460
|
fix = "Run `agentmetry hooks install` to give them an ingest-only token."
|
|
360
461
|
if not api_token.read_token(path):
|
|
361
462
|
report.fail(
|
|
@@ -379,7 +480,15 @@ def _check_codex_sandbox(report: DoctorReport) -> None:
|
|
|
379
480
|
report.ok("codex_sandbox", "Codex's sandbox accounts can send events with the ingest-only token")
|
|
380
481
|
|
|
381
482
|
|
|
382
|
-
|
|
483
|
+
#: Above this, doctor checks the newest records instead of walking the chain
|
|
484
|
+
#: from genesis. A trail of months walked for minutes with nothing printed, and
|
|
485
|
+
#: read as a hung command (#366).
|
|
486
|
+
TRAIL_FULL_VERIFY_BYTES = 32 * 1024 * 1024
|
|
487
|
+
#: How many of the newest records the quick check covers.
|
|
488
|
+
TRAIL_TAIL_RECORDS = 5000
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
def _check_trail(report: DoctorReport, *, full: bool = False) -> None:
|
|
383
492
|
trail = Path(settings.audit_export_path)
|
|
384
493
|
if not trail.is_file():
|
|
385
494
|
report.warn(
|
|
@@ -388,8 +497,25 @@ def _check_trail(report: DoctorReport) -> None:
|
|
|
388
497
|
"agent session, and `agentmetry demo` shows one without touching this machine",
|
|
389
498
|
)
|
|
390
499
|
return
|
|
391
|
-
from agentmetry.core.audit.trail_chain import verify_trail_file
|
|
500
|
+
from agentmetry.core.audit.trail_chain import verify_trail_file, verify_trail_tail
|
|
501
|
+
from agentmetry.core.audit.trail_rotation import segments
|
|
502
|
+
|
|
503
|
+
size = sum(p.stat().st_size for p in segments(trail) if p.is_file())
|
|
504
|
+
if not full and size > TRAIL_FULL_VERIFY_BYTES:
|
|
505
|
+
report.trail_scope = "tail"
|
|
506
|
+
tail = verify_trail_tail(trail, TRAIL_TAIL_RECORDS)
|
|
507
|
+
if not tail.ok:
|
|
508
|
+
report.fail("trail", f"Trail chain BROKEN: {tail.message}")
|
|
509
|
+
return
|
|
510
|
+
report.ok(
|
|
511
|
+
"trail",
|
|
512
|
+
f"Trail chain: {tail.message}. The trail is {size // (1024 * 1024)} MB, so the "
|
|
513
|
+
"whole chain and its anchors were not walked here; `agentmetry doctor --full` or "
|
|
514
|
+
"`agentmetry verify --trail` does that and takes minutes.",
|
|
515
|
+
)
|
|
516
|
+
return
|
|
392
517
|
|
|
518
|
+
report.trail_scope = "full"
|
|
393
519
|
result = verify_trail_file(trail)
|
|
394
520
|
if result.ok:
|
|
395
521
|
report.ok("trail", f"Trail chain verified: {result.message}")
|
|
@@ -892,6 +1018,8 @@ def run_doctor(
|
|
|
892
1018
|
*,
|
|
893
1019
|
vault_path: Path | None = None,
|
|
894
1020
|
fix_drivers: bool = False,
|
|
1021
|
+
full_trail: bool = False,
|
|
1022
|
+
recorder_url: str = "",
|
|
895
1023
|
) -> DoctorReport:
|
|
896
1024
|
"""SIEM preflight. The recorder is the product; the demo vault is optional.
|
|
897
1025
|
|
|
@@ -966,11 +1094,12 @@ def run_doctor(
|
|
|
966
1094
|
_check_exposure(report)
|
|
967
1095
|
_check_trusted_hosts(report)
|
|
968
1096
|
_check_hashing(report)
|
|
969
|
-
_check_trail(report)
|
|
1097
|
+
_check_trail(report, full=full_trail)
|
|
970
1098
|
_check_triage(report)
|
|
971
1099
|
_check_spool(report)
|
|
972
1100
|
_check_autostart(report)
|
|
973
|
-
_check_health_endpoint(report)
|
|
1101
|
+
_check_health_endpoint(report, recorder_url)
|
|
1102
|
+
_check_forwarding(report, recorder_url)
|
|
974
1103
|
_check_hooks_installed(report)
|
|
975
1104
|
_check_observed(report)
|
|
976
1105
|
_check_codex_sandbox(report)
|
|
@@ -1015,6 +1144,8 @@ def report_payload(report: DoctorReport) -> dict:
|
|
|
1015
1144
|
"hooks": dict(report.hooks),
|
|
1016
1145
|
"hooks_last_seen": dict(report.hooks_last_seen),
|
|
1017
1146
|
"hooks_silent": list(report.hooks_silent),
|
|
1147
|
+
"other_install_trail": report.other_install_trail,
|
|
1148
|
+
"trail_scope": report.trail_scope,
|
|
1018
1149
|
"policy": {
|
|
1019
1150
|
"locked": list(report.policy_locked),
|
|
1020
1151
|
"pinned": list(report.policy_pinned),
|
|
@@ -1040,8 +1171,9 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1040
1171
|
parser = argparse.ArgumentParser(prog="agentmetry-doctor")
|
|
1041
1172
|
parser.add_argument("--fix", action="store_true", help="rewrite drivers.json to portable tokens")
|
|
1042
1173
|
parser.add_argument("--json", action="store_true", help="print the report as JSON")
|
|
1174
|
+
parser.add_argument("--full", action="store_true", help="walk the whole trail chain, however long")
|
|
1043
1175
|
args = parser.parse_args(argv)
|
|
1044
|
-
report = run_doctor(fix_drivers=args.fix)
|
|
1176
|
+
report = run_doctor(fix_drivers=args.fix, full_trail=args.full)
|
|
1045
1177
|
print_report(report, as_json=args.json)
|
|
1046
1178
|
return report.exit_code
|
|
1047
1179
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3in77zrqn0wml.css?v=
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3in77zrqn0wml.css?v=20261105195806499" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/31qp8jfkw0x2h.js?v=20261105195806499"/><script src="/_next/static/chunks/1q292q_rc4_p6.js?v=20261105195806499" async=""></script><script src="/_next/static/chunks/216iyidhmrh3u.js?v=20261105195806499" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js?v=20261105195806499" async=""></script><script src="/_next/static/chunks/3ia-1961js2lo.js?v=20261105195806499" async=""></script><meta name="robots" content="noindex"/><title>Agentmetry</title><meta name="description" content="Local flight recorder for AI coding agents"/><link rel="icon" href="/agentmetry-icon-white.svg"/><link rel="apple-touch-icon" href="/agentmetry-icon-white.svg"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js?v=20261105195806499" noModule=""></script></head><body class="font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","agentmetry-theme","dark",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/31qp8jfkw0x2h.js","static/chunks/1q292q_rc4_p6.js","static/chunks/216iyidhmrh3u.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/31qp8jfkw0x2h.js?v=20261105195806499" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/3ia-1961js2lo.js?v=20261105195806499\"\n3:I[89554,[\"$2\"],\"ThemeProvider\"]\n4:I[39756,[\"$2\"],\"default\"]\n5:I[37457,[\"$2\"],\"default\"]\n9:I[97367,[\"$2\"],\"OutletBoundary\"]\na:\"$Sreact.suspense\"\nc:\"ViewportBoundary\"\nd:I[97367,[\"$2\"],\"$c\"]\nf:\"MetadataBoundary\"\n10:I[97367,[\"$2\"],\"$f\"]\n12:I[68027,[\"$2\"],\"default\",1]\n:HL[\"/_next/static/chunks/3in77zrqn0wml.css?v=20261105195806499\",\"style\"]\n7:X\n8:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$a\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@b\"}]}]]}],\"p\":false,\"v\":null}}]]\n6:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$7\"},\"c\":\"$Q8\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3in77zrqn0wml.css?v=20261105195806499\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3ia-1961js2lo.js?v=20261105195806499\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"font-sans antialiased\",\"children\":[\"$\",\"$L3\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":true,\"storageKey\":\"agentmetry-theme\",\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"$L10\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$a\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L11\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$12\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3in77zrqn0wml.css?v=20261105195806499\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"J0aKlqH-KWdyNe48Kd-3V\"}\n7:C\ne:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n13:I[27201,[\"$2\"],\"IconMark\"]\nb:null\n11:[[\"$\",\"title\",\"0\",{\"children\":\"Agentmetry\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Local flight recorder for AI coding agents\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/agentmetry-icon-white.svg\"}],[\"$\",\"link\",\"3\",{\"rel\":\"apple-touch-icon\",\"href\":\"/agentmetry-icon-white.svg\"}],[\"$\",\"$L13\",\"4\",{}]]\n"])</script></body></html>
|