Skip to content

ShowcasedPath oneRules & eligibility

Genten

Answers foreign residents' questions on Japan's NISA and furusato nozei rules, citing official Japanese sources by date.

by Takefumi OnoJapan resident who writes AI agent evaluations

Held-out questions answered correctly, each citing an official source or verified rule
25/25
Correct answers from keyword search over the same 57 source files
18/25
Correct answers from the model alone, with no retrieval
19/25

What it does

A resident asks about a NISA limit. Genten gives the rule for that date.

A user asks a question in English or Japanese and can set an as-of date. Genten returns a verdict, the rule in force on that date, and its official Japanese source.

It also names English guides that state an older or wrong figure, and shows the Knowledge Base tool calls behind the answer. Changing the date shows which rule applied before a change or will apply after one.

The problem

English guides quote rules that changed or never existed.

Japan's official NISA and furusato nozei rules are published mostly in Japanese, so foreign residents rely on English guides that are often out of date or wrong. The rules also change on fixed dates, with major changes in 2024, 2026 and 2027. Keyword search returns the best-matching page, not the rule that applied on the day in question.

What they built

Every rule stored as a dated version with its evidence.

35 rule versions (18 in force, 5 future, 12 superseded), 58 sources and 2 topics; Knowledge Base of 14 entries.

  • topic

    One of the two systems covered: NISA or furusato nozei.

  • source

    One source page with publisher, authority level, language, capture date and curation notes.

  • ruleVersion

    One dated version of a rule: key, value and unit, validity dates, status, superseded version and evidence.

The stack

One Context endpoint over verified, versioned rules.

  • Sanity Context MCP
  • Knowledge Base
  • Sanity Studio
  • Content Lake
  • Next.js
  • Vercel AI SDK
  • MCP client
  • Claude Sonnet
  • Python

The hard part

Human-verified, dated rule versions act as ground truth for the Knowledge Base.

Rule versions are seeded as drafts, and the Knowledge Base reads only published documents. Each was checked against the Japanese original before publishing, which caught an error in the builder's own draft.

Without these rules, the Knowledge Base calculated an uncited ¥6,000,000 cap. With them, it calls that figure wrong and cites the rule. The rule line in each answer is computed in code from the version valid on the chosen date.

Full evaluation report ↗

More from path one

See the full showcase