Rebuilds the agent registration form into 7 governance sections (Identity,
Classification, Autonomy, IP, Tech Stack, Data Safety, Performance, Declarations)
and introduces a completion flow for agents that come in via the LibreChat
collector without the new required fields.
- New form fields: business_entity, client_scope, agent_classification,
autonomy_level, ip_ownership, foundation_model, validated_by/date, evals_method,
plus nested safety / pii / declarations objects and a registration_complete flag.
- registration_complete defaults to true for form-submitted agents and false for
collector-created ones; existing agents are grandfathered via a startup migration.
- Owner-by-email lookup so LibreChat-synced agents surface in the user's "My Agents"
view with an Incomplete badge and Complete CTA. Submitting the completion form
reassigns created_by from the collector marker to the user.
- Daily APScheduler job sends a digest reminder email per owner with a 7-day
cooldown and 4-nudge cap (configurable). Manual trigger via
POST /api/admin/completion-reminders/send.
- Admin banner + modal for collector agents whose contact email doesn't match an
active user, with one-click reassignment.
- Gemini audit extended to also return agent_classification and an autonomy hint;
applied to agents on next batch run alongside discipline/department.
- New filter dimensions on agent management + admin dashboard: Business Entity,
Agent Type, Autonomy, plus a Compliance Risks quick toggle.
- CSV export/import gains 21 columns covering all governance fields.
- Discipline 'Optimization' renamed to 'Optimisation' with idempotent startup
migration; Gemini system prompt and template dropdowns updated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>