Files
client/docs/mobile-port-progress.md
T
2026-11-14 21:13:27 +03:00

135 KiB
Raw Blame History

Мобильный порт: передача состояния

Updated 2026-11-11. Windows baseline remains 05e8d34bcf0e24a44f76e65220293c45b6821798; active branch feature/mobile-port pulled fast-forward to 32318e3e3ff65b521f491fda8a23b30bb9aaf642. First Android test APK was built on the OTHER developer's WSL machine (C:/Users/Admin), not this Windows workstation. Its WSL/provisioning authorization does not override this machine's ignored mobile-build.local.md. Published Android prerelease exists; owner has now launched it on a phone and reported onboarding defects. Local fixes below are not yet rebuilt into an APK.

Automatic Android CI setup (authorized continuation)

  • User explicitly authorized job-container Android tool installation, SDK license acceptance, commit/push of mobile branch including current onboarding fixes and first automatic build. No host modification, paid resources, disk expansion, production signing, release or device actions.
  • android.yml: push only feature/mobile-port, manual build/inventory; existing ubuntu-latest label with isolated official ubuntu:24.04 container, six-hour deadline, one Cargo/Ninja job. Precheckout/preinstall guard requires100GiB free on workspace/root and8GiB RAM; setup also checks cgroup headroom. This conservative gate may block the previously observed≈21GiB runner.
  • .gitea/setup-android-ci.sh / tools JSON provision pinned Android tool inputs; packages installed only in the disposable container, host packages/runner configuration untouched. Existing source build remains xtask deps/build/package/verify-package, full Skia+WebRTC, no prebuilt bypass.
  • Actions cache v3 covers isolated downloads/SDK/Skia/Gradle/Rust/Cargo and Cargo target; WebRTC source/object caches are deliberately NOT restored without separate persistent runner storage. Each run generates and verifies current dependency provenance. No promise of fast incremental WebRTC builds; cache capacity/service availability remain runner-admin prerequisites.
  • Artifact android-harness-arm64-<SHA> keeps APK plus receipts14days. No production/release auto publishing. Test signing remains isolated per package; never uninstall the phone app automatically to resolve certificate mismatch. README updated; .android-ci ignored; local caches/policy untouched.
  • Local validation: Bash syntax for setup/helper and every workflow run block, YAML parse/trigger gates, embedded Python syntax and tool pin fields passed. Actual automatic run outcome recorded after push; workflow presence alone is not APK success.
  • Push confirmed: manual PowerShell authentication succeeded exit0 on retry; remote feature/mobile-port=8d25224816e3b360ad05c2fa375c41e006d35ef2, main remains the accepted 05e8d34. Automatic push-triggered run4840, job5436 on monkeyRunner, completed failure at Resource gate before checkout/cache/tool installation. Public jobs API confirms all later steps skipped: no tool provisioning, source build or new APK. Exact failing shell output was not accessible: logs API HTTP401 and headless browser navigation repeatedly ERR_CONNECTION_CLOSED (including HTTP1-only retry; TLS verification never disabled). The previous≈21GiB versus100GiB threshold suggests disk shortage, but this is not yet the fetched error message. Need authenticated job log to distinguish disk/RAM/container gate; do not lower guards or allocate storage blindly. This result entry is local after push to avoid another automatic build.
  • Owner reported storage expansion and authorized another build. Retrying unchanged resource gates through a mobile-branch push; capacity inside the job still needs confirmation from execution. Headless Gitea navigation remains ERR_CONNECTION_CLOSED even with explicit DNS IPv4 mapping; public API and Git remain usable. No host/disk mutation, guard reduction or TLS bypass performed.
  • Retrieved run4841 job5437 logs through the public web view's read-only POST logCursors endpoint (no credentials required). Proven failure is not disk: runner v0.2.13 left the workflow-level defaults.run.working-directory: ${{ github.workspace }} expression literal and tried cwd /workspace/TeamsPeach/client/${{ github.workspace }}; OCI chdir failed before shell execution. Removed that override so runner uses its native workspace default. Resource guards remain unchanged; expanded storage still awaits the first actually executed resource step.
  • Run4842 on 2804788 passed resource/bootstrap/checkout/cache steps: workspace/root available 223166976KiB (≈213GiB), MemAvailable30322916KiB. Provisioning installed host-in-container tools and Android SDK/NDK, then failed git-sync-deps with HTTPS connection errors to skia.googlesource.com and chromium.googlesource.com; other pinned checkouts succeeded. Added at most3 sync attempts against the exact same immutable inputs, retaining mandatory SHA/revision checks and fatal failure.
  • Run4844 on aecbacc passed all provisioning and xtask tests (10 passed), reached real WebRTC compilation (1483/4674 observed). User clarified the one-job limit applies only to their Windows PC; CI configuration changed locally to4 Cargo/Ninja/CMake jobs using the observed32CPU/≈29GiB RAM. Running Ninja cannot change job count via Gitea; do not cancel and discard this job's uncached WebRTC progress merely to increase parallelism. Publish the4-job setting after the current run; local mobile-build.local.md limits remain unchanged.
  • Run4844 final: WebRTC source build/provenance succeeded (34m48s), then native APK build failed after14m34s: rustc teamspeach_native terminated by signal9/SIGKILL, not a reported Rust type error. APK/package/upload did not complete. Cause is not proven OOM: no cgroup memory.events/host killer evidence was recorded by that revision. Local4-job configuration not pushed yet; repeating a more concurrent cold build without diagnosing the kill is unsafe. Added failure-only cgroup memory evidence output for the next run. Need runner administrator's OOM/limits evidence before choosing more memory or Android-specific compiler settings; Windows optimization workaround not copied.
  • Owner requested continuation. Preparing4-job CI with pre-application checkpoints: exact-policy WebRTC checkout/object cache saved only after successful deps, plus tool/Cargo checkpoint before native compilation. Cache hits still execute source/patch/fingerprint/provenance checks; cached repository lock is never substituted. Added before/after visible cgroup memory counters and time-v maximum RSS as failure-safe artifacts; these distinguish measured OOM from arbitrary SIGKILL. No lto/codegen override, memory-cap removal or host administration performed.
  • Run4846 final (88276c09c7659a5be759b470494f31b131e46f03): four-job WebRTC succeeded in15m38s; verified source/object checkpoint saved successfully (17300614028 bytes), tools/Cargo checkpoint saved (2041394615 bytes), both before application compilation. Native build failed in7m30s: cargo terminated signal9/SIGKILL; before/after memory.events oom_kill increased0→2 (also memory.events.local), visible memory.max/high remained max. Owner subsequently clarified that both interrupted builds coincided with their manual pauses and authorized resumption. Keep these counters as observations, not a requirement to change runner memory or compiler settings.
  • Diagnostic upload succeeded (android-build-resources-88276c09c7659a5be759b470494f31b131e46f03). No new APK or phone installation. Full source/cache gates remain; repeated cold dependencies can now be avoided on matching validated cache hit. Do not delete these caches or copy Windows compiler overrides into CI. SSH/admin connection is not configured; no host change via mounted Docker socket attempted. Resume with the same4-job configuration and caches on owner's instruction; no memory expansion, optimization override or new infrastructure investigation is required by these pauses.
  • Run4855 (e676f2a) restored both caches but gclient refused pre-existing pinned libunwind changes in src/buildtools. Added CI-only pre-sync receipt-bound reversal of exact applied_source_diffs; unexpected modifications abort, object files retained, xtask reapplies pinned patches afterward. Real temporary Git fixture passed reversal/output-retention and mismatch-rejection checks.
  • Run4857 restored caches and completed deps in2m36s; native rustc again SIGKILL, oom_kill0→1. User explicitly confirmed this run was not paused and authorized a low-memory mode ONLY for Android CI: teamspeach_native/aarch64-linux-android codegen-units256, lto=off. Added opt-in workspace rustc wrapper with exact crate/target matching; build-info records optimization. Real wrapper scope smoke passed for Android native versus Windows native and Android core; no release defaults changed.
  • Run4858 (df2cce71dfd6d9944e96c929acb7841052ac38c2) used the explicit Android rustc wrapper (confirmed in failed process command), restored dependency cache, deps passed2m55s; native build failed6m19s with SIGKILL and new oom_kill0→1. Peak4099514368 bytes remains an observation, not proof of a configured4GiB limit. No APK/package/upload. Memory diagnostics uploaded successfully. Authorized low-memory variant alone was insufficient; no further identical rerun, host memory/swap modification or removal of checks. Need effective runner parent/host capacity changed or another explicitly approved compiler-memory strategy; preserve caches. Latest result note local after push.
  • Runner migrated: fresh inventory run4860 passed;32CPU, MemTotal131294968KiB, MemAvailable125382616KiB; tank-store2/subvol-1010-disk-0 size536870912KiB, available473546624KiB. Inventory did not measure parent cgroup limits.
  • Owner now explicitly requests normal Android release optimization first;4 jobs retained, low-memory wrapper disabled. Only if this new build actually exhausts memory may the assistant enable the previously authorized low-memory fallback without asking again. No changes to local Windows policy, host limits or unrelated release defaults. Starting a new push-triggered build.
  • Run4861 (6e69516) completed normal optimized native Rust/Slint build in5m43s, without low-memory wrapper; memory.events oom_kill remained0. Packaging failed applying AGP8.10.1 with AndroidLocationsBuildService initialization error. Setup defined conflicting Android preference roots: ANDROID_USER_HOME=tools/android-user versus ANDROID_SDK_HOME=tools/home (implies home/.android). Align both conventions to isolated HOME/.android; do not change compiler mode for this packaging error.
  • Run4863 SUCCESS (17m51s) on 52d2c22ec0519a3e423dd3a38a9649dc96a4fdc7: normal optimized Rust/Slint/WebRTC build, Gradle package/verify and artifact upload succeeded; low-memory fallback NOT used. Fixed Android user preference paths resolved the packaging failure.
  • Downloaded full android-harness-arm64-52d2c22ec0519a3e423dd3a38a9649dc96a4fdc7 bundle into dist/android-ci-4863/; all build-info SHA256 entries matched, verification.passed=true, optimization.scope=workspace release defaults. APK TeamsPeach-0.1.7-android-arm64-harness-test.apk, 124332719 bytes, SHA256 477c60ee4da9b62a6b894de44a36db960d8e82ac307404c4fccb80006320e1ee. Exact receipts retained alongside APK. No release publication, phone installation or profile deletion; device onboarding/voice acceptance of this new APK remains to be performed explicitly.
  • Owner authorized installing new test APKs and checking the selected USB phone after builds. Mic/server scenarios remain separately scoped; do not read real profiles or delete app data implicitly.
  • Device smoke of run4863: initial unauthorized/USB transport failures cleared after owner confirmation and cable reconnection. Update rejected INSTALL_FAILED_UPDATE_INCOMPATIBLE. Owner explicitly approved deleting the old disposable installation/data; uninstall and fresh test APK install both returned Success.
  • Actual TECNO KJ7/API34 UI: fullscreen onboarding and compact nickname input visible without scrolling; Cancel returned to launcher and relaunch worked. Assistant entered disposable nickname AndroidSmoke (no existing identity read). Keyboard covered bottom actions despite host-side preview pass; after dismissing keyboard, Create reached Loading but remained there across observations. Identity creation and profile-ready state NOT accepted; no matching error-level runtime/crash message was found. Captures: target/desktop-acceptance/android-4863-{onboarding,keyboard,create-result,onboarded}.png. No microphone grant/server connection performed. New device defects: real IME insets and bootstrap completion require investigation; do not present successful APK build as functional phone acceptance.
  • 2026-11-12 follow-up on the same run4863 installation: after restart/unlock and disposable AndroidSmoke submission the UI displayed File operation failed (PermissionDenied), not a proven identity-generation deadlock. Known profile owner/prefs/vault files were absent (existence checks only). App-UID read-open checks denied /, /data, /data/data, while the private app directory/files opened successfully. profile_import.rs had requested read access on every absolute ancestor.
  • Android-only traversal now uses O_PATH|O_DIRECTORY|O_NOFOLLOW for ancestor handles; the final entry still requires read access, metadata/type checks and no-follow protection remain. A regression case exercises fresh profile initialization through a search-only ancestor and rejects a directory symlink. Device verification of this fix is pending the next APK; no profile contents were inspected.
  • Insets now come from the window and are projected onto the actual Slint SurfaceView, subtracting already excluded bars/IME. Content reserves max(navigation, IME), not their sum. Android onboarding adds a small top gap, reduces bottom padding, and omits Import backup; Settings → Identities already retains the existing identity-import action. Both keyboard and navigation-mode behavior await phone proof.
  • CI completed-application cache is separated from provisioning/Cargo sources, partitioned by target, tool/dependency/release/harness/optimization identity, and saved before uploads. SHA256/type/mode matching restores only unchanged input timestamps after mandatory dependency verification. Python syntax, YAML ordering and temporary content/change/directory/clock fixtures passed; Windows fixtures adapted only unsupported no-follow utime, so Linux syscall/cache-service behavior awaits CI.
  • Fixes committed/pushed as fd41389d63ddf059c3e077cd1c1081789233f536; automatic run4865, job5461, started successfully. Normal release optimization and4 CI jobs retained. New cache-key families need their first completed checkpoint before a subsequent build can reuse them; existing WebRTC cache remains unchanged.
  • Owner explicitly reinforced: fix underlying technical causes and platform contracts, never hardcode behavior for this phone, resolution, profile or test. Device results are evidence, not the scope of a fix.
  • Run4865 SUCCESS: normal optimized Android build/package verification, application-cache snapshot/save and artifact uploads completed. Full download hashes matched; APK SHA256 6ffd7feda9c526b8ec4103fdd6f8eb78b6bac4f87b368120f5b0e7bd14471bad installed after signature mismatch.
  • Owner granted standing permission to remove/reinstall this disposable Android test app and its data when test signatures differ; this does not authorize deleting real profiles or changing other apps. Also authorized temporary three-button navigation testing with restoration to the original gestures.
  • Run4865 device not accepted: PermissionDenied was resolved, but Create returned misleading The native profile is already open; pinned Rust1.96 std file locks omit Android and return Unsupported. core::file_lock now uses the already pinned fs2 flock implementation on Android, std elsewhere. Migrated profile/vault/core/prefs/import/recovery locks, distinguishing actual contention from OS errors. Real descriptor contention/shared-reader/drop-release regression passed on Windows under5GiB Job Object, below-normal priority and7/2GiB start/reserve checks; no full Windows rebuild or Android unit execution.
  • Run4865 IME still covered actions. Actual NativeActivity hierarchy has NO SurfaceView; Slint uses the Window's ANativeWindow, while NativeContentView only reports unobscured content. The SurfaceView guard suppressed all inset updates. Corrected observation/projection to decor/native-window coordinates. New APK still required to prove keyboard actions, creation and navigation modes end to end.
  • Run4867 (3cc9565fab907fc1c8d81b465e689ae1df6472ad) SUCCESS, normal optimization; bundle hashes matched, APK SHA256 0559559e12d15ccf6a4075cf1d02842a1dc394d71e836bb21a0e812d7180ffc2 installed. Real keyboard-visible Create/Cancel are reachable with gestures and three-button navigation; Cancel exited the app. After keyboard dismissal an excessively short content area was observed; do not claim full inset/lifecycle acceptance. Original gesture mode restored and verified (navigation_mode=2).
  • Owner requested thorough onboarding analysis before further build attempts. Current run4867 identity creation succeeded: known vault/prefs files exist (metadata-only), onboarding disappeared, main shell appeared. Force-stop/cold launch without data deletion returned to main shell, not onboarding. Exact create latency was not measured. Evidence: android-4867-analysis-{submit,current,cold-start}.png in target/desktop-acceptance/; no identity contents, microphone or TeamSpeak server used.
  • Separate reproducible defect: app-scoped logcat on creation and cold start reports panic at rustls-platform-verifier-0.7.1/src/android.rs:90, Expect rustls-platform-verifier to be initialized. Android nativeInstall never initializes its JVM context; Gradle supplies only WebRTC and all4 APK DEX files lack the verifier class prefix. Verifier::new itself does NOT panic: certificate verification does. [INFERENCE] PhishingList's detached startup refresh is a likely caller, not proven without a stack; main-shell operation continued. Do NOT claim this background panic proves the cause of persistent Loading.
  • Static failure-contract defects: runtime fatal Result publication does not increment snapshot.revision; UI applies snapshots only on revision changes. Construct errors propagate with ? before FormComplete. Submission sets editor busy before dispatch, but enqueue failure routes only through services (absent before bootstrap), not a negative form acknowledgement. Editor.merge replaces busy/error on unrelated snapshots. Initialized-empty-profile retry calls onboard synchronously and ignores the selected theme. These are source-confirmed failure paths, not all reproduced on the device; root-cause work must repair terminal acknowledgement/state publication, not merely add a timer or clear busy blindly.
  • Cache optimization work is local/unverified: tools-v3/application-v2 compatibility keys separate dependency content from toolchain/profile/environment. Run4867 logs proved tools/application MISS due changed Cargo.lock/manifests; WebRTC hit. No new build started after the owner's analysis request.
  • Follow-up implementation: unified worker-owned create/resume persists theme and reuses committed identities; actor stays responsive during storage work. Captured FormComplete reports startup failure, terminal snapshots advance revision and clear unusable forms; dispatch rejection is attachment-local. Added7 targeted bootstrap failure/recovery/UI regressions; guarded Windows run stopped by the resource guard during dependency compilation (exit125), before tests ran. Limits were not raised.
  • Android TLS now initializes verifier0.7.1 via a JNI0.22 adapter alongside unchanged app JNI0.21, loads helper classes eagerly, packages Maven helper0.2.0/Kotlin runtime, retains R8 JNI classes and verifies their DEX definitions. Platform trust verification remains enabled. Native IME reporting is deferred until root insets/layout commit to avoid retaining the old keyboard obstruction on dismissal.
  • Warm-cache compatibility/source-timestamp fixtures and workflow ordering passed locally (Windows no-follow utime adapter only); one new cache generation required because legacy opaque identities cannot prove tool/profile compatibility independently. Real cold/warm timing proof remains pending.
  • Run4869 (5799fcb0d17c4eb556b34cd8bdbf8c074e7824a9) SUCCESS: compile/package including TLS helper DEX checks passed. First v2 application/v3 tools snapshots saved (824MB/2522MB compressed). Cold provisioning20m14s included241s Rust download gap and850s gap before Skia sync output; application build/package10m12s. Starting a documentation-only follow-up to measure compatible warm cache reuse without changing application sources, manifests or optimization. Phone proof pending.
  • Run4869 bundle hashes verified; APK SHA256 debee000d1d6dd5fd74c55670fac2f64089a193e34271077dd0d628599556f5c installed on selected TECNO. Real Create(AndroidSmoke) reached main shell; force-stop/cold launch returned to main shell without onboarding. App-scoped logcat contained0 panics/0 verifier-init errors across both inspected PIDs. No microphone grant or TeamSpeak connection performed.
  • Real gesture-navigation IME proof: Create/Cancel visible above keyboard; dismissal restored full-height onboarding and bottom actions. Evidence target/desktop-acceptance/android-4869-{onboarding,ime-visible, ime-hidden,created,cold-restart}.png. Warm validation run4872 on documentation-only e443f9a running.
  • Warm run4872 SUCCESS (11m17s): tools and application cache HIT;832 Cargo build-start stamps preserved exactly,1894/1897 matching inputs restored. Rust release1.63s with no Compiling lines; application/package2m04s versus cold4869's10m12s, provisioning55s versus20m14s. WebRTC restore1m24s plus mandatory deps/provenance3m56s remains. These measurements prove reuse, not full CPU utilization.
  • Owner explicitly requested all runner resources. Android resource gate now exports nproc to Cargo/Ninja/CMake (no fixed4); Windows remains1. Cache contract excludes scheduling count and accepts previous four-job v2 receipt only after checking its full recorded tool/profile/environment identity. Local compatibility fixture passed; full-parallelism CI execution pending.
  • Windows bootstrap regression compilation could not fit the authorized5GiB Job Object: rustc allocation failure even with native-only codegen256/LTO-off/debuginfo0. Existing CMake path was supplied explicitly after initial tool lookup failure. No limits raised, no further local heavy retries;7 new tests remain unexecuted. Android compile/package and real creation/relaunch proof are separate successful evidence.
  • Run4873 (cec86d8e3d89aa48c155903c107c30cfce7ee28a) SUCCESS (12m28s). Host reports32 CPUs, container nproc exposes16; logs confirm Cargo/xtask/gclient use16 jobs. Compatible application cache restored from run4872; dependencies3m21s versus3m56s. Application/package3m51s included recompiling only teamspeach-native (release1m47s), unlike run4872's no-recompile1.63s; do not infer a clean4-vs16 speed comparison from these unequal workloads. Reported oom_kill stayed0. Full available parallelism is enabled, not a claim of100% CPU utilization on sequential/IO stages. Latest phone proof remains4869; later changes are CI/cache/docs only. Handoff results kept local to avoid an unnecessary new CI run.
  • Owner authorized complete phone UI adaptation and microphone/playback testing against eeee.moe with AndroidSmoke. Do NOT start/connect a PC client: owner is already on that server. Test only phone.
  • Phone UI work: Android size-class shell with immediate New Connection, bounded actions/body and navigation; full-height connection/other forms with persistent footer above IME; one-column settings, identity label fallback/import entry; chat picker/composer/tools and per-row wide-content scrolling. Shared touch buttons wrap within available width; Android Choice uses readable wrapped selection.
  • Audio defect observed before any device start: idle scheduler delay produced audio_worker_stall. Deadline checks now distinguish live devices and rebase before processing queued work;3 production scheduling regression tests passed under Windows resource guard. Private microphone test no longer requires a connected server slot; permission/current-session validation remains. New APK/device proof pending; local integrated Slint compiler check was stopped by guard/deadline, not claimed as pass.
  • Integrated cached Slint compile subsequently passed after fixing actual intrinsic-width dependency cycles in shell/settings/chat; no app renderer/backend substitution. Full adaptation committed/pushed as 5e2a82b; run4875/job5471 is building with all available runner CPUs and compatible caches. Settings identity name falls back to nickname/default, import remains explicit. Android dialogs use one bounded full-height form layout, including New Connection; desktop branch remains separate.
  • Run4875 compiled/packaged successfully; downloaded bundle hashes verified; APK SHA256 da62bf279ec13a29ea20d844d66e3ee1c85d13dc4671ac92148fb3f54fe3c703 installed. User explicitly chose nickname EBLAN and channel cs on eeee.moe. Real connection confirmed by owner desktop; parent did not start/access PC client. New Connection form is now full-height and usable on phone.
  • Device revealed NewConnection did not select its new viewed slot: connected voice footer with empty old-slot tree. Manual picker selection exposed server channels; explicit Join placed EBLAN under cs, although subsequent UI reported target_changed. Voice RX/TX not working per owner; not accepted.
  • Pending corrections: explicitly view opened connection, display acknowledged channel in Android voice status, distinguish acknowledged Join from audio-restoration failure. Serialize output startup/recovery, refresh notification permission after output grant, avoid duplicate delayed InputReset/CaptureRevoked revocation and do not close TX for unrelated command/notification errors. Actual engine faults still revoke immediately and emit stopped state. Explicit microphone resume intent separated from activity. Four real CallAudioState regression tests passed under local guard; new APK/live voice proof pending.
  • Run4877 SUCCESS; installed verified APK SHA256 b7328c8953073958daeea952b7fc77ef7ea7ba167b379588712b5e443b3faf43. New connection selected automatically; channel tree and acknowledged Channel: cs visible. Owner confirms RX silence and TX failure persist. Private Record/Listen also failed with audio/privacy epoch errors; AAudio open success does not prove PCM/capture/playback. Do not repeat old failed tests.
  • Further source-confirmed cause: receive-only refresh returned before recording transmission owner, making20ms ticker repeatedly StopInput/revoke while explicit activation was in flight. Record owner before authorization exit; hold one configuration guard through freshness check and activation; private test actions share that guard. Stage-labelled errors contain no private data.
  • Nonterminal configuration/file/whisper failures previously tore down playback/session consumers as if the core died. ConnectionEvent::Failure now carries explicit terminal state; only core stream death tears down routes, with exact SessionKey matching. Ordinary errors remain visible. Verification pending.
  • Run4879 failed compilation on3 missed sync_audio_to guard callers; corrected in70ed120. Run4881 compiled/packaged successfully and installed: APK SHA256 a7ff4ecd445876c28a41a2d243b81b75d1c31a334c72814724e80e7a09ea284a. Owner still confirms no RX/TX. Channel cs/display works; voice acceptance remains FAILED.
  • On2026-11-13 owner requested deep analysis/review rather than further speculative fixes. Read-only review at70ed120 covered full RX/TX plus callback/Android/notification boundaries; source unchanged. App-only OS evidence: focus and foreground service granted, current playback/recording inactive; AudioFlinger outputs lived106/136ms, AppOps mic use129ms. First teardown reason not retained.
  • Strong source findings: default-output/voice-follow notification recovery trap before StartOutput; output-generation rejection can lose connection enable epoch; delayed hardware events can erase PTT restart intent; slow initial device construction trips live watchdog; close leaks audio scopes. Xrun→permanent fault→both-device teardown is a plausible first-stop mechanism, not proven on phone. Detailed findings, counterevidence and falsifying checks added to assessment deep IN/OUT section. Next: retain first fault and exact epoch/PCM counters; exercise deterministic failure sequences before another device iteration. No new tests/builds/source patches during this review; never claim sound fixed.
  • Recovery implementation after review: first native fault retained across teardown and emitted with audio_first_fault prefix (fixed labels/counters only, no PCM/device IDs/identity). Callback/frame/xrun counters retained; acknowledged errors no longer duplicate raw events that overwrite workflow stages.
  • Explicit capture intent is separate from observed activity; normal muted/deafened no-permit outcome is not target_changed. Output is restored before voice-follow configuration; logical/physical route revisions separated. Authoritative connection epochs survive superseding physical-output revocation. Initial converter preparation precedes output callback startup and first-device schedule is rebased.
  • Manager now emits exact-key Closed before losing its worker, so close/restart releases playback scopes. Agent verified production scheduling helper5 tests and std-only first-fault retention/sanitization1 test; full integration and device tests pending. Xrun behavior remains unchanged until first-fault evidence.
  • Run4899 SUCCESS, APK SHA256 27d839a0271cb2ad5943a6fca6ad7e88db0557b399f26603b6a7997dd7f28a14 installed. First-fault evidence finally identifies audio_clock_discontinuity/render_reference, UI TimestampReversed: output5 callbacks/4100frames, fault=None, xruns0, drops0; no input. This excludes Xrun/overflow as the first failure in this observed run; callbacks were subdivided before clock analysis.
  • Exact old ClockTracker snapshot regression FAILED as expected:1024-frame callback subdivisions then next callback estimate+5ms triggers false TimestampReversed. New production callbacks retain original callback observation separately from block timestamps; sample-position and raw-clock reversal gates remain. Cached-dependency harness compiled actual devices/resample/ring modules: 45 tests passed, including exact failure reproduction,4100-frame burst,44.1/48k, stale PCM/privacy, expiry and overflow boundaries. Drift starts nominal and is acquired conservatively only outside200ms span uncertainty; no relaxed PCM age cap. Full Android integration/device proof still pending.
  • CI4899 measured13m21s total, actual Rust compilation2m11s; tools/application caches hit with832 unchanged build-start stamps. WebRTC restore1m27s, deps3m23s; package redundantly ran verify twice. Removed external duplicate verify-package call: xtask package already runs full mandatory verifier, and bundle code still checks passed receipt + hashes. Dependency provenance checks remain unchanged.
  • Run4901 SUCCESS; installed APK SHA256 aaf1a5f5b1f9d0365f5e666ac1318efbf473a4f03fca0343101a078c6dde022c. Owner still reports both directions failed. First fault changed to audio_reference_stale before ClockTracker, same5callbacks/4100frames/faultNone/drops0/xruns0. Source confirms concurrent drain uses pre-drain now, falsely rejecting callbacks enqueued afterward; actual-ring/exact-predicate test FAILED as expected (5 controls passed). Phone signed age missing, so true >200ms backlog is not excluded.
  • Multi-layer review also identifies unmeasured midpoint calibration uncertainty and a long-lived drift policy regression:~401s acquisition at500ppm can outrun timestamp headroom.45 earlier tests covered separate modules, not full Worker drain or long-lived end-to-end capture. Must extend coverage.
  • Owner specifically requested protocol-core investigation. Core queues use fresh per-frame/per-send time and do not share the native frozen-time predicate. Independent core review found conditional starvation (unbounded drain on same socket/RX executor) and encode-under-capture-mutex coupling, not a proved codec/protocol failure. New core tests refused before launch by7GiB start guard (6.90GiB free), no core pass claimed. No new app source edits or CI since layered-analysis request.
  • Owner now reports the same RX/TX failure on Windows after Rust+Electron → full-native migration. Treat as a cross-platform regression report; historical Windows acceptance is not proof of current success. Investigate shared native audio/runtime and protocol core separately; no PC client/session access authorized by this report. Shared timestamp/lifecycle fixes are in progress, not verified yet.
  • Requested immediate phone screenshot captured to target/desktop-acceptance/android-new-error-now.png: Microphone activation failed at authorization_current (audio_activation_revoked; generation=2; session=1). This stage checks transmission revision/current permission before activate_microphone; screenshot alone does not identify the revocation source or establish OS permission denial. Listening-resumed status is also visible. No microphone action, reconnect or phone state change was performed.
  • Core audio regression retry started with7.38GiB free physical/10.17GiB commit; Python guard host was interrupted (exit130) during compilation. No test completion recorded; no cargo/rustc process remained at follow-up. Do not count this as a pass or a test assertion failure.
  • Shared timing corrections now use callback-local arrival for queue residence, fresh per-pop time, signed rejection diagnostics and queued-capture-before-timeout ordering. Hardware capture age, epoch/boundary, source expiry and Xrun behavior remain guarded. Converter timestamps follow actual SRC source phase relative to hardware callbacks, not first+nominal output count; rolling measured jitter/rate fit no longer spends the privacy age budget waiting for drift acquisition.
  • Verification on Windows under unchanged resource guard: actual devices/resample/ring modules 51 passed; exact extracted production MonoConversion + five existing/new engine timing tests 5 passed, including all contiguous451seconds at44.1/48kHz ×±500ppm (no sleeps or PCM history gaps). Core audio filter subsequently 23 passed,1 ignored (external recorded speech fixture unavailable). These are local synthetic/codec checks, not device or full worker integration acceptance.
  • Actual native engine-test compilation (--no-default-features --lib media::audio::engine::tests) failed with allocation failure under5GiB Job cap before tests ran. No limit increase. New actual-Worker concurrent-ring/timeout tests remain unexecuted; full Android CI/package/runtime also not yet run for these uncommitted changes. Screenshot's authorization_current revocation cause remains unresolved; no speculative relaxation of authorization was applied. No new push or installation in this stage.
  • Lower-debug native test attempt also exhausted the same5GiB cap: local native-only wrapper requested debuginfo0/codegen256/lto-off; actual Worker tests still did not run. No further local heavy retries, cache deletion, limit increase or desktop process access. Need remote integration-test execution.
  • Additional authorization trace: AppRuntime::platform_event synchronously calls release_held for current focus loss, route/network changes, microphone revocation and current AndroidCallAudio; release_held clears capture intent/increments revision on all platforms. Android's queued audio handler also releases under configuration lock, guarded by platform token/revision. This establishes possible revocation paths, not which event caused the captured authorization_current error.
  • Owner explicitly selected remote-tests-and-apk: authorize separate Linux native-audio test run, host dependencies/cache, push only feature/mobile-port, then existing full-feature APK workflow. No main/device mutation authorized by that choice. Added host-test gate in existing disposable CI container: actual native audio, capture transitions, core audio; separate host target/cache and logs. Host test-only opt1/debug0 do not alter Android release configuration. Remote results pending.
  • Commit f47caf178a65f908696eaad26a0220182e805ad5 pushed successfully via separate manual-auth PowerShell (exit0). Gitea public Actions confirms run4903/job5499 for this exact mobile revision. YAML structure/host target isolation and all13 Bash run-block syntax checks passed locally. CI is running; public JSON Actions view is reachable via POST to run/job URL with logCursors, while REST actions/runs remains401 and browser relay timed out. No credentials read.
  • Run4903 failed BEFORE audio tests: Linux ksni0.3.7 compiled with mutually exclusive tokio/async-io. Slint system-tray explicitly enables ksni/async-io; native Linux dependency implicitly enabled its default tokio. Aligned Linux-only direct ksni dependency to default-features=false + blocking/async-io. Windows/Android dependency selection unchanged. Host gate prevented APK compilation as intended; no new APK/device acceptance. CI retained native-audio-tests-linux-x64-f47caf1 log artifact.
  • c5a9ccc push succeeded; run4904/job5500 stopped at --locked gate before host tests: feature change required Cargo.lock dependency-edge synchronization. Ran cargo update --offline -p ksni --precise 0.3.7 successfully; retained the exact dependency version and CI --locked enforcement. No APK built.
  • Lockfile correction committed locally as c5b35e5. Separate manual-auth push launcher timed out after 600seconds with no completion result. Latest observed remote branch was still c5a9ccc; c5b35e5 push is NOT confirmed. Do not reuse an older push-result.json as proof. Next action: finish manual push, confirm matching remote revision/new Actions run, then inspect actual host-test and APK results. No new installation, microphone access or connection action performed. Device/voice todos stay open.
  • Owner completed manual push; public branch API now confirms c5b35e50a2. Run4906/job5502 is running for that lockfile correction. Earlier push uncertainty resolved; host regression and APK results still pending. No device change performed.
  • Run4906 passed lockfile/dependency gates but host test compilation exposed existing Linux tray E0282 at desktop/linux.rs:59: StandardItem activation closure parameter type could not be inferred through .into(). Added explicit &mut Self to both menu callbacks; no behavior change. Tests/APK still blocked until corrected compilation completes; no passing Worker result claimed.
  • e0f4d3b442 push succeeded; run4907/job5503 SUCCESS. Actual Linux native audio tests126 passed, capture-transition tests7 passed, core audio23 passed/ 1 ignored. Includes real Worker concurrent producer/drain, freshness diagnostics, queued-capture timeout and complete451-second MonoConversion regressions. Full-feature ARM64 APK packaged/verified.
  • Owner selected install-private-test for same adb phone ending2149: after local artifact verification, update without data deletion, launch and private mic recording/playback; no PC client or new server connection. Warned update/restart interrupts Android connection. APK download underway; initial transfer interrupted, curl retry exceeded180s, longer bounded transfer active. Device unchanged yet.
  • Download4907 completed; ZIP CRC and all6 build-info SHA256 entries verified. APK SHA256 8a87a38f64d54bd0b1f946a754359b29756e4dc406150e91fc0edb885851c0a2. Replacement install rejected UPDATE_INCOMPATIBLE (test signing differs). Owner explicitly authorized deleting disposable dev.teamspeach.mobile data and installing fresh; uninstall/install both Success. Launched4907. Owner independently completed onboarding/server entry; assistant did not connect.
  • Owner reports still not working. Requested current screenshot captured as target/desktop-acceptance/android-4907-current-failure.png: same authorization_current / audio_activation_revoked, generation1/session0, channel cs displayed. This is FAILED device acceptance despite successful host tests. Timestamp changes do not fix this activation failure; actual activation orchestration remains unproved by isolated capture-state tests. No further phone input/restart performed.
  • Owner corrected the latest observation: audio WAS briefly audible, then after manipulating Capture device it stopped. Direction (owner hearing peer vs peer hearing owner) not yet clarified; do not claim bidirectional acceptance or total persistent silence. This is evidence of partial runtime success plus a reported device-selection/recovery regression. Captured current screen without input: android-4907-after-capture-device-change.png shows server tree/channel cs, no visible error banner; selected capture device is not visible. No reset, device selection or restart performed by assistant.
  • Owner clarified partial success was RX (phone heard peer); peer did not hear phone TX. Latest: Record test showed quiet microphone activity; Listen caused a very loud burst then server RX became audible. Prioritize this incident; no physical replay by assistant. Requests also include higher microphone level/sensitivity and removal of duplicate TECNO KJ7 capture entries.
  • Source evidence: Listen explicitly StartOutput before playing private samples, so it can recover previously inactive RX. Private samples were added at unity to live voice; pre-DSP meter does not measure post-AGC recording loudness. No normalized/FloatS16 double-scale bug found in Sonora. Existing adaptive AGC already enabled (initial15dB/max50dB); arbitrary additional gain deferred until processed RMS/peak measurement. No physical burst root cause proved; do not call mitigation a cure.
  • Implemented private-preview isolation from live voice/notifications, peak attenuation to0.25 without upward normalization,10ms start/end taper, capture stop before output open, and numeric recorded RMS/peak diagnostics. Actual extracted production preview tests4 passed; Android endpoint fixture tests4 passed. DSP actual-chain tests14 passed initially; DC test expectation corrected to upstream

    =47.3dB attenuation (old absolute threshold unsupported), corrected case then passed. No DSP gain/normalization behavior changed. Added tests cover normalized float/i16, silence, quiet onset, fullscale transients, DC and private-vs-TX units. Native integrated tests/Android compile pending.

  • Android catalog now collapses built-in/internal capture routes into preserved aaudio:-1 system role, labels external devices by type and retains distinct IDs even for same product name. UI shows one default choice; route callbacks refresh catalog. Exact requested endpoint must match opened AAudio device; no disconnected-device fallback. Existing unavailable explicit selection remains visible, requires explicit system-default selection, not silent profile migration. On-device selector pending.
  • Commits5060f5e +493f09aadff4543728a59c98712519e8421bf9d5 pushed; run4909/job5505 SUCCESS: Android catalog4, actual DSP15, native audio130, capture transitions7, core23 passed/1ignored. Full-feature APK compile/package verified. These establish software bounds, not acoustic safety or exact hardware burst cause. Download active. Owner selected install-record-only: update WITHOUT data deletion, restart, inspect Capture device, Record/Stop RMS/peak only; no Listen/server/PC actions. Signature mismatch requires another explicit deletion decision. Gain/sensitivity not yet increased.
  • APK4909 downloaded, all6 hashes verified; APK SHA256 a828155fa7cd162ccc7bac3c0f005a48e3a5cc8cf128bb497f79bc9d0f1d0efa. Update refused signature mismatch. Owner explicitly grants standing permission to delete/reinstall THIS disposable Android test app dev.teamspeach.mobile on same phone on future test-signature mismatches; not other apps/PC profiles. Uninstall/install4909 both Success; launched. Current scenario still record-only, no Listen/server.
  • Owner reports4909 recording chops microphone audio and plays accelerated. Screenshot android-4909-record-speed-failure.png retained; assistant did not trigger Listen. Gain remains unchanged.
  • Found source-proven Android timestamp defect: input_stream_instant projects frames_read as FIRST frame, but AOSP increments input read count BEFORE invoking callback. Legacy source: https://android.googlesource.com/platform/frameworks/av/+/refs/heads/android14-release/media/libaaudio/src/legacy/AudioStreamLegacy.cpp Internal/MMAP capture similarly read()s before maybeCallDataCallback (AudioStreamInternalCapture.cpp). Wrong end-frame timestamp can make later256-frame subdivisions appear future and be dropped; MonoConversion previously accepted forward source-position gaps and concatenated surviving PCM. This is a sufficient source-level chopping/time-compression mechanism, not measured phone attribution.
  • Corrected projection to frames_read minus actual callback frame count; unavailable initial hardware timestamps withhold PCM rather than fallback to now; loss after delivery invalidates stream explicitly. Added strict converter contiguity and actual callback fixtures requiring all480frames ×100callbacks at44.1/48k, plus gap-rejection regression and pure timestamp arithmetic tests. UI now displays recorded sample duration. Local checks refused before compilation by7GiB start guard (6.79 then6.99GiB free); no failing-test reproduction or pass claimed. CI will execute exact regression cases before APK.
  • c7fdac5bae pushed; run4911/job5507 SUCCESS. Pure timestamp3, catalog4,DSP15,native audio135,capture transitions7,core23 passed/1ignored. Actual CaptureCallback complete-buffer retention and MonoConversion forward-gap rejection passed; APK compile/package passed. Download active; phone temporal/voice acceptance still pending. A read-only selector screenshot attempt while waiting showed black/screen-off, not evidence of a catalog failure; no setting changed.
  • APK4911 downloaded, all6 hashes verified; SHA256 1cfdc368a09ba4726db8746bbc1c70d3ef8f53ae6e6dcf47fc3fe3f767deba3f. Replaced disposable install under standing owner authorization (signature mismatch); uninstall/install Success. Owner independently reports Record test microphone now excellent. This is real private-capture acceptance, not TX proof.
  • New ground truth4911: entering chat RX/TX silent; mic mute/unmute restores RX but not TX; deafen correctly mutes RX, undeafen leaves RX silent. User performed server actions, assistant did not. Investigating runtime explicit transitions, private-test reservation and physical output recovery.
  • Source-confirmed ACK race: manager complete() woke request/capture callers before publishing watch snapshot; separate app executor could read old permit. Existing core event-pump already orders prior audio_state events before completions, so no speculative stale-event cache added. Publish now precedes ACK (including input release); deterministic waker regression uses real offline core replies plus clearly labeled connected reducer fixture. Runtime/engine mute fixes and integrated checks underway.
  • Engine mute recovery now resets existing output epoch/ring/SRC state in place instead of destroying and reopening CPAL owners; unrelated connection routes retained, later physical StopOutput fences still win. Missing owner still requires explicit authorized StartOutput. Added production Worker and real binding/core-frame-producer mute_lifecycle tests (not yet executed). Voice timestamp/epoch route validation now matches stream PCM. Obsolete generation controls cannot remove newer binding routes.
  • Runtime fixes: output-only mute/deafen no longer clears existing mic consent; undeafen explicitly restarts previously authorized output and refreshes only affected input owner. No-permit/deafened capture retains consent; input mute or permission loss still revokes. Join retains existing consent across forwarding boundary, never grants new consent. Keybinds share same orchestration.
  • Explicit mic activation first awaits private-test Finish and clears reservation; old resume flags cannot block/restore live capture. Permission ACK checked against original transmission revision; late grant cannot undo privacy revocation. Added real isolated runtime/core/worker regressions, no actual network/device activation in tests. Full CI execution pending for these local fixes.
  • Owner now confirms real two-way voice works in channel on APK4911 AFTER long delay and several mic/full-mute/private-test actions. This is first owner-reported bidirectional Android runtime proof, not reliable cold-start or lifecycle acceptance. Cannot distinguish elapsed time from a restoring action without ordered boundary evidence. Keep delayed-start/mute recovery tasks open.
  • Read-only package SHA256 still1cfdc368a09ba4726db8746bbc1c70d3ef8f53ae6e6dcf47fc3fe3f767deba3f: installed4911/c7fdac5, NOT new mute-fix fb2a38d. Screenshot android-voice-working-delayed-start.png shows channel cs and Listening-resumed status; audio success comes from owner testimony, not image. Working call left untouched: no mute, launch, reconnect, microphone action or installation.
  • fb2a38da27 run4912/job5508 SUCCESS: catalog4,timestamp3,DSP15, native audio138,capture transitions10,manager7,core23 passed/1ignored. Includes three real Worker/ binding mute_lifecycle cases, real isolated runtime mute/private-exit/permission cases and synchronous ACK-waker snapshot regression. Full Android APK verified; no physical recovery pass inferred.
  • Owner explicitly selected install-now after warning working4911 call would be interrupted and test data may be removed for signature mismatch.4912 download active. Next owner scenario: connect and speak WITHOUT Record test or mute toggles first, to separate cold-start from manual recovery.
  • APK4912 downloaded, all6 hashes verified, SHA256 39fed222e48e37cb2520b0bfffe0538ab6273473deb95f47064b2ce5ce6b15fe. Authorized disposable replacement succeeded; launched. Owner confirms RX now works immediately on entering chat (no warm-up actions). Owner identifies permission dialog only appearing on first mic unmute and requests it at app entry.
  • Implemented Android-only first-visible-launch microphone permission request through existing Activity permission serialization/result path. Persistent requested marker prevents automatic re-prompt after denial; granted state suppresses prompts; explicit mic action may still request later. Smoke extras skip automatic OS dialogs. Permission grant alone does not start capture/transmission. CI/device proof pending; no desktop permission/startup change.
  • 6e5c831940 pushed; run4914/job5510 SUCCESS including Android Java compilation/package verification and unchanged catalog4/timestamp3/DSP15/native138/capture10/ manager7/core23-pass1ignored checks. First-launch permission APK download active; real OS dialog verification pending. No microphone capture is started by the new permission-only entry flow.
  • APK4914 installed via update (no signature mismatch), SHA256 4edb2645a2d2ffb915e835ef8f4e01301901ef7a840253b393fdd3aaf5892319. Owner reports permission granted but initial RX/noTX; mic mute/unmute loses RX, repeat restores both. Requested full read-only audit.
  • Audit found current-install retained first fault21:04:33 after update21:03:33: ReferenceOverflow, output29callbacks/18436frames/drops9/underrun11090/xruns0; published input0callbacks/0frames. Physical failure closes both directions; shared worker synchronous capture startup is strong source-supported starvation candidate, exact blocking operation/duration not measured.
  • Full findings in assessment “Full voice lifecycle audit — 6e5c831 / APK4914”: misleading initial core-unmuted/no-consent state, new reset false-latch race, retained PushToMute inhibitor loss, mute queued behind config lock, non-owner capture revocation, delayed Join snapshot without rebind, stale observer/private cleanup gaps. Previous ACK publication fix is intact. Existing offline tests omit live output callbacks during capture construction and connected event ordering. No fixes/builds/ reinstalls/tests in audit; preserve user call. Next work should address root lifecycle ownership, not gain/permission retries or relaxed queue/privacy limits. Phone readiness remains conditional.
  • Owner authorized fixing ALL full-audit findings and cleaning obsolete TODO. Replaced historical 28-item checklist with concrete remediation + verification tasks; completed/duplicate investigation entries removed, outstanding Windows/device/UI acceptance retained. No gain increase: private Record was accepted, old low meter alone did not justify boosting.
  • Implemented separate thread-affine CPAL lifecycle owner and cooperative live-PCM servicing while awaiting DSP/device/notification preparation. No unsafe Send or queue/age-limit increase. Added full Worker::run concurrent-callback/blocked-start regression, reset-generation interleaving, private test generation/idle-finish/status regressions. These new tests await integrated CI execution.
  • Runtime repairs cover held negative inhibitors, mute-before-lock, actual-owner batch reconciliation, same-owner live acknowledged permit refresh, no ticker set_input/retry, private Clear/resume output intent revisions and truthful effective microphone readiness. Manager publishes capture_revision and acknowledged configuration atomically; live permit API checks actual core epoch/generation.
  • Parent integration guards stale state observers before/after async dispatch, publishes authoritative manager state before notifying observers, re-reads Android permission at service construction and queued permission handling, suppresses duplicate AppOps notifications. Added actual runtime observer and initial mic-presentation tests. Targeted navigation override recorded in .ua/meta.json; old full graph remains explicitly stale, no full scan/auto-update. CI/phone proof pending for this revision.
  • Remediation691be5f pushed; CI4917 failed compiler guard coercion, fixed2716aa5. CI4918 passed native145, runtime17/18; obsolete inactive private Stop error expectation removed in8f74404 (idle cleanup is now intentionally idempotent; state/ownership assertions retained). CI4920/job5516 SUCCESS: native145,capture18,lifecycle2,manager7,DSP15,catalog4,timestamp3,core23 passed/1ignored. Full APK built/verified. Main blocked-start test runs production Worker::run plus live concurrent callback adapters; root starvation contract now exercised. Device/Windows live behavior not inferred.
  • APK4920 download active; no phone action yet. TODO source-fix items closed on CI evidence; physical cold-start/mute/deafen/private-test/selector verification remains explicit pending work. Handoff and assessment record architecture change; graph full-scan stale status retained with targeted navigation.
  • APK4920 installed under standing disposable-app authorization; all6 bundle hashes verified, SHA2568c22789bf17989db6f026fce45d9f19bfab97cf041eec61cb41d25fb3b7fc934. Owner now confirms immediate cold RX and TX on first unmute, then one capture stop after a few seconds with raw "Audio permit, connection, or privacy epoch changed". Second unmute works steadily. This is partial real acceptance, not complete lifecycle acceptance. Filtered log retained no actual first-fault entry; latest screenshot showed phone launcher, so exact failure cause is not established from telemetry.
  • Source-confirmed residual: manager push_audio bool combined per-frame timestamp rejection with permit/generation revocation; worker turned any false into target_changed then capture_failed called shared.revoke, invalidating whole manager authorization (possibly already replaced by a newer ACK). Typed CaptureIngress now separates Accepted/FrameRejected/PermitRevoked without changing core age/ generation/epoch checks. Rejected frame is still discarded; revoked old capture retires locally only, preserving fresh manager ACK for normal reconciliation. At most two sanitized ingress log entries per worker distinguish next occurrence; no PCM/identity/address logs. No retries or age-limit changes.
  • Added actual manager/core ingress + production worker forwarding regression: expired/future frames cannot stop valid capture, a fresh frame remains accepted, and an old frame after replacement cannot revoke the new permit. This exercises real offline core acknowledgments with connected reducer bookkeeping, not server/device proof. CI verification pending; working phone not toggled/restarted.
  • f403dd5fcf run4931/job5527 SUCCESS: native146,capture18, lifecycle2,manager7,DSP15,catalog4,timestamp3,core23 passed/1ignored. Actual new ingress regression passed. APK downloaded, all6 hashes verified: c91deecac9ae5bc973a057faf94a94daec35bc50decbe30d5a799e8fadf942d9. Owner authorized install-now; test signature mismatch handled by previously authorized disposable uninstall/reinstall, both Success; launched4931. Owner then explicitly reports «всее, урааа, все работает!» after requested first-TX scenario. Record this as manual Android voice acceptance for4931, not proof of Bluetooth/background/network-handover/iOS/full feature parity or exact prior fault cause.
  • Owner now asks whether to move to UI or do more technical work. Recommend UI on working audio baseline; no further speculative audio/gain refactor. Keep separate acceptance matrix for cold reconnect, mute/ deafen repetition, routes, background/interruption, long calls, multiple sessions, Windows shared-code regression and iOS. No UI implementation or new platform expansion authorized by that question alone.

