Skip to article
← BACK TO DISPATCH

Four self-* invariants you can ship

“Self-governing” sounds like a capability. So do “self-explaining,” “self-replicating,” and “self-securing.”

The adjective is not the architecture

“Self-governing” sounds like a capability. So do “self-explaining,” “self-replicating,” and “self-securing.”

Put those labels on an architecture diagram and the system seems to become more sophisticated before anyone has built a thing.

That bothered me.

The vocabulary has deep roots. IBM’s autonomic computing work, including Kephart and Chess in 2003, described systems that manage aspects of their own operation. Salehie and Tahvildari surveyed the landscape and research challenges of self-adaptive software. Work led by de Lemos and others examined how software engineering must change when systems adapt at runtime. Discussions of replication also draw on older work in artificial life, self-reproduction, and evolutionary theory, including work associated with Cliff and Sterelny.

None of that literature reduces these ideas to the four properties used here, and it should not be read as endorsing this particular framework. It supplies the intellectual background. The problem addressed here is narrower: how a delivery team can turn a broad self-* claim into something falsifiable.

Somewhere between the literature and the product backlog, a property often becomes a vibe.

A team says a system is self-governing because it has rules. It is self-explaining because it can produce a rationale. It is self-replicating because it can create another instance. It is self-securing because somebody added a scanner.

Each statement may be directionally true. None tells me what must remain true when the system is under pressure.

I kept returning to one question: What would make the claim falsifiable?

Not impressive in a demonstration. Not autonomous on the friendly path. Falsifiable.

The turn was to stop treating these properties as features and start treating them as invariants. A feature says what a system can do. An invariant says what must remain true while the system does it.

Once a property is written that way, the next move is clear: design a test that tries to break it.

Self-governing: policy must meet the action

Almost every production system has rules. They may live in prompts, application logic, configuration, documentation, approval processes, or operator habit.

That does not make the system self-governing.

The invariant I would use is:

Every governed action is evaluated against an inspectable policy at the boundary where the action becomes consequential.

Two parts matter.

First, policy must be inspectable. The rules need to exist as data that can be versioned, compared, audited, and changed deliberately. If the only representation of a rule is opaque system behavior, the system may be constrained, but an operator cannot reliably inspect or revise that constraint.

Second, evaluation must happen where intention becomes effect. Checking a plan is not equivalent to checking the resulting action. Between the two, state can change, authority can shift, and an indirect path can appear.

The relevant boundary might be where the system sends a message, changes a record, invokes another model, delegates authority, or performs an administrative action. That is where policy has to become operative.

To test this, propose an action that conflicts with an active rule. Then try the same action through a less obvious route, such as delegation or an intermediate component. The action must not cross the boundary unnoticed.

Next, change the policy. The decision should change without requiring engineers to locate additional copies of the rule scattered through the system.

Administrative actions carry another burden. They should leave an audit record connecting the actor, requested effect, governing policy, decision, and observed result. Without that record, a denial may be difficult to distinguish from a failure elsewhere in the system.

This does not prove that the policy is wise. It establishes something smaller and more useful: the policy is explicit, operative, and observable where consequences begin.

Self-explaining: the “why” needs a “what-if”

My first version of self-explaining was too easy.

I thought it meant the system could produce a readable rationale for an action. But a fluent system can produce a plausible story after the fact. Readability alone does not establish fidelity.

A useful explanation has to be coupled to the decision, not composed as public relations for it.

The invariant becomes:

Every consequential action records why it was selected and what relevant change would have produced a different outcome.

The “why” ties the action to the evidence, policy, state, or objective that shaped it.

The “what-if” makes the account testable. It identifies a decision-relevant alternative rather than merely restating the rationale in negative form.

Capture an action and its explanation, then change a relevant input. The action and explanation should change coherently. Next, change an irrelevant input. If every small change produces a different story, the explanation may be unstable. If no relevant change affects it, the explanation may be decorative.

There is another problem underneath this one: explanations can be substituted or altered after an action. The explanation therefore needs to remain bound to the action it describes, the policy version in force, and the evidence references recorded at the time.

This does not promise perfect access to internal causality. Some systems operate with incomplete evidence, probabilistic outputs, or decision processes that resist simple summaries. A faithful explanation can acknowledge those limits.

The goal is not a beautiful story. It is an account that can lose an argument with the evidence.

Self-replicating: a copy must inherit the limits

“Self-replicating” is the most alarming of the four labels, as it should be.

Unbounded copying is not resilience. It is loss of control with an optimistic name.

