Read in English
Seat Reservation Cancellation Spec Written by AI: Which Conditions Are Easy to Miss?
An AI-drafted seat reservation cancellation spec may look plausible for the happy path, but it tends to omit three conditions: the boundary at the cancellation deadline, duplicate requests arriving simultaneously, and refund processing failures. If the product manager does not fill in the acceptance criteria themselves, these gaps will surface not during development but as production incidents.
The Limits of a Cancellation Flow Drawn by an AI Draft
A cancellation spec generated by AI typically describes a single path: ‘the user presses the Cancel button, the reservation is deleted, and a refund is issued.’ Written in user story format, it reads something like: ‘As a booker, I want to cancel my reservation so that the seat becomes available again’—capturing only the goal and the action. Atlassian’s user story guide makes clear that this format is a starting point, not a finished product. Requirements are added later as the team reaches agreement, and the conditions under which a story is ‘done’ must be defined separately. Because an AI draft does not fill in those ‘done conditions,’ exception paths remain empty even though the spec may appear to cover every case to a developer. [1]
Missing Condition 1: The Boundary at the Cancellation Deadline
The item most often missing from a cancellation spec is not ‘until when can a user cancel?’ but ‘how is a request received at the exact moment of the deadline handled?’
Below are two hypothetical examples for comparison.
**Hypothetical Spec A (AI draft):** “Cancellation is allowed up to 24 hours before the performance.”
**Hypothetical Spec B (after review):** “Eligibility is determined based on the time the request is received by the server. Only requests received before 00 minutes 00 seconds of the 24-hour mark prior to the performance start time are processed as cancellations; requests received after that point return a non-cancellable notice screen. A ±1-second range around the boundary time is verified as a separate test case.”
Spec A contains the ’24-hour’ rule but does not specify the reference time (the user’s device or the server receipt time), boundary-value handling, or error messages. Atlassian explains that acceptance criteria are what make a story testable; when the boundary is as vague as in Spec A, test cases cannot be written at all. [1]
- Reference time: specify whether it is the time the user sends the request or the time the server receives it
- Boundary value: specify how a request received at exactly the deadline is handled (accepted or rejected)
- Error response: specify the message and status code returned to the user when the deadline has passed
Missing Condition 2: Duplicate Cancellation Requests
The case in which two or more cancellation requests arrive consecutively for the same reservation almost never appears in an AI draft. Typical scenarios include the user pressing the button twice, or the client automatically retrying after a network timeout.
Below is a hypothetical example.
**Hypothetical Spec A (AI draft):** “Process the cancellation request and change the reservation status to ‘Cancelled’.”
**Hypothetical Spec B (after review):** “If an additional cancellation request arrives for a reservation that is already being processed, wait for the result of the first request and return the same result. A re-request for a reservation that is already in ‘Cancelled’ status responds not with an error but with the message ‘This reservation has already been cancelled’.”
Whether duplicate requests are handled idempotently must be decided in the spec before developers can define implementation boundaries. According to Atlassian’s definition-of-done concept, a story is ‘done’ only when the user can achieve the desired outcome. If this decision is omitted, refunds may be issued twice or reservation statuses may conflict. [1]
- When a duplicate request arrives while processing is in progress: decide whether to wait for the first request’s result and return the same response
- Re-request for an already-cancelled reservation: choose between returning an error code or an informational message
- Client auto-retry scope: agree with the development team in the spec on whether this is permitted
Missing Condition 3: Refund Processing Failure
When a cancellation succeeds but the refund API call fails, an AI draft does not describe this path separately. The cause may be a temporary outage or timeout from the payment gateway.
Below is a hypothetical example.
**Hypothetical Spec A (AI draft):** “Proceed with the refund after processing the cancellation.”
**Hypothetical Spec B (after review):** “If the refund API call fails, keep the reservation status as ‘Cancelled’ but record the refund status separately as ‘Pending’. The operator checks the pending list and chooses either a manual retry or a customer notification. The user receives the message: ‘Your cancellation is complete; the refund will be processed within 3 business days’.”
Under Atlassian’s definition-of-done concept, a story is ‘done’ only when the user can achieve the desired outcome. A spec that notifies no one of a refund failure does not meet this standard. If the refund-failure path is not specified, developers are left to arbitrarily choose between ignoring the error and rolling back the cancellation itself. [1]
- Reservation status when refund fails: choose between keeping the cancellation or rolling it back
- Pending refund record: decide whether a separate list that operators can review is required
- User-facing message: wording that distinguishes between refund completed and refund pending is needed
How to Include the Three Conditions in Acceptance Criteria
Atlassian explains that acceptance criteria for a user story make the story testable and serve as the standard by which a team judges completion. If exception paths are not specified at the requirements stage, they risk being decided arbitrarily during implementation or discovered only during testing.
The following is a proposed list of items a product manager should add to acceptance criteria after receiving an AI draft. The specific values for each item (times, message wording, operational procedures) must be decided by the team. [1]
- Cancellation deadline: reference time for judgment, boundary-value handling direction, message returned when the deadline is exceeded
- Duplicate requests: response method when a request arrives while processing is in progress, handling of a re-request for an already-cancelled reservation
- Refund failure: reservation status handling direction, whether a pending list is recorded, user-facing message wording
- Include as a completion criterion whether a test case exists for each condition
Suggested Spec Review Order
When you receive a spec drafted by AI, reviewing it in the following order lets you systematically find the three missing conditions. This order is an editorial suggestion and should be adjusted to fit your team’s process.
First, check whether only the happy path is described. If there is no failure path between ‘the user presses the button’ and ‘the system processes it,’ exception conditions are missing. Next, for every sentence that mentions a time condition, ask about the boundary value. If it says ‘before the deadline,’ add ‘which side does the deadline moment itself belong to?’ Finally, for every step that calls an external system (payment gateway, notification service, etc.), describe the action to take on failure.
If, after these three reviews, items remain for which test cases still cannot be written, the acceptance criteria for those items are not yet complete. [1]
Further Reading
- How should a team get started when creating a Definition of Done together for the first time?
- How to control duplicate workflow runs in a GitHub Actions deployment workflow
References
Data Verification Standard
The official source was verified on November 20, 2026. As the content may be revised after this date, please check the original source for details.
日本語で読む
AIが書いた座席予約キャンセル仕様書、どんな条件が抜け落ちやすいか
AIが下書きした座席予約キャンセル仕様書は、正常系の流れは一見それらしく見えますが、キャンセル締め切り時点の境界、同時に届く重複リクエスト、返金処理の失敗という3つの条件を見落としがちです。プロダクトマネージャーが受け入れ基準を自ら埋めなければ、この抜け穴は開発段階ではなく本番運用中の障害として表面化します。
AIの下書きが描くキャンセルフローの限界
AIが生成したキャンセル仕様書は概して、「ユーザーがキャンセルボタンを押すと予約が削除され、返金が発生する」という単一経路を記述します。ユーザーストーリー形式で書くと、「予約者として、私は予約をキャンセルしたい、そうすることで座席が再び解放される」というように、目的と行動だけが含まれます。Atlassianのユーザーストーリーガイドは、この形式はあくまで出発点であり完成形ではないことを明確にしています。要件はチームが合意するまで後から追加されるものであり、ストーリーが「完了」となる条件は別途定義しなければならないと説明しています。AIの下書きはその「完了条件」を埋めていない状態のため、開発者から見てすべてのケースをカバーしているように見えても、例外経路が空のままになっています。 [1]
欠落条件1: キャンセル締め切り時点の境界
キャンセル仕様書で最も頻繁に抜け落ちる項目は、「いつまでキャンセルできるか」ではなく、「締め切り時刻ちょうどに届いたリクエストをどう処理するか」です。
以下は仮想例2つを比較したものです。
**仮想仕様書A(AI下書き):**「公演24時間前までキャンセル可能」
**仮想仕様書B(レビュー後):**「キャンセル可否は、リクエストがサーバーに受信された時刻を基準に判定する。公演開始24時間前の00分00秒より前にサーバーが受信したリクエストのみキャンセルとして処理し、それ以降に受信したリクエストにはキャンセル不可の案内画面を返す。境界時刻の±1秒の範囲は別途テストケースで検証する。」
Aは「24時間前」というルールはあるものの、基準時刻(ユーザーのデバイスなのかサーバーの受信時刻なのか)、境界値の処理方針、エラーメッセージを含んでいません。Atlassianは受け入れ基準がストーリーをテスト可能にする要素だと説明していますが、Aのように境界が不明確では、テストケース自体を書くことができません。 [1]
- 基準時刻:ユーザーがリクエストを送信した時刻なのか、サーバーが受信した時刻なのかを明記する
- 境界値:締め切り時刻ちょうどのリクエストの処理方針(許可/拒否)を明記する
- エラーレスポンス:締め切りを過ぎた場合にユーザーへ返すメッセージとステータスコードを明記する
欠落条件2: 重複キャンセルリクエスト
同じ予約に対してキャンセルリクエストが連続して2回以上届くケースは、AIの下書きにはほとんど登場しません。ユーザーがボタンを2回押す場合や、ネットワークタイムアウト後にクライアントが自動リトライする状況が典型例です。
以下は仮想例です。
**仮想仕様書A(AI下書き):**「キャンセルリクエストを処理し、予約ステータスを「キャンセル済み」に変更する。」
**仮想仕様書B(レビュー後):**「処理中状態の予約に追加のキャンセルリクエストが届いた場合は、最初のリクエストの結果を待ってから同じ結果を返す。すでに「キャンセル済み」状態の予約への再リクエストは、エラーではなく「この予約はすでにキャンセルされています」というメッセージで応答する。」
重複リクエストをべき等に処理するかどうかは、開発者が実装の境界を決められるよう仕様書の段階で決定しておく必要があります。Atlassianの完了定義の概念によれば、ストーリーが「完了」とみなされるにはユーザーが望む結果を達成できなければなりません。この決定が抜けると、返金が二重に発生したり、予約ステータスが競合したりするケースが生じます。 [1]
- 処理中状態で重複リクエストが届いた場合:最初のリクエストの結果を待ったうえで同じレスポンスを返すかどうかを決定する
- すでにキャンセル済みの予約への再リクエスト:エラーコードを返すか案内メッセージを返すかを選択する
- クライアントの自動リトライ範囲:仕様書の段階で開発チームと許可するかどうかを合意する
欠落条件3: 返金処理の失敗
キャンセルは成功したものの返金API呼び出しが失敗するケースを、AIの下書きは別途記述しません。決済代行会社の一時的な障害やタイムアウトが原因になりえます。
以下は仮想例です。
**仮想仕様書A(AI下書き):**「キャンセル処理後、返金を行う。」
**仮想仕様書B(レビュー後):**「返金APIの呼び出しが失敗した場合、予約ステータスは「キャンセル済み」のまま維持しつつ、返金ステータスを「保留」として別途記録する。運営者は保留リストを確認し、手動リトライまたはユーザーへの案内を選択する。ユーザーには「キャンセルが完了しました。返金は営業日ベースで3日以内に処理されます」というメッセージを返す。」
Atlassianの完了定義の概念では、ストーリーが「完了」とみなされるにはユーザーが望む結果を達成できなければなりません。返金の失敗を誰にも通知しない仕様書はこの基準を満たしません。返金失敗の経路を明記しなければ、開発者はエラーを無視するか、キャンセル自体をロールバックするかを任意に選択するしかなくなります。 [1]
- 返金失敗時の予約ステータス処理:キャンセルを維持するかロールバックするかを選択する
- 返金保留状態の記録:運営者が確認できる別途リストが必要かどうかを決定する
- ユーザー向けメッセージ:返金完了と返金保留中を区別する文言が必要
受け入れ基準に3つの条件を盛り込む方法
Atlassianは、ユーザーストーリーの受け入れ基準がストーリーをテスト可能にし、チームが完了を判断するための基準になると説明しています。例外経路を要件定義の段階で明記しなければ、実装段階で任意に決定されるか、テスト段階で発見されるリスクが生じます。
プロダクトマネージャーがAIの下書きを受け取った後、受け入れ基準に追加すべき項目の提案例をまとめると以下のようになります。各項目の具体的な値(時間、メッセージ文言、運用手順)はチームが直接決定する必要があります。 [1]
- キャンセル締め切り:判定の基準時刻、境界値の処理方針、期限超過時に返すメッセージ
- 重複リクエスト:処理中状態でのレスポンス方式、すでにキャンセル済みの予約への再リクエスト処理
- 返金失敗:予約ステータスの処理方針、保留リストの記録有無、ユーザー向けメッセージ文言
- 各条件に対応するテストケースが存在するかどうかを完了基準に含める
仕様書レビュー順序の提案
AIが下書きした仕様書を受け取った際、以下の順序でレビューすると3つの欠落条件を体系的に発見できます。この順序は編集者による提案であり、チームのプロセスに合わせて調整してください。
まず、正常経路だけが記述されていないか確認します。「ユーザーがボタンを押す」と「システムが処理する」の間に失敗経路がなければ、例外条件が抜け落ちています。次に、時間条件が登場する文ごとに境界値を問います。「締め切り前」と書かれていれば、「締め切り時刻ちょうどはどちらに属するか」を追加します。最後に、外部システム(決済代行会社、通知サービスなど)を呼び出すステップごとに、失敗時の行動を記述します。
この3つのレビューを経てもなおテストケースを書けない項目が残っている場合、その項目の受け入れ基準はまだ完成していません。 [1]
あわせて読む
参考資料
データ確認基準
2026年11月20日に公式原文を確認しました。内容はその後修正される可能性があるため、詳細は原文をご確認ください。
AI가 초안을 잡은 좌석 예약 취소 기획서는 정상 흐름은 그럴듯하게 보이지만, 취소 마감 시점 경계, 동시에 들어오는 중복 요청, 환불 처리 실패라는 세 가지 조건을 빠뜨리기 쉽습니다. 기획자가 수락 기준을 직접 채우지 않으면 이 빈틈은 개발 단계가 아니라 운영 중 장애로 드러납니다.

AI 초안이 그리는 취소 흐름의 한계
AI가 생성한 취소 기획서는 대체로 '사용자가 취소 버튼을 누르면 예약이 삭제되고 환불이 발생한다'는 단일 경로를 기술합니다. 사용자 스토리 형식으로 쓰면 "예매자로서, 나는 예약을 취소하고 싶다, 그래서 좌석이 다시 풀린다"처럼 목적과 행동만 담깁니다. Atlassian의 사용자 스토리 가이드는 이 형식이 출발점이지 완성이 아님을 명확히 합니다. 요구사항은 팀이 합의하기 전까지 나중에 추가되며, 스토리가 '완료'되는 조건을 별도로 정의해야 한다고 설명합니다. AI 초안은 그 '완료 조건'을 채우지 않은 상태이기 때문에, 개발자가 보기에 모든 경우를 커버한 것처럼 보여도 예외 경로가 비어 있습니다. [1]
누락 조건 1: 취소 마감 시점의 경계
취소 기획서에서 가장 자주 빠지는 항목은 '언제까지 취소할 수 있는가'가 아니라 '마감 시점 정각에 들어온 요청을 어떻게 처리하는가'입니다.
아래는 가상 예시 두 가지를 비교한 것입니다.
**가상 기획서 A (AI 초안):** "공연 24시간 전까지 취소 가능"
**가상 기획서 B (검토 후):** "취소 요청이 서버에 수신된 시각 기준으로 판정한다. 공연 시작 24시간 전 00분 00초 이전에 수신된 요청만 취소로 처리하고, 이후 수신된 요청은 취소 불가 안내 화면을 반환한다. 경계 시각의 ±1초 범위는 별도 테스트 케이스로 검증한다."
A는 '24시간 전'이라는 규칙은 있지만 기준 시각(사용자 디바이스인지, 서버 수신 시각인지), 경계값 처리, 오류 메시지를 담지 않습니다. Atlassian은 수락 기준이 스토리를 테스트 가능하게 만드는 요소라고 설명하는데, A처럼 경계가 불명확하면 테스트 케이스 자체를 쓸 수 없습니다. [1]
- 기준 시각: 사용자 요청 발신 시각인지, 서버 수신 시각인지 명시
- 경계값: 마감 정각 요청의 처리 방향(허용/거부) 명시
- 오류 응답: 마감 초과 시 사용자에게 반환하는 메시지와 상태 코드 명시
누락 조건 2: 중복 취소 요청
같은 예약에 대해 취소 요청이 연속으로 두 번 이상 들어오는 경우는 AI 초안에서 거의 등장하지 않습니다. 사용자가 버튼을 두 번 누르거나, 네트워크 타임아웃 후 클라이언트가 자동 재시도하는 상황이 대표적입니다.
아래는 가상 예시입니다.
**가상 기획서 A (AI 초안):** "취소 요청을 처리하고 예약 상태를 '취소됨'으로 변경한다."
**가상 기획서 B (검토 후):** "취소 처리 중 상태인 예약에 추가 취소 요청이 들어오면 첫 번째 요청의 결과를 기다린 뒤 동일 결과를 반환한다. 이미 '취소됨' 상태인 예약에 대한 재요청은 오류가 아닌 '이미 취소된 예약입니다' 메시지로 응답한다."
중복 요청을 멱등하게 처리할지 여부는 기획서에서 미리 결정해야 개발자가 구현 경계를 정할 수 있습니다. Atlassian의 완료 기준 개념에 따르면, 스토리가 '완료'되려면 사용자가 원하는 결과를 달성할 수 있어야 합니다. 이 결정이 빠지면 환불이 두 번 발생하거나 예약 상태가 충돌하는 경우가 생깁니다. [1]
- 처리 중 상태에서 중복 요청이 오면: 첫 요청 결과 대기 후 동일 응답 반환 여부 결정
- 이미 취소된 예약 재요청: 오류 코드 vs 안내 메시지 중 선택
- 클라이언트 자동 재시도 범위: 기획서에서 허용 여부를 개발팀과 합의
누락 조건 3: 환불 처리 실패
취소는 성공했지만 환불 API 호출이 실패하는 경우, AI 초안은 이 경로를 별도로 기술하지 않습니다. 결제 대행사의 일시 장애나 타임아웃이 원인이 될 수 있습니다.
아래는 가상 예시입니다.
**가상 기획서 A (AI 초안):** "취소 처리 후 환불을 진행한다."
**가상 기획서 B (검토 후):** "환불 API 호출이 실패하면 예약 상태를 '취소됨'으로 유지하되 환불 상태를 '대기'로 별도 기록한다. 운영자는 대기 목록을 확인하고 수동 재시도 또는 고객 안내를 선택한다. 사용자에게는 '취소가 완료됐으며 환불은 영업일 기준 3일 이내 처리됩니다'라는 메시지를 반환한다."
Atlassian의 완료 기준 개념에서, 스토리가 '완료'되려면 사용자가 원하는 결과를 달성할 수 있어야 합니다. 환불 실패를 아무에게도 알리지 않는 기획서는 이 기준을 충족하지 못합니다. 환불 실패 경로를 명시하지 않으면 개발자는 오류를 무시하거나 취소 자체를 롤백하는 두 선택 중 임의로 하나를 고르게 됩니다. [1]
- 환불 실패 시 예약 상태 처리: 취소 유지 vs 취소 롤백 중 선택
- 환불 대기 상태 기록: 운영자가 확인할 수 있는 별도 목록 필요 여부
- 사용자 안내 메시지: 환불 완료와 환불 대기 중을 구분하는 문구 필요
수락 기준에 세 조건을 담는 방법
Atlassian은 사용자 스토리의 수락 기준이 스토리를 테스트 가능하게 만들고, 팀이 완료를 판단하는 기준이 된다고 설명합니다. 예외 경로를 명세 단계에서 명시하지 않으면 구현 단계에서 임의로 결정되거나 테스트 단계에서 발견된다는 위험이 생깁니다.
기획자가 AI 초안을 받은 뒤 수락 기준에 추가해야 할 항목을 제안 예시로 정리하면 다음과 같습니다. 각 항목의 구체적인 값(시간, 메시지 문구, 운영 절차)은 팀이 직접 결정해야 합니다. [1]
- 취소 마감: 판정 기준 시각, 경계값 처리 방향, 초과 시 반환 메시지
- 중복 요청: 처리 중 상태에서의 응답 방식, 이미 취소된 예약 재요청 처리
- 환불 실패: 예약 상태 처리 방향, 대기 목록 기록 여부, 사용자 안내 문구
- 각 조건에 대응하는 테스트 케이스 존재 여부를 완료 기준으로 포함
기획서 검토 순서 제안
AI가 초안을 쓴 기획서를 받았을 때, 아래 순서로 검토하면 세 가지 누락 조건을 체계적으로 찾을 수 있습니다. 이 순서는 편집자 제안이며, 팀의 프로세스에 맞게 조정해야 합니다.
먼저 정상 경로만 기술되어 있는지 확인합니다. '사용자가 버튼을 누른다'와 '시스템이 처리한다' 사이에 실패 경로가 없으면 예외 조건이 빠진 것입니다. 다음으로 시간 조건이 등장하는 문장마다 경계값을 묻습니다. '마감 전'이라고 쓰였다면 '마감 정각은 어느 쪽에 속하는가'를 추가합니다. 마지막으로 외부 시스템(결제 대행사, 알림 서비스 등)을 호출하는 단계마다 실패 시 행동을 기술합니다.
이 세 검토를 거친 뒤에도 테스트 케이스를 쓸 수 없는 항목이 남아 있다면, 그 항목은 아직 수락 기준이 완성되지 않은 것입니다. [1]
함께 읽기
참고한 자료
자료 확인 기준
2026년 11월 20일에 공식 원문을 확인했습니다. 자료는 이후 수정될 수 있으므로 세부 내용은 원문을 확인해 주세요.

답글 남기기