9740bc64c9
Firmware QEMU Tests (ADR-061) / QEMU Test (edge-tier1) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / QEMU Test (full-adr060) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / QEMU Test (tdm-3node) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / Swarm Test (ADR-062) (push) Has been skipped
npm packages / tools/ruview-mcp (node 22) (push) Failing after 1s
nvsim-server → ghcr.io / build-and-publish (push) Failing after 1s
ruview-swarm CI guard / tests (full+train) (push) Failing after 2s
Bench Regression Guard / bench compile-verify (--no-run) (push) Failing after 0s
Bench Regression Guard / bench fast-run (informational, non-gating) (push) Has been skipped
Firmware CI / Verify version.txt matches release tag (push) Has been skipped
Dashboard a11y + cross-browser / a11y (push) Failing after 0s
nvsim Dashboard → GitHub Pages / build-and-deploy (push) Failing after 2s
Firmware CI / Build firmware (esp32s3 / 4mb) (push) Failing after 15s
Firmware QEMU Tests (ADR-061) / Build Espressif QEMU (push) Failing after 1s
Firmware QEMU Tests (ADR-061) / Fuzz Testing (ADR-061 Layer 6) (push) Failing after 1s
Continuous Deployment / Pre-deployment Checks (push) Has been skipped
Firmware CI / Build firmware (esp32c6 / c6-4mb) (push) Failing after 15s
Firmware CI / Build firmware (esp32s3 / 8mb) (push) Failing after 15s
Firmware QEMU Tests (ADR-061) / QEMU Test (boundary-max) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / QEMU Test (boundary-min) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / QEMU Test (default) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / QEMU Test (edge-tier0) (push) Has been skipped
Firmware QEMU Tests (ADR-061) / NVS Matrix Generation (push) Failing after 1s
Security Scanning / Security Policy Compliance (push) Failing after 0s
Security Scanning / Dependency Vulnerability Scan (push) Failing after 0s
Security Scanning / Static Application Security Testing (push) Failing after 1s
Security Scanning / Infrastructure Security Scan (push) Failing after 1s
Security Scanning / Secret Scanning (push) Failing after 1s
npm packages / harness/ruview (node 22) (push) Failing after 17s
Security Scanning / License Compliance Scan (push) Failing after 1s
Security Scanning / Container Security Scan (push) Failing after 4s
three.js demos → GitHub Pages / build-and-deploy (push) Failing after 1s
Verify Pipeline Determinism / Verify Pipeline Determinism (3.11) (push) Failing after 1s
Fix-Marker Regression Guard / Verify fix markers (push) Failing after 1s
ADR-115 MQTT integration tests / mqtt-integration (push) Failing after 1s
npm packages / harness/ruview (node 20) (push) Failing after 1s
npm packages / tools/ruview-mcp (node 20) (push) Failing after 1s
npm packages / tools/ruview-cli (node 20) (push) Failing after 1s
npm packages / tools/ruview-cli (node 22) (push) Failing after 1s
BFLD MQTT Integration / cargo test --features mqtt (live mosquitto) (push) Failing after 29s
ruview-swarm CI guard / build train_marl bin (push) Failing after 2s
ruview-swarm CI guard / clippy (-D warnings, --no-deps) (push) Failing after 3s
ruview-swarm CI guard / tests (ruflo) (push) Failing after 1s
ruview-swarm CI guard / tests (train) (push) Failing after 2s
ruview-swarm CI guard / tests (default) (push) Failing after 2s
Point Cloud Viewer → GitHub Pages / build-and-deploy (push) Failing after 8s
ruview-swarm CI guard / ITAR / publish guard (push) Failing after 0s
wifi-densepose sensing-server → Docker Hub + ghcr.io / build · push · smoke-test (push) Failing after 1s
Continuous Deployment / Deploy to Production (push) Has been cancelled
Continuous Deployment / Rollback Deployment (push) Has been cancelled
Continuous Deployment / Post-deployment Monitoring (push) Has been cancelled
Continuous Deployment / Notify Deployment Status (push) Has been cancelled
Continuous Deployment / Deploy to Staging (push) Has been cancelled
Security Scanning / Security Report (push) Has been cancelled
97 lines
3.8 KiB
Markdown
97 lines
3.8 KiB
Markdown
# macOS Shortcuts ↔ RuView bridge (ADR-125 §1.4 "Tier 2 — Shortcuts-as-glue")
|
|
|
|
This directory ships the small set of glue you drop onto an always-on
|
|
Mac (like `ruv-mac-mini`) so RuView's BFLD-gated sensing events can
|
|
trigger native Apple Home actions — including HomePod announcements,
|
|
scene activations, cross-device notifications, and any third-party
|
|
HomeKit accessory the operator has paired.
|
|
|
|
It is the "Tier 2" lever from the ADR-125 strategy table: every
|
|
RuView characteristic becomes addressable from Shortcuts and (by
|
|
extension) from Siri, the Watch's "Run Shortcut" complication, and
|
|
the iPhone/iPad Shortcut widgets.
|
|
|
|
## Architecture
|
|
|
|
```
|
|
real C6 (192.168.1.179, ruv.net)
|
|
→ UDP feature_state → c6-presence-watcher.py → BFLD PrivacyGate
|
|
→ /tmp/ruview-last-feature.json
|
|
→ ruview-sensing-server.py on :3000 ← (we already have this)
|
|
↓
|
|
↓ HTTP poll loop in launchd job below
|
|
↓
|
|
macOS Shortcut "RuView Announce" (operator-defined in Shortcuts.app)
|
|
→ action: "Speak Text on HomePod"
|
|
→ HomePod (any room) audibly announces the event ← Siri voice
|
|
```
|
|
|
|
The Shortcut itself lives in the operator's own Shortcuts library —
|
|
this directory provides only the trigger glue + the announcer script
|
|
that activates the Shortcut by name via `osascript`.
|
|
|
|
## One-time setup on the Mac
|
|
|
|
1. **Create the Shortcut** in `Shortcuts.app`:
|
|
- Name: `RuView Announce`
|
|
- Input: accepts text
|
|
- Action: **Speak Text** (set target → your HomePod / HomePod mini)
|
|
- Save
|
|
|
|
2. **Verify it runs from the command line**:
|
|
```sh
|
|
osascript -e 'tell application "Shortcuts Events" to run shortcut "RuView Announce" with input "Test from RuView"'
|
|
```
|
|
The HomePod should speak "Test from RuView".
|
|
|
|
3. **Install the launchd job**:
|
|
```sh
|
|
cp ruview-watcher.plist ~/Library/LaunchAgents/com.ruvnet.ruview.watcher.plist
|
|
launchctl load ~/Library/LaunchAgents/com.ruvnet.ruview.watcher.plist
|
|
```
|
|
`launchctl list | grep ruvnet` should show the job loaded.
|
|
|
|
4. **Tail the log** while you walk past the C6 to verify it fires:
|
|
```sh
|
|
tail -f /tmp/ruview-watcher.log
|
|
```
|
|
|
|
## Files
|
|
|
|
| File | Purpose |
|
|
|------|---------|
|
|
| `announce-via-homepod.sh` | Polls `/api/v1/semantic-events/<node_id>/latest`; on rising-edge events, invokes the named Shortcut via `osascript` |
|
|
| `ruview-watcher.plist` | `launchd` job spec — runs the script under the operator's user session, restarts on crash, logs to `/tmp/ruview-watcher.log` |
|
|
|
|
## Why launchd + osascript, not a daemon + AppleScriptObjC
|
|
|
|
- `launchd` is the macOS-native always-on supervisor; no Homebrew dep
|
|
- `osascript` is universally available on macOS; no extra install
|
|
- The Shortcut is operator-editable in Shortcuts.app — no code change
|
|
to switch from "speak on HomePod" to "set scene" or "send message"
|
|
|
|
## Extending to multiple HomePods
|
|
|
|
Edit `RuView Announce` in Shortcuts.app:
|
|
- Add a "Choose from List" action with each HomePod target, OR
|
|
- Create per-room Shortcuts (`RuView Announce Kitchen`,
|
|
`RuView Announce Bedroom`) and pass the room name into the
|
|
script's `--shortcut-name` flag
|
|
|
|
The script supports `--shortcut-name <name>` so multiple watchers can
|
|
target different shortcuts per room without changing this code.
|
|
|
|
## Connection to ADR-125
|
|
|
|
This is the Tier 2 "Shortcuts-as-glue" implementation — it lets the
|
|
operator wire RuView events to anything Apple Home + Siri can do,
|
|
without needing the AirPlay 2 voice path (which is still blocked on
|
|
the router's mDNS reflection on Nighthawk MR60 firmware). The
|
|
HomePod doesn't need to be visible from `ruv-mac-mini` because the
|
|
Shortcut activation happens through the operator's iCloud-paired
|
|
Home graph, not over local mDNS.
|
|
|
|
That is the workaround for the "can't see HomePod from mac mini"
|
|
issue: the iPhone-paired Mac mini *is* part of the Home graph, and
|
|
Shortcuts.app uses that graph (not Bonjour) to reach the HomePod.
|