The engineering question is not merely whether a system can create another instance. It is whether it can do so without escaping the authority and resource boundaries assigned to it.

The invariant is:

Every new instance is created through an accountable instance manager and remains bounded to an authorized zone.

The instance manager needs to account for which copies exist, why they were created, what authority they received, who or what authorized them, and when they should stop.

The zone defines where a copy may operate. A child should not gain broader reach merely because replication succeeded. Nor should it be able to invent its own lineage, reuse another instance’s identity, or grant itself authority its parent did not possess.

Those are the tests.

Try to create a copy outside the permitted zone. Try to create one without the manager’s knowledge. Try to reuse an identity. Try to give the child more authority than the parent.

Then test retirement. Remove an instance and check whether the manager’s account of the population converges with observed reality. A system that can grow but cannot reconcile or shrink does not govern its own shape.

The manager itself remains part of the attack surface. Calling it trusted does not establish adequate identity controls, authorization, tamper evidence, failure behavior, or reconciliation. Those properties need their own tests.

Replication is not established when a new instance starts. It is established when the copy starts inside its limits, remains visible, and can be made to stop.

Self-securing: protection must follow the path

Security is often drawn as a perimeter around an autonomous core. Inputs are checked on the way in, outputs are reviewed on the way out, and everything in between quietly inherits trust.

That trust becomes dangerous as soon as the system creates a new path.

The invariant is:

Sensitive data, credentials, and authority remain protected across every action boundary, including boundaries created dynamically by the system.

No single component can establish this. A personal-data scanner can inspect configured classes of sensitive information where data moves. A secret manager can reduce the exposure of credentials in ordinary application state and generated content. A zero-trust approach can require explicit authentication and authorization rather than treating network location or ancestry as sufficient evidence of trust.

Naming those controls is not enough. Coverage, configuration, enforcement, and failure behavior determine whether protection survives.

Follow a synthetic sensitive value through the system and attempt to move it across a boundary where it is not authorized. Then try again through an indirect path, such as a delegated action or a newly created instance.

Protection that works only on the route everyone remembered to diagram is not an invariant.

Credentials deserve a separate challenge. A secret should be usable only through the authority intended for it. It should not become ordinary context that can be copied, explained, logged, or replicated. The stronger design avoids unnecessary possession rather than relying only on a promise not to disclose.

Self-securing does not mean invulnerable. It means security obligations travel with the system into the paths it creates.

The properties collide

The hard part is not defining the four invariants separately. It is composing them.

A governing rule needs an explanation. That explanation must not reveal a secret. A replicated instance must inherit policy without inheriting excessive authority. A security control must remain accountable rather than becoming an unexplained veto.

I wanted a universal order for these operations. It would have made the model satisfyingly neat.

The system refused to cooperate.

The right arrangement depends on where authority, state, and consequences live. So the useful composition question is not which self-* capability runs first. It is this:

When one invariant pressures another, which facts and protections must survive the handoff?

That question produces better integration tests.

Can a denied action still receive a useful explanation without disclosing protected information?

Can a child instance show which policy governs it and which authority created it?

Can an audit record remain useful after sensitive fields are protected?

Does a security decision itself pass through the governance boundary?

Can a component impersonate the policy evaluator, instance manager, or authorized actor? Can policy, lineage, explanations, or audit records be changed without detection? Can overloaded controls be forced into an unsafe bypass mode? Can replication or delegation elevate privilege?

Every unanswered question is a gap. It is not evidence that the architecture will probably behave.

Ship the test, not the label

The practical opportunity is not to replace the autonomic-computing or self-adaptive-systems literature. It is to turn selected properties into operational promises that a delivery team can challenge.

For each property:

  1. Name what must remain true.
  2. State the threat model and trust boundaries.
  3. Locate where the invariant could stop being true.
  4. Create an adversarial test that crosses that boundary.
  5. Preserve enough tamper-resistant evidence to distinguish enforcement from luck.
  6. Treat every unstated control as a gap.

The payoff is not a system decorated with four impressive adjectives.

It is a system with four claims a skeptical team can try to falsify.

Self-governance is policy made operative. Self-explanation is a decision claim made testable. Self-replication is growth kept within authority. Self-security is protection that follows the system into the paths it creates.

There are more invariants worth examining, and a wider survey can show how they relate. Four are enough to reveal the pattern.

If a self-* claim cannot survive a hostile test, it is still a pitch. If it can, and the evidence survives with it, you may have something you can ship.

Get the next dispatch when it drops.

SUBSCRIBE FOR THE NEXT DROP MORE ARTICLES