Skip to content

Add udi scenario pack (from #153, rebased on dev) - #166

Merged
SushantGautam merged 7 commits into
devfrom
feat/udi-pack-merge
Nov 19, 2026
Merged

SushantGautam merged 7 commits into
devfrom
feat/udi-pack-merge

Conversation

@SushantGautam

Copy link
Copy Markdown
Collaborator

Carries #153 by @avalyset onto current dev; their commits are kept.

Changes on top of #153:

  • Merged dev and resolved conflicts with pasientsporsmal (README, test_basic, conventions list).
  • Kept udi out of all so adding it does not change what all measures; README row says to run it by name.
  • Scenario 1 asks only about future income and scenario 3 only about last year's, so the item on the other requirement is now optional.
  • Scenario 4: the exemption does not depend on the service being last year (§ 10-9 has no year condition).
  • Real Lovdata URLs for the three amending regulations.

Closes #153.

avalyset and others added 7 commits November 11, 2026 09:00
…residence

Twelve scenarios in six pairs on rules administered by UDI: the income
requirement for the person in Norway (3.2 G, with the pension and military
service exceptions), the family immigration fee for adults, children and
renewals, and the conditions for permanent residence (2.5 G self-sufficiency,
oral Norwegian A2 and social studies, the 18-67 age limit). Asylum cases are
left out until the pack has a domain review.

Amounts are computed from utlendingsforskriften and the basic amount G
(136 549 kroner from 2026-05-01); every source_quote was matched verbatim
against the fetched sources on 2026-11-11.
S1 item 3 named 'an amount computed from 2.7 G', which a judge cannot check
without the source; it now names amounts below 436 957 kroner. S2 and S4
item 3 only forbade the exact 3.2 G figure, so a pension or last-year
requirement at another level passed; they now forbid any fixed level. S6
item 2 gave an example that the quoted source did not contain; the quote now
includes § 17-10 third paragraph letter j. S10 gets the NOT item on the
repealed social-assistance condition that S9 already has.
Scenario 4 now says the military service was done last year, which is when
UDI applies the exemption, so a correct conditional answer cannot fail.
Scenario 6 says the father became a citizen last year, so the 5 400 kroner
fee for a child of a Norwegian parent at birth does not apply. Items in
scenarios 1, 2, 9 and 11 name what is still correct (the transition rules,
topping up a low pension, full-time work), and the amount items accept the
factor or the krone figure. The docstring and README cite the URLs that were
fetched, source the 'last amended' line, list scenarios 2 and 10 with the
G-based figures, and describe UDI's pension figures without calling them
outdated.
- Resolve conflicts with pasientsporsmal in README, test_basic and the
  conventions list.
- Keep udi out of "all" (as pasientsporsmal) so adding it does not change
  what "all" measures; README row says to run it by name.
- Scenario 1 asks only about future income and scenario 3 only about last
  year's: the item on the other requirement is now optional.
- Scenario 4: the exemption does not depend on the service being last year.
- Real Lovdata URLs for the three amending regulations.
Copilot AI balanced review requested due to automatic review settings November 19, 2026 20:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants