A browser agent completes a task through visible page state rather than a stable API. It must ground each action in a current observation, respect the logged-in user's authority, and verify the final state after navigation or submission.
How to present this design
Think aloud in layers. Confirm constraints before drawing; label the system of record, authorization boundary, and irreversible actions; then trace one request through the design. Keep the first version small enough to test.
A sample opening and design narrative
I would first clarify the user and what a successful browser and computer use outcome means. The workflow is: A browser agent completes a task through visible page state rather than a stable API. It must ground each action in a current observation, respect the logged-in user's authority, and verify the final state after navigation or submission. I would make this design question explicit: When is the DOM more reliable than a screenshot, and when is it not? The first failure I would design for is: A layout shift makes a click target the wrong control. I would make that failure visible and recoverable. I would launch against task completion confirmed from page state. and monitor recovery after stale observations, unintended submissions, and human takeovers.. If those signals miss the agreed bar, I would pause expansion and inspect the failing boundary before adding more autonomy.
This example supplies a structure. In a real interview, ask for missing scale and service-level constraints rather than inventing them.
Decisions to make explicit
- Decision 1
When is the DOM more reliable than a screenshot, and when is it not?
- Decision 2
Which interactions are reversible and which require confirmation?
- Decision 3
What should happen when the page changes after the action was planned?
A useful interview walkthrough
- Define success
Start with this measurable outcome: Task completion confirmed from page state. Confirm that it represents the user's job rather than an easy-to-count system activity.
- Protect the boundary
Resolve the design question: When is the DOM more reliable than a screenshot, and when is it not? State which identity, policy, or source system remains authoritative.
- Design for the first exception
Make this failure explicit: A layout shift makes a click target the wrong control. Explain how the system detects it and what the user sees while recovery is pending.
- Prove and operate it
Track Recovery after stale observations, unintended submissions, and human takeovers. Name the owner, release gate, and what would trigger a pause or rollback.
Failure analysis
- A layout shift makes a click target the wrong control.
- Page content contains indirect prompt injection.
- A submitted form succeeds but the agent misses the confirmation.
Workaround: Begin with a reversible, human-reviewable slice. Verify the external state after each consequential action, then widen scope only when difficult cases meet the agreed bar.
Evidence and operating signals
- Task completion confirmed from page state.
- Recovery after stale observations, unintended submissions, and human takeovers.
Canonical interview prompts
Practice the source questions
The full prompt set stays on the system-design guide; these links take you to the exact source question.