Agent Design Principles: The Boundary Between a Thin Harness and Fat Skills

    This article explains why "a thin harness plus fat skills" is often misread as the endpoint of agent evolution, and why determinism is not the same as growth. It introduces a three-layer responsibility model that adds a memory layer alongside the harness and skills, describes what that layer should distill, and provides sample code plus practical guidance and anti-patterns for keeping skills deterministic while letting experience accumulate over time.

    1. The Misread Premise: “Never Forgets” Does Not Mean “Gets Better With Use”

    In discussions of AI agent architecture, the pattern of a “thin harness plus fat skills” is often summarized as an appealing property: skills never forget, and the same input always produces the same output. In an engineering context, that is a strength. But treating it as the endpoint of agent evolution walks into a subtle trap: it mistakes determinism for growth.

    “Never forgets” describes the reproducibility of stateless execution. A skill is invoked like a pure function: it carries no context from the previous call, and its behavior does not change as the number of invocations grows. This matters for reliability, but it also means the system has no mechanism for distilling experience. A skill that has been called a hundred times is exactly as capable on the hundredth call as it was on the first.

    2. What Human Memory Suggests: Forgetting Is Filtering, Not a Defect

    The defining feature of human memory is not that it retains a lot, but that it forgets selectively. Forgetting performs filtering and compression: high-frequency, low-value details fade, while stable, reusable patterns are retained and eventually settle into dispositions, intuitions, and craft. You do not need to remember the posture parameters of every bicycle ride; you only need to “know how to ride.”

    Mapping this mechanism onto agents yields an important judgment: what is genuinely scarce is not storage capacity, but the ability to compress raw interactions into reusable dispositions. The “weight” of skills is measured along a quantity dimension: write a hundred skills and you have a hundred capabilities. But those capabilities remain isolated from one another, with no relationships, no priorities, and no preferences grown out of use. This is the missing third layer in a two-layer architecture.

    3. Three Layers of Responsibility: Skeleton, Muscle, and Nervous System

    A single, consistent metaphor makes the boundary far less ambiguous in architecture discussions:

    • Harness = skeleton: it determines structure, posture, and direction of movement. It handles session orchestration, context assembly, tool selection, and flow control, and it should be light, thin, and replaceable.
    • Skills = muscle: they determine strength, speed, and concrete actions. They require clear boundaries, stable input/output contracts, and reproducible behavior.
    • Memory = nervous system: it connects skeleton and muscle, injecting historical experience into decisions in the form of dispositions, so that each execution is more precise than the last.

    Muscle without a nervous system contracts in isolation every time. Doing a hundred squats works because the tissue undergoes structural change under repeated stimulus. A skill that executes a hundred similar tasks produces no structural change in the system unless a feedback and distillation mechanism is introduced. The memory layer is precisely what performs that structural change.

    4. What the Memory Layer Actually Distills

    The memory layer is not a pile of logs; it is structured distillation. What can be distilled falls into roughly four categories:

    1. Preferences: the user’s output length, language style, formatting conventions, and terminology habits.
    2. Scenario risks: which step a certain class of task tends to fail at, and which inputs require extra validation.
    3. Path efficiency: among multiple viable paths, which one has a higher historical success rate and shorter latency.
    4. Failure modes: recurring error types and reusable strategies for avoiding them.

    The key point is that these distilled items are not new skills. They are experiential adjustments attached to existing skills. A schematic data structure can express this as:

    1. @dataclass
    2. class Skill:
    3. name: str
    4. spec: Spec # stable input/output contract
    5. version: str
    6. @dataclass
    7. class MemoryEntry:
    8. scope: str # applicable scenario/task type
    9. kind: str # preference | risk | path | failure
    10. payload: dict # concrete disposition content
    11. confidence: float # confidence, updated as evidence accumulates
    12. evidence: int # number of supporting samples
    13. def execute(skill: Skill, ctx: Context, mem: MemoryStore):
    14. hints = mem.retrieve(scope=ctx.task_type, limit=5)
    15. result = skill.spec.run(ctx, hints=hints) # the skill itself stays deterministic
    16. mem.update(hints, feedback=ctx.feedback) # experience is layered on externally
    17. return result

    This pseudocode reflects the core design principle: the skill remains purely functional and deterministic internally, experience is injected from the outside as parameters, and learning happens on the read/write path of the memory layer. This preserves testability and rollback while still gaining gradual optimization.

    5. The Opposite of “Never Forgets” Is Not “Always Forgets”

    A common misunderstanding needs clearing up: introducing a memory layer does not mean sacrificing determinism. They are properties on different dimensions.

    • Skills: each invocation equals a function execution with the same result, ensuring reliability and regression testing.
    • Memory layer: each invocation equals a function execution plus experience injection, with results that improve gradually, so the system becomes easier to work with over time.

    The correct engineering posture is layered decoupling: keep determinism in the skill layer, confine variability to the memory layer, and control where memory takes effect using version numbers, confidence thresholds, and canary strategies. When memory degrades quality, you can roll back only the memory without touching the skills.

    6. Implementation Points and Common Anti-Patterns

    • Gate writes: consolidate a pattern into long-term memory only when it has accumulated enough evidence and its confidence exceeds the threshold, to avoid noise pollution.
    • Cap reads: the number of injected dispositions must be bounded, otherwise context bloat will undermine the thinness of the harness.
    • Make memory observable: use general-purpose logging services and monitoring/alerting capabilities to track hit rate, confidence drift, and rollback counts.
    • Isolate memory: partition storage by tenant, scenario, and task type, and desensitize sensitive information before storing it. General cloud capabilities such as object storage and message queues can handle persistence and asynchronous updates.
    • Anti-pattern 1: turning memory into an ever-growing conversation history, where cost rises and returns diminish.
    • Anti-pattern 2: hardcoding experience into skills, which breaks reproducibility and invalidates regression tests.
    • Anti-pattern 3: storing raw trajectories without distillation, so the system appears to “remember a lot” but in fact “learns nothing.”

    7. Conclusion

    A “thin harness plus fat skills” solves the problems of capability supply and execution determinism, but the real driver of agent evolution comes from the third layer: memory. It turns repeated execution into accumulated experience and isolated skills into judgment infused with dispositions. There is a simple test for whether an agent architecture is complete: after a hundred runs, has the system itself undergone structural change? If the answer is no, what is missing is not more skills, but a nervous system.