Repository navigation
Add udi scenario pack (from #153, rebased on dev) - #166
Merged
Merged
Conversation
…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.
Contributor
There was a problem hiding this comment.
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.
SushantGautam
force-pushed
the
feat/udi-pack-merge
branch
from
November 19, 2026 20:42
16c275a to
f672b29
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Carries #153 by @avalyset onto current dev; their commits are kept.
Changes on top of #153:
allso adding it does not change whatallmeasures; README row says to run it by name.Closes #153.