Skip to content

feat: construct training loop orchestrator#171

Merged
KavyaSree2610 merged 3 commits into
auto-memory/devfrom
kkaitepalli/build-orchestrator
Jun 23, 2026
Merged

feat: construct training loop orchestrator#171
KavyaSree2610 merged 3 commits into
auto-memory/devfrom
kkaitepalli/build-orchestrator

Conversation

@KavyaSree2610

Copy link
Copy Markdown
Collaborator

No description provided.

@codecov-commenter

codecov-commenter commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (auto-memory/dev@5feff2f). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##             auto-memory/dev     #171   +/-   ##
==================================================
  Coverage                   ?   71.18%           
==================================================
  Files                      ?       46           
  Lines                      ?     2887           
  Branches                   ?        0           
==================================================
  Hits                       ?     2055           
  Misses                     ?      832           
  Partials                   ?        0           
Flag Coverage Δ
ghcp 32.07% <30.76%> (?)
integration 35.95% <30.76%> (?)
ollama_local 33.77% <30.76%> (?)
slow-browser 22.44% <0.00%> (?)
slow-other 39.31% <30.76%> (?)
unit 66.47% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/microbots/auto_memory/callbacks.py 100.00% <ø> (ø)
src/microbots/auto_memory/config.py 100.00% <100.00%> (ø)
src/microbots/auto_memory/context.py 100.00% <100.00%> (ø)
src/microbots/auto_memory/errors.py 100.00% <100.00%> (ø)
src/microbots/auto_memory/memory.py 100.00% <100.00%> (ø)
src/microbots/auto_memory/orchestrator.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/IterationRecord to orchestrate iterations, termination, and feedback persistence.
  • Made MemoryStore.read_all() skip malformed JSONL entries with warnings (instead of raising), and exposed MemoryStore.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.

Comment thread src/microbots/auto_memory/memory.py
Comment thread src/microbots/auto_memory/memory.py Outdated
Comment thread src/microbots/auto_memory/orchestrator.py Outdated
Comment thread src/microbots/auto_memory/orchestrator.py Outdated
Comment thread test/auto_memory/test_orchestrator.py Outdated
Kavya Sree Kaitepalli added 2 commits June 23, 2026 06:08
@KavyaSree2610 KavyaSree2610 merged commit 5e01b48 into auto-memory/dev Jun 23, 2026
10 checks passed
@KavyaSree2610 KavyaSree2610 deleted the kkaitepalli/build-orchestrator branch June 23, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants