Skip to content

Count repeated hedged claims - #17

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
mmaxjr:fix/hedged-claim-count
Aug 6, 2026
Merged

Count repeated hedged claims#17
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
mmaxjr:fix/hedged-claim-count

Conversation

@mmaxjr

@mmaxjr mmaxjr commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Closes #7

Summary

  • count every hedge occurrence instead of stopping after the first match per pattern
  • add a regression test for the same hedge appearing three times

Verification

  • python -m pytest tests/test_agentrace.py::test_repeated_hedged_claims_are_counted -q
  • python -m pytest -q
  • python -m py_compile agentrace\checks.py tests\test_agentrace.py

@royalpinto007
royalpinto007 merged commit 1da9cf6 into AgentPostmortem:main Aug 6, 2026
@royalpinto007

Copy link
Copy Markdown
Collaborator

Merged, thanks @mmaxjr. Dropping the break is exactly right, and the regression test for the same hedge appearing three times is the part I would have forgotten. Verified locally: 18 tests pass.

If the project is useful to you, a star helps more people find it.

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.

hedged_claim reports the number of hedge patterns, not the number of hedged claims

2 participants