feat: prompt-leak resilience + runtime boundaries (F34) + enchanter-hooks v0.7#6
Closed
klaiderman wants to merge 1 commit into
Closed
feat: prompt-leak resilience + runtime boundaries (F34) + enchanter-hooks v0.7#6klaiderman wants to merge 1 commit into
klaiderman wants to merge 1 commit into
Conversation
…ooks v0.7 Hardens VIS against untrusted-context / prompt-leak failures and ships the runtime-enforcement layer for them. Conduct & taxonomy: - F34 — Untrusted-context injection (indirect prompt injection): host-agnostic taxonomy doc + runbook, registered in failure-modes.md and the taxonomy index. - recipe agent-runtime-boundaries.md (host trust boundaries, anti-laundering). - eval docs/evals/agent-boundary-checklist.md (6 adversarial cases). - web/conduct resilience set + core context-budget / memory-discipline modules. enchanter-hooks v0.7 (11 -> 15) — the runtime half, all advisory/fail-open/quiet: - context-taint-scan PostToolUse(Read|Grep|WebFetch): directive language in retrieved tool_response (F34 runtime counter). - delegation-scope-guard SubagentStart: scope+provenance reminder injected into a risky subagent's own context (anti-laundering). - evidence-gate Stop: flags unbacked completion/verification claims (no loop; stderr+exit 0, never blocks). - dependency-intent-receipt PreToolUse(Bash + Write|Edit): supply-chain provenance. - compact-checkpoint extended into an obligation anchor (approvals / denied approaches / security boundaries / verification debt). - tests/verify-hooks.sh self-test (74 checks: fail-open, quiet-on-benign, one advisory per trigger, valid JSON, LF-only, no network calls). README / marketplace / plugin counts updated (22 codes, 10 recipes, 15 hooks).
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
Hardens VIS against untrusted-context / prompt-leak failures and ships the runtime-enforcement layer for them — combining the F34 / agent-runtime-boundaries conduct work with the v0.7 wave of
enchanter-hooks.Conduct & taxonomy
failure-modes.mdand the taxonomy index.agent-runtime-boundaries.mdrecipe — host trust boundaries, anti-laundering, provenance preservation across hand-offs.docs/evals/agent-boundary-checklist.md— 6 adversarial pass/fail cases.web/conduct/resilience set + corecontext-budget/memory-disciplinemodules.enchanter-hooks v0.7 (11 → 15) — the runtime half
All advisory, fail-open (exit 0), quiet, tied to deterministic Claude Code hook events:
context-taint-scanPostToolUse(Read|Grep|WebFetch)tool_response— F34 runtime counterdelegation-scope-guardSubagentStartevidence-gateStopdependency-intent-receiptPreToolUse(Bash + Write|Edit)compact-checkpoint(extended)SessionStart(compact)New
packages/hooks/tests/verify-hooks.shself-test.Verification
tests/verify-hooks.sh: 74 passed, 0 failed — fail-open + quiet on empty/malformed payloads, one useful advisory per high-signal trigger, valid JSON configs, LF-only, no network-tool invocation, every registered script exists.bash -non all 16 scripts;jq -eon all 3 JSON configs.Limitations
SubagentStartuses a broad.*matcher gated in-script by risk markers.evidence-gateis advisory-to-human (no receipt ledger to verify against yet).