Proof Portal
Omarchy
ProbeLabsviewing a historical runA proof layer — requirements, tests and verified fixes — for two of Omarchy's subsystems: the application menu (launcher scripts, QML model, JSONC config, search and selection) and the lock screen (lock scripts, QML, PAM authentication). Scope is deliberately limited to those components of omacom/omarchy; the rest of the distribution is not covered.
The pipeline detects video paths by extension and sends each media file to a format-appropriate converter.
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
The pipeline detects video paths by extension and sends each media file to a format-appropriate converter. Videos go to ffmpegthumbnailer under a timeout, and still images go to single-threaded vipsthumbnail. A content-hash lock serializes the generators per file. The generator reaps an aged legacy directory lock and leaves a fresh one to its owner. The finished thumbnail lands at the content-hash cache path, and its row serves it. An eager open queues every missing thumbnail and converts the queue before it answers. Still images fill every core, and videos get one lane per four cores. A lazy open uses --lazy-thumbnails without --cache-only. It answers at once with each still as its own stand-in and adds the still jobs to a shared queue under a queue lock. One background pool per rows cache owns a pool lock and drains that queue in batches until it is empty. The pool runs one converter per two cores, at least one and at most two, at lowered CPU and I/O priority. A lazy open that finds the pool busy leaves its jobs in the queue for that pool. Videos in a lazy open still take the eager video lanes.
when thumbnail_missing the image_selector shall eventually satisfy thumbnail_generated
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
bin/omarchy-menu-images is_video_path, generate_thumbnail, thumbnail_for, and drain_pending_thumbnails carry the thumbnail pipeline between the directory scan and the row cache. Authored with SW-REQ-260929-REJT to resolve the family_under_modeled finding on the shared target.
Verification & provenance
How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).
Review
- Status
- in_review
- Reviewer
- Opencode · AI agent
- Reviewed
- Sep 30, 2026, 00:40 UTC
History
- Created
- Sep 30, 2026, 00:16 UTC · Opencode · AI agent
- Modified
- Oct 4, 2026, 20:35 UTC · Claude Code · AI agent
Hazard review
- scenarioreviewedmalformed_inputboundaryedge_caseconcurrency_scale
Worst case: one still that stalls vips holds the eager drain, so the picker never opens. In a lazy open a stalled still holds the shared pool, so stills queued later get no thumbnail while the stall lasts (KI-MENU-IMAGES-VIPS-NO-TIMEOUT). malformed_input: a vanished file or unparsable image fails its stat/converter guard and is skipped or queued without a row (thumbnail_for stat guard, generator failure arms); hashes are md5 of path+size+mtime, so hostile bytes never steer control flow. boundary: the legacy directory-lock reap fires only past 120s and only when the path is still a directory, and a fresh legacy lock makes the exec redirect fail so the generator bails rather than clobbering a live owner. edge_case: timeout(124) and SIGKILL(137) converter exits deliberately write no rejection marker so the next open retries, while any other non-zero exit records one - the asymmetry is the documented retry policy. Catalog 1.11.0 re-review: input_domain not applicable, media files are handed to converters by extension; their contents are not parsed here. concurrency_scale applied: one pool per rows cache bounds lazy conversion to two converters at lowered priority, and repeated refreshes join its queue instead of starting more converters. A refresh that loses the pool lock leaves its jobs to the owner, which drains until the queue is empty. Eager, video and lazy generation can still overlap, and they serialize per file on the content-hash lock.
- propertyreviewedidempotency
idempotency: regenerating a thumbnail for an unchanged file converges on the same content-hash path; a completed thumbnail short-circuits the generator, and a mid-write crash leaves only the pid-suffixed temp that the next lock holder sweeps (rm of thumbnail.*.jpg under the lock), so retries repair rather than accumulate. determinism: fan-out order across nproc lanes is unspecified by the req (rows are pruned against existence, not generation order), so lane scheduling is not an invariant this contract carries. atomicity of the cache publish (write-temp-rename under the rows lock) is owned by the sibling cache-discipline reqs 43HQ/MH9B and already reviewed there.
- structuralnot applicable
bash plus external converters: no manual memory, pointer arithmetic, or format strings; the only encoding surface (base64 row transit to the shell picker) belongs to the open-flow siblings 43HQ/MH9B, not to the generation contract this req carries. The nil/empty edge (stat guard returns empty and the caller skips) is recorded under scenario.
- domainreviewed
external_call_timeout_bounded evaluated and DEFERRED (see obligation_deferrals): the still lane vipsthumbnail call has no deadline and a stalled conversion wedges its lane - in an eager open the synchronous drain then blocks the picker open, and in a lazy open it holds the shared pool so stills queued later wait behind it. Filed as KI-MENU-IMAGES-VIPS-NO-TIMEOUT; this is the batch D headline hazard. The remaining external surfaces are bounded: ffmpegthumbnailer under timeout -k 5 10, the per-file and rows-cache flock waits at 30s, and the unbounded queue-lock waits guard only an append, an emptiness check and an unlink. The done_file poll in the open flow is a poll-loop mechanism already deferred on SW-REQ-260922-MH9B under KI-MENU-SELECT-POLL-DEADLOCK (generation does not own that wait). cache_coherent: thumbnails key on path+size+mtime, so an edited image regenerates on next open and a repaired video starts clean - stale-cache serving needs an identical signature. The append-only index.tsv grows one ~100-byte row per new-or-changed file with no cap; accumulation_bounded is gated out of this project profile and the growth is desktop-churn bounded, recorded here as an explicitly evaluated residual rather than a new obligation.
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Review history
Human and AI-agent approvals of this requirement — the 'why was this approved' lineage, each with the reviewer's justification and the code it cites.
- Claude Code · AI agentApprovedSpec conformanceOct 4, 2026 · last weekREVIEW-261004-XRKV
Read bin/omarchy-menu-images at upstream 035ce29f (#14117, lazy thumbnail pool) with this branch's comment-only annotations. thumbnail_for sends a missing still to the lazy lane only with --lazy-thumbnails and without --cache-only (line 247). Unless --prepare-only is set, it appends the job to the pending file and answers with the image itself (251). Videos and every eager still go to the video or image pending file (258-262). drain_pending_thumbnails runs an eager still queue through xargs -P nproc and waits (325). For a lazy queue it sets one converter per two cores, at least one and at most two (281-285). It appends the jobs to the shared queue under the queue lock (290-294) and forks one background pool (295-323). The pool takes the pool lock with flock -n and leaves when another pool owns it (298). Under the queue lock it stops on an empty queue (305-310); otherwise it opens and unlinks the batch and runs xargs at nice 10 in the idle I/O class (315-320). Videos always drain in the foreground, one lane per four cores (330-335). Upstream left generate_thumbnail as it was. So thumbnail_generated still follows thumbnail_missing: a job queued while the pool is busy reaches the owner, which drains until the queue is empty. A stalled converter is the open exception, tracked as KI-MENU-IMAGES-VIPS-NO-TIMEOUT. The description now states the pool. Witnesses in test/shell.d/menu-images-test.sh: lazy rows and pool generation (173-186), the unopenable queue lock (336-349), and the upstream pool scenarios on 1, 2 and 8 cores (654-704). Code MC/DC of bin/omarchy-menu-images under this test is 100% of 40 decisions and 45 conditions, 25 ignored; BASH_ENV gives the xargs children the recorder (44-54).
Cited code (11) - Opencode · AI agentApprovedSpec conformanceSep 30, 2026 · 2 weeks agoREVIEW-260930-WJQK
Read the full pipeline in bin/omarchy-menu-images. is_video_path (157) matches case-insensitive video extensions. generate_thumbnail (165-222) reaps a legacy directory lock only after 120s, refuses a fresh one, serializes under flock -w 30, clears stale partial tmps, dispatches video to timeout -k 5 10 ffmpegthumbnailer and stills to single-threaded vipsthumbnail, and moves the finished file into the content-hash path. thumbnail_for (225-270) resolves the index hash, serves a cached thumbnail, or routes to the lazy lane (stills, in-process background) or the queued lanes. drain_pending_thumbnails (278-295) fans stills out over nproc and videos over nproc/4 with a floor of one. Formula: a missing thumbnail settles by generation at its content-hash path; every scanned file routes through thumbnail_for, so no generation path is missed.
Cited code (5)
Open known issues
Findings currently open against this requirement — issues its verification surfaced that are not resolved yet. Each links to the full finding.
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
1 obligation · 1 deferred
Browse the catalogueEvery cross-process call shall declare connect, read, and total deadlines; no external call is defaulted to "no timeout."
vipsthumbnail runs with no timeout wrapper: a still image that stalls vips (corrupt/pathological file, stalled mount) wedges its lane forever; an eager open waits for its whole fan-out before the picker opens, so one wedged still blocks the open, and in a lazy open it holds the shared pool so stills queued later get no thumbnail
the video lane is bounded (timeout -k 5 10 ffmpegthumbnailer) but the still lane is not; a stalled vips wedges its lane indefinitely and in preload mode blocks the picker open; filed as KI-MENU-IMAGES-VIPS-NO-TIMEOUT with the fix shape (timeout wrapper or async kill) — tracked debt, not an accepted gap
- nominalrequireddeferredWitnessing deferred — accepted while the tracking known issue stays open.
Code signals
Static-analysis signals from external scanners that bear on this requirement's obligations — the source location, the obligation each touches, and its closure status.
- Coveredbuiltinstrict_mode_missingObligation: Error handling · Scenario
Behavior when operations fail or dependencies are unavailable.
script runs pipelines without `set -e`/`set -o pipefail`
Formula evidence
The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).
Formula evidence
The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).
FRETish formula
when thumbnail_missing the image_selector shall eventually satisfy thumbnail_generated
Witnesses· 2 scenarios total
- menu-images-test.sh:1exercises 2 condition scenarios
MC/DC truth table· 3 rows
Each row assigns the formula's conditions (T/F) and shows the Result— the formula's value for that input row, not a test pass/fail. A row proves a condition when flipping only that condition flips the outcome. The test that covers each row is linked.
mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test| # | thumbnail_generated | thumbnail_missing | Result | Proves | Covering test |
|---|---|---|---|---|---|
| 1 | F | F | T | thumbnail_missing | |
| 2 | F | T | F | thumbnail_generated | Exempted · defensive — the directory scan is the pipeline entry and every scanned file routes through thumbnail_for; a missing thumbnail that generates nothing needs a broken branch (reviewed: REVIEW-260930-WJQK) |
| 3 | T | T | T | thumbnail_generated |
Its place
How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.
Loading graph…
Trace evidence
The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Files to re-check (1)
- omarchy-menu-imagesbin/omarchy-menu-images
Tests to re-run (1)
- menu-images-test.shtest/shell.d/menu-images-test.sh
What this rests on
Discussions
Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.