Cross-Surface Consistency ensures that the same behavior executes identically regardless of which interface (web, mobile, API, CLI) it runs on.
This is the practical implementation of Orthogonal Orchestration.
Traditional automation is tightly coupled to a specific interface:
Web UI Automation → Breaks when UI changes
Mobile App Automation → Different code than web
API Automation → Yet another implementation
Result: Same behavior, three different implementations, three times the maintenance.
Separate behavior from interface:
Behavior (Gherkin) → Canonical Form (DAG)
↓
┌─────────┼─────────┐
↓ ↓ ↓
Web Mobile API
Interface Interface Interface
The DAG is executed the same way on all surfaces. Only the interface mapping changes.
Scenario: Login
Given a user with valid credentials
When the user submits the login form
Then the user is authenticated
And the dashboard is displayed
Web Interface (Figma)
Login Form
├── Email Input
├── Password Input
└── Submit Button
Mobile Interface (Figma)
Login Screen
├── Email Field
├── Password Field
└── Login Button
API Interface (OpenAPI)
POST /auth/login
{
"email": "string",
"password": "string"
}
validate_credentials
↓
create_session
↓
return_auth_token
The runtime maps:
All three execute the same DAG. The behavior is consistent.
Scenario: Login
Given a user with valid credentials
When the user submits the login form
Then the user is authenticated
Web Mapping
{
"email_input": "Email Input",
"password_input": "Password Input",
"submit_button": "Submit Button"
}
Mobile Mapping
{
"email_input": "Email Field",
"password_input": "Password Field",
"submit_button": "Login Button"
}
API Mapping
{
"email_input": "email",
"password_input": "password",
"submit_button": "POST /auth/login"
}
def execute_login(behavior, interface_mapping, surface):
dag = parse_behavior(behavior)
mapped_dag = map_to_interface(dag, interface_mapping[surface])
return execute_dag(mapped_dag)