State Prompt
Produce one bounded design-generation prompt from confirmed condition-map content.
Procedure
- Read
STATEFUL.mdandstate-map.jsonwhen present. - Identify:
- target lifecycle or failure condition;
- interruption/re-entry context, if any;
- target surface;
- data, time, actor, permission, and dependency facts;
- acceptance criteria and constraints.
- If the user has no target, offer three risk-relevant candidates from the map. Do not invent a substitute map.
- For failures, use cause to frame the response:
user-input: coaching and correction;system: ownership, safe retry, and correlation when useful;external: dependency status and alternatives;policy: clear rule and permitted next action.
- Include surface-specific accessibility, freshness, authentication, privacy, and action constraints.
- Produce one prompt for one condition or explicit composition. Name assumptions separately.
- Suggest adjacent conditions only after the paste-ready block.
Output
Condition being generated:
<lifecycle/failure × interruption × surface>
Prompt:
---
<surface and viewport>
Condition:
<what happened and what is true now>
Render and behavior:
- <observable requirement>
- <supported actions and recovery>
- <accessibility, freshness, privacy, and platform constraints>
Acceptance criteria:
- <criterion>
Output:
<single artifact and format>
---
Assumptions:
- <assumption>
Adjacent conditions worth generating:
- <condition>
Failure modes
- A generic prompt with a condition name pasted on.
- Omitting what happened and what is true.
- Including the whole map.
- Losing the target surface.
- Ignoring failure cause or recovery.
- Generating unsupported product decisions.