Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 4.41 KB

PHASE_2_AUDIT.md

File metadata and controls

29 lines (24 loc) · 4.41 KB

Phase 2 architectural audit

Severity Finding Implementation checkpoint
Critical Phase 1 thin builds cannot prepare a new install. A newer APK cannot extract assets from the replaced APK. v0.0.13 embeds both proven bundles and stages them in the existing immutable vault. Next validate native initialization before marking a fresh installation ready.
High The system assistant shell is intentionally lightweight, but the foreground Activity owns the only microphone worker. Assistant selection alone cannot guarantee a legal microphone foreground service or hardware hotword support. Use an explicitly activated microphone foreground service, ongoing notification, one app-wide capture lease and no restart after OFF. Keep Oppo screen-off behavior pending.
High The KWS API exposes token onsets, not an authoritative last-token end. Using the last onset alone can leak wake audio; adding a fixed offset can clip a no-pause command. Cold ASR loading must not block capture. Separate continuous audio ingest from native decode; bound and timestamp pre-roll, fail on a missed range, and measure actual acoustic boundaries before claiming gapless accuracy.
High A short stable prefix may be grammatical but cannot authorize an action. The legacy fixed acoustic endpoint and limited preview classifier also miss incomplete or corrected commands. Introduce typed side-effect-free candidate preparation, acoustic-and-semantic evidence, cancellation first and final-tail regression tests. Keep unknown/partial actions gated.
High External Clock intents have no portable transaction ID or update/undo semantics. Existing physical communication gating is intentional, while deterministic no-side-effect calculations do not need an extra tap. Use stable app-owned timer IDs and transactions; retain destination confirmation for communications.
Medium Capture reads and JNI are coupled. Feedback inside an armed capture window can trigger or clip audio. Mic failure, calls, audio silencing and thermal transitions must yield state immediately. Measure defensible off-device pieces first. Prefer conservative feedback around the microphone lifecycle, and maintain explicit OFF/ready/error states.
Medium Enrollment and practice books track outcomes, not improved acoustics or decoder behavior. Runtime token lookup is not the same as safely adapting the vocabulary. Preserve encrypted independent schema. Only activate reversible learned settings after separate held-out improvement and false-activation checks.
Medium Status-bar touch ownership and Fluid Cloud occupancy have no supported public per-pixel API. App-window placement cannot prove global operation. Use default assistant invocation from Android and a clearly local cutout-safe control; do not intercept protected swipes.
Medium Published build validation covers app and archive integrity. Physical latency, echo, gaming, PSS, accuracy, 24-hour battery and 72-hour survival have no measurements. Keep field tests in the device checklist and retain arithmetic/transactions/lifecycle outcome tests separately from hardware evidence.

References for Android foreground restrictions, supported capture ownership/assistant selection, and upstream acoustic boundaries:

Endpointing research

Joint neural endpointing work describes accuracy/latency tradeoffs and end-of-utterance acoustic signals. Friday keeps its pinned model and combines its native endpoint with candidate stability and command grammar because no comparable local corpus shows a reason to change trained weights. The software gate requires both signals. A simulated gate regression is not a measured performance gain.