Draft needs its dry run
type | https://docs.frem.sh/reference/api/errors/ai-draft-needs-dry-run |
| HTTP status | 409 Conflict |
What it means
A custom secret pattern drafted with AI is saved only after its dry run has finished, for exactly the pattern being saved. The dry run named in ai_draft_dry_run_id is missing, still running, or tried a different pattern.
What to do
Wait until the dry run’s status is done and save the same pattern. If you changed it, start a new dry run of the changed pattern and name that one. See Draft a pattern with AI.
Response shape
All fremforge API errors are RFC 9457 problem+json:
{
"type": "https://docs.frem.sh/reference/api/errors/ai-draft-needs-dry-run",
"title": "Conflict",
"status": 409,
"detail": "..."
}Branch on type, not on title or detail - those are human-readable and may be reworded.