Skip to content

Add optional adaptive escalation verification for Plan-Execute - #432

Open
HemVadgama wants to merge 1 commit into
IBM:mainfrom
HemVadgama:issue-adaptive-escalation
Open

Add optional adaptive escalation verification for Plan-Execute#432
HemVadgama wants to merge 1 commit into
IBM:mainfrom
HemVadgama:issue-adaptive-escalation

Conversation

@HemVadgama

Copy link
Copy Markdown

Summary

This PR introduces an experimental, flag-gated adaptive escalation mechanism for the Plan-Execute runner.

The goal is to provide a small, incremental foundation for adaptive orchestration without changing the default execution behavior.

Changes

  • Added deterministic escalation policy based on execution signals.

  • Added optional adaptive_escalation flag to PlanExecuteRunner.

  • Default behavior remains unchanged (adaptive_escalation=False).

  • When enabled:

    • execution signals are extracted after plan execution,
    • observability attributes are recorded,
    • an additional verification pass is performed only if the deterministic policy decides escalation is necessary,
    • verification notes are incorporated into the final summarization.

Testing

Verified with:

uv run pytest src/agent/tests/test_escalation.py
uv run pytest src/agent/tests/test_runner.py
uv run pytest src/agent/tests

All tests pass.

Notes

This is intended as an incremental step toward evaluating adaptive orchestration strategies rather than a replacement for the existing Plan-Execute architecture.

Related to #360

@DhavalRepo18

Copy link
Copy Markdown
Collaborator

@ShuxinLin What is plan for this PR?

Signed-off-by: Hem Vadgama <vadgama.hem@gmail.com>
@HemVadgama
HemVadgama force-pushed the issue-adaptive-escalation branch from 6de9221 to fea5106 Compare August 14, 2026 20:28

@DhavalRepo18 DhavalRepo18 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hi Hem,

We will review this feature, but you need to provide a technical report on why escalation is important.

What benefits does it bring?

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.

2 participants