64 64 literal `{`/`}` out of prompts except these tokens. Set `return` to the
65 65 selector for the workflow's final value.
67 -6. **Self-check the spec (there is no validator tool).** You can't call
67 +6. **Assign compute deliberately.** For every step:
68 + - `big` — planning, specification, architecture, critique, synthesis.
69 + - `medium` — coding, testing, editing, routine implementation.
70 + - `small` — scouting, extraction, classification, easy text work.
71 + - Set `thinkingLevel` from that step's relative ambiguity, constraints, and cost of mistakes.
72 + - Explicitly set both fields. If every phase uses the same pair, challenge the assignment before saving.
74 +7. **Self-check the spec (there is no validator tool).** You can't call
68 75 `parseWorkflow` directly — verify by inspection against the reference: every
69 76 required field is present, every `fanout` has an `over`, every `when` is one selector, every string
70 77 `schema` names a key in `schemas`, and interpolation uses only the closed
71 78 grammar. The real validator is the load itself: saving and test-running
72 - (steps 7–8) parses the file through the runtime's `parseWorkflow`, which
79 + (steps 8–9) parses the file through the runtime's `parseWorkflow`, which
73 80 surfaces a TypeBox error naming the offending path if anything is malformed —
74 81 fix and re-run until it loads clean. One caveat: a JSON _syntax_ error (a
75 82 trailing comma, a missing quote) makes the file invisible to discovery
76 83 entirely, so `/ultra <name>` reports `unknown workflow` rather than a schema
77 84 error — if a saved workflow seems to vanish, confirm it is valid JSON first.
79 -7. **Save it.** Write the spec as `<name>.json` (filename matching the spec's
86 +8. **Save it.** Write the spec as `<name>.json` (filename matching the spec's
81 88 - project-scoped (lives in the repo): `<cwd>/.pi/workflows/<name>.json`
82 89 - personal / global: `~/.pi/agent/workflows/<name>.json`
84 91 Ask which scope only if it isn't clear from context (a repo-specific review
85 92 workflow → project; a personal utility → global).
87 -8. **Offer a test run.** After saving, offer to run it: `/ultra <name>` (with
94 +9. **Offer a test run.** After saving, offer to run it: `/ultra <name>` (with
88 95 any `args` the spec's `hint` declares). Tighten prompts/schemas from what the
89 96 first run surfaces.