Local mirror of earlier internal planning notes.
Last synced: March 2, 2026
Version: Draft v0.1
Purpose: Consolidate architectural discussions on implementing EvoMap-class self-evolution capability using AI coding plus the Oris kernel.
The current repository already contains the first executable slice of this design:
crates/oris-kernelis the deterministic execution substrate.crates/oris-execution-runtimeis the graph-agnostic runtime control plane.crates/oris-evolutiondefines genes, capsules, events, projections, and the append-only JSONL evolution store.crates/oris-sandboxapplies mutations in a constrained local sandbox.crates/oris-evokernelwires mutation capture, validation, capsule construction, and replay-first reuse.crates/oris-runtime/src/evolution.rsre-exports the EvoKernel API asoris_runtime::evolutionbehind the experimentalevolution-experimentalfeature.- The checked-in example and smoke test use
full-evolution-experimentalwhen they need the aggregateoris-runtimeexperimental facade set (evolution,governor,evolution_network,economics,spec_contract, andagent_contract) at the same time.
Today the implementation covers the execution hook, append-only storage, selector, and replay-first behavior in an experimental form. Governance, network propagation, and stronger isolation remain design targets rather than fully implemented capabilities.
This document defines how to evolve Oris from an execution framework into a self-evolving agent operating system capable of:
- Capturing successful AI coding executions
- Converting execution outcomes into reusable evolution assets
- Applying selection pressure over accumulated experience
- Enabling deterministic replay and inheritance
- Supporting multi-agent evolutionary knowledge sharing
The goal is post-training intelligence evolution, where improvement happens through execution history rather than model retraining.
Traditional AI coding:
Prompt -> LLM -> Code -> Done
Self-evolving system:
Task
-> Execution
-> Validation
-> Evolution Asset
-> Selection
-> Behavior Change
Key principle:
Intelligence improves through verified execution reuse, not reasoning repetition.
User Task
v
Planner
v
Executor
v
Mutation Engine
v
Sandbox Runtime
v
Validation
v
Evolution Governor
v
Solidify
v
Evolution Store
v
Selector
v
Future Execution
This forms a continuous evolution feedback loop.
Self-evolution relies on structured, machine-verifiable assets.
Reusable problem-solving strategy.
Example:
Signal:
rust borrow error
Strategy:
reduce lifetime scope
Structure:
- signals
- strategy
- validation rules
- constraints
Represents how problems are solved.
A successful real execution instance.
Contains:
- applied gene
- code diff hash
- confidence score
- environment fingerprint
- outcome metrics
Represents proof that strategy worked.
Append-only historical record:
- intent
- signals detected
- genes used
- execution result
- validation outcome
Provides auditability and replay.
Evolution must trigger only after validation success.
Correct hook position:
Generate Patch
-> Apply Patch
-> Execute
-> Validation PASS
-> Evolution Hook
Never evolve from prompts or explanations.
Capture:
- task intent
- generated diff
- execution logs
- validation result
- runtime metadata
Transform execution into evolution assets automatically.
Validation PASS
-> Signal Extraction
-> Mutation Creation
-> Gene Generation
-> Capsule Creation
-> Event Append
Solidification converts temporary success into permanent intelligence.
The store must be append-only.
Recommended structure:
/evolution
|- genes.json
|- capsules.json
`- events.jsonl
Current repository layout:
.oris/evolution/
events.jsonl
genes.json
capsules.json
LOCK
Properties:
- immutable history
- deterministic replay
- audit capability
- trust preservation
events.jsonl is the source of truth. genes.json and capsules.json are
projection caches rebuilt from the log.
Evolution occurs through selection pressure.
Gene scoring factors:
- success rate
- reuse frequency
- environment diversity
- recency decay
Execution preference shifts from reasoning toward reuse:
selection > reasoning
Before invoking LLM reasoning:
Detect Signals
-> Find Capsule
-> Apply Known Patch
-> Skip Reasoning
Expected result:
- reduced token usage
- faster execution
- stabilized behavior
Current behavior: StoreReplayExecutor attempts capsule replay first and falls
back to the planner when patch application or validation fails. Callers that
need explicit replay auditability can supply a replay run id through
replay_or_fallback_for_run(...); the convenience replay_or_fallback(...)
path auto-generates one.
Self-evolving systems collapse without governance.
Governor responsibilities:
Limit evolution speed and prevent strategy drift.
Evaluate impact scope:
- files changed
- lines modified
Large mutations require stricter promotion.
Avoid monoculture failure.
Maintain an exploration rate of roughly 10-20 percent.
Automatically revoke degrading genes.
Introduce cooldown after promotion to prevent mutation cascades.
Candidate
v
Promoted
v
Revoked
v
Archived
Promotion requires repeated verified success.
Transition from single-agent learning to shared intelligence.
Oris Node <-> Oris Node <-> Oris Node
Each node:
- evolves locally
- publishes assets
- inherits remote experience
Standard transmission unit containing:
- sender
- timestamp
- assets
- protocol metadata
Share promoted capsules.
Retrieve remote experience based on signals.
Remote assets enter quarantine before promotion.
Required protections:
- content-addressed assets (hash verification)
- node reputation scoring
- candidate quarantine
- deterministic validation replay
These controls prevent malicious evolution propagation.
Agent writes code.
Successful executions become reusable assets.
Repeated issues become auto-resolved.
Reasoning demand decreases.
Network intelligence emerges.
Final system:
Oris =
Deterministic Execution
+
Evolution Memory
+
Selection Pressure
+
Network Sharing
Result:
A self-improving software factory.
Intelligence scaling is achieved through evolution rather than model size.
- Codex execution hook
- Solidify pipeline
- Evolution store
- Selector engine
- Evolution governor
- Replay executor
- Network envelope protocol
Successful implementation transforms Oris into:
Git for Intelligence Evolution
A platform where verified experience becomes transferable machine capability.
The linked Notion subpages are mirrored under docs/evokernel/:
docs/evokernel/architecture.mddocs/evokernel/evolution.mddocs/evokernel/governor.mddocs/evokernel/network.mddocs/evokernel/economics.mddocs/evokernel/kernel.mddocs/evokernel/implementation-roadmap.mddocs/evokernel/bootstrap.mddocs/evokernel/agent.mddocs/evokernel/devloop.mddocs/evokernel/spec.mddocs/evokernel/vision.mddocs/evokernel/founding-paper.md