Skip to content

fix(workflows): support chunked card number reading#6448

Open
chenghao-mou wants to merge 1 commit into
chenghao/fix/AGT-3139-credit-card-confirm-routingfrom
chenghao/fix/AGT-3141-chunked-card-number
Open

fix(workflows): support chunked card number reading#6448
chenghao-mou wants to merge 1 commit into
chenghao/fix/AGT-3139-credit-card-confirm-routingfrom
chenghao/fix/AGT-3141-chunked-card-number

Conversation

@chenghao-mou

Copy link
Copy Markdown
Member

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_number forbids 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 daemon with 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

…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>
@chenghao-mou chenghao-mou requested a review from a team as a code owner July 15, 2026 21:36

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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.

2 participants