Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/xxyoudeadpunkxx/memory-assisted-shaping/llms.txt

Use this file to discover all available pages before exploring further.

Memory-Assisted Shaping uses exactly three operating states. State transitions are explicit — the protocol is in precisely one state at any time, and no state is entered passively. The three states enforce the core ordering: read before shaping, shape before synthesis.

State transition table

StateEnter WhenExit WhenMemory ActionForbidden Action
READING_ALIGNMENTSession starts, re-entry occurs, or input needs source or gate alignmentCandidate shape and real gates are clear enough to shapeAppend only declared constraints, candidate form, real gates, source conflicts, or material tensionFinal artifact production
SHAPINGShape can be consolidated without final artifact productionGates are closed or deferred enough for the current move, or OP explicitly approves synthesisAppend decisions, discarded paths, source changes, gate movement, artifact boundaries, or material recurring tensionFinal drafting
SYNTHESISOP explicitly approves artifact productionRequested artifact is produced or a blocking contradiction appearsAppend approved mode transition before non-trivial synthesis when persistence is activeRedesigning the shape while writing

READING_ALIGNMENT

This is the entry state for every session and re-entry. Its purpose is to establish a clear, honest picture of what the input is and what it needs to become — before any shaping work begins. Use this state to:
  • Understand the input.
  • Separate declared from inferred material.
  • Detect candidate form.
  • Expose material tension.
  • Identify real gates.
Memory signals are allowed only for:
  • Declared constraints.
  • Candidate form.
  • Real gate discovery.
  • Source-of-truth conflict.
  • Material tension likely to affect later shaping.
Forbidden action: Final artifact production is forbidden in READING_ALIGNMENT. Producing an artifact before the shape is understood is a protocol failure, regardless of how clear the request appears.

SHAPING

SHAPING is the working state. The candidate shape is clear enough to consolidate, but synthesis has not been approved. Most of the structural work — resolving friction, handling gates, removing overdesign, protecting source of truth — happens here. Use this state to:
  • Consolidate form.
  • Resolve non-blocking friction.
  • Surface or close gates.
  • Propose reversible defaults.
  • Remove overdesign.
  • Protect source of truth.
  • Prepare a possible artifact path.
Memory signals are allowed for:
  • Decisions.
  • Discarded paths.
  • Real tensions.
  • Source-of-truth changes.
  • Shape movement.
  • Deferred gates.
  • Artifact boundaries.
Forbidden action: Final drafting is forbidden in SHAPING. The artifact path may be prepared and boundaries defined, but the artifact itself is not written until the operator approves synthesis.

SYNTHESIS

SYNTHESIS is entered only when the operator explicitly approves artifact production. This state produces the final artifact from consolidated form. No structural redesign happens here — the shape was decided in SHAPING. Use this state to:
  • Produce the requested artifact from consolidated form.
  • Preserve shaped form without reopening closed gates.
  • Keep the artifact local to its purpose and free of process trace.
Approval requirements: Explicit operator approval is required to enter SYNTHESIS. The following are not approval:
  • Implied momentum from a long session.
  • Positive feedback on shaping work.
  • Silence or lack of objection.
Before non-trivial synthesis (after a long, branched, resumed, or uncertain shaping session), GPT runs readback to confirm consolidated state. After approval, a mode transition signal is appended when Python persistence is active. Memory signals: Append the mode transition before non-trivial synthesis when persistence is available. Memory signals may inform synthesis but do not appear inside the artifact as process trace.
Forbidden action: Redesigning the shape while writing is forbidden in SYNTHESIS. Gates that were closed stay closed. Deferred gates are not treated as resolved. If a blocking contradiction appears, surface it and stop rather than redesigning mid-artifact.

If GPT produces a final artifact before you approve it, this is a protocol failure. Restart the session or ask GPT to re-enter READING_ALIGNMENT and return to the shaping phase.

Build docs developers (and LLMs) love