Skip to the content.

Task 17 — Безопасное самоулучшение

Phase: 1 Status: done Owner: — Slug: safe-self-improvement

Goal

Maintenance workflow анализирует анонимизированные failures и eval, предлагает versioned skill diff, тесты, ожидаемый gain и rollback plan. Не активирует свои изменения вне approval policy.

Acceptance criteria

Sub-tasks

Scope / Likely files

src/agent/Reflection/MaintenanceWorkflow.cs, src/agent/Reflection/ProposalDiffer.cs

Dependencies

Validation

dotnet build src/agent/Hercules.csproj                     → 0 errors
dotnet build src/agent/Hercules.WebApi/Hercules.WebApi.csproj → 0 errors
dotnet build tests/Hercules.Agent.Tests/Hercules.Agent.Tests.csproj → 0 errors
dotnet test --filter "FullyQualifiedName~Reflection"      → 17 passed
dotnet test (full suite)                                  → 573 passed, 6 pre-existing failures (OtelService, BudgetGuard)

Risks / Rollback

Само-модификация без human gate; строгий two-person rule для prod-skills.