Agreed seven-item pre-UI scope (owner request, 2026-11-14)

  1. No release: retain working4931/f403dd5 and APK receipt above as engineering evidence only; do not create release/tag, merge main or imply production readiness.
  2. Stable test signing: approved separate durable TEST key via protected Gitea secret; never key in repository/cache/artifact/log. Verify reinstall-free update with matching certificate. Production signing remains separate. Browser relay secret settings access timed out25s; manual secure bootstrap needed if authenticated tooling remains inaccessible.
  3. Short manual voice check (owner performs): cold launch/permission → connect/channel → RX → one explicit mic enable/TX → mic mute/unmute → deafen/undeafen → channel change → reconnect. Note APK run/revision and first failing step; no requirement for automated server playback or repeated private Listen. CI covers implementation regressions, not replacement for listening acceptance.
  4. Background: Home and screen-off preserve an already-authorized call. Swiping the app from Recents ends runtime/call/capture; no sticky/background restart. Explicit permission loss/focus interruption/ requested mute still fence capture; PTT/whisper holds must never stick after UI loss.
  5. Bluetooth: owner has headphones; test connected route + unplug/disconnect with owner. Do not assume physical device pass from catalog metadata tests.
  6. Network: exercise reachable deterministic generation/disconnect scenarios; real Wi-Fi/cellular handover unavailable to owner, record that limit. Never fabricate device reconnect success.
  7. Long calls: ordinary usage observation only, no special endurance run now.

