GRANSKA

Changes and removed fields

Upcoming changes

No change is scheduled.

Past changes

Contract version 3, 16 November 2026

  • Two new authorityType values, OWN_RULE and OWN_GUIDANCE, for a source your organisation writes itself. An OWN_RULE can carry a finding on its own in every country, OWN_GUIDANCE only supports one, and neither is law. They can appear in primary_authority_type, supporting_authority_type and every authorityType of a job answer, and from then on each of those fields is documented as a list that grows: treat a value you do not recognise as a kind you have no label for. See creating a legal source.
  • Norwegian and Danish provisions are spelled as the law prints them, § 2-2 and § 1 a, instead of §2-2 and 1a, in the law endpoints, in a profile's workers[].rules and in a job's citations.
  • A legal source whose content is a list of quoted lines, one "…", per line, is refused with a 400 on POST /v1/snippets, PATCH /v1/snippets/:id and a profile's snippets. A source already stored that way can be sent back unchanged.
  • A legal source's name and source may be at most 250 characters; a longer one is a 400 naming the field. A value already stored longer can be sent back unchanged.
  • An action with no sections is refused with a 400 on POST /v1/actions and PATCH /v1/actions/:id.
  • DELETE /v1/profiles/:id refuses a profile that example documents are still filed under with a 409, instead of removing it and leaving the examples behind.
  • PATCH /v1/profiles/:id with workers on a review package is a 409, instead of replacing the package with an ordinary profile.
  • POST /v1/examples refuses a result that cites a source no record answers to (sources-unresolved) and a capture the example viewer cannot open (capture-unopenable), each with a 400, and files the example under the profile's own id.

Contract version 2, 3 November 2026

  • internal_reasoning stopped being sent in result.clinicalData. It had been an empty string on every analysis since October 2026. Each reviewer's reasoning stayed available under includeDiagnostics.
  • An analysis whose final merging step fails started completing with every reviewer's findings unmerged instead of failing, and the run is given back to your allowance. Every analysis result gained consolidation, which says whether the findings were merged. See when the findings could not be merged.

Removed fields

Seven field names belonged to a vocabulary the engine no longer uses. Six of them went on being delivered for a while after the rename, so that nobody had to migrate in the same release; the seventh, ruleGroupId, could not be. None of them is returned by the endpoints below any more. Every replacement below is already in the response, and has been since the rename. An eighth, anchors, went for a different reason, set out below.

What was removed, and what to read instead

On GET /v1/snippets and GET /v1/snippets/:id:

  • normLevel — read authorityType.
  • legalWeight — no replacement on a legal source; see below.
  • ruleGroupId — read snippetKey, after remapping once; see below.
  • anchors — no replacement, and no longer accepted on a write either; see below.

On every citation in regulatory_references of GET /v1/jobs/:jobId:

  • primary_norm_level — read primary_authority_type.
  • primary_id — read primary_source.source_key.
  • supporting_norm_level — read supporting_authority_type.
  • supporting_id — read supporting_source.source_key.

Removing them did not move contractVersion. The four citation names were declared optional and deprecated in the published schema — in their own field descriptions, since 2026-08-20 — and in the job reference since 2026-08-30, so removing them is not a change to the versioned contract. They were not marked from the day they first appeared: for the first weeks after the rename they were delivered without being flagged as deprecated anywhere. This page did not name them until now either: before this release it covered the legal-source endpoints only.

normLevel became authorityType

normLevel was a set of Swedish strings: "Lag", "Förordning", "Föreskrift" and so on. authorityType is a fixed, jurisdiction-neutral vocabulary of fourteen values:

CONSTITUTIONAL_LAW, STATUTE, ORDINANCE, AGENCY_REGULATION, LOCAL_REGULATION, EU_TREATY, EU_REGULATION, EU_DIRECTIVE, EU_DECISION, CASE_LAW, SUPERVISORY_DECISION, PREPARATORY_WORKS, GENERAL_ADVICE, GUIDANCE.

One distinction did not survive: "Vägledning" and "Granskningsstöd" are the same thing now. Both are GUIDANCE.

The vocabulary has since grown to sixteen values: OWN_RULE and OWN_GUIDANCE joined it for a source your organisation writes itself, and every field that carries it is documented as a list that may grow again.

The same holds on a citation: primary_authority_type and supporting_authority_type use the fourteen values where primary_norm_level and supporting_norm_level used the Swedish strings.

primary_id is the source key, not the label

primary_id was the key of the cited source in used_rules. Its successor is primary_source.source_key — not primary_label, which is a short per-analysis label (L1, L2, …) that did not exist before the rename. The same goes for supporting_id and supporting_source.source_key. A source that is null means the model cited a label the run never issued; the engine reports that rather than inventing a source.

legalWeight has no replacement, and that is the point

legalWeight said whether a norm binds. It is no longer a property of a source, because it is not one: whether a norm binds is derived per analysis, from the source's authorityType against the norm hierarchies of the jurisdictions that analysis covers. The same authorityType can bind in one profile and be interpretive support in another. A list of legal sources has no analysis to derive against, so there is nothing honest to put in its place.

Two values take their weight from no country: an OWN_RULE binds in every analysis, and OWN_GUIDANCE binds in none.

anchors has no replacement

anchors tied a legal source to the provisions it discusses, and from 8 October 2026 every reviewer checking one of those provisions was given the source, whatever profile it was written for. A source now reaches a reviewer only through that reviewer's snippetIds, so a link to a law section has no effect left to describe. It is not returned, and a write that sends it is refused with 400.

ruleGroupId needs a one-time remap to snippetKey

ruleGroupId was never delivered under its old name after the rename. snippetKey fills the same role — a stable, tenant-independent key for an authored source — but with different values, and a source now has exactly one row rather than a chain of historical versions. A ruleGroupId you saved before the rename matches nothing we send, and publishing snippetKey under the old name would have looked like a hit without being one.

If you hold saved ruleGroupId values, they need mapping to snippetKey once. Get in touch and we will do it with you.