---
library: "bootstrap"
slug: "Step"
name: "Step"
ref: "Step#fa20"
hash: "sema:Step#mh:SHA-256:fa207e6f70e14a67e3baa7e4ad4df9ece59ba4d07083fbbcc992332959e1520a"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Step"
---

# Step

Atomic action with pre/post conditions

Infrastructure · Data Structures

## Mechanism

A unit of action that declares its own boundaries. It specifies: 1. Preconditions (what must be true before), 2. Action (what to do), 3. Postconditions (what will be true after), 4. Rollback (how to undo if needed). It acts as a node in a causal graph.

## Invariants

- Declares whether it can be rolled back, and how. A step that cannot be undone says so.
- Causal closure: preconditions are satisfiable by prior steps or the initial state.

## Failure modes

- Precondition violation: executed when preconditions were not met.
- Postcondition failure: completes without achieving its postconditions.
- Rollback failure: the declared undo does not restore the prior state, so the step is neither done nor undone.

## Where this came from

—

## Used by

- [Plan](https://semahash.org/vocabularies/bootstrap/patterns/Plan.md) (references)
- [Realizable](https://semahash.org/vocabularies/bootstrap/patterns/Realizable.md) (references)
- [Workflow](https://semahash.org/vocabularies/bootstrap/patterns/Workflow.md) (references)

## Related

- [Plan](https://semahash.org/vocabularies/bootstrap/patterns/Plan.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Step#fa20
- Hash: sema:Step#mh:SHA-256:fa207e6f70e14a67e3baa7e4ad4df9ece59ba4d07083fbbcc992332959e1520a

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Step
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Step.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
