Engineering/AI documentation
Loops Overview
Loops overview summarizes automated and scheduled research loop health.
Concepts: a2a
Implementation Summary
Loops overview summarizes automated and scheduled research loop health.
Frontend Surface
frontend/src/components/loops/LoopsView.tsxfrontend/src/components/loops/LoopOverviewTab.tsxfrontend/src/stores/loopsStore.tsbackend/app/api/routes/loops.pybackend/app/services/loop_execution_service.pybackend/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_idand passrequire_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.tsclears 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.tsxand 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.pytests/test_project_scope_contracts.pytests/test_simulation_project_scope_contracts.pytests/simulation/scenarios/49-loops-schedule.mjs
Related Features
Related Concepts
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.