fix: Alpha cannot reply to filedrop messages + missing debug logging + workspace context not loaded #151
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The integration test suite (#146) fails because Alpha cannot reply to filedrop messages. After investigation, there are three interconnected issues:
1. No filedrop reply mechanism
When Alpha receives a filedrop message via
session.poll_messages,_respond()generates an LLM response but only prints it to stdout. There is no mechanism to route the response back to the sender via filedrop.The
agent.pypoll_loop (line ~128) does:The response is printed but never sent back. For filedrop messages, the response should be sent back via the filedrop plugin's
send()method to the original sender.Proposed fix: After
_respond()for filedrop channel_type messages, call the filedrop plugin'ssend(sender, response)to deliver the reply. This could be:loop.after_respondthat communication plugins can hook intoagent.pypoll_loop based onchannel_type == "filedrop"2. Missing debug logging
When filedrop messages are received and processed, there is almost no debug logging. We need:
Alpha's logger config should support
level: debugincobot.ymlto enable verbose output:The logger plugin already supports this (line 65 of logger/plugin.py), but more debug-level log calls are needed in the filedrop and loop plugins.
3. Workspace context files not loaded (SOUL.md, HEARTBEAT.md)
deploy.sh(#142) deploys workspace context files toworkspace/subdir, but:./SOUL.md(CWD), which is/home/alpha/workspace/cobot/SOUL.md— this file does not exist/home/alpha/workspace/cobot/workspace/SOUL.md— never loadedProposed fix: Either:
deploy.shto copy workspace/*.md files to the cobot root dir (where SOUL.md is expected)cobot.ymlto setpaths.soul: workspace/SOUL.mdworkspace/as a fallbackOption (b) is simplest. Add to
cobot.yml:Also deploy a proper HEARTBEAT.md with instructions for Alpha to check filedrop and reply.
Expected Behavior
Test Validation
After fixes,
tests/integration/test_alpha.shshould pass (at least ping, echo, identity tests).Priority
🔴 High — This blocks integration testing and Alpha's ability to communicate via filedrop.
Files to Change
cobot/agent.pycobot/plugins/filedrop/plugin.pycobot/plugins/loop/plugin.pycobot.ymlpaths.soul, setlogger.level: debugworkspace/SOUL.mddeploy.sh