Parent: #590
Blocked by: M27.1, M27.2
Scope
Refactor build_system_prompt() in zeph-core/src/context.rs:
Before
pub fn build_system_prompt(
skills_prompt: &str,
env: Option<&EnvironmentContext>,
tool_catalog: Option<&str>,
native_tools: bool,
) -> String
After
pub fn build_system_prompt(
skills_prompt: &str,
env: Option<&EnvironmentContext>,
tool_catalog: Option<&str>,
native_tools: bool,
expertise: ExpertiseLevel,
mode: InteractionMode,
) -> String
Assembly order:
- Persona block (from mode)
- Philosophy block (from expertise)
- Tool use block (native vs legacy — unchanged)
- Guardrails block (from expertise x mode)
- Environment context
- Tool catalog
- Skills prompt
Callers to update
Agent::new() in agent/mod.rs
reload_skills() in agent/mod.rs
Acceptance Criteria
Parent: #590
Blocked by: M27.1, M27.2
Scope
Refactor
build_system_prompt()inzeph-core/src/context.rs:Before
After
Assembly order:
Callers to update
Agent::new()inagent/mod.rsreload_skills()inagent/mod.rsAcceptance Criteria