Skip to the content.

Instruction Override Semantics in LLMs

LLMs have no formal instruction override mechanism. When instructions conflict across layers, resolution is attention-weighted heuristics.

Resolution Patterns

Scenario Typical Outcome
L0 says X, L2 says Y (direct contradiction) Nondeterministic — primacy gives L0 an edge but not a guarantee
L0 is silent, L2 specifies L2 wins — extension, not override
L0 is generic, L2 is specific L2 usually wins — model interprets specificity as refinement

The Safe Pattern

Specialization, not contradiction.

The anti-pattern is direct contradiction:

Empirical Finding

Tested with Goose + Granite 8B (weak model): SOUL.md identity (“Agentic SRE”) at Layer 2 successfully specialized the Layer 0 identity (“general-purpose AI agent”) without conflict. The model adopted the SOUL.md identity fully and recited all 8 principles.

This held even without customizing the system.md to remove “general-purpose.” Specificity wins over generality even on weak models.

Harvested From

Project Source Entry
context-eng Session: Context Landscape Analysis Identity conflict analysis, empirical testing with Granite 8B
goofing-around Session: AgentFS v7 weaker model test Confirmed SOUL.md override on weak model

Implications