-
Notifications
You must be signed in to change notification settings - Fork 0
DESKTOP_VERIFICATION
The Desktop gate is the always-reported aggregate for changes that can affect
the bounded 0.5.0 Electron shell. It binds source, security, native sidecar, and
unpublished packaged-runtime evidence to the exact pull-request head. The gate
does not publish a release and must not be interpreted as installer, signing,
notarization, or end-user platform approval.
The native package job assembles and exercises one unpacked-native
application on each hosted runner below. The assembled application exists only
inside that job; CI uploads its JSON evidence and SBOM, not the application
tree.
| Hosted runner | Bundled sidecar | Intended target | Executed OS | Architecture | releaseSupported |
|---|---|---|---|---|---|
macos-15 |
darwin-arm64 |
macOS 15 | macOS 15 | arm64 | true |
macos-15-intel |
darwin-x64 |
macOS 15 | macOS 15 | x64 | true |
macos-26 |
darwin-arm64 |
macOS 26 | macOS 26 | arm64 | true |
macos-26-intel |
darwin-x64 |
macOS 26 | macOS 26 | x64 | true |
windows-2025 |
win32-x64 |
Windows 11 | Windows Server 2025 | x64 | false |
ubuntu-24.04 |
linux-x64 |
Ubuntu 24.04 | Ubuntu 24.04 | x64 | true |
The hosted windows-2025 runner is Windows Server 2025, not Windows 11. Its
row proves native Windows packaging and runtime behavior on the hosted server
environment, so it deliberately records releaseSupported: false. A real
Windows 11 execution remains an external release blocker.
Every row verifies the checked-out full commit SHA before building. The
aggregate rejects missing, duplicate, wrong-target, or wrong-head evidence.
Workflow-level path filters are not used: the in-workflow classifier may skip
the expensive jobs, but Desktop gate still reports a result.
The source and security job uses locked Python and pnpm dependencies and
records successful API-contract, authentication-before-parsing,
domain-route-absence, IPC-sender-validation, provider=none network-free,
redaction, production-build inspection, dependency-audit, secret-scan, and
SBOM gates. The production build scanner also rejects fixture bridge code and
test-hook machinery so packaged-runtime testing cannot weaken the production
main process.
Each native row then:
- builds and smoke-tests the target-matched sidecar;
- builds the production Electron assets and assembles an unpublished unpacked native application;
- verifies that the packaged resources contain the expected sidecar;
- launches the actual packaged executable with isolated fictional app data;
- verifies first-run welcome, Home and healthy Diagnostics, Settings persistence across a new process, corrupt-preference fail-closed behavior, clean quit and relaunch, custom-protocol and production CSP behavior, sandbox/context-isolation/window controls, the exact six-method bridge, renderer zero-egress canaries, keyboard/focus/landmark/label behavior, narrow and 200%-zoom layouts, contrast, and reduced motion;
- records cold-launch, warm-launch, readiness, process-RSS, and renderer outbound-request measurements; and
- exercises sidecar absence/recovery, crash-loop exhaustion/retry/quit, and app/sidecar build mismatch against verification-only package copies; and
- inspects the packaged Electron fuses and ASAR boundary.
The packaged Playwright pass attaches through an ephemeral CDP endpoint bound
to 127.0.0.1 solely so the harness can inspect and close the unpublished
application. It does not pass credentials or expose the endpoint beyond the
runner. A separate launch uses a fresh profile and no remote-debugging or
Node-inspector argument; the test verifies that neither the normal process tree
nor captured output exposes a debugging surface. On macOS only, both automation
launches pass Chromium's --use-mock-keychain because the ad hoc, unpackaged
runner build cannot reliably use a login keychain. That automation-only switch
is not part of a shipped launch path.
Electron handles the native zoom shortcuts in the browser process, where unit tests cover every supported level from 50% through 200%, reset, clamping, and unrelated-key behavior. CDP-injected keyboard events do not traverse that browser-process hook, so the packaged harness verifies layout at an equivalent 200% renderer scale and states that distinction explicitly instead of claiming a native shortcut observation it did not make.
On macOS, the verification-only builder overlay applies an ad hoc signature
after electron-builder mutates the Electron executable and fuses. That
signature only permits the unpublished application to launch on the hosted
runner; it is not release identity, installer-signing, or notarization
evidence. The aggregate therefore continues to record
signingVerified: false and leaves those claims to #231.
The packaged renderer canary observes attempted HTTP, HTTPS, WebSocket, window,
and service-worker activity and requires zero outbound requests. The separate
API security tests prove the provider=none sidecar policy. Together these are
bounded automated controls; they are not a claim of OS-level packet capture.
Each native row now makes disposable copies of the assembled package for three black-box fault scenarios. It temporarily withholds and restores the real packaged sidecar to prove degraded Diagnostics and successful manual retry; kills the real sidecar child repeatedly to prove automatic restart, bounded exhaustion, manual recovery, and child cleanup on quit; and substitutes a separately built target-native verification sidecar whose reported build cannot match the application build. macOS copies are ad hoc re-signed only after the verification mutation. None of these disposable copies is a release artifact.
The harness changes only those verification package copies and observes the same packaged UI and process boundaries used by a normal launch. Production code has no fault environment variable, test IPC, renderer hook, or alternate sidecar registry. Renderer-visible diagnostics remain sanitized: the scenarios assert coded states and retry counters without exposing ports, tokens, paths, process IDs, or stderr.
The performance policy is versioned as desktop-unpacked-v1 and is a hard gate,
not an informational benchmark:
| Native row | Cold launch | Warm launch | Ready | Process-tree RSS | Renderer egress |
|---|---|---|---|---|---|
| macOS and Linux | 30 s | 20 s | 45 s | 1.5 GiB | 0 |
| Windows | 45 s | 30 s | 60 s | 2 GiB | 0 |
Every metric stores the observed value, ceiling, unit, and pass result. Missing, non-finite, negative, or over-ceiling measurements fail the row. These broad CI ceilings are regression guards for hosted runners, not end-user performance targets.
The workflow uploads only evidence for the checked commit:
- one
targetJSON document for each of the six rows; - one
securityJSON document plus the CycloneDX SBOM; and - one
aggregateJSON document created only after all prerequisites succeed.
Target and security claims are derived from write-once verification receipts, not workflow-supplied success booleans. Each receipt records the full Git SHA before and after its command, the exact executable and arguments, exit status, stdout and stderr digests, the named gates that command can establish, and digests for any consumed artifact such as the SBOM, metrics, or fuse inspection. Evidence generation rejects a missing, duplicate, failed, wrong-head, or digest-mismatched receipt.
The three packaged-sidecar fault scenarios have independent receipt gates and
write exact-schema observation documents. Target evidence binds each document
by byte count and SHA-256 to its receipt; the mismatch receipt additionally
binds the target-native wrong-build executable. Aggregation revalidates those
documents and bindings instead of accepting a workflow-provided success flag.
The crash-loop scenario owns the graceful application-quit assertion and proves
that the active real sidecar exits with it. The wrong-build scenario instead
proves incompatible_build, consumes the one manual retry without weakening
that result, and requires bounded termination of its verification process.
A target document records the runner, sidecar target, intended and actual OS,
architecture, packageBoundary: "unpacked-native",
artifactKind: "unpublished-unpacked-native", signingVerified: false,
releaseSupported, packaged-runtime controls, and the bounded performance
measurements. A security document records explicit boolean gate results and
the SBOM byte count and SHA-256 digest. The aggregate requires exactly six
targets and one security document from the same full commit SHA.
Because release blockers remain, a successful aggregate uses
status: "passed-with-release-blockers" and releaseSupported: false. Its
blocker object identifies both signed-installer evidence and real Windows 11
execution and points to issue #231.
Evidence files are written once. A pre-existing output, malformed schema, failed boolean, invalid metric, nonzero renderer egress count, unexpected target, or SHA mismatch fails closed.
ASAR evidence is also platform-scoped. All rows require app.asar and verify
the eight expected Electron fuse states. macOS additionally compares the
ElectronAsarIntegrity SHA-256 in Info.plist with the packaged ASAR header.
Windows and Linux record that macOS Info.plist metadata check as
not-applicable; they do not mislabel that platform-specific metadata as a
cross-platform integrity observation.
Issue #230 establishes cross-platform verification for the unpublished package boundary. It does not create or approve a signed installer. Supported release claims still require target-matched, manually installed signed installers, macOS notarization where applicable, provenance, and execution on the actual supported operating systems under the release runbook.
Signed installer and actual Windows 11 evidence are external release blockers tracked by #231. This verification work also does not close the broader adversarial assurance issue #131. CI success must not be used to synthesize either missing proof.
Run the source-level checks with the canonical repository gates:
make test
make lint
make typecheck
make securityThe native packaged-runtime check additionally requires the current platform's target sidecar and unpacked Electron application. CI is the authoritative six-row execution because one local machine cannot honestly reproduce all hosted operating-system and architecture rows.
- Documentation site
- GitHub Wiki
- Home
- CLI reference
- Interactive console guide
- Architecture ownership and dependency contracts
- Bounded file ingress
- Versioning and compatibility
- Continuous integration
- Release runbook
- Encrypted backup and recovery
- First-run storage diagnostics
- GEDCOM compatibility and release checks
- Built-in module authoring
- Privacy and consent
- Provider guide
- Local LLM benchmarks
- Local-first retrieval evaluation
- Wiki synchronization
- Wiki operations and recovery
- Security response checklist
- Desktop shell
- Desktop verification
- Electron and FastAPI desktop ADR
- Packaged desktop sidecar
- Data-flow threat model and control matrix