Skip to content

Conversation

@vcfgv
Copy link
Collaborator

@vcfgv vcfgv commented Nov 20, 2025

📝 Pull Request Template

1. Related Issue

Closes #367

Type of Change (select one)

Bug Fix

3. Description

  • Added metadata flag helpers in connect.py so each AgentContext exposes planner_passthrough and hidden properties and introduced get_planable_agent_cards() that filters out those flagged cards; this keeps planner-facing agent lists aligned with configuration.
  • Updated planner.py to request planable agents only and reject execution plans that reference hidden/passthrough/non-existent agents, returning guidance that explains the mismatch; this blocks hallucinated or explicitly restricted agents from entering execution.

4. Testing

  • I have tested this locally.
  • I have updated or added relevant tests.

5. Checklist

Copy link
Contributor

@hazeone hazeone left a comment

Choose a reason for hiding this comment

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

LGTM

@hazeone hazeone merged commit 7e02ef5 into main Nov 21, 2025
3 checks passed
@hazeone hazeone deleted the bugfix/validate-planner-execution-plan branch November 21, 2025 01:51
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.

remind by means of message when hallucination is detected, especially when planning

2 participants