Skip to content

fix: integrate action feedback loop into fuser prompt#2128

Open
0xbyt4 wants to merge 1 commit intoOpenMind:mainfrom
0xbyt4:fix/fuser-unused-finished-promises
Open

fix: integrate action feedback loop into fuser prompt#2128
0xbyt4 wants to merge 1 commit intoOpenMind:mainfrom
0xbyt4:fix/fuser-unused-finished-promises

Conversation

@0xbyt4
Copy link
Collaborator

@0xbyt4 0xbyt4 commented Feb 5, 2026

Summary

  • flush_promises() in ActionOrchestrator now extracts .result() from completed asyncio tasks instead of returning raw Task objects
  • Fuser.fuse() now formats and includes finished_promises as a "PREVIOUS ACTION RESULTS" section in the LLM prompt
  • Previously, action results were collected each tick but silently discarded — the LLM never received feedback about what actions were executed

Changes

  • src/actions/orchestrator.py: Extract actual results from done tasks with exception handling
  • src/fuser/__init__.py: New _format_action_feedback() method; action feedback placed between inputs and available actions in prompt
  • tests/actions/test_orchestrator.py: 3 new tests for flush_promises result extraction
  • tests/fuser/test_init.py: 6 new tests for action feedback formatting and prompt integration

flush_promises() now extracts .result() from completed tasks instead of
returning raw asyncio.Task objects. Fuser includes previous action results
in the LLM prompt under "PREVIOUS ACTION RESULTS" section, closing the
broken feedback loop where action outcomes were silently discarded.
@0xbyt4 0xbyt4 requested review from a team as code owners February 5, 2026 19:51
@github-actions github-actions bot added robotics Robotics code changes python Python code tests Test files labels Feb 5, 2026
@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/fuser/__init__.py 84.21% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Python code robotics Robotics code changes tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant