Skip to content

MF White List: ship it (packaging and docs) #264

Closed

Description

@milten89

Step 9 of the MF White List provider (#212, ADR-0023). Makes both packages publishable for 1.1.0 (/new-provider, last part).

Scope

  • IsPackable=true on both packages; the icon (assets/branding, BRANDING.md, the PNG in version.json pathFilters and the nuget-pre-release.yml paths filter, RELEASE-PROCESS.md).
  • check_nuget.py and the package count in /prepare-release.
  • README.md and README.pl.md for both packages: quota, the legal meaning of requestId, the host change, telemetry (the telemetry reference lists the metric openurzednik.client.operation.duration with its unit and tags, as the NBP README's Metrics section does, and a test compares the names, units and tags a client records with that reference, ADR-0025 Confirmation; a test that a client given MeterMetrics.GetShared(WhiteListTelemetry.SourceName) records on every target, net472 included), and the note that traces still carry the path (ADR-0019). /stop-slop on the English and /miodkuj on the Polish.
  • Root READMEs, the Core README where it lists providers, the CLAUDE.md project table, the issue-form dropdowns, SUPPORT.md, and a provider:mf label (created, and listed in docs/GITHUB-SETUP.md).
  • Every White List shard at 100%.

Done when

  • dotnet pack OpenUrzednik.Packages.slnf -c Release packs both packages with their READMEs and icon, and every place /new-provider lists is done.

Context for the implementing agent

Where this fits. Milestone 1.1.0 ships the MF White List provider (OpenUrzednik.MF.WhiteList and OpenUrzednik.MF.WhiteList.DependencyInjection), the first new provider after NBP. Its provider ADR comes from #212; the implementation is split into one issue per PR, in this order: #257 (shared dates) → #258 (skeleton) → #259 (search by one identifier) → #260 (batch search) and #261 (check) → #262 (WL2 status) → #263 (DI package) → #264 (ship it). Each step waits for the one before it (blockedBy), except where an issue says otherwise.

Read first. CLAUDE.md (the binding summary of the rules), ADR-0023 (the MF White List provider, from #212), and the ADRs this issue names. ADRs follow ADR-0022: an accepted ADR that no release has shipped is corrected in place through /adr (with a dated line); a released one is superseded. Never work around an ADR. The reference implementation is OpenUrzednik.Nbp / OpenUrzednik.Nbp.DependencyInjection: copy its structure, conventions and tests (ADR-0016).

Workflow (CLAUDE.md, "Workflow" and "Issues and the project"):

  • Start only when this issue's Status is Ready and gh issue view <n> --json blockedBy lists no open blocker; then set Status In progress (the only project field an agent changes).
  • Branch from origin/develop (feature/…, fix/…, docs/…, chore/…); stage explicit paths only; stage and commit as two separate commands (a hook scans the staged changes); never --no-verify.
  • One issue per PR into develop; the PR body starts with Closes #<n>; give it a release label from .github/release.yml (the label on this issue is the forecast).
  • Before the PR: run the reviewer agent on the diff. After it: check the PR's CodeQL alerts (gh api "repos/milten89/OpenUrzednik.NET/code-scanning/alerts?ref=refs/pull/<pr>/merge&state=open").

Checks to run and report: dotnet build OpenUrzednik.slnx; tests per project (dotnet test tests/<Project> -f net10.0, and -f net472 on Windows); dotnet format OpenUrzednik.slnx --verify-no-changes (after a clean build); the mutation shard of the code you changed (uv run tests/Mutation/run.py <shard>, ADR-0020). If public API, a target or packaging changes: dotnet pack OpenUrzednik.Packages.slnf -c Release (package validation). From the skeleton on: dotnet publish tests/OpenUrzednik.AotSmoke -f net10.0, then run the binary (ADR-0014).

API facts (spec v1.6.2 of 05.11.2026 and its error-code table, live probes on 2026-11-08; details in the provider ADR):

  • GET only, no auth. Production https://wykazpodatnikowvat.mf.gov.pl/api/ and /api2/; test https://wykazpodatnikowvat-test.mf.gov.pl/…. The old wl-api.mf.gov.pl works only until 2026-12-01.
  • date (yyyy-MM-dd) is required on /api; not in the future, not before 1 January five years back (2021-01-01 on 2026-11-08; earlier → WL-118).
  • Answers carry requestId (proof of the check for the tax authorities) and requestDateTime (dd-MM-yyyy HH:mm:ss, Warsaw time).
  • Errors: {"message", "code": "WL-1xx"}; WL-191 is the daily per-IP limit (429), WL-195/196 ask to repeat the query (400). Quotas (search 100 a day of up to 30 subjects, check 5,000 entities, WL2 50,000 a day) weren't enforced on 2026-11-08 (the test host answered 130 single searches; production 160 single searches and 120 batches of 30 from one IP, all 200).
  • Requests carry NIP, REGON and account numbers in the path (display paths, ADR-0019/0017); responses carry personal data of sole traders. Fixtures come from the test host's official test data or legal-person records, with any remaining personal field replaced by a fake value of the same format.

Activity

  1. added this to the 1.1.0 milestone on Nov 8, 2026
  2. added
    enhancement
    on Nov 8, 2026
  3. moved this from Triage to Ready in OpenUrzednik.NETon Nov 8, 2026
  4. added
    provider:white-list
    on Nov 20, 2026
  5. milten89 commented on Nov 21, 2026

    @milten89
    OwnerAuthor

    Scope addition (from the review of #263, approved by the maintainer):

    The White List DI package's README.md shows how an app plugs WhiteListRetry.ShouldRetryAsync into AddStandardResilienceHandler() through options.Retry.ShouldHandle, falling back to HttpClientResiliencePredicates.IsTransient for exceptions and timeouts. ADR-0023 "Resilience" requires this snippet.

    • Take the snippet from the <example> in src/OpenUrzednik.MF.WhiteList/WhiteListRetry.cs. WhiteListRetryResilienceTest in tests/OpenUrzednik.MF.WhiteList.DependencyInjection.Tests compiles and runs it against the real handler, so keep the README code identical to it.
    • Say what it changes compared with the default handler:
      • it retries 400 WL-195/WL-196;
      • it doesn't retry 429 (the IP may be blocked until midnight) or 500 WL-197.
    • Add the .NET Framework variant: the same predicate in a Polly DelegatingHandler, as the NBP DI README shows.
  6. moved this from Ready to In progress in OpenUrzednik.NETon Nov 22, 2026
  7. moved this from In progress to Done in OpenUrzednik.NETon Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementprovider:white-list

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions