---
id: FAS-ACC-REC-02
title: Deposit Matching acceptance
feature: FEAT-ACC-REC-02
product_area: accounting
module: reconciliation
revision: 1
status: proposed
product_intent: proposed
source_sha:
  services-accounting: f47cb263875bbc0c5640fba7dae6785ec32695f8
  react-console: baf6dae382d6f41dce976c7f848667ccc37e076f
capabilities:
  - CAP-ACC-REC-008
  - CAP-ACC-REC-009
  - CAP-ACC-REC-010
scenarios:
  - id: FAS-ACC-REC-02-01
    title: Capture evidence and deductions explain the deposit
    kind: behaviour
    exercises:
      - CAP-ACC-REC-008
      - CAP-ACC-REC-009
      - CAP-ACC-REC-010
    relies_on:
      - ATS-ACC-REC-008-11
      - ATS-ACC-REC-009-03
      - ATS-ACC-REC-010-04
    preconditions: >-
      A deposit of 972500 minor units has captures of 1020000, a refund of 20000, a fee of 22500 and a reserve
      hold of 5000.
    steps:
      - do: 'Open the explanation, claim the captures and refund, then add the documented fee and reserve hold.'
        expect: >-
          The explanation is balanced and open, with manual entries separate from the matched operational
          sources.
        provenance: test
        source: 'services-accounting:modules/reconciliation/tests/e2e/reconciliation-scenario.e2e.spec.js'
    expected: 'The explanation is balanced and open, with manual entries separate from the matched operational sources.'
    negative: false
    data_needs: 'Run-owned financial context and records, current versions and separate callers with the stated grants.'
    bound_to:
      - TST-ACC-REC-028
    provenance: test
    source: 'services-accounting:modules/reconciliation/tests/e2e/reconciliation-scenario.e2e.spec.js'
  - id: FAS-ACC-REC-02-02
    title: Removing a deduction changes preparation
    kind: interaction
    exercises:
      - CAP-ACC-REC-008
      - CAP-ACC-REC-009
      - CAP-ACC-REC-010
    relies_on:
      - ATS-ACC-REC-008-09
      - ATS-ACC-REC-009-03
      - ATS-ACC-REC-010-06
    preconditions: A draft balances after a capture and a manually documented fee.
    steps:
      - do: Remove the fee and reload the workspace and source grouping.
        expect: 'The fee is withdrawn, the capture remains claimed and the draft becomes unbalanced.'
        provenance: proposed
        source:
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
    expected: 'The fee is withdrawn, the capture remains claimed and the draft becomes unbalanced.'
    negative: false
    data_needs: 'Run-owned financial context and records, current versions and separate callers with the stated grants.'
    bound_to: []
    provenance: proposed
    source:
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
  - id: FAS-ACC-REC-02-03
    title: Releasing all preparation returns to an empty draft
    kind: lifecycle
    exercises:
      - CAP-ACC-REC-008
      - CAP-ACC-REC-009
      - CAP-ACC-REC-010
    relies_on:
      - ATS-ACC-REC-008-03
      - ATS-ACC-REC-009-05
      - ATS-ACC-REC-010-06
    preconditions: An open explanation holds a capture and a manual fee.
    steps:
      - do: 'Release the capture and remove the fee, then reload the workspace.'
        expect: 'Preparation has no active claims, retains its earlier activity and shows the empty draft difference.'
        provenance: proposed
        source:
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
    expected: 'Preparation has no active claims, retains its earlier activity and shows the empty draft difference.'
    negative: false
    data_needs: 'Run-owned financial context and records, current versions and separate callers with the stated grants.'
    bound_to: []
    provenance: proposed
    source:
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
  - id: FAS-ACC-REC-02-04
    title: Inspection grants do not permit preparation changes
    kind: permission
    exercises:
      - CAP-ACC-REC-008
      - CAP-ACC-REC-009
      - CAP-ACC-REC-010
    relies_on:
      - ATS-ACC-REC-008-10
      - ATS-ACC-REC-009-09
      - ATS-ACC-REC-010-09
    preconditions: A reader can open the workspace and inspect candidate explanations.
    steps:
      - do: 'Attempt to claim a capture, add a fee and edit notes using that reader.'
        expect: The workspace remains inspectable and each attempted preparation change is forbidden.
        provenance: proposed
        source:
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
    expected: The workspace remains inspectable and each attempted preparation change is forbidden.
    negative: true
    data_needs: 'Run-owned financial context and records, current versions and separate callers with the stated grants.'
    bound_to: []
    provenance: proposed
    source:
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
  - id: FAS-ACC-REC-02-05
    title: Partial save remains visible after a later failure
    kind: regression
    exercises:
      - CAP-ACC-REC-008
      - CAP-ACC-REC-009
      - CAP-ACC-REC-010
    relies_on:
      - ATS-ACC-REC-008-08
      - ATS-ACC-REC-009-10
      - ATS-ACC-REC-010-01
    preconditions: A console draft includes a valid release and an invalid manual addition.
    steps:
      - do: 'Save the draft, fail the later addition and reload its persisted preparation.'
        expect: >-
          Successful earlier commands remain committed and the failed addition is absent; the reloaded draft
          exposes the partial save.
        provenance: proposed
        source:
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
          - >-
            specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
    expected: >-
      Successful earlier commands remain committed and the failed addition is absent; the reloaded draft
      exposes the partial save.
    negative: true
    data_needs: 'Run-owned financial context and records, current versions and separate callers with the stated grants.'
    bound_to: []
    provenance: proposed
    source:
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
      - >-
        specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
evidence:
  - specs/accounting/reconciliation/planning/features/FEAT-ACC-REC-02-matching-workspace.md
  - >-
    specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-008-open-a-reconciliation-over-a-deposit-and-see-what-explains.md
  - >-
    specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-009-claim-what-a-deposit-paid-out-without-two-people-claiming.md
  - >-
    specs/accounting/reconciliation/planning/capabilities/CAP-ACC-REC-010-enter-the-fees-reserves-and-corrections-the-processor-took.md
---

# Deposit Matching: Feature Acceptance Suite

## What the Feature Must Do as a Whole

Capture evidence and deductions explain the deposit. The feature cases use shared financial records so that a successful action remains meaningful when staff inspect or continue the work. Permission and regression cases revisit that same outcome when access or a known failure changes the path.

## Interactions Between Capabilities

Removing a deduction changes preparation. Remove the fee and reload the workspace and source grouping. Proposed chains require executable proof as a whole; separately bound capability outcomes do not establish their combined execution.

## Regression Record

| Revision | Change | Scenario | Why |
|---|---|---|---|
| 1 | initial | all | Establish cumulative feature coverage from the landed planning and design contracts. |
