The agent receives an issue, explores a repository, changes code in an isolated workspace, and returns a reviewable patch. It needs grounded repository context, safe access to credentials, repeatable checks, and a clear boundary between proposing a change and merging it.
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 coding agent outcome means. The workflow is: The agent receives an issue, explores a repository, changes code in an isolated workspace, and returns a reviewable patch. It needs grounded repository context, safe access to credentials, repeatable checks, and a clear boundary between proposing a change and merging it. I would make this design question explicit: How does the agent prove the bug before editing? The first failure I would design for is: A patch changes unrelated or generated files. I would make that failure visible and recoverable. I would launch against issue reproduction and patch acceptance rate. and monitor test regression, unrelated-diff rate, and time to human review.. 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
How does the agent prove the bug before editing?
- Decision 2
Which files and commands are allowed in the workspace?
- Decision 3
What checks must pass before the patch is offered for review?
A useful interview walkthrough
- Define success
Start with this measurable outcome: Issue reproduction and patch acceptance rate. Confirm that it represents the user's job rather than an easy-to-count system activity.
- Protect the boundary
Resolve the design question: How does the agent prove the bug before editing? State which identity, policy, or source system remains authoritative.
- Design for the first exception
Make this failure explicit: A patch changes unrelated or generated files. Explain how the system detects it and what the user sees while recovery is pending.
- Prove and operate it
Track Test regression, unrelated-diff rate, and time to human review. Name the owner, release gate, and what would trigger a pause or rollback.
Failure analysis
- A patch changes unrelated or generated files.
- A test passes because the reproduction does not exercise the original issue.
- Secrets or untrusted scripts escape the workspace boundary.
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
- Issue reproduction and patch acceptance rate.
- Test regression, unrelated-diff rate, and time to human review.
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.