Design a self-updating context system for a long-running AI agent. Covers state serialization, context injection format, per-step update protocol, compaction triggers, and crash recovery. Describe your agent workflow — get a complete ACE blueprint with a customized JSON schema, XML injection template, update protocol table, and orchestrator pseudocode. Free template — copy and paste into ChatGPT, Claude, or Copilot.