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

@HemVadgama HemVadgama force-pushed the issue-adaptive-escalation branch from 2d95602 to 2b33a1b Compare July 7, 2026 17:04
Signed-off-by: Hem Vadgama <vadgama.hem@gmail.com>
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