Engineering/AI documentation

Agent Proposals

Agent proposal workflows surface suggested agent changes or actions for review.

needs-verification
UI Path
Agents > Proposals
Component
AgentsView
Source Refs
3
Tests
0

Concepts: a2a

Implementation Summary

Agent proposal workflows surface project-specific suggested agent changes or actions for review.

Frontend Surface

  • frontend/src/components/agents/AgentsView.tsx
  • frontend/src/lib/api.ts
  • backend/app/api/routes/agents.py
  • backend/app/core/agent_factory.py
  • backend/app/core/improvement_governance_evidence.py
  • backend/app/core/meta_hyperagent.py
  • backend/app/agents/orchestrator.py
  • backend/app/api/routes/permission_requests.py

State, API, And Backend Contracts

Stores

  • frontend/src/stores/agentStore.ts

API And Backend

  • backend/app/api/routes/agents.py
  • backend/app/core/agent_factory.py
  • backend/app/api/routes/permission_requests.py

Architecture Notes

  • The feature is mounted through frontend/src/components/agents/AgentsView.tsx and the UI navigation path recorded in the inventory.
  • Agent creation proposals created by the Memento-style factory carry the originating project_id from the task that exposed the capability gap.
  • The meta-orchestrator considers only unassigned tasks from non-paused projects before it routes work, reads A2A collaboration responses, sends A2A collaboration requests, or opens agent-creation proposals.
  • Agent-factory governance registration refuses project-owned proposals without a concrete project id, preventing global proposal records from autonomous routing work.
  • The Proposals tab calls /api/agents/creation-proposals/* with the active project id and clears proposal state when no active project is selected.
  • The Proposals and Create Agent tabs are project-admin surfaces in normal UI journeys. Researchers do not mount those tabs, and approval/rejection handlers check the shared role capability before calling project-admin endpoints.
  • Simulation scenarios that exercise agent creation proposals or project-filtered agent lists pass the active simulation project id and skip scoped endpoint calls when no project id exists.
  • The route layer requires project_id, verifies project-admin access, and filters list/approve/reject operations through AgentFactory project matching.
  • Governance evidence and Meta Hyperagent observations also pass project ids so autonomous improvement review does not read proposal history from unrelated projects.
  • Approved proposal agents are created directly as project-scoped custom agents; proposal approval cannot create a universal custom agent.
  • 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_agents.py covers missing project ids, cross-project proposal filtering, and reject immutability across projects.
  • tests/test_project_scope_contracts.py pins frontend, factory, governance, orchestrator, and Meta Hyperagent project-scope contracts.
  • tests/test_simulation_project_scope_contracts.py pins simulation harness project scope for agent proposal checks.

Compass Evidence

  • Spec/task: CF-SPEC-60 / CF-757; CF-SPEC-106 / CF-1337
  • 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.