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 e797ba5Sep 30, 2026, 11:40 PMquattroBack to current
All requirements
RequirementSW-REQ-260928-BMFESoftwareReview

A top-level JSON array is not an object map of menu entries.

All automated checks pass and 2/2 obligations are satisfied. Reviewed 5 days ago.
PriorityshallTypeguaranteeCategoryfunctionalComponentmenuAssuranceCFindingsnone open

Specification

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

Description

A top-level JSON array is not an object map of menu entries. The parser returns an empty item set for it, as it does for every other non-object root. No phantom rows with numeric ids appear.

FRETish formula
when array_root_present the menu_model shall always satisfy array_root_rejected
View full formal model

Rationale & tags

Why this requirement exists, and how it is categorised.

MenuModel.js parseMenuJsonc guards typeof parsed !== object, but typeof [] passes. The for..in loop then iterates array indices and emits phantom rows id 0,1,... parented to root (PoC review/upstream-repro-jsonc-toplevel-array.js, deferred claim CRS-0019/C01 = CRS-0017/C03).

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 Zero Warnings · AI agent
Reviewed
Sep 27, 2026, 23:32 UTC

History

Created
Sep 27, 2026, 23:20 UTC · Kimi Zero Warnings · AI agent
Modified
Sep 27, 2026, 23:32 UTC · Kimi Zero Warnings · AI agent

Hazard review

Reviewed Sep 29, 2026, 10:06 UTCby human:Leonid Bugaevcatalog v1.10.1
  • scenarioreviewedmalformed_inputboundaryedge_case

    malformed_input: a top-level JSON array is legal JSON but not a menu entry map; the parser must reject it like every scalar root instead of iterating indices. Both FMEA modes (phantom rows id 0,1,...; an unintended user-privilege action on a phantom row) lived here pre-fix and the guarded rows now forbid them. boundary: empty array [] and empty object {} both yield zero rows (witnessed). edge_case: an array nested under "items" is rejected by the same pre-existing items-shape check, witnessed as a negative row.

  • propertyrevieweddeterminism

    The guard is a pure type check on the parsed root with no environment, ordering, or timing inputs. Identical bytes always yield the same item set. Differential fuzz of the fix branch against the pre-fix quattro baseline is scheduled for Phase 3 of this campaign.

  • domainnot applicable

    No domain workload tags (HTTP/crypto/IPC frameworks); the component parses a local user-authored config file into a menu model.

  • structuralnot applicable

    Implementation is GC'd JavaScript (QML JS engine). No manual memory, pointer arithmetic, binary framing, or format strings exist here. The structural catalog targets C-family hazards that cannot exist here.

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 Zero Warnings · AI agentApprovedSpec conformanceSep 27, 2026 · 5 days agoREVIEW-72

    FRETish guard (array_root_present -> array_root_rejected) matches the code: parseMenuJsonc now returns [] when Array.isArray(parsed), alongside the pre-existing scalar/null rejection, so an array root yields an empty item set before for..in can iterate indices. Witness rows in both harnesses cover T,T (array root -> 0 rows), F,F (object root -> rows kept), and the negative nested-array case under items. RED observed pre-fix (phantom rows id 0,1; expected 0 actual 2 in both harnesses), GREEN after the one-line guard.

    Cited code (2)

Obligations

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

1 obligation · 1 discharged

Browse the catalogue
Discharged

Behavior when inputs are syntactically or structurally invalid.

If it were violatedMedium

FMEA mode (a): a menu file whose root is a JSON array parses cleanly. for..in then walks the array indices and renders phantom rows id "0","1",... parented to root. Rows the config never defined appear in the menu. FMEA mode (b), the realistic payload: a phantom row carries a label and an action out of the array element. Activating it runs a command the user never placed in the menu, with the user's full privileges. No error surfaces in either mode because JSON.parse accepts the array. The corruption is visible only as extra rows. Fixed on this branch by extending the root-type guard with Array.isArray. The grading records the pre-fix worst case this requirement now forbids.

Discharging evidence2/2 required witnessed
  • negativerequiredpresent
    Covered by 1 test
  • nominalrequiredpresent
    Covered by 1 test

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 array_root_present the menu_model shall always satisfy array_root_rejected

Variables

NameTypeDirectionDescription
array_root_present—The parsed JSONC root is a JSON array rather than an object map.
array_root_rejected—The parser returned an empty item set for a top-level array root.

Witnesses· 2 scenarios total

  • menu-test.sh:1
    exercises 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.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#array_root_presentarray_root_rejectedResultProvesCovering test
1FFTarray_root_present
2TFFarray_root_presentExempted · defensive — the guard returns an empty set for any Array root unconditionally; an array yielding rows needs the Array.isArray check removed (reviewed: REVIEW-72)
3TTTarray_root_rejected

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

If you change this

Requirements
0
Files
1
Tests
1
At-risk contracts
0

Files to re-check (1)

  • MenuModel.jsshell/plugins/menu/MenuModel.js

Tests to re-run (1)

  • menu-test.shtest/shell.d/menu-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.

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