Skip to content

feat(ui): read-only model registry view in Settings (RIG-3124) - #1332

Open
rigel-mintaka wants to merge 2 commits into
mainfrom
compass-obs/rig-3124-model-registry-view
Open

rigel-mintaka wants to merge 2 commits into
mainfrom
compass-obs/rig-3124-model-registry-view

Conversation

@rigel-mintaka

Copy link
Copy Markdown
Contributor

Adds a read-only display of the fleet model registry to the Settings screen. The data comes from CompassService.GetModelRegistry, which is open to any authenticated account. This is the first production caller of the createConnectQuery glue.

  • Store: createAppStore takes an optional transport. When set, it runs a GetModelRegistry query and exposes modelRegistry() as offline | pending | error | ready. Rows are sorted by stable name, and each candidate chain keeps its order, since that order is the fallback order. With no transport the store is offline and creates no query.
  • Boot: index.tsx passes clients.transport to the store.
  • View: a new Model registry section under the tracker editor shows the version, each stable name with its display name, and the ordered provider/modelId chain. It also shows loading, error, and empty states. The section is hidden on an offline store, so the fixture boot and the committed settings.png baseline do not change.
  • Client: @compass/client now re-exports GetModelRegistryResponse and its schema.

Out of scope, as the record says: a write surface (edits go through the operator PutModelRegistry RPC) and the effective backend per caller.

Record: docs/designs/platform/compass-stable-name-routing/design.md §P4.

Spec-impact: none. Refs RIG-3124

Co-authored-by: Matt Wilkinson matt@rigel.build

Adds a read-only display of the fleet model registry to the Settings screen. The data comes from `CompassService.GetModelRegistry`, which is open to any authenticated account. This is the first production caller of the `createConnectQuery` glue.

- **Store:** `createAppStore` takes an optional `transport`. When set, it runs a `GetModelRegistry` query and exposes `modelRegistry()` as `offline | pending | error | ready`. Rows are sorted by stable name, and each candidate chain keeps its order, since that order is the fallback order. With no transport the store is offline and creates no query.
- **Boot:** `index.tsx` passes `clients.transport` to the store.
- **View:** a new Model registry section under the tracker editor shows the version, each stable name with its display name, and the ordered `provider/modelId` chain. It also shows loading, error, and empty states. The section is hidden on an offline store, so the fixture boot and the committed `settings.png` baseline do not change.
- **Client:** `@compass/client` now re-exports `GetModelRegistryResponse` and its schema.

Out of scope, as the record says: a write surface (edits go through the operator `PutModelRegistry` RPC) and the effective backend per caller.

Record: `docs/designs/platform/compass-stable-name-routing/design.md` §P4.

Spec-impact: none. Refs RIG-3124

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@trunk-io

trunk-io Bot commented Sep 25, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@linear-code

linear-code Bot commented Sep 25, 2026

Copy link
Copy Markdown

RIG-3124

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-obs-rig-3124-model-r.compass-eng-docs.pages.dev

Deployed from compass-obs/rig-3124-model-registry-view at b9bba78.

The registry state checked the query error before its cached data. A background refetch failure (focus or reconnect) then replaced a loaded registry with the error state. Data now wins over error, and the state is a memo, so rows are mapped once per fetch instead of on every read.

Adds a regression test: load the registry, fail the refetch, and the rows remain.

Refs RIG-3124

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@rigel-mintaka
rigel-mintaka marked this pull request as ready for review September 25, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant