docs: record source parity evidence and remaining acceptance gaps
Document accumulated interoperability findings and current source-backed design. Record build-specific visual results, matched acceleration policy, passing packaged behavior checks, and explicit native/ARM and strict visual acceptance limits. No complete 1:1 claim.
This commit is contained in:
1 parent
e6464bc4ed
commit
ceecbb790a
41 files changed
+17571
-150
No files matched your search
@@ -0,0 +1,82 @@
|
||||
# Second independent lifecycle audit — 2026-10-24
|
||||
|
||||
## Scope and conclusion
|
||||
|
||||
This pass adversarially tested interleavings introduced or left uncovered by the [first stream audit](stream-pipeline-audit-20261024.md) and [non-stream memory audit](nonstream-memory-audit-20261024.md), rather than repeating their throughput benchmarks. Current source was authoritative. Existing uncommitted work was preserved.
|
||||
|
||||
Five renderer defects were reproduced in the latest isolated packaged baseline before their corresponding source corrections. The baseline was `C:/Users/Admin/tmp/teamspeach-memory-audit-20261024/build/win-unpacked/TeamsPeach.exe`, with previously recorded `resources/app.asar` SHA-256 `96ea250138ae0a83e09f333550760060bf3bdf953a76cae78eccae4750fac59c`.
|
||||
|
||||
The user's live **20 fps** observation remains unexplained. No FPS cap, decoder policy, codec, bitrate, background throttling or rendering-policy change was made. The previous approximately 56–59 fps visible AV1 loopback was a simple approximately 51 kbit/s canvas at actual 2568×1402, not complex 6 Mbit/s/live TS6 proof. This pass's visible 320×180 generated WebRTC fixture validates callback ownership only; it is not a performance measurement or live-server interoperability result.
|
||||
|
||||
## Proven renderer corrections
|
||||
|
||||
| Severity | Defect and consumer-visible reproduction | Correction |
|
||||
|---|---|---|
|
||||
| Medium | **Pending image A→B→A after cache pruning:** resolve the latest A, then the original A. The baseline appends a second, broken avatar and channel icon, replaces the channel background with a revoked URL, and breaks the loaded host banner. | `media.js` checks that the exact pending promise still owns its cache entry before allocating an object URL. Obsolete successes resolve `null`; no stale URL reaches any widget. Already-resolved obsolete URLs are still revoked. Current requests survive unrelated snapshots. No per-widget generation framework was added. |
|
||||
| Medium | **Reused numeric client ID, different UID, same avatar hash:** the baseline requests no replacement avatar and retains the old image in the reused row. | `tree.js` includes UID in the avatar signature, matching the identity already used by the cache. |
|
||||
| Medium | **Late discovery failure overwrites newer truth:** an older `stream_list` negative reply removes an already-announced `new-live` stream, replacing its visible Watch offer with an error. Old replies also contaminate a replacement UID, moved channel, or stopped/restarted streaming lifetime. | `watch.js` associates each requested target with its pending probe object. Only still-current targets accept completion/error outcomes. Stream announcements and client identity/channel/streaming-state transitions invalidate superseded probes; genuine new lifetimes schedule fresh discovery. UID replacement removes old-owner stream entries; a channel move alone does not end an otherwise valid stream. Disconnect generation protection remains. |
|
||||
| Low | **Late sink rejection after terminal end:** the baseline displays a stale `NotFoundError` output-device toast and writes `sinkError` after the player has ended. | Successful/failed sink completions require the same nonclosed session. |
|
||||
| Low | **Late fullscreen rejection after stream switch:** the baseline shows an old fullscreen failure toast over the replacement live player. | Fullscreen request errors are displayed only for the same nonclosed requesting session. Current-request failures remain visible. |
|
||||
|
||||
The image ABA failure is a concrete regression edge of the first pass's cache-pruning fix: scalar widget signatures alone did not distinguish two lifetimes of the same cache key. Rejecting the invalidated cache promise centrally fixes avatars, channel icons/banners and the host banner without changing `app.js`.
|
||||
|
||||
## Deterministic runtime evidence
|
||||
|
||||
Raw artifacts are under `C:/Users/Admin/tmp/teamspeach-audit2-20261024/stream/`.
|
||||
|
||||
- `before/result.json`, `before/image-aba.png`: initial baseline reproduction of image ABA, client-ID reuse and stale discovery; hidden-settings chat control passes.
|
||||
- `before-expanded/result.json`: baseline old discovery errors affect unchanged, UID-replaced, channel-moved and stop/restart cases; disconnect already rejects the stale reply. Detached member rows do not corrupt the replacement member, while reused channel/host image elements show the ABA defect.
|
||||
- `after-complete/result.json`: corrected source preserves one loaded avatar/icon and both current banners; UID reuse fetches a replacement avatar; the announced stream remains watchable. The unchanged client's real failure still appears. UID/channel/stop-restart/disconnect replacements ignore the old error, issue a current request and accept its successful completion as `unavailable`, rather than remaining indefinitely `checking`.
|
||||
- `after-expanded/result.json` preserves an intentionally failing intermediate regression: merely ignoring a stop/restart's old reply left `checking` without a new request. The final correction schedules discovery for that new streaming lifetime; `after-complete` passes it.
|
||||
- `callbacks-before-visible/result.json` and `callbacks-after/result.json`: matched packaged baseline/source callback fixture. Both have an actually visible 320×180 player and real local generated WebRTC. Delayed old-session stats, play rejection, sink rejection and old-track `ended` dispatch preserve the replacement stream, one current track, `live` state and empty current `sinkError`. The separately injected sink rejection after terminal end and fullscreen rejection after switching produce visible stale errors only before correction.
|
||||
|
||||
The callback fixture uses actual RTCPeerConnections and a generated canvas, host-only ICE and no public STUN. Stats are real reports whose completion is deliberately delayed. Sink/fullscreen errors and track-ended timing are injected; they are not claims that those exact failures occurred on a live TS6 server. Native fullscreen success/Escape remains covered by the existing packaged UI smoke, not the injected rejection fixture.
|
||||
|
||||
## Regression coverage and unchanged areas
|
||||
|
||||
Reusable workloads are `scripts/audit-stream-interleavings.mjs` and `scripts/audit-stream-callbacks.mjs`; both accept `--exe` and `--out`, with `--verify` asserting corrected observable outcomes. They use fresh disposable profiles and route synthetic snapshots through the ordinary main-to-renderer event path. Discovery requests are gated at the test-only IPC boundary; no actual server is contacted.
|
||||
|
||||
`test/media.test.mjs` additionally checks obsolete pending completions, A→B→A ownership, `clearMedia`/server-reset reuse, preservation of a current pending request through an unrelated snapshot, and a stale failure not replacing a newer cache entry. `test/stream-session.test.mjs` adds cancellation with two queued reconnect offers: no extra peer, answer or signaling follows leave.
|
||||
|
||||
The hidden-settings control buffers 505 messages, returns to chat, then receives another message: exactly 500 rows remain, first `hidden-6`, last `visible-505`, with the first author's header intact. No chat/settings source change was justified. Session negotiation and directory source did not need another correction; existing scoped stop/update and cancellation rules remain. The extended interleaving script also exercises six language-switch/reconnect cycles with test-only WeakRefs and GC after pending fixture downloads finish; this is a bounded snapshot-retention check, not an exact native-memory/RSS claim.
|
||||
|
||||
## Safety and limits
|
||||
|
||||
All runs use disposable application profiles; capture APIs are denied/counted. The recorded source/baseline runs have zero capture requests and zero page errors. No normal client/profile restart, physical microphone, private stream, real server join, server configuration change, release publication, tag or version bump was performed. Generated media is muted. Raw evidence is retained; the two scripts are intentionally reusable audit tools, not product instrumentation.
|
||||
|
||||
Arbitrarily reordered unsolicited server notifications cannot be distinguished without protocol ordering/identity metadata. This correction scopes renderer-owned request completions and observed snapshot transitions; it does not invent connection IDs in TS6 notifications. No background/occlusion performance claim is made. Live sender capture/encoding, complex-content bitrate behavior, selected real ICE route and the reported 20 fps remain outside this isolated test's evidence.
|
||||
|
||||
## Audio/core integration
|
||||
|
||||
The independent worker's complete findings and paired evidence are in [audio-second-audit-20261024.md](audio-second-audit-20261024.md). Five bounded failure-ownership corrections were integrated: failed diagnostic-log destinations no longer crash main/stall stderr; exit rejects new core requests while existing replies/events drain until close; capture-processor failure ends the microphone; rejected context closure retains ownership until explicit recovery; explicit playback recovery restores usable playback, settles terminal diagnostic waiters and preserves applied gain/output.
|
||||
|
||||
The final coordinator-run packaged audio smoke passed at UTC **11:41:39.735–11:41:41.706** (`audio/packaged/result.json`). It used Chromium fake microphone capture, generated silence and injected processor/close/diagnostic failure timing. Its native core also encountered a genuine `EISDIR` log-write failure in the disposable profile: main survived, `profile_get` succeeded, and shutdown left `running=false`, `pending=0`. Capture failure ended the track; the suspended capture processor's fallback closed its context after 1003.5 ms without replacing/rerouting the healthy playback context. Playback recovery restored gain approximately 0.17 and the default sink. Nondefault selection is separately behavior-tested by the audio worker, not claimed as physical-device evidence from this runtime.
|
||||
|
||||
## Final verification and isolated artifact
|
||||
|
||||
After both source slices were frozen, the coordinator ran `npm test` once: **119 tests, 118 passed, one explicitly opt-in live-update test skipped, zero failures** (3537.3362 ms). The suite includes the new media ownership and queued-renegotiation regressions plus the audio/core/voice-consumer regressions.
|
||||
|
||||
Then built, without publication:
|
||||
|
||||
```text
|
||||
node node_modules/electron-builder/cli.js --win --x64 --dir --publish never --config.directories.output=C:/Users/Admin/tmp/teamspeach-audit2-20261024/build
|
||||
```
|
||||
|
||||
Build tooling: Node 24.13.0, npm 11.6.2, electron-builder 26.15.3; runtime Electron 44.9.3 / Chromium 152.0.7977.167. Local package version remains 0.1.4. The original build was not overwritten, and its baseline ASAR hash was independently rechecked unchanged after this build.
|
||||
|
||||
All four affected packaged smokes explicitly used the new `--exe` and disposable profiles:
|
||||
|
||||
1. `audit-stream-interleavings.mjs --verify` → `stream/packaged-interleavings/result.json`: every image/discovery outcome passed; duplicate stop plus late update leaves the sibling stream visible; **actual Settings navigation** hides chat for 505 messages and restores the correct 500-message DOM on return; six alternating language/reconnect cycles retain zero old snapshots after test-only GC. Zero capture requests/page errors.
|
||||
2. `audit-stream-callbacks.mjs --verify` → `stream/packaged-callbacks/result.json`: visible real local WebRTC remains intact across delayed old callbacks; neither corrected stale-error toast appears. Zero capture requests/page errors.
|
||||
3. `audit-audio-failures.mjs --core --verify` → `audio/packaged/result.json`: audio/core failure-path assertions passed as bounded above; zero page errors.
|
||||
4. `smoke-stream-view.mjs` → `stream/packaged-ui/result.json`: all 21 recorded UI steps passed, including genuine native fullscreen/Escape, click/keyboard toggles, current-request/exit rejection reporting, live generated audio/video continuity, same-client multiple streams, explicit join rules, end/stop/decline/disconnect teardown and translated labels. Zero capture requests/page errors.
|
||||
|
||||
Artifact: `C:/Users/Admin/tmp/teamspeach-audit2-20261024/build/win-unpacked/TeamsPeach.exe`. SHA-256:
|
||||
|
||||
```text
|
||||
TeamsPeach.exe a503b31dbdca71c4dc90c69d3e26c00cd914aacadd55ee72181556a1b31b0fa1
|
||||
resources/app.asar 2d3d2fe48ffa1f5875213cc85455ac184c526f5377b8a3d7f03f824876965cf2
|
||||
resources/core/teamspeach-core.exe eedda14684106ddfe20bf6d1c4dfcfcfef67c2418b54dba620850c3831e8e52d
|
||||
```
|
||||
|
||||
Machine-readable build/test provenance is `C:/Users/Admin/tmp/teamspeach-audit2-20261024/build-provenance.json`; the full raw test transcript is `full-suite.log` beside it. `packaged-source-identity.json` confirms byte-for-byte equality of the packaged `media.js`, `tree.js`, `watch.js`, `audio/engine.js` and `core-process.js` against the frozen source after the packaged smokes. All raw before/intermediate/after evidence remains alongside it. No benchmark result is used to explain or dismiss the user's live 20 fps observation.
|
||||
Reference in new issue
Block a user