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 generated guard script holds exactly one if-line per declared when, checked, or disabled, each echoing <id>:<w|c|d>:<0|1>; items with no guard get none.
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
The generated guard script holds exactly one if-line per declared when, checked, or disabled, each echoing <id>:<w|c|d>:<0|1>; items with no guard get none.
when guards_declared the guard_pipeline shall eventually satisfy one_line_per_guard
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
MenuModel.js guardScript lines 478-491 and guardLine lines 469-472.
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 30, 2026, 07:35 UTC · Leonid Bugaev
Hazard review
- scenarioreviewedboundaryedge_casemalformed_input
Worst case: a malformed predicate (unbalanced quote, stray newline) breaks the generated script wholesale, so every guard fails to answer and the view falls open (JRW1 renders unguarded rows) - honest degradation, and the failure is visible in the guard script exit rather than a wrong 0/1 verdict. boundary: exactly one if-line per declared when/checked/disabled is the whole contract, with the zero case (items with no guard emit no lines) as the tested half. edge_case: a predicate that blocks stalls the refresh for as long as it runs - accepted design per the documented tradeoff that the menu opens on the last evaluation results; GUARD_READER substitution is slot-based so reader output never re-enters shell parsing.
- propertyreviewedtotality
The generator is a total function of the item map: every declared guard yields exactly one <id>:<w|c|d> if-line and every undeclared item yields none, so the emitted script is a faithful index of declared guards with no duplication or omission across the id space.
- structuralnot applicable
The string concatenation is the contract, not a hazard: the artifact is generated bash by design, ids come from config keys of the same authority as the expressions, and the JS side never evals the result.
- domainnot applicable
Guard predicates are user-authored shell from user-owned menu config executing with the user own authority on every open - the same authority row actions already exercise on click, so open-time evaluation adds no new trust boundary; third-party plugin menus gain only earlier timing of authority they already hold, and no network or privilege surface exists in the generator itself.
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-56
Read guardLine. Each declared when/checked/disabled expression produces exactly one if-line echoing <id>:<w|c|d>:<0|1> through substituteGuardReaders; items with no guard contribute no line because guardLine is only appended per declared guard. The guards_declared condition and one_line_per_guard response map directly onto this construction. Formula conforms to the code.
Cited code (1)
Open known issues
Findings currently open against this requirement — issues its verification surfaced that are not resolved yet. Each links to the full finding.
- LowOpen
Guard batches carry no generation token: a batch computed for the previous items publishes onto the new set
KI-MENU-GUARD-BATCH-STALE-APPLY
- LowOpen
Guard ids interpolated unquoted into the shared bash batch: metacharacter ids break the protocol or execute commands
KI-MENU-GUARD-ID-INJECTION-BATCH-ABORT
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
The tests that discharge each obligation aren't available for a historical run
The evidence matrix behind each obligation comes from the live audit index, which can't be rebuilt for a past commit. Nothing here means unknown — not that the requirement has no obligations.
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 guards_declared the guard_pipeline shall eventually satisfy one_line_per_guard
Witnesses· 2 scenarios total
- preludeexercises 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| # | guards_declared | one_line_per_guard | Result | Proves | Covering test |
|---|---|---|---|---|---|
| 1 | F | F | T | guards_declared | |
| 2 | T | F | F | guards_declared | — |
| 3 | T | T | T | one_line_per_guard |
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.
2 open · 0 resolved
- LowOpen
Guard batches carry no generation token: a batch computed for the previous items publishes onto the new set
KI-MENU-GUARD-BATCH-STALE-APPLY
- LowOpen
Guard ids interpolated unquoted into the shared bash batch: metacharacter ids break the protocol or execute commands
KI-MENU-GUARD-ID-INJECTION-BATCH-ABORT
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)
- MenuModel.jsshell/plugins/menu/MenuModel.js
Tests to re-run (1)
- menu-guards-test.shtest/shell.d/menu-guards-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.