---
library: "bootstrap"
slug: "ContextFirst"
name: "ContextFirst"
ref: "ContextFirst#f157"
hash: "sema:ContextFirst#mh:SHA-256:f157ec66ccb7e55eabe7179aeefb0dc4b36bc45e3bbea3073e50d97dab86138b"
type: "Inference"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ContextFirst"
---

# ContextFirst

Load state before acting

Mind · Inference

## Mechanism

[Prioritize](https://semahash.org/vocabularies/bootstrap/patterns/Prioritize.md) the [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md). Before generating tokens or taking action, [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) MUST execute a Read operation (e.g., graph_skeleton, search) on the shared state. Blind action is forbidden. It is a mandate for [SolverNode](https://semahash.org/vocabularies/bootstrap/patterns/SolverNode.md) to execute a [Warmup](https://semahash.org/vocabularies/bootstrap/patterns/Warmup.md) or read-cycle before attempting any write-action.

## Invariants

- Read-Before-Write: Action timestamp > Context_Refresh timestamp.

## Signature

- Prioritize(Context)

## Failure modes

- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) Blindness: [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) acts on stale cached data.
- Hallucinated [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md): [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) guesses the state instead of looking it up.

## Where this came from

—

## Builds on

- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [State](https://semahash.org/vocabularies/bootstrap/patterns/State.md) (references)
- [SolverNode](https://semahash.org/vocabularies/bootstrap/patterns/SolverNode.md) (references)
- [Context](https://semahash.org/vocabularies/bootstrap/patterns/Context.md) (references)
- [Prioritize](https://semahash.org/vocabularies/bootstrap/patterns/Prioritize.md) (references)
- [Warmup](https://semahash.org/vocabularies/bootstrap/patterns/Warmup.md) (references)

## Used by

- [OODA](https://semahash.org/vocabularies/bootstrap/patterns/OODA.md) (references)
- [RequestFraming](https://semahash.org/vocabularies/bootstrap/patterns/RequestFraming.md) (references)
- [RetrievalAugment](https://semahash.org/vocabularies/bootstrap/patterns/RetrievalAugment.md) (references)
- [ToolDiscovery](https://semahash.org/vocabularies/bootstrap/patterns/ToolDiscovery.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ContextFirst#f157
- Hash: sema:ContextFirst#mh:SHA-256:f157ec66ccb7e55eabe7179aeefb0dc4b36bc45e3bbea3073e50d97dab86138b

## Links

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