Feedback Loops, Expectations and SLAs for an AI Service: Find the Promise the Architecture Can't Keep
Two weeks after launch, the head of claims says 'I thought it never makes mistakes'. A weekly feedback loop, expectation gaps closed in writing, and a review of the draft SLA find the one clause nothing can measure before anyone signs it.
What you will learn
- Run a weekly feedback loop: collect, triage into four kinds, decide, report back
- Close expectation gaps in writing with a number before the customer finds them
- Review a draft SLA and flag any clause that nothing can measure
- Resolve an unsupportable clause by clarifying the requirement or changing the design
Before you start
- Measuring if Claude is working
- Discovery for an AI project
Picture a clause search for an insurance claims team, two weeks after launch. The head of claims says: I thought it never makes mistakes.
Nobody promised that. But nobody wrote down what was promised either. Three ideas keep this from happening: a feedback loop, written expectations, and a review of the draft service level agreement (SLA). Behind all three is one question the architect keeps asking: can we keep this promise?
This project is plain Python with no model call. It's four small files that hold one week of feedback, the expectation gaps, the measured service levels and a draft SLA. Every number in it is an example; real targets are agreed with the customer.
Same product, three expectations
The claims team is using the clause search, and people are talking. A claims handler says an answer cited the wrong clause. The head of claims thought it never makes mistakes. Legal wants the source PDF shown for every answer. One product, three different expectations.
Silence isn't agreement. Expectations drift after launch unless you keep asking.
Think about a parcel delivery. The shop promises two days. Tracking shows it's on the way. If there's a delay, a good shop says so early. And the customer confirms it arrived. Your service works the same: a promise with a number you measure, feedback every week, telling them first when you miss, and reporting back what you changed. People forgive a late parcel that told them early. They don't forgive silence.
The weekly loop
Triage into four kinds: feedback.py
Each feedback item holds who said it, what they said and its kind. One kind needs a closer look: a gap is an expectation you never set, not a defect. The triage table gives each kind exactly one action, and every item gets a reply, even a no.
# One week of stakeholder feedback, sorted into four kinds.
# Each kind gets one action.
ITEMS = [
("claims handler", "Answer cited the wrong clause", "bug"),
("claims handler", "Answers feel slow after lunch", "bug"),
("head of claims", "I thought it never makes mistakes", "gap"),
("legal", "Show the source PDF for every answer", "request"),
("head of claims", "Let it approve small payouts", "out of scope"),
("claims handler", "Add the Spanish policies", "request"),
]
TRIAGE = {
"bug": "fix",
"gap": "explain",
"request": "backlog",
"out of scope": "decline",
}
if __name__ == "__main__":
replied = 0
for who, text, kind in ITEMS:
print(f"{kind:<12} -> {TRIAGE[kind]:<8} | {who}: {text}")
replied += 1 # every item gets an answer, even a no
print(f"replied to {replied} of {len(ITEMS)} items")
bug -> fix | claims handler: Answer cited the wrong clause
bug -> fix | claims handler: Answers feel slow after lunch
gap -> explain | head of claims: I thought it never makes mistakes
request -> backlog | legal: Show the source PDF for every answer
out of scope -> decline | head of claims: Let it approve small payouts
request -> backlog | claims handler: Add the Spanish policies
replied to 6 of 6 items
Two bugs get fixed. The gap gets explained with the measured numbers. Two requests go to the backlog for the sponsor to prioritise. Approving small payouts is out of scope, because a person approves every payout, so you decline and say why. Six items, six replies. A no is still an answer, and it keeps the loop closed.
Close expectation gaps in writing
expectations.py puts what people assume next to what you promise:
accuracy | assumes: It never makes mistakes | we promise: Wrong clauses are measured on a test set
scope | assumes: It will approve small payouts | we promise: A person approves every payout
speed | assumes: It answers instantly | we promise: Ten seconds for nine in ten answers
Say it in writing, with a number, before the customer finds the gap alone. The ten-second target is an example value.
Then measure against the promises. sla.py holds four service levels with a target, an owner and where each is measured:
answer time, 9 in 10 (seconds) | target 10 | measured 8 | met | platform team, monitoring
answers with a source clause (%) | target 95 | measured 97 | met | platform team, logs
wrong clause on the test set (%) | target 5 | measured 7 | MISSED | quality lead, evals
support reply to a ticket (hours) | target 4 | measured 3 | met | support, ticket tool
3 met, 1 missed
review with the customer: wrong clause on the test set (%)
One target was missed, and it goes on the agenda for the customer review. That's the parcel shop telling you about the delay before you notice it yourself. For more on choosing what to measure, see measuring if Claude is working.
Review the draft SLA: draft_sla.py
Before anyone signs, check each clause of the draft against what would measure it. One clause has nothing behind it.
# A draft SLA: what would measure each clause?
DRAFT = [
# clause, measured with (None = nothing)
# evals measure a rate, never "zero"
("answers in 10 seconds, 9 in 10", "monitoring"),
("every answer cites a source clause", "logs"),
("zero wrong clauses, ever", None),
("ticket reply in 4 hours", "ticket tool"),
]
FIXES = {
"clarify": "at most 5 in 100 wrong clauses on the test set",
"design": "show the source clause so a person can check it",
}
def supportable(evidence):
return evidence is not None
answers in 10 seconds, 9 in 10 | monitoring | ok
every answer cites a source clause | logs | ok
zero wrong clauses, ever | nothing | UNSUPPORTABLE
ticket reply in 4 hours | ticket tool | ok
1 clause cannot be kept: zero wrong clauses, ever
clarify the requirement: at most 5 in 100 wrong clauses on the test set
change the design: show the source clause so a person can check it
"Zero wrong clauses, ever" has nothing that measures it. Evals report a rate on a test set, never zero. A clause with no evidence behind it is a promise the architecture can't keep, and you want to find it before anyone signs.
Three tests for every clause
Look for three signs. Nothing can measure it: no eval, log or monitor. It depends on someone else: a provider term you don't control, so you don't promise their numbers. Or the design contradicts it: a person still approves every payout.
Then fix it one of two ways. Clarify the requirement: ask what the sponsor really needs and write that instead, so "zero wrong clauses" becomes "at most 5 in 100 wrong clauses on the test set". Or change the design: keep the intent and add the way to check it, here by showing the source clause so a person can verify the answer.
A judgment call
A draft says small payouts are approved within one minute. The discovery note says a person approves every payout. Adding servers can't speed up a person. Letting the assistant approve small payouts removes the control you promised. The fix is to clarify: the minute covers reaching the approver's queue. Promise what you control, and clarify the clause when a person owns the step.
The trap: the absolute promise
"It never makes mistakes." "It always answers instantly." "Zero wrong clauses, ever." Each one sounds calming, and none can be kept. Nobody can measure never. Always has no number. Evals measure a rate, not zero.
Compare promises you can keep: at most 5 in 100 wrong clauses on the test set; ten seconds for nine in ten answers, measured by monitoring; a review every week, with a path when you miss. The words give the absolute promise away: never, always, zero, ever, every. When you hear one, ask for a number and a review point.
Discovery is where the first of these promises usually appears; see running the first conversation.
Try it yourself
Add two clauses to DRAFT: "the provider's API is never down" and "answers in Spanish from next month". Decide what measures each one, or whether it's None, and which of the three tests it fails. Then write the clarified version. The project files for this lesson are in the community, free to join.
Recap
| Piece | Rule |
|---|---|
| Feedback loop | Weekly: collect, triage into four kinds, decide, report back to every person |
| Expectations | Close each gap in writing, with a number |
| Service levels | Each has a target, an owner and a place it's measured; a miss goes to the customer review |
| Draft SLA | A clause nothing can measure is unsupportable: clarify it or change the design |
Related course on Udemy
Claude Certified Architect - Professional (CCAR-P) Exam Prep
Architecting with Claude: design, models, context, integration, evals, governance and stakeholders.View on Udemy ↗: Claude Certified Architect - Professional (CCAR-P) Exam Prep (paid course, opens in a new tab)Related posts
Reading a Business Requirement Like an Architect: Function, Quality, Constraints and Assumptions
One sentence from an insurer's claims director becomes four buckets (function, quality, constraints, assumptions), two testable targets and five questions back to the business, before any design starts.
Discovery for an AI Project: Running the First Conversation, Five Question Groups and Three Red Flags
An insurance company says 'we would like an AI assistant'. That one sentence could be three different projects. Five question groups, asked to the right people, turn it into a one-page problem statement, and three red flags show what still blocks the design.
Communicating AI Decisions, Trade-offs and Risk to Executives: The Decision Card, the Risk Matrix and One Ask
A week before launch the CEO asks: is it safe to launch? Answer with a decision card that says what each option costs, a risk matrix where controls move a risk but never erase it, a one-page brief that ends with one ask, and an honest answer to 'can you guarantee it?'.
Documenting an AI Architecture for Handoff: One Document per Reader, a Handoff Gate and Rules With a Reason
On handoff day the platform team asks how to run the clause search at night, and the builders have moved on. Write one document per reader, check the handoff package for five elements before the team takes over, and keep the reasons behind every rejected option.
