Engineering/AI documentation
Governed Evolution
Governed Evolution displays proposals, archive, reasoning, and contract information for controlled system self-improvement.
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.tsxfrontend/src/lib/improvementGovernanceApi.tsfrontend/src/lib/dgmhArchiveApi.tsfrontend/src/lib/api.tsbackend/app/api/routes/improvement_governance.pybackend/app/api/routes/dgmh_archive.pybackend/app/api/routes/reasoning_bank.pybackend/app/core/improvement_governance.pybackend/app/core/dgmh_archive.pybackend/app/core/reasoning_bank.py
State, API, And Backend Contracts
Stores
- None recorded.
API And Backend
backend/app/api/routes/improvement_governance.pybackend/app/api/routes/dgmh_archive.pybackend/app/api/routes/reasoning_bank.py
Architecture Notes
- The feature is mounted through
frontend/src/components/settings/GovernedEvolutionView.tsxand 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_idsupplied 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.lessonandself_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.pytests/test_dgmh_archive.pytests/test_reasoning_bank.pytests/test_agent_learning_scope.pytests/test_project_scope_contracts.py
Related Features
Related Concepts
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.