6. **Scaffold a new project with `init`; after every edit, `format`, `refresh` then `validate`.** An existing project needs no `init`: edit its `.dmn` and run `refresh`. Fix what `validate` reports. Never hand-write or delete `project.uiproj`, `entry-points.json`, or `bindings_v2.json`; keep the scaffolded `.dmn` file and its root element. 7. **A rule is done when `validate` passes and `debug` returns what the reviewed design expects, from every decision and not only the last.** On a wrong output, read the trace with `uip traces spans get `. Stop after 3 fix rounds and show the user the tables and the failing inputs. ```bash uip rules init ``` Run `init` from `/solution`, the Studio Web solution the user has open; never create another. Studio Web creates the project in the open solution at `/solution//`. The intercepted command prints plain text; `--output json` is ignored. The rule is the one `.dmn` file in the project folder. After `init` creates the project, the scaffolded table is a placeholder; step 3 replaces it. The **table** is the placeholder — not the root element, and not its `extensionElements`, which already carry the right authoring surface. When `init` fails with `a project named "" already exists in the open solution`, that project's rule is the user's, whatever the message says to do next: Critical Rule 11 applies. ```bash uip rules debug "" --inputs '' ``` `` is a project name in the open solution, not a path. Debug runs the rule saved in the open solution, so there is no pack or upload step. Always pass `--inputs`: the input values as inline JSON, one object keyed by input-argument name; `@file` is not supported. The output is plain text, not JSON: the status, `Trace ID: ` when one was found, the run logs and the execution trace. Exit 1 means `Faulted` or `Failed`. Compare every decision's outputs with the expected values. On a mismatch, read the trace: ```bash uip traces spans get --output json ``` `` is the `Trace ID` the output prints. The trace shows which rules fired. Without a `Trace ID`, compare the inputs against each row by hand.