gpui-cc Course handbook
REFERENCE / FIELD NOTES

Pilot verification

Observed test results and the gates that remain open.

On this page

Scope: setup-build, display-connect, window-map, and window-close only. No learner C++ files or CMake settings changed. This is checker verification, not a claim that the learner implemented the X11 stages or that the book is complete.

Environment

  • Arch Linux x86-64, CMake 4.4.1, GCC 16.1.1, Python 3.14.6, XCB 1.17.0.
  • Xvfb was not installed on PATH. The pilot used Xvfb 21.1.26-1 from the Arch package mirror after verifying its detached signature against the installed Arch keyring. Only the executable was extracted into a private scratch directory; no system packages were installed.
  • Each native check used a fresh Xvfb server allocated with -displayfd, TCP listening disabled, and a temporary authority file. The observer verified that credentials were required and that the generated credential worked before observing or sending any event. No events were sent to the regular desktop.

For this session, the tested executable can be selected explicitly (the scratch path is not a permanent install):

Terminal
python3 course/check.py display-connect \
  --xvfb /tmp/opencode/gpui-pilot.kPRV3D/usr/bin/Xvfb

Observed results

Test input Checker result
Learner baseline, rebuilt from source setup-build passed with gpui-cc ready.
Same untouched starter, first substantive stage display-connect failed as intended: exit 0 and greeting even without DISPLAY, instead of exit 1 and a diagnostic.
Disposable positive fixture using Xlib (independent of the learner’s XCB path) window-close --previous passed: unavailable and available display statuses, a real viewable 640 × 480 window, unrelated message ignored, matching close exits 0, server loss exits 1.
Probe-only and window-map-only fixtures Each passed its own stage and failed the next one.
Always-success and always-error connection variants Rejected in the absent and present display lanes, respectively.
Printed title, unmapped window, and wrong dimensions Rejected by window-map; the latter two reported server-observed attributes.
No protocol advertisement, close on unrelated message, and ignoring valid close Rejected by window-close on registration, message handling, and deadline, respectively.
Compiler error with an existing executable in target/debug/ Failed at build; did not run the stale executable.
Good probe fixture with a missing Xvfb executable The no-display lane succeeded, then the checker reported BLOCKED, exit 2.

The disposable QA fixtures were outside the repository and were not installed as solutions. The observer compiled cleanly with -Wall -Wextra. Positive and negative results are observations from this environment, not coverage of every Linux distribution.

Worked-example verification

The revised beginner pilot’s examples were built separately from the framework and checked against their documented observations. All three standalone XCB C++ files compiled with -Wall -Wextra -Werror.

Example Observed result
CMake demo Hello, Ada and exit 0; missing argument prints usage and exits 2.
Explicit display inspection An invalid address produced an XCB diagnostic and exit 1; the private server reported screen 0 and exit 0.
Map-state inspection Creation reported unmapped; the map run then reported viewable; the skip-map run remained unmapped.
In-memory message decoding Rendered both base and synthetic forms with the same event kind. Changing the word to 7 changed the printed word, and format 8 suppressed it. No display was used.

The connection and map examples ran on the private server, not on the desktop. These runs establish that the examples work, not that a novice has completed the revised lessons.

Remaining gates

  • Learner/reader pilot: follow PILOT.md from the baseline, make the first stage green, and report any ambiguity before scaling authoring.
  • The bare X server verifies protocol-level close, not a real window-manager close-button interaction. That remains a separate capstone smoke check. Idle blocking and exact event/resource cleanup remain source-review items for the pilot.
  • For the rest of the book, see the verification guide. Later native pixel observations and the CTest runner have separate verification evidence; full framework and capstone checks depend on the learner’s code.