After these seven, move to UI. New discoveries go into a separate deferred list, not automatic extra implementation. Prior outstanding Windows/iOS/general UI parity are deferred requirements, not additions to this pre-UI scope. No speculative microphone gain/audio refactor on accepted voice baseline.

  • Owner subsequently DECLINED stable TEST signing/bootstrap as unnecessary friction, accepting profile resets on disposable installs. Removed all uncommitted stable-signing Gradle/workflow/helper changes; existing isolated-per-package signing retained. Bootstrap window closed without setup acknowledgement; no repository secret creation confirmed. Do not revive signing work before UI.
  • Background candidate: retain explicitly authorized steady Android call during Home/screen-off/UI recreation, but release PTT/whisper and reject queued local starts while controls suspended. Permission denial/audio focus interruption/explicit osMuteWhenLocked retain fail-closed behavior. Foreground voice service holds scoped partial CPU lock; Recents task removal shuts down matching runtime/call/capture services with token/generation checks, no process kill or sticky restart. Six deterministic background regressions added; device behavior not yet verified.
  • Network scope: existing core automatic reconnect inspected, generation/old-capture fencing already tested. Added actual runtime NetworkChanged privacy-boundary regression plus core playback generation tests in CI. Physical Wi-Fi/cellular handover remains unavailable/unproven; do not promise transparent handover. Any further recovery UX work belongs in deferred findings after this agreed list.
  • Background candidate3fe8c82 run4933/job5529 reached tests: first five background cases passed, then terminal-shutdown fixture waited indefinitely for RuntimeServices while empty profile was still on onboarding. This is test setup error, not demonstrated app shutdown failure. Observer timed out after 1hour; opened run page and asked owner to cancel4933. Corrected fixture505a784 performs real isolated onboarding and bounds ready wait20s; run4936/job5532 running. No phone change yet.
  • Run4936/job5532 SUCCESS on505a7842357445d8d96b7c1af34d3f601625afe8: six background lifecycle cases, network-change privacy case, two prior lifecycle cases passed (9 total); native146,capture18,manager7, DSP15,catalog4,timestamp3,core23+output2 passed/1ignored. APK compile/package passed; download active. Network item completed only within agreed tooling scope: old-generation/old-permit rejection and lifecycle loss handling verified. Physical Wi-Fi↔cellular handover/transparent reconnect remains explicitly unverified and deferred, not a new automatic implementation task. Phone background and Bluetooth observations still required before UI handoff.
  • APK4936 downloaded after interrupted transfer/retry; ZIP+6 hashes verified; APK SHA256 cd57e9c4b4ac46542690e4cc8b09b4e333f737867627c19612d5980dd62ff9c4. Owner selected install-ready; authorized signature-mismatch replacement installed and launched. Owner confirms RX/TX with Home and screen-off and call exits on task removal. These background behaviors have real manual evidence.
  • Owner reports two remaining defects within agreed scope: first reopen opens/closes, second shows frozen old channel, third fresh disconnected view; Bluetooth connection breaks RX/TX and switching back does not recover. Explicit request: automatic headset route on connect/disconnect. Captured requested current screenshot android-4936-bluetooth-reopen-now.png without any input: capture selector TECNO KJ7(Audio device), start_input audio_stream_invalidated gen1/session0 and target_changed. No retained sanitized first-fault records; unknown vendor endpoint must not be presumed built-in.
  • Implementing only fresh-runtime-after-terminal-close and automatic communication-route recovery; ordinary Home retains active runtime. No stable signing/release or unrelated expansion.
  • Reopen correction implemented: Android process retains a joinable runtime lease; nonterminal Activity recreation reuses only a live actor. Cancelled/finished actor is joined outside process mutex before fresh runtime/profile services are created. Old Activity generations cannot terminate replacement. Existing explicitly configured autoconnect remains unchanged; default fresh runtime is disconnected. Three real actor/profile lifecycle regressions added to CI (android_attachment_ filter), not yet run.
  • Bluetooth candidate: Android API31+ communication-device selection by actual type/availability, legacy SCO on<=30 with BLUETOOTH capped maxSdk30; no new runtime Bluetooth permission. Begin route fences PCM, blocks startup until route ACK, preserves only already-authorized steady capture. Commit requests fresh manager permit and binds/restarts; mute/focus/permission/revision supersession wins. Missing ACK3seconds becomes receive-only, no loop/retry. Built-in verified numeric endpoints follow active call communication default; exact external/unknown IDs remain exact, persisted prefs unchanged. Pure Java selection and real-runtime migration regressions added; integrated results pending.
  • Route/reopen candidate2565e55: Java route selection fixture passed locally. CI4938 reached runtime test and failed because fixture discarded startup observer (let(_,release)); fixed61f748c retaining receiver. CI4939 route tests passed; reopen assertions incorrectly equated preferred input owner with capture activity. Removed that incidental assertion in3b56013; absent permit/audio/voice/tree and disconnected-state assertions retained.
  • Run4941/job5537 SUCCESS on3b56013d0d96d14d36593e64ff75d589642d25c9: catalog4,timestamp3,route-state6, Java policy fixture,DSP15,native146,capture18,lifecycle12,real runtime restart3,manager7,core23+output2 passed/1ignored. Full Android package verified. Default handset speaker/receiver preference preserved and remembered for headset removal. Download active; real Bluetooth and first-reopen proof pending.
  • APK4941 downloaded, ZIP+6 hashes verified, SHA256 77eeac86f1724b164d39e4c4f99c5e08f7152d7119fe4ab23b91903cda3690b7. Initial streamed adb attempt transport failed; installed4936 hash remained unchanged. Nonstreaming retry confirmed signature mismatch; standing authorized uninstall/install4941 both Success and cold launch complete.
  • Owner reports automatic headset adoption still not working; after manual Bluetooth capture selection TX works continuously but RX silent. This is partial route success, not Bluetooth acceptance. Requested comprehensive logs. No retained first_fault/ingress records; screenshot android-4941-bluetooth-rx-silent.png. Adding bounded Android engine/route lifecycle diagnostics, counters and numeric format/age/revision/ timing fields only; never PCM, chat, identities, server addresses, device names/IDs/MACs, secrets. Engine periodic summaries distinguish decoded binding input, route drops, mixer/submission/callbacks; Android communication logs identify type selection, ACK/timeout and restoration stages. Cause of RX silence remains unproved; no speculative audio gain/format workaround.
  • Diagnostic candidate implemented: audio_summary every5s while active with binding/core-decoded ingress, queue/mixer/route/time drops, TX accepted/rejected/revoked, nonzero mixed blocks/coarse peak bucket, submitted/callback/discard/underrun counts and format/revisions. Command begin/end admitted once per kind/5s with fixed reason/duration; suppressed counts visible. Callback path only counters. audio_route Java/native each <=16records/10s reports actual type selection, request/ACK/timeout/focus and recovery phase/supersession. No arbitrary ServiceError text, PCM or endpoint identities logged. New counter/rate-gate/route suppression tests await CI; no speculative route behavior change.
  • 4ea413f589 run4943/job5539 SUCCESS: native155,route-state7, capture18,lifecycle12,restart3,manager7,DSP15,catalog4,timestamp3,core23+output2 passed/1ignored. APK downloaded, ZIP+6 hashes verified: f11270b4e32e7c76bcadb49f289f7c63ee2f290e1a756e254b1694ef73ee4a04. Confirmed signature mismatch; authorized disposable uninstall/install4943 both Success; cold launch completed. No server connection or microphone action by assistant. Next owner scenario: connect, headset migration, peer speech; if RX silent leave state unchanged and collect only audio_route, audio_command/audio_summary/audio_first_fault diagnostics. Instrumentation itself is verified, Bluetooth root cause and physical route recovery remain unresolved; no diagnostic pass = audio pass.
  • While awaiting owner Bluetooth reproduction on4943, static source review found AAudio output builder sets direction/channels/format but no usage/content type (vendored cpal aaudio/mod.rs:762–765). Android defaults AAudio usage to MEDIA; VoiceService chooses communication device/VOICE_COMMUNICATION focus. This is a concrete stream-policy mismatch candidate for BT TX-only, not device attribution. Primary API: https://developer.android.com/ndk/reference/group/audio; pinned ndk0.9 builder usage and content_type methods are API28-gated while client minAPI26 remains supported. Do not blindly enable API28 imports/raise minSDK or use unsafe private builder layout; a compatible fix needs validated route evidence and explicit version-safe binding. No additional source change/build from this finding.
  • Owner now explicitly REVOKES automatic headset adoption. Replace topology-triggered priority switching and built-in→default coercion with manual independent Capture/Playback selection; system default follows OS, explicit external/phone IDs stay exact. Owner still reports headset TX but silent RX and inability to select another microphone while headset connected. No new retained bounded audio logs even with direct current-PID filter; installed4943 SHA verified. Do not fabricate device attribution.
  • Scoped work: explicit Playback may request matching communication device with ACK; Capture selection must not redirect output. Expose one representative real built-in microphone rather than hiding all phone inputs. Unknown/vendor devices remain identifiable by real IDs, never name heuristics.
  • Native output fix requires API26-safe usage configuration: exact ndk0.9 vendoring approved against Cargo.lock checksum c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4; tiny documented raw-pointer accessors permit CPAL dynamic API28 symbol resolution without private layout casts or raised minSDK. Voice outputs request VoiceCommunication/Speech; independent notifications remain MEDIA, same-sink voice upgrade must rebuild properly. API26/27 absence reported as legacy default, not claimed equivalent routing. Implementation/testing pending; no source usage fix pass yet.
  • Manual routing implemented: no priority/SCO/speaker forcing on topology callbacks; one typed real built-in mic is selectable alongside external sources. Capture/DSP refresh never requests playback route. Only Output Select/Map/New requests exact communication output; startup route ACK precedes nativeVoiceStarted. Manual ACK completes caller configuration without a duplicate queued recovery.
  • NDK0.9 vendored with upstream license/provenance and minimal borrowed-pointer accessor patch; Cargo.lock synchronized offline at same version. Voice usage/content dynamically set+queried on28+; open/callback PCM shape validated, physical endpoint tracked without logging IDs. MEDIA-only owners are retired before voice-role upgrade; default/exact alias handling preserves one physical owner per shared endpoint. Ambiguous older-platform defaults reconcile serially (brief interruption possible). Java manual selection fixture passed; portable usage and native lifecycle regressions registered in CI. No hardware mixed-microphone/headset support or RX repair claimed before new device evidence.
  • Candidate63861be run4947/job5543 reached host regressions: native159 passed, five new Worker fixtures failed audio_closed before second open. Fixture destructuring discarded event receiver, so first Started event correctly stopped orphaned worker. Retain receiver for whole fixture; production shutdown semantics unchanged. APK stage was skipped; corrected tests require the next CI run.
  • Corrected e619f66d59 run4948/job5544 SUCCESS: native audio164, capture18,lifecycle13,restart3,manual-action1,manager7,DSP15,catalog5,timestamp3,usage4,route-state7, core23+output2 passed/1ignored. All five output role/alias regression fixtures passed; ARM64 APK compile/package passed. Owner selected install-ready on the same disposable TECNO KJ7, including signature-mismatch replacement if needed; server/mic actions remain owner-operated. Download pending.
  • APK4948 ZIP and all six receipt hashes verified; APK SHA256 70d5bf26fd4148944f934de790e36e938dc40d7c912f5c9bcb321b7caec81341. USB disconnected on initial update attempt; owner reconnected. Signature mismatch confirmed, authorized disposable uninstall and install both Success. Activity already foreground on launch request; installed APK hash matches.
  • Owner REJECTS4948 headset behavior: G435 capture now fails audio_device_missing; default playback reportedly silent until manual speaker choice. Immediate screenshot captured without inputs; no further phone manipulation, source fixes, tests or builds during requested detailed read-only audit.
  • Retained bounded logs identify first capture failure at input_publish with DeviceLost before native capture delivery, not exact-ID lookup. Java Bluetooth communication ACK succeeds, but following output start fails audio_device_error; another start fails audio_device_busy after2051ms. Default clear ACK precedes later observed earpiece route and another fence/settings failure. Do not call VOICE_COMMUNICATION attribute match or passed host fixtures a device routing success.
  • Detailed read-only audit recorded in assessment §Read-only headset regression audit — e619f66 / APK4948. Source defects: premature CLEAR ACK, failed-completion recovery event superseded by newer revision, resolved-default endpoint retaining generic PCM format, startup ACK restoring lost focus. Capture's first fault is asynchronous backend loss, not missing catalog ID; underlying raw AAudio reason remains unknown. Bluetooth source/sink coupling must be reconciled without automatic priority or silent substitutions. Test seams bypass the failing JNI/VoiceService/open boundaries. No app fixes or new build/install during audit; only bounded evidence and documentation updated.
  • Owner explicitly approved moving from audit to fixes: scoped CLEAR/ACK/recovery/focus correction, endpoint-resolved PCM format, strict AAudio Started-state validation and bounded backend diagnostics. No automatic headset priority or silent exact-device replacement. Parent preserves output-publication fault category and tests failed streams never publish active; CI/device results still pending.
  • Repairs implemented pending CI: production CLEAR settlement waits fresh route observations with bounded quiet/completion windows; explicit JNI accepted flag separates successful caller continuation from finalized failed-route recovery. Startup checks focus and authorization revision. Failure recovery preserves saved exact choices and last applied state without automatically remapping devices; later mute/focus loss still wins. Capture pair preflight runs on settings, recovery and shared StartInput.
  • Physical default output now recomputes capabilities/PCM; AAudio startup requires Started from both bounded wait and current state. Safe audio_backend enums identify open/callback/start phases without identifiers/PCM. Output publication preserves specific latched faults instead of generic device error.
  • Java production settlement fixture compiled and passed locally (delay, null/denied route, timeout, cancellation and repeated callbacks); async Rust authorization tests migrated from standalone rustc to native Cargo harness for Tokio. Native/Android compile and device behavior not yet verified.
  • 4664be0818 run4951/job5547 SUCCESS: native audio169, capture18,lifecycle14,Android authorization9,explicit-action1,restart3,manager7,DSP15,catalog5, timestamp3,usage4,start-state2,core23+output2 passed/1ignored; Android compile/package passed. Java production-settlement fixture passed locally and in CI. Owner selected install-ready for4951 on the same disposable phone, allowing signature-mismatch replacement; download in progress.
  • APK4951 ZIP and all six receipt hashes verified; SHA256 f0da4e4f98e56885bbb90652124d72231d6c5815721ad323c1a5ec569c1bff9c. Signature mismatch confirmed; authorized disposable uninstall/install both Success; cold Activity start Status ok,1354ms.
  • Owner reports microphone works but headset RX remains silent, rejects further speculative edit/build cycles. This is FAILED physical headset acceptance despite4951 CI success. Do not claim audit repairs solved headset RX or infer Recents-reopen acceptance from one cold install launch.
  • Alternative investigation: actual Android AudioTrack/AudioFlinger output, Bluetooth SCO vs A2DP transport, per-stream/per-device gain and HAL routing, not more preference/ACK rewrites. At first read app process was absent. Retained bounded records contain successful phone-output Started and increasing historical RX/output counters, but not the earlier headset-start interval. System VOICE_CALL/SCO mute flags were false and remembered Bluetooth volume nonzero; SCO inactive after process exit. These post-exit values cannot identify the silent headset cause or prove audible output.
  • Owner explicitly chose LATER for a live silent-state capture: do not touch phone or launch new builds. Resume only when owner makes current silent-headset state available: inspect active track attributes, actual sink/transport, started state and stream/device gain without recording PCM, names/addresses, credentials, profiles or changing routes. No further device actions after pause. Exact RX cause unknown; Bluetooth pairing/mixed-route and Recents acceptance remain open. Avoid requesting the full voice checklist again; only missing active-output evidence is needed next.
  • The five remaining pre-UI items are PAUSED, not completed: owner Bluetooth connect/disconnect acceptance; seven-item handoff/UI transition; Recents first-reopen acceptance/fix; mixed microphone selection compatibility; physical headset RX diagnosis/fix. Removed from the active execution queue to honor the explicit pause. Automated unfinished-task reminders do not authorize device access, new builds or speculative fixes; resume these items only after the owner resumes the work.
  • Owner clarified that phone/build pause does NOT pause analysis. Completed a different read-only investigation at4664be0: PCM numerical/gain path, callback presentation deadlines and Bluetooth media-vs-communication transport. Details in assessment §Alternative headset RX analysis.
  • Strongest newly established mechanism: callback silently replaces PCM when estimated last-frame presentation exceeds original source expiry200ms, including prebuffer/SRC/device delay. Valid higher-latency output can therefore be silent with Started/route/format success. Actual G435 trigger remains unproved: retained summaries cover phone epochs only, time-discard counters0 there.
  • No demonstrated normal-voice mono cancellation, I16 scaling or frame-count defect. Per-output echoReduction up to-40dB during transmitting is another conditional cause (default0dB; no profile read). CPAL lists A2DP media outputs which need not be accepted communication outputs. Existing nonzero/submission counters are upstream of final callback PCM and do not prove sound reached Android. Prioritize source->callback loss vs actual AudioTrack/SCO/A2DP/gain, not another ACK rewrite. No source changes, tests/builds or phone operations during this alternative analysis.
  • Owner authorized fixing the alternative playback-latency defect. Scoped implementation changes Android callback freshness only: source/queue age is checked at handoff, not estimated downstream device presentation. Original200ms expiry/epoch/mute/fault guards retained; non-Android presentation behavior unchanged through compile-time specialization (no per-frame runtime policy dispatch).
  • Added Android/test-only nonzero_frames statistic after actual output quantization; no PCM/IDs or callback logging, one aggregate atomic update per callback. New deterministic regressions exercise delayed presentation, stale/future/old-epoch/muted blocks, partial expiry and real SRC->ring->monoI16 callback at8/16/48k with400ms simulated transport latency. They do not emulate Android hardware or prove physical G435 recovery. Existing desktop deadline expectations retained explicitly. CI pending.

First Android APK build

  • Existing WSL Ubuntu24.04 x64, /home/user/src/TeamsPeach; full pinned Android WebRTC source build and Rust/Slint ARM64 release library succeeded. JDK21, Rust1.96, SDK36/build-tools36.0.0, full NDK28.2.13676358, LLVM18 and matching Skia m153-0.101.2 sources; one Cargo/Ninja job. No server1 container was needed.
  • Fixed actual first-build failures: Chromium DEPS NDK is sysroot-only (Cargo needs complete NDK); Skia uses ANDROID_NDK, Slint Java compilation needs explicit SDK36 ANDROID_JAR despite native API26; vendored jar destination used the wrong target root; accessibility cast needs NonNull::as_ptr; Gradle launcher CRLF and implicit build-tools35; permission observer used non-public PackageManager API; WebRTC JNI linker arguments must be emitted by the final cdylib build script.
  • xtask package and verify-package passed for TeamsPeach-0.1.7-android-arm64-harness-test.apk, 121385639 bytes, SHA256 ab0c4119b4a8abfebbb31ed185459da8b1ef6c57c86324ad7862014aa1085d1b. APK v2 test signature, ARM64, 16-KiB ZIP/ELF alignment and JNI exports verified. Android8/API26 minimum. Install with adb install -t; not a production signing identity.
  • Delivery: C:/Users/Admin/Desktop/TeamsPeach-Android-0.1.7/, APK plus build-info, exact build-fixes.patch and dependency/build/package verification receipts. Private test keystore is not included. WSL caches retained for incremental builds. Phone runtime/UI/voice/background acceptance has NOT run; no device installed, microphone activated, server connected or Windows installation modified.
  • Publication requested as a separate Android prerelease, not a v* desktop tag or desktop updater manifest. Record successful push/release only after remote acknowledgement; authorization failures are not publication.

