Repository navigation
feat(runtime): Phase 2 SDK — IFC, quarantine, policy enforcement, audit chain - #20
Draft
new-world-coder wants to merge 1 commit into
Draft
new-world-coder wants to merge 1 commit into
new-world-coder wants to merge 1 commit into
Conversation
…it chain - Add python/agentshield/runtime (labels, context, quarantine, policy DSL, enforcer, audit chain, AgentShieldRuntime middleware) - CLI: runtime check, audit-verify, policy-ast - Node mirror: /api/runtime/check and /api/runtime/audit/verify - Examples, tests (41 Python + 15 Node assure/runtime), docs/RUNTIME.md, PHASE2_GAPS.md, README contributing section with pinned issues #4-#8 - IFC deny rules take precedence over tool approval when untrusted in scope Co-authored-by: New World Coder <new-world-coder@users.noreply.github.com>
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
Implements Phase 2 — Runtime SDK (
@agentshield/runtimePython package) plus Node API mirror.Python runtime (
python/agentshield/runtime/)trusted/untrusted) + confidentiality (public/private) with merge rulesifc_rules,sensitive_tools,modeCLI
agentshield runtime check— replay execution trace against policyagentshield runtime audit-verify— verify audit chainagentshield runtime policy-ast— compile policy AST stub (future CEL/Rego)Server API
POST /api/runtime/check— trace + policy → enforcement resultsPOST /api/runtime/audit/verify— verify audit entriesDocs & DX
docs/RUNTIME.md,docs/PHASE2_GAPS.mddocs/GOOD_FIRST_ISSUES.md) merged on mainSecurity behavior
IFC deny rules take precedence over tool-policy require_approval when untrusted content is in scope (blocks rug-pull / injection → sensitive tool paths).
Tests
Deferred (see
docs/PHASE2_GAPS.md)LangChain/MAF bindings, CEL/Rego compiler, human approval UI, dashboard panel.