Validation¶
The 0.6.1 validation below used Debian 13, x86_64 Linux, Python 3.12.14, Rust 1.99.0, GPUI Kit 0.7.1 at the pinned git revision, GPUI snapshot 0.3.8.
Kit 0.11.0 / GPUI 0.3.14 upgrade (0.7.0)¶
The development build pins the released Kit revision and uses its matching GPUI HTTP client snapshot. Rust uses Jiff for calendar and time state while Python keeps its existing date and time string formats. Dynamic command shortcuts use GPUI's runtime keybinding loader, and table selection still scrolls to reveal the selected row.
On Debian 13/x86_64 with Rust 1.99.0 and Python 3.12.14, the locked Rust compile and extension build, strict Clippy, formatting, and strict documentation checks passed. The rebuilt extension passed 299 Python and bridge tests and 28 native Linux/X11 tests under Xvfb with Mesa software rendering. The overlay test waits for Kit's new dialog exit animation before clicking the sheet trigger.
The existing macOS Classic theme matches the new Kit source byte for byte. Platform wheel builds, Wayland interaction, and the macOS 12 runtime check remain pending.
Tables, inputs and command palette (0.6.1)¶
The combined update passed 299 Python/bridge cases and 28 native Linux/X11 cases against the rebuilt abi3 extension. New real-window acceptance checks cover numeric table sorting, keyboard/source-index selection, keyed row replacement, hidden domain selection during filtering and native header sort callbacks; masked text input submit/focus/blur, read-only editing and numeric step/blur bounds; mutable MultiSelect options and keyboard toggling; and command search/confirmation/cancel with live enabled state and shared shortcut gating.
The bridge validates complete dependent batches before enqueueing them and retains updated options for subsequent validation. Failed option/selection updates leave its schema intact. Palette action snapshots use the query mirror to avoid reading CommandState during synchronous native action dispatch.
cargo check --locked, cargo fmt --check, strict Clippy, Ruff, formatting and
ty pass. Documentation generation verifies 77 controls; both installable
skills validate 310 local links and 95 examples/recipes. Strict Zensical
build and link/asset/anchor checks pass across 120 pages. CommandPalette,
MultiSelect and Table previews were captured from real native windows and
reviewed. README, canonical coverage, guides, generated catalog and both skills
are synchronized; command and data guides now generate their bundled skill
references as well.
Validation remains local Linux/X11. macOS, Windows and Wayland interaction were not rerun during implementation. These additions are included in 0.6.1. The tagged release workflow builds six wheels and runs 17 installed-wheel jobs, including Linux/X11 interaction and macOS/Windows native smoke tests, before publishing GitHub assets and the PyPI-compatible distributions.
Kit 0.7.1 / GPUI 0.3.8 upgrade (0.6.1)¶
The backend now pins Kit c1bda59e67f46266991a230ae94f749af496af2a
and the exact GPUI 0.3.8 snapshot family, including the matching HTTP client.
gpui-pre-0.3.8/Cargo.toml.orig identifies Zed revision
279fe070bb389b79652e52065b2f001edcc0b11b; the source manifest is recorded in
upstream-lock.json. The vendored macOS Classic JSON is
byte-identical to the upgraded Kit source. Diff/Speech remain unbound and the
optional Speech/GPUI Fast features are not enabled.
Local upgrade checks passed on Debian 13/x86_64 with Python 3.12.14 and Rust
1.99.0: cargo check --locked, strict Clippy and Rust formatting. Maturin built
and installed the native abi3 extension in development mode. Its exposed
dependency identity reports GPUI 0.3.8 and the new Kit revision. The lockfile
resolves 24 snapshot-family crates at 0.3.8 with one GPUI instance, and bundled
license notices match the lockfile hash.
The full Python/bridge suite passed 290 cases; all 24 native Linux/X11 cases passed against the rebuilt extension. Native coverage includes editing, caret/selection/undo, queued commands and async lifecycle, dynamic trees, forms/validation/retry, image sources/animation/retry and cleanup, live theme switches and window geometry/title/size actions. This is local Linux validation; macOS/Windows release-wheel checks and Wayland interaction have not been rerun during local upgrade validation. Version 0.6.1 includes this dependency update; the tagged workflow supplies the platform wheel checks before publication.
Markdown/HTML catalog previews were recaptured with the upgraded native renderer to reflect upstream's rich-text typography changes. Generated references cover 77 controls; skill checks validate 310 bundled links and 95 examples/recipes. Ruff, formatting, type checks and the strict documentation build pass, including links/assets/anchors across 120 built pages.
The milestone results below are historical evidence from their original dependency baselines; they do not establish acceptance of this upgrade.
Forms and validation (0.5.0)¶
Local checks pass 258 Python/bridge tests, 21 native Linux/X11 cases, Ruff, ty, Rust formatting and strict Clippy. Strict Zensical checks validate 112 built pages. Both installable skills validate 201 links and 87 examples/recipes.
The settings acceptance test opens a real light native Form/Field window. It asserts current-input shortcut submission, inline errors with unchanged caret, selection replacement, native undo/redo and history retained across conditional hide/show. It verifies shared disabled state during async saving, duplicate-save prevention, expected I/O failure, pointer activation of Retry, correct JSON and clean cancellation/worker shutdown when the window closes during saving.
Python tests cover required/raw-value policy, sync/async validators, stale values, visibility and editor replacement, copied payloads, named server errors, expected I/O failures, retry, cancellation and thread/lifecycle boundaries. Rust bridge tests reject malformed Form metadata and child trees, and immutable Field-name updates before enqueueing. Installed-wheel smoke checks exercise real Form/Field and async validation/submission on every release target. The component catalog now has 74 generated references; both installable skills include forms guidance and a complete light settings recipe.
Platform appearance refinement (0.5.0)¶
The theme refinement initially passed 222 Python/bridge tests, Ruff, ty, Rust formatting/strict Clippy and strict docs/skill validation. The 20-case native Linux/X11 suite includes macOS/Windows light/dark editing regression cases. The extended theme fixture also verifies Tab traversal and keyboard activation of the real Kit Button, Checkbox, Switch and Select after live switching; geometry overrides, control surface/switch/slider tokens and reset to default are checked. The all-preset native smoke script passes locally. Final native captures show 13/14 px typography, 24/32 px button/field frames, green/blue switches, larger Windows indicators, accent/white slider thumbs and the differing editor focus treatments. Eight PNGs and both skills are refreshed.
These changes are source-tested on Linux/X11, with no claim of visual certification against AppKit/WinUI on those operating systems. Release wheel builds still run only for new version tags.
Native themes (0.4.0)¶
Local checks pass 217 Python/bridge tests, Ruff, ty, Rust formatting and strict Clippy. Strict docs checks validate 106 built pages and 72 generated component references; the two agent skills construct 83 examples/recipes.
The native suite passes 20 Linux/X11 interaction cases, including four new theme cases starting with macOS/Windows light/dark presets. XTest typing verifies caret position, selected-text replacement and undo across live palette, radius and typography changes in single-line and multiline editors. Native snapshots verify Kit primary/hover/active button colors, Base agreement and default restoration. Python tests check readable preset text contrast and validate custom descriptions; bridge tests reject malformed startup/runtime themes before claiming/enqueueing.
The native wheel smoke script additionally applies all four presets in both modes and a custom palette, retaining edited values through each change. The local run passes; the release matrix runs that same script on Linux, macOS and Windows on x64/ARM64. Theme style inspection and pointer/keyboard evidence here come from Linux, not from a visual comparison with AppKit or WinUI.
Eight real native appearance previews were captured and inspected for the public
theme guide. Reproduce them with scripts/capture-themes.py
on X11. Window decorations and visual materials remain platform-owned.
Shared commands and menus (0.3.0)¶
The feature's local checks pass 157 Python/bridge tests, Ruff, ty, Rust formatting and strict Clippy. The documentation generates 72 component references and validates 104 built pages; both installable skills construct 81 examples/recipes.
Two Linux/X11 real-window cases exercise the Kit and native-menu fallback paths:
Save from a button, dropdown, assigned context menu, application menu, shortcut
and queued Command.execute(), shared disablement, checked sidebar visibility,
nested submenu navigation, replacement/removal of open drawn menus, runtime
shortcut registration, callback thread and shutdown. Input caret insertion and
native Undo are checked around command activation. The full suite runs 16 native
regression cases, including existing editing, dynamic-layout and lifecycle checks.
OS-native context menus contain an opening snapshot;
open drawn menus refresh from live commands/items.
tests/native_smoke.py additionally checks command discovery, menu construction,
async queued activation, latest input snapshots and enabled/checked state in
installed release wheels on every supported release platform. macOS/Windows
pointer and keyboard menu interaction remains a separate platform validation
need; a smoke test does not certify every OS interaction.
The new notes editor was run as a native light-theme window. Its save shortcut wrote a real temporary UTF-8 document, and its sidebar shortcut changed layout. The public PNGs capture that native window and an open Kit DropdownMenu. Unit tests verify successful notes persistence, actionable I/O failures and cancellation after native shutdown. No simulated browser controls are used.
Dynamic composition (0.2.0)¶
Real X11/Vulkan interaction tests cover TextInput, TextArea and Editor. While keyboard editing continues, Python inserts siblings, reorders children and moves the editing control to another parent. Tests assert unchanged text and retained caret, selection, focus and undo history. Native navigation deliberately ends a typing transaction before checking separate undo steps, matching Kit's actual undo manager rather than relying on a timer.
Hide/show, ancestor visibility, detach/reattach, page replacement, runtime button activation, binding continuity and explicit disposal are also checked. Hidden inputs stop receiving keyboard edits; disposed IDs disappear from snapshots. Window close cancels the polling coroutine and leaves no callback/executor thread.
The cross-platform installed-wheel smoke test now exercises dynamic children, root moves, visibility, retained state and disposal on every release platform. Editing interaction remains verified on Linux/X11; platform smoke tests do not prove OS keyboard interaction on macOS or Windows.
Python tests additionally check atomic ownership validation, cross-app/thread rejection, bindings and overlay limits. Real bridge tests check immutable identity, malformed trees, retired IDs and queue-overload schema rollback. The historical validation results below describe earlier milestones.
Zensical documentation¶
Zensical 0.0.67 and Ruff 0.16.10 are pinned in the docs dependency group and
uv.lock. A separate docs-only environment successfully generated/verified all
71 references and built in strict/clean mode without importing the native
extension. The site contains 98 Markdown pages and 99 generated HTML pages
including the 404 page. The built-site check verifies local links, assets and
anchors, including card links and the GitHub Pages subpath.
Each of the 71 controls was mounted in a fresh real native process under Xvfb/Lavapipe, captured to its individual PNG, and closed without callback errors or a remaining Python asyncio worker. Native hover/popover/dialog/sheet previews were opened before capture. These captures prove basic mounting/rendering, not exhaustive interaction coverage for all builder options.
All 80 complete Python examples in the documentation, including the 71 component examples, constructed their real control trees and were accepted by the Rust Bridge schema. The bridge was used for validation; those example-code checks did not start another native window or pretend to test rendering.
Headless Chromium checks confirmed that the 71 catalog images load, the component
page and search results render, and the mobile catalog has no horizontal overflow.
Desktop/mobile captures are kept locally under artifacts/docs/. The existing
Python/bridge suite still reports 110 passed, 11 skipped; Ruff lint/format pass.
The workflow builds an HTML preview artifact on PRs/main without Rust/native
packages. Optional Pages deployment requires the repository Pages source and
PUBLISH_DOCS variable described in documentation development.
Streaming example and GIF¶
The Python workspace now runs a seeded local quote/trade stream on the existing owned asyncio callback loop. Updates are batched every 650 ms. Its native watchlist, current quote, change tag, 12-point rolling chart, four-row market tape and feed counter update together. Paper fills use the current simulated price; the requested symbol/side are captured before the asynchronous fill delay.
uv run --locked pytest -q: 110 passed, 11 skipped. The market tests verify
replay, independent state, positive quotes, consistent percentages, matching
latest chart/quote values and bounded histories/tape across 1,000 ticks.
scripts/test-native.sh -x: 11 passed, 110 deselected in 16.05s. The added
streaming scenario verifies actual native chart/quote consistency, tape updates,
paper fills and shutdown with no asyncio worker/executor threads left running.
The original ten native scenarios still pass. After limiting the visible tape
to four complete rows, the targeted streaming scenario passed again in 2.99s.
scripts/record-workspace.py records the actual
1180Ă—790 X11 window through FFmpeg, with real mouse/keyboard Buy/Sell activation
and a switch to AAPL. Native snapshots verify both fills and the changed chart;
shutdown reports no errors and only MainThread. The resulting
GIF contains 120 frames at 10 fps and loops
over 12 seconds. Frames were decoded and visually inspected. Lossless source
video, snapshots and logs remain under gitignored artifacts/recording/.
Regenerate with uv run python scripts/record-workspace.py on Linux, with Xvfb,
xdotool, FFmpeg, the development dependencies and native build prerequisites.
There are no external market feeds or broker connections. --static disables
streaming in the workspace example; its stream is cancelled when the app closes.
Expanded catalog validation¶
The optimized extension was rebuilt successfully with uv sync --locked after
adding the component catalog. This incremental release build took 29.02s;
upstream Kit/GPUI revisions remain unchanged. cargo check --locked,
cargo clippy --locked -- -D warnings, cargo fmt --check, Ruff lint and Ruff
format checks all passed.
uv run --locked pytest -q: 108 passed, 10 skipped. The skipped tests require
an actual display. scripts/test-native.sh -x: 10 passed, 108 deselected in
13.48s, using the installed optimized extension, Xvfb and Mesa Lavapipe.
The new Python/bridge tests validate all 67 additional control schemas through the real Rust bridge, typed binding, collection copies, layout ownership, constructor failure, immutable native constraints, invalid-update atomicity, RGB/RGBA values, duplicate tree IDs and per-window overlay limits. They establish the basic wrapper contracts; they do not test every upstream builder option.
Four additional native scenarios extend the original six below:
- Light workspace: real mouse activation invokes the async Python handler;
native snapshots contain
Filled: Buy 10 NVDAand the appended order row. - Dark workspace: the same behavior with native dark appearance.
- Component gallery: constructs and renders native inputs, selection, table, date/color controls, carousel, overlays and five chart families, with no reported application error. This checks mounting/rendering; it does not establish exhaustive interaction coverage for every control.
- Native overlays: mouse activation opens the Kit dialog and sheet; Escape dismisses each, with native close mirrored to Python values.
All scenarios also verify successful native shutdown and an empty error list.
The original text editing/undo, ordered activation, async cancellation and error
scenarios still pass. Actual captured windows were visually inspected and copied
without image editing into docs/screenshots for README display:
dark workspace,
light workspace, and
gallery. Rerunning the native script regenerates
local captures and snapshots under the gitignored artifacts/ directory.
The measured scope is Linux/X11 software Vulkan, a fixed tree and one window. Complete Kit APIs, macOS/Windows/Wayland, portable wheels and large-data performance remain unverified. See component coverage for the implemented contracts and remaining Kit families.
Original first-milestone evidence¶
The results below record the original four-control implementation; the expanded catalog results above supersede its test counts and scope.
Upstream compatibility¶
All four requested repositories were cloned and inspected. Immutable references and the NiceGUI/Flet implementation comparison are in architecture.md and upstream-lock.json.
The published gpui-pre-0.3.7/Cargo.toml.orig declares Zed revision
1a28cff4b409169bac058bca40dfbfeb7621d19b. The cloned Zed repository was checked
out at that revision. Its app/context.rs, app/async_context.rs and
app/entity_map.rs are byte-identical to the downloaded snapshot's corresponding
files. The resolved dependency tree has one GPUI instance at 0.3.7, shared by
Kit, Base, Component and the platform/renderer crates. Cargo.lock retains exact
registry checksums and git commits.
cargo check --locked, cargo clippy --locked -- -D warnings, and
cargo fmt --check passed. maturin develop --uv built and installed a real
cp312-abi3-linux_x86_64 extension. This was not a mock backend. The initial
development build took 3m 32s after dependency/toolchain setup.
The standard uv sync --locked path also passed and installed the optimized
extension; its initial release build took 13m 26s. Final checks ran against that
installation: uv run --locked pytest -q reported 27 passed, 6 skipped (the
native scenarios are opt-in), followed by the native script's 6 passed in
6.40s. Rust check/Clippy/format and Python lint/format all passed afterwards.
Python and bridge behavior¶
27 tests passed in tests/test_controls.py and tests/test_bridge.py:
- Context-manager and explicit-child composition, task-local contexts, context restoration after errors, stable IDs, unique ownership and cycle rejection.
- Explicit State propagation, two-way input binding, equality guards and subscription disposal.
- Early property/handler validation and no orphan controls after failed callback registration; main-thread and existing-asyncio-loop entry restrictions.
- Real Rust tree/property schema validation, duplicate/invalid IDs, invalid batches, and explicit bounded-command-queue overload.
- A blocked Rust event receiver releases the GIL and wakes when closed.
- Missing-display startup failure shuts down the Python loop and executor thread and rejects reuse of the same Application.
Python Ruff lint and format checks passed.
Native integration¶
scripts/test-native.sh launches a real X11 server using Xvfb and a real Vulkan
renderer using Mesa Lavapipe. Each scenario runs the installed extension in a
fresh Python process, types/clicks through XTest, and uses the normal public
Application snapshot barrier for assertions. It does not inject events into a
mock UI or invoke a click callback directly.
All six native scenarios passed together against the optimized uv installation in 6.40s. The scenarios cover:
- Synchronous Python callback: type
Ada, click the Kit button, apply a coalesced label update, and verify nativeHello, Ada!. The sync callback returns an awaitable that reads the native snapshot. - Async binding and keyboard activation: type
Ada, Tab to the button, activate with Space; verify a disabled button andPreparing greeting…, then a re-enabled button andHello, Ada!after an asyncio sleep. - Close during an awaiting handler: close the native window during a long async wait; verify the handler's finally block runs and no Python callback or asyncio executor thread remains after run returns.
- Callback failure: a Python ValueError reaches on_error and app.errors, and app.close terminates the native loop cleanly.
- Native editing ownership: initialize the native value from Python, type
Xto getAdaX, activate Python's label update, refocus and Undo; verify the native value, bound Python State, and label return toAda. This checks that native edits do not get echoed through set_value and destroy history. - Queued activation order: deliberately pause Python dispatch while native
input and two activations queue. The first callback reads
Ada, the second readsGrace, and the final native label isHello, Grace!. Callbacks begin with their activation snapshot before later input events advance mirrors.
The Xvfb harness was corrected after initial reruns exposed a stale display-file race. The Xlib close request now uses a server round-trip before disconnecting. The library does not substitute a fake window when native startup fails.
Actual captured native windows were visually inspected. See
artifacts/sync.png and
artifacts/async.png for the rendered outcome, and
the corresponding JSON files for native state. Artifacts are local and
gitignored; regenerate them with the native test script.
Scope of the evidence¶
Validated: native X11/Vulkan rendering, real Kit controls, typing and undo, pointer and keyboard activation, foreground updates from Python, queued callbacks, asyncio waits, explicit state binding, failure handling and clean Python shutdown.
The measurements above come from Linux/X11. Subsequent release CI validated installed wheels on Linux, macOS and Windows on x64 and ARM64, including native window/state/lifecycle smoke tests on macOS and Windows. See the release matrix for exact Python versions and coverage.
Still outside this evidence: Wayland, hardware GPUs, high-DPI/multiple monitors, AT-SPI interaction on a full desktop, IME/composition, manylinux portability, multiwindow or high-volume performance. Coordinates are used as an Xvfb fallback because this environment lacks a desktop accessibility bus; screenshots substantiate rendered facts and snapshots substantiate native state.
The initial maturin development install warned that patchelf was unavailable.
The installed extension's runtime dependencies resolve in this workspace, but
that is not an auditwheel or portable-wheel certification. Release CI now audits
Linux dependencies; the Linux wheels retain system libraries and Linux tags.
Version 0.1.0 is published on PyPI with macOS/Windows wheels and a source archive;
Linux wheels are available on GitHub Releases. The project is licensed under MIT.