Engineering/AI documentation

Governed Evolution

Governed Evolution displays proposals, archive, reasoning, and contract information for controlled system self-improvement.

documented
UI Path
Settings > Governed Evolution
Component
GovernedEvolutionView
Source Refs
4
Tests
0

Concepts: compass-forge

Implementation Summary

Governed Evolution displays project-scoped proposals, archive variants, reasoning memories, and contract information for controlled system self-improvement.

Frontend Surface

  • frontend/src/components/settings/GovernedEvolutionView.tsx
  • frontend/src/lib/improvementGovernanceApi.ts
  • frontend/src/lib/dgmhArchiveApi.ts
  • frontend/src/lib/api.ts
  • backend/app/api/routes/improvement_governance.py
  • backend/app/api/routes/dgmh_archive.py
  • backend/app/api/routes/reasoning_bank.py
  • backend/app/core/improvement_governance.py
  • backend/app/core/dgmh_archive.py
  • backend/app/core/reasoning_bank.py

State, API, And Backend Contracts

Stores

  • None recorded.

API And Backend

  • backend/app/api/routes/improvement_governance.py
  • backend/app/api/routes/dgmh_archive.py
  • backend/app/api/routes/reasoning_bank.py

Architecture Notes

  • The feature is mounted through frontend/src/components/settings/GovernedEvolutionView.tsx and the UI navigation path recorded in the inventory.
  • The view does not fetch governed evolution data without an active project. Proposal, archive, and ReasoningBank requests pass the active project_id; backend routes reject missing project scope and verify that the project exists before returning project content.
  • Proposal and archive action routes bind the record id to the same project_id supplied by the UI, so approvals, sandbox evaluations, applies, reverts, and quarantines cannot act on records from another project.
  • Agent self-evolution scan, auto-evolution, and promotion routes also require a project_id. Candidate qualification uses only project-local learning records; DevOps global audits no longer run persona self-evolution scans without project context.
  • Project-owned autonomous producers, including AutoResearch, Meta-Hyperagent, Memento agent factory, skill proposal producers, and self-evolution promotions, must provide a concrete project id before governance can create a proposal record.
  • Autoresearch proposals are generated from sandboxed measurements. Candidate mutations are reverted before governance records are created, and approval is the only path toward applying them to production state.
  • Meta-Hyperagent proposals create project-scoped variants that owning services consult at read time; they do not mutate process globals. Self-evolution thresholds therefore remain isolated per project.
  • ReasoningBank retrieval defaults to project-only scope, and this API also passes include_global=False, preventing project-facing prompt context from mixing with unscoped traces unless global memory is explicitly requested in trusted code.
  • ReasoningBank memory writes and self-evolution promotions emit content-free governed-learning telemetry (reasoning_bank.lesson and self_evolution.proposal) so dashboards can audit process learning without treating memory bodies or persona-promotion text as report evidence.
  • 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

  • Governed evolution, DGM-H archive, ReasoningBank, and self-evolution promotion controls are agentic governance surfaces. They remain admin-only, but this project-facing settings surface still requires an explicit active project; cross-project aggregation belongs to dedicated admin reporting surfaces.

Tests And Verification

  • tests/test_improvement_governance.py
  • tests/test_dgmh_archive.py
  • tests/test_reasoning_bank.py
  • tests/test_agent_learning_scope.py
  • tests/test_project_scope_contracts.py

Compass Evidence

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