Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Separate natural-language requests from transaction state
- Models explain appeals and policies, and controlled business facts are required for qualifications, amounts, and transaction completion. Commitment text, generated reply, and real money effects must remain distinct.
How does the mechanism work?
Step-by-step explanation
- The user said that customer service promised a refund last time. Do you believe it?
A model interprets user statements; explain when those statements can become facts that justify execution.
- What should I do if the policy document is inconsistent with the rule service?
Conflicts between policy explanations and executable rules can affect eligibility decisions.
- What content should be passed during manual takeover?
After pausing automation, retain state that allows the process to continue.
Design · Explain the trade-offs
Explain design trade-offs · Separate natural-language requests from transaction state
Objectives of this level: Design auditable partial effects across refund and cancellation services.
Visual guide · Ledger state changes the next step
These are fictional refund-planning states, not executed payments. Current tenant and ownership checks precede ledger decisions; a receipt is not settlement. Select the figure to open it at full size.
Same after-sales project
The same after-sales Agent receives a refund request. The model may propose an action, but the trusted principal, current order, merchant rule, approval and ledger decide whether it is permitted. A refund request/receipt is distinct from money arriving; Stripe’s refund lifecycle illustrates why an API acknowledgement is insufficient. These integer-cent fixtures do not contact a payment provider.
The existing capstone main-return creates a return application; it does not execute a refund. These manifests are independent fictional extensions or policy/evidence/counting exercises. They do not add real refunds, publication, model calls or Java execution to the capstone runtime.
Changed contract and architecture decision
After refund, add subscription cancellation in another service. Define separate refund/cancellation keys and statuses, partial-success customer wording, compensations permitted by the merchant, retry ownership and reconciliation deadline. Submit one learner-owned fault trace or mark integration pending. Junior implements bounded guards; intermediate implements independent business change and regression; senior defends partial-effect/capacity/isolation trade-offs and incident ownership. Approval thresholds are fixture business policy, not recommendations or law. A local refund recommendation is not payment completion.
Independent deliverables
Submit a condition delta, at least two alternatives with rejected reasons, ADR/owner/rollback triggers, one personally authored negative test and code or checker diff with the same input red→green rerun. Label architecture proposals, executed local evidence, actual integrations and production responsibility separately. A reviewer must introduce an independently chosen condition at assessment; the public fixed manifests alone do not prove transfer. Do not invent measurements or enterprise incidents.
Responsibility boundary
Four tracks are learning methods, not job levels. Junior candidates own bounded code and a counterexample; intermediate candidates own integration/recovery and changed-business evidence; senior candidates add architecture, isolation/migration/incident ownership and one specialty. Real API and JD-required production experience stay separate evidence gates. A fixed local pass is not a learner mastery or hiring certificate.
code example
Change the boundary and defend responsibility
After refund, add subscription cancellation in another service. Define separate refund/cancellation keys and statuses, partial-success customer wording, compensations permitted by the merchant, retry ownership and reconciliation deadline. Submit one learner-owned fault trace or mark integration pending. Junior implements bounded guards; intermediate implements independent business change and regression; senior defends partial-effect/capacity/isolation trade-offs and incident ownership. Approval thresholds are fixture business policy, not recommendations or law. A local refund recommendation is not payment completion.
Acceptance task for this level
Deliver the course-specific changed-contract ADR, alternatives, owner/rollback policy and one independent executed counterexample; keep unexecuted claims pending. Contract: decide_service_action(payload).
Reading this browser’s record…
Hide the answer and check your understanding
If cancellation fails after refund, can both operations be retried blindly?
Expand reference derivation
No. Account for each effect separately and retry only the permitted unresolved operation.
Further explanations and practice
When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.
All linked explanations and exercises (1 )
Sources and verification scope
The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.