[
 {
  "name": "dim_record",
  "type": "dimension",
  "grain": "One row per record: study, template, specialist, skill, dataset or external tool.",
  "rows": 796,
  "columns": [
   {
    "name": "record_id",
    "type": "text",
    "description": "Key, e.g. skill:e2er/econometrics/did or run:bhanneke/spot-bitcoin-etf-comovement",
    "references": null
   },
   {
    "name": "kind",
    "type": "text",
    "description": "study (run), template, specialist, skill, dataset, pipeline",
    "references": null
   },
   {
    "name": "name",
    "type": "text",
    "description": "Title or name",
    "references": null
   },
   {
    "name": "status",
    "type": "text",
    "description": "in-place, prototype, planned, illustration",
    "references": null
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Invented record of the demonstrator",
    "references": null
   },
   {
    "name": "source_id",
    "type": "text",
    "description": "Where the record comes from",
    "references": "dim_source"
   },
   {
    "name": "collection",
    "type": "text",
    "description": "Pack, folder or collection within the source",
    "references": null
   },
   {
    "name": "license",
    "type": "text",
    "description": "Licence as the source declares it",
    "references": null
   },
   {
    "name": "version",
    "type": "text",
    "description": "Version, where the source has one",
    "references": null
   },
   {
    "name": "published_date_id",
    "type": "date",
    "description": "Publication date of a study",
    "references": "dim_date"
   },
   {
    "name": "href",
    "type": "text",
    "description": "Page on the site",
    "references": null
   }
  ]
 },
 {
  "name": "dim_party",
  "type": "dimension",
  "grain": "One row per person, group or organisation credited anywhere.",
  "rows": 241,
  "columns": [
   {
    "name": "party_id",
    "type": "text",
    "description": "Key: person:<id> for profiles, creator:<name> for creators named by a source",
    "references": null
   },
   {
    "name": "name",
    "type": "text",
    "description": "Name",
    "references": null
   },
   {
    "name": "party_type",
    "type": "text",
    "description": "researcher, group or creator",
    "references": null
   },
   {
    "name": "is_organisation",
    "type": "bool",
    "description": "A group, lab or company",
    "references": null
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Invented example researcher",
    "references": null
   },
   {
    "name": "has_profile",
    "type": "bool",
    "description": "Has an E2ER profile (else credited by its source only)",
    "references": null
   },
   {
    "name": "orcid",
    "type": "text",
    "description": "ORCID iD where known",
    "references": null
   },
   {
    "name": "github",
    "type": "text",
    "description": "GitHub login where known",
    "references": null
   },
   {
    "name": "affiliation",
    "type": "text",
    "description": "First recorded affiliation",
    "references": null
   }
  ]
 },
 {
  "name": "dim_term",
  "type": "dimension",
  "grain": "One row per term of the controlled vocabularies.",
  "rows": 56,
  "columns": [
   {
    "name": "term_id",
    "type": "text",
    "description": "Key: <facet>:<term>",
    "references": null
   },
   {
    "name": "facet",
    "type": "text",
    "description": "discipline, method, design, stage, kind, status",
    "references": null
   },
   {
    "name": "term",
    "type": "text",
    "description": "Term id",
    "references": null
   },
   {
    "name": "label",
    "type": "text",
    "description": "Label",
    "references": null
   },
   {
    "name": "broader",
    "type": "text",
    "description": "Broader term",
    "references": "dim_term"
   },
   {
    "name": "origin",
    "type": "text",
    "description": "Vocabulary origin (RISE, E2ER proposal)",
    "references": null
   }
  ]
 },
 {
  "name": "dim_role",
  "type": "dimension",
  "grain": "One row per CRediT contributor role.",
  "rows": 15,
  "columns": [
   {
    "name": "role_id",
    "type": "text",
    "description": "Key: CRediT role id, or unspecified",
    "references": null
   },
   {
    "name": "label",
    "type": "text",
    "description": "Label",
    "references": null
   }
  ]
 },
 {
  "name": "dim_source",
  "type": "dimension",
  "grain": "One row per source E2ER reads.",
  "rows": 9,
  "columns": [
   {
    "name": "source_id",
    "type": "text",
    "description": "Key",
    "references": null
   },
   {
    "name": "label",
    "type": "text",
    "description": "Label",
    "references": null
   },
   {
    "name": "url",
    "type": "text",
    "description": "Address",
    "references": null
   }
  ]
 },
 {
  "name": "dim_check",
  "type": "dimension",
  "grain": "One row per kind of check.",
  "rows": 7,
  "columns": [
   {
    "name": "check_id",
    "type": "text",
    "description": "Key",
    "references": null
   },
   {
    "name": "performed_by",
    "type": "text",
    "description": "author (the author's own e2er verify) or e2er (the site's re-check)",
    "references": null
   },
   {
    "name": "description",
    "type": "text",
    "description": "What it checks",
    "references": null
   }
  ]
 },
 {
  "name": "dim_model",
  "type": "dimension",
  "grain": "One row per AI backend and model that a published study recorded.",
  "rows": 1,
  "columns": [
   {
    "name": "model_id",
    "type": "text",
    "description": "Key: <backend>/<model>",
    "references": null
   },
   {
    "name": "backend",
    "type": "text",
    "description": "Backend",
    "references": null
   },
   {
    "name": "model",
    "type": "text",
    "description": "Model",
    "references": null
   }
  ]
 },
 {
  "name": "dim_date",
  "type": "dimension",
  "grain": "One row per calendar day that occurs in a fact.",
  "rows": 33,
  "columns": [
   {
    "name": "date_id",
    "type": "date",
    "description": "Key: YYYY-MM-DD",
    "references": null
   },
   {
    "name": "year",
    "type": "int",
    "description": "Year",
    "references": null
   },
   {
    "name": "quarter",
    "type": "int",
    "description": "Quarter",
    "references": null
   },
   {
    "name": "month",
    "type": "int",
    "description": "Month",
    "references": null
   }
  ]
 },
 {
  "name": "fact_use",
  "type": "fact",
  "grain": "One row per directed dependency: a record uses, extends or forks another.",
  "rows": 423,
  "columns": [
   {
    "name": "from_record_id",
    "type": "text",
    "description": "The record that uses",
    "references": "dim_record"
   },
   {
    "name": "to_record_id",
    "type": "text",
    "description": "The record used",
    "references": "dim_record"
   },
   {
    "name": "relation",
    "type": "text",
    "description": "uses, extends (study → study), forkOf (template → template)",
    "references": null
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Either end is an example",
    "references": null
   },
   {
    "name": "date_id",
    "type": "date",
    "description": "Publication date of the using study",
    "references": "dim_date"
   }
  ]
 },
 {
  "name": "fact_contribution",
  "type": "fact",
  "grain": "One row per party, record and role: who is credited for what.",
  "rows": 1269,
  "columns": [
   {
    "name": "party_id",
    "type": "text",
    "description": "Who",
    "references": "dim_party"
   },
   {
    "name": "record_id",
    "type": "text",
    "description": "What",
    "references": "dim_record"
   },
   {
    "name": "role_id",
    "type": "text",
    "description": "CRediT role",
    "references": "dim_role"
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Record or party is an example",
    "references": null
   }
  ]
 },
 {
  "name": "fact_tag",
  "type": "fact",
  "grain": "One row per tag on a record, with where the tag comes from.",
  "rows": 2446,
  "columns": [
   {
    "name": "record_id",
    "type": "text",
    "description": "Record",
    "references": "dim_record"
   },
   {
    "name": "term_id",
    "type": "text",
    "description": "Term",
    "references": "dim_term"
   },
   {
    "name": "via",
    "type": "text",
    "description": "declared, mapped, inferred or default",
    "references": null
   },
   {
    "name": "rule",
    "type": "text",
    "description": "Inference rule or source term",
    "references": null
   }
  ]
 },
 {
  "name": "fact_check",
  "type": "fact",
  "grain": "One row per check run on a study, by its author or by E2ER.",
  "rows": 162,
  "columns": [
   {
    "name": "record_id",
    "type": "text",
    "description": "Study",
    "references": "dim_record"
   },
   {
    "name": "check_id",
    "type": "text",
    "description": "Check",
    "references": "dim_check"
   },
   {
    "name": "status",
    "type": "text",
    "description": "PASS, FAIL or SKIP",
    "references": null
   },
   {
    "name": "checked",
    "type": "int",
    "description": "Items checked, where stated",
    "references": null
   },
   {
    "name": "total",
    "type": "int",
    "description": "Items in total, where stated",
    "references": null
   },
   {
    "name": "detail",
    "type": "text",
    "description": "Detail as reported",
    "references": null
   },
   {
    "name": "date_id",
    "type": "date",
    "description": "When",
    "references": "dim_date"
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Invented check of an example study",
    "references": null
   }
  ]
 },
 {
  "name": "fact_ai_usage",
  "type": "fact",
  "grain": "One row per study, specialist and model: AI calls recorded by the run.",
  "rows": 17,
  "columns": [
   {
    "name": "record_id",
    "type": "text",
    "description": "Study",
    "references": "dim_record"
   },
   {
    "name": "agent_record_id",
    "type": "text",
    "description": "The specialist as a record, where it exists",
    "references": "dim_record"
   },
   {
    "name": "agent",
    "type": "text",
    "description": "Specialist name as recorded",
    "references": null
   },
   {
    "name": "model_id",
    "type": "text",
    "description": "Backend and model",
    "references": "dim_model"
   },
   {
    "name": "calls",
    "type": "int",
    "description": "Calls",
    "references": null
   },
   {
    "name": "input_tokens",
    "type": "int",
    "description": "Input tokens",
    "references": null
   },
   {
    "name": "output_tokens",
    "type": "int",
    "description": "Output tokens",
    "references": null
   },
   {
    "name": "cost_usd",
    "type": "real",
    "description": "Cost in USD (0 on subscription backends)",
    "references": null
   },
   {
    "name": "date_id",
    "type": "date",
    "description": "First call",
    "references": "dim_date"
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Example study",
    "references": null
   }
  ]
 },
 {
  "name": "dim_dossier",
  "type": "dimension",
  "grain": "One row per study dossier: the settings a study was produced with, addressed by the SHA-256 of their canonical JSON.",
  "rows": 32,
  "columns": [
   {
    "name": "dossier_id",
    "type": "text",
    "description": "Key: sha256 of the canonical dossier JSON; resolves at /d/<short_id>",
    "references": null
   },
   {
    "name": "short_id",
    "type": "text",
    "description": "First 16 hex characters, used in the link",
    "references": null
   },
   {
    "name": "record_id",
    "type": "text",
    "description": "The study",
    "references": "dim_record"
   },
   {
    "name": "e2er_version",
    "type": "text",
    "description": "E2ER version the run recorded",
    "references": null
   },
   {
    "name": "e2er_commit",
    "type": "text",
    "description": "E2ER commit the components are pinned at",
    "references": null
   },
   {
    "name": "template",
    "type": "text",
    "description": "Template",
    "references": null
   },
   {
    "name": "mode",
    "type": "text",
    "description": "Run mode",
    "references": null
   },
   {
    "name": "governance",
    "type": "text",
    "description": "Governance setting",
    "references": null
   },
   {
    "name": "backend",
    "type": "text",
    "description": "AI backend",
    "references": null
   },
   {
    "name": "models",
    "type": "text",
    "description": "Models used, separated by ;",
    "references": null
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Example study",
    "references": null
   }
  ]
 },
 {
  "name": "fact_workflow_step",
  "type": "fact",
  "grain": "One row per step of a study's run, from its dossier: the specialist or check, the model, whether it was accepted, and the intermediate file it wrote with its SHA-256.",
  "rows": 39,
  "columns": [
   {
    "name": "dossier_id",
    "type": "text",
    "description": "Dossier",
    "references": "dim_dossier"
   },
   {
    "name": "step_no",
    "type": "int",
    "description": "Position in the run",
    "references": null
   },
   {
    "name": "step_type",
    "type": "text",
    "description": "specialist or check",
    "references": null
   },
   {
    "name": "phase",
    "type": "text",
    "description": "Phase of the template",
    "references": null
   },
   {
    "name": "agent_record_id",
    "type": "text",
    "description": "Specialist",
    "references": "dim_record"
   },
   {
    "name": "name",
    "type": "text",
    "description": "Specialist or check name",
    "references": null
   },
   {
    "name": "model_id",
    "type": "text",
    "description": "Model",
    "references": "dim_model"
   },
   {
    "name": "accepted",
    "type": "bool",
    "description": "Step accepted, or check passed",
    "references": null
   },
   {
    "name": "output_file",
    "type": "text",
    "description": "Intermediate file the step wrote",
    "references": null
   },
   {
    "name": "output_sha256",
    "type": "text",
    "description": "SHA-256 of that file in the exported folder",
    "references": null
   },
   {
    "name": "exported",
    "type": "bool",
    "description": "The file is in the exported folder",
    "references": null
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Example study",
    "references": null
   }
  ]
 },
 {
  "name": "fact_dossier_component",
  "type": "fact",
  "grain": "One row per component pinned in a dossier: which version of a template, specialist, skill or connector a study used.",
  "rows": 148,
  "columns": [
   {
    "name": "dossier_id",
    "type": "text",
    "description": "Dossier",
    "references": "dim_dossier"
   },
   {
    "name": "record_id",
    "type": "text",
    "description": "Component",
    "references": "dim_record"
   },
   {
    "name": "pin_kind",
    "type": "text",
    "description": "git_blob (content hash of the file at the commit), example_sha256, source_address, or none",
    "references": null
   },
   {
    "name": "pin_value",
    "type": "text",
    "description": "The hash or address",
    "references": null
   },
   {
    "name": "path",
    "type": "text",
    "description": "File path in the repository",
    "references": null
   },
   {
    "name": "is_example",
    "type": "bool",
    "description": "Example study",
    "references": null
   }
  ]
 },
 {
  "name": "agg_record_reach",
  "type": "aggregate",
  "grain": "One row per record: how far it reaches. Computed from fact_use and fact_contribution.",
  "rows": 796,
  "columns": [
   {
    "name": "record_id",
    "type": "text",
    "description": "Record",
    "references": "dim_record"
   },
   {
    "name": "direct_real",
    "type": "int",
    "description": "Real records that use it directly",
    "references": null
   },
   {
    "name": "direct_example",
    "type": "int",
    "description": "Example records that use it directly",
    "references": null
   },
   {
    "name": "studies_real",
    "type": "int",
    "description": "Real studies that reach it directly or through a chain",
    "references": null
   },
   {
    "name": "studies_example",
    "type": "int",
    "description": "Example studies that reach it",
    "references": null
   },
   {
    "name": "parties",
    "type": "int",
    "description": "Parties credited for those studies",
    "references": null
   }
  ]
 },
 {
  "name": "agg_party_reach",
  "type": "aggregate",
  "grain": "One row per party: how far their work reaches, own party excluded. Computed from fact_use and fact_contribution.",
  "rows": 241,
  "columns": [
   {
    "name": "party_id",
    "type": "text",
    "description": "Party",
    "references": "dim_party"
   },
   {
    "name": "works",
    "type": "int",
    "description": "Records they are credited for",
    "references": null
   },
   {
    "name": "studies_by_others_real",
    "type": "int",
    "description": "Real studies by others that reach their work",
    "references": null
   },
   {
    "name": "studies_by_others_example",
    "type": "int",
    "description": "Example studies by others that reach their work",
    "references": null
   },
   {
    "name": "reused_by_parties",
    "type": "int",
    "description": "Other parties credited for those studies",
    "references": null
   }
  ]
 }
]