Repository navigation
feat(id-caps): register client.notify provider for the mobile shell (#10930) - #12891
Merged
Merged
Conversation
…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.
|
Warning Review limit reachedYou'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. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #10930 — shells v1 slice 4 (notification capability provider for the mobile shell), registry-registration slice.
What lands
client.notifyregistered in the F12.4 provider registry (pkgs/id/crates/id-caps/src/world_caps.rs), in exactly the shapeclient.file.read(F13.7 step 5) established:CLIENT_NOTIFY_MANIFESTadded toCLIENT_CATALOG_ENTRIES:ProviderSide::Clientunder the reservedclient.namespace,DefaultCeiling::Excluded,RequiredScope::Join, kindRequest, version 1.headfield — 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.ArgsBytes(MAX_ARGS_BYTES)+ResponseBytes(MAX_CLIENT_NOTIFY_RESPONSE_BYTES = 1024)for the executor's fixed-shape acknowledgment.CATALOGview; 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 optionalheadfield.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 withCLIENT_NOTIFY_NAME.Not in this PR (named follow-ons on #10930)
client.notifyexecutor in a shell's local grant adapter (local bounds / revoke / audit), following theid-native-shellProviderAdapterpattern.The #1067 stop rule is not triggered: this slice is local-first registry data only, no hosted surface.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.