Skip to content

Record the MF White List provider (ADR-0023) - #265

Merged
milten89 merged 1 commit into
developfrom
docs/mf-white-list-adr
Nov 10, 2026
Merged

milten89 merged 1 commit into
developfrom
docs/mf-white-list-adr

Conversation

@milten89

@milten89 milten89 commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Closes #212

What

ADR-0023, the provider ADR for OpenUrzednik.MF.WhiteList. It answers every item of ADR-0016's readiness checklist (protocol, auth, quota, personal data, fixtures, terms, legal basis and meaning, batch results, dependencies, names) and records:

  • Clients:
    • WhiteListClient covers search and check on api/, and WhiteListStatusClient covers WL2 on api2/.
    • Type prefix WhiteList; the DI methods carry the package name.
  • Validation before sending:
    • identifiers through src/Identifiers;
    • the date: not in the future, not before 1 January five years back, by the Warsaw calendar;
    • a batch of 1–30 identifiers: every invalid one is returned, indexed (nips[3]).
  • The proof: RequestId and RequestDateTime (a DateTimeOffset in Warsaw time, with a DST rule) come with every answer. "Not on the list" (api/ with no subject, WL2's B) is WhiteListNotFoundError carrying the proof.
  • Errors: provider subclasses (ADR-0021) with IWhiteListErrorCode.
    • 429 is a rate-limit error. Its RetryAfter falls back to the next midnight in Warsaw, documented as an estimate.
    • WL-195 and WL-196 mean "service unavailable".
    • WL-197 is an unknown error and isn't retried.
    • WL2's I and D mean "query rejected", and X means "service inactive".
  • Resilience: a BCL-only WhiteListRetry.ShouldRetryAsync filter for the app's own resilience handler. No new dependency, and ADR-0004 is unchanged.
  • Telemetry and privacy: masked identifier tags, display paths, no PESEL, and response data kept out of logs and errors.

The implementation issues are #257–#264 (triaged, milestone 1.1.0, chained with blockedBy). Their bodies match the ADR.

Decisions

Every open point was settled by the maintainer in chat on 2026-11-08, so the ADR is accepted (ADR-0022).

Checks

  • Docs-only change.
  • Facts come from the ministry's spec v1.6.2: the Swagger contract, the error-code table and the test data. Legal facts come from the consolidated acts. Behaviour was probed live on the test and production hosts on 2026-11-08.
  • reviewer agent, two rounds:
    • The first round had two blocking points, both fixed: the resilience dependency, and WL2 B.
    • The second round found nothing blocking. Its should-fix items are applied (the Polly scope, body buffering), and so are its nits.

🤖 Generated with Claude Code

Answers ADR-0016's readiness checklist for OpenUrzednik.MF.WhiteList:
two clients (search and check, WL2 status), required dates with local
validation, the proof (requestId, requestDateTime as a Warsaw
DateTimeOffset) on every answer and on WhiteListNotFoundError, the
API's codes as provider error types with IWhiteListErrorCode, batch
partial results, masked telemetry with display paths, and a BCL-only
retry filter for the app's resilience handler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@milten89 milten89 added the documentation Improvements or additions to documentation label Nov 8, 2026
@milten89
milten89 merged commit f24d01f into develop Nov 10, 2026
11 of 12 checks passed
@milten89
milten89 deleted the docs/mf-white-list-adr branch November 10, 2026 19:18
@milten89 milten89 added the provider:white-list Affects OpenUrzednik.MF.WhiteList (and its variants) label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation provider:white-list Affects OpenUrzednik.MF.WhiteList (and its variants)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

MF White List provider: write its ADR

1 participant