10 KiB
Packaged macOS UI conformance (#1387)
Status: accepted for v6.1.7. Signed capture run
33926469724
passed the complete packaged macOS gate from build commit
ed5094c6a5f9dd6958ceb952d8d018a40135bf33. The Homebrew-installed app also
passed its separate first-launch and compact-window verification on September 4, 2026.
Boundary
pnpm desktop:ui:mac <candidate.app> <new-evidence-directory> launches that actual packaged Electron executable through Playwright. It verifies the production preload identity, embedded build SHA, package path, and disposable user-data path. It does not start Vite, inject a fake desktop bridge, replace the installed app, or use the operator's task data. Authentication and task/template persistence use the isolated packaged server. The text-artifact preview is explicitly identified as read-only fixture data; it does not certify PDF rendering, provider execution, or artifact registration.
Build the candidate with VERITAS_BUILD_SHA set to the exact candidate commit before running. The fixed matrix covers expanded-width 1700×760 and minimum 1180×760 content sizes in both themes at 100% zoom. The shared 760px height is deliberate: hosted macOS runners expose a 760px usable content area, while the two widths still exercise expanded and compact shell behavior. These are native content dimensions, not a claim that the outer window has those dimensions. Evidence separately records outer bounds, content bounds, display scale, minimum window size, macOS version, and app version/build.
The report hashes the entire bundle, including server/web resources and framework binaries. Each state retains its route, geometry, native BrowserWindow.capturePage() PNG, and screenshot digest. Captures wait for active overlays and their ancestors to become opaque, then allow two animation frames for painting. These are native renderer captures, not pictures of the macOS menu bar or window shadow. A failed state remains in the required matrix. Startup failures are recorded without taking authentication screenshots or disclosing passwords/recovery keys. Temporary test profiles are retained outside the repository and contain synthetic data only.
pnpm desktop:ui:verify <evidence.json> <candidate.app> rehashes the package and screenshots. It rejects incomplete/duplicate/failed entries, unbound builds, dirty candidates, wrong commits/versions/packages, stale reports, missing native environment, cropped or modified PNGs, transparent overlays, and shell geometry failures before and after interactions. It is a native-evidence verifier, not yet the release workflow's publication gate.
Primary routes also record heading, Back, header, and content rectangles. Checks enforce the shared typography, icon-only Back sizing/placement, route-title semantics, and cross-route alignment. Overlay parts record their actual computed padding against the shared rem-based inset contract, including intentionally unpadded compound/task containers. The runner's final status includes structural verification; an unexpected viewport or invalid recorded layout cannot remain a passing run merely because its clicks succeeded.
Final verification also examines the complete recorded HTTP-failure ledger after the app closes. A recorded rate limit (429) or server error (5xx) rejects the run even if every scenario had already passed. Seeded-renderer checks and teardown have their own active-state labels. Missing or malformed HTTP evidence fails closed; an optional chat session returning 404 is not treated as a server failure. Shutdown errors must be fixed, not discarded to obtain a passing report.
After the normal matrix, the disposable renderer receives six deliberately injected faults: blank shell space, a clipped modal, a shifted heading, a board-only rail control on Activity, wrong popout padding, and a visible New Task button with its handler removed. Each fault must be detected by the corresponding geometry or behavioral assertion, retains a native screenshot, and is removed by reloading before the next fault. These expected-failure probes are separate from the ordinary matrix and cannot waive an ordinary failed state. Missing fault probes fail verification.
Historical development checkpoints
The first complete development matrix reproduced Session menu Escape dismissal failure in both themes and both native window sizes. This is tracked separately in #1451; the runner must not waive it. Preview capture timing also exposed a harness defect: DOM content and geometry could pass while the native screenshot caught a transparent opening modal. Opacity measurement and paint synchronization address that defect, and the normal/minimum light-theme preview captures were visually rechecked.
The diagnostic run completed at 2026-09-04T06:38:33.197Z with 144 recorded states and four interaction failures, all Session menu Escape checks. The stricter verifier additionally rejected the normal light Workflows capture because the native content size changed to 1710×1073 instead of 1700×1000. The cause of that window-size change is not established. Capture/completion mode assertions now also fail the scenario immediately when this happens; the runner's earlier 140-pass count is not an accepted matrix. Final native verification must rerun the latest committed runner.
The first signed 6.1.7 capture run then proved the 1700×1000 target itself was not portable: the hosted macOS window manager returned 1700×760 for every normal resize, so that single failed precondition cascaded across the normal matrix and all seeded probes. The current contract centralizes runner-safe content sizes for native verification and documentation capture. This is a harness correction, not accepted evidence; a new commit-bound signed candidate must pass the complete matrix.
The next signed capture run, 33917249628, passed 142 of 144 ordinary states and all seeded probes. Only the light-normal and dark-normal relaunch entries failed: after quitting a minimum-width matrix process, the hosted window manager restored 1180×760 instead of the following entry's 1700×760 target. Relaunch exists to prove persisted renderer state and clean process recovery, not a runner-specific window-restoration policy. The runner now reapplies the declared matrix size immediately after launch before checking the persisted theme, task, geometry, and HTTP ledger. This remains diagnostic evidence; final acceptance requires another exact-commit signed candidate.
Signed capture run 33919618642 passed the complete 144-state matrix and all six seeded probes from clean commit 6e3c6d3a549cc7f9b9e0d519ead2f865c2ded27f. Documentation capture then failed before writing its first asset because its native capture helper still asserted and recorded the obsolete 1000px height even though the shared launcher target was 760px. The capture and verifier now consume the same centralized desktop viewport, with regression coverage for stale desktop dimensions. The run proves the native matrix, but it did not retain a promotable candidate or publishable media; final acceptance requires another exact-commit signed capture.
The earliest diagnostic runs used an unsigned 6.1.6 package built from afb447156fd77d24ee4616bdd7f8e556371c4925, with whole-bundle SHA-256 52dad82a58e5352c77577d9547323f1ff1cece318e94a22ea415bd93104bc183. The harness checkout was dirty. They were not clean-commit release acceptance, installed-app verification, or refreshed documentation media, and they have not been relabeled as such.
Final v6.1.7 acceptance
The final run closed the diagnostic gaps without weakening the contract:
- 144 of 144 ordinary states passed across both themes, both declared native window sizes, all required routes, task surfaces, Workbench modes, and relaunch checks.
- All six seeded defects were detected: blank shell space, clipped modal, shifted heading, board-only rail leakage, wrong popout padding, and a dead New Task handler.
- The packaged app reported v6.1.7 and the exact build commit. Its whole-bundle SHA-256 was
a23df6443940aff4d9b5013b97ab753b986a63f3bb15dc0d3a8c6aaace866f94on macOS 15.7.9 arm64. - The HTTP ledger contained no 429 or 5xx responses. Optional task-chat 404 responses were retained and accepted under the documented boundary.
- Signature, notarization, Gatekeeper assessment, and stapling checks passed before publication.
- The run retained the signed release candidate, native evidence, and documentation media. The 14 maintained assets were published from those exact captures in commit
6befd39cbc1264b18fa272d25bc64642f2b60383. - Promotion run
33928175193published v6.1.7, and the post-publication release validator passed against the live tag, release body, and assets.
The packaged-candidate gate is complete. Browser fixtures remain diagnostic.
After explicit operator approval of macOS's first-launch confirmation, the
Homebrew-installed /Applications/Veritas Kanban.app reported version 6.1.7,
owned the port 3001 listener through its bundled server, and returned
{"ok":true,"service":"veritas-kanban","version":"6.1.7"} from
/api/health. Deep strict signature verification, Gatekeeper assessment as a
notarized Developer ID application, and staple validation all passed.
The installed app was then exercised at the 1180×760 minimum window size in dark and light appearance. Board Chat, Squad Chat, the compact Squad actions popover, sender selector, and composers remained contained and readable. Opening either auxiliary rail closed Workbench; reopening either chat channel collapsed both rails. A non-sent Squad Chat draft survived channel switching and a 1500×900-to-1180×760 resize, while the compact transition closed Workbench without sending or clearing the draft. Entering fullscreen with Squad Chat open and returning to the saved 1180×760 window also closed Workbench and restored the compact rail state. A quit and relaunch at the saved minimum size reopened with both rails and Workbench collapsed. No bottom dock, blank canvas, clipped controls, or dead chat action was present. This closes the installed-app boundary for #1383 and #1389 without treating it as a rerun of the separate 144-state packaged-candidate matrix.