Replayable Agent Mission Trace & Failure Attribution #3295
SumanMadipeddi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Replayable Agent Mission Trace & Failure Attribution
I've been exploring a mission-level trace for the Go2 agentic pipeline that makes an execution reconstructable across:
user input → agent decision → tool selection → MCP execution → background activity → physical outcome
The main goal is to make it possible to answer: what happened during a mission, and where did it fail?
Current gap
Most of the underlying information already exists in DimOS, but across different layers:
McpClienthas agent/conversation stateSkillResulthas tool execution outcomesToolStreamcarries background progressmemory2stores timestamped sensor/replay dataThere isn't currently one mission-correlated execution record tying those together.
Proposed architecture
Rather than introducing another observability stack, I built the trace around existing DimOS abstractions.
Correlation follows:
where the existing
DIMOS_RUN_IDand MCPprogressTokenare reused rather than introducing redundant identifiers.A key semantic distinction is:
That becomes especially important for navigation/background skills.
What is working
The current prototype includes:
memory2persistence through amission_eventsstreamI've validated it with:
In simulation I ran movement missions such as:
and traced the model-selected
relative_moveinvocation, arguments, server execution, duration, and result through the same mission correlation chain.Tracing is currently opt-in through
unitree-go2-agentic-trace; the existingunitree-go2-agenticexecution path remains unchanged.Next layer: physical verification
The main gap I want to tackle next is distinguishing:
"the skill returned successfully"
from
"the robot actually achieved the requested physical result."
My current direction is a non-invasive
MissionVerifierusing signals already present in the Go2 stack:so a physical mission can eventually produce:
with measured evidence rather than inferring success from an RPC response.
After that, I think the same trace can support:
memory2SkillResult/ ToolStream terminal semanticsI've included the architecture diagram below, and the longer implementation/design notes are here:
Detailed design: https://docs.google.com/document/d/1VRBOK9BiP_m8GFj6sHeBcMx143DvK1CJCc81GuuM7ec/edit?tab=t.0#heading=h.u8psuqxrfybl
Prototype branch: https://github.com/SumanMadipeddi/dimos/tree/feat/agent-mission-trace
I'd especially appreciate feedback on:
MissionVerifieris the right next boundary for physical-task verification;All reactions