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.
Clipboard mode writes the clipboard to a temp .txt file and sends all files through systemd-run --user --quiet --collect localsend.
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
Clipboard mode writes the clipboard to a temp .txt file and sends all files through systemd-run --user --quiet --collect localsend. System cleanup owns the temp file so LocalSend can read it.
when share_clipboard the share_script shall eventually satisfy clipboard_saved_to_temp & send_detached
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-share lines 15-19 and 42-46.
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
- Kimi Zero Warnings · AI agent
- Reviewed
- Sep 27, 2026, 21:25 UTC
History
- Created
- Sep 22, 2026, 13:34 UTC · Kimi Dogfood · AI agent
- Modified
- Sep 27, 2026, 21:25 UTC · Kimi Zero Warnings · AI agent
Hazard review
- scenarioreviewederror_handlingboundary
Worst case: the clipboard - which routinely holds passwords and tokens - lands in a /tmp file that outlives the script by design, or a failed clipboard read ships an empty file to the LAN picker. mktemp creates the file 0600, so the retention window is same-user-readable only and system cleanup owns reaping - a documented, graded-low tradeoff. boundary: wl-paste failure produces an empty temp file that still flows into the send (the script does not gate the send on a non-empty clipboard) - the empty-share edge; a chooser status above 1 is distinguished from a user cancel through command substitution so a chooser that never opened cannot pass as an empty selection. error_handling is suppressed as a pointer to the standing obligation_suppressions entry: the chooser-status-capturing command substitution is exactly why set -e/pipefail is wrong here, and the remaining pipeline steps fail soft with no partial state; the critical-notification path for chooser failure is witnessed under JREH.
- propertyreviewedtotality
Every argv shape resolves to a defined ending - usage error, clipboard share, chooser-cancelled no-op, chooser-failure notification with exit 1, or a detached send of the picked files; no mode string or file-list shape leaves the script mid-state with the temp file half-written or the send half-configured.
- structuralnot applicable
Quoted redirections and an argv array passed through to systemd-run; no parsing of file contents, no arithmetic, no encoding transform - the clipboard bytes are written verbatim, which is the contract (binary_data_preserved would only bind if a transform existed).
- domainreviewed
The LAN send is the feature itself, delegated wholesale to localsend's own protocol and GUI session: the launcher's contract ends at a successful systemd-run handoff, so send-outcome errors belong to the detached session that owns the transfer, and transport security (localsend's encrypted device-to-device protocol) is that tool's posture, not this script's. The deliberate detachment means the launcher cannot propagate a failed unit - accepted and documented here as the cost of send_detached rather than carried as an errors_propagated 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.
- Kimi Zero Warnings · AI agentApprovedSpec conformanceSep 27, 2026 · 5 days agoREVIEW-41
Read omarchy-menu-share. Clipboard mode writes the clipboard to a temp .txt (left for system cleanup so LocalSend can still read it) and every send goes through systemd-run --user --quiet --collect localsend, i.e. detached from the menu process. Both response conjuncts map to these two code paths; the usage guard on zero args is the only other branch and is out of scope of the condition. Formula conforms to the code.
Cited code (1)
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
1 obligation · 1 suppressed
Browse the catalogueBehavior when operations fail or dependencies are unavailable.
No evidence required — this obligation is excused for this requirement.
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 share_clipboard the share_script shall eventually satisfy clipboard_saved_to_temp & send_detached
Witnesses· 3 scenarios total
- menu-share-test.sh:1exercises 3 condition scenarios
MC/DC truth table· 5 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| # | clipboard_saved_to_temp | send_detached | share_clipboard | Result | Proves | Covering test |
|---|---|---|---|---|---|---|
| 1 | F | F | F | T | share_clipboard | |
| 2 | F | F | T | F | share_clipboard | Exempted · defensive — same unconditional send: clipboard mode always reaches the systemd-run line, so send_detached=F is structural (reviewed: REVIEW-M4) |
| 3 | F | T | T | F | clipboard_saved_to_temp | |
| 4 | T | F | T | F | send_detached | Exempted · defensive — the systemd-run send is an unconditional sequence point at the end of the script; a clipboard share that never reaches it needs a broken build (reviewed: REVIEW-M4) |
| 5 | T | T | T | T | clipboard_saved_to_temp |
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.
No findings affect this requirement
Nothing was flagged against this requirement in the pinned run.
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-sharebin/omarchy-menu-share
Tests to re-run (1)
- menu-share-test.shtest/shell.d/menu-share-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.