# Requirements Discovery Reference Use this only for Step 2b.1 of `/create-mobile-app` when prompt richness selects the `walk-through` path. ## Infer Options From The Brief Scan the user's description and wizard answers for these signals, then confirm inferred items with one `AskUserQuestion`. | Signal in description | Infer | |---|---| | "log", "record", "submit", "fill out" | Data entry / form screens | | "photo", "attach", "image", "camera" | Camera capability; storage target is resolved at the architecture gate | | "pick file", "upload PDF", "import document", "attach file" | Document-picker capability; storage target is resolved at the architecture gate | | "generate PDF", "export report", "print report", "evidence packet", "certificate PDF" | PDF-report capability; retention target is resolved at the architecture gate | | "view PDF", "open PDF", "preview PDF" | Native PDF viewer capability for HTTPS URLs or local `file://` URIs with viewer 0.2.9+ | | "signature", "sign", "sign off", "approval", "pen", "ink", "draw" | Pen-input capability; storage target is resolved at the architecture gate | | "track location", "background location", "GPS tracking", "follow route", "breadcrumb", "field worker location" | Geolocation capability from the verified release; confirm background declarations and storage at Gate 1 | | "current location", "where am I", "tag with coordinates", "one-shot location" | One-shot location via the verified controls or Expo location API; no tracking/data-source requirement | | "share", "send to", "export" | Sharing capability | | "secure", "credentials", "token", "PIN" | Secure-store capability | | "assign", "technician", "manager" | Multiple user types | | "notify", "email", "alert" | Office 365 connector | | "SharePoint", "list", "document" | SharePoint connector | | "Teams", "chat", "message" | Teams connector | | "report", "dashboard", "history", "view all" | Read/list screens | Resolve every native signal against the app-version-matched context from `resolve-mobile-release.js`, following [mobile-release-lifecycle.md](../../../shared/references/mobile-release-lifecycle.md). Do not use the newest plugin template as an old app's inventory. If support or fixed-base declarations cannot be verified, block that capability instead of pretending it exists. Follow `agents/native-app-planner.md` Step 3.0 and `/add-native` for version-conditional controls/legacy-leaf routing. Apply the shared [`connectivity-intent-ownership.md`](${PLUGIN_ROOT}/shared/references/connectivity-intent-ownership.md) contract during feature inference. PDF/pen rules: - Do not infer `document-picker` from generic "PDF" alone; use the specific signal rows above. - Native PDF viewing supports HTTPS URLs and local `file://` URIs with `@microsoft/power-apps-native-pdf-viewer` 0.2.9+. - Local generated PDFs require `expo-print`; preview requires native PDF viewer 0.2.9+, while sharing requires `expo-sharing`. - Retained generated PDFs use a Dataverse File column or child Evidence/Attachment table only when Dataverse is approved; otherwise use an approved connector-owned or on-device/share-only target. - Signature/ink capture must record the Gate 1-approved target in `native-app-plan.md`: Dataverse Image/File/child row, connector-owned storage, or on-device/share-only. - Background/continuous location tracking uses the `geolocation` capability (`@microsoft/power-apps-native-bglocation`, MSAL-only) and requires an existing Dataverse target table (default entity set `msdyn_locationrecords`, or a custom `tableName` whose `fieldMap` columns exist). `/add-native geolocation` must verify that table; if it is missing, do not allow the control to be used. The missing control table is not created through `/add-dataverse`; use the geolocation-control table provisioning/setup mechanism, then re-run `/add-native geolocation`. Use one-shot `location` (`expo-location`) for a single foreground coordinate read; do not conflate the two. ## Ask Shape Ask exactly one structured question. Inferred items are `recommended: true`; plausible extras are unselected. Keep 2-6 options total and allow freeform input. ```json { "questions": [ { "header": "features", "question": "Which of these should the app do? (multi-select -- add anything else as freeform text)", "multiSelect": true, "options": [ { "label": "Log inspection visits with date, notes, status", "recommended": true }, { "label": "Attach photos to each visit", "recommended": true }, { "label": "Assign visits to specific technicians" }, { "label": "Email manager on completion" } ] } ] } ``` Rules: - Use the `header` field as a stable answer key, such as `features`. - Never include `[x]` or `[ ]` checkbox markdown in the `question` field; it produces invalid tool parameters. - Ask no unrelated questions in this call. After the answer, summarize the confirmed requirements brief in 4-8 bullets covering what users can do, tracked data, and integrations. Confirm once with `Look right? (yes / adjust)`, then store the result as ``.