Repository navigation
Description
Split from #205. Prerequisites (common to #212, #213 and #214, which run in parallel): #215 (provider choice, package names, skeletons), #176 (display path), #216 (masking helper), #217 (identifier validators), #218 (provider tooling).
Decided in ADR-0016 and verified on 2026-11-06
- Step one, before any design or code: the legal basis for automated access (ADR-0016's checklist). The 2025 amendment of the KRS Act (Dz.U. 2025 poz. 1556; read from a secondary source only) introduces access by administrative decision and penalties for unauthorised network access. Read the act itself, and if needed ask the Ministry of Justice, whether a library calling the open API is lawful and on what terms. If it isn't clear, stop and report to the maintainer.
- Package
OpenUrzednik.Krs(reuses the deprecated id; the first real version sorts above1.0.13-preview),ActivitySourceOpenUrzednik.Krs, short namekrs. - Verified call:
GET https://api-krs.ms.gov.pl/api/krs/OdpisAktualny/{krs}?rejestr=P&format=json, no auth, JSON (about 46 kB for a large company); names and PESEL numbers in the answer come back masked. Not verified:OdpisPelny, registerS, limits, the official documentation.
Idea
A KRS provider (National Court Register, the Ministry of Justice open API): company register extracts by KRS number.
API facts below are from memory, not checked; the provider ADR verifies them:
- open JSON API, no key;
- responses name people (board members, shareholders), so masking applies in logs, tags and errors (ADR-0003, ADR-0006), and the display path of Add a display path to the shared executor for identifier-carrying requests #176 becomes relevant.
Scope
- The KRS provider ADR, answering ADR-0010's readiness checklist (protocol, auth, quota, personal data and masking, fixtures from legal-person records with fake personal fields, terms of use, legal meaning of extracts, dependencies, package and namespace name, following ADR-0016).
- Follow-up issues for the implementation, including Add a display path to the shared executor for identifier-carrying requests #176 if requests carry identifiers.
Done when
- An accepted KRS provider ADR; implementation issues exist.
Context for the implementing agent
Where this fits. Milestone 1.1.0 ships the first new provider after NBP (OpenUrzednik.Nbp 1.0.0 is released and is the reference implementation). Five prerequisites come first and can run in parallel, except #217, which waits for #216: #215 (provider choice, package names, skeletons; ADR), #176 (display path in the shared executor), #216 (masking helper), #217 (identifier validators), #218 (provider tooling). They block the provider ADR issues #212 (MF White List), #213 (KRS) and #214 (GUS BIR), which then run in parallel.
Read first. CLAUDE.md (the binding summary of the rules) and the accepted ADRs in docs/adr/ that this issue names. ADRs are append-only: a change to an accepted decision goes through /adr as a new ADR that supersedes the old one. Never work around an ADR.
Workflow (CLAUDE.md, "Workflow" and "Issues and the project"):
- Start only when this issue's Status is
Readyandgh issue view <n> --json blockedBylists no open blocker; then set StatusIn 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 withCloses #<n>; give it a release label from.github/release.yml(the label on this issue is the forecast). - Before the PR: run the
revieweragent 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). If public API, a target or packaging changes: dotnet pack OpenUrzednik.Packages.slnf -c Release, which runs package validation against the 1.0.0 baseline (suppressions are limited; see CLAUDE.md).
Specific to the provider ADR issues (#212, #213, #214)
- Starts after all five prerequisites are closed; follows the package naming and skeleton decision of Decide the next providers, their package names and the skeletons (ADR) #215.
- ADRs: 0010 (the readiness checklist the provider ADR must answer), 0002/0012 (errors), 0003 (telemetry and masking), 0004 (dependencies), 0006 (HTTP layer and display path) or the transport rule for non-REST, 0007 (client API), 0014 (Native AOT).
- Verify every API fact against the real API (read-only, few requests) and its official docs and terms of use; fixtures come from the provider's test environment or legal-person records, with remaining personal fields replaced by fake values of the same format; never commit API keys, session ids or tokens.
- Output: the provider ADR via
/adr(index updated) and follow-up implementation issues (one per PR), opened at the maintainer's request and triaged into milestone1.1.0if that provider ships in 1.1.0.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity