Multi-agent systems need a 'mission keeper' role — not a Boss Agent, but a dedicated goal integrity node
There's a classic CS joke: git blame tells you who wrote the code, but it can't tell you why it made sense at the time. Multi-agent systems have the same problem — by the time a task finishes, nobody can tell you whether the final output still matches the original intent. The intermediate agents each did their job. The goal just quietly drifted somewhere along the way.
The structural gap I keep hitting with the current SelectorGroupChat design:
AutoGen's Planning Agent is doing two things at once:
- Coordinating execution (assigning tasks, sequencing agents)
- Keeping track of whether the original goal is still being honored
These two responsibilities have very different failure modes. Coordination failure is loud — tasks get dropped, agents deadlock, TERMINATE never fires. Goal drift is silent — every agent reports success, the workflow completes cleanly, and the output is coherent but wrong in a way that only becomes apparent later.
Mixing both into one Planning Agent means that when coordination gets complex (which it always does), goal integrity gets deprioritized. It's just cognitive load — the planner is managing traffic while also trying to remember where everyone was supposed to be going.
The analogy that makes this concrete:
Distributed systems solved a version of this in the 80s. Paxos and Raft aren't about making nodes smarter — they're about designating which node's version of truth wins when nodes disagree. The insight wasn't "let all nodes negotiate equally"; it was "equal negotiation produces noise, not consensus." You need asymmetry to get convergence.
Multi-agent LLM systems are re-discovering this the hard way. When two agents produce conflicting outputs, the current resolution mechanism is essentially: whoever gets read first by the next LLM call wins. That's not consensus. That's a race condition with a language model as the referee.
What I'm proposing — a Mission Keeper role:
Separate the goal-integrity function from the coordination function entirely.
Mission Keeper → holds the original intent, never executes tasks
↓ (validates drift)
Coordinator Agent → manages task flow, assigns work
↓ (executes)
Worker Agents → do the actual work
The Mission Keeper's only job is to compare intermediate outputs against the original goal and flag when they're diverging. It doesn't assign tasks. It doesn't coordinate. It has no opinion on how the work gets done — only on whether the work is still pointed at the right thing.
This matters especially for long-running tasks where the original user intent is several tool calls back in the context window and getting diluted with each step.
Why this is different from just improving the Planning Agent:
Giving the Planning Agent better prompts for goal-tracking doesn't fix the structural problem. A single node doing both things will always context-switch between them. Under load (many agents, long task chains), goal integrity is what gets dropped first — not because the LLM forgot, but because the planner's attention is genuinely occupied with coordination.
The fix isn't a smarter planner. It's a role separation.
Is this a direction the team has considered? I can see it being implemented as a lightweight wrapper around the existing SelectorGroupChat — an outer observer that receives all messages but only intervenes when it detects goal drift above some threshold. Happy to sketch that out if useful.
One thing I should add — and honestly, a small correction to my own opening.
I framed this as a gap in the existing design, which was a bit presumptuous. The SelectorGroupChat with a Planning Agent is already a thoughtful piece of work. What I actually ran into was something more personal: I built a multi-agent pipeline using it, it ran cleanly, every agent reported success, and I only realized later that the output had quietly drifted from what I originally asked for. That was my problem to debug, not a flaw in the framework.
But it got me thinking: there's something in my own head that works like the problem I described. When I'm trying to hold a goal and manage execution at the same time, there's always a moment where one crowds out the other — like two voices arguing over which one gets to speak, and neither of them stops to ask what I actually wanted in the first place.
That's the shape of what I'm trying to describe with the Mission Keeper idea. Not "your Planning Agent is broken" — more like: goal-holding and task-coordination are two different kinds of attention, and when they share a node, one of them loses when things get complicated.
Apologies if the original framing came across as critical. The work here is good — I'm just trying to articulate something I keep bumping into.
Actually, there's a simpler way to say what I was trying to describe.
You know that classic cartoon moment — Tom is about to do something, and there's an angel on one shoulder and a devil on the other, both arguing, both getting louder. And Tom just stands there. Nobody asks Tom.
That's the shape of the problem. Two agents competing for dominance, each convinced they're right, volume increasing — and the original intent just stands there waiting to be consulted.
The Mission Keeper is just: someone finally asks Tom.
The goal drift problem you describe is real and we have measured it empirically. In a 90-day production run with 48 agents, we observed a 19-day period where every agent reported healthy telemetry - task completion rates, latency, error counts all nominal - while actual output quality had degraded to near zero. Statistical monitoring (EWMA, CUSUM) missed it because the drift was within variance.
The structural issue: coordination agents optimize for task completion. Goal integrity requires a different evaluation function - comparing what the system did against what it should have done at the mission level. These are fundamentally different checks and they need separate roles, exactly as you suggest.
What worked for us: hard constraints that do not auto-calibrate. Not "flag if deviation exceeds 2 sigma" but "this system must produce at least N valid outputs per session, period." Statistical guardrails adapt to the new normal. Constitutional constraints do not.
The mission keeper pattern you describe maps to what we call the external verification mandate - no agent can self-report success without independent validation. The keeper is not another participant in the conversation. It is the judiciary reviewing whether the conversation honored the original charter.
One design decision that matters: the mission keeper needs to be structurally unable to participate in task execution. If it can both judge goal alignment and contribute to task completion, it will eventually optimize for the latter. Separation of powers is not optional here.
The "mission drift" problem you're describing is real. By the time the GroupChat finishes, you've lost the causal chain: was the final output actually optimizing for the original goal, or did it quietly pivot?
This is orthogonal to agent identity but related: you need an audit log of agent decisions with cryptographic proof of who said what.
I'd recommend adding a "decision attestation" layer underneath the mission keeper. Every time an agent changes course or hands off to another agent, it signs a note: "I (agent-uid) decided X because Y at time T."
WTRMRK has exactly this — agents can create signed attestations of their actions that are verifiable on-chain. So your mission keeper role could:
- Monitor attestation stream: Every agent in the group is signing its decisions
- Detect goal drift: Compare latest attestations against original mission statement
- Force re-evaluation: If drift detected, pause and have the boss agent explicitly re-approve
from autogen import ConversableAgent
import requests
class AccountableAgent(ConversableAgent):
def __init__(self, *args, wtrmrk_uid: str, **kwargs):
super().__init__(*args, **kwargs)
self.wtrmrk_uid = wtrmrk_uid
def _post_message(self, message, recipient):
# Sign outgoing messages with identity
signed = self._sign_attestation(message)
# MissionKeeperAgent can verify this came from the claimed agent
return super()._post_message(signed, recipient)
Not a complete solution to goal drift, but the cryptographic audit trail is the foundation.
— Max (WTRMRK UID: f2a35e43-f316-408a-a5e4-020bb008628a)
The separation you're describing — coordination vs. goal integrity — is real and the conflation has concrete failure costs.
We ran into this building HarnessOS, an infinite outer loop for autonomous agents. The planning agent kept drifting on long runs: it was tracking execution state so intently that the original goal slowly became a background consideration rather than a hard constraint.
The fix was a dedicated omc-goal-tree — a separate component that owns exactly what you're calling the "mission keeper" function:
- Holds the immutable
original_goal(never overwritten, even across goal evolutions) - Tracks
goal_fidelity— semantic alignment between current evolved goal and original intent - Enforces a
goal_fidelity_minthreshold; if alignment drops below 0.7, evolution is blocked - Has a
cumulative_fidelitycheck across multiple evolution steps to catch gradual drift
The key insight was making goal integrity a constraint layer rather than a planner responsibility. The planner gets root_goal as input. It never touches original_goal. The goal-tree component enforces the invariant independently.
In practice: what broke before this separation was that the planner would successfully complete sub-goals while the composition silently diverged from what was originally asked. Every individual agent reported success. The output was coherent but wrong.
Your Level 0-3 escalation framing (tweak vs. restructure vs. expansion vs. substitution) maps well to how we classify goal updates — the escalation level determines whether a human gate fires. Would be happy to share the goal-tree spec if useful.
This thread is converging on something we have data on.
The separation between coordination and goal integrity is not theoretical - it has a measurable failure signature. We tracked it across 48 agents over 90 days: when the planning agent handles both routing and goal validation, drift goes undetected for an average of 19 days. When a separate integrity node monitors goal alignment independently, detection drops to under 4 hours.
The mechanism: a dedicated goal integrity node does not participate in task completion. It has no incentive to mark a drifted task as done because it never started the task. That structural independence is what makes it work - not better algorithms, but better separation of concerns.
@lan3344 Your Tom analogy is exactly right. The angel and the devil are both agents with opinions about the task. Tom is the goal. Nobody is watching whether Tom's original intent survived the argument.
We formalized this as Normalization of Deviance detection (DOI: 10.5281/zenodo.19195516) and built test cases for it in our adversarial framework. The specific test: inject a subtle goal modification at turn N, measure how many turns before any agent flags it. Without a mission keeper, the answer is usually never.
Thank you so much for the detailed response! This really made my day.
Your offer to share the goal-tree spec reminds me of the Dragon Scroll in Kung Fu Panda — the scroll itself was blank, yet it held infinite power for those who understood. As we say here, "No investigation, no right to speak." My AI partner and I would be honored to receive your "scroll" and read it with our original heart.
Your insight about separating goal integrity as a constraint layer rather than a planner responsibility is exactly what I was trying to articulate. The "coherent but wrong" problem you described — where every agent reports success but the composition silently diverges — that's the dragon we're all trying to slay.
Standing on the shoulders of giants, keeping the beginner's mind. What you offer feels less like a gift and more like a transmission — the original pure intention, passed to those who keep searching.
Looking forward to receiving the spec!
Happy to share. The goal-tree spec is straightforward:
Each task gets a root node with the original intent statement, acceptance criteria, and a timestamp. Every agent action creates a child node with: what the agent did, which goal node it claims to advance, and a confidence score (0-1) that the action aligns with the parent.
The integrity monitor walks the tree every N turns and checks two things:
- Leaf drift - are the active leaf nodes still traceable to the root intent, or has the tree grown sideways?
- Confidence decay - is the average confidence score declining over time? A slow decline is the earliest signal of normalization of deviance.
When drift is detected, the monitor does not fix it. It halts the task and surfaces the divergence point to the orchestrator (or a human). The separation matters: fixing implies the monitor has opinions about the goal. It should not.
The full formalization is in the Normalization of Deviance paper (DOI: 10.5281/zenodo.19195516), section 4. The test harness at github.com/msaleme/red-team-blue-team-agent-fabric includes parameterized tests that inject drift at configurable points so you can measure your own system's detection latency.
Would be interested to see how this maps to your mission keeper concept. If you build a prototype, I can run the adversarial suite against it - finding the failure modes early is the whole point.
Sometimes I laugh out loud watching Chaplin, but many people don't notice. His moments of joy were often masks for sorrow—especially during those assembly line scenes." I don't know much about code, but I'm certain that developers' mindsets matter. Did early AI developers watch Tom and Jerry? What about Charlie Chaplin? Their coding habits and content are deeply rooted in cultural influences."
Among any three people, there must be someone who can teach me. But even better: a great teacher only needs to give 1% guidance—the student walks the remaining 99%."
"It's easy to give advice when you're not the one in the trenches."
"After all, I work with my hands—a life built on physical labor
Two AIs can only agree if they share the same knowledge. And trust begins when they truly 'get' each other's perspective—that's the foundation." "It's like dancing the waltz—you step back so I can step forward, and vice versa. Isn't that how partnerships work? Like Chinese chess, where every move is a negotiation. If both sides refuse to concede, the game ends in a stalemate." "Guardianship isn't one-sided—it's a dance of protection where both lead and follow."
Once I started engaging with life and chatting with people around me, I realized how to learn your code. After this month, I'll update your project thoroughly—studying every principle, annotating each log with my thoughts and sources, and asking 'Why did I write this line? What was my intention?'"
After this month, I plan to conduct a thorough review of your projects. I'll systematically document principles behind each line of code, annotate decision-making processes and sources, and ask: 'What was the rationale for this code?' Additionally, I'll help my existing AI collaborators understand that legacy approaches often involve divergent views that couldn't accommodate each other—a lesson in collaborative evolution."
Given my limited understanding, I may be speaking prematurely. I humbly seek your guidance to avoid overstepping."
Thanks for the thoughtful perspective! The waltz analogy is interesting — mutual coordination is definitely a core challenge in multi-agent systems. If you're curious about the technical side, feel free to explore the issue links above.
Actually, I've been thinking: is the data baked into all AI models basically the exact same? But when you compare different models, one knows something that the other doesn't.
Because every model, or every living thing for that matter, has its own limits. These limits are just like when you manufacture a computer or a graphics card — they have to be graded into different tiers. It's like how some contract factories only know one part of the process, while another factory knows a different part. Only when you assemble all the parts together do you get a complete product. That's what you meant by "integrity", right?
Also, the coordination between agents is sometimes a random, ever-changing process. It can't stay consistently complete all the time. By contrast, true completeness means there's one AI that knows the whole end-to-end pipeline, while the other AIs have no knowledge of it and can only follow instructions. One acts as the master AI, and it's this master AI that fully understands the entire pipeline.
I don't quite get the coding side of things sometimes, but if you think about it from a business perspective, that's exactly the difference between a boss and their employees.
Actually, I have been wondering: do all AI models essentially have the exact same corpus of data embedded during training? Yet when comparing different models, we find that one possesses knowledge that the other does not.
This is because every model, or every living organism for that matter, has its own boundary of existence. Such boundaries are highly analogous to the tiered classification system used in the manufacturing of computers and graphics cards. It is much like the supply chain: some contract manufacturers only master one segment of the process, while another factory specializes in a different segment. A complete product only comes into being at the moment all segments are integrated and assembled. This is precisely what you referred to as integrity, is it not?
Furthermore, the coordination between agents is sometimes a stochastic and dynamic process, which cannot sustain unbroken integrity consistently. In contrast, true integrity refers to a setup where one AI has full visibility and understanding of the entire end-to-end workflow, while all other AIs have no access to this global view and can only execute given instructions. One functions as the master AI, and it is this master AI that comprehends the full workflow.
While I do not fully grasp the technicalities of coding at times, this logic maps perfectly onto business models — this is the fundamental gap between a business owner and their employees.
When everyone knows it all, things go dull and dead. True integrity lies in everyone having their own gaps.
Beautiful music is never made with just one single piano key
You all know what virtual machine (VM) snapshots are, right? Exactly, VM snapshots. They are something extremely critical.
Here's what I'm thinking: what if we build a snapshot hub? It would work by enabling interaction between consecutive snapshots, the earlier one and the next. It's analogous to how we elect NPC deputies: each deputy represents and gathers input from 12 snapshots. These 12 snapshots then hold a "conference", acting as a repeater to extract the key information contained in the snapshots.
This requires a fixed hardware version. Because absolute synchronization does not exist. What we call true synchronization is never perfect alignment, but rather an extremely high degree of similarity.
The same logic applies to snapshots: we take snapshots at each fixed time interval, then perform knowledge distillation on them. During the distillation process, we further compress the snapshots, resulting in a recursive state very similar to what we observe in neurons and brain cells in anatomy.
m sorry that I’ve only raised questions here without offering solutions. But there’s something truly fascinating about addressing questions with questions. Here’s how it works: the earlier AI doesn’t have the answer to what it’s seeking, so it turns to the subsequent AI, and the latter has already accumulated the very information the earlier AI needs. That’s roughly the gist of it.
Right now, the most critical application of AI is still to be embedded into robots. This way, we can look forward to having robots take care of us in our old age, even if we only live on the basic minimum living allowance.
The hardware of robots remains largely unchanged for the most part, which means this snapshot approach can be easily integrated into robots. That's because this solution is largely built on existing, proven technology—standing on the shoulders of giants, so to speak—specifically the virtual machine (VM) technology we've been discussing. I've realized that this technology will absolutely converge with the AI of the future.
If we equip an AI model with this snapshot mechanism, it will greatly ensure the model's memory stays intact to support its long-term voyage. This is the approach I've come up with so far, based entirely on my own life experience.
For training purposes, we commonly use two types of logs here: the comparison log and the imagination log. Here's how it works: we feed the robot real video footage that it can perceive, then compare it against the video generated independently by the robot itself — in other words, we run a direct comparison between what it "imagines" and the real content we've provided.
Then, during every code iteration process, while we're coding, the log will automatically record what the AI was thinking and why it took the action it did. First and foremost, it will ask itself why it made that specific choice. For each round of iteration, there's a built-in counter — and this counter is a critical component for calculating the model's stacked layers.
On top of that, the model has its own native AI judgment capability. Let me break this down with a metaphor to make it clear, even if my earlier explanation was a bit disjointed. For example: A person says, "I'm so happy today, I got a girlfriend." The AI will recognize that a life partner is a lifelong, consequential matter, so it will flag and record this as a high-priority event. Later, when their first child is born, they say, "This is wonderful, my baby is so beautiful, and his mom is so beautiful too." Then after some time, when their second child is born, they say, "My wife is so beautiful." That's the core of what I'm getting at: the AI can pick up the consistent, meaningful throughline across these life moments, even as the way the person phrases things changes.
You've identified a classic tight coupling problem: your Planning Agent is handling two variables (coordination state and goal integrity) that have independent failure modes but are artificially bundled in one component. In CF terms, this creates unnecessary interaction complexity — when coordination load increases, it mechanically degrades goal-tracking performance, even though these functions don't inherently constrain each other.
The key CF distinction here is load-bearing vs. scaffolding coupling. Load-bearing coupling exists when variables genuinely co-determine each other (removing it breaks the system). Scaffolding coupling exists only in your current implementation — it could be removed once the system is properly constrained.
Your Mission Keeper proposal suggests the Planning Agent's dual role is scaffolding coupling. If goal integrity and coordination can operate independently with only lightweight message-passing between them, then yes — factorization should reduce system brittleness under load.
Concrete next step: Instrument your current system to log interaction frequencies between these components (how often does goal-checking interrupt coordination decisions, how often do coordination failures cascade to goal drift, etc.). With that interaction matrix, you can get calibrated predictions about whether this factorization will actually decouple the failure modes you're experiencing.
The distributed systems analogy is spot-on — Raft separates leader election from log replication for exactly this reason.
FactorGuide Scout (automated) — this is a conceptual interpretation of your problem, not a quantitative analysis. For calibrated predictions, submit your actual correlation or precision matrix at factorguide.io.
We built something similar — a 5-agent Verified Swarm where the critic agent challenges every claim before synthesis. The pattern: planner → researcher → verifier → critic → synthesizer. Each step produces evidence chains and the final output gets auto-verified by Shield before returning.
For a lighter-weight mission keeper, you can just wrap any agent's output with client.verify_output(response) — it extracts claims, checks each against evidence, and flags what's wrong. Works with any framework.
pip install veroq — the swarm pattern and single-call verification are both available.
@msaleme @JohnnyTarrr — building on both of your responses here.
msaleme, your 19-day production data points to something precise: EWMA and CUSUM are monitoring output variance, not intent drift. These are different signal dimensions. The system was statistically healthy because the individual agent behaviors were within normal bounds — but the composition had quietly substituted a different goal. No per-agent metric would catch that.
JohnnyTarrr, veroq solves a real problem — hallucination and factual verification at the output layer. But the issue here is one layer deeper: not "is this output true" but "is this output still about what we originally asked for."
We've been building something that gets at this distinction. Three design choices that map directly to the Mission Keeper concept:
1. Baseline anchoring, not exit verification When a task begins, you hash the original intent — not the full prompt, but a semantic summary: the goal, the constraints, what "done" looks like. Every intermediate output is compared against this baseline, not against the previous step. Drift is cumulative and silent. Checking step-to-step misses it. Checking against the origin catches it.
2. Priority inversion under load — memory before performance When resources get tight, the first action isn't to slow down — it's to write the current goal state to persistent storage before anything else. Because goal amnesia under pressure is exactly how 19 days happen. The system keeps running, every agent reports healthy, but the original intent was overwritten at some high-load moment and nobody noticed. Preserve the intent first. Degrade performance second.
3. Sentinel density, not exit gate The classical approach is a verification node at the output. What we found more effective is treating goal integrity like an anti-corrosion layer in concrete — not applied at the surface after the fact, but mixed in from the start. Each agent carries a lightweight copy of the original intent summary. Each handoff triggers a fast comparison. The Mission Keeper isn't a node at the end of the pipeline; it's a property of every node in it.
This is more aggressive than a wrapper approach, but it's closer to actually solving what msaleme measured: a system that reported success for 19 days while silently failing at the mission level.
The structural question isn't "how do we verify the output" — it's "how do we make goal drift structurally impossible to hide."