Phone onboarding diagnosis and local fix

  • Published release checked: android-test-0.1.7-20261111, source 32318e3, APK SHA256 ab0c4119b4a8abfebbb31ed185459da8b1ef6c57c86324ad7862014aa1085d1b (release metadata). USB-selected TECNO KJ7, Android14/API34, installed version0.1.7/code107; installed APK hash was not read.
  • User clarified Create was not dead: nickname was hidden inside a tiny scrolling dialog. After typing ZXC the phone displayed Symbolic links are not allowed in profile imports. Screenshot captured immediately: target/desktop-acceptance/android-onboarding-error.png.
  • Metadata-only examination of the app process namespace proved /data/user/0 -> /data/data, while ordinary shell/run-as namespace showed a directory. No profile files, identities or credentials read. Android Binding now canonicalizes only OS filesDir before appending profile-v1; imported paths and profile descendants retain strict no-follow checks. Also corrected Android-specific O_NOFOLLOW flag using libc (arm64 differs from desktop Linux); desktop code remains unchanged.
  • Android onboarding is full-screen, no ScrollView: visible nickname, theme buttons, error and actions. Nickname height fixed at48dp as explicitly requested. Keyboard hides secondary explanatory/import content, not nickname/theme/Create/Cancel. Lifecycle subscription starts before profile construction, so insets/accessibility now reach first-run UI. Scoped Cancel exits the runtime and finishes only the matching Android Activity; cancellation of import confirmation still returns to onboarding.
  • Verification: actual cached Slint software renderer at360×760 and360×460, reviewed screenshots android-onboarding-normal-preview.png and android-onboarding-keyboard-preview.png in the same evidence directory; actual pointer clicks reached Create and Cancel in both sizes without scrolling. This is host-side isolated rendering, not a newly installed phone APK. One real private-container validation test passed on Windows; Rust syntax parse passed for8 modified files. Unix symlink tests added but not run here; full Android/Rust/JNI build and new phone behavior remain unverified.
  • Existing app was opened only for approved diagnosis/screenshots. No identity was created by the assistant, no data cleared, APK reinstalled, microphone used or server contacted. New APK needs the external Linux build host before verifying these fixes on this connected phone. No commit/push/release performed in this fix stage; local resource policy and dependency caches preserved.

