AgileAiPro - Govern. Certify. Create.

Case Study: AAF Framework in Action - An E-commerce Team's Order Cancellation and Refund Module

By Anshul Gupta · Published 2026-08-18 · Strategy & Leadership

Case Study: AAF Framework in Action - An E-commerce Team's Order Cancellation and Refund Module

Team Size: 7 members

Composition: Priya (Product Owner), Rahul (Scrum Master), Ankit, Meera, Vikram (3 Developers), Sana, Farhan (2 QA)

Project: An order-cancellation and refund-processing module for an e-commerce platform, where AI drafts the refund calculation logic, customer-facing cancellation messages, and an internal staff dashboard.

Day 1: Splitting the Roles

The team's first decision came before a single line of code was written. The team split the roles :

  • Rahul (Scrum Master) → Trust Lead. He watches the overall pattern of AI-assisted work across the sprint, not individual approvals.
  • Ankit (Senior Developer) → Reviewer. He holds the gate on anything genuinely high-risk.
  • Priya (Product Owner) → Task Owner. She tags work at planning time, as she always has.

Meera and Vikram, the other two developers, and Sana and Farhan, the two QA engineers, kept their existing roles, but now had a clear picture of who to route work through depending on how risky it was. The entire decision took five minutes inside a normal planning conversation.

Sprint 1: Planning Check

At sprint planning, Priya tagged the backlog by who or what would actually do the work, and how much was at stake if it went wrong:


Refund amount calculation logic

Owner: Meera | Tag: AI-led | Risk Tier: High-risk


Your order has been cancelled" customer message

Owner: Vikram | Tag: Shared | Risk Tier: Medium-risk


Internal staff dashboard for cancellation analytics

Owner: Ankit (build) | Tag: AI-led | Risk Tier: Internal-only


By the end of Sprint 1, the team had completed 20 tasks in total. Of those, 12 were human-led, 5 were AI-led, and 3 were shared between a person and AI.

Daily Updates

Each standup carried one additional line beyond the usual status update:

Meera: "Refund calculation function is done, AI-assisted, sending to Ankit for review, it's high-risk."
Vikram: "Cancellation message draft is ready, AI-generated, medium-risk, sending for peer review."
Sana: "I'll pick up Vikram's message for peer review today."
Farhan: "Dashboard build is on track, internal-only, no review needed once QA passes it functionally."

Rahul read every update. He approved nothing. His job was to notice the shape of the pattern, not sign off on individual pieces.

Midpoint Check

On day six, Rahul noticed something the initial tag hadn't captured. Vikram's cancellation message, originally tagged medium-risk, had evolved. It now included the refund amount and timeline directly in the message to the customer: "Your ₹450 refund will arrive in 3 days." What had started as a routine status update was now carrying financial information.

The tag was updated on the spot, from medium-risk to high-risk, and the task was rerouted to Ankit for a full review instead of Sana's peer check. Tags in this framework are not fixed at planning time. They move as the actual scope of the work becomes clearer.

The Review Gate Catch

Ankit reviewed Meera's refund calculation logic line by line. He found a genuine rounding error. Any refund landing on a half rupee, ₹999.50 for example, was being rounded down to ₹999 by the AI-generated logic. Fifty paise, silently, on every affected transaction.

He sent it back to Meera for a fix. This is the loop the AAF flow is built around: a "no" at the Review Gate routes the work back to development, not around it. Meera corrected the logic and resubmitted it the same afternoon, and Ankit signed off on the second pass.

In parallel, Vikram's cancellation message, now correctly tagged high-risk after the midpoint update, also went through Ankit and passed. Sana, who had originally been assigned to peer-review it before the tag changed, instead picked up a different medium-risk task that sprint, a confirmation email for partial refunds, and cleared it in about ten minutes.

Farhan, meanwhile, finished functional QA on the internal staff dashboard. Since it was tagged internal-only from the start, no risk-based review was needed, only Farhan's normal testing pass to confirm it worked correctly.

Three different levels of scrutiny, applied by four different people, inside the same sprint, based on what was actually at stake in each case, not a blanket policy applied to everything.

Sprint Review

The sprint review ran exactly as it always had, with one additional line in the summary: 40% of this sprint's completed work was AI-assisted, and every piece of it that reached a customer was reviewed by a person before it shipped.

AI Retrospective

Rahul led a fifteen-minute segment at the close of the retrospective, with the whole team present. He pointed out that this was the second money-related AI error the team had caught in early drafts that sprint, not counting the one that made it all the way to review.

Meera added her own observation: both times, the AI had handled the core logic correctly but mishandled rounding specifically. Ankit agreed this was worth a standing rule rather than a one-off fix.

The team set a new rule on the spot: any AI-generated logic touching currency or financial calculations would be automatically tagged high-risk at planning time going forward, with no case-by-case judgment call required. That rule fed directly into Sprint 2's planning, and Priya added it to the team's tagging checklist that same day.

How the Metrics Were Actually Calculated

AI-Assisted Work Percentage


AI-Assisted % = (AI-led tasks + Shared tasks) ÷ Total tasks × 100

For Sprint 1: 5 AI-led tasks + 3 shared tasks = 8 tasks, out of 20 total.


8 ÷ 20 × 100 = 40%

This number came directly from the tags Priya applied during planning and the team logged in daily updates. No estimation was involved.

AI Error Rate


AI Error Rate = (AI-assisted tasks requiring rework) ÷ (Total AI-assisted tasks reviewed) × 100

This is calculated only against the 8 AI-assisted tasks that actually went through review, not against all 20 tasks in the sprint, because the question being answered is specifically how often AI-assisted work needs correction.

For Sprint 1: 1 task required rework (Meera's refund rounding bug), out of 8 AI-assisted tasks.


1 ÷ 8 × 100 = 12.5%

By Sprint 4, after the new currency-related standing rule had been in place for a few cycles, the picture had shifted. The team, now more confident in AI-assisted work across the board, tagged 12 tasks as AI-assisted that sprint. Only 1 required rework, an unrelated minor issue Farhan flagged during dashboard testing, not a currency error.


1 ÷ 12 × 100 = 8.3%

AI-assisted work increased, from 8 tasks to 12, while the error rate dropped, from 12.5% to 8.3%. The improvement wasn't the result of using AI less. It came from a specific rule, generated by an honest retrospective, that changed how one category of risk was handled going forward.

Internal-only tasks that shipped without review, like Farhan's dashboard, were never included in this calculation, since a task that was never reviewed for correctness cannot meaningfully be marked as passing or failing.

Sprint 7: Launch

The module went live on schedule. In the final retrospective, with all seven team members present, three things stood out. No customer-facing output, whether built by Meera, Vikram, or anyone else, had shipped without a human check. A genuine financial bug had been caught before it ever reached a customer. And the team, Priya tagging, Rahul watching the pattern, Ankit gating the high-risk work, Meera and Vikram building, Sana and Farhan reviewing and testing, had moved from an informal way of working to a structured one, without depending on any single person to hold it all together.


This is what the AAF Framework actually looks like in a working team: seven people, three tiers of scrutiny running in the same sprint, tags that move as the work becomes clearer, and a retrospective that turns one caught bug into a permanent rule instead of a one-off save.

If you're running a team that's shipping AI-assisted work right now, whether that's officially sanctioned or just happening quietly, this is the kind of structure worth having in place before the rounding bug is something bigger.

AgileAiPro's certification path, AAF Foundation through AAF for Regulated Industries, is built to help you set this up properly on your own team, not just read about it. Details at agileaipro.com.

Read this post on AGILEAIPRO