Fix #298: Clarify drift baseline agent scope and live session rules#323
Merged
anilmurty merged 3 commits intoJun 26, 2026
Merged
Conversation
… session rules Explain that behavioral drift baseline thresholds are computed per-agent (rather than globally) and build only from live sessions. Update the empty page warning on the Web UI and the CLI fallback message to explicitly state this. Co-Authored-By: Antigravity <noreply@google.com>
anilmurty
reviewed
Jun 26, 2026
anilmurty
left a comment
Contributor
There was a problem hiding this comment.
Thanks @tarun73 — exactly the clarity fix for #298, and on both surfaces. The new message states the two things that confused the original (per-agent threshold, and live-only so backfilled sessions won't build a baseline), and CLI + Web UI now match. Good scope call deferring the backfill-baseline compilation to a follow-up — that was the bigger half of #298 and is rightly separate. Test asserts the warning, module JS clean, all four CI green.
Ready to merge.
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.
Explain that behavioral drift baseline thresholds are computed per-agent (rather than globally) and build only from live sessions. Update the empty page warning on the Web UI and the CLI fallback message to explicitly state this.
Summary
tokenjam/ui/index.htmlto clarify the per-agent live threshold.tj driftwhen no baselines exist intokenjam/cli/cmd_drift.pyto match the Web UI message.Tests / Verification
test_drift_no_baselines_warning_messageintests/integration/test_cli.pyto verify thattj driftprints the warning header when no baselines exist.What's NOT in this PR (if scope was deliberately limited)
tj backfillis deferred to a future follow-up issue/PR.Related issue
Closes #298
@anilmurty please review
Checklist
pytest tests/unit/ tests/synthetic/ tests/agents/ tests/integration/)ruff check tokenjam/)mypy tokenjam/)tests/factories.py(not rawNormalizedSpan)@anilmurtyas reviewer (or @-mentioned him above)