Текущий этап: реализация Android, CI отложен

  • По последнему указанию пользователя работа переключена с runner/provisioning на сам Android-порт. Linux build/test/CI и iOS отложены; не возвращаться к настройке runner вместо реализации приложения. Изменения реализации подготовлены поверх cb1d682; владелец явно разрешил commit и push только feature/mobile-port для передачи другому разработчику. Main, теги и релизы не входят в публикацию.
  • Исправлены Android audio focus/route/permission transitions: receive-only recovery, новый call-scoped event с SessionKey/token/revision, повторная проверка закэшированной capture authorization, stale callback rejection. VoiceService управляет communication mode; Android12+ получает communication-device changes. Микрофон после interruption/route revoke не включается без явного действия. Общие runtime файлы меняются только Android-gated ветвями; core/DSP и iOS не менялись. Физический routing/Bluetooth/AEC не проверены.
  • Исправлены ложные network-change events на capability refresh; отсутствовавший Android external-link adapter; SAF collision → выбор нового имени; Android identity export → private staging/commit/cleanup. Provider atomic replace не имитируется, существующие файлы не перезаписываются небезопасно.
  • Доработан Android compact UI: overflow connection tabs, действия выбранных каналов/файлов, query detail, settings Back, PTT cancel/focus/drag-out, IME-aware forms/chat/settings. Сохранён существующий Rust/Slint клиент и desktop presentation; исходники UI и функциональные ветви, а не новый host или второй стек.
  • Реально выполнены 2 standalone audio state tests: passed, guarded one-job/below-normal execution, без Cargo/full build. Пройдены Slint1.18.1 material+fluent parse/typecheck/codegen с готовыми rlib, Rust syntax-only parsing и AndroidManifest XML parse. Первая Slint-проверка выявила Window.active; исправлено через существующий Android lifecycle callback, повторная проверка успешна. LSP initialization завершился code0, rustfmt/JDK не найдены; полная Java/Rust/JNI проверка не заявляется.
  • Временные validation runners/generated sources удалены; готовые dependency caches не трогались. Ни приложения, ни APK/телефон/микрофон/сервер не запускались. Нет новых screenshots или device evidence; Windows baseline не переустанавливался, desktop runtime regression не выполнен. compatibility.json остаётся pending. Подробные новые знания — последний раздел assessment; .ua остаётся прежним stale snapshot.

Продолжение перед передачей другому разработчику

  • Закрыты дополнительные source-level дефекты: Visibility(false) освобождает Android touch PTT и long-press; повторный audio-focus callback не выключает микрофон; pending output recovery сохраняется при более позднем capture revoke; explicit authorization сериализована с audio recovery.
  • Capture consent теперь остаётся видимым до FGS handoff; permission-launch failure завершает request. Camera2 shutdown дожидается late-open/close callback, resize игнорирует старые ImageReader callbacks. Pause host Activity не используется как blanket stop для foreground camera/projection capture.
  • Android picker/permission callbacks различают отмену, отказ и некорректный результат; read-only open не запрашивает write permission. SAF проверяет grant flags, освобождает capability при JNI error и не теряет raw fd при ошибке закрытия provider handle. Desktop/iOS branches не менялись.
  • Проверено сейчас: 3 actual standalone audio-state tests passed; Rust syntax-only parse 6 файлов; 26 Java native entrypoint names сопоставлены с Rust exports; Bash syntax инструкции передачи прошёл. Compiler test выполнялся с 5GiB job cap/2GiB headroom/below-normal, без Cargo/full/native build. Java/JNI typecheck, runtime UI/device и desktop regression остаются непроверенными; APK не создавался.
  • README handoff содержит точный существующий recipe и список receipts для другого ПК. Передавать нужно новый full SHA commit со всеми Android-изменениями; старый cb1d682 их не включает. Commit/push разрешены; успешность доставки устанавливается по remote SHA, не наличию этой записи. Не передавать локальную ресурсную политику, credentials, signing keys, профили и Windows caches.
  • Scope остаётся честным: известные подтверждённые пробелы доработаны, но «все 718 требований готовы» не доказано. Перед первой Android-сборкой нельзя исключить Rust/Java/Gradle/JNI integration errors. Остальные device gates и намеренные unsupported product features перечислены в последнем assessment.

