Skip to content

feat: Cognito Agent Phase 5 - Uncertainty-Based Escalation#7

Merged
Axlfc merged 1 commit into
masterfrom
feat/cognito-agent-loop-fase1-17852941190475397888
Jul 9, 2026
Merged

feat: Cognito Agent Phase 5 - Uncertainty-Based Escalation#7
Axlfc merged 1 commit into
masterfrom
feat/cognito-agent-loop-fase1-17852941190475397888

Conversation

@Axlfc

@Axlfc Axlfc commented Jul 9, 2026

Copy link
Copy Markdown
Owner
  • Implemented aggregate_uncertainty in app/core/uncertainty.py.
  • Added generate_with_uncertainty to BackendClient to collect aggregated metrics.
  • Added ESCALATION_ROUTING to define higher-capacity fallback models.
  • Integrated adaptive escalation in SemanticOrchestrator:
    • Automatically retries subtasks once if uncertainty exceeds 0.6.
    • Tracks and logs escalation events.
    • Reports escalation status in routing metadata.
  • Implemented one-time warnings for backends not supporting logprobs.
  • Comprehensive test suite for aggregation, client metrics, and escalation logic.
  • Updated README with Phase 5 documentation.

- Implemented `aggregate_uncertainty` in `app/core/uncertainty.py`.
- Added `generate_with_uncertainty` to `BackendClient` to collect aggregated metrics.
- Added `ESCALATION_ROUTING` to define higher-capacity fallback models.
- Integrated adaptive escalation in `SemanticOrchestrator`:
    - Automatically retries subtasks once if uncertainty exceeds 0.6.
    - Tracks and logs escalation events.
    - Reports escalation status in routing metadata.
- Implemented one-time warnings for backends not supporting logprobs.
- Comprehensive test suite for aggregation, client metrics, and escalation logic.
- Updated README with Phase 5 documentation.

Co-authored-by: Axlfc <14998495+Axlfc@users.noreply.github.com>
@Axlfc Axlfc merged commit f7cb9e2 into master Jul 9, 2026
1 check passed
@Axlfc Axlfc deleted the feat/cognito-agent-loop-fase1-17852941190475397888 branch July 9, 2026 23:25
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