Mind · Reasoning

Reflexion

Self-critique and retry after failure

Definition

Mechanism

A self-improvement loop where after completing a Task attempt, the agent generates linguistic self-critique analyzing what went wrong with the Plan regarding the Goal, then uses this reflection as context for a retry. Unlike fine-tuning, the model is frozen—improvement comes from explicit textual feedback stored in an episodic memory buffer. It writes self-critique to a Scratchpad memory buffer, using this feedback to improve the next attempt.

Preconditions

  1. Failed trial
  2. Outcome signal

Postconditions

  1. Improved policy/next trial

Invariants

  1. Memory of error persists
  2. Self-correction based on past failure

Risks

Failure modes

  1. Shallow Reflection

    Critique is generic ('try harder') without actionable insight.

  2. Reflection Drift

    Each retry diverges further from the goal.

  3. Premature Success

    Declaring success before the task is actually solved.

Relationships

Builds on

Accepts

Infrastructure

Task

The atomic unit of intent

References

Infrastructure

Goal

Specification of desired end state

Infrastructure

Outcome

Realized state after an action, captured for Plan-vs-reality comparison

Infrastructure

Plan

An ordered sequence of steps to achieve a goal

Scratchpad

Working memory for intermediate reasoning steps

Used by

Composes with

PolymorphicSolver

Solver implementing the five-surface contract (polymorphic across substrates)

References

MetaCheck

Recursive self-verification of reasoning

Reference

Identity

Ref
Reflexion#81eb
Sema ID
sema:Reflexion#mh:SHA-256:81eb9140703ea95f53556741df731af84c1cada66cc1e0f3a1d88e4de5fe54d8
Ring
2
Tier
1
Updated
2026-11-11
Supersedes
  • sema:Reflexion#mh:SHA-256:51b91d2cdfeb6aed5ea3293154279d16af2c98b0c473e731066198b5d4d43e7f
  • sema:Reflexion#mh:SHA-256:4a467a44a1172f5d7d2119e3a4c3646e36a5f8dea4cdca2fa85bea6f92619d83
  • sema:Reflexion#mh:SHA-256:b2b59e0b162b7c5f91b36d991ffb143331568be2d1dbc56218ccfccafd40dfc3