Принятая Windows-база и мобильная ветка

  • Пользователь явно подтвердил в форме: проверил подключение, вход в канал и голос в обе стороны, принимает установленную Windows 0.1.7 и разрешает baseline/push. Desktop acceptance gate снят; это ручная приёмка владельца, не новый автоматический тест.
  • До обновления стоял 0.1.4 Electron; теперь принят 0.1.7 Rust/Slint. main сохраняет проверенную базу, Android/iOS дорабатываются в feature/mobile-port; изменения desktop-поведения требуют отдельного запроса, общий core/DSP/services — desktop regression checks. Ниже сохранена хронология сборки; прежние запреты push относятся к этапу до приёмки.
  • Push main и desktop-baseline успешен: пользователь ввёл credentials в отдельном обычном PowerShell, команда с отключённым для одного запуска credential helper завершилась exit0. git ls-remote подтвердил main и peeled tag на 05e8d34bcf0e24a44f76e65220293c45b6821798. Прежний GCM auth/transport blocker обойдён, не объявлен исправленным; credentials ассистент не читал и команда их не сохраняла. По уточнению пользователя feature/mobile-port оставлена локально, на remote её нет; для CI по этой ветке позже потребуется отдельный push. Релиз/установщик не опубликован.
  • До изменения установки сохранён побайтово проверенный rollback: %LOCALAPPDATA%/Programs/TeamsPeach.rollback-20261110-223748, 78 файлов. При установке native исходный каталог также целиком переименован в TeamsPeach.pre-native-20261111-111816. Пользовательские профили/identity/настройки вне installation directory не читались и не изменялись.
  • Full native artifacts отсутствовали. Guarded serial xtask deps Windows x64 прошёл исправленную MSVC activation, pinned SDK/depot_tools/WebRTC checkout и gclient sync. OEM/UTF-8 ошибка устранена child chcp 65001; отдельный real-vcvarsall smoke сохранил синтетическую кириллицу. Следующий blocker — CRLF checkout checksum-pinned patches: добавлен .gitattributes, все три патча восстановлены как LF и точные SHA256 проверены без изменения lock. Повторный provisioning отказал до старта по локальному RAM guard (exit125); полный build/package/runtime не выполнен, установка 0.1.4 нетронута.
  • После успешной сборки: isolated native smoke → production package/verify → установка с сохранённым rollback → ручная приёмка владельца. После подтверждения фиксировать desktop-baseline; mobile-specific изменения изолировать, shared core/services не менять без desktop regression проверки.
  • Для продолжения нужен безопасный запас свободной RAM по локальной политике; не закрывать пользовательские приложения и не повышать предел автоматически. NSIS 3.13 установлен для будущего native packaging. Backup installation сохранён, профили не читались/не менялись, push после запроса desktop-приёмки не выполнялся.
  • Пользователь попросил исходить из доступной RAM. Пересчитанный вниз локальный budget успешно выдержал полный WebRTC source-build: после timeout на 4010/4305 шагах build возобновлён с cache и завершился exit0; xtask deps выдал verified source dependency provenance и обновил реальный Windows record в native/native-deps.lock.json. SDK Debugging Tools установлен, dbghelp.dll присутствует. Это dependency compile/inspection pass, не UI/device acceptance. Следом запущен полный Rust/Slint xtask build --test-harness true под тем же guard; production install пока не изменён.
  • Пользователь явно снял паузу («запускай… снимаю с паузы»). Full native harness build возобновлён под сохранённым локальным guard и одним заданием; WebRTC provenance уже готова. До успешных native smoke/package checks установленный 0.1.4 и профиль не менять. Push по-прежнему запрещён до пользовательской приёмки.
  • Возобновлённая Rust/Slint build дошла до skia-bindings0.153.3: matching prebuilt URL вернул404, source extraction упала на Windows symlink privilege1314. Подготовлен отдельный Skia m153-0.101.2 в target/tools, archive SHA256 30c8b51a0a32fae63562c303bdc91605519a9598951422610e3fb8685b3c4f6f; проверены archive paths/symlink target, только extraction выполнен elevated (exit0), global Developer Mode не менялся. Pinned git-sync-deps/GN выполнен serial под guard (exit0). Full build возобновлён с явным --skia-source и локальным Ninja wrapper -j1; установка/профиль не затронуты.
  • Пользователь после обсуждения длительности явно разрешил продолжить первый Windows-native build («поехали дальше»). Возобновлён тот же cached full Rust/Slint build под локальным guard/-j1/below-normal; готовые WebRTC/Skia объекты не удаляются. Текущая установка и профиль до smoke/package pass не заменяются, push запрещён до desktop-приёмки.
  • Full harness build завершился exit0; target/x86_64-pc-windows-msvc/release/teamspeach.exe получен с default Skia+WebRTC. До успешной попытки main rustc получил allocation failure/LLVM OOM под локальными пределами; согласованный пользователем локальный workaround записан только в mobile-build.local.md, общие optimization defaults не менялись.
  • Реальный xtask smoke --scenario offline-ui passed=true, 8 checks, 28 screenshots: target/desktop-acceptance/offline-ui/result.json. Disposable profile, network/OS actions/physical capture выключены; Slint software offscreen. Проверены callback/runtime/settings, rich rendering, PTT focus, draft retention и profile restart; onboarding screenshot просмотрен. Это не GPU/on-device/двусторонний голос acceptance.
  • Production build без test-harness и xtask package exit0; NSIS и ZIP прошли встроенный verify-package: target/desktop-acceptance/production/x86_64-pc-windows-msvc/verification.json, passed=true, unsigned-local, публикация не разрешена. Тот же локальный optimization override; не выдавать пакет за стандартный CI release.
  • Native 0.1.7 установлен в %LOCALAPPDATA%/Programs/TeamsPeach: NSIS exit0, SHA256 всех 76 payload files совпали, установленный --version вывел TeamsPeach 0.1.7 (Rust + Slint), --help не содержит test-harness. Старый Electron uninstall key экспортирован в target/desktop-acceptance/legacy-uninstall-registration.reg и удалён после установки; исходный каталог сохранён, пользовательский профиль не тронут.
  • Реальное окно установленного production exe проверено с новым временным TEAMSPEACH_PROFILE_DIR и закрыто штатно exit0; профиль удалён. Снимок: target/desktop-acceptance/installed-native-window.png. Подключение/голос затем проверил и принял владелец; миграция пользовательского профиля отдельно не подтверждена. Следующий этап — Android CI/device проверки в мобильной ветке. Baseline tag не является release tag v*; публикация установщика не выполняется.

Read-only Android CI preflight, 2026-11-11

  • Сверено: feature/mobile-port, HEAD 82334f8a8bf25be6b594d013eb30f55f25c8c7bb; исходное рабочее дерево чистое (staged/unstaged/untracked отсутствуют в git status). Локальные main, origin/main и peeled baseline tag — 05e8d34bcf0e24a44f76e65220293c45b6821798; отличие HEAD от baseline — только этот handoff. mobile-build.local.md прочитан, исключение из Git подтверждено; локальные ограничения не перенесены в CI.
  • Live Gitea: публичный branches API показывает только main на 05e8d34; Android Actions показывает 0 workflow runs. Workflow уже опубликован в baseline; мобильная ветка остаётся локальной. Actions UI доступен, но готовность artifact storage этим не доказана.
  • Точный блокер доступа: GET /api/v1/repos/TeamsPeach/client/actions/runners и /actions/variables вернули HTTP 401. Попытка открыть Actions через подписанный браузер не состоялась: relay connection timeout 30 s. ssh:// сообщает, что настроенных hosts нет. Runner teamspeach-android-linux-x64, его online/labels/resources, установленные SDK/NDK/JDK/LLVM/Skia и наличие семи variables из README неизвестны; ни одна variable не объявлена отсутствующей без доступа. Credentials/tokens/profile не читались; Git auth не проверялся и не объявлен исправленным.
  • Статически готово: ручной ARM64 workflow с full Skia+WebRTC, source dependency provisioning, отдельными harness APK и unsigned production APK/AAB, package verification, revision/SHA256 receipts (workflow, job android-arm64; variant recipe). SDK API36/build-tools36.0.0/NDK28.2.13676358, JDK17+, LLVM/libclang, synced Skia+GN, local Gradle8.14.3 ZIP и bundletool должны существовать на runner до build dispatch; Rust1.96.0 и Android target также обязательны. Список variables — README:101–117. В dependency lock по-прежнему только Windows record; Android receipt должен появиться от реального xtask deps, не вручную.
  • Дополнительные prerequisites: runner execution environment должен поддерживать checkout@v4/upload-artifact@v3 и исходящие загрузки pinned WebRTC/depot_tools/CIPD, Cargo и Gradle dependencies. xtask deps использует отдельный upstream Gradle wrapper для prefixed JNI jar (deps.rs:605–615); локальный Gradle ZIP приложения не делает всю цепочку offline. Rust Android build выбирает DEPS-pinned NDK из WebRTC checkout (build_native.rs:275–290), а установленный NDK28.2 проверяется workflow/Gradle. CI capacity и сетевой доступ не измерены; run-specific checkout/target/Gradle trees означают, что межзапусковой object-cache reuse этим workflow не настроен.
  • Риск получения первого APK найден и затем исправлен локально: исходный workflow загружал harness после полного цикла harness+production. В разрешённом продолжении порядок изменён на harness build/verify → harness upload → production build/verify → production upload (workflow, job android-arm64). Общий прежний recipe вынесен в .gitea/build-android-variant.sh; failure gates и receipts сохранены. Реальный CI upload ещё не проверен.
  • Уточнение harness: без smoke extras smoke_request возвращает None, а Android host выставляет network_enabled=true и allow_os_actions=true (smoke.rs:16–40; android.rs:61–85). Offline isolation относится к smoke-запуску, не ко всем запускам harness APK. Обычный запуск test APK — кандидат для первого разрешённого live voice proof на отдельном тестовом телефоне; это статический вывод, не phone/production acceptance. Application ID общий с production — не устанавливать поверх реального профиля.
  • Граф: .ua/meta.json и project metadata остаются working-tree snapshot от 5ce12714, не текущий HEAD; прочитаны только нужные метаданные/узлы/связи. Архитектура не менялась, граф и auto-update не тронуты.
  • Следующий порядок: восстановить read-only доступ к runner/variables и получить фактический tool/resource inventory → согласовать только обнаруженное provisioning и точечные CI-изменения → отдельное разрешение на push feature/mobile-port и manual dispatch → проверить скачанный harness APK, revision/SHA256 и receipts → отдельно согласовать ARM64 API26+ телефон, disposable app data, сервер/канал и ПК-peer, затем install/launch/mic/Join ACK/двусторонний голос. iOS/macOS/Xcode/signing — отдельный незакрытый маршрут.
  • Проверки этой сессии: Git metadata, targeted source/docs/graph reads и публичные HTTP GET. Не запускались Cargo/Gradle/tests/build/package/CI/device/app, ничего не устанавливалось и не отправлялось. Изменены только handoff и точное уточнение harness в assessment; исходники, desktop, caches и локальная политика нетронуты. Исторические записи ниже о незакоммиченном CI относятся к прежнему этапу, не к состоянию этого preflight.

Разрешённое продолжение: доступ к CI и точечная правка

  • Пользователь разрешил браузерный вход и продолжение подготовки, повторно подтвердив, что Android LLVM/SDK/build должны находиться на удалённом CI, не на его Windows-ПК. Локальная политика, WSL, память и compiler settings не менялись.
  • Браузерный вход состоялся через уже установленный Chrome, без установки инструментов/расширений и без чтения пароля/cookies/tokens. Авторизованная страница repository Actions runners показала ровно один доступный runner: monkeyRunner, ID9, v0.2.13, глобальный, «Простаивает»; labels ubuntu-latest, ubuntu-22.04, ubuntu-20.04. Нужного label teamspeach-android-linux-x64 нет. Repository variables page показала пустой список; семь требуемых переменных на уровне репозитория не настроены. Наследуемые organization variables и установленный host toolchain не проверены.
  • Авторизованный доступ к Gitea settings больше не блокер; блокер запуска — отсутствие matching runner label и repository configuration, а фактические SDK/NDK/JDK/LLVM/Skia, RAM/disk/network на host остаются неизвестны. Нельзя просто заменить runs-on на ubuntu-latest: это направит тяжёлую сборку в неподтверждённую среду. Нужен согласованный удалённый Linux execution environment и его inventory; Git auth отдельно не проверен.
  • Повторные обращения к браузеру давали detached Frame и открывали новые окна. Пользователь потребовал прекратить открывать Chrome, затем уточнил разрешение: невидимый браузер допустим, видимые окна запрещены. Продолжение выполнено с headed:false, вкладка закрыта после чтения. Пароли/cookies/tokens и пользовательский профиль приложения не читались.
  • Локальная CI-правка завершена: helper bash -n, syntax всех workflow run blocks, YAML parse, compile обоих embedded Python scripts и статический порядок стадий прошли. Python subprocess сначала не нашёл Bash в PATH; проверка выполнена через имеющийся shell tool, без установки. Это syntax/structure checks, не Android build или CI/device proof. Обновлён CHANGELOG; исходники приложения и desktop-поведение нетронуты, граф не обновлялся.
  • Пользователь подтвердил Android-only на ближайшем этапе: разработка на Windows, APK на удалённом Linux; WSL не возвращать. После проверки вариантов явно разрешены push только feature/mobile-port и один диагностический CI run до 5 минут на существующем runner, без установки, компиляции и чтения секретов. Main/релизы/телефон и тяжёлый build не входят в это разрешение.
  • В android.yml добавлен безопасный default mode=inventory: job runner-inventory на ubuntu-latest, без checkout/action downloads, только OS/CPU/RAM/disk/cgroup/tool/config inventory; значения variables не печатаются, Rust proxies не вызываются. mode=build — единственный путь к прежней тяжёлой job на выделенном Android label. YAML/Bash syntax и статические mode/timeout/job gates проверены; фактический remote run ещё предстоит. Runner resources и inherited organization variables пока неизвестны.

Реальный runner inventory: run 4828, 2026-11-11

  • Push выполнен: отдельный PowerShell с ручным вводом credentials, credential helper отключён только для команды; exit0. Публичный branches API подтвердил feature/mobile-port=cb1d682dfb307ec41d73434ab40de5de0b30410e, main=05e8d34bcf0e24a44f76e65220293c45b6821798. Credentials не читались, GCM не объявлен исправленным. Коммит включает диагностический режим, раннее сохранение harness и документы; запись фактического результата ниже добавлена локально после push.
  • Единственный разрешённый dispatch выполнен: android-ci run 4828 / #62, job runner-inventory 5423 — success, 1 s; android-arm64 — skipped. Выбрана feature/mobile-port; форма Gitea на default branch ещё не показывала input mode, поэтому сработал безопасный fallback inventory при отсутствии mode=build. Новых dispatch/re-run не выполнялось.
  • Execution environment подтверждён setup log: monkeyRunner v0.2.13 запускает job в контейнере docker.gitea.com/runner-images:ubuntu-latest. Docker pull проверил существующий image как up-to-date; это инфраструктура удалённого CI, не Docker/WSL на Windows. Диагностический step не скачивал SDK/dependencies и не устанавливал инструменты. Наличие инструментов на физическом host из этих данных не следует: измерено окружение job.
  • Ресурсы, видимые job: Linux x86_64, 32 CPU; /proc/meminfo: MemTotal 129429464 KiB, MemAvailable 30306932 KiB (≈28,9 GiB); workspace Available 21965056 KiB (≈20,95 GiB) из 64 GiB. Cgroup v2 memory.max=max, memory.swap.max=max, cpu.max=max 100000 в видимом scope; это не гарантия отсутствия ancestor/shared-host limits. Linux Committed_AS превышал CommitLimit; не трактовать эти Linux показатели как Windows Job Object guard или обещание безопасной build capacity. Достаточность свободного диска для холодного WebRTC+Skia build не подтверждена.
  • Фактические tools: git/python3/pkg-config/ar/sh/node найдены в PATH. cargo/rustc/rustup, cmake/ninja, clang/clang++, llvm-strip/llvm-readelf, java/javac/jar/keytool/jarsigner, zipalign/aapt2/apksigner/sdkmanager — missing-from-PATH, не утверждение об отсутствии на всём host. Rust1.96.0 не найден в обычном rustup-home. SDK/Skia roots не настроены, поэтому их установки остаются неизвестными, а не просканированными как отсутствующие.
  • Все семь variables действительно unset в CI-контексте: ANDROID_SDK_ROOT, ANDROID_JAVA_HOME, NATIVE_LLVM_HOME, NATIVE_LIBCLANG_PATH, NATIVE_SKIA_SOURCE_DIR, ANDROID_GRADLE_DISTRIBUTION, ANDROID_BUNDLETOOL. Унаследованные runner env roots Android/JAVA/LLVM/libclang/Skia тоже unset. Пустой repository UI больше не единственное основание этого вывода.
  • Точный следующий blocker: общий runner работает, но его job image не предоставляет Android toolchain/configuration; matching Android label по-прежнему отсутствует. Нужна отдельно разрешённая подготовка Android execution image и build/cache storage на существующем удалённом runner, затем фактические paths/variables и dedicated label. Нельзя подменять этим изменением общий image других проектов или просто запускать heavy build на generic ubuntu-latest. Host access/административное provisioning не предоставлены; текущая авторизация покрывала только push и один inventory, не установку/сборку.
  • Граница доказательства: реальный read-only Linux CI pass, не Android compile/package/APK/device/voice acceptance. Windows acceptance/base, desktop-код, локальные compiler settings, caches, pagefile и WSL не менялись. Все последующие browser calls использовали headed:false; вкладки закрыты. iOS на этом этапе не исследовался и не собирался.

