{
 "use_case": "paper-claim-check",
 "title": "Citation and claim check: a four-sentence manuscript with a wrong and a retracted citation",
 "about": "A four-sentence manuscript citing three papers from the reference list of an open-access CC BY article, plus the retracted 2020 hydroxychloroquine registry study. Citations [1] and [2] must be supported with a quoted passage, [3] (a hospital Staphylococcus aureus paper cited for SARS-CoV-2 super-spreaders) must be flagged, reference 4 must be flagged retracted, and the signed record must verify and catch a changed entry. Lookups go to Crossref, OpenAlex and Europe PMC.",
 "licence": "The sentences are written for Decosa; the three reference strings come from the reference list of Mauras S et al., PLoS Comput Biol 2021;17(8):e1009264 (CC BY 4.0), and reference 4 is the public bibliographic entry of Mehra et al., The Lancet 2020 (retracted). Part of decosa-api, AGPL-3.0-or-later.",
 "inputs": [
  {
   "file": "inputs/manuscript.md",
   "what": "The manuscript as plain text or Markdown, with numbered citations [n] and a numbered References list (PDF, DOCX and LaTeX go through /papercheck/extract first)."
  }
 ],
 "links": [
  {
   "url": "https://europepmc.org/article/PMC/PMC8389398",
   "what": "The CC BY article the reference strings come from."
  }
 ],
 "steps": [
  {
   "id": "check",
   "method": "POST",
   "path": "/papercheck/check",
   "timeout": 240,
   "body": {
    "text": {
     "$file": "inputs/manuscript.md"
    },
    "stream": false
   }
  },
  {
   "id": "verify",
   "method": "POST",
   "path": "/record/verify",
   "auth": false,
   "body": {
    "record": {
     "$ref": "check.report.record"
    }
   }
  },
  {
   "id": "tampered",
   "method": "POST",
   "path": "/record/verify",
   "auth": false,
   "body": {
    "record": {
     "$ref": "check.report.record"
    }
   },
   "tamper": {
    "at": "record.entries[kind=claim,ref=3].verdict",
    "set": "supported"
   }
  }
 ],
 "checks": [
  {
   "says": "four references are found",
   "path": "check.report.references",
   "count": 4
  },
  {
   "says": "citation [1] is supported with a quoted passage",
   "path": "check.report.claims[ref=1,verdict=supported][0].evidence",
   "count_min": 1
  },
  {
   "says": "citation [2] is supported with a quoted passage",
   "path": "check.report.claims[ref=2,verdict=supported][0].evidence",
   "count_min": 1
  },
  {
   "says": "the wrong paper cited as [3] is flagged",
   "path": "check.report.claims[ref=3][0].verdict",
   "in": [
    "unsupported",
    "contradicted",
    "partial"
   ]
  },
  {
   "says": "reference 4 is flagged retracted",
   "path": "check.report.references[n=4][0].retracted",
   "equals": true
  },
  {
   "says": "the retraction is raised as an error issue",
   "path": "check.report.issues[kind=retracted,ref=4,severity=error]",
   "count": 1
  },
  {
   "says": "the signed record verifies",
   "path": "verify.ok",
   "equals": true
  },
  {
   "says": "a record with the [3] verdict changed to supported no longer verifies",
   "path": "tampered.ok",
   "equals": false
  },
  {
   "says": "verification points at a claim entry",
   "path": "tampered.first_bad",
   "min": 5,
   "max": 8
  },
  {
   "says": "every model call has a signed receipt",
   "receipts": "signed",
   "min": 4
  }
 ]
}
