Repository navigation
fix(audit): guard evidence contract hardening + self-config classification alignment - #516
Merged
Merged
Conversation
…ation alignment Recorder side of the paired guard change (agentmetry-guard fix/proxy-evidence-and-policy): - network_egress events from source_app=agentmetry/adapter=guard now keep only validated destination metadata: host (bounded charset), port range, method, scheme, optional policy, optional connection_established. The request path is dropped. A missing verdict is recorded as outcome=error, so a failed or denied attempt is never read as an established connection. - tool.command for guard events becomes METHOD host:port. Self-config classification alignment: Codex patches classified from file headers, structured writes from destination fields, shell writes from write operands; trait and MITRE T1562 share the same checks. Corpus: 2 new benign cases (unverified guard egress, script written but not run); 119 cases, 21 rules, 63/63 firings, 0 missed, 0 FP. README 3111 tests. Full suite: 3032 passed, 8 skipped; the 71 failures are the known pre-existing local-env set (identical on clean master). Ruff clean, diff --check clean. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recorder side of the paired guard change (agentmetry-guard PR #1): network_egress keeps only validated destination metadata (host/port/method/scheme/policy/connection_established), drops the request path, and a missing verdict records outcome=error so a failed attempt is never an established connection. Self-config classification aligned across patch/write/shell surfaces. Benchmark 119 cases, 63/63, 0 FP; 3111 tests; full suite green apart from the known local-env failures. Pairs with agentmetry-guard fix/proxy-evidence-and-policy.