Skip to content

ShowcasedPath twoRules & eligibility

Ninety

Tracks Schengen 90-in-180 day use for travelers, naming the exact day they exceed the limit and why.

by Kiter

Adversarial histories answered correctly, structured engine versus keyword search over the same rules
23/23 vs 1/23
Engine tests covering arrival and departure days, leap years, and territory edge cases
56
Time for the document function to repair a dispute left without a precedent
~13 s

What it does

A traveler enters trips. The app names the day they go over.

Users add their trips, or describe them in plain text for an agent to parse. The app resolves which rules apply on each day, counts the rolling 180-day window, and reports days used, the breach date, the trip responsible, and how much to shorten it.

A day-by-day strip shows which days were charged. Clicking a day reveals the rule that decided it and its source. Unknown passports and uncertain trip legs are refused rather than guessed.

The problem

Day counters give a total but not which day breaks the rule.

Whether a day counts depends on place, date, and how you arrived. The Canary Islands, Ireland, and Iceland are outside the area; airside transits do not count; Bulgaria opened land borders before air borders. A pending residence application is not a permit. Calculators that simply add days miss these cases, and a confident wrong number can cost a traveler money.

What they built

Rules, travelers, and rulings kept as three separate layers.

5 sources, 1 allowance, 36 territories with dated access bands, 6 presence rules, 2 demo itineraries with 17 trips.

  • territory

    A state or carve-out region with dated access bands, including entry modes for partial accession.

  • presenceRule

    How a kind of presence, such as a transit, is charged; can be marked disputed.

  • allowance

    The short-stay limit itself: days allowed within the rolling window.

  • source

    A cited authority with publisher, URL, and retrieval date, referenced by every rule.

  • itinerary

    One traveler's record grouping their trips.

  • trip

    A single stay with dates, place, and how the traveler arrived.

  • dispute

    An open question where sources conflict, awaiting a human ruling.

  • precedent

    A dated, attributed ruling scoped to one presence kind, read by later calculations.

The stack

Sanity holds the rules; a pure engine does the math.

  • Content Lake
  • Sanity Studio
  • Sanity Context
  • Sanity Functions
  • Sanity Blueprints
  • @sanity/client
  • Next.js 16
  • TypeScript
  • TypeSafe System One
  • Vercel
  • OpenCode

The hard part

No model ever produces a number; it only picks from retrieved options.

The verdict engine is plain TypeScript with no network calls or model imports, so the same inputs always give the same answer. The agent can only choose territories returned by a GROQ query, classification returns a choice with a confidence score, and anything under 0.62 is marked uncertain.

Disputed rules produce a range instead of a guess. A document function guarantees every adjudicated dispute has a precedent, even when edited directly in Studio.

Evaluation results ↗

More from path two

See the full showcase