feat(agents): add Jupyter-backed code policy module - #3259
Open
TomCC7 wants to merge 4 commits into
Open
Conversation
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## cc/feat/repl-module #3259 +/- ##
=======================================================
+ Coverage 75.01% 75.09% +0.08%
=======================================================
Files 1118 1124 +6
Lines 106527 106923 +396
Branches 9690 9711 +21
=======================================================
+ Hits 79910 80298 +388
+ Misses 23796 23793 -3
- Partials 2821 2832 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
TomCC7
commented
Jul 29, 2026
TomCC7
marked this pull request as ready for review
July 29, 2026 03:46
TomCC7
requested review from
Dreamsorcerer,
leshy,
mustafab0,
paul-nechifor and
spomichter
as code owners
July 29, 2026 03:46
leshy
reviewed
Jul 29, 2026
| Combined PointCloud2 with all points colored by object (empty if no points). | ||
| """ | ||
| if not objects: | ||
| return PointCloud2(pointcloud=o3d.geometry.PointCloud(), frame_id="", ts=0.0) |
Member
There was a problem hiding this comment.
what is this file? this whole file needs to be deleted
leshy
reviewed
Jul 29, 2026
| timestamp_db_path: bool = False | ||
|
|
||
|
|
||
| class ManipulationPolicyRecorder(WorldBeliefRecorder): |
Member
There was a problem hiding this comment.
I think this belongs closer to your blueprints and not in detections or perception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution path
Problem
DimOS agents can call predefined skills, but they cannot submit a Python program that processes native observations, branches or retries, and composes deployed RPCs as one synchronous policy rollout.
Solution
CodePolicyModuleexposing one synchronouspython_exec(code, timeout_s)MCP skill.jupyter_client+ipykernelstack instead of a custom worker protocol.Dimosapp handle and a Memory2SqliteStoreattached to the explicitly configured recorder database.xarm-perception-sim-agent.ipykernelandjupyter-clientare explicit dependencies of theagentsextra and are imported lazily. The v1 interface is foreground-only, text-only, single-call-at-a-time, and intentionally not a security sandbox. Real-hardware blueprints are unchanged.How to Test
Install and run the xArm simulation:
From another terminal:
uv run dimos mcp call python_exec --json-args \ '{"code":"print(memory.list_streams()); print(app.skills.get_robot_state())"}'Focused automated validation:
The focused suite passes 129 tests. Ruff formatting/checks, strict mypy over the changed source files, blueprint registry generation, lockfile validation, staged pre-commit hooks, and
git diff --checkalso pass. A live MCP smoke test verified access to an actively recording Memory2 database, DimOS RPC calls, namespace persistence, historical queries, and interrupt-first timeout recovery.AI assistance
OpenAI Codex with GPT-5 was substantially involved in design discussion, implementation, tests, documentation, and validation. The author reviewed and approved the direction interactively.
Checklist