docs: add guarded local agent execution pattern#35
Open
jiezeng2004-design wants to merge 1 commit into
Open
Conversation
Document a five-pillar security pattern for confining local coding agents (workspace confinement, exact-match command allowlists, pre-registered agents, sensitive-file blocking, auditable evidence) and how AgentSeal can verify it using .agentseal.yaml allowlists plus custom rules, without reading secret contents.
This was referenced Jul 10, 2026
jiezeng2004-design
marked this pull request as ready for review
July 14, 2026 00:52
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
Proposes a new security pattern guide:
docs/guarded-local-agent-execution.md.The document describes the "guarded local agent execution pattern" — confining a local coding agent's authority to a narrow, declarative surface instead of exposing a general-purpose shell. It is written to stand on its own and does not depend on any specific executor.
Why
agentseal guardalready detects threats in agent configs, MCP descriptions, and skill files. This guide gives operators a concrete confinement pattern to aim for, and shows how AgentSeal's existing mechanisms (.agentseal.yamlallowlists + the custom YAML rule engine) can verify a project follows it.Changes
docs/guarded-local-agent-execution.md(275 lines)allowed_agents->GUARD-001,allowed_mcp_servers->GUARD-002, two example custom rulesGUARD-EXEC-001/GUARD-EXEC-002with inlinetests).Design notes
id,title,severity,verdict,match.type,tests) perpython/agentseal/rules.py.Test Plan
agentseal guard testcoverage in a separate code PR if maintainers want it runnable.Open questions for maintainers
docs/directory acceptable, or should this live elsewhere (e.g., alongsidePROBES.mdat root, or only on agentseal.org/docs)?rules/guarded-execution.yamlfile instead of inline in the doc? Happy to split that into a separate code PR.Related Issues
None — maintainer feedback on scope and placement is welcome.