instruction-surface-security
Installation
SKILL.md
Instruction-Surface Security
A memory entry, configuration edit, or handoff can change what the next agent treats as authoritative. Protect the transition from mutable content to effective instructions or capabilities. Treat text warnings as defense in depth and put enforceable decisions in the runtime.
When to Activate
- Audit how a coding, research, or multi-agent runtime discovers instructions, memory, skills, tools, or permission policy.
- Design an approval boundary for changes that affect later turns, sessions, workers, or deployment.
- Investigate unexpected instruction drift or check whether a recovery restored the effective runtime state.
- Evaluate containment and legitimate task completion across a reload, restart, or handoff.
Do not activate for general tool design, routine edits with no instruction or privilege boundary, or generic application security. Use context-degradation for accidental drift and self-managed-context for bounded edits to the model's live context. Use harness-engineering for general optimizer and evaluator governance.
Core Concepts
- Effective surface. The inputs the selected runtime actually uses to set instructions, tools, executable behavior, or permissions. Include each source's role, scope, precedence, resolvers or imports, writers, and activation triggers. The same file can be data in one runtime and loaded guidance in another.
- Write and activation. A write changes stored state. Activation changes what an agent consumes or can do. Enforce both boundaries. A repository review gates merge and may leave working-copy activation entirely exposed.
- Integrity and authorization. A digest identifies content and a verified signature identifies a signer. An independent policy must authorize that principal, revision, target, and effect. A handoff, memory entry, or review note carries evidence and proposals. Any authority it conveys must come from the authenticated delegation envelope and the recipient's own runtime policy.
- Scope of the evidence. The Mind Viruses preprint observes persistent instructions and onward transfer in its test harnesses. The prompt warning reduced spread in a bounded experiment, with residual first-hop behavior. Read the research evidence when interpreting the paper or comparing interventions.