feat(agent): record observed egress as http_request side effects (#465 Phase A, 3/5) - #470
Open
AminChirazi wants to merge 1 commit into
Open
feat(agent): record observed egress as http_request side effects (#465 Phase A, 3/5)#470AminChirazi wants to merge 1 commit into
AminChirazi wants to merge 1 commit into
Conversation
11 tasks
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
AminChirazi
force-pushed
the
feat/465a-3-http-capture
branch
from
August 11, 2026 19:10
725d957 to
be4041e
Compare
Contributor
Author
|
CI's Linux clippy caught 8 |
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.
Part 3/5 of #465 Phase A. Stacked on 2/5.
What
Every egress the supervisor admits and performs for the agent is recorded as an
http_requestside effect (ip:port,tcp/udp, monotonicat_ms) into a newEgressLog.observed— never touchingblocked, whose emptiness is half theassert_no_egresspredicate. Loopback is filtered at capture (flowproof's own proxy/MCP boundaries are already first-class trace data); AF_UNIX and denied attempts are not side effects. A destination admitted by a${VAR}-bearing allow entry records the unresolved spelling (redaction-first when multiple entries match), the same store-unresolved rule the egress lane follows. AddsAllowSet::allow_all()andContainment::observation_only()plus theegress_engagedparameter onrun_against_contained: a run supervised only for observation reportsnot contained (flow engages side-effect observation only; …)— the tier line never claimsenforcedfor a wildcard policy nobody declared, and non-Linux variants early-return to the uncontained path as defense in depth.Evidence
fmt 0 · clippy 0 ·
cargo test --workspace0 · Linux cross-check 0 (includes the new Linux e2eside_effect_http_e2e.rs, runtime-proven on the Linux CI runner) · ratchets.sh exit 0, diff 396/400.🤖 Generated with Claude Code