fix(workflows): support chunked card number reading#6448
Open
chenghao-mou wants to merge 1 commit into
Open
Conversation
…knowledgment Callers naturally read card numbers in groups and expect acknowledgment between them; GetCardNumberTask previously pushed them to read the whole number in one go. Teach the audio instructions grouped capture (brief, digit-free acknowledgments between groups; the agent never utters digits) and have update_card_number concatenate the groups into a single final call. Luhn validation and caller repeat-back confirmation remain the correctness backstop. Fixes AGT-3141 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
theomonnom
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Callers naturally read card numbers in groups and expect acknowledgment between them ("the first four are 4 5 3 9"); GetCardNumberTask previously pushed them to read the whole number in one utterance (
update_card_numberforbids incremental calls and the instructions had no grouped-capture guidance).Prompt-level fix: the audio instructions now describe group-wise collection with brief, digit-free acknowledgments (the agent never utters digits, per the existing PCI constraint in the base instructions), and the tool docstring instructs concatenating the groups in order into a single call. Verified via
lk agent daemonwith four distinct groups: correct in-order concatenation, Luhn pass, caller repeat-back confirmation, and a mid-flow restart. No stateful chunk-buffer tool needed.Stacked on #6447 (base branch
chenghao/fix/AGT-3139-credit-card-confirm-routing); will retarget to main once that merges.Fixes AGT-3141
🤖 Generated with Claude Code