Skip to content

E2E evidence collector for the volunteer install checklist - #464

Merged
malik-na merged 6 commits into
omacom:quattrofrom
joshuaswarren:e2e-collector
Sep 22, 2026
Merged

malik-na merged 6 commits into
omacom:quattrofrom
joshuaswarren:e2e-collector

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

E2E evidence collector for the volunteer install checklist

Companion to Naeem's omarchy-mac-e2e-volunteer-checklist.md (already in
docs/). The checklist names what a volunteer must observe; this adds a
collector that gathers everything a machine can observe, redacts identity
strings, and packs the result into a reviewable archive — so E2E reports
arrive complete and consistent instead of hand-assembled.

What volunteers get

One command, no clone. Until this PR merges, fetch the wrapper from this branch — the quattro copy does not exist yet:

curl -fsSL https://raw.githubusercontent.com/joshuaswarren/omarchy-mac/e2e-collector/bin/omarchy-mac-e2e-collect -o e2e-collect
bash e2e-collect --interview --out e2e-<testid>.tar.gz

The wrapper fetches its scripts from quattro, falls back to this branch when they are not there yet, and prints which tree served them. After merge the same two commands work unchanged with omacom/omarchy-mac/quattro in the URL.

  • --interview walks all 34 human-judgment checkboxes from the checklist
    (reboot checkpoints A/B/C, desktop, persistence/security, overall
    result) recording PASS/FAIL/SKIP/NA with notes; answers persist in
    ./e2e-answers.json across checkpoint re-runs.
  • Machine evidence is gathered automatically: fresh-Asahi baseline
    commands, derived storage facts (LUKS present, /boot separate,
    freshness marker), installer log tails, omarchy-mac-setup --status,
    journal boot list, failed system/user units, install state (version,
    pinned packages, omarchy-migrate --pending with its inverted exit
    semantics recorded rather than interpreted, omarchy-done checks),
    security-cleanup probes, plus the mlx-omarchy quick capability report
    (device, Vulkan/Mesa, ANE devicetree, installed distributions).
  • Output: a deterministic, redacted archive (usernames, hostnames, home
    paths, IPs, MACs, serials, credential-shaped strings — per-kind counts
    in the manifest) and e2e-<testid>.submission.md, a paste-ready cover
    with the checklist report template pre-filled where the machine could
    answer.

Nothing uploads by default. --submit opts into the community-data
worker protocol (kind omarchy-mac-e2e), which the live worker already
accepts — sample record:
https://mlx-omarchy-community-data.joshua-s-warren.workers.dev/v1/results/ef89a1c651ce3cb599be62dc7baa49f8bacb5e76e9e3a56d41b0fddd60627ff3

How it is built

scripts/collect_e2e.py plus four files vendored unchanged from
joshuaswarren/mlx-omarchy (collect_common, collect_submit,
collect_quick, collect_macos; one lazy bench_matrix import so the
set is self-contained). Those collectors are field-proven: checksummed
artifacts, consent-gated uploads, deterministic archives, PII redaction.
Every external command is bounded; missing tools and absent logs are
recorded as data, never crashes; partial runs keep completed sections.

The worker-side change (kind omarchy-mac-e2e + six nullable summary
fields, table constraint widened, regression smoke scenario, dashboard
Kind column) is merged in joshuaswarren/mlx-omarchy@main and deployed.

Verification

  • Worker unit tests 67/67 (new e2e schema fixture + kind checks); live
    worker deployed, check_schema_identity.py green.
  • Collector exercised end to end on a non-Apple x86_64 host: all sections
    record (unavailability is data), redaction counts present, archive +
    submission built, live submit round-tripped through the worker.
  • The bootstrap (bin/omarchy-mac-e2e-collect) tested against this
    branch's raw URLs; it defaults to omacom/omarchy-mac@quattro, so it
    starts working for volunteers the moment this merges.

Full design and section-to-checklist mapping:
docs/e2e-collector.md

@malik-na malik-na added the lvl 0 Core userspace: display, audio, video, graphics, memory, storage, battery, keyboard, network, BT. label Sep 18, 2026
@oliverlukschander

Copy link
Copy Markdown

Ran this collector end to end on real Apple Silicon as part of a full E2E
install — tracking issue #469, evidence archive submitted to the live worker:

https://mlx-omarchy-community-data.joshua-s-warren.workers.dev/v1/results/f5de4d281989669ec4a9abb71ef47f804381c1aeed5a8d137f54c157dcb2894c

