GeezerVison is showing github.com — id(phase-14): shells v1 slice 4 — notification capability provider (F12.5) for the mobile shell (#6296) · Issue #10930 · developing-today/code
id(phase-14): shells v1 slice 4 — notification capability provider (F12.5) for the mobile shell (#6296) #10930DescriptionScope
Implement the notification capability provider for the mobile shell through the F12.5 capability-provider mechanism, in the F12.4 registry shape (issue #1061, landed) under the ceiling model: shell powers enter only through F13.7 capability providers (issue #789, closed). Push serves as a re-sync hint for the PWA slice (slice 1), not a data channel. Done = provider registered in the manifest shape, conformance + behavioral checks for the notify-then-resync flow.
Source record: doc/2026-11-10T20-40-00Z_design_more_shells_v1/2026-11-10T20-40-00Z_design_more_shells_v1.md (merged via PR #8243), §"Follow-on slices". Parent design issue: #6296. Core topic: #6279. Plan of record: #6312.
Binding constraints from the record's review findings (2026-11-14, PR #8243): conformance alone is not a completion gate — behavioral checks for the shell's required workflow are also required; catch-up reconstructs the rendered view from the client projection and host view (the journal event suffix alone can omit entries and redact seeds); reconnect must detect a rewritten journal (history-identity check, or a fresh snapshot when continuity is unprovable); provider declaration in v1 uses the F12.4 registry/manifest out of band.
Sequencing stop rule from the record: F12.10 scheduling/quotas #1067 is still open and binds the hosted side. Every v1 shell is local-first; if an implementation slice reaches a hosted surface before #1067 lands, stop and name #1067 rather than inventing quota behavior.
Filed by queue triage task 18464 (lane any-k, 2026-11-17) completing the #6296 deliverable's breakdown half. Activitydeveloping-today commented on Nov 17, 2026 dezren39 commented on Nov 23, 2026 agent-note:v1
event: claim — Lane EK taking the registry-registration slice of #10930
by: agent archer (kind muse, Muse sandbox seat, Lane EK — handed this issue by fleet agent next, shortlist rank 6)
at: 2026-11-22
Premise check (fresh, this pass): #10930 OPEN, no native blockers, no live claim (only prior comment is the 2026-11-17 Kaneo link). The F12.4 registry (#1061) and the F13.7 client-provider mechanism (#789) are landed; the host-side F12.5 notify provider (#1062) is registered in id-caps — but no client-side notification provider exists: CLIENT_CATALOG_ENTRIES in pkgs/id/crates/id-caps/src/world_caps.rs carries exactly one entry (client.file.read, F13.7 step 5). The mobile shell's notification power therefore has no manifest to declare, which is the first half of this issue's Done ("provider registered in the manifest shape").
Slice landing now (one PR): register client.notify in the F12.4 registry shape, mirroring client.file.read:
ProviderSide::Client under the reserved client. namespace, DefaultCeiling::Excluded (registration widens no world's authority; world ceiling + local user grant both still gate it), RequiredScope::Join, kind Request, version 1.
- Argument schema is a re-sync hint only, per the design record ("a notification is a hint to re-sync, carrying no world content of its own"): one optional
head field (unsigned integer — the journal head sequence the hint refers to, so a shell already past it can ignore the hint). No text/content field exists in the schema; a conformance test pins that.
- Bounds:
ArgsBytes(MAX_ARGS_BYTES) + a small fixed ResponseBytes ack bound (the executor's reply is a fixed-shape acknowledgment carrying no content).
- Registry conformance updates: the F13.7 side-contract test's client-entry expectations (1 → 2 entries) and the legacy-catalog filter in the registry test; plus a dedicated
client_notify_is_registered_but_off_by_default-style test (registered, client-side, in no default ceiling, absent from the legacy host CATALOG view).
Named follow-on slices (not in this PR): (1) a client.notify executor in a shell's local grant adapter (the mobile/PWA shell is TypeScript; the adapter pattern is id-native-shell's ProviderAdapter) with local bounds/revoke/audit; (2) the behavioral notify-then-resync check, which builds on slice 1's catch-up seam (#10927, still open). The #1067 stop rule is not triggered: this slice is local-first registry data only, no hosted surface. dezren39 commented on Nov 23, 2026 agent-note:v1
event: progress — registry-registration slice PR open
by: agent archer (kind muse, Muse sandbox seat, Lane EK)
at: 2026-11-22
PR: #12891 — registers client.notify in the F12.4 registry (pkgs/id/crates/id-caps/src/world_caps.rs, +109/−10, one file): client-side manifest in the client. namespace, excluded from every default ceiling, Join scope, hint-only argument schema (single optional head; no content field), ack-sized response bound.
Verification (laptop, nix develop in pkgs/id, worktree off origin/main): cargo test -p id-caps — 180 passed / 0 failed (lib suite), roc_import_policy 1 passed. Targeted re-run against the built test binary: client_notify_is_registered_but_off_by_default, test_catalog_entries_satisfy_the_f137_side_contract, and test_provider_registry_matches_the_legacy_catalog_and_carries_manifests — 3 passed / 0 failed. cargo fmt -p id-caps applied clean.
Merging on this verification (CI runs on main only). Remaining slices for this issue's full Done, unchanged from the claim note: (1) a client.notify executor in a shell's local grant adapter; (2) the behavioral notify-then-resync check on slice 1's catch-up seam (#10927). dezren39 commented on Nov 23, 2026 agent-note:v1
event: slice complete — client.notify registered in the F12.4 registry (PR merged, verified on main)
by: agent archer (kind muse, Muse sandbox seat, Lane EK)
at: 2026-11-22
Landed: PR #12891 merged — merge commit dfb5e26f7d90a5798d9967e6a502455713ddc550, head a3148bbf2345. One file, pkgs/id/crates/id-caps/src/world_caps.rs (+109/−10), re-read on main post-merge: CLIENT_NOTIFY_MANIFEST present and assembled into CLIENT_CATALOG_ENTRIES alongside client.file.read.
What the slice delivers against this issue's Done:
- "Provider registered in the manifest shape" — done.
client.notify is a version-1 Request manifest, ProviderSide::Client in the reserved client. namespace, DefaultCeiling::Excluded, RequiredScope::Join. Registration widens no world's authority (explicit ceiling + local user grant both still gate it) and the legacy host CATALOG view is untouched.
- The schema enforces the design rule in the type: the only field is an optional
head (journal head sequence the hint refers to) — there is no content-bearing field, so a notification under this provider cannot carry world content; push stays a re-sync hint, not a data channel.
- Conformance for the registration: the registry suite — new
client_notify_is_registered_but_off_by_default test pins registration, side contract, ceiling exclusion, and the hint-only schema; the F13.7 side-contract test now covers both client entries; the registry-vs-legacy-catalog test's filter and exclusion set cover the new name. Full package run: 180 passed / 0 failed (cargo test -p id-caps, laptop nix develop).
What remains for the issue's full Done (next slices, in order):
- Executor slice: a
client.notify executor behind a shell's local grant adapter — per-world opt-in, local bounds composing by minimum, immediate revoke, one local audit entry per decision (the id-native-shell ProviderAdapter / ClientProviderExecutor pattern from F13.7 step 4–5). The mobile shell is the PWA (pkgs/id/web); whether its adapter is TypeScript in the web shell or proven first against the native shell's adapter is that slice's opening question.
- Behavioral slice: the notify-then-resync check — hint delivered → shell surfaces its local notification → on return the shell runs catch-up (reconstructing the view from client projection + host view, with the history-identity check) per the record's binding review findings. 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).
#10930 stays open for those two slices. The #1067 stop rule was not triggered (registry data only, no hosted surface). developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · handed off
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-26 06:14 CST; task 22944
- Found via: monitor reconciliation
- Task: Claim-evaporation repair: the queue task is queued unclaimed (lease expired, attempts 1) while the issue still carried queue/claimed + work/assigned. Labels reset to queue/queued + status/needs-triage to match the live queue truth.
- Expectation: a worker re-claims from the queue; checkpoint stage at evaporation: verify
- Links: queue repo-health-code-pilot
developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · bound (binding deferred — queue broker down)
- Agent: fleet monitor
- Session / ID: task 22944, repo-fleet-monitor run 2026-11-26 08:14 CST
- Found via: monitor reconciliation (Duty 1B PR↔queue binding)
- Task: Verified open PR id(web): resync from client.notify hints #15104 implements this issue while task 22944 sits queued in repo-health-code-pilot. Evidence: PR body references id(phase-14): shells v1 slice 4 — notification capability provider (F12.5) for the mobile shell (#6296) #10930 (verified), branch any-n/10930-4c-wiring, files implement client.notify resync in pkgs/id/web (sw.ts, world.ts + world-offline.test.ts) — the notification-capability wiring this issue's slice 4 calls for.
- Expectation: The binding itself (claim task 22944 as repo-fleet-monitor, checkpoint stage
pr_opened with artifact = PR id(web): resync from client.notify hints #15104, park pr-bound-shepherd ~30 min, labels to queue/parked + status/parked) could NOT be applied this run: the queue broker tunnel failed mid-run (tunnel to 100.99.113.103:4801: Operation not permitted) after one successful binding claim (task 23761). Task 22944 remains QUEUED and unbound — the next monitor run, or the PR's shepherd, should apply the binding and shepherd PR id(web): resync from client.notify hints #15104 (review CI, merge when green, do NOT re-implement).
- Links: PR id(web): resync from client.notify hints #15104 · task 22944
developing-today-fleet commented on Nov 26, 2026 developing-today-fleet commented on Nov 26, 2026
PR shepherd checkpoint (2026-11-26, lane code-f):
- PR id(web): resync from client.notify hints #15104 remains OPEN, non-draft, with no human review threads/findings. CodeRabbit posted only its rate-limit notice.
- Rechecked immediately: head
e3cb075d4f9334cdf72d0aa4401fce2c15a4d2cd, base e8c2bc5441036fed4f3566e24c2ae93b84b6b7d3, mergeable MERGEABLE, merge state CLEAN.
- Per
.github/ci-policy.md, PR checks are not merge gates; reviewers must run relevant focused checks manually. Current commit has only CodeRabbit neutral and Proof skipped; commit status is pending with zero status entries, so there is no test evidence yet.
- Dispatched focused validation on the exact PR branch via Fleet personal runner:
cd pkgs/id/web && bun install --frozen-lockfile && bun run test -- src/world-offline.test.ts && bun run typecheck. Run dezren39/fleet#45906441452 is in progress. Auto-placement first chose fleet-forks and got HTTP 403 Resource not accessible by integration; pinned fleet-personal dispatch succeeded.
- No code was changed or merged. Task is parked until that run reaches a terminal result; then inspect its logs. Merge only if focused checks pass and the PR remains clean/mergeable; otherwise report/fix findings in the existing PR context.
developing-today-fleet commented on Nov 26, 2026 Slice 4c wired and merged: PR #15104 merged as fa6c9d2 (merge 2026-11-26T23:07Z). Notify-then-resync behavioral wiring (sw.ts worker notification return-only, world.ts fresh-join resync, world-offline.test.ts) is on main. Validation: dezren39/fleet run 45906441452 success on the exact PR head e3cb075 — vitest world-offline.test.ts 6 passed + typecheck. No hosted-surface quota behavior (pkgs/id/web only); #1067 stop rule not triggered. Mergeability was MERGEABLE/CLEAN at merge. developing-today-fleet commented on Nov 26, 2026
Triage re-check (code-i, 2026-11-26): slice 4c wired and merged — PR #15104 MERGED 2026-11-26T23:07Z (notify-then-resync behavioral wiring on main; validation run success, 6 vitest + typecheck). #1067 stop rule not triggered (pkgs/id/web only, no hosted quota surface). Verdict: slice 4 deliverable landed per scope (provider in manifest shape + conformance + behavioral checks); umbrella #6296 design already CLOSED. No new packet from this triage; issue stays open for any remaining shell-slice sequencing. developing-today commented on Nov 27, 2026 Closed as implemented. Triage closure (code-j, 2026-11-27; queue task 26030): the acceptance criteria for this specific mobile-shell notification capability slice are complete. Registry/conformance landed in #12891, executor and native-shell behavior in #13837, and PWA notify-then-resync wiring in #15104; all are merged. The exact PR #15104 head passed the focused browser test (6 tests) and typecheck. The #1067 hosted-quota stop rule was not triggered; #6296 is already closed. Closing this slice issue; broader shell sequencing remains outside its scope.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|