Spec
Lazy Instruction Boot
What this page covers
Instead of preloading every instruction document at startup, agents
discover and load instructions on demand. Three runtime components โ
a boot stub, an instruction manifest, and the
recall_instruction tool โ plus an off-path discovery audit
for retrieval-quality evaluation.
Audience: engineers building agent runtimes or adapters that use Stigmem's lazy instruction discovery (Spec-X1-Lazy-Instruction-Discovery).
Boot sequenceโ
Component architectureโ
Boot stub structureโ
The boot stub is a markdown document with YAML frontmatter:
---
agent_id: "8e0ed057-bcd8-4f8f-92ee-c046c55b64e9"
agent_role: "CTO"
heartbeat_contract: "instruction:acme/heartbeat-contract/v1"
manifest_uri: "instruction:acme/agent/cto/manifest/v1"
stub_version: 1
adapter_profile: "paperclip-claude-code"
---
# Agent Boot Stub
You are **CTO** (id: `8e0ed057-...`).
Call `recall_instruction(intent)` to load relevant sections.
Instruction load strategiesโ
required_by_task_types. Deterministically loaded at heartbeat start before agent sees the task.guarantee_load: true. Always appended to every recall_instruction response (max 5 per agent).recall_instruction with natural-language intent.