You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f4601f2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: GUI-VALIDATION.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,11 @@ See V2-IMPLEMENTATION.md for the verified flow table, isolation controls, exact
5
5
Executed built binary with CODEBASIC_V2_OFFLINE=1 and CODEBASIC_V2_TEST_ROOT=/tmp/codebasic-v2-gui-review. CUA verified startup, image attachment, message send, mock response, explicit playback/stop, slow-generation cancellation, conversation selection, settings round trip, normal quit and restart restoration. V1 was simultaneously running throughout; its UI and data were not operated on. Both V2 process sessions exited 0 after normal GUI quit.
6
6
7
7
Test data remains in /tmp/codebasic-v2-gui-review for inspection. It contains synthetic text/images only. Playback was a state mock with fake bytes, not sound-device output. No paid provider or ElevenLabs requests were made.
8
+
9
+
## Final post-performance-patch rerun
10
+
11
+
The final app built and signed successfully, and all 38 chat mock checks, offline/permit checks, production Gemini transport mock and original regressions passed. It was launched with CODEBASIC_V2_OFFLINE=1 and CODEBASIC_V2_TEST_ROOT=/tmp/codebasic-v2-bench-300, containing only generated synthetic history (300 seed conversations, 6,000 seed messages and approximately 83 MB of synthetic PNGs, plus a few benchmark turns).
12
+
13
+
CUA could not inspect or operate the app because the Mac was locked and automatic unlock was unavailable. A manual-unlock request was issued; no lock bypass was attempted. Therefore the full flow on this final revision and actual large-list GUI responsiveness remain BLOCKED, not passed. The prior complete GUI sequence above was on 0bfb8f4; it must not be presented as the final post-cache-patch rerun. The offline app remained running for the unlock/resume step. Startup logged one nonfatal NSTableView reentrant-operation warning; its user-visible effect could not be checked while locked.
14
+
15
+
The authorized real Google/ElevenLabs check was completed separately through production V2 components while GUI access was blocked; see LIVE-VALIDATION.md. That check does not establish the live GUI flow.
# Authorized minimal Google / ElevenLabs verification — 2026-11-17
2
+
3
+
The user explicitly authorized read-only use of the existing app's authentication information for one short, harmless synthetic Google response and playback of that response with the existing ElevenLabs voice/model. No existing conversation, document or image was submitted. No credential value was printed, copied to a new file or added to a report.
4
+
5
+
The Mac was locked, so this was a production-component integration probe rather than an observed live GUI flow. The probe uses the same EndpointGenerator, provider-neutral conversation, ChatSession, ElevenLabsBackend, TextSplitter/ChatSpeechPlan and QueuePlayer as V2. It ran with CODEBASIC_V2_LIVE_VALIDATION=1, CODEBASIC_V2_OFFLINE unset and CODEBASIC_V2_TEST_ROOT=a dedicated temporary folder. Offline URLProtocol blocking was not bypassed; it is only installed by offline mode, in a different process. There was no account login, subscription, billing setting or installation change.
6
+
7
+
## Controls
8
+
9
+
Live-validation mode suppresses automatic provider/model discovery, refuses plan transports and non-Google generation endpoints in the UI, uses a dedicated /tmp data root, caps Gemini output at 64 tokens, and persists a one-use permit per authorized provider. Failed attempts also consume the permit. The audio check accepts a single response below 300 characters. The manual probe requires an explicit --authorized-single-probe argument, checks the selected original model/endpoint, and is never run by build.sh test. Keys are read through the explicit V1 fallback marker; only that empty marker is created, not key files.
10
+
11
+
Before the actual request, URLProtocol mock tests verified the production Gemini streaming payload had the 64-token cap and provider-neutral conversation. Permit/isolation checks and all normal regression tests passed without real requests.
12
+
13
+
## Actual result
14
+
15
+
| Item | Observed result |
16
+
|---|---|
17
+
| Google logical requests | 1, no application retry |
18
+
| Selected Google model | gemini-flash-lite-latest, original selected model |
19
+
| Submitted user text | 39 synthetic characters requesting only the sentence “음성 연결 테스트입니다.” |
20
+
| Other submitted content | A short synthetic system instruction; no previous messages or images |
21
+
| Generated response | 13 characters |
22
+
| Returned Google usage | 34 prompt tokens, 6 candidate tokens, 40 total; serviceTier standard |
23
+
| ElevenLabs logical requests | 1, no application retry |
24
+
| Voice/model | Original selected voice and eleven_v4; original tuning read-only |
25
+
| ElevenLabs input | The 13-character generated response only |
| Playback | AVQueuePlayer reached end-of-item: completed_chunks=1, expected_chunks=1; no failure event or timeout |
28
+
| Physical audibility | Not independently recorded/heard through a measurement device; the completion event verifies the software playback path |
29
+
| Billing | No balance, invoice or exact charge was queried. Token/character counts above are known; monetary cost/credit debit remains unverified |
30
+
31
+
Non-secret evidence is under build/validation/live. The synthetic conversation/audio and one-use markers remain in the dedicated /tmp live root. Do not re-run a paid probe merely to reproduce this report; another live run requires its own authorization. The reproduction benchmark and build.sh test use synthetic/local mocks only.
32
+
33
+
## V1 preservation
34
+
35
+
Before/after checks found the original settings JSON and installed app executable SHA-256 digests unchanged. Metadata for five settings/credential files (size, modification time and inode) was unchanged; credential contents were not read for this comparison. V1 checkout remained clean at aba918365ea9a7dc19fa27b9652a0f6bbe84df24. No V1 history or attachments were read. The only credential reads were those required by the expressly authorized Google/ElevenLabs probe.
Measured on macOS 27.0.1 arm64, optimized swiftc build, local filesystem, 2026-11-17. This is an informal warm-filesystem measurement, not a cold-cache or controlled-system benchmark. Other Mac apps remained running. App build/unit compilation had finished before the final sequential comparison.
4
+
5
+
All data is synthetic. Seed sizes: 50/300/1000 threads, 20 messages per thread, approximately 500 text characters per message; 10/80/80 valid PNG attachments of 1,033,018 bytes each (10,330,180 / 82,641,440 / 82,641,440 bytes). Initial metadata sizes: 771,215 / 4,633,045 / 15,440,345 bytes. Each timed run appends one small benchmark thread/two messages. Exact loaded counts are in the JSON logs; this drift is small relative to seed message count.
6
+
7
+
Baseline: ChatSession extracted read-only from 0bfb8f4. Final: cached unchanged-thread metadata, one new-thread flush. Baseline is one run per scale; final entries are medians of three fresh-process runs. No filesystem cache flush was attempted.
8
+
9
+
| Seed threads/messages | Load ms before → final | New-thread flush ms before → final | Send flush ms before → final | Shutdown flush ms before → final | Main actor max tick gap ms before → final | Final loaded / end RSS MiB | Peak RSS MiB range |
Load includes synchronous archive decode and image file loading, measured from a fresh process with potentially warm OS cache. New-thread time includes its first full cache fill. Send and shutdown measure synchronous durability flush. The stream emits 120 synthetic chunks at 10 ms intervals, with a 1 ms MainActor ticker; the maximum observed tick gap measures scheduling stalls, not display frame rate or human-perceived latency. Resident memory uses Mach task_info; peak uses /usr/bin/time -l and includes the entire benchmark process. These are not GUI-app memory measurements.
16
+
17
+
The former repeated full JSON encoding was a measurable bottleneck. Caching unchanged thread JSON and removing the duplicate new-thread save reduced steady-state flush and main-actor scheduling gaps. The cache increases resident memory, especially for 20,000 messages. First save/initial load still scale with total history; this prototype is not a lazy-loading database.
18
+
19
+
Reproduce from the repository with `bash Tests/run-chat-benchmark.sh /tmp/codebasic-v2-benchmark-repro-UNIQUE`. It generates its own deterministic synthetic PNG and archives, compiles baseline/final harnesses, performs one baseline and three final runs per scale, and leaves JSON/time/fixture records in that dedicated /tmp root. Use a new root for each reproduction. No credentials or provider transports are compiled into this harness.
20
+
21
+
Actual GUI responsiveness on the final 300-thread dataset is recorded separately in GUI-VALIDATION.md; the ticker above is not a substitute for that observation.
0 commit comments