Module 9 · Health and usage
Signed off 26-10-2026 · frozenUpdated 26-10-2026
Definition and examples
What the calculator knows about itself: whether its provider answers, how much it is used, where the two providers disagree, and when its data grows old. Example: OBR stops answering at 20:20; the page says "not answering since 20:20", the administrators are told, and the status page shows the gap in its 24-hour history.
Functions
Health
- Probe: a cheap call to each provider every five minutes (module 4).
- State on the page: "not answering since…" while it lasts (module 0).
- Status page: public, as the prototype's: each provider's state, its last 24 hours in five-minute steps, and the counts; never a shipment D43.
Usage
- Counts: searches and estimates, by the installation's day, by tab and by provider, kept across restarts.
- Where from: the country the browser declares through its time zone, labelled "declared"; no address is stored.
Differences and age
- Shadow differences: each estimate where the two providers disagree, the shipment and both answers, tax by tax; seen in administration only, kept 90 days, then only their totals D44.
- Age of data: a warning when a version or its exchange rates pass the country's threshold.
Alerts
- To the administrators: a provider down for more than a set time, data too old, or a new shadow difference.
Module 4 · Module 0 · Module 7 · Concept note §2 · Dictionary: shadow mode, golden case
Rules
- No personal data: no address, no name, no identifier of the trader, in counts or in logs.
- The shipment is never logged; a provider's failing answer is logged as its kind and at most 512 characters, on one line (as v7 since 10-10-2026).
- A probe never spends an estimate; it reads a small reference table.
- The page says what it does not know: after a restart, the history it lost is shown as missing, not as healthy.
- A shadow difference is reported, never corrected D4.
Decisions needed
None. ?31 and ?32 were answered on 30-09-2026: D43 and D44.
Sources
- The prototype's
server.js and stats.js: the five-minute probe, counts by time zone, the /estado page.
- The concept note, frozen 30-09-2026, §2 and §3.
- Not seen: how administrators want to be alerted: mail, chat or the administration page.