Skip to content

Map conversation outcomes to run statuses#345

Merged
chubes4 merged 1 commit into
mainfrom
cook/generic-run-outcome-status
Jun 18, 2026
Merged

Map conversation outcomes to run statuses#345
chubes4 merged 1 commit into
mainfrom
cook/generic-run-outcome-status

Conversation

@chubes4

@chubes4 chubes4 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a generic WP_Agent_Run_Outcome helper for core-safe run outcome constants, normalization, and run-control status mapping.
  • Finalize conversation-loop and chat-dispatch run control with explicit statuses for runtime-tool pending, approval-required, budget-exceeded, stalled, failed, interrupted, and completed outcomes.
  • Keep run-control storage on the existing options-backed primitives and add targeted smoke coverage for the full status matrix.

Testing

  • php tests/run-outcome-status-smoke.php
  • php tests/chat-run-control-smoke.php
  • php tests/conversation-loop-budgets-smoke.php
  • php tests/pre-execute-approval-smoke.php
  • composer test
  • composer phpstan

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted the implementation, smoke coverage, and verification steps; Chris remains responsible for review and merge.

@chubes4 chubes4 merged commit 94ad6c1 into main Jun 18, 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