Machine: Mac14,10 / M2 Pro (16-inch, 2023), 32 GB, macOS 26.5.1 → fresh
Asahi Alarm Minimal BTRFS → --no-encrypt guided install, Omarchy 4.0.3rc4-1.
Since the PR notes the collector had so far only run on a non-Apple x86_64
host, this is its first on-metal aarch64 exercise.

What worked

Cleanly, and worth saying explicitly:

  • sections_unavailable: none — every section recorded on a live Asahi system.
  • Redaction fired throughout: home_path 46, hostname 122, ipv4 44, mac 20, username 9, uuid 9, counts present in the manifest as documented.
  • Missing files are recorded as data, not crashes — present: False with the
    exact FileNotFoundError, which is precisely the behaviour that let me
    distinguish a never-written log from a stage that had not run yet.
  • omarchy-migrate --pending exit semantics recorded rather than interpreted,
    as advertised.
  • Archive + submission built, live submit round-tripped, worker served the
    record.

Three defects, one of which I think is significant.

1. Stage roll-up misreports a clean --no-encrypt run

Interview answers: 22 PASS, 11 NA, 1 SKIP, 0 FAIL. Generated report:

Boot-layout stage: PARTIAL        <- all 4 items NA (stage does not exist on --no-encrypt)
Encryption stage: PARTIAL         <- all 6 items NA
Omarchy install stage: PARTIAL    <- 5 PASS + 1 NA
First login: SKIP                 <- 10 PASS + 1 SKIP
Hardware smoke test: SKIP         <- same group, same cause

Nothing failed, yet four of five stages read PARTIAL or SKIP.
stage_verdict() in scripts/collect_e2e.py:

if "FAIL" in have:                 return "FAIL"
if "SKIP" in have:                 return "SKIP"
if all(a == "PASS" for a in have): return "PASS"
return "PARTIAL"
  • NA is never handled. A group answered entirely NA — correct for
    reboot-a/reboot-b on an unencrypted install, where those stages genuinely
    do not run — fails all(a == "PASS") and falls through to PARTIAL.
    "PARTIAL" reads as partly worked; the truth is not applicable.
  • One SKIP overrides every PASS. desktop scored 10 PASS + 1 SKIP
    (headphones/mic untested) and rendered as SKIP, which reads as
    first login was never tested.

This matters because §9's PASS criteria require every stage verified and no
required check skipped — so this report invites a reviewer to reject a clean
run. It is also specific to the checklist's coverage priority #2: on the
encrypted path those groups carry real PASS answers and the bug stays
invisible, so encrypted-only validation cannot catch it.

Suggested:

have = [a for a in have if a]
if not have:            return "UNRECORDED"
if "FAIL" in have:      return "FAIL"
effective = [a for a in have if a != "NA"]
if not effective:       return "NA"            # whole stage inapplicable
if "SKIP" in effective: return "PASS (skips)"  # or PARTIAL — but not SKIP
if all(a == "PASS" for a in effective): return "PASS"
return "PARTIAL"

At minimum: NA-only groups should not render PARTIAL, and a group
containing passes should not render SKIP.

2. "Vulkan: unavailable" when the probe tool is merely absent

From the submission cover — the first thing a reviewer reads:

Device: Apple MacBook Pro (16-inch, M2 Pro, 2023) (['apple,j416s','apple,t6020',...]);
Vulkan: unavailable / unavailable

Actual state:

/sys/class/drm/card1 -> driver: asahi
/sys/class/drm/card2 -> driver: apple-drm
pacman -Q -> mesa 1:26.2.3-1, vulkan-asahi 1:26.2.3-1
Hyprland running (pid 1055)

Root cause in mlx.json — vulkaninfo ships in vulkan-tools, not installed
by default:

"vulkaninfo": { "available": false, "error": "not-found", "exit_code": null }

The section then rolls that absence up as Vulkan: unavailable. On an Apple
Silicon GPU report that reads as a graphics failure, and would have invited a
false FAIL against §6's desktop-rendering item on a machine whose desktop
rendered correctly throughout. The underlying record already says
error: not-found — only the summary line loses the distinction. A
pacman -Q vulkan-asahi fallback would also do it.

Minor, same section: it probes dpkg-query for the mesa package on Arch
("error": "not-found"). Harmless, but worth gating on the detected package
manager.

3. install-logs tails a file that is never written

Not your bug — it is in bin/omarchy-mac-setup — but it lands in this
section, so flagging it here as well as on #469. $LOG appears exactly twice
in the 49404-byte script:

38:     LOG=/var/log/omarchy-mac-setup.log
1295:     mkdir -p "$(dirname "$LOG")"

Line 1295 only ensures /var/log exists. The variable is never a redirection
target, there is no exec >/tee/>> anywhere in the script, and log()
writes to stdout only. Confirmed at runtime by this collector:

/var/log/omarchy-mac-setup.log   present: False   FileNotFoundError
/var/log/omarchy-install.log     present: True    (28351 chars)
/var/log/pacman.log              present: True    (171465 chars)

Checklist §8 points a volunteer at that file when something goes wrong, and a
failure during the guided-setup phase is exactly when the other two do not
exist yet. Worth either teeing to $LOG, or pointing §8 at
journalctl -u omarchy-mac-setup.service.

Suggestion for the collector regardless: record why a log is absent where it
can be known, so "never written by design" is distinguishable from "install
did not reach that stage". The FileNotFoundError is already captured; a note
keyed to known-never-written paths would close the gap.

Testing friction (expected pre-merge)

bin/omarchy-mac-e2e-collect defaults to omacom/omarchy-mac@quattro, where
the collector does not exist yet, so every fetch 404s until this merges. Anyone
exercising the PR needs:

export OMARCHY_MAC_RAW_BASE=https://raw.githubusercontent.com/joshuaswarren/omarchy-mac/e2e-collector/scripts

Noting it only so other reviewers do not lose time to it — it resolves on merge
exactly as the description says.

Full observation set, including findings unrelated to this PR, is on #469.

collect_e2e.py gathers everything machine-observable from the E2E
checklist: fresh-Asahi baseline commands, storage facts (LUKS, separate
/boot, freshness marker), installer log tails and service state, journal
boot list and failed units, omarchy install state (version, pinned
packages, migrate --pending with its inverted exit semantics, omarchy-done
checks), security cleanup probes, the mlx-omarchy quick capability report
(vendored), optional pasted macOS-side output, and an --interview mode
that records PASS/FAIL/SKIP/NA plus notes for every human-judgment
checkbox. Output is the same deterministic redacted archive +
paste-ready submission.md used by the mlx-omarchy collectors; --submit
speaks the community-data protocol with kind omarchy-mac-e2e.

collect_common.py, collect_submit.py, collect_quick.py and
collect_macos.py are vendored unchanged from mlx-omarchy, except that
collect_macos imports bench_matrix lazily so the vendored set stays
self-contained.

Verified on a non-Apple host: all sections record unavailability as data;
archive builds with redaction summary; submission.md pre-fills the
checklist report template.
@joshuaswarren

Copy link
Copy Markdown
Collaborator Author

All three collector defects are fixed at 345c5937, which landed after your run. You exercised the pre-fix head.

  1. stage_verdict() now handles NA on its own. An all-NA group renders NA, not PARTIAL. A PASS + SKIP group renders PARTIAL, not SKIP. A test_stage_verdicts case pins the old misreport.

  2. The cover no longer prints a bare Vulkan: unavailable when vulkaninfo is absent. vulkan_summary() tells a missing probe from a missing driver. It falls back to pacman -Q vulkan-asahi. A test_vulkan_probe_missing_reads_honest case pins this. The dpkg-query probe is now gated on the package manager found on the machine.

  3. install-logs records an absence_notes map. The guided-setup log is marked as never written to file. That is distinct from a stage that never ran. The section also captures the omarchy-mac-setup.service journal beside the file tails.

One correction in your favor. Your receipt URL has a one-character typo. …ef4f80… should read …ef47f80…. The record serves fine at the fixed sha:

https://mlx-omarchy-community-data.joshua-s-warren.workers.dev/v1/results/f5de4d281989669ec4a9abb71ef47f804381c1aeed5a8d137f54c157dcb2894c

On testing friction: 6cb540bb makes the bootstrap fall back to the PR branch when quattro 404s. It prints which base served the files. Pre-merge reviewers no longer need the OMARCHY_MAC_RAW_BASE export. After merge the default wins and the fallback never fires.

The worker checks out clean today. Schema identity matches the deployed instance. The smoke suite passes 14/14 on a fresh local instance, with the e2e-kind publish path from migration 0002 covered.

@malik-na
malik-na merged commit deb0cf5 into omacom:quattro Sep 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lvl 0 Core userspace: display, audio, video, graphics, memory, storage, battery, keyboard, network, BT.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants