Skip to content
Back to skills

Self Evolution

ASecurity

Deterministic graph-planned self-evolution engine. Enforces 6-node state transitions, worktree isolation, verifier sovereignty, and asymmetric Layer 2 knowledge persistence.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentspythonbashnode

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill self-evolution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Self Evolution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Self Evolution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-self-evolution/badge)](https://www.skillsdirectory.com/skills/richfrem-self-evolution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: self-evolution
plugin: agent-agentic-os
version: 2.0.0
description: "Deterministic graph-planned self-evolution engine. Enforces 6-node state transitions, worktree isolation, verifier sovereignty, and asymmetric Layer 2 knowledge persistence."
allowed-tools: Read, Write, Edit, Bash
---

# Self-Evolution

Deterministic self-healing engine enforcing 6-node state transitions, worktree isolation, verifier sovereignty, and asymmetric Layer 2 persistence mediated by `scripts/evolution_state.py`.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **4-Box Qualification Gate**: Failure must be structural/recurring, verified by objective programmatic command (`exit 0`), bounded by max 3 attempts, and captured in Layer 2 persistence (`wiki/`, [map-debt.md](references/map-debt.md)).
2. **Proposal Mode Invariant**: Planning (`TRIAGE` -> `PLAN` -> `AWAITING_APPROVAL`) is strictly read-only. No repo mutations or worktree creation until human authorization.
3. **Verifier Sovereignty**: Acceptance gate is locked by SHA256 pre-execution hash; the mutation candidate cannot edit its own verifier.
4. **Asymmetric Persistence**: On pass, merge fix and promote learnings (`CONFIRMED`). On 3rd failure, rollback code but preserve failure insights and negative constraints in `wiki/` and [map-debt.md](references/map-debt.md) before teardown.

## Quick start

Check prior art and debt records before proposing an evolution cycle:

```bash
python3 scripts/audit_map_debt.py
```

## Workflow

1. **Phase 0: Prior Art & Debt Scan**: Scan [map-debt.md](references/map-debt.md) for `Repeat: YES` (escalate immediately if found) and `wiki/` for architectural constraints.
2. **Stage 1: Proposal & Approval**: Draft transaction manifest (files, verifier argv, baseline hashes). Transition to `AWAITING_APPROVAL` and halt for human confirmation.
3. **Stage 2: Sandboxed Execution**: Authorize via `evolution_state.py authorize`, create worktree sandbox (`evolution/<cid>`), apply surgical fix, and execute verifier.
4. **Stage 3: Verification & Persistence Gate**: Run controller verification (`evolution_state.py verify`). If pass, persist knowledge and merge. If 3rd attempt fails, export learnings and rollback code.
5. **Stage 4: Receipt & Completion**: Emit `EVO-INTEGRITY-...` cryptographic receipt and transition state to `COMPLETED` or `ESCALATED`.

## Verification

Verify evolution receipt integrity and cycle trace:

```bash
python3 scripts/verify_evolution_receipt.py --cycle-id <cycle-id>
```

## References

- [evolution-graph-nodes.md](references/evolution-graph-nodes.md) — Node specifications and transitions.
- [detailed-reference.md](references/detailed-reference.md) — Stage-by-stage command execution reference.
- [acceptance-criteria.md](references/acceptance-criteria.md) — Qualification criteria and gate requirements.
- [fallback-tree.md](references/fallback-tree.md) — Rollback and escalation tree.
- [map-debt.md](references/map-debt.md) — Repository friction and repeat-failure register.

Files in this skill

  • SKILL.md5.3 KB
  • evals/evals.json892 B
  • evals/results.tsv34 B
  • references/acceptance-criteria.md42 B
  • references/destructive-action-guard.md42 B
  • references/evolution-graph-nodes.md44 B
  • references/map-debt.md31 B
  • references/self-evolution-policy.md39 B
  • references/test-driven-development.md41 B
  • scripts/audit_map_debt.py34 B
  • scripts/evolution_state.py35 B
  • scripts/export_upstream_pr.py38 B
  • scripts/record_trace.py32 B
  • scripts/verify_evolution_receipt.py44 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…