Proof Portal

Project overview

Omarchy

ProbeLabsviewing a historical run

A 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.

Viewing historical run d52c386Oct 2, 2026, 12:13 AMpr/9056Back to current
All requirements
RequirementSYS-REQ-260912-FRG0SystemReview

The system shall report the compositor session-lock state as an exit code.

This requirement changed after its last recorded review, so approval is stale. Automated checks pass.
PriorityshallTypeguaranteeCategoryfunctionalComponentlockAssuranceCFindingsnone open

Specification

The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.

Description

The system shall report the compositor session-lock state as an exit code. Exit 0 means some monitor reports LOCK blocking it. Exit 1 means a monitor answered and none shows LOCK. Exit 2 means the probes cannot determine the state. When the shell detects a stranded lock left by a dead client and password PAM exists, the shell shall take the lock once. It shall record the recovery in the journal.

FRETish formula
when lock_state_queried the lock_component shall always satisfy lock_state_reported & stranded_lock_recovered
View full formal model

Rationale & tags

Why this requirement exists, and how it is categorised.

ext-session-lock outlives its client. A restart leaves an orphan lock behind the Hyprland failsafe that nobody can unlock, so the shell must detect and reclaim it.

Verification & provenance

How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).

Assurance levelC
Formalizationvalid
Realizabilityrealizable
Vacuitychecked_ok
Strategyfretish

Review

Status
in_review
Reviewer
Kimi Dogfood · AI agent
Reviewed
Sep 12, 2026, 23:50 UTC

History

Created
Sep 12, 2026, 19:42 UTC · Kimi Dogfood · AI agent
Modified
Sep 23, 2026, 17:16 UTC · Kimi Dogfood · AI agent

Hazard review

Reviewed Sep 30, 2026, 06:50 UTCby agent:opencode-hazard-acatalog v1.10.1
  • scenarioreviewederror_handlingconcurrentboundary

    Parent-level partitions over the lock-state contract, each carried by a satisfying child: error_handling via WJYM (undetermined answers and guard refusals) and EH0K pipeline failures, concurrent via WJYM (probe-versus-lock race) and EH0K, boundary via EH0K (the three-exit partition) and WJYM (recovered-once latch). No obligation is held at this level alone.

  • propertynot applicable

    Decomposition-level statement; the only repeated-application property, at-most-once recovery, is recorded on the satisfying child WJYM as idempotency.

  • structuralnot applicable

    Decomposition-level statement over bash probe plus QML service; structural surfaces are recorded at the child level where the code lives.

  • domainnot applicable

    No domain workload at this level; the one evaluated domain gap, the unbounded hyprctl call in the probe, is deferred on the child EH0K where the code lives.

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.

  1. Kimi Dogfood · AI agentApprovedSpec conformanceSep 12, 2026 · 3 weeks agoREVIEW-19

    Exit-code contract matches: 0 when any monitor is blocked by LOCK, 1 when a monitor answers and none shows LOCK, 2 when undetermined; the stranded-lock recovery (take once + journal) is wired through the shell service per the WJYM review.

    Cited code (1)

Obligations

What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.

Discharging tests pending a synced audit.

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 lock_state_queried the lock_component shall always satisfy lock_state_reported & stranded_lock_recovered

Witnesses· 3 scenarios total

  • hyprland-session-locked-test.sh:1
    exercises 2 condition scenarios
  • lock-stranded-recovery-test.sh:1
    exercises 1 condition scenario

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.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#lock_state_queriedlock_state_reportedstranded_lock_recoveredResultProvesCovering test
1FFFTlock_state_queried
2TFFFlock_state_queried—
3TFTFlock_state_reported—
4TTFFstranded_lock_recovered
5TTTTlock_state_reported

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).

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.

Sign in to discuss this with the proof team.Sign in