{
 "version": "kolaboro-prov-1",
 "about": "Where each number on kolaboro.com comes from. Pages mark a number with data-prov=\"id\" (or are matched by 'attach' selectors); /k/prov.js opens a panel that re-reads the source in the browser. Expressions: a.b.c, arr[key=value].field, count(path), sum(path, path), cond ? path : path. 'recompute' counts again from raw records; 'twin' is a signed endpoint that must carry the same number; 'dataset' compares the file's SHA-256 with the signed /api/open/log-input.",
 "entries": {
  "sum.projects": {
   "label": "Off-plan projects tracked",
   "expr": "projects",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "projects"
   },
   "formula": "The number of project records in the published dataset."
  },
  "sum.markets": {
   "label": "Markets with desk research",
   "expr": "markets",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "markets"
   },
   "formula": "Distinct markets among the tracked projects."
  },
  "sum.countries": {
   "label": "Countries covered",
   "expr": "countries",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "countries"
   }
  },
  "sum.claims_total": {
   "label": "Developer claims tested",
   "expr": "db.claims_total",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "claims_total"
   },
   "recompute": "sum(db.claims.verified, db.claims.unverified, db.claims.contradicted)",
   "formula": "Every developer claim the research agent rated: verified + unverified + contradicted."
  },
  "sum.contradicted": {
   "label": "Claims contradicted by another source",
   "expr": "db.claims.contradicted",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "claims.contradicted"
   }
  },
  "sum.all_six_public": {
   "label": "Projects publishing all 6 things a buyer needs",
   "expr": "db.all_six_public",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "all_six_public"
   },
   "formula": "Projects with all six checks public and no red flag."
  },
  "sum.with_flags": {
   "label": "Projects with problems in news, courts or regulators",
   "expr": "db.with_flags",
   "src": "/api/open/summary",
   "time": "updated",
   "made_by": "Computed by the worker on each request from /data/bali-cases.json, signed with the open API key.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "with_flags"
   }
  },
  "db.projects": {
   "label": "Off-plan projects tracked",
   "expr": "db.projects",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "projects"
   },
   "recompute": "count(cases)",
   "formula": "The summary field written with the dataset; recomputed below by counting the project records."
  },
  "db.geo": {
   "label": "Markets and countries",
   "expr": [
    "db.markets",
    "db.countries"
   ],
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "join": " · ",
   "formula": "Distinct markets and countries among the tracked projects."
  },
  "db.points": {
   "label": "Data points recorded",
   "expr": "db.data_points",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "data_points"
   }
  },
  "db.sources": {
   "label": "Source pages opened and cited",
   "expr": "db.sources",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "sources"
   }
  },
  "db.claims": {
   "label": "Developer claims tested",
   "expr": "db.claims_total",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "claims_total"
   },
   "recompute": "sum(db.claims.verified, db.claims.unverified, db.claims.contradicted)"
  },
  "db.contra": {
   "label": "Claims contradicted by another source",
   "expr": "db.claims.contradicted",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "claims.contradicted"
   }
  },
  "db.full": {
   "label": "Projects publishing all 6 things a buyer needs",
   "expr": "db.all_six_public",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "all_six_public"
   },
   "formula": "Projects whose six checks are all public with no red flag."
  },
  "db.flags": {
   "label": "Projects with problems in news, courts or regulators",
   "expr": "db.with_flags",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "with_flags"
   }
  },
  "db.deep": {
   "label": "Deep profiles",
   "expr": "db.deep_profiles",
   "src": "/data/bali-cases.json",
   "time": "updated",
   "dataset": true,
   "made_by": "Published by the research agent's GitHub Actions job; the same file every page and the open API read.",
   "twin": {
    "src": "/api/open/stats",
    "expr": "deep_profiles"
   }
  },
  "trust.pass": {
   "label": "Controls passing",
   "src": "/api/x/l/trust",
   "expr": "summary.pass",
   "recompute": "count(controls[status=pass])",
   "time": "generated_at",
   "made_by": "Computed by the worker on each request from live evidence (kbx_l.js)."
  },
  "trust.warn": {
   "label": "Controls with a known gap",
   "src": "/api/x/l/trust",
   "expr": "summary.warn",
   "recompute": "count(controls[status=warn])",
   "time": "generated_at",
   "made_by": "Computed by the worker on each request from live evidence (kbx_l.js)."
  },
  "trust.fail": {
   "label": "Controls failing",
   "src": "/api/x/l/trust",
   "expr": "summary.fail",
   "recompute": "count(controls[status=fail])",
   "time": "generated_at",
   "made_by": "Computed by the worker on each request from live evidence (kbx_l.js)."
  },
  "trust.stale": {
   "label": "Controls with stale evidence",
   "src": "/api/x/l/trust",
   "expr": "summary.stale",
   "recompute": "count(controls[status=stale])",
   "time": "generated_at",
   "made_by": "Computed by the worker on each request from live evidence (kbx_l.js)."
  },
  "trust.unknown": {
   "label": "Controls with no evidence",
   "src": "/api/x/l/trust",
   "expr": "summary.unknown",
   "recompute": "count(controls[status=unknown])",
   "time": "generated_at",
   "made_by": "Computed by the worker on each request from live evidence (kbx_l.js)."
  },
  "prices.sales": {
   "label": "Registered sales used",
   "src": "/data/price-reality.json",
   "expr": "summary.registered_sales_used",
   "time": "updated",
   "made_by": "Published by the market-truth GitHub Actions job from official open sale registers.",
   "extra": {
    "Inputs hash": "inputs_sha256"
   },
   "note": "The inputs hash covers every download the job made; it is timestamped in Bitcoin (see the Inputs list on this page)."
  },
  "prices.markets": {
   "label": "Markets with official open sales data",
   "src": "/data/price-reality.json",
   "expr": "summary.markets_with_official_data",
   "recompute": "count(markets)",
   "time": "updated",
   "made_by": "Published by the market-truth GitHub Actions job."
  },
  "prices.positioned": {
   "label": "Tracked projects positioned",
   "src": "/data/price-reality.json",
   "expr": [
    "summary.projects_positioned",
    "summary.projects_total"
   ],
   "join": " of ",
   "time": "updated",
   "made_by": "Published by the market-truth GitHub Actions job."
  },
  "prices.comparisons": {
   "label": "Market comparisons solid enough to state",
   "src": "/data/price-reality.json",
   "expr": "summary.market_comparisons",
   "time": "updated",
   "made_by": "Published by the market-truth GitHub Actions job."
  },
  "status.up7": {
   "label": "Uptime, last 7 days",
   "src": "/api/open/uptime",
   "expr": "uptime_7d",
   "time_header": "date",
   "time_label": "Time of this answer; uptime is computed from the probe table on each request.",
   "formula": "Probes answered 2xx or 3xx within 15 s, divided by all probes in the window, from two vantage points outside Cloudflare."
  },
  "status.up30": {
   "label": "Uptime, last 30 days",
   "src": "/api/open/uptime",
   "expr": "uptime_30d",
   "time_header": "date",
   "time_label": "Time of this answer.",
   "note": "Probing started on 3 November 2026, so the 30-day window holds less than 30 days."
  },
  "status.fresh": {
   "label": "Projects re-read within 7 days",
   "src": "/api/open/freshness",
   "expr": "pct_7d",
   "time": "updated",
   "formula": "within_7d / projects, as a percentage.",
   "extra": {
    "Projects": "projects",
    "Re-read within 7 days": "within_7d"
   }
  },
  "status.evals": {
   "label": "AI evaluation, latest run",
   "src": "/api/open/evals",
   "expr": [
    "latest.cases_passed",
    "latest.cases_total"
   ],
   "join": " of ",
   "time": "latest.run_at",
   "formula": "Fixed test pages read by the production desk review; each answer checked against fixed expectations."
  }
 },
 "patterns": {
  "dossier.*": {
   "label": "Investor dossier metric",
   "label_expr": "metrics[id=$1].label",
   "src": "/api/x/l/dossier",
   "expr": "metrics[id=$1].value",
   "time": "metrics[id=$1].as_of",
   "made_by": "Computed by the worker on each request (kbx_l.js) from the public source named below.",
   "extra": {
    "Underlying source": "metrics[id=$1].source",
    "Note": "metrics[id=$1].note"
   }
  }
 },
 "attach": [
  {
   "page": ".",
   "sel": "[data-db=\"projects\"]",
   "id": "sum.projects"
  },
  {
   "page": ".",
   "sel": "[data-db=\"markets\"]",
   "id": "sum.markets"
  },
  {
   "page": ".",
   "sel": "[data-db=\"countries\"]",
   "id": "sum.countries"
  },
  {
   "page": ".",
   "sel": "[data-db=\"claims_total\"]",
   "id": "sum.claims_total"
  },
  {
   "page": ".",
   "sel": "[data-db=\"contradicted\"]",
   "id": "sum.contradicted"
  },
  {
   "page": ".",
   "sel": "[data-db=\"all_six_public\"]",
   "id": "sum.all_six_public"
  },
  {
   "page": ".",
   "sel": "[data-db=\"with_flags\"]",
   "id": "sum.with_flags"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-projects",
   "id": "db.projects"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-geo",
   "id": "db.geo"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-points",
   "id": "db.points"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-sources",
   "id": "db.sources"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-claims",
   "id": "db.claims"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-contra",
   "id": "db.contra"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-full",
   "id": "db.full"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-flags",
   "id": "db.flags"
  },
  {
   "page": "^/database/?$",
   "sel": "#n-deep",
   "id": "db.deep"
  },
  {
   "page": "^/trust/?$",
   "sel": "#tc-sum .tc-pass > b",
   "id": "trust.pass"
  },
  {
   "page": "^/trust/?$",
   "sel": "#tc-sum .tc-warn > b",
   "id": "trust.warn"
  },
  {
   "page": "^/trust/?$",
   "sel": "#tc-sum .tc-fail > b",
   "id": "trust.fail"
  },
  {
   "page": "^/trust/?$",
   "sel": "#tc-sum .tc-stale > b",
   "id": "trust.stale"
  },
  {
   "page": "^/trust/?$",
   "sel": "#tc-sum .tc-unknown > b",
   "id": "trust.unknown"
  },
  {
   "page": "^/prices/?$",
   "sel": "#k-sales",
   "id": "prices.sales"
  },
  {
   "page": "^/prices/?$",
   "sel": "#k-mk",
   "id": "prices.markets"
  },
  {
   "page": "^/prices/?$",
   "sel": "#k-pr",
   "id": "prices.positioned"
  },
  {
   "page": "^/prices/?$",
   "sel": "#k-cmp",
   "id": "prices.comparisons"
  },
  {
   "page": "^/status/?$",
   "sel": "#st-up > p > b:nth-of-type(1)",
   "id": "status.up7"
  },
  {
   "page": "^/status/?$",
   "sel": "#st-up > p > b:nth-of-type(2)",
   "id": "status.up30"
  },
  {
   "page": "^/status/?$",
   "sel": "#st-fr > p > b:nth-of-type(1)",
   "id": "status.fresh"
  },
  {
   "page": "^/status/?$",
   "sel": "#st-ev > p > b:nth-of-type(1)",
   "id": "status.evals"
  }
 ]
}