Engineering/AI documentation

Loops Overview

Loops overview summarizes automated and scheduled research loop health.

documented
UI Path
Loops > Overview
Component
LoopOverviewTab
Source Refs
4
Tests
0

Concepts: a2a

Implementation Summary

Loops overview summarizes automated and scheduled research loop health.

Frontend Surface

  • frontend/src/components/loops/LoopsView.tsx
  • frontend/src/components/loops/LoopOverviewTab.tsx
  • frontend/src/stores/loopsStore.ts
  • backend/app/api/routes/loops.py
  • backend/app/services/loop_execution_service.py
  • backend/app/models/loop_execution.py

State, API, And Backend Contracts

Stores

  • frontend/src/stores/loopsStore.ts

API And Backend

  • backend/app/api/routes/loops.py
  • Project-facing requests to overview, health, agent-loop, schedule, and execution endpoints must include the active project_id and pass require_project_access; global admins do not get a projectless fallback on these feature surfaces.
  • Recent execution counts and success rates are computed through the loop execution service with the active project id, not by a global count of matching source ids.
  • frontend/src/stores/loopsStore.ts clears loop state when there is no active project instead of falling back to global automation data.
  • Simulation scenario 49 uses the same active project id for loop overview and health calls, and records scoped skips instead of issuing projectless requests when a project cannot be created or discovered.

Architecture Notes

  • The feature is mounted through frontend/src/components/loops/LoopsView.tsx and the UI navigation path recorded in the inventory.
  • Loop summaries and execution counts are derived from sources attached to the requested project, so A2A or schedule activity from another project cannot appear as "recent activity" in the active project view.
  • The frontmatter and manifest entries are the durable contract for agents updating this page after code changes.
  • When the referenced component, store, route, agent, skill, or test behavior changes, regenerate and validate the feature documentation.

Agents, Skills, LLM, MCP, And Permissions

  • Agent-to-agent behavior should be traced through agent stores, A2A routes, permissions, and review surfaces before changing assumptions.

Tests And Verification

  • tests/test_loops.py
  • tests/test_project_scope_contracts.py
  • tests/test_simulation_project_scope_contracts.py
  • tests/simulation/scenarios/49-loops-schedule.mjs

Compass Evidence

  • Spec/task: CF-SPEC-53 / CF-657; CF-SPEC-68 / CF-870; CF-SPEC-97 / CF-1237; CF-SPEC-107 / CF-1351
  • Inventory source: docs/features/inventory.json

When To Update

  • Update this page whenever the listed UI components, stores, routes, model behavior, permissions, or tests change.
  • Regenerate the site and machine manifests with python scripts/feature_docs.py --seed-missing --generate-site --check.