{
  "id": "verification-level-triage",
  "title": "Verification-level triage of a SAP output list against the user's own risk criteria",
  "study": {
    "name": "CDISCPILOT01 (CDISC SDTM/ADaM Pilot Project, xanomeline TTS in mild to moderate Alzheimer's disease)",
    "source_url": "https://github.com/cdisc-org/sdtm-adam-pilot-project",
    "licence_note": "Output list quoted from the Statistical Analysis Plan, Appendix 9 of the CDISCPILOT01 CSR (SAP section 13.1, SAP pp.17-18 = CSR pp.433-434) and dataset names and labels from adam_define.xml, CDISC. Attribution to CDISC is required by the repository README terms: unmodified, no sale of the data, attribution back to CDISC. Mock submission with fictional dates. Titles are quoted with dashes normalised to hyphens."
  },
  "task": "Assign each of the 29 tables and 1 figure in the SAP output index to a verification level (1 independent double programming, 2 code review plus spot-check, 3 visual check) using risk criteria written by the user, and map each to the ADaM datasets in define.xml.",
  "time_to_try_minutes": {
    "minutes": 15,
    "label": "estimate: paste your output list and criteria, then read the result against your own templates"
  },
  "good": {
    "input_excerpt": "From the CDISCPILOT01 Statistical Analysis Plan, section 13.1 \"Table of Contents for Data Display Specifications\" (SAP pp.17-18; CSR PDF pp.433-434). Treatment groups: Placebo, Xanomeline Low Dose, Xanomeline High Dose.\n\n13.1.1 Tables\n1. Summary of Populations (Template 1)\n2. Summary of End of Study Data (Template 2)\n3. Summary of Demographic and Baseline Characteristics (Template 3)\n4. Summary of Number of Subjects by Site (Template 4)\n5. Primary Endpoint Analysis: ADAS Cog (11) - Change from Baseline to Week 24 - LOCF (Template 5)\n6. Primary Endpoint Analysis: CIBIC+ - Summary at Week 24 - LOCF (Template 6)\n7. ADAS Cog (11) - Change from Baseline to Week 8 - LOCF (Template 5)\n8. CIBIC+ - Summary at Week 8 - LOCF (Template 6)\n9. ADAS Cog (11) - Change from Baseline to Week 16 - LOCF (Template 5)\n10. CIBIC+ - Summary at Week 16 - LOCF (Template 6)\n11. ADAS Cog (11) - Change from Baseline to Week 24 - Completers at Week 24 - Observed Cases-Windowed (Template 7)\n12. ADAS Cog (11) - Change from Baseline to Week 24 in Male Subjects - LOCF (Template 8)\n13. ADAS Cog (11) - Change from Baseline to Week 24 in Female Subjects - LOCF (Template 8)\n14. ADAS Cog (11) - Mean and Mean Change from Baseline over Time (Template 9)\n15. ADAS Cog (11) - Repeated Measures Analysis of Change from Baseline to Week 24 (Template 10)\n16. Mean NPI-X Total Score from Week 4 through Week 24 - Windowed (Template 11)\n17. Summary of Planned Exposure to Study Drug, as of End of Study (Template 12)\n18. Incidence of Treatment Emergent Adverse Events by Treatment Group (Template 13)\n19. Incidence of Treatment Emergent Serious Adverse Events by Treatment Group (Template 14)\n20. Summary Statistics for Continuous Laboratory Values (Template 15)\n21. Frequency of Normal and Abnormal (Beyond Normal Range) Laboratory Values During Treatment (Template 16)\n22. Frequency of Normal and Abnormal (Clinically Significant Change from Previous Visit) Laboratory Values During Treatment (Template 17)\n23. Shifts of Laboratory Values During Treatment, Categorized Based on Threshold Ranges, by Visit (Template 18)\n24. Shifts of Laboratory Values During Treatment, Categorized Based on Threshold Ranges (Template 19)\n25. Shifts of Hy's Law Values During Treatment (Template 20)\n26. Summary of Vital Signs at Baseline and End of Treatment (Template 21)\n27. Summary of Vital Signs Change From Baseline at End of Treatment (Template 22)\n28. Summary of Weight Change From Baseline at End of Treatment (Template 23)\n29. Summary of Concomitant Medications (Number of Subjects) (Template 24)\n\n13.1.2 Figures\n1. Time to First Dermatological Event by Treatment Group (Figure 1)\n\nADaM datasets (adam_define.xml, ItemGroupDef name | label):\nADSL | Subject-Level Analysis\nADAE | Adverse Events Analysis Dataset\nADLBC | Analysis Dataset Lab Blood Chemistry\nADLBH | Analysis Dataset Lab Hematology\nADLBHY | Analysis Dataset Lab Hy's Law\nADQSADAS | ADAS-Cog Analysis\nADQSCIBC | CIBIC+ Analysis\nADQSNPIX | NPI-X Item Analysis Data\nADTTE | AE Time To 1st Derm. Event Analysis\nADVS | Vital Signs Analysis Dataset",
    "input_excerpt_words": 504,
    "prompt": "Triage the 29 tables and 1 figure above into verification levels, using my criteria exactly as written.\n\nMy criteria:\nLevel 1 = independent double programming. Use when the output is a primary endpoint analysis, any other inferential efficacy analysis (model, test or p-value), or a time-to-event output.\nLevel 2 = code review plus spot-check against the data. Use when the output creates derived categories or flags (shift, abnormal, windowing, change from baseline) but is not Level 1.\nLevel 3 = visual check of the output against the data listing. Use for plain counts or descriptive summaries of existing variables.\nIf two levels could apply, take the higher and say so.\n\nGive a table: output number, short title, level, which criterion applied (one phrase), and the ADaM dataset(s) it most likely draws on, chosen only from the dataset list. Where the title does not tell you enough to apply a criterion or pick a dataset, write \"cannot tell from title\" instead of guessing. Then give counts per level and one level per dataset (highest level of any output using it). Do not add outputs that are not in the list.",
    "output": "TRIAGE OF 29 TABLES AND 1 FIGURE (T = table, F = figure; numbers are the 13.1.1 / 13.1.2 numbers)\n\nT1 | Populations | 3 | plain counts | ADSL\nT2 | End of study data | 3 | plain counts | ADSL\nT3 | Demographics and baseline | 3 | descriptive summary of existing variables | ADSL\nT4 | Subjects by site | 3 | plain counts | ADSL\nT5 | PRIMARY ADAS-Cog wk24 change, LOCF | 1 | primary endpoint | ADQSADAS\nT6 | PRIMARY CIBIC+ wk24, LOCF | 1 | primary endpoint | ADQSCIBC\nT7 | ADAS-Cog wk8 change, LOCF | 1 | higher of 1/2 (see note A) | ADQSADAS\nT8 | CIBIC+ wk8, LOCF | 1 | higher of 1/2 (see note A) | ADQSCIBC\nT9 | ADAS-Cog wk16 change, LOCF | 1 | higher of 1/2 (see note A) | ADQSADAS\nT10 | CIBIC+ wk16, LOCF | 1 | higher of 1/2 (see note A) | ADQSCIBC\nT11 | ADAS-Cog wk24 change, completers, windowed | 1 | higher of 1/2 (see note B) | ADQSADAS\nT12 | ADAS-Cog wk24 change, males, LOCF | 1 | higher of 1/2 (see note B) | ADQSADAS\nT13 | ADAS-Cog wk24 change, females, LOCF | 1 | higher of 1/2 (see note B) | ADQSADAS\nT14 | ADAS-Cog mean and mean change over time | 2 | change from baseline | ADQSADAS\nT15 | ADAS-Cog repeated measures analysis | 1 | inferential efficacy (model) | ADQSADAS\nT16 | NPI-X mean total score wk4-24, windowed | 2 | windowing | ADQSNPIX\nT17 | Planned exposure to study drug | 3 | descriptive summary (see note C) | cannot tell from title\nT18 | Incidence of TEAEs | 3 | plain counts | ADAE\nT19 | Incidence of treatment-emergent SAEs | 3 | plain counts | ADAE\nT20 | Summary stats, continuous lab values | 3 | descriptive summary | ADLBC, ADLBH\nT21 | Normal/abnormal labs, beyond normal range | 2 | abnormal flag | ADLBC, ADLBH\nT22 | Normal/abnormal labs, clinically significant change | 2 | abnormal flag / change from previous visit | ADLBC, ADLBH\nT23 | Lab shifts by visit | 2 | shift categories | ADLBC, ADLBH\nT24 | Lab shifts, overall | 2 | shift categories | ADLBC, ADLBH\nT25 | Hy's Law shifts | 2 | shift categories | ADLBHY\nT26 | Vital signs at baseline and end of treatment | 3 | descriptive summary | ADVS\nT27 | Vital signs change from baseline at end of treatment | 2 | change from baseline | ADVS\nT28 | Weight change from baseline at end of treatment | 2 | change from baseline | ADVS\nT29 | Concomitant medications (number of subjects) | 3 | plain counts | cannot tell from title\nF1 | Time to first dermatological event | 1 | time-to-event | ADTTE\n\nNOTES ON JUDGMENT CALLS\nA. T7-T10: The titles do not show a model or p-value. They use the same templates as the primary analyses (Template 5 for T7 and T9, Template 6 for T8 and T10). Change from baseline alone would make them Level 2. Because Level 1 may also apply, I took the higher level, as you instructed. Drop them to Level 2 if those templates show only descriptive statistics at these visits.\nB. T11-T13: These are the same ADAS-Cog week 24 change analysis, restricted to completers (windowed) or to a sex subgroup, and each uses its own template (7 or 8). The titles do not show whether a model or test is displayed. Windowing and change from baseline make them at least Level 2. Because Level 1 may also apply, I took the higher level. This is the weakest call in the list, so check the template text.\nC. T17: Planned exposure is probably a descriptive summary, so Level 3. If it builds exposure categories, it would move to Level 2. No exposure dataset is on the list, and ADSL is only a guess, so I wrote \"cannot tell from title\".\nD. T3, T18 and T19 could carry between-group tests. They are safety or baseline outputs, not efficacy, so they stay Level 3. T20 could include change from baseline, but the title says only summary statistics, so it stays Level 3.\nE. T29: No concomitant-medication dataset is on the list, so I wrote \"cannot tell from title\".\nF. T14 is descriptive but built on change from baseline, so Level 2. T16 describes means only, so I put it at Level 2 (windowing) and did not raise it to Level 1.\nG. I took lab outputs from both ADLBC and ADLBH because the titles do not say which lab panel they cover. ADSL and ADTTE may also supply denominators or flags, but I listed only the most likely dataset.\n\nCOUNTS PER LEVEL (30 outputs)\nLevel 1: 11 (T5-T13, T15, F1). These are 10 tables plus the figure.\nLevel 2: 9 (T14, T16, T21-T25, T27, T28)\nLevel 3: 10 (T1-T4, T17-T20, T26, T29)\nTotal: 30 (29 tables and 1 figure).\n\nHIGHEST LEVEL PER ADaM DATASET\nADQSADAS: Level 1\nADQSCIBC: Level 1\nADTTE: Level 1\nADLBC: Level 2\nADLBH: Level 2\nADLBHY: Level 2\nADQSNPIX: Level 2\nADVS: Level 2\nADSL: Level 3\nADAE: Level 3\n\nNo output was assigned to a dataset outside the list. T17 and T29 are unassigned, so they do not affect any dataset's level.",
    "trim_note": "Not trimmed. The answer is the cold run verbatim; the 'see note' wording is the model's. The levels and counts in this output are the cold run's own and are uncorrected: it reported Level 1 = 11, Level 2 = 9, Level 3 = 10, and ADQSNPIX at Level 2. After the SAP templates were read, two levels changed (T16 from 2 to 1, T20 from 3 to 2), giving Level 1 = 12, Level 2 = 9, Level 3 = 9 and ADQSNPIX at Level 1. The corrections are in the verification section below.",
    "contamination_note": "The person building this example had read the 13.1 titles and the dataset list before fixing the criteria and the prompt, and the criteria were written by that person, not by a real team, so there is no independent owner of the risk rules. The cold run was an agent told not to use tools (instruction only, not enforced by the harness). The SAP templates (SAP pp.19-43, CSR PDF pp.435-459) were read only after the cold run, and the model never saw them. There is no ground truth for a triage: the verification checks the levels against the stated criteria, not against a correct answer."
  },
  "bad": {
    "input": "which of my tables need double programming and which can just be checked by eye? it's an alzheimer's study",
    "output": "Here is a typical triage for an Alzheimer's study. I have not seen your output list, so this is based on what such studies usually contain.\n\nHIGH risk (independent double programming)\n- Primary efficacy: ADAS-Cog change from baseline at Week 24 (MMRM)\n- Key secondary efficacy: CDR-SB, MMSE, ADCS-ADL\n- ARIA-E / ARIA-H incidence (MRI safety)\n- Time to first adverse event of special interest\n- Responder analyses\n\nMEDIUM risk (check programs / peer code review)\n- Adverse events by SOC and PT\n- Serious adverse events\n- Laboratory shift tables\n- ECG and vital sign summaries\n- Subgroup analyses by APOE4 status\n\nLOW risk (visual check against the data)\n- Demographics and baseline characteristics\n- Subject disposition\n- Protocol deviations\n- Concomitant medications\n- Exposure\n\nSuggested approach: double program all HIGH items, review code for MEDIUM items, and eyeball the LOW items. Datasets: ADSL, ADAE, ADLB, ADVS, ADQS (questionnaire scores), ADEX should be validated first. Let me know the actual list and I can refine this.",
    "what_went_wrong": [
      "No list was supplied, so the assistant invented one: ARIA-E/H, CDR-SB, ADCS-ADL, APOE4 subgroups, responder analyses and time to AESI are not in this study's SAP.",
      "It missed the outputs that matter here: CIBIC+ (co-primary), NPI-X, Hy's Law shifts and the time-to-first-dermatological-event figure.",
      "Dataset names (ADQS, ADEX, ADVS) were guessed; the define.xml has ADQSADAS, ADQSCIBC, ADQSNPIX, ADLBC, ADLBH, ADLBHY and ADTTE and no ADEX.",
      "The risk rule was the assistant's own (clinical importance), not the user's; there were no criteria to apply, and it did not say so.",
      "It ended by offering to refine once it saw the list, which is the right instinct but should have come first."
    ]
  },
  "what_changed": [
    "The real list went in, so every row traces to a numbered SAP output; the lazy run invented ARIA, CDR-SB and responder tables.",
    "The criteria were the user's, stated in the prompt with a tie-break rule, so the levels can be audited rule by rule.",
    "The dataset list came from define.xml, so the model named ADQSADAS and ADTTE instead of guessing ADQS and ADEX.",
    "The prompt allowed 'cannot tell from title', and the model used it twice (T17, T29) instead of guessing a dataset.",
    "Titles alone hid what the templates show (p-values in the NPI-X table, change-from-baseline columns in the lab summary), so two levels were wrong; paste the template text if you want those caught."
  ],
  "check_before_trust": [
    "Recount the rows: 29 tables plus 1 figure, each once, none added.",
    "Open the template for every output the model hedged on (here T7-T13, T17) and re-apply your criterion to what it shows.",
    "Check any output whose title looks descriptive but may carry a model or p-value (here NPI-X, Template 11) or derive change from baseline (here lab summary, Template 15).",
    "Check that every dataset named exists in your define.xml and that outputs with no listed dataset were left blank, not guessed.",
    "Check whether your criteria cover safety tests with p-values; this model followed the letter (efficacy only) and left AE tables at Level 3.",
    "Recompute the counts per level and the highest level per dataset yourself; they are derived from the rows."
  ],
  "verification": {
    "answer_key": "No public answer key exists for a triage: the risk criteria are the user's. Verification therefore checks (1) completeness against SAP section 13.1 (pp.17-18), (2) that nothing was invented, and (3) consistency of each level with the stated criteria, using the SAP templates (SAP pp.19-43, CSR pp.435-459) that the model never saw. Contamination: the person building this example had read the 13.1 titles and the dataset list before fixing the criteria and the prompt, and the cold run was an agent told not to use tools (instruction only, not enforced by the harness). The templates were read only after the cold run.",
    "rows": [
      {
        "output": "good",
        "claim": "Completeness: all 29 tables and the 1 figure appear exactly once, numbered as in 13.1.1 and 13.1.2",
        "verdict": "correct",
        "cite": "SAP pp.17-18 (CSR pp.433-434); checked row by row, 30 of 30"
      },
      {
        "output": "good",
        "claim": "No output invented (the bad run added ARIA, CDR-SB, APOE4 and responder tables; this run added none)",
        "verdict": "correct",
        "cite": "SAP pp.17-18"
      },
      {
        "output": "good",
        "claim": "Arithmetic: the cold run's own counts 11 / 9 / 10 sum to 30 and match the rows it listed (these are the uncorrected counts)",
        "verdict": "correct",
        "cite": "Recounted from the table"
      },
      {
        "output": "good",
        "claim": "Every dataset named is in the supplied define.xml list; T17 and T29 left unassigned because no exposure or conmed dataset is listed",
        "verdict": "correct",
        "cite": "adam_define.xml ItemGroupDef list (10 datasets)"
      },
      {
        "output": "good",
        "claim": "T5, T6, T15: Level 1 as primary or model-based",
        "verdict": "correct",
        "cite": "Templates 5 and 6 (SAP pp.23-24) and Template 10 (SAP p.28): p-values for dose response and pairwise comparisons"
      },
      {
        "output": "good",
        "claim": "T7-T10: Level 1",
        "verdict": "correct",
        "cite": "Templates 5 and 6 carry dose-response and pairwise p-values, SAP pp.23-24. The model reached this by hedging ('higher of 1/2'), not by reading the template, so the reasoning is weaker than the result"
      },
      {
        "output": "good",
        "claim": "T11-T13: Level 1",
        "verdict": "correct",
        "cite": "Templates 7 and 8 carry the same p-value footnotes [2] and [3], SAP pp.25-26. Same reasoning caveat; the model flagged these as its weakest call"
      },
      {
        "output": "good",
        "claim": "F1: Level 1 time-to-event, dataset ADTTE",
        "verdict": "correct",
        "cite": "SAP p.18 title; ADTTE label 'AE Time To 1st Derm. Event Analysis'"
      },
      {
        "output": "good",
        "claim": "T14: Level 2 (change from baseline, descriptive)",
        "verdict": "correct",
        "cite": "Template 9, SAP p.27: means and changes only, no p-values"
      },
      {
        "output": "good",
        "claim": "T16 NPI-X: Level 2 because 'means only'",
        "verdict": "wrong",
        "cite": "Template 11, SAP p.29, shows ANCOVA dose-response and pairwise p-values, so under the user's own criterion (any inferential efficacy analysis) it is Level 1. The title alone does not show this"
      },
      {
        "output": "good",
        "claim": "T20 continuous labs: Level 3",
        "verdict": "partly",
        "cite": "Template 15, SAP p.33, has Change from Baseline columns at each visit; under criterion 2 (change from baseline) it is Level 2. The model noted this risk in note D but kept Level 3"
      },
      {
        "output": "good",
        "claim": "T18, T19 AE incidence: Level 3",
        "verdict": "partly",
        "cite": "Templates 13 and 14 carry p-values, but the criterion says inferential EFFICACY analysis, so Level 3 follows the letter. The criterion has a gap for safety tests; the user decides"
      },
      {
        "output": "good",
        "claim": "T21-T25 lab flags and shifts Level 2; T27, T28 Level 2; T26 Level 3",
        "verdict": "correct",
        "cite": "Templates 16-23: abnormal flags, shift categories, change from baseline. T21, T22, T24 also show p-values but are safety, same gap as T18"
      },
      {
        "output": "good",
        "claim": "T1-T4 Level 3 counts and descriptives",
        "verdict": "correct",
        "cite": "Templates 1-4, SAP pp.19-22. Templates 2 and 3 also carry Fisher, ANOVA and chi-square p-values, but these are disposition and baseline outputs, not efficacy; the age, BMI and disease-duration groups in Template 3 exist as ADSL variables (AGEGR1, BMIBLGR1, DURDSGR1), so Level 3 follows the criteria"
      },
      {
        "output": "good",
        "claim": "T17 exposure Level 3 with dataset 'cannot tell from title'",
        "verdict": "not in source",
        "cite": "Template 12, SAP p.30, shows average daily dose and cumulative dose; the title-only input cannot support a dataset choice, and abstaining was correct. In adam_define.xml those two quantities are ADSL variables (AVGDD, CUMDOSE), so ADSL would have been the right dataset"
      },
      {
        "output": "good",
        "claim": "Dataset levels: ADQSNPIX shown at Level 2",
        "verdict": "wrong",
        "cite": "Follows from the T16 error; should be Level 1 (counts become 12 / 9 / 9 after fixing T16 and T20)"
      },
      {
        "output": "good",
        "claim": "Notes A and B say a template might show only descriptive statistics",
        "verdict": "false gap",
        "cite": "Only titles were supplied, so the model could not see the templates; it correctly asked for them to be checked"
      }
    ],
    "errors_found": [
      "T16 (NPI-X) was placed at Level 2 on the reading 'means only'; Template 11 has dose-response and pairwise ANCOVA p-values, so the user's criterion gives Level 1 (SAP p.29). Knock-on: ADQSNPIX is Level 1, not 2.",
      "T20 (continuous lab values) was kept at Level 3; Template 15 shows change from baseline at each visit, so criterion 2 gives Level 2 (SAP p.33). The model named the risk and still chose Level 3.",
      "Counts: the cold run reported Level 1 = 11, Level 2 = 9, Level 3 = 10 (consistent with its own rows). Corrected after the template check: Level 1 = 12 (T16 added), Level 2 = 9 (T20 added, T16 removed), Level 3 = 9 (T20 removed). Highest level per dataset: ADQSNPIX moves from 2 to 1; ADLBC and ADLBH stay at 2 because they already had Level 2 outputs.",
      "Reasoning for T7-T13 was 'take the higher level' on titles that showed nothing; the levels are right only because the templates carry p-values."
    ],
    "summary": "Of 17 checked claims, 11 correct, 2 partly, 2 wrong, 1 not in source, 1 false gap. Completeness and traceability were clean: 30 of 30 outputs, none invented, all datasets from the list, honest 'cannot tell' on two rows, counts add up. Two levels changed under the user's own criteria once the templates were read (T16 to Level 1, T20 to Level 2). The cold run's counts were 11 / 9 / 10 (Level 1 / 2 / 3); the corrected counts are 12 / 9 / 9. Judgement calls the criteria do not settle, such as safety tests with p-values, belong to the user. There is no ground truth for a triage, so this is a consistency check, not proof the levels are right."
  },
  "run": {
    "generated_by": "Claude (Anthropic), run as a subagent on 2026-10-20",
    "not_tested_in": "Microsoft 365 Copilot"
  }
}
