feat: construct training loop orchestrator#171
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## auto-memory/dev #171 +/- ##
==================================================
Coverage ? 71.18%
==================================================
Files ? 46
Lines ? 2887
Branches ? 0
==================================================
Hits ? 2055
Misses ? 832
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a new TrainingLoopOrchestrator to drive the auto_memory iteration loop (agent → callbacks → failure analysis → persisted feedback), and updates the memory layer to be more tolerant of corrupted persisted feedback entries.
Changes:
- Added
TrainingLoopOrchestrator+RunSummary/IterationRecordto orchestrate iterations, termination, and feedback persistence. - Made
MemoryStore.read_all()skip malformed JSONL entries with warnings (instead of raising), and exposedMemoryStore.memory_dir. - Tightened config validation for
output_path(..disallowed) and reused a module-level Jinja2 environment for prompt rendering.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/microbots/auto_memory/orchestrator.py |
New orchestrator implementing the iteration loop + run summary models |
src/microbots/auto_memory/memory.py |
Make read_all() resilient to malformed lines; add memory_dir accessor |
src/microbots/auto_memory/errors.py |
Rename timeout exception type to avoid shadowing builtin |
src/microbots/auto_memory/context.py |
Reuse a module-level Jinja2 environment for prompt rendering |
src/microbots/auto_memory/config.py |
Disallow .. segments in output_path |
src/microbots/auto_memory/callbacks.py |
Add explicit security note about shell=True execution |
test/auto_memory/test_orchestrator.py |
New unit tests covering orchestrator termination paths + delegation |
test/auto_memory/test_memory.py |
Update tests to expect warnings + skipping on malformed JSONL |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
added 2 commits
June 23, 2026 06:08
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.
No description provided.