When it refuses · 09 · revise_after_gate
When arrange fails, revise
The factory refused. Read the gate, change the cut or sewing, drape again.
You have
The factory refused
You want
Read the gate, change the cut or sewing, drape again
The factory can refuse. You get structured JSON: gate, phase, witnesses, hint. You change the cut (pattern.revise) or the sewing (construction.revise). You do not raise clearance bounds.
This example uses one Client. The stub refuses the first arrange so you can see the error; after you revise, the same Client drapes.
Steps
product.get→productbody.select→bodygarment.drapeexpects gatecloth_self_intersectionspattern.revise→patternconstruction.revise→constructiongarment.drape→run
Sample inputs
| Key | Value |
|---|---|
product_id | aop-hoodie |
body | samples/bodies/male_m_native_straight.json |
material_id | fleece_250gsm |
Expected fixture checks
These are the checks declared by this sample, not a captured production result. Referenced sample files are included in the gated SDK checkout.
{
"run.phase": "draped"
}Run
Obtain and install the SDK before running this example from its root directory.
python examples/run_workflow.py revise_after_gate