Engineering/AI documentation
Agent Proposals
Agent proposal workflows surface suggested agent changes or actions for review.
Concepts: a2a
Implementation Summary
Agent proposal workflows surface project-specific suggested agent changes or actions for review.
Frontend Surface
frontend/src/components/agents/AgentsView.tsxfrontend/src/lib/api.tsbackend/app/api/routes/agents.pybackend/app/core/agent_factory.pybackend/app/core/improvement_governance_evidence.pybackend/app/core/meta_hyperagent.pybackend/app/agents/orchestrator.pybackend/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.pybackend/app/core/agent_factory.pybackend/app/api/routes/permission_requests.py
Architecture Notes
- The feature is mounted through
frontend/src/components/agents/AgentsView.tsxand the UI navigation path recorded in the inventory. - Agent creation proposals created by the Memento-style factory carry the originating
project_idfrom 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 throughAgentFactoryproject 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.pycovers missing project ids, cross-project proposal filtering, and reject immutability across projects.tests/test_project_scope_contracts.pypins frontend, factory, governance, orchestrator, and Meta Hyperagent project-scope contracts.tests/test_simulation_project_scope_contracts.pypins simulation harness project scope for agent proposal checks.
Related Features
Related Concepts
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.