Skip to content

feat(id-caps): register client.notify provider for the mobile shell (#10930) - #12891

Merged
dezren39 merged 1 commit into
mainfrom
lane-ek/10930-client-notify-registry
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-ek/10930-client-notify-registry

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #10930 — shells v1 slice 4 (notification capability provider for the mobile shell), registry-registration slice.

What lands

client.notify registered in the F12.4 provider registry (pkgs/id/crates/id-caps/src/world_caps.rs), in exactly the shape client.file.read (F13.7 step 5) established:

  • CLIENT_NOTIFY_MANIFEST added to CLIENT_CATALOG_ENTRIES: ProviderSide::Client under the reserved client. namespace, DefaultCeiling::Excluded, RequiredScope::Join, kind Request, version 1.
  • Argument schema is a re-sync hint only (shells v1 record: "a notification is a hint to re-sync, carrying no world content of its own"): one optional head field — the journal head sequence the hint refers to, so a shell already past it can ignore the hint. There is deliberately no text/content field; the shell renders its own local wording.
  • Bounds: ArgsBytes(MAX_ARGS_BYTES) + ResponseBytes(MAX_CLIENT_NOTIFY_RESPONSE_BYTES = 1024) for the executor's fixed-shape acknowledgment.
  • Registration widens nothing: excluded from every default ceiling and absent from the legacy host CATALOG view; a world reaches it only through an explicit ceiling, and the local user grant still gates the device.

Tests (oracle: the registry conformance suite in the same file)

  • client_notify_is_registered_but_off_by_default (new): registered, client-side, side-contract clean, in no default ceiling, not in the legacy catalog, and the schema is exactly the single optional head field.
  • test_catalog_entries_satisfy_the_f137_side_contract: client entries 1 → 2 (client.file.read, client.notify), both Excluded / non-catalog / non-default-ceiling.
  • test_provider_registry_matches_the_legacy_catalog_and_carries_manifests: legacy-catalog filter and the default-ceiling exclusion set extended with CLIENT_NOTIFY_NAME.

Not in this PR (named follow-ons on #10930)

  1. A client.notify executor in a shell's local grant adapter (local bounds / revoke / audit), following the id-native-shell ProviderAdapter pattern.
  2. The behavioral notify-then-resync check, which builds on slice 1's catch-up seam (id(phase-14): shells v1 slice 1 — PWA offline read model + catch-up in the browser shell (#6296) #10927, still open).

The #1067 stop rule is not triggered: this slice is local-first registry data only, no hosted surface.


Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…10930)

Shells v1 slice 4, registry half: the mobile shell's notification
power now has a manifest in the F12.4 registry shape, mirroring
client.file.read (F13.7 step 5) — one entry in CLIENT_CATALOG_ENTRIES,
ProviderSide::Client under the reserved client. namespace,
DefaultCeiling::Excluded, RequiredScope::Join, version 1.

The argument schema is a re-sync hint only, per the shells v1
record: one optional `head` (the journal head sequence the hint
refers to) and no content-bearing field — a notification under
this provider carries no world content of its own, and the shell
renders its own local wording. Bounds are ArgsBytes plus a small
fixed ResponseBytes cap for the executor's fixed-shape
acknowledgment.

Registration alone widens no world's authority: the world
ceiling/grant and the local user grant must both permit the
provider before any hint can be delivered. The legacy host
CATALOG view is unchanged.

Tests: the F13.7 side-contract test now expects both client
entries; the registry-vs-catalog test filters both client names
and excludes client.notify from the default-ceiling set; a new
client_notify_is_registered_but_off_by_default test pins the
registration, the side contract, and the hint-only schema.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:36
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eeabb26f-d564-49a7-a04b-2b443cafd928
Commits

Reviewing files that changed from the base of the PR and between fad105a and a3148bb.

Files selected for processing: 1

  • pkgs/id/crates/id-caps/src/world_caps.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T04:37:46.855305Z a3148bb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit dfb5e26 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-ek/10930-client-notify-registry branch November 23, 2026 04:37
dezren39 added a commit that referenced this pull request Nov 23, 2026
The client segment grew to two providers when PR #12891 registered
client.notify for the mobile shell (#10930); the exit proof still
asserted exactly one, so the id package build failed on main and
blocked #1374 criterion 2 (nixos-playwright-e2e never reached the
Playwright suite). Expect both declared providers, in order, with
the same per-provider registry/ceiling checks as before.

Refs #1374, #10930
dezren39 added a commit that referenced this pull request Nov 23, 2026
The client segment grew to two providers when PR #12891 registered
client.notify for the mobile shell (#10930); the exit proof still
asserted exactly one, so the id package build failed on main and
blocked #1374 criterion 2 (nixos-playwright-e2e never reached the
Playwright suite). Expect both declared providers, in order, with
the same per-provider registry/ceiling checks as before.

Refs #1374, #10930
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