Skip to content

11 Risks and Technical Debts

11.1 Risks

Ordered by the quality goal each one threatens, in the rank of 1.2.

ID Threatens Risk Mitigation
RISK-3 ARC-Q4 The event backbone rests on a small library with one maintainer — ZenWave's externalizer for Spring Cloud Stream — and on two Flowable extensions beyond CMMN, the send event task and the event-registry event listener (8.16.3) A spike before the case engine is built checks: the Event Registry bridge in both directions with Flowable's exact API, and that the outbound adapter runs inside the engine command's transaction; the stage task of 6.1.2 and a retry through the change of plan-item state; ZenWave's externalizer with the Pub/Sub binder on Spring Boot 4.1 against the emulator, the ordering key and a failed ordered publish; the push path end to end on the emulator; Flowable on H2; and the repository's dependency check of the externalizer. The library is a few classes, copied into FeeCheck if it needs a change or stalls
RISK-4 ARC-Q4 The PoC knows one identity provider, Google, and validates the sign-in in the backend; a customer's own provider has never been connected The sign-in is OIDC through Spring Security, the provider chosen per installation (4.5); the API gateway takes the sign-in over (ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md))
RISK-5 ARC-Q4 Cloudflare Access stands in front of the public name, and its on-premise equivalent is TBD (7.1.3) — a dependency ARC-Q4.3 does not admit without one The open question 7.1.3 — Cloudflare Access; the API gateway is the only public entry FeeCheck itself relies on
RISK-6 ARC-Q4 The session is held in memory, so the backend runs at most one instance: a new revision or a restart signs everybody out, and the backend cannot scale out Spring Session on the case database (ADR-0008 (docs/adr/adr-0008-google-sign-in-and-backend-on-cloud-run.md) §7), or the gateway's session (ADR-0010 (docs/adr/adr-0010-api-gateway-and-api-contract.md))
RISK-7 SEC-Q3 The hosted Mistral API is the deployed model endpoint: its availability, and where it processes the contract text, are the provider's A second provider, Gemini on Vertex AI in the EU, selected by configuration; a customer-operated model as the on-premise form (TD-8); a failing model ends in the extraction's defined fallback (8.7)
RISK-1 ARC-Q5 The strangler decision can only be validated against the mock, not against production Contract tests run against the stub and the real adapter alike (ADR-0003 §2.5 rule 4)
RISK-2 ARC-Q6 The technology surface (Pub/Sub, Cloud Storage, PostgreSQL with pgvector, the Flowable CMMN engine, Spring Cloud Stream, MCP; Kafka of the concept is replaced by ADR-0009 (docs/adr/adr-0009-async-intake-pubsub-bucket-firestore.md), Firestore by PostgreSQL) drives effort more than the domain does Every component needs an ADR naming the requirement that forces it (ARC-Q6.1); OQ-7
RISK-8 10.1.8 docling-serve runs at concurrency 1 and scales to zero: a second upload waits for the first, and the first after an idle period waits for a cold start The backend's health probe within the cold-start budget of 2 minutes and the queue's redelivery (7.1.2); a minimum instance is a configuration change if the waiting becomes a problem
RISK-9 10.1.8 The operational database is one shared-core Cloud SQL instance, outside the Cloud SQL SLA and, whenever it is stopped by hand or its paused schedule is resumed, unreachable (ADR-0013 (docs/adr/adr-0013-postgresql-on-cloud-sql.md)): a backend that starts while it is stopped fails its start The instance runs always on while development is active, its stop/start jobs paused; if they are resumed it is started by hand outside the hours (guide (docs/guides/cloud-sql.md)); region and backups are open; ADR-0013 §6 names when to leave shared core

11.2 Watch list

Item Now Promotion trigger
Modifiability of the attribute schema The decided cut is 19 attributes in four slices (1.1.3), but each new contract type adds fields. If the target schema is compiled in, every extension becomes a release The first request for an attribute set that differs per contract type, or a second consumer of the extraction result with a different schema
Tenant isolation Not in the PoC (4.6) The product is adapted to other use cases or a less sensitive customer base and multi-tenancy is reconsidered. That would make isolation an architecture driver of the same rank as ARC-Q4

11.3 Technical debt

Where the repository and its documents disagree, or a promise of chapter 10 is not kept yet.

ID Debt Where it is paid
TD-1 All five stubs — the converter's, the extractor's, the queue's, the case store's and the document store's (8.13) — sit in the production sources, against ADR-0003 §2.5 rule 1 (a separate test-support tree, never the production tree) the ADR-0003 review — not an editorial fix
TD-2 ~~Intake and extraction are not connected; evidence carries no page number yet~~ paid
TD-3 ~~The extraction's response parser logs values and passages at WARN, the Mistral adapter the raw answer at DEBUG and an exception message that can carry a response body — against G-6~~ paid
TD-4 ~~An UNSUPPORTED value still counts towards the extraction's completeness in the code, against the decision this document already states (8.6, 10.1.1, QS-2)~~ paid
TD-5 ~~The PIT threshold in the build file is 90 %, not the decided 95 %; several comments still describe earlier stages~~ paid
TD-6 ADRs referenced but never written (open.md): the shared central database of C6 and the strangler cut; the identity provider needs none, being chosen per installation (4.5) the project owner
TD-7 ~~docling-serve is pinned by tag, not by digest (ARC-Q4)~~ paid
TD-8 Two real inference adapters — Mistral, and Gemini on Vertex AI — but no evaluation set: the two-provider evaluation run of ARC-Q4.2 / NFR-7 and a customer-operated model (7.1.3) are not possible yet the evaluation set (REQ-Q2)
TD-9 ~~The PlantUML container view draws the target, not the code~~ paid
TD-10 ADR-0003 §2.7 decides a namespace and a repository name that are not the ones in use (net.lauper.feecheck, aise-feecheck-poc) the ADR-0003 review
TD-11 No structured guardrail events are emitted yet, except G-5's events per model call, per tool call, per stopped loop, per re-ask and per extraction outcome (8.2 names them) with the components that enforce them
TD-12 Three vocabularies for confidence and a double meaning of NOT_FOUND (12) the data model review
TD-13 ~~Without the case database the deployed backend keeps the case in its in-memory stub: a case is lost on a restart or a scale to zero (7.1.2)~~ paid