Agent Systems: How Governance and Experience-Led Frameworks Divide the Work

    This article compares governance-oriented and self-evolving general-purpose agent frameworks. It clarifies that the two are not mutually exclusive choices, but different engineering priorities built on the same foundation of large language models, execution loops, and harnesses. It compares how each approach handles skills and memory, explains their respective strengths and limitations, and recommends combining them in layers: governance for access control, task routing, and permissions; experience accumulation for reusable skills and faster execution. It also covers implementation order, key metrics to track, and common pitfalls such as memory pollution and unmanaged skill decay.

    1. Ask the Right Question First: This Is Not a Binary Choice

    When comparing two general-purpose agent frameworks, many developers treat them as mutually exclusive options. The question itself is misleading. It is similar to asking whether to buy a general-purpose computer or a large-screen device. They serve different purposes, so trying to rank one above the other leads to a meaningless conclusion.

    Setting brand differences aside, both share the same technical foundation:

    • Large language models handle understanding, planning, and generation.
    • A continuous loop handles iterative observe–think–act–verify cycles across multiple rounds.
    • A harness handles tool registration, permission constraints, context assembly, failure retries, and result backfilling.

    Both therefore qualify as general-purpose agent systems. The real distinction is where engineering effort is concentrated. One type focuses on order; the other focuses on experience.

    • Governance-oriented frameworks are strong at entry-point management and operational order. They are equivalent to a professional front desk combined with a documented set of company rules: who can enter, how tasks are assigned, which roles can access which resources, and how unauthorized actions are blocked.
    • Self-evolving frameworks focus on accumulating experience. Their core idea is to learn while working, turning a successful one-off execution path into a capability that can be reused directly next time.

    In short, governance-oriented frameworks make agents discoverable and rule-compliant, while self-evolving frameworks make agents increasingly proficient at execution.

    2. Skills Layer: Static SOP Libraries vs. Self-Written Work Notes

    2.1 Governance-Oriented: People Teach Machines the Rules

    For this type of framework, skills are essentially collections of manually written standard operating procedures. Developers must explicitly complete a series of definitions: install and register capability modules, declare functional boundaries, define input and output data structures, bind execution logic, and assign governance levels at the system, user, and project scopes.

    Its ceiling depends almost entirely on the user’s abstraction ability: whether business processes can be decomposed into steps with clear boundaries, whether exception branches are exhaustively covered, and whether the permission matrix is correctly expressed. Many teams fail to use governance-oriented frameworks well not because of the framework, but because the underlying business rules have not been properly defined, while expecting the tool to fill that gap automatically.

    A typical skill declaration looks roughly like this (illustrative only, not representing the field definitions of any specific product):

    1. skill:
    2. name: weekly-report-digest
    3. version: 3
    4. scope: team # system / team / user governance levels
    5. trigger: "User requests a periodic summary"
    6. inputs:
    7. - name: source_uri
    8. type: string
    9. validation: internal_domains_only
    10. steps:
    11. - action: fetch_records
    12. params: { window: last_7d }
    13. - action: summarize
    14. params: { max_points: 5 }
    15. - action: render
    16. params: { format: markdown }
    17. outputs:
    18. schema: { title: string, bullets: array }
    19. guards:
    20. require_approval_for: [external_send, delete]
    21. max_retries: 2

    The advantage of this approach is strong determinism, auditability, and reviewability. The cost is high maintenance effort: whenever business requirements change, the rules must be updated.

    2.2 Self-Evolving: Machines Write Their Own Notes

    Self-evolving frameworks also support human intervention, but the key addition is automatic summarization. After a task succeeds, the system tries to extract a reusable execution path from the trajectory, automatically seals it as a skill, and attaches applicable conditions and prerequisites.

    The difference can be framed as follows: governance-oriented frameworks provide a standardized team manual that prioritizes consistency and transferability; self-evolving frameworks produce an execution-specific experience note that prioritizes efficiency and fit. The audience of the former is the organization; the audience of the latter is the system itself.

    An important engineering consideration: automatically summarized skills must include trust scores and hit statistics. Otherwise, incorrect paths will be repeatedly reused. A reasonable approach is to introduce a candidate pool and a gradual-rollout mechanism, validating new skills on low-risk tasks several times before promoting them to formal skills.

    1. def promote(skill, stats, threshold=3):
    2. """Newly summarized skills must pass gradual validation to avoid locking in incorrect paths."""
    3. if stats["success_rate"] >= 0.9 and stats["uses"] >= threshold:
    4. return "active"
    5. return "candidate"

    3. Memory Layer: Static Files vs. a Three-Tier Memory Loop

    3.1 Governance-Oriented: File-Based “Solidified Memory”

    The memory of this type of framework is typically a local Markdown file system: one file defines persona and tone, one records user preferences, one stores curated scenarios, and several archive logs by date. Memory quality depends directly on how files are organized and referenced: whether the index is clear, whether cross-references are reasonable, and which sections are actually loaded into the context window.

    A concerning reality is that most users never systematically design their memory structure. With default configurations, performance is often very poor—not because the system forgets things, but because it retains large amounts of noise while missing critical constraints.

    3.2 Self-Evolving: A Three-Tier Loop of Session, Persistent, and Skill Memory

    Self-evolving frameworks usually split working memory into three tiers with clear responsibilities:

    • Session memory: the current conversation context, which ensures coherent multi-turn responses. Its lifecycle is short and it is reclaimed when the session ends.
    • Persistent memory: long-term user preferences, terminology habits, and behavioral patterns, so the system “still recognizes you next time.”
    • Skill memory: execution paths for successful tasks, sealed as reusable skills.

    The loop consists of four steps:

    1. Work: complete the full task instead of only answering isolated points.
    2. Record: log inputs, every action, mid-course parameter adjustments, and final results as a trajectory.
    3. Persist and index: write trajectories into structured storage and build a full-text search index to support recall by both keywords and semantics.
    4. Reuse: when a similar task appears, search history first. If a skill matches, call it directly; otherwise, fall back to general reasoning.
    1. def run_with_reflection(task, agent, mem):
    2. trace, events = [], []
    3. result = agent.execute(task, on_event=events.append)
    4. trace.append({"task": task, "events": events, "result": result})
    5. if result.ok:
    6. candidate = summarize_path(trace) # extract the step sequence and key parameters
    7. mem.skills.add_if_novel(candidate) # add to the candidate pool after deduplication
    8. mem.long_term.observe(task, result) # update long-term preferences
    9. mem.index.upsert(trace) # write to the full-text search index
    10. return result

    An illustrative memory directory structure could be organized as follows:

    1. agent-memory/
    2. ├── session/ # session-level, periodically reclaimed
    3. ├── long-term/ # facts and preferences, with confidence scores
    4. ├── skills/ # reusable paths, with hit statistics
    5. └── index/ # inverted index and vector index

    4. How to Choose: Combine Them in Most Scenarios

    The conclusion is not replacement, but layered deployment:

    • When multi-role collaboration, external entry points, and clear compliance requirements are needed, the governance layer is a hard requirement. Address admission, task assignment, and permission boundaries first.
    • When tasks are highly repetitive, personalization is significant, and workflows are still evolving, the experience layer offers greater returns. Focus on trajectory recording and skill reuse.
    • Combining both is the more common optimal solution: governance ensures “no mistakes,” while experience accumulation ensures “faster and faster execution.”

    Implementation can follow this order: first define task boundaries and the permission matrix clearly, then complete trajectory recording and indexing, and finally enable automatic skill accumulation. Teams that reverse this order are often backlashed by polluted memory and out-of-bounds skills.

    Evaluation should also be quantifiable. At a minimum, track four metrics: task first-pass success rate, skill hit rate (the proportion of repeated tasks handled through direct reuse), retrieval recall accuracy, and memory pollution rate (the proportion of entries manually rolled back). In a complete observability system, these metrics can be retained and trend-analyzed over the long term using logging services, monitoring alerts, and object storage. Components involving model services and runtime resources can run on a container platform to support elastic scaling and gradual releases; relevant general-purpose capability categories offered by Baidu AI Cloud can be one hosting choice, subject to the official documentation.

    5. Three Common Pitfalls

    1. Treating memory as a dumping ground: indiscriminate recording quickly degrades context. Set confidence scores and expiration times for long-term memory, and allow low-confidence entries to participate in retrieval only, not context injection.
    2. Failing to govern skill expiration: after business changes, old skills continue to produce incorrect results. Maintain a version, applicable conditions, and last-hit time for every skill.
    3. Enabling self-evolution without a permission model: allowing the system to freely accumulate execution paths is equivalent to letting it freely expand its capability boundaries. High-risk actions such as writing, external sending, and deletion must remain in a human approval chain.

    In summary, governance-oriented frameworks are responsible for order and auditability, while self-evolving frameworks are responsible for efficiency and experience reuse. They complement each other’s capabilities rather than replace one another. Draw the boundaries clearly, strengthen the memory and skill infrastructure, and only then will agent systems move from “demonstrable” to “deliverable.”