Study FAQ
Which responsibilities belong to my Claude application, its API adapter, and Claude Code?
Also asked as 2
- Where should validation, authentication, and Claude SDK types live in an application?
- How do I separate production Claude API behavior from Claude Code instructions and plugins?
Answer
The application owns business rules, authorized input and state, output validation, and side effects. A narrow adapter owns the model service call. Claude Code and its plugins support the development workflow, with their own instructions, settings, permissions, and versioning.
| Boundary | What it owns |
|---|---|
| User and application workflow | Define the task and review step. Authenticate the caller, load fields the caller may use, preserve which content came from policy versus a user or external system, and enforce validation and approvals before an action. |
| REST or SDK adapter | Map an application request to Messages JSON or SDK types. Apply transport settings and return ordered typed results, usage, request correlation, or a normalized error. |
| Claude API | Process the documented request and return model output and service metadata. |
| Runtime and governance | Deliver secrets, provide capacity and observability, and define change approval, logs, retention, and incident ownership. |
| Claude Code and plugins | Apply development instructions such as CLAUDE.md in Claude Code. Review plugin components, tool and service access, compatibility, update policy, and rollback before use. |
Choose a supported SDK when its language, runtime, and transport abstractions fit. Use direct REST if dependency constraints or HTTP control require it. In either case, keep an internal input and result contract so switching client versions has a small impact on business code. Version production instructions with the application that sends them. A repository instruction takes effect in Claude Code, and production policy needs an enforcement point in the application itself.
For example, a support service can give the adapter a DraftInput containing approved facts and separately marked customer text. The adapter returns a DraftResult. Application code validates it, applies retention rules, and requires an authorized person to send the draft.
Official references
Full explanation
Claude Application Architecture Across Interfaces and Content Boundaries
Study guide · CCDV-F
Read the full explanation