Mobile Autonomy Runbook
Date: 2026-02-20
Scope: Operate SCBE agents from phone app and execute goal-driven workflows
Goal
Enable a phone app to submit goals (for example, online store operations), monitor progress, approve high-risk actions, and receive completion/audit updates.
Implemented Control Plane (MVP)
API file: src/api/main.py
Endpoints:
GET /mobile/connectors/templates- Get built-in connector setup profiles
POST /mobile/connectors- Register connector endpoint (n8n, Zapier, Shopify, Slack, Notion, Airtable, GitHub Actions, Linear, Discord, generic webhook)
GET /mobile/connectors- List registered connectors
POST /mobile/goals/{goal_id}/bind-connector- Bind connector to existing goal and switch execution mode
POST /mobile/goals- Submit a goal with channel profile (
store_ops,web_research,content_ops,custom)
- Submit a goal with channel profile (
GET /mobile/goals- List recent goals for authenticated user
GET /mobile/goals/{goal_id}- Get current state, step progress, and event log
POST /mobile/goals/{goal_id}/advance- Execute next step in the plan
POST /mobile/goals/{goal_id}/approve- Approve high-risk steps from phone
Safety Model
- High-risk steps are blocked when
require_human_for_high_risk=true. - Explicit approval is required to continue.
- Every step writes deterministic events for auditability.
Phone App Flow
- User submits goal from mobile app:
- “Run storefront operations for today and process pending messages.”
- Optional: pass
execution_mode=connector+connector_id.
- App polls
GET /mobile/goals/{id}for status. - When status becomes
review_required, app prompts user to approve. - App calls
POST /mobile/goals/{id}/approve. - App resumes execution via
POST /mobile/goals/{id}/advance. - Goal reaches
completed; app displays summary.
E-commerce Channel Pattern (store_ops)
Generated step plan:
collect_store_state(low risk)prioritize_orders_and_messages(medium risk)execute_catalog_or_fulfillment_changes(high risk)publish_daily_report(low risk)
Next Integration Steps (to reach full automation)
- Register real connectors per account:
- Shopify workflow endpoint (or n8n flow containing Shopify nodes)
- Zapier webhook for cross-service automations
- n8n endpoint for AetherBrowse + store task orchestration
- Slack/Discord notification hooks for approvals and exceptions
- Notion/Airtable sync endpoints for ops memory/state
- Replace simulated step execution with specialized worker adapters:
- Shopify admin adapter (orders/catalog/fulfillment)
- Email/helpdesk adapter
- Ad platform adapter
- Add OAuth + scoped capability tokens per store/account.
- Add approval policies by action type and spend threshold.
- Add webhook push to phone app for real-time status events.
- Add immutable audit sink (S3 + signed event hash chain).
Local Test
python -m pytest -q tests/test_mobile_goal_api.py
Terminal Control
For terminal-first operations (research, article flows, product/store operations), use:
scripts/scbe_terminal_ops.pydocs/TERMINAL_OPS_QUICKSTART.md
Example API Key Header
x-api-key: demo_key_12345