# State And Environments

Release r-3c7687664372c00d · https://mirrorfirm.com/knowledge/state-and-environments

## How does changing state shape the next task?

Actions change what comes next, and the consequences can be inspected.

Business actions change the next task. Build scenarios around those state changes and inspect their consequences.

Scenario (fictional): once an approval is recorded, a repayment schedule can be created. Check that the later step is only possible because the earlier state changed.

_Status: positioning · editorial · revision 1_

## What is a stateful environment?

Business operations as connected state with actions that affect later outcomes.

Represent business operations as connected state, with actions that affect later decisions and outcomes.

Integration question: how will actions be exposed to your agent, and how will you check the resulting state against the expected outcome?

_Status: positioning · editorial · revision 1_
