Execution Surfaces
This document defines the six execution surfaces available to orchestration agents, their tool mappings, and the universal verification loop that applies to every action.
Execution Surfaces
This document defines the six execution surfaces available to orchestration agents, their tool mappings, and the universal verification loop that applies to every action.
The Six Surfaces
1. Browser (Web)
Primary Tool: Playwright MCP Use For: Web applications, online dashboards, SaaS platforms, web-based forms, content management systems, social media platforms, cloud consoles
Key Operations:
browser_navigate- Open URLsbrowser_click- Click elementsbrowser_fill_form- Fill input fieldsbrowser_snapshot- Capture page state (accessibility tree)browser_take_screenshot- Visual capture for evidencebrowser_evaluate- Run JavaScript for complex interactionsbrowser_file_upload- Upload files to web formsbrowser_select_option- Dropdown selectionsbrowser_press_key- Keyboard actionsbrowser_wait_for- Wait for elements/conditions
Verification Method: browser_snapshot + content assertion. Take a snapshot, check for expected elements/text. Screenshot for visual evidence.
2. Native macOS Apps
Primary Tool: Peekaboo CLI Use For: Desktop applications (Keynote, Pages, Numbers, Calendar, Mail, Finder, Preview, Terminal, System Preferences, any macOS app)
Key Operations:
peekaboo see --app "<App>"- Capture current state of an app (returns element tree with IDs + screenshot)peekaboo click --app "<App>" --on <ID>- Click UI elements by ID fromseeoutput (e.g., B1, T2)peekaboo click "<text>" --app "<App>"- Click element by text querypeekaboo type "<text>" --app "<App>"- Type text into focused fieldpeekaboo hotkey --keys "<keys>" --app "<App>"- Press keyboard shortcuts (e.g., "cmd,c" or "cmd shift t")peekaboo list apps- List running applicationspeekaboo list windows --app "<App>"- List windows for an apppeekaboo app launch "<App>"- Launch an applicationpeekaboo app switch --to "<App>"- Bring app to foregroundpeekaboo app quit --app "<App>"- Quit an applicationpeekaboo menu click --app "<App>" --path "<Menu> > <Item>"- Click menu items (use " > " separator)peekaboo menu list --app "<App>"- List all menu items for an apppeekaboo window focus --app "<App>"- Focus a specific windowpeekaboo paste "<text>" --app "<App>"- Set clipboard and paste
Verification Method: peekaboo see --app "<App>" + element/content check. Capture the app state, verify expected elements exist and contain correct values.
3. Files
Primary Tool: Bash / Read / Write / Edit Use For: Documents, configuration files, data exports, scripts, generated content, project artifacts, local databases
Key Operations:
Write- Create new filesEdit- Modify existing filesRead- Read file contentsBash- Execute scripts, manage directories, run build toolsGlob- Find files by patternGrep- Search file contents
Verification Method: Read back the file and validate structure/content. For scripts, execute and check exit code + output. For structured data (JSON, YAML), parse and validate schema.
4. Communication
Primary Tool: Playwright MCP (web-based) or Peekaboo CLI (native Mail, Messages) Use For: Sending emails, Slack messages, Discord messages, SMS, notifications, social media posts
Key Operations:
- Web-based: Playwright to navigate to platform, compose, send
- Native: Peekaboo to control Mail.app, Messages.app, etc.
- API-based: curl/MCP for services with APIs (Slack API, SendGrid, etc.)
Verification Method: After sending, check the "Sent" folder or delivery confirmation. For APIs, check response status. For web platforms, navigate to sent/outbox and verify the message appears.
5. Calendar
Primary Tool: Playwright MCP (Google Calendar, web) or Peekaboo CLI (Apple Calendar) Use For: Scheduling events, setting reminders, managing time blocks, coordinating meetings
Key Operations:
- Web: Playwright to navigate calendar, create/edit events
- Native: Peekaboo to control Calendar.app
- API: Google Calendar API, Apple EventKit via shortcuts
Verification Method: After creating/modifying an event, read the calendar back and confirm the event exists with correct details (title, time, date, attendees, location).
6. APIs / MCPs
Primary Tool: MCP tools, curl, Bash Use For: External service integrations, data fetching, webhooks, cloud services, databases, any programmatic interface
Key Operations:
- MCP tool calls (Notion, GitHub, Slack, custom servers)
curlfor REST APIs- SDK calls via Bash scripts
- Database queries
Verification Method: Make a follow-up API call to confirm the action took effect. For creates: read back the created resource. For updates: fetch and compare. For deletes: confirm 404/not found. Check response status codes and payload.
7. Code
Primary Tool: Bash Use For: Running scripts, builds, tests, deployments, package management, git operations
Key Operations:
- Execute scripts and commands
- Run test suites
- Build and compile
- Deploy artifacts
- Package management (npm, pip, brew, etc.)
Verification Method: Check exit code (0 = success). Validate stdout/stderr output. For builds, verify output artifacts exist. For tests, check pass/fail counts. For deployments, hit the deployed endpoint.
The Verification Loop
Every action on every surface follows this loop:
Execute -> Verify -> (pass?) -> Done
-> (fail?) -> Analyze -> Adjust -> Retry (max 3) -> EscalateStep-by-Step Protocol
- Execute - Perform the action on the target surface using the appropriate tool
- Verify - Use the surface's verification method to confirm the action succeeded
- Record Evidence - Save verification output (snapshots, screenshots, file contents, API responses) to PROGRESS.md
- If Pass - Move to next action
- If Fail - Analyze the failure:
- What was expected vs what happened?
- Is it a tool issue, a configuration issue, or a logic error?
- Adjust - Modify the approach based on analysis
- Retry - Re-execute with the adjusted approach (maximum 3 retries)
- Escalate - If 3 retries fail, escalate using the 3-tier failure protocol:
- Tier 1: Subagent self-recovery (try alternative approach)
- Tier 2: Orchestrator intervention (spawn fix agent)
- Tier 3: User escalation (provide error details, ask for help)
Evidence Format
Record verification evidence in PROGRESS.md task notes:
Verified: [surface] [action] - [result]
Evidence: [snapshot excerpt / screenshot path / API response / file content hash]
Retries: [0-3] if applicableSurface Selection Guide
When a task involves multiple possible surfaces, prefer this priority:
- API/MCP - Most reliable, most verifiable, fastest
- Files - Direct, deterministic, easy to verify
- Code - Scriptable, repeatable
- Browser (Web) - When no API exists, use Playwright
- Native macOS - When task requires desktop apps, use Peekaboo
- Communication - Use API when available, fall back to browser/native
- Calendar - Use API when available, fall back to browser/native
Surface Tags in Task Files
Every task file tags its actions with the target surface:
[browser] Navigate to platform dashboard and configure settings
[native] Open Keynote and create presentation from template
[file] Generate configuration file at path/to/config.json
[api] Call Notion API to create database entry
[comm] Send notification email via SendGrid API
[calendar] Create event in Google Calendar
[code] Run build script and verify outputThese tags tell execution agents which tools to use and which verification method to apply.
Cross-Surface Coherence
When a task spans multiple surfaces, verify coherence:
- Data consistency - Does the file content match what was entered in the web form?
- Timing - Did the calendar event get created before the notification was sent?
- State sync - After updating via API, does the browser view reflect the change?
- Handoff integrity - When output from one surface feeds into another, verify the handoff
Cross-surface checks happen during the Synergy Review phase (Phase 11) and during verification sweeps.
Source: written by One Giant Leap.
Related entries
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.