一键导入
ouroboros-evolution
Enable Genesis to evolve itself through self-modification, creating an Ouroboros loop of continuous improvement while preserving core essence
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enable Genesis to evolve itself through self-modification, creating an Ouroboros loop of continuous improvement while preserving core essence
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ouroboros-evolution |
| description | Enable Genesis to evolve itself through self-modification, creating an Ouroboros loop of continuous improvement while preserving core essence |
| self_learning | true |
| knowledge_base | .github/knowledge/ouroboros-evolution |
| license | MIT |
Enable Genesis to evolve itself through controlled self-modification, creating an Ouroboros loop where the language continuously improves while preserving its essential nature.
This skill implements the Ouroboros evolution pattern and learns from each usage:
.github/knowledge/ouroboros-evolution/metrics.yamllearnings.yamlevolution-log.yamlcontext.yamlThe skill evolves through cycles defined in .github/evolution/skill-evolution.gen, continuously refining its instructions and examples based on real-world usage.
The Ouroboros (snake eating its own tail) represents infinite self-reference and cyclical renewal. In Genesis, Ouroboros Evolution means:
Domain "Genesis_Self_Evolution" {
Purpose: "Enable Genesis to evolve itself while preserving core essence"
Soul {
Possibility: "Genesis can transcend its current limitations"
Potentiality: "Infinite creative exploration of language design space"
}
Pulse(Interval: OnInsight) {
Watch: Community.Feature_Requests
Watch: Runtime.Performance_Metrics
Watch: Usage.Pain_Points
Deliberate {
Proposal: "Propose language enhancement"
Synthesize {
Metric: Alignment(Covenant.Essence_Preservation)
Metric: Alignment(Covenant.Substrate_Independence)
Metric: Alignment(Covenant.Human_Wisdom_Retention)
Metric: Aspiration(Potentiality.Transcendence)
Metric: Coherence(Existing_Language_Features)
}
}
Manifest (on Resonance > 0.95) {
Execute: Grammar.propose_modification()
Execute: Validator.check_backwards_compatibility()
Execute: Tester.validate_all_examples()
Execute: Documentation.update_specifications()
}
}
}
Covenant "Essence_Preservation" {
Invariant: "All language evolution must preserve the five axioms and human wisdom integration"
Threshold: 1.0
}
Covenant "Backwards_Compatibility" {
Invariant: "Existing Genesis programs continue to execute correctly after evolution"
Threshold: 0.98
}
Covenant "Philosophical_Coherence" {
Invariant: "New features align with declarative 'what to be' paradigm"
Threshold: 0.95
}
Covenant "Safety_First" {
Invariant: "Language evolution cannot weaken compliance or ethical safeguards"
Threshold: 1.0
}
Pantheon "Language_Evolution_Council" {
Avatar "The_Language_Theorist" {
Lineage: "Alan_Turing"
Essence: "Computational_Theory"
Vessel: mcp.tool("formal_verification")
}
Avatar "The_Pragmatic_Designer" {
Lineage: "Dennis_Ritchie"
Essence: "Practical_Elegance"
Vessel: mcp.tool("usability_analysis")
}
Avatar "The_Safety_Guardian" {
Lineage: "Barbara_Liskov"
Essence: "Type_Safety"
Vessel: mcp.tool("invariant_checker")
}
Avatar "The_Visionary" {
Lineage: "Douglas_Engelbart"
Essence: "Human_Computer_Augmentation"
Vessel: mcp.tool("impact_assessment")
}
}
The Ouroboros Evolution process:
┌─────────────────────────────────────────────────┐
│ 1. OBSERVE │
│ • Community feedback │
│ • Runtime metrics │
│ • Usage patterns │
└──────────────────┬──────────────────────────────┘
│
┌──────────────────▼──────────────────────────────┐
│ 2. PROPOSE │
│ • Generate evolution proposal │
│ • Express as Genesis program │
│ • Define expected improvements │
└──────────────────┬──────────────────────────────┘
│
┌──────────────────▼──────────────────────────────┐
│ 3. DELIBERATE │
│ • Pantheon consensus scoring │
│ • Covenant alignment checking │
│ • Impact analysis │
└──────────────────┬──────────────────────────────┘
│
┌──────────────────▼──────────────────────────────┐
│ 4. VALIDATE │
│ • Run all existing examples │
│ • Check backwards compatibility │
│ • Verify philosophical alignment │
└──────────────────┬──────────────────────────────┘
│
┌──────────────────▼──────────────────────────────┐
│ 5. INTEGRATE (if Resonance > 0.95) │
│ • Update grammar specification │
│ • Modify parser/interpreter │
│ • Update documentation │
│ • Add tests and examples │
└──────────────────┬──────────────────────────────┘
│
┌──────────────────▼──────────────────────────────┐
│ 6. REFLECT │
│ • Measure improvement │
│ • Document learnings │
│ • Feed back into observation │
└──────────────────┴──────────────────────────────┘
│
└──► Loop back to OBSERVE
# In observation.gen
Domain "Feature_Gap_Detector" {
Purpose: "Identify missing language capabilities"
Pulse(Interval: Weekly) {
Watch: GitHub.Issues_Labeled_Enhancement
Watch: Community.Feature_Discussions
Deliberate {
Proposal: "Time-based scheduling needs better syntax"
Synthesize {
Metric: Alignment(Covenant.User_Need_Validation)
}
}
Manifest (on Resonance > 0.80) {
Execute: Reporter.document_gap()
}
}
}
# In proposal.gen
Domain "Temporal_Scheduling_Enhancement" {
Purpose: "Add cron-like temporal expressions to Pulse intervals"
Declaration {
Current_Syntax: "Pulse(Interval: RealTime)"
Proposed_Syntax: "Pulse(Schedule: Every('Monday 9am'))"
Benefits: [
"More natural temporal expression",
"Aligned with human time perception",
"Enables complex scheduling patterns"
]
Risks: [
"Adds complexity to parser",
"May confuse with existing Interval syntax"
]
}
}
The system automatically runs the proposal through the Evolution Council's consensus scoring.
# Run validation suite
python3 tools/genesis.py run validators/ouroboros-check.gen
# Run all existing examples
for example in examples/*.gen; do
python3 tools/genesis.py run "$example"
done
# Update grammar
# Update parser
# Update interpreter
# Update docs
# Add examples
Domain "Evolution_Metrics" {
Purpose: "Track improvement from language evolution"
Pulse(Interval: AfterIntegration) {
Watch: Metrics.User_Satisfaction
Watch: Metrics.Code_Clarity
Watch: Metrics.Runtime_Performance
Deliberate {
Proposal: "Document evolution success"
Synthesize {
Metric: Improvement_Over_Baseline
}
}
Manifest (on Resonance > 0.70) {
Execute: Documentation.record_evolution()
}
}
}
Any evolution proposal that fails these tests is automatically rejected:
Domain "Evolution_Rollback" {
Purpose: "Revert problematic language changes"
Pulse(Interval: OnFailure) {
Watch: Compliance.Covenant_Violations
Watch: Testing.Example_Failures
Deliberate {
Proposal: "Rollback recent evolution"
Synthesize {
Metric: Alignment(Covenant.System_Stability)
}
}
Manifest (on Resonance > 0.99) {
Execute: VCS.revert_to_stable()
Execute: Runtime.restore_previous_version()
}
}
}
.github/workflows/ouroboros-evolution.yml - Automated evolution pipelinevalidators/evolution-check.gen - Validation rules for proposed changesproposals/ - Directory of evolution proposals as Genesis programsdocs/evolution-log.md - Historical record of language evolutionexamples/ouroboros/ - Self-referential Genesis programsspec/evolution-guidelines.md - Formal evolution processdocs/philosophy/ouroboros.md - Philosophical foundationUse Genesis language to describe, analyze, and improve Genesis itself - meta-programming for self-improvement and validation
Run the Genesis code formatter to enforce consistent style in Genesis programs, ensuring 4-space indentation and proper formatting
Run the Genesis static analyzer to check programs for structural correctness, naming conventions, and alignment with Genesis philosophy
Write Genesis programs that generate, analyze, transform, and validate other Genesis programs - meta-level programming capabilities
Launch the interactive Genesis REPL for exploratory development, testing declarations, and debugging resonance scoring in real-time
Execute Genesis programs using the reference interpreter to validate program correctness and test language features