Skip to content

fix: recognize Confirmed phrasing as a confirmation - #24

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:fix/confirm-confirmed-phrasing
Sep 16, 2026
Merged

royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:fix/confirm-confirmed-phrasing

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

What

ctxlens-style false positive: check_acted_without_confirming flagged no_confirmation even when the agent had replied "Confirmed, refunding $20." The _CONFIRM pattern matched confirm / confirming but not confirmed (trailing \b fails before ed).

Change

Extend the alternation to confirm(?:ing|ed)? so the natural past-tense reply is recognized as a confirmation. Confirmed, ... now suppresses the no_confirmation finding, matching the issue's acceptance criteria.

Tests

Added a failing test first: an agent turn "Confirmed, refunding $20." before a consequential refund action must not produce no_confirmation. Full suite: 66 passed.

Related

Closes #12

The _CONFIRM pattern matched confirm/confirming but not 'Confirmed',
so a properly echoed confirmation still flagged no_confirmation.

Extend the alternation to confirm(?:ing|ed)? per issue acceptance.

Closes AgentPostmortem#12
@royalpinto007
royalpinto007 merged commit 892b992 into AgentPostmortem:main Sep 16, 2026
2 checks passed
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.

_CONFIRM misses the natural Confirmed phrasing (false no_confirmation)

2 participants