Resolution

All pages

0012 · The Dutch and EU owner: tax as cited information, imports as attested history

Status: accepted, 2026-09-25. Built for issue #3. The server side is in src/eu/, src/tax/ and src/imports/. Tests: test/eu-*.test.ts, test/tax-box3.test.ts and test/imports.test.ts. The pages are web/views/tax.js and web/views/imports.js, styled by web/eu.css, with web/lib/i18n.js and web/i18n/. Reference: docs/eu.md.

Context

The owner lives in the Netherlands and holds accounts at EU brokers. Each year they need four things:

  • what they held on 1 January;
  • the Box 3 figure it implies;
  • the foreign tax withheld on their dividends;
  • their history from DEGIRO, Saxo, Trade Republic, BUX, Bolero or Flatex, in one place.

The rules that bind them are EU rules. PRIIPs forbids a KID-less fund to a retail investor. They are owed GDPR export and erasure. Their Sharpe ratio should use a euro risk-free rate.

Each of these could make the fund less honest:

  • A tax figure could look like advice.
  • A guessed parameter could look like a published one.
  • An imported trade could look like the fund's own order.
  • A calendar or a benchmark could invent data the fund does not have.

Decision

  1. Tax output is information, not advice, and says so everywhere it appears: page, CSV and API. Every figure is computed on the server. The page formats; it never adds.

  2. Parameters are cited or null. Each Box 3 year cites the Belastingdienst page and the day it was read, with a status per figure (definitive, provisional, not published, not verified). A missing figure is null and stops the computation with a stated reason. It is never carried over from the year before and never estimated. 2026's bank and debt returns are marked provisional because the Belastingdienst calls them voorlopig. 2027 is null.

  3. A price is stated, looked up or missing, never guessed. The order is:

    1. the owner's stated close;
    2. the market's close;
    3. the last trade price, labelled as not a close.

    A line without a price is shown and left out of the totals. In demo mode the page says the closes are simulated.

  4. The paper book is not wealth. It is shown for illustration and excluded from the total. Once the fund trades real money, its book counts.

  5. Imports are attested history, not orders. A file is previewed first with nothing written. It is committed only with the owner's explicit attestation. It lands as transaction.attested, dividend.recorded and cash.attested events with producer owner, through the Record's append path. It never touches the fund's book, its fills or its kernel checks.

    • Row fingerprints make re-imports and overlapping files idempotent.
    • Each layout carries a provenance status (verified, community or unverified), and the preview warns on anything below verified.
  6. Treaty rates are a reference. The dividend ledger shows the withholding against a treaty rate per country with a caveat. It never says what to reclaim.

  7. L-EU-KID is a SOFT kernel rule in the compliance family: a buy of a PRIIP without a KID warns. It is not HARD by default for two reasons:

    • the broker is the final gate;
    • owner-attested metadata can be wrong in either direction.

    The mandate's grade rows can harden it. Shares, sells and instruments without EU facts pass. The kernel goes from 22 to 23 rules.

  8. €STR is fetched, cached and labelled. It comes from the ECB Data Portal, in live mode or with ESTR_FETCH=1. It is cached in the data folder, and a dated fallback is named as a fallback. Analytics reports which rate it used. Demo mode makes no network call by default.

  9. Calendars are computed, benchmarks are fetched or absent.

    • Exchange holidays come from rules (Easter, substitution) and are tested per venue.
    • Benchmarks come from Yahoo in live mode. In demo mode each one is reported unavailable with the reason; no series is invented.
    • MSCI Europe is followed through a UCITS ETF and labelled as a proxy.
  10. GDPR. One JSON export holds every event and blob and never holds a secret; files holding secrets are listed by name. Erasure is a CLI (npm run erase) on the machine that runs the fund, not a web button. It needs the typed word ERASE and refuses while the server is running on that folder. A remote click must not be able to destroy the Record.

  11. i18n without a framework. t(key, vars) with plurals, Intl for € 1.234,56 and 25 sep 2026, and two JSON dictionaries fetched same-origin. Missing Dutch keys fall back to English. The Dutch uses the Belastingdienst's and brokers' own words, and a glossary fixes them for the translation pass.

Consequences

  • The owner can file with the fund's overview beside their broker's annual statement. The overview helps them check and never replaces the statement.
  • The parameter table needs a yearly update from the Belastingdienst's page. Until then the new year shows as not published, which is the intended failure.
  • Broker layouts drift. A changed export fails detection loudly (422, with the columns seen) rather than importing wrong rows. Bolero stays unverified until a real export is seen.
  • The server's explanatory strings (warnings, formulas) are English until the translation pass. So are the existing views.