← Back to Pull requests

Add automatic conversations, localized address lookup, and handoff guidance #7

Closed
unknown closed this pull request without merging on Nov 18, 2026 06:20 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 18:07 UTC
Author

Automatic conversations on iOS and macOS identify the other speaker’s language without choosing a pair. Turns retain their source language, translation destination, and playback route. The two-turn rule for changing an established partner language is preserved; short typed replies use the reader’s language.

This also adds a separate address lookup flow for displaying a place in another language. Listening guidance fades after five seconds and returns during handoffs. Headers, reminders, and typing controls reserve space outside the transcript so recent turns remain readable, while manual history scrolling survives guidance and text changes.

Audio and translation recovery retain unfinished work across connection failures. Native paired turns keep provider ownership until an explicit retry or edit, preventing delayed text results from replacing provider output or speaking a second suffix. Late native callbacks cannot recreate corrected rows. Private headphone intent survives ordinary-route fallback and reconnects. Playback verifies ordinary session activation when concurrent microphone startup changes routing capability.

This is a large change to conversation, audio routing, and reconnect paths; the checks below cover the changed behavior and recovery boundaries.

Validation:

  • Shared conversation, address, offline recovery, playback, and lifecycle regressions pass, including assertion-based fault controls and supported Thread Sanitizer checks. The full private runner passes all 27 suites and 15 voice-package tests; the public runner excludes the separate publishing-script tests.

  • Native ownership adds 76 assertions and eight compiling fault controls. Playback passes ten fault controls under Thread Sanitizer. Original-source reproductions retain both pre-fix failures.

  • Final production-view fixtures pass nine phone cases, two wide iPad cases, a missing-native-geometry boundary, and six layout fault controls.

  • Normal-app simulator flows, address selection, settled rotation, and settings cleanup pass.

  • This branch builds for the iOS simulator, including the widget, and macOS ARM64 Release.

  • Android debug build and unit tests pass. Android retains its paired conversation runtime.
  • The branch preserves the existing bundle identifiers, developer team, app group, deep links, server URL, and release scripts. Signing and publishing configuration is unchanged. The privacy manifests declare the elapsed-time and shared-preferences use required by these features.

    The last transcript layout correction has simulator coverage and still needs physical-device acceptance. Synthetic speech and simulator checks do not establish crowded-room recognition accuracy or physical headphone routing. macOS validation covers Apple Silicon.

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    High Risk

    Touches live conversation, auth, subscriptions, bundle/signing identity, and automated store uploads—errors affect production builds, billing, or reviewer access.

    > Overview

    Prepares a Cautela App Store / Play launch: bundle IDs, entitlements (Sign in with Apple, location, motion), StoreKit products, broker URLs, metadata, and marketing asset tooling shift from sh.ian to hk.cautela.

    > Product behavior adds automatic conversation mode on Soniox—fixed listener language, inferred partner language, and dedicated turn/translation/speech rules—alongside optional location-based language suggestions, a separate localized address lookup flow, and motion-based listening prompts after start or handoff.

    > Audio and conversation recovery refactors directional speech playback (ordinary-route fallback, A2DP), hybrid/offline handoffs, native-segment ownership, and network retry so edits and reconnects do not duplicate rows or mis-route TTS.

    > Release ops: new TestFlight workflow (archive + public-group distribution), Play internal upload on main when secrets exist, and key-broker deploy steps that bulk-load App Review credentials. LivelyTests and an Xcode scheme are wired in; offline neural voices can pin/update via the key broker manifest API.

    > <sup>Reviewed by Cursor Bugbot for commit 63d5a748bf8a2a708bb6aff2fa27c28d1510bfdb. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 552 lines (+414 / -138) across 6 files Reviewer: iangcarroll Review duration: 2173m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 552 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.378
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19% · Safe to merge
    19%