Anti entropy governance

From Undermybelt/hermes-skills · View interactive version

Anti entropy governance is an AI agent skill from the GitHub repository Undermybelt/hermes-skills. Use when retiring old logic, collapsing duplicate owners, removing fallbacks, or touching schema, persistence, or source-of-truth boundaries while deciding whether to delete old paths, retain compatibility, or stop for confirmation.

How to use this skill

Skill file

Anti-Entropy

Overview

Use this skill when the task is not merely "change code" but "remove old paths

safely without growing entropy".

This skill chooses between:

It does not replace brainstorming, writing-plans,

systematic-debugging, or verification-before-completion. It is a narrow

governance owner for retirement, fallback collapse, duplicate-owner cleanup,

and deletion safety.

When to Use

Use when any of these are true:

source-of-truth, or external compatibility boundaries

Do not use for:

deletion choice

Auto-Compose Boundary

This skill should be composed by other owners. It should not become a new

global hot-path entry.

Prefer composition from:

persistence

delete-vs-retain

migration closeout

Do not load this directly from using-aegis unless explicitly requested.

Core Principle

Default to reducing internal entropy, not preserving internal history.

Use this rule:

dependency evidence

confirmation-first

Unknown dependency is not active dependency evidence.

Mentioning, loading, or discussing destructive-action rules never authorizes

destructive execution. Without explicit scoped user confirmation:

Deletion Classes

Classify the deletion target first:

or other persistent state

Default Path By Class

still requires confirmation when it reaches persistent-state

Hard Stops

If the target is persistent-state or another irreversible source-of-truth

object:

Examples that require confirmation:

Data Destruction Guard

When confirmation-first is required, stop normal retirement flow and emit:

Data Destruction Guard:
- Target Class:
- Exact Target(s):
- Environment:
- Why Irreversible:
- Backup / Rollback Note:
- Allowed Read-Only Next Steps:
- Blocked Destructive Steps:
- Confirmation Required: yes
- Status: awaiting scoped confirmation

Only explicit scoped confirmation can continue. Broad assent such as "OK",

"continue", or "sounds good" is insufficient. If scope changes at all, previous

confirmation is invalid and fresh confirmation is required.

Anti-Entropy Declaration

Before deletion, state:

Anti-Entropy Declaration:
- Deletion Class:
- Old Path/Object:
- New Canonical Owner:
- Expected Preserved Behavior:
- Expected Retired Behavior:
- External Boundary Touched: no | yes
- Source-of-Truth Data Risk: none | possible | confirmed
- User Confirmation Required: no | yes

If User Confirmation Required: yes, stop normal delete-first flow and enter

Data Destruction Guard.

Retirement Decision

Choose one path only:

Retirement Decision:
- Path: delete-first | compat-exception | confirmation-first
- Why:
- Non-edits:

Rules:

If Path = confirmation-first, no destructive execution may happen until

scoped confirmation is received.

Verification Plan

Do not verify only by "tests are green". Verify that the old logic actually

died and the new owner actually carries the behavior.

Verification Plan:
- Main-path check:
- Lingering-reference check:
- Negative check:
- Boundary check:

Meaning:

Gap Taxonomy

If a gap appears after deletion, classify it before repairing:

persistent-state-risk is a stop condition, not a normal repair branch.

Gap Closure

Repair order:

Use this contract:

Gap Closure:
- Gap Found:
- Gap Type:
- Repair Action:
- Reintroduced Compat: no | yes
- If yes, External Dependency Evidence:
- Retirement Trigger:

If Gap Type = persistent-state-risk, stop and return to the confirmation

gate. Do not improvise destructive repair.

Compat Exception Gate

Retention is allowed only if all are true:

Without these, do not retain compat.

Completion Semantics

Completion claims must reflect the real outcome:

deferred debt, not clean retirement

Common Mistakes

Do not:

Minimal Reporting Shape

Anti-Entropy Declaration:
Retirement Decision:
Verification Plan:
Gap Closure:

Use the compact shape by default. Expand only when task risk requires it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.