Skip to content

refactor(agent): unify process_direct return contract#19

Merged
bitifirefly merged 1 commit intodevelopfrom
backport/upstream-20260322-batch5
Mar 22, 2026
Merged

refactor(agent): unify process_direct return contract#19
bitifirefly merged 1 commit intodevelopfrom
backport/upstream-20260322-batch5

Conversation

@bitifirefly
Copy link
Copy Markdown

Summary

  • unify AgentLoop.process_direct() to return OutboundMessage | None instead of raw text
  • update CLI call paths (gateway, agent, cron run, heartbeat) to consume outbound envelope content consistently
  • update hardware runtime and digital task service to normalize direct-call outputs via safe text extraction
  • align affected tests with the unified return contract

Validation

  • ruff check on touched files
  • targeted pytest for affected modules (66 passed)
  • full suite: pytest -q (396 passed)

@bitifirefly bitifirefly merged commit 62c21c2 into develop Mar 22, 2026
2 checks passed
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.

1 participant