Skip to content

1 Introduction and Goals

1.1 Requirements Overview

The product requirements are stated in SPEC.md (SPEC.md); each feature built against it has its own spec in docs/specs/ (docs/specs/).

1.1.1 Task

FeeCheck reconciles the remuneration promised in a distribution partner contract against the fee settlement master data maintained in the master-data system, and presents every deviation to a person for decision before payment is made (SPEC.md §1, "Goal").

1.1.2 Vision

Distribution partners should receive exactly the remuneration that was contractually agreed — and every deviation between contract text and settlement master data should be detected and explained before payment is made (SPEC.md §1, "Vision").

1.1.3 Core functions

No. Function AI role Status
KF-1 Contract intake and schema-conformant attribute extraction (value, confidence, evidence); the attributes are cut into slices in the business data model (docs/model/feecheck/data-model.md §4.2) Part of the solution built in part: intake and extraction joined, the first slice; the further slices planned
KF-2 Master data access through a strangler facade against the master-data system Tool planned
KF-3 Reconciliation and deviation classification (deterministic first, LLM only for the unclear) Part of the solution planned
KF-4 Review frontend with human release; layout in design.md Tool planned
KF-5 Findings exposed to AI integrations through FeeCheck's own MCP server (ADR-0011 (docs/adr/adr-0011-mcp-server-placement.md)) Part of the solution planned

1.2 Quality Goals

This is the binding ranking; SPEC.md §3 repeats only the IDs. In case of conflict this order applies, across all six goals. The full requirement text, rationale and verification of each goal are in 10.1 Quality Requirements Overview.

Rank ID Goal Category Why it dominates
1 ARC-Q4 Operability and deployment portability Architecture driver Constrains more decisions than any other requirement and cannot be retrofitted
2 SEC-Q3 Confidentiality Product quality Contract content carries partner terms and personal data; required by law (C1, C8), and a leak cannot be undone
3 REQ-Q1 Traceability Product quality A finding without evidence cannot be reviewed, audited, or defended against a partner query — and the review is what catches the extraction's errors
4 REQ-Q2 Extraction correctness Product quality A silent false negative becomes an incorrect payment that nobody looks for; the evidence of REQ-Q1 and the person who releases make an error visible before it counts
5 ARC-Q5 Modifiability Architecture driver Model, attribute schema, customer variants and neighbouring systems all change on different clocks
6 ARC-Q6 Simplicity (proportionality) Architecture driver With this load and this effort budget, over-engineering is the largest concrete project risk

ARC-Q4 is the single most important requirement of the six. Three reasons: it is externally imposed and non-negotiable (C1, C3, C4); it fails all-or-nothing — one hard dependency on a cloud-only managed service voids the on-premise promise for every customer; and it cannot be recovered incrementally, because retrofitting it later means reworking inference access, secrets, identity, messaging and observability at once. ARC-Q5 and ARC-Q6, by contrast, can be improved locally wherever they start to hurt, so they rank after the product qualities. SEC-Q3 comes before the other product qualities because it is required by law and irreversible; REQ-Q1 comes before REQ-Q2 because traceability is what lets a person catch an extraction error before any release.

1.3 Stakeholders

What each stakeholder expects of the architecture and of this description. Their interests and how they work with FeeCheck are SPEC.md (SPEC.md) §4.

Role Expectation of the architecture and its documentation Source
Project owner the options with their consequences and a recommendation before a decision is written; no decision recorded without approval; the open questions in one place (open.md) the repository's working agreement (CLAUDE.md), on the approval of decisions
Specialist reviewer — primary user every finding traceable to its evidence (REQ-Q1); nothing released without a person (G-4) SPEC.md §4
Approver in the business unit a release only through a named person, recorded SPEC.md §2, role approver
Business owner, partner remuneration the tolerance rules configurable, not coded (ARC-Q5) SPEC.md §4
Internal audit / compliance an append-only audit trail of every release decision, and how it is kept SPEC.md §4
Product owner, settlement platform the interfaces and the strangler cut towards the master-data system stated (3.2) SPEC.md §4
Data protection / InfoSec what leaves the organisation, where, and which guardrail stops it (SEC-Q3, 8.2) SPEC.md §4
Operator — builds and supplies FeeCheck its stack and development workflow kept, deviations recorded (2.2) C2
Operations of an installation every dependency with an on-premise equivalent (7.1.3); diagnosability from logs, metrics and traces (ARC-Q4) C3, C4
Developers and AI agents binding rules for the code they write (8.6); the decisions they build on, with sources README
Distribution partner — affected, not a user the remuneration agreed in the contract, checked before payment SPEC.md §1

They are the actors of the business context.

1.3.1 Contacts and expectations towards the architecture documentation

The named contacts behind the roles of 1.3, and what each expects beyond the table — the form, the depth and the format of the description they read:

TBD