Engineering/AI documentation

Custom Loops

Custom loops provide a surface for user-defined recurring or automated research actions.

needs-verification
UI Path
Loops > Custom
Component
CustomLoopsTab
Source Refs
2
Tests
0

Concepts: mcp

Implementation Summary

Custom loops provide a surface for user-defined recurring or automated research actions.

Frontend Surface

  • frontend/src/components/loops/CustomLoopsTab.tsx
  • backend/app/api/routes/loops.py

State, API, And Backend Contracts

Stores

  • frontend/src/stores/loopsStore.ts

API And Backend

  • backend/app/api/routes/loops.py
  • Custom loops are created for the active project only; list/health data must not include custom schedules from other projects.
  • Simulation scenario 49 creates custom loops with the active simulation project_id and skips the endpoint when no scoped project id is available.

Architecture Notes

  • The feature is mounted through frontend/src/components/loops/CustomLoopsTab.tsx and the UI navigation path recorded in the inventory.
  • 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

  • MCP-related behavior must keep access policy, audit evidence, and tool/resource exposure synchronized with the cited route or integration component.

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-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.