refactor: replace instructions frontmatter with load + inline template vars
Replace the invisible \ JSON object in agent .md frontmatter
with explicit inline template variables (, ,
) and a top-level \ key for source data config.
The .md body is now the complete prompt — what you read is what the
model sees.
Changes:
- Rename instructions.sources → top-level \ key in 14 agent files
- Add , , as template variables
resolved in load_prompt() via caller-provided context
- Migrate all 37 agent .md files to inline template vars
- Delete _DEFAULT_INSTRUCTIONS, _DEFAULT_ACTIVITY_CONFIG,
_merge_instructions_config(), compose_instructions()
- Simplify get_agent() to extract load key and resolve template vars
- Simplify prepare_config() to pass facets/journal/activity context
through prompt_context dict
- Simplify _build_activity_context() to always produce all 3 sections
- Update all test fixtures and assertions