# Source audit: ask-user-question

Decision: copy-after-audit. The current extension ports the OMP `ask` tool contract into `miloc-pi` as a local plugin/API surface and keeps `askUserQuestion` only as a compatibility alias.

OMP source evidence:
- `/tmp/oh-my-pi-review/packages/coding-agent/src/tools/ask.ts`
- `/tmp/oh-my-pi-review/packages/coding-agent/src/prompts/tools/ask.md`
- `/tmp/oh-my-pi-review/packages/coding-agent/test/tools/ask.test.ts`
- `/tmp/oh-my-pi-review/docs/tools/ask.md`
- `/tmp/oh-my-pi-review/LICENSE`

License/attribution:
- OMP reference is MIT licensed; `/tmp/oh-my-pi-review/LICENSE` lists copyright for Mario Zechner and Can Bölük.

Ported contract:
- Primary tool name is `ask`.
- Input shape is `questions[]` with `id`, `question`, `options`, optional `multi`, and optional `recommended`.
- UI automatically adds `Other (type your own)`.
- `multi=true` uses a checkbox-style select loop with `[ ]`, `[x]`, `Done selecting`, and `Other (type your own)`.
- Single-question results expose `selectedOptions` and optional `customInput`.
- Multi-question results expose `details.results[]`.
- Legacy `askUserQuestion` preserves old `sensitivity`/redaction behavior for compatibility.

Known gaps:
- Local Pi UI adapter does not yet support OMP's left/right multi-question navigation.
- Local Pi UI adapter renders checkbox-style labels through the ordinary select API; full OMP TUI parity still requires the native renderer and left/right multi-question navigation.
- The current default enable covers the tool/API contract and local UI adapter, not full OMP renderer parity.
