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:
omar committed 2026-11-01 19:47:52 +03:00
1 parent e6464bc4ed
commit ceecbb790a
41 files changed
+17571 -150

No files matched your search

@@ -0,0 +1,226 @@
# Official TS6 visual parity — QA harness (2026-11-01)
## Current result: exact-design correction, 2026-11-01
### Committed correction checkpoint
Implementation commit `e6464bc` preserves the accumulated implementation and the final source-backed
correction batch. `commit-verification/` under the evidence root below measures app.asar
`3fa8f1fbe6beb3804426aaaf48b3bf819ed5b5d7c9ff20b492171da6967f68ec` with fresh official captures:
40 pairs, no blocked captures or harness errors, 40 strict visual failures. Instrument self-tests
and the permanent bottom-anchor/history-reading resize regression passed.
Both renderers now use Electron's normal acceleration policy. The former reference driver called
`disableHardwareAcceleration()` while the product did not, causing different text/SVG rasterization.
Historical screenshots remain unchanged; percentage differences across those policies are not a
controlled before/after measure of product code alone.
Current dark/en/1553×998 whole-screen differences: full chat 0.43%, short chat 0.25%, empty chat 1.16%,
Audio 2.66%, Appearance 2.79%. Full/short chat still fail because bookmark/tree regions exceed 0.5%;
passing the whole-image threshold does not override failed regions. Account-only settings, absent
bookmark folders, supported DSP differences and additional product settings remain explicit deviations.
There are also residual geometric differences, especially narrow content and empty-chat presentation;
this checkpoint is not completion of the exact-design task.
`commit-controls/result.json`: real overflow formatting actions and submenus, narrow category placement
below the server actions, widening restoration; zero page errors/capture attempts.
`empty-chat-behavior/result.json`: localized prompt visibility follows draft and send eligibility;
zero page errors/capture attempts. `commit-chat/result.json`: packaged history persistence/restart,
scope isolation and hostile-text safety passed. Complete Node suite passed after integration.
The native core was reused unchanged; no fresh native/ARM compatibility proof is claimed.
The reconstructed reference described below is historical. The owner's rejection led to
`scripts/official-pair-capture-offscreen.mjs`, which compares the actual product with the installed
official Vue frontend running in a hidden, network-denied renderer with synthetic native-bridge data.
The official installation and profile are not changed. Font files now match the original Noto 2.013
under the OFL; non-brand SVG provenance is in `LICENSES/teamspeak-client-icons-PROVENANCE.md`.
The refreshed actual-frontend run **did not pass visual acceptance**: 168 pairs at 1553×998,
1280×800 and 880×800, all evaluated, none blocked, none fully passing. It covers both languages,
both themes and all 14 screen states. This supersedes the earlier 224-pair run for coverage at
supported sizes; the 860px cases remain below the product's 880px minimum.
Evidence root: `C:/Users/Admin/tmp/teamspeach-exact-design-20261101/`.
- `confirmed-pairs/pair-report.json` and `.md`: full refreshed matrix and per-region strips;
its `BUILD-MANIFEST.json` identifies app.asar `e056599c0840344cac7860aa487c2494f04845bf35c9c2ed14f30d023ff5fae6`.
- `final-confirmation/`: focused 32-pair run after content-box chat spacing and nested preview zoom
corrections, app.asar `bd1441db2a66ef1249934dcfcaba162796b75240d812449942d4791bbe77be96`.
All captures completed; all pairs still failed at least one region. This is not a full-matrix rerun.
- `build/BUILD-MANIFEST.json`: latest isolated Windows build, version 0.1.4, unchanged native core.
Later chat-resize changes are verified separately below, not retroactively attributed to earlier captures.
- After fixing import-time DOM listener registration, the complete Node test command passed:
`node --test --test-reporter=dot "test/*.test.*"`. The existing live release-list test stays skipped.
- `final-smoke/chat/result.json`: passed after the initialization fix, including main-process history restart,
cross-identity isolation and hostile text rendering. No network requests or page errors.
- `final-smoke/controls/result.json`: packaged dropdown open/Escape and keyboard slider/SVG-knob
interaction passed; no page errors or physical capture requests.
- `final-smoke/accountfree/result.json`: administration rejection/acknowledgement, scoped recording
controls and file browsing passed in both languages/themes using synthetic server responses.
- `final-smoke/broadcast/result.json`: all 14 checks passed after fixing narrow Russian footer overlap,
including all eight language/theme/size combinations, explicit publish/approval, cancellation,
source changes and denial. Media is generated canvas video, not physical screen or microphone capture.
The new paired harness retains its 16/255 channel tolerance, 0.5% differing-pixel threshold and 1px
box tolerance. Corrections to the instrument: chat timestamp comparison uses painted viewport text
rather than virtualized-versus-retained DOM rows; already-excluded caption rectangles remain excluded
inside overlapping scored regions; both clients receive all four canonical synthetic audio endpoints
and the explicit default-device metadata. The instrument's self-test passed, including clipped versus
virtualized text and nested exclusions. No ordinary content is excluded to hide a visual mismatch.
`confirmed-behavior/result.json`: passed actual packaged selection/persistence checks for country
flags, tree order/background/commander, keyboard icon-mode changes/focus, language flags, bookmark
save/add/disclosure and new/closed connection tabs. Zero page errors and zero capture attempts.
The fixture explicitly binds the local identity and gives no connected server microphone ownership;
earlier diagnostic runs reached the rejecting getUserMedia stub when closing a tab, never a device.
`confirmed-chat/result.json`: passed real main-process history IPC/restart, scoped history isolation,
hostile text and local rich-text hydration; no page errors or network requests.
Chat resize regression: `chat-resize-before/result.json` reproduced a 119px gap after narrowing a
bottom-pinned conversation. `chat-resize-after/result.json` passes on app.asar
`cf487d7417e31dcbc44dc6f4af21a98cfadb543d08fdaa8af74b2c22dfbc952e`: wide/narrow bottom gap 0px;
the separate lookback case stays at scrollTop 0 instead of jumping 629px to the bottom. No page errors.
The production fix ignores resize-induced scroll events when recording reading intent and observes
both the log viewport and the composer's content box. `checkChatResize` in the paired harness keeps
the behavioral regression; it does not make the visual threshold easier to pass.
`chat-resize-confirmation/` exercised that permanent regression and eight main-screen captures in
both languages/themes at 1553×998 and 880×800: no blocked captures or harness errors, but all eight
still fail the strict visual gate.
Latest focused dark/en/1553×998 whole-screen differences: main/full 0.9%, main/few 0.4%, Audio 3.0%,
Appearance 6.5%. A whole-image value below 0.5% does not pass if any scored region fails. Search and
connected-server geometry now match in this configuration; bookmark folder artwork, toolbar details,
system timestamps, supported-settings composition and narrow settings navigation still differ.
The source has account-bound badge/contact controls and a multilevel denoise control absent from the
product's actual capabilities; nonfunctional replicas were not added. Language help remains truthful
about immediate application instead of claiming the official client's restart requirement.
The static design detector still reports source-style/contrast/layout findings; no clean accessibility
audit is claimed and no blanket detector suppression was installed. Native devices/platform
interoperability are not established by these fixtures. Exact-design acceptance remains open.
## Historical reconstructed-reference method
`scripts/smoke-official-parity-offscreen.mjs` compares the **actual TeamsPeach renderer** with a
**reconstructed official reference**, metric by metric. It is a measurement gate, not an impression.
## Reference (reconstructed, never product code)
- `scripts/lib/official-ts6-reference.mjs` reads the installed client UI in place
(`%LOCALAPPDATA%/Programs/TeamSpeak/html/client_ui`) and refuses to run if hashes drift:
`main.css` `bc700401…34adf`, `main.js` `9d6bea2e…82c39`, `index.html` `96c60720…f793`.
It resolves the active style layers from the bundle's own webpack request maps (no hard-coded ids):
`main.css` → platform module (`window.os` switch; windows → empty module 55629, linux → 97870) →
`./teamspeak.{dark,light}.scss` (css modules 8165 / 4115). `:root` tokens are resolved per theme with
source + character offset. Root-relative font URLs are rewritten to the installed directory in a
transient temp page only; nothing from the bundle is written to the repository or packaged.
- `scripts/lib/official-ts6-template.mjs` builds the DOM from the official compiled render functions
(offsets in comments: content header @2975904, screenshare tile @4070145 scope 6eee7636, system chat
row @3305157 scope 5c102790, chat input @3561667 / toolbar order @3517745, tool menu @3872578,
ts-list-simple-cell @3222136, ts-button @3109151, tree channel/client @4119733/@4140768). Icons are
size-only placeholders; labels come from the installed official locale files. Items marked
INFERENCE (slim layout, default tree density, menu backdrop, TSButton for toolbar) are not proven.
- Both sides render the same labelled synthetic data (`FIXTURE`), including official-locale event
sentences, so region crops are class-matched, same-data comparisons.
## Validation of the reference against real official captures
`--official-shots <dir>` locates the user's private official screenshots by sha256 (never copied,
cropped into outputs, or committed) and probes regions with Electron `nativeImage`. Result on
2026-11-01, dark/ru: **22/22 probes pass** — titlebar/header/composer fills, channel header 71 px,
header separator 4 px `#1C2539`, player border 2 px `#2b3346`, chat system rows 23 px with 27 px pitch,
row gradient start `#131824`, bold names `#acacac`, sentence `#697a97`, time `#697a97`·0.75, menu
text `#fff`, captions `#697a97`, destructive `rgb(255,130,130)`, plain menu items 30 px and submenu
items 34 px, menu title colour. Captures are dark only; light values are source-derived, not captured.
The captures are cropped at the top, so the 44 px window-bar height is a source token, not observed.
## Comparison
56 class-matched metrics × {dark, light} × {en, ru} at the user-reference 1553×998 viewport: header fill/height/title type and
platform font/separator/mode buttons; player tile border/radius/fill/name label size, colour and
insets; system rows height/pitch/radius/fill/text, emphasised names, time stamps and visible time
colour; composer container, toolbar presence/height/fill/11 official buttons, actions; context menu
radius/size/item heights/colours/captions/destructive/outer width and actual backdrop gradient/opacity/blur;
tree row heights, name size/colours, pane fill. Colours ±2 per channel, sizes ±1 px, counts/fonts exact
(actual face via CDP `CSS.getPlatformFontsForNode`, while the menu remains mounted). Translucent popup
fill is compared by its actual compositing styles rather than mismatched background pixels. The source
runtime modifier caps the reconstructed outer popup at 260 px (`local://official-popup-width-trace.json`).
Outputs: `result.json`, `metrics.md`, full captures, region crops and labelled side-by-side comparisons.
## Safety
Both windows are hidden, nonfocusable, offscreen and muted (shared launch guard; the reference window
gets the same guard and a separate partition with permissions denied and non-file requests cancelled).
No server, official runtime/native bridge, account service, OS input, clipboard, capture device, native
presentation, normal profile or audible output. The stream tile uses generated local WebRTC media
(`scripts/lib/generated-stream.mjs`, shared with the stage smoke).
## Run
```
node scripts/smoke-official-parity-offscreen.mjs --out <dir> [--official-shots <dir>] [--exe <packaged exe>]
node scripts/smoke-official-parity-offscreen.mjs --reference-only --official-shots <dir> # reference targets + validation only
```
A pass of every metric is required before claiming visual parity for these regions. Feature parity is
tracked separately and is not established by this harness.
## Limits — no full-identity claim
The reference uses empty, size-only icon placeholders and synthetic data, so whole-region pixel
identity is neither measured nor claimed; region crops are for review, not a pass criterion. The
available official captures are the owner's cropped dark-theme screenshots of different content: they
validate the 22 regional probes above only. Light theme, the window-bar height, icons/glyph artwork,
hover/animation states, settings pages and every feature behaviour are outside this evidence.
## Reference coverage
The reconstructed reference is a component sheet, not a full-application reference. It must never be
cited as screenshot parity for the whole official client.
| Region | Measured (class-matched) | Validated on official capture | Excluded / not representative |
|---|---|---|---|
| Window caption bar | — (native overlay; title bar test) | fill `#121a2c` | 44 px height (source token `--tsv-header-window-bar-height`; captures cropped) |
| Channel/content header | fill, 71 px height, title type/colour/font, separator, mode-button count | 71 px, fill, 4 px separator | icon artwork, button glyphs, button placement detail |
| Player tile | border, radius, fill, name label size/colour/insets | 2 px border colour/width | hover capsule controls, viewer/volume overlays, pagination, more/pop-out buttons |
| Chat system rows | height, pitch, radius, gradient fill, text/name/time colours, emphasis, time count | all of these | avatars, text messages/bubbles, timestamps format beyond HH:MM - weekday |
| Composer | container fill/border/radius, input size, toolbar presence/height/fill/button count, action count | message-field fill | toolbar icons (blank placeholders; only "Others" label renders), emoji/attach/send glyphs |
| Client context menu | radius, size, fill, item heights, text/title/caption/destructive colours, caption count, width | colours, plain 30 px / submenu 34 px items | icon glyphs, avatar in title row, submenus |
| Server tree | channel 44 px / client 40 px rows, name size/colours, pane fill | — (no tree capture) | channel/client icons, channel cards/banners, talk/mute indicators, compact density choice (INFERENCE) |
| Sidebar pane, settings, dialogs, onboarding, stream setup | — | — | not reconstructed; need separate source-component checks |
Final acceptance therefore also requires a full three-pane screenshot of the actual product compared
against the user's source images and the source component constraints (icon placement, text alignment,
cards, rich controls). No-overflow checks alone are not acceptance.
Fonts: the official family is `"Noto Sans"` loaded from the official bundle's own `@font-face` file.
Platform-font metrics only match if TeamsPeach ships a separately licensed Noto Sans (SIL OFL 1.1, from
the upstream Noto project, with its licence in `LICENSES/`) — never the official bundle's font file.
Without it Chromium falls back (e.g. Segoe UI on Windows) and the platform-font metrics fail.
## Connection-aware feature execution
Synthetic server events carry `connectionId`; request fixtures implement `(connectionId, command, args)`.
The disposable application's real initial native connection is retained rather than replaced with a
fake connection manager. Generated transport sources are keyed by connection and stream ID, including
two simultaneous native processes with colliding stream IDs. The stage suite exercises hide/show,
focus/strip, paging, drag/keyboard ordering and internal overlays without starting native presentation.
`smoke-official-shell-offscreen.mjs` captures every rendered settings category, not a hard-coded set of
legacy panels. `smoke-i18n.mjs` checks bound strings in both languages through the real renderer. Catalog
symmetry and placeholder formatting have consumer unit tests; dynamic local namespace helpers are not
treated as standalone catalog keys. `smoke-identity-offscreen.mjs` drives create/edit/default/delete and
cancellation against the real native identity CLI. `smoke-whisper-offscreen.mjs` drives actual local
storage/restart and real disconnected-core rejection; it does not claim a successful server whisper route.
The final package uses a separate Cargo target directory and an explicit temporary builder config;
normal `core/target`, `core-bin`, `dist`, version and publication state are unchanged. Runtime helpers use
the isolated executable through the packaged-source safety guard. Authored scripts/tests are not evidence
of a pass until their result/log is recorded in the final feature matrix.
Final execution: 224/224 component metrics passed; full-shell 324 cases / 1,001 checks passed and actual
three-pane/settings/menu/admin/recording/file-browser pixels were inspected. The stream stage passed
249 checks with three real generated receivers across two native connection processes, no physical
capture request and no fullscreen/native-PiP request. Standalone child media identity/restore is proven
with explicitly authorized **test-only CDP viewport emulation**: Electron 44.9.3's actual offscreen guest
started at 0×0. The native size and emulation are retained in evidence; ordinary visible-window painting
is not claimed. See `popout-offscreen-limitation.json` and `final-feature-matrix.json`.