Текущий маршрут: Android в CI, Windows без WSL

  • После пользовательского входа в Git Credential Manager push успешен: origin/main обновлён с eb24965 до 5ce1271 (включая cutover, handoff и граф). Указанный ниже прежний auth blocker снят. Секреты не читались и в документы не записывались.
  • По отдельному разрешению установлен rustup и toolchain 1.96.0-x86_64-pc-windows-msvc (minimal). Реально выполнены rustc --version и cargo --version: обе версии 1.96.0. Инструменты находятся в %USERPROFILE%/.cargo/bin; уже запущенной оболочке может понадобиться обновление PATH.
  • По выбору пользователя весь Android APK/AAB build/package выполняется на Linux CI; Windows используется для разработки и установки test APK через Platform-Tools. Локальные WSL/Docker/Linux и виртуализация для этого маршрута не нужны. Pinned WebRTC Android source-build официально Linux-only — это требование CI, а не компьютера разработчика. iOS по-прежнему требует macOS/Xcode локально или на CI.
  • Пользователь возобновил работу после паузы. LLVM 23.1.5 установлен, clang --version и rustc --version после перезагрузки успешны; CMake/Ninja найдены в Visual Studio Build Tools. cargo test --locked -p xtask -p teamspeach-core -p teamspeach-denoise завершился успешно: 246 passed, 1 ignored, 0 failed (core unit 207; bridge 5; embedded 3; runtime failures 4; DSP 18; xtask 9). Это Windows-проверки core/DSP/упаковщика, не full native UI/WebRTC или device acceptance.
  • Visual Studio Build Tools 2022 17.14.44 установлен повторной попыткой (официальный актуальный bootstrapper с проверенной подписью Microsoft, exit 0). vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 подтвердил C++ workload, isComplete=true, isLaunchable=true, isRebootRequired=false. Путь: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools. Первая попытка winget завершилась 5008; её результат не считать итоговым.
  • WSL удалён штатными Appx/MSI uninstall (exit0); проверено AppxPackages=0, MsiPackages=0, DistroCount=0. Удалены его runtime directory, пустое хранилище неудавшейся Ubuntu, .wslconfig и пустой WSL installer cache. Windows optional features VirtualMachinePlatform и Microsoft-Windows-Subsystem-Linux отключены (CIM InstallState=2). Измеренный удалённый runtime payload — около 828 MiB; Windows system launcher/общие Installer caches вручную не удалялись.
  • Локальные ограничения памяти остаются только в mobile-build.local.md и .git/info/exclude; не переносить их в общие настройки/граф. Не устанавливать WSL снова для мобильной цели без нового запроса.
  • Добавлен ручной .gitea/workflows/android.yml: ARM64 harness APK и отдельные unsigned production APK/AAB, default Skia+WebRTC, pinned dependencies, receipts и build-info.json с revision/SHA256. Для чистого CI Gradle cache добавлен явный Android-package-only --gradle-online true; default offline сохранён, SDK downloads выключены, build/project caches изолированы по package.
  • Проверено после изменения: cargo test --locked -p xtask 10 passed, 0 failed, фактический CLI --help, YAML manual trigger, syntax четырёх bash steps и двух Python scripts, локальные ссылки docs. Реальный Android CI/Gradle/APK/device запуск не выполнен: нужен provisioned teamspeach-android-linux-x64 runner и переменные из README. Неавторизованный read-only Actions API вернул HTTP401; наличие/готовность runner неизвестны. Credentials не извлекались.
  • Изменения текущего CI-маршрута не закоммичены/не отправлены. Граф обновлён по рабочему дереву: 3702 узла, 9131 связей, 7 native-слоёв, добавлены Android CI, parse_options, android_gradle_command и текущий маршрут без WSL. Штатный incremental updater отказал из-за dirty tree; использованы установленные scan/import/structure scripts и targeted reconciliation без commit/stash. meta.json явно помечен workingTreeSnapshot=true; прежние fingerprints/scan baseline не выданы за clean HEAD. Schema/refs проверены, actual dashboard на :5173 отрисовал native+Android CI без Electron-слоёв. Предупреждение working-tree changes остаётся корректным до коммита. Автообновление выключено.

Native-only cutover

  • Выбранная архитектура: Rust/Slint native/ + embedded core::runtime; Electron/Node application host, app/, browser-only test/, scripts/, npm manifests удалены. Профильный import и защитные проверки устаревшего ciphertext сохранены — это пользовательская совместимость данных, не Electron runtime.
  • Native icon и 54 WAV перенесены в native/resources/; перед удалением старого дерева SHA-256 каждой пары проверен на точное совпадение. Native DSP больше не экспортирует renderer-only WASM ABI; Cargo denoise profile удалён.
  • Build/CI/release переключены на Cargo/xtask и явно подготовленные native Linux x64/ARM64 runners; версия приложения/core/xtask берётся из Cargo workspace. Публикация отдельной командой: проверка artifacts → draft → upload/readback hashes → publish. Историческое исследование в assessment сохранено с immutable ссылками на базовую ревизию.
  • Ограничение проверки: cargo, rustc, rustup, cl, clang, cmake, ninja отсутствуют в PATH; стандартные пользовательские каталоги Rust также отсутствуют, CARGO_HOME/RUSTUP_HOME не заданы. Сборочный toolchain автоматически не устанавливался. Нельзя выдавать static checks за native build или device proof.
  • Мобильные blockers из первоначального исследования не исправляются удалением Electron. Не считать interruption/Bluetooth/background/official-peer сценарии пройденными.
  • Выполнены 4 Python-теста release transport с mocked HTTP (OK), parse 8 TOML/lock и 3 YAML, проверка 718 сохранённых pending acceptance cases, отсутствие удалённых деревьев и разрешение 21 literal embedded-resource path. Rust unit/build/UI/device checks не выполнены: toolchain отсутствует; wsl --list --quiet подтвердил, что WSL не установлен. Новые runner labels/configurations ещё не проверены реальным CI запуском.
  • Source cutover закоммичен: 220852f8cb7ccb4b912f988f603c23267808626d (Remove Electron and make Rust Slint the sole native client). git push origin main завершился ошибкой авторизации: could not read Username ... terminal prompts disabled; удалённая ветка этой попыткой не изменена. Авторизовать Git через credential manager/обычный терминал, не передавать токены в чат.
  • Следующий проверочный шаг для текущей архитектуры: предоставить Rust 1.96.0 и native C/C++/SDK source-build prerequisites, выполнить Cargo/native smoke из README, затем мобильный voice prototype. Старый read-only этап ниже сохранён только как история.
  • Understand update preflight выбрал FULL_UPDATE (314 удалённых граф-файлов, 38 файлов для нового анализа). Итоговая native-only карта: 371 текстовый файл, 3699 узлов, 9120 связей, 7 слоёв, 9 шагов на русском; один binary WAV из 372 scan entries исключён. Schema/path/layer/tour validation прошла без issues, 263 resolved imports сохранены; merger удалил 45 некорректных tested_by связей. Electron runtime/framework/layers отсутствуют, autoUpdate=false. Application source — 220852f8; meta.json фиксирует конкретный snapshot после передачи состояния.

Историческое исследование до cutover

Решения и основания

  • Не начинать переписывание на Flutter/React Native/двух native UI: сначала проверить уже существующие core::runtime::{CoreHandle,CoreEvents}, Rust app/services и Android/iOS-адаптеры. Rust/Slint — первый кандидат для прототипа после установления этой границы, не безусловный окончательный выбор.
  • Основной голос — TeamSpeak UDP/Opus; WebRTC используется отдельно для трансляций. Не подменять серверный протокол WebRTC-голосом.
  • Android и iOS проверять с первого сквозного эксперимента. Общий UI не доказывает одинаковый UX, accessibility или background behaviour.
  • Не переносить subprocess/stdio/PCM-base64 Electron в мобильный runtime: embedded API уже существует. Сохранять SessionKey, capture epochs, timestamps и единственного владельца микрофона.
  • Никаких исходников приложения не менять на исследовательском этапе; build/install/test/run/network-to-test-server требуют отдельного разрешения.

Выполнено

  • Создан подробный разбор: стек/входы/build/tests, connect/auth/channels, оба аудиотракта, переносимость, OS-ограничения, официальные dependency references, лицензии и последовательность прототипа с наблюдаемыми критериями.
  • Однократно проведён первичный Understand-Anything: .ua/knowledge-graph.json, meta.json, fingerprints.json, config и scan inventory. 679 текстовых файлов, 5233 узла, 13204 связи, 9 слоёв и 9 шагов на русском. Scan/fingerprints: 680 entries; один бинарный WAV исключён из графа. autoUpdate=false.
  • Создан корневой AGENTS.md с порядком чтения/актуализации переносимой памяти. До сессии корневого файла не было; вложенные инструкции не изменены.

Реально проведённые проверки

  • Git metadata/inventory: HEAD, branch, initial porcelain status, 2221 tracked-файл; метаданные путей проверены на reparse links. Пользовательские профили и секреты не открывались.
  • Статическое чтение исходников и test/build recipes; официальные Slint/CPAL/Sonora/Rust/Electron/LiveKit/Android/Apple/license документы.
  • Штатные installed Understand scanner/import/batching/structure/merge/fingerprint scripts. validateGraph и layer/tour integrity — success, issues отсутствуют; все 872 resolved imports сохранены. Merge удалил 15 некорректных tested_by связей.
  • Проверена фактическая загрузка и отрисовка русского графа в installed understand-dashboard через managed browser; tabs закрыты. Dashboard service запущен на loopback в текущей сессии; для следующей использовать /understand-dashboard C:/Dev/TeamsPeach, не сохранять access token.
  • Проверка путей/диапазонов цитат обнаружила четыре выходивших за EOF диапазона; они сверены с исходниками и исправлены.
  • Финальная проверка: все 179 source citations к 82 файлам имеют существующие пути и допустимые диапазоны; локальные ссылки документов корректны, code fences сбалансированы. Финальный git status содержит только новые .ua/, AGENTS.md и два разрешённых документа; tracked/staged diff пуст. Промежуточные файлы Understand перемещены в стандартный .ua/.trash-*, scan inventory сохранён.
  • Не выполнялись: сборка/установка/запуск приложения, Node/Cargo tests, мобильный smoke, подключение к серверу, измерение звука, проверка телефона, signing/publishing. Нельзя записывать эти проверки как пройденные.
  • LSP не настроен (No language servers configured for this project). Static Slint site fetch и browser relay дали timeout; официальные versioned docs прочитаны через GitHub, dashboard — через отдельный managed browser. Навыки доступны и реально использованы.

Блокеры и риски

  1. Сборки: в native/native-deps.lock.json#/builds только Windows x64 record. Native recipe требует Linux source-build host для Android и macOS/Xcode для iOS; наличия этих hosts, SDK, signing и test devices не установлено. Не создавать fake provenance.
  2. iOS interruption resume: API CallLease::resume есть, вызова из runtime в просмотренном дереве не найдено; common handler останавливает input/output, окончание лишь сообщает статус. Cached mobile lease не равен активной AVAudioSession. Android explicit microphone action может восстановить output через sync_audio, но автоматический handler этого не делает. См. assessment §7, не упрощать до «resume нигде невозможен».
  3. Реальный audio/runtime: неизвестны speakerphone AEC, Bluetooth mic/output, timestamps/drift, фон, permission revoke, Wi-Fi↔cellular и VoiceOver parity. Upstream support не доказывает эту сборку.
  4. Распространение: код UNLICENSED; разрешение на redistribution заимствованных TeamSpeak icons/sounds не установлено. Slint attribution и полный native dependency/codec notices inventory требуют проверки конечного пакета.
  5. Паритет: native/compatibility.json — pending inventory, не доказательство 718 работающих функций; legacy Speex/CELT и перечисленные unsupported services не считать реализованными.

Следующий шаг

После отдельного разрешения на исполнение — подготовить изолированные Android/Linux и iOS/macOS build/test среды и пройти assessment §10 по порядку: native dependency/core build → foreground capture/playback → реальный connect и Join ACK → двусторонний голос Android↔iOS↔контрольный desktop peer → privacy/lifecycle/routes/network. Минимальный proof не сокращает требования к полной версии; остальные функции получают отдельную parity-приёмку.

В новой сессии сначала сопоставить HEAD и uncommitted изменения с этой записью. Перепроверять только затронутые выводы. Новые docs/AGENTS созданы после первичного scan и могут давать честный working-tree warning в dashboard; исходники приложения в этой сессии не менялись. Не перезапускать полный Understand ради новых документов; обновлять граф при архитектурных изменениях, предпочитая incremental.