Repository navigation
feat(analytics): loop executions as a distinct Loops bucket/color in timeline views (#1150) - #1152
Merged
Merged
Conversation
…timeline views (#1150) - Remap triggered_by=loop from Scheduled to a new Loops bucket in _TRIGGER_BUCKETS / _BUCKET_ORDER (read-time bucketing — historical loop rows remap automatically, no migration) - BUCKET_COLORS: Loops = fuchsia-400, a deliberate accent so loop bursts read distinctly from Scheduled (cyan) and Agent-to-agent (teal) - ExecutionsPanel: fuchsia loop trigger chip (light+dark) + loop option in the trigger filter dropdown - routers/executions.py: add loop to _VALID_TRIGGERS — without it the new dropdown option would be a silent no-op (router nulls unknown values) - StackedBarChart: slate fallback for buckets missing from the colors map (stale bundle vs newer backend renders gray, not invisible) - Tests: Loops bucket assertions + dropdown/_VALID_TRIGGERS drift guard Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
…ith Loops bucket (#1150) Co-Authored-By: Claude Fable 5 <[email protected]>
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.
Summary
triggered_by="loop"executions get a first-class Loops bucket in_TRIGGER_BUCKETS/_BUCKET_ORDER(inserted after Scheduled) instead of folding into Scheduled — a 50-run loop no longer reads as a burst of cron work. Bucketing is read-time, so historical loop rows remap automatically (no migration).#e879f9) inOverviewPanel.vue— a deliberate accent so loop segments read distinctly from Scheduled (cyan) and Agent-to-agent (teal) neighbors; matching fuchsia trigger chip (light + dark) and aloopoption in the Executions trigger filter dropdown.loopto_VALID_TRIGGERSinrouters/executions.py— the router silently nulls unknown filter values, so the dropdown option would otherwise be a silent no-op returning all executions.StackedBarChart.vue: slate fallback for buckets missing from the colors map (stale cached bundle vs newer backend renders gray, not invisible).Changes
src/backend/db/schedules.py— Loops bucket mapping + ordersrc/backend/routers/executions.py—loopin_VALID_TRIGGERSsrc/frontend/src/components/OverviewPanel.vue— BUCKET_COLORS entry + palette commentsrc/frontend/src/components/ExecutionsPanel.vue— chip class + dropdown optionsrc/frontend/src/components/StackedBarChart.vue—colorFor()fallbacktests/unit/test_agent_analytics.py— Loops bucket assertions (isolation + per-day stack + canonical order)tests/unit/test_fleet_executions.py— allowlist regression + dropdown⊆_VALID_TRIGGERSdrift guarddocs/memory/architecture.md, feature flows (overview, executions-dashboard, run-agent-loop),tests/registry.jsonTest Plan
pytest tests/unit/test_agent_analytics.py tests/unit/test_fleet_executions.py— 43 passedOthercatch-all behavior preserved (covered by existing tests)loopNotes
Fixes #1150
🤖 Generated with Claude Code