# New OS / assistant capability spike (Siri App Intents, Gemini AppFunctions, widgets...) Use when the user asks "can our app plug into ?" (often from a news post). ## 1. Feasibility answer first, no action - Search the vendor's own announcement + 1-2 secondary sources; note language, region, device, distribution (beta/TestFlight only?) and store-submission date. Language support is the usual blocker for a Turkish product: check it explicitly. - Check the repo for what already exists (logic to reuse, min OS target, data location: Dart code vs bundled JSON asset matters for a native extension). - Answer: short yes/no, blockers with sources, options (small step that ships today / beta spike / wait), one recommendation with reasoning, then **Sorular** (roadmap? spike? min-OS bump?). Do not start work until approved. ## 2. Before briefing: inventory the local toolchain A beta capability usually needs a beta IDE, a beta OS on a capable device, and a signed-in dev account. ``` xcodebuild -version; xcrun simctl list runtimes | tail -4; xcrun xctrace list devices | head ``` Scope the spike to what builds on the installed toolchain now (e.g. classic intent + shortcut that the beta later upgrades), list user-held blockers (beta download, device, account login) under **Sorular**, and forbid the worker from downloading betas or signing in. ## 3. After approval, PM order 1. Research note in the product's the notes vault folder (sources + internal findings + conclusion). 2. Roadmap: spike under "Şimdi" (not merged to v1), shippable variant under "Sonra". 3. Brief (agent-router template) with content-safety rule, offline rule, ACs that run on the simulator, and a "what the beta step needs" section in the report. 4. Dispatch, then verify per SKILL.md step 10. ## Sanity-check the first result against the data Before accepting a "nearest N" (or any ranking) result, recompute one sample from the raw dataset (script file, haversine is enough) and look at its coverage (e.g. count by district). A suspicious result (nearest item 3 km from a famous landmark) is often a data-coverage fact, not a bug, and that fact changes product priorities (which branch/dataset ships, who the feature serves). Check the release branch's dataset too, not only `main`'s: newer data may already fix the coverage. ## Home-screen widget: mock stage before any code When the user asks for widget "mock" work, brief a MOCK-only job (no widget extension / App Widget code): 2-3 directions, each on iOS and Android in at least two platform sizes, shown in a realistic home-screen context and standalone (PNG < 1.5 MB, readable in Telegram), on a main-based `mock/` worktree with a copy under `///`. Give the user needs (e.g. "what's near me", "one item a day"), not the layout; every name/date/text must come from a real bundled record whose id the report lists; git-ignored photo assets must be copied into the worktree from the main checkout. Tap targets need a deep link on Android (release builds ignore route extras). Widget look rules the user set for this product (example; put the current ones in every widget brief): - No frame, border or inner outline line (a thin accent outline read as "çerçeve gibi, kötü"). - No source/attribution line (site, card number, "single source" label) and no privacy notes such as "location stays on this device" ON the widget; the source stays in the in-app detail screen the widget opens. An "AI-assisted summary" marker next to generated text may stay (it is not a source line). - Text-only / script-heavy directions (e.g. a verse in Arabic script) were rejected; photo-led cards won. ## Home-screen widget: implementation after the user picks - Brief the picked directions only, with the rejected elements listed as binding rules; base on main (`feat/widget`), copy git-ignored assets in, commit between steps (dispatch clients disconnect often during long simulator/emulator commands). - Same-day item must equal the in-app "item of the day" (test over several dates/time zones); a nearby list must use the same ranking code as the existing assistant/Siri feature (golden-file test). - Location widgets: never request background location. iOS WidgetKit can use when-in-use location; on Android use the last location from the app's own foreground use plus a refresh action (no `ACCESS_BACKGROUND_LOCATION`, no Play declaration). - iOS widget extensions need a new App ID (`.`) and profiles: forbid the worker from creating them; simulator first, account steps listed in the report for the user's approval. - Android drawing must run off the main thread (a widget that renders photos on the main thread caused an ANR on cold start); ask for a release-build tap test, not only debug. ## Content safety for assistant integrations An assistant may paraphrase whatever the intent returns. For source-sensitive content (inscription text, translations, dates) return only name, distance and record metadata; show the text itself only inside the app's own UI with its source. Require a test proving the intent result carries no such fields.