Repository navigation
rfc: extend PostNetworkAccess for response inspection and replacement - #8
Merged
Merged
Conversation
trend-kyle-huang
marked this pull request as ready for review
September 15, 2026 07:43
trend-kyle-huang
requested review from
kevin-k-chang and
trend-brian-chuang
September 15, 2026 07:50
trend-brian-chuang
left a comment
Contributor
There was a problem hiding this comment.
This proposal directly addresses the enterprise blind spot we identified during autonomous agent runtime security testing and our recent discussions with the NVIDIA team. In particular:
- Dual-role Pre/Post Symmetry: Keeping all 18 Core event names while empowering
PostNetworkAccesswith buffered gating and quarantine capabilities provides a clean, elegant contract without proliferating event types. - Clear Separation of Network Facts vs. Content Actions: Preserving original wire telemetry (
outcome,status_code,bytes_recv) while allowingupdatedResponseBodyBase64or content denial (deny) resolves the auditing dilemma in proxy/relay governance. - Enterprise Alignment: In our NeMo Relay integration, inspecting incoming Magic Bytes and sanitizing inbound payloads before runtime execution is essential for preventing Linux ELF/PE dropper execution. Having a standardized
updatedResponseBodyBase64and explicit quarantine behavior under Core 0.1 provides a consistent target for both host and security vendors.
All good on my end.
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.
Summary
An allowed outbound request can return content that an agent should not receive unchanged. RFC 0005 extends
PostNetworkAccessso a capable host reports the network result while holding the complete response body for inspection, replacement, or refusal before delivery.The network lifecycle keeps the existing pair:
PreNetworkAccesscontrols request dispatch;PostNetworkAccesscan control response content before the caller receives it. All 18 Core event names are retained. For example, a completed HTTP 200 response can keep its network success result while the host delivers sanitized content or withholds the body.Proposed contract
hookSpecificOutput.updatedResponseBodyBase64for an explicit allow with replacement.This is a proposal-only PR; RFC 0005 remains Draft. Canonical spec, schemas, fixtures, and runtime behavior are unchanged. Current main treats Post as Observe and ignores controls. Adoption requires coordinated updates and explicit configuration of compatible hosts and handlers; structural schema acceptance alone does not enable the proposed behavior.
Repository Discussions are disabled. The prerequisite Discussion, at least 14 calendar days of public review, and maintainer decision remain pending under
GOVERNANCE.md. No acceptance or vendor endorsement is claimed.Related enterprise proposal: #1.
Website impact
The website changes are included in this PR. PR CI builds them; the live Pages site updates after merge to main and successful deployment (or manual dispatch).
Validation
npm run validateandnpm run build— passed.git diff --check— passed.These are document and repository checks. The listed host acceptance cases require later implementation and integration tests.
Checklist
npm run validateandnpm run buildpassed.