Skip to content

feat(optimize): detect session cost outliers#224

Merged
iamtoruk merged 2 commits intogetagentseal:mainfrom
ozymandiashh:feat/session-outlier-detection
May 5, 2026
Merged

feat(optimize): detect session cost outliers#224
iamtoruk merged 2 commits intogetagentseal:mainfrom
ozymandiashh:feat/session-outlier-detection

Conversation

@ozymandiashh
Copy link
Copy Markdown
Contributor

Summary

  • add an optimize finding for sessions that cost more than 2x their peer-session average in the same project
  • ignore tiny absolute-cost outliers to avoid noisy findings
  • add focused coverage for minimum samples, exact 2x boundary, absolute-cost filtering, and per-project baselines

Part of #12, item 5b.

Validation

  • npx tsc --noEmit
  • npx vitest run tests/optimize.test.ts
  • npx vitest run
  • npm run build

Pre-commit review

  • Argus-style reviewer: PASS
  • Gemini 3.1 Pro Preview: PASS

@iamtoruk iamtoruk merged commit e756005 into getagentseal:main May 5, 2026
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