Documentation & page contents

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

  1. product.get product
  2. body.select body
  3. garment.drape expects gate cloth_self_intersections
  4. pattern.revise pattern
  5. construction.revise construction
  6. garment.drape run

Sample inputs

KeyValue
product_idaop-hoodie
bodysamples/bodies/male_m_native_straight.json
material_idfleece_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