Repository navigation
Keep a TOD-provided libfprint when enabling fingerprint auth - #12833
Conversation
|
Verified: No production issue found in the package-selection scope at Real pacman transactions with synthetic packages produced this baseline/head comparison:
Thus the baseline symptom can be either driver removal or a dependency-check failure, depending on the installed vendor package. The nine package tests pass, and the updated suite rejects baseline code at the first TOD case. Optional test improvement: All nine also pass a diagnostic mutation replacing ownership lookup with a hardcoded Review informationTest scope: Production setup and package helper, isolated real pacman queries/transactions with synthetic packages, and stubbed hardware/enrollment calls. No real driver binaries, reader detection, successful enrollment or PAM authentication tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Initial Astra inspection, independent Fable 5.1 and separate Astra reviews, followed by coordinator verification of claims against targeted source and saved test evidence. |
94fed35 to
47eb312
Compare
Automated AI review
Verified: Follow-up to the earlier review, rechecked at
Verified (package selection): The ownership check is unchanged since the earlier review. The only production difference is the base branch's
Fresh, stock Verified (tests): All 10 package tests pass, and the head tests reject the parent's code at the first TOD case. The hardcoded Optional test improvement: The stub's Review informationTest scope: Current-head setup script, package helper and package test; isolated test runs and diagnostic mutations; isolated real pacman 7.1.0 transactions against a private package root with synthetic packages mirroring Arch, omarchy-pkgs and AUR provides/conflicts/depends; pacman and packaging source. Hardware detection, AI process: Fresh follow-up round: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments with a targeted cross-check of the optional test note, and an Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
47eb312 to
739e3d3
Compare
|
Reviewed at Reproduced with real pacman on a disposable Omarchy worker. I built a synthetic fork package that ships Tests on the worker: Review: read in full by Claude Opus 5.5. The ownership query handles an unowned or missing library: it falls back to installing Related: this fixes #11899 (a working Waiting on the second opinion, then on the maintainer. |
739e3d3 to
770194d
Compare
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryKeeps an existing vendor-provided fingerprint driver when enabling fingerprint authentication.
Reviews (5) · Last reviewed commit: "Merge quattro into fix-latitude-9440-fin..." · Reviewed by Greptile |
|
Re-reviewed at Reproduced again with real pacman on a disposable Omarchy worker. I installed a synthetic Pushed: Tests on the worker: Review: read in full by Claude Opus 5.5, then by Codex Medium as a second opinion over two rounds. Codex found no runtime defect and confirmed that the base transaction removes a conflicting fork. It found the missing enrollment check, which is the commit above. Its second round found nothing open at this head. Independence between the two reviews is not guaranteed. Related: this fixes #11899 and is linked to it. #12110 fixes the same bug with a provides-aware Waiting on the four failing shell tests on |
|
Confirmed on Omarchy 4.0.4-1 with |
|
Re-reviewed at Pushed: Tests on a disposable Omarchy worker: Review: Claude Opus 5.5 read the change. Codex Medium reviewed it as a second opinion and found no defect. It checked both callers and confirmed that a nonzero exit only changes what the presentation wrapper shows. It also agreed that the new test cannot pass without the fix. It found nothing else in #15324 that this pull request still needs, because the ownership check already covers both named TOD packages. Independence between the two reviews is not guaranteed. This is waiting on the failing shell tests on |
omarchy-setup-security-fingerprint installs libfprint-git with --ask 4, which accepts whatever replacement pacman proposes, not only the stock libfprint the flag was added for. Readers libfprint cannot drive at all run on a TOD stack instead -- a libfprint fork plus a vendor blob -- and that fork provides libfprint-2.so.2 itself, so the transaction removes the only driver the machine has and does it without asking. Check which package owns the library and skip libfprint-git unless it is stock libfprint or libfprint-git already. The TOD packages are named differently per vendor, so the owner of the library is the reliable signal rather than a list of package names. Detecting these readers is a separate concern and is covered by omacom#9524; this touches only the setup path. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The case was named for going straight to enrollment but only asserted that pacman was left alone, and run_setup accepts any failing exit, so a setup that bailed out before enrolling on a TOD stack still passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
34acadc to
9ca1d6a
Compare
|
Rebased onto current |
|
Re-reviewed at Reproduced again with real pacman on a disposable Omarchy worker. I built a synthetic Tests on the worker: Review: Claude Opus 5.5 read the change, and Codex Medium reviewed it as a second opinion. Codex found no defect and agreed the change is proportionate. It noted two layouts the ownership check does not cover, both outside this bug: an unowned Related: this fixes #11899 and is linked to it. #12110 and #15324 fix the same bug differently. Both models judged this one the fix to bring forward: its ownership check began in #11846, before either, and it covers forks under any package name, where #12110 looks for the names Waiting on the failing shell tests on |
quattro removed the per-result enroll and verify checks (omacom#16334) where this branch appended its TOD cases; keep the removal and the TOD cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Re-verified on a disposable Omarchy worker at Review: Claude Opus 5.5 did the merge and the review. Codex Medium and muse-wonder via pi (thinking high) each reviewed the merge as a second opinion. Both found no defect, said nothing from either side was lost in the resolution, and agreed that the TOD cases still test package selection with the new dispatch stubs in place. Independence from the first review is not guaranteed. Related: this still fixes #11899, and #12110 and #15324 are still competing fixes for it, as in the last comment. The description says this and #9524 need each other, so the maintainer should land this one before or together with #9524. Waiting on the failing shell tests on |
Additional isolated validation: Goodix 27c6:5395 package preservationI tested this PR's package-selection behavior in a separate checkout on the Dell XPS 15 7590 used for the additional evidence on #11899. These were isolated fixture tests, not a live run of the wizard against the laptop's authentication setup. Tested revisions:
The supplemental Goodix cases reused the upstream test's fixture setup/assertions and supplied It did not request Containment and limitsTests ran as UID 1000 in bubblewrap with a read-only host filesystem, private temporary/runtime/device trees, and isolated network/PID namespaces. Host D-Bus sockets and USB nodes were unavailable. Before/after protected PAM/library hashes and installed Goodix/fprintd package versions were unchanged. Temporary fixtures and the base worktree were removed; no tracked PR sources or permanent tests were edited. The real wizard and package-presence helper ran, but package operations, sudo, D-Bus, hardware detection, enrollment/verification, and lock setup were fixtures. This supports the nonstock-owner package-selection fix; it does not establish real pacman transactions, physical sensor operation, live PAM authentication, reboot/suspend behavior, or a full hardware test of this PR. This also does not verify the stale-daemon half of #11899: the inspected PR does not add a fprintd refresh boundary. That remains separate from the preservation behavior tested here. |
|
@sinannar Thanks for testing on the XPS 15 7590, and for spelling out what the fixture tests do and don't cover. The On the stale-daemon half of #11899, you're right that this PR doesn't address it. That's deliberate. This PR only changes which packages get installed. Restarting or refreshing |
Reopening #11846 narrowed, as the duplicate check invited. That PR bundled two fixes; the reader-detection half is dropped here in favour of #9524, which does the same detection with better tests. GitHub would not let me reopen #11846 itself after the branch was force-pushed, hence a new one.
What remains is the half #9524 does not cover — it touches only
bin/omarchy-hw-fingerprint.The bug
omarchy-setup-security-fingerprintinstallslibfprint-gitwith--ask 4. That flag was added so the conflict with stocklibfprintresolves inside a single transaction, but it accepts any replacement pacman proposes.Readers libfprint cannot drive at all run on a TOD stack instead — a libfprint fork plus a vendor blob — and that fork provides
libfprint-2.so.2itself. On those machines the transaction removes the only working driver, with no prompt.The fix
Ask which package owns the library, and skip
libfprint-gitunless it is stocklibfprintorlibfprint-gitalready:The owner is the reliable signal: TOD packages are named differently per vendor, so a hardcoded list of package names would go stale.
Why this matters alongside #9524
The two need each other. #9524 makes omarchy detect these readers, so it starts offering fingerprint setup to exactly the users whose driver that setup then removes. Merged on its own, it turns a reader omarchy ignored into one it breaks.
Testing
test/shell.d/fingerprint-package-test.shgains four cases: a TOD-provided libfprint is kept andlibfprint-gitskipped; a fully installed TOD machine touches pacman not at all; stock libfprint is still replaced as before; an existinglibfprint-gitstill completes the package set. Nine assertions pass.Verified on a Dell Latitude 9440 (Broadcom ControlVault 3), where
libfprint-todplus the vendor blob is the only stack that drives the reader.🤖 Generated with Claude Code
Fixes #11899