Loading...
Loading...
Version-controlled evolution engine that uses accumulated insight results to evolve soul profiles and workflow recipes with auditability, safety constraints, and rollbacks.
npx skill4agent add arthur0824hao/skills skill-system-evolutionskill-system-insightagent_memorieslist-versionsrollbackpin:trueagent_memories.category = 'insight-facet'user:<user>agent_memories.category = 'soul-state'user:<user>matrixagent_memories.category = 'evolution-snapshot'snapshot_data../skill-system-soul/profiles/<user>.md../skill-system-workflow/recipes/*.yaml.ymlv{N}_{target}_{timestamp}v3_soul_20260211N = 1 + max(existing N)user:<user>target:<target>N = 1_HHMMevolution-snapshotabs(proposed_value - current_value) > 0.5skill-system-insightskill-system-evolutionskill-system-insightmemory_type = 'episodic'category = 'evolution-snapshot'tagsuser:<user>target:<target>soulrecipebothversion:<version_tag>-- Rate limit check (max 1/day): any snapshot in last 24h?
SELECT id, created_at, title
FROM agent_memories
WHERE category = 'evolution-snapshot'
AND 'user:<user>' = ANY(tags)
AND created_at >= (NOW() - INTERVAL '24 hours')
ORDER BY created_at DESC
LIMIT 1;
-- Store an evolution snapshot
SELECT store_memory(
'episodic',
'evolution-snapshot',
ARRAY['user:<user>', 'target:<target>', 'version:<version_tag>'],
'Evolution Snapshot: <version_tag>',
'<full evolution-snapshot YAML as text>',
'{"version_tag": "<version_tag>", "target": "<target>", "timestamp": "<iso>"}',
'evolution-agent',
NULL,
8.0
);
-- List recent snapshots for a user (most recent first)
SELECT id, created_at, title
FROM agent_memories
WHERE category = 'evolution-snapshot'
AND 'user:<user>' = ANY(tags)
ORDER BY created_at DESC
LIMIT 50;evolve-soulevolve-recipeslist-versionsrollback{
"schema_version": "2.0",
"id": "skill-system-evolution",
"version": "1.0.0",
"capabilities": ["evolution-soul", "evolution-recipes", "evolution-list", "evolution-rollback"],
"effects": ["db.read", "db.write", "fs.read", "fs.write"],
"operations": {
"evolve-soul": {
"description": "Evolve soul profile from accumulated insight data. Creates versioned snapshot.",
"input": {
"user": {"type": "string", "required": true, "description": "User handle"}
},
"output": {
"description": "Evolution result with version tag",
"fields": {"version_tag": "string", "changes": "array", "profile_path": "string"}
},
"entrypoints": {
"agent": "Follow scripts/evolve-soul.md procedure"
}
},
"evolve-recipes": {
"description": "Evolve workflow recipes based on effectiveness data from insight facets.",
"input": {
"user": {"type": "string", "required": true, "description": "User handle"}
},
"output": {
"description": "Recipe evolution result with version tag",
"fields": {"version_tag": "string", "recipes_changed": "array"}
},
"entrypoints": {
"agent": "Follow scripts/evolve-recipes.md procedure"
}
},
"list-versions": {
"description": "List all evolution snapshots for a user.",
"input": {
"user": {"type": "string", "required": true},
"target": {"type": "string", "required": false, "description": "Filter: soul | recipe | all"}
},
"output": {
"description": "Array of version snapshots",
"fields": {"versions": "array of {tag, target, timestamp, summary}"}
},
"entrypoints": {
"agent": "Follow scripts/list-versions.md procedure"
}
},
"rollback": {
"description": "Restore a previous evolution version.",
"input": {
"user": {"type": "string", "required": true},
"version_tag": {"type": "string", "required": true, "description": "Version tag to restore"}
},
"output": {
"description": "Rollback result",
"fields": {"status": "ok | error", "restored_from": "string"}
},
"entrypoints": {
"agent": "Follow scripts/rollback.md procedure"
}
}
},
"stdout_contract": {
"last_line_json": false,
"note": "Agent-executed procedures; versioned snapshots stored in agent_memories."
}
}