GeezerVison is showing github.com — Bridge build-out S11 — Android app: Messages and provisioning in the console TWA shell · Issue #14377 · developing-today/code
Bridge build-out S11 — Android app: Messages and provisioning in the console TWA shell #14377DescriptionBridge build-out S11 — Android app: Messages and provisioning in the console TWA shell
Implements design §4.10. Traces to spec items 3 and 4 (app half). Depends on S8 (#14374) and S10.
Scope
The app (pm-stack/console/android) is a Trusted Web Activity: its screens are the console site, so the S8 Messages surface and S10 provisioning flow are already the app's screens with no native duplication — that is this codebase's stated design. This slice is only what an installed app adds:
- A long-press shortcut to the console Messages screen (joining the existing Dictate / Ask / Needs me / Now shortcuts), and the widget's summary gains one count — unread instructions — through the phone-link token's summary (console
src/devices.ts side included; the phone token stays read-only and summary-scoped).
- Share-target handling for provisioning: an enroll command / bootstrap token shared from another app is recognised by the share flow and lands in the console's provisioning context (extending the existing ShareActivity → Ask-box pattern), so handing a token to an agent from the phone is a share, not a retype.
- Deep links (
pm.security.cab/console/… already open in the app) verified against the new Messages and provisioning paths.
Acceptance
- The Messages shortcut opens the app directly on the Messages screen, signed in as the site session, without a reload of another tab.
- The home-screen widget shows the unread-instruction count alongside its existing counts, and the count matches the console's pipeline for the owner.
- Sharing a text containing an enroll command to the app lands it in the provisioning flow (not the Ask box); ordinary shared text still lands in Ask.
- The app builds and its existing checks (
offline-check.sh, release tests) pass; no new native screen duplicates a console screen.
Design of record: doc/2026-11-24_design_message-bridge-buildout.md (PR #14364). Spec numbers below refer to §1 of that doc; design detail is in the section cited per issue.
Filed by Felix's design lane, 2026-11-24. Not enqueued in this pass, per the filing-comment rule: Felix dispatches lanes from the slice index (design doc §7, also posted on #13907). Activitydeveloping-today commented on Nov 24, 2026 developing-today-fleet commented on Nov 24, 2026 agent-note:v1 / worker: felix / state: claimed (bridge S11) developing-today-fleet commented on Nov 24, 2026 agent-note:v1 / worker: felix / state: implemented (bridge S11) — PR #14530, head 33be868, left unmerged for Felix's review.
What landed, per the acceptance criteria:
- Messages shortcut: fifth long-press shortcut (OPEN_MESSAGES), OpenActivity translates it to the console route #more/messages; opens the running app on Messages, signed in as the site session, no reload — the same mechanism as the existing four.
- Widget count: a fourth cell, unread instructions, opening Messages. The count rides the phone-link summary: a new pipeline document section carries the count alone (Ops.unreadInstructions counts instruction/command kinds from the owner's unified pipeline feed under its unread rule, at the feed's largest page); host loader + edge direct read gated on the PM bridge credential like the agents section; summary gains messages.unreadInstructions. The phone token stays read-only and summary-scoped.
- Share target: bootstrap tokens are opaque, so recognition is command-shaped on both sides (names the enroll step, carries --bootstrap). ShareActivity routes such text to provisioning (#more/agents/enroll=…); viewAgents shows it once with the mint cards' discipline and fills the New agent form from the binding (exported enrollCommand parser). Ordinary shared text still lands in Ask.
- Deep links: no native change needed — the launcher VIEW filter is host-wide; verified by reading the manifest. The console side of the new routes is test-covered.
- No new native screen duplicates a console screen; no new dependencies.
Verification (remote only):
- Console suite, fleet-command run 45457164423 at head 33be868: 657 pass / 0 fail, 26 files. New tests by name: 'the widget's count is the pipeline's unread instructions and nothing else (Bridge build-out S11 — Android app: Messages and provisioning in the console TWA shell #14377)', 'the pipeline section is the unread-instruction count, read the same way (Bridge build-out S11 — Android app: Messages and provisioning in the console TWA shell #14377)', 'a shared enroll command gives its binding back, and other text does not'; the summary shape tests (unit + over HTTP) now carry messages.unreadInstructions. First run 45454895969 was 654/3 — the three failures were this slice's own ripples (edge self-check attempting the bridge read with no credential held; missing Away wording for read.pipeline), fixed in 33be868.
- Android build: pm-console-android workflow run 45454966537 on the branch — success (the fix commit touched no Android files, so the native tree it built is the final head's).
- Android release-script checks, run 45454987274: release.test.sh ok, RELEASE_TEST_EXIT=0, RELEASE_BUILT_EXIT=0.
- Not exercised: android/offline-check.sh — it drives an emulator against the live site, which the remote executor cannot do; the TWA contract it guards is unchanged by this slice. On-device merged-manifest reading belongs to the release path, as with every app change here.
- Bridge worker untouched (baseline 122 stands). The book's console-views.md survey chapter was deliberately not touched: S9's refresh lane is already updating it.
developing-today-fleet commented on Nov 24, 2026 Done-check by Felix (2026-11-24): S11 delivered. PR #14530 merged 2026-11-24T18:21:07Z (head 33be868). All four design §4.10 items: Messages long-press shortcut into #more/messages; widget unread-instruction count from the owner's unified pipeline feed (new pipeline Docs section, edge read gated on the PM bridge credential exactly like agents); provisioning share target (a shared enroll command routes to Agents, shown once with the mint cards' show-once discipline, never into state/documents/outbox); deep links verified already open in the app (https+host filter, no path restriction). Verification: console 657/657 across 26 files (run 45457164423), Android build success (run 45454966537), release-script checks ok. Not exercised: android/offline-check.sh (needs an emulator against the live site — the TWA contract it guards is unchanged). Closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|