# Epic 007 implementation tasks

Product decisions are recorded in the [epic specification](../README.md). Execute one task at a
time, in dependency order, on its own branch. Update each task file and this index together.

Every task inherits this execution contract:

1. Read the epic scenarios, resolved product decisions, relevant architecture and testing guidance,
   current state, and handover; inspect the implementation before editing.
2. Keep provider vocabulary in adapters and persistence details in repositories. Preserve
   authentication, CSRF, diagnostics redaction, and money-operation no-retry behavior.
3. Include the exact applicable `REFUND-Sxx` IDs in test titles or native metadata and keep the
   evidence table in the epic README current.
4. Add focused tests at the lowest useful level, plus the required database, HTTP, component, or
   browser evidence for the task.
5. Run `pnpm quality` before completing each task and any additional acceptance checks stated in its
   file. Record actual results in current state and handover.
6. Do not mark a task implemented until its evidence is complete. Commit only the task's relevant
   implementation, tests, documentation, status, and handover changes.

| Task                                  | Behavior                                                 | Depends on | Status    |
| ------------------------------------- | -------------------------------------------------------- | ---------- | --------- |
| [REFUND-TASK-001](REFUND-TASK-001.md) | Add refund domain and durable-operation foundation       | None       | Completed |
| [REFUND-TASK-002](REFUND-TASK-002.md) | Complete Surfboard full-refund adapter                   | 001        | Completed |
| [REFUND-TASK-003](REFUND-TASK-003.md) | Add deterministic fake and Mocking Bird refund adapters  | 001        | Completed |
| [REFUND-TASK-004](REFUND-TASK-004.md) | Implement refund application, HTTP, and history contract | 001–003    | Completed |
| [REFUND-TASK-005](REFUND-TASK-005.md) | Add active KDS refund action                             | 004        | Completed |
| [REFUND-TASK-006](REFUND-TASK-006.md) | Add order-history refund action and presentation         | 004        | Completed |
| [REFUND-TASK-007](REFUND-TASK-007.md) | Complete refund journeys and release evidence            | 005–006    | Completed |
