Proof Portal

Project overview

Omarchy

ProbeLabs65 findings · 95 requirements

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.

Inbox
ReportR-750GitHub issuePublicDecided· Out of scope

Third-party bar-widgets never receive barWidgetRegistry, so a widget cannot host other widgets

Reported by kevinbsr · filed Sep 9, 2026 · open at source

Decided: Out of scope — decided by agents · verified 3 days ago.

At a glance

1 · What is claimed?
Only the report text below — no validator has restated it as checkable claims yet.
2 · What does it affect?
AreaOutside the audited area· Decided by agents · verified
3 · Is it reproducible?
No validation has been run yet.
4 · What remains unclear?
  • Not validated yet: no claims, no reproducer.
5 · What happens next?
Decided by agents and verified by a second, independent agent — see the decision.

Original report

Third-party bar-widgets never receive barWidgetRegistry, so a widget cannot host other widgetsrevision 1 · captured 2026-09-28 21:23 UTC via poll

A third-party bar-widget never receives barWidgetRegistry, and the PluginBarApi facade it gets as bar doesn't expose one either. A widget that hosts other widgets — a tray with a drawer, a group, an overflow menu — therefore has no way to resolve the components it is meant to show.

I don't know whether this is a deliberate narrowing or an oversight, so this is a question as much as a report.

What a bar-widget receives

Bar.qml's injectProps() injects exactly three properties:

https://github.com/omacom/omarchy/blob/quattro/shell/plugins/bar/Bar.qml#L1999-L2006

function injectProps() {
  var target = activeItem
  if (!target) return
  if ("bar" in target) target.bar = firstParty
    ? root : root.pluginBarApiFor(pluginApiId, moduleName, registered)
  if ("moduleName" in target) target.moduleName = moduleName
  if ("settings" in target) target.settings = moduleSettings
}

For a third-party widget, bar is the PluginBarApi facade, whose surface is tooltips, click targets, popouts, panel switching, _run, _setCenterHoverRevealSuppressed, and _moduleWidgets:

https://github.com/omacom/omarchy/blob/quattro/shell/plugins/bar/Bar.qml#L250-L270

_moduleWidgets looks close but isn't it — it returns the plugin's own live instances across monitors, and only for its own module name:

_moduleWidgets: function(requestedId) {
  return String(requestedId || "") === String(moduleName || "")
    ? root.moduleWidgets(moduleName) : []
}

Where the registry does get injected

shell.qml injects barWidgetRegistry at three sites — the bar itself, service instances, and panel loaders:

pluginBarWidgetRegistryFor already builds a detached, capability-scoped snapshot for third parties, so the safe object exists:

https://github.com/omacom/omarchy/blob/quattro/shell/shell.qml#L755-L772

It just never reaches the bar-widget instantiation path — the one place that would need it to host anything.

Effect

io.github.tyrichards.tray declares property var barWidgetRegistry and reads root.barWidgetRegistry || (root.bar ? root.bar.barWidgetRegistry : null). Both are null, so its drawer resolves 0 of the 8 widgets it is configured to hold. Instrumented in a local fork:

[tray] entries=8 hosted=8 hasContent=true registry=NULL resolved=0

agents/skills/shell-dev.md says entry points accept pluginRegistry / barWidgetRegistry "as appropriate", which reads as though a bar-widget could ask for one.

Question

Is widget-hosting meant to be a full-bar-only capability now? If so, the docs could say so, and a bar-widget asking for barWidgetRegistry could be warned rather than silently handed null — the failure is invisible until someone opens the drawer.

If it isn't deliberate, adding the same if ("barWidgetRegistry" in target) target.barWidgetRegistry = ... line to injectProps (through pluginBarWidgetRegistryFor, so third parties keep the detached snapshot) would restore it without widening what a widget can reach. Happy to send that PR.


Reported with the help of Claude Code.

View raw text
A third-party **bar-widget** never receives `barWidgetRegistry`, and the `PluginBarApi` facade it gets as `bar` doesn't expose one either. A widget that hosts other widgets — a tray with a drawer, a group, an overflow menu — therefore has no way to resolve the components it is meant to show.

I don't know whether this is a deliberate narrowing or an oversight, so this is a question as much as a report.

## What a bar-widget receives

`Bar.qml`'s `injectProps()` injects exactly three properties:

https://github.com/omacom/omarchy/blob/quattro/shell/plugins/bar/Bar.qml#L1999-L2006

```js
function injectProps() {
  var target = activeItem
  if (!target) return
  if ("bar" in target) target.bar = firstParty
    ? root : root.pluginBarApiFor(pluginApiId, moduleName, registered)
  if ("moduleName" in target) target.moduleName = moduleName
  if ("settings" in target) target.settings = moduleSettings
}
```

For a third-party widget, `bar` is the `PluginBarApi` facade, whose surface is tooltips, click targets, popouts, panel switching, `_run`, `_setCenterHoverRevealSuppressed`, and `_moduleWidgets`:

https://github.com/omacom/omarchy/blob/quattro/shell/plugins/bar/Bar.qml#L250-L270

`_moduleWidgets` looks close but isn't it — it returns the plugin's **own** live instances across monitors, and only for its own module name:

```js
_moduleWidgets: function(requestedId) {
  return String(requestedId || "") === String(moduleName || "")
    ? root.moduleWidgets(moduleName) : []
}
```

## Where the registry does get injected

`shell.qml` injects `barWidgetRegistry` at three sites — the bar itself, service instances, and panel loaders:

- `configureBar` — https://github.com/omacom/omarchy/blob/quattro/shell/shell.qml#L223
- service instantiation — https://github.com/omacom/omarchy/blob/quattro/shell/shell.qml#L920
- panel loader — https://github.com/omacom/omarchy/blob/quattro/shell/shell.qml#L1333

`pluginBarWidgetRegistryFor` already builds a detached, capability-scoped snapshot for third parties, so the safe object exists:

https://github.com/omacom/omarchy/blob/quattro/shell/shell.qml#L755-L772

It just never reaches the bar-widget instantiation path — the one place that would need it to host anything.

## Effect

`io.github.tyrichards.tray` declares `property var barWidgetRegistry` and reads `root.barWidgetRegistry || (root.bar ? root.bar.barWidgetRegistry : null)`. Both are null, so its drawer resolves 0 of the 8 widgets it is configured to hold. Instrumented in a local fork:

```
[tray] entries=8 hosted=8 hasContent=true registry=NULL resolved=0
```

`agents/skills/shell-dev.md` says entry points accept `pluginRegistry` / `barWidgetRegistry` "as appropriate", which reads as though a bar-widget could ask for one.

## Question

Is widget-hosting meant to be a full-bar-only capability now? If so, the docs could say so, and a bar-widget asking for `barWidgetRegistry` could be warned rather than silently handed null — the failure is invisible until someone opens the drawer.

If it isn't deliberate, adding the same `if ("barWidgetRegistry" in target) target.barWidgetRegistry = ...` line to `injectProps` (through `pluginBarWidgetRegistryFor`, so third parties keep the detached snapshot) would restore it without widening what a widget can reach. Happy to send that PR.

---
Reported with the help of Claude Code.

Validation

Not checked yet. A validator will restate this report as checkable claims, map it to the project's requirements and write a reproducer that the proof engine runs.

Linked

Not linked to any known issue, other report or change yet.

Decision

Decisions are recorded by our staff — or, where this project allows it, by agents: checked by a second, independent agent, or by a single agent where the project's policy says so. Any decision reached so far is shown below.

  • Out of scopeDecided by agents · verified · 2026-10-09 11:23 UTC