Skip to content

fix: Better HITL tool execution decision and tool call consistency - #12345

Open
sjrl wants to merge 3 commits into
mainfrom
fix/hitl-decision-binding-hardening
Open

fix: Better HITL tool execution decision and tool call consistency#12345
sjrl wants to merge 3 commits into
mainfrom
fix/hitl-decision-binding-hardening

Conversation

@sjrl

@sjrl sjrl commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Related Issues

Proposed Changes:

Iterated on the solution in #12277 to ensure better consistency between matching tool execution decisions and tool calls.

We now consume a tool execution decision when applying them to a tool call. If we find that there are not enough tool execution decisions to match against all incoming tool calls we throw an error to the user.

How did you test it?

New and existing tests.

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

@sjrl
sjrl requested a review from a team as a code owner August 14, 2026 07:36
@sjrl
sjrl requested review from bogdankostic and removed request for a team August 14, 2026 07:36
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
haystack-docs Ignored Ignored Preview Aug 14, 2026 7:39am

Request Review

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/core/pipeline
  pipeline.py
  haystack/hooks/human_in_the_loop
  strategies.py
Project Total  

This report was generated by python-coverage-comment-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic:tests type:documentation Improvements on the docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant