{
  "_id": "6b0b529bb6d08ed7e3d9190a",
  "Package": "admiralagent",
  "Title": "Spec-Driven ADaM Code Generation with LLM-Translated Layers",
  "Version": "0.1.1",
  "Date": "2026-10-21",
  "Authors@R": "person(\"Jaime\", \"Yan\", role = c(\"aut\", \"cre\"), email = \"yanmingyunmt@gmail.com\")",
  "Description": "Translates Pinnacle 21 (P21)-style ADaM (Analysis Data\nModel) specifications into executable 'admiral' code with\nvalidation comments. An LLM (large language model, optional,\nvia 'ellmer') maps each spec variable's free-text derivation\nonto a closed vocabulary of derivation layers (a structured\nJSON intermediate representation (IR)); a deterministic\ncompiler renders the IR into 'admiral'/'metatools' code with\n'CHECK' validation comments and writes provenance sidecars.\nShips with a zero-dependency rule-based classifier as baseline\nand fallback; the LLM never writes R code directly and all\nmodel output is validated against the closed vocabulary before\nuse. The specification structure follows the CDISC (Clinical\nData Interchange Standards Consortium) Analysis Data Model\nstandard <https://www.cdisc.org/standards/foundational/adam>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "URL": "https://github.com/yanmingyu92/admiralagent",
  "BugReports": "https://github.com/yanmingyu92/admiralagent/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.1.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-28 22:12:12 UTC",
    "User": "root"
  },
  "Author": "Jaime Yan [aut, cre]",
  "Maintainer": "Jaime Yan <yanmingyunmt@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-28 21:05:07 UTC",
  "RemoteUrl": "https://github.com/cran/admiralagent",
  "RemoteRef": "HEAD",
  "RemoteSha": "a99524834c1cc25e83e138439dff43877f8babfd",
  "_user": "cran",
  "_type": "src",
  "_file": "admiralagent_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/b886a81b5bc8503efaebff64ab4f56b6c59d0d1d9f5fa37f9ad9a6993227478b",
  "_filesize": 423292,
  "_sha256": "b886a81b5bc8503efaebff64ab4f56b6c59d0d1d9f5fa37f9ad9a6993227478b",
  "_expires": "2027-03-08T22:15:53.000Z",
  "_created": "2026-11-28T22:12:12.000Z",
  "_published": "2026-11-28T22:15:55.303Z",
  "_upstream": "https://github.com/cran/admiralagent",
  "_status": "success",
  "_maintainer": {
    "name": "Jaime Yan",
    "email": "yanmingyunmt@gmail.com",
    "login": "yanmingyu",
    "description": "",
    "uuid": 25801487
  },
  "_jobs": [
    {
      "job": 141135606782,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15283905648"
    },
    {
      "job": 141135606774,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15283323152"
    },
    {
      "job": 141134679999,
      "time": 203,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15283631094"
    },
    {
      "job": 141135606766,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15283152304"
    },
    {
      "job": 141135606775,
      "time": 185,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15283516660"
    },
    {
      "job": 141135606816,
      "time": 171,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15283905632"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/46195154712",
  "_commit": {
    "id": "a99524834c1cc25e83e138439dff43877f8babfd",
    "author": "Jaime Yan <yanmingyunmt@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.1\n",
    "time": 1795899907
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "xml2",
      "role": "Suggests"
    },
    {
      "package": "ellmer",
      "role": "Suggests"
    },
    {
      "package": "metacore",
      "role": "Suggests"
    },
    {
      "package": "admiral",
      "role": "Suggests"
    },
    {
      "package": "metatools",
      "role": "Suggests"
    },
    {
      "package": "readxl",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "haven",
      "role": "Suggests"
    },
    {
      "package": "pharmaversesdtm",
      "role": "Suggests"
    },
    {
      "package": "pharmaverseadam",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-48",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.1",
      "date": "2026-11-28"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "yanmingyu",
      "count": 1,
      "uuid": 25801487
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/admiralagent"
  },
  "_devurl": "https://github.com/yanmingyu92/admiralagent",
  "_searchresults": 4,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/admiralagent.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-11-28"
    }
  ],
  "_authors": [
    {
      "name": "Jaime Yan",
      "email": "yanmingyunmt@gmail.com",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_exports": [
    "aa_layers",
    "accept_model",
    "agreement_overstatement",
    "artifact_hash",
    "build_context",
    "build_system_prompt",
    "check_admiral_compat",
    "classify_variables",
    "classify_variables_dual",
    "classify_variables_llm",
    "codelist_from_data",
    "dataset_json_meta",
    "dual_disagreements",
    "evals_accuracy",
    "execute_ir",
    "ir_dependency_report",
    "layer_docs",
    "layer_names",
    "load_evals",
    "mcp_handle_request",
    "mcp_serve",
    "mcp_tool_specs",
    "mock_metacore",
    "mock_spec_adsl",
    "new_step",
    "new_variable_ir",
    "read_artifact",
    "read_dataset_json",
    "read_define",
    "read_spec",
    "read_spec_df",
    "render_program",
    "render_variable",
    "routing_plan",
    "run_agreement",
    "run_evals",
    "run_validation",
    "spec_variables",
    "validate_ir",
    "write_artifact",
    "write_program_artifact"
  ],
  "_help": [
    {
      "page": "aa_layers",
      "title": "Layer registry",
      "topics": [
        "aa_layers"
      ]
    },
    {
      "page": "accept_model",
      "title": "Model acceptance gate",
      "topics": [
        "accept_model"
      ]
    },
    {
      "page": "agreement_overstatement",
      "title": "How much an args-blind label overstates agreement",
      "topics": [
        "agreement_overstatement"
      ]
    },
    {
      "page": "artifact_hash",
      "title": "Artifact hash",
      "topics": [
        "artifact_hash"
      ]
    },
    {
      "page": "build_context",
      "title": "Build LLM context",
      "topics": [
        "build_context"
      ]
    },
    {
      "page": "build_system_prompt",
      "title": "Build system prompt",
      "topics": [
        "build_system_prompt"
      ]
    },
    {
      "page": "check_admiral_compat",
      "title": "admiral compatibility check",
      "topics": [
        "check_admiral_compat"
      ]
    },
    {
      "page": "classify_variables",
      "title": "Classify spec variables",
      "topics": [
        "classify_variables"
      ]
    },
    {
      "page": "classify_variables_dual",
      "title": "Dual-backend consensus classification",
      "topics": [
        "classify_variables_dual"
      ]
    },
    {
      "page": "classify_variables_llm",
      "title": "Classify spec variables via an LLM chat backend",
      "topics": [
        "classify_variables_llm"
      ]
    },
    {
      "page": "codelist_from_data",
      "title": "Build a codelist data.frame from observed data values",
      "topics": [
        "codelist_from_data"
      ]
    },
    {
      "page": "dataset_json_meta",
      "title": "Dataset-JSON header metadata",
      "topics": [
        "dataset_json_meta"
      ]
    },
    {
      "page": "dual_disagreements",
      "title": "Dual-backend disagreements",
      "topics": [
        "dual_disagreements"
      ]
    },
    {
      "page": "evals_accuracy",
      "title": "Accuracy of an eval run",
      "topics": [
        "evals_accuracy"
      ]
    },
    {
      "page": "execute_ir",
      "title": "Execute a Layer IR against source datasets",
      "topics": [
        "execute_ir"
      ]
    },
    {
      "page": "ir_dependency_report",
      "title": "IR dependency report",
      "topics": [
        "ir_dependency_report"
      ]
    },
    {
      "page": "layer_docs",
      "title": "Layer documentation cards",
      "topics": [
        "layer_docs"
      ]
    },
    {
      "page": "layer_names",
      "title": "Layer names",
      "topics": [
        "layer_names"
      ]
    },
    {
      "page": "load_evals",
      "title": "Load the spec-to-IR classification eval corpus",
      "topics": [
        "load_evals"
      ]
    },
    {
      "page": "mcp_handle_request",
      "title": "Handle one MCP / JSON-RPC 2.0 request",
      "topics": [
        "mcp_handle_request"
      ]
    },
    {
      "page": "mcp_serve",
      "title": "Run the admiralagent MCP stdio server",
      "topics": [
        "mcp_serve"
      ]
    },
    {
      "page": "mcp_tool_specs",
      "title": "Tool specifications for the admiralagent MCP server",
      "topics": [
        "mcp_tool_specs"
      ]
    },
    {
      "page": "mock_metacore",
      "title": "Build a minimal executable metacore object from a spec data frame",
      "topics": [
        "mock_metacore"
      ]
    },
    {
      "page": "mock_spec_adsl",
      "title": "Mock ADSL spec",
      "topics": [
        "mock_spec_adsl"
      ]
    },
    {
      "page": "new_step",
      "title": "New layer step",
      "topics": [
        "new_step"
      ]
    },
    {
      "page": "new_variable_ir",
      "title": "New variable IR",
      "topics": [
        "new_variable_ir"
      ]
    },
    {
      "page": "print.aa_agreement",
      "title": "Print an agreement report",
      "topics": [
        "print.aa_agreement"
      ]
    },
    {
      "page": "print.aa_model_acceptance",
      "title": "Print a model acceptance report",
      "topics": [
        "print.aa_model_acceptance"
      ]
    },
    {
      "page": "read_artifact",
      "title": "Read artifact",
      "topics": [
        "read_artifact"
      ]
    },
    {
      "page": "read_dataset_json",
      "title": "Read a Dataset-JSON file",
      "topics": [
        "read_dataset_json"
      ]
    },
    {
      "page": "read_define",
      "title": "Read define.xml",
      "topics": [
        "read_define"
      ]
    },
    {
      "page": "read_spec",
      "title": "Read spec workbook",
      "topics": [
        "read_spec"
      ]
    },
    {
      "page": "read_spec_df",
      "title": "Normalize spec data frame",
      "topics": [
        "read_spec_df"
      ]
    },
    {
      "page": "render_program",
      "title": "Render program",
      "topics": [
        "render_program"
      ]
    },
    {
      "page": "render_variable",
      "title": "Render a variable",
      "topics": [
        "render_variable"
      ]
    },
    {
      "page": "routing_plan",
      "title": "Dependency routing plan",
      "topics": [
        "routing_plan"
      ]
    },
    {
      "page": "run_agreement",
      "title": "Cross-tabulate classification backends at every fingerprint level",
      "topics": [
        "run_agreement"
      ]
    },
    {
      "page": "run_evals",
      "title": "Run the spec-to-IR classification evals",
      "topics": [
        "run_evals"
      ]
    },
    {
      "page": "run_validation",
      "title": "Run validation",
      "topics": [
        "run_validation"
      ]
    },
    {
      "page": "spec_variables",
      "title": "Spec rows for a dataset",
      "topics": [
        "spec_variables"
      ]
    },
    {
      "page": "validate_ir",
      "title": "IR validation gate",
      "topics": [
        "validate_ir"
      ]
    },
    {
      "page": "write_artifact",
      "title": "Write variable artifacts",
      "topics": [
        "write_artifact"
      ]
    },
    {
      "page": "write_program_artifact",
      "title": "Write program artifact",
      "topics": [
        "write_program_artifact"
      ]
    }
  ],
  "_readme": "https://github.com/cran/admiralagent/raw/HEAD/README.md",
  "_rundeps": [
    "digest",
    "glue",
    "jsonlite"
  ],
  "_vignettes": [
    {
      "source": "admiralagent.Rmd",
      "filename": "admiralagent.html",
      "title": "admiralagent: Spec-to-ADaM with LLM-Translated Layers",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The idea",
        "Walkthrough on the mock ADSL spec",
        "Accuracy story: rules vs the pilot1 oracle",
        "MCP server: the same gates from any agent",
        "Improvement-loop philosophy"
      ],
      "created": "2026-11-28 21:05:07",
      "modified": "2026-11-28 21:05:07",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "admiralagent",
  "_universes": [
    "cran",
    "yanmingyu",
    "yanmingyu92"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-28T22:14:22.000Z",
      "distro": "resolute",
      "commit": "a99524834c1cc25e83e138439dff43877f8babfd",
      "fileid": "https://r2.ropensci.org/6865818aee6bee566a90b83bae48d8c14f8bd49c227326bd64fadbca92f50dfc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46195154712"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-28T22:14:22.000Z",
      "distro": "resolute",
      "commit": "a99524834c1cc25e83e138439dff43877f8babfd",
      "fileid": "https://r2.ropensci.org/2dd6575a4517a7b889246313c8a0d2e60c29ff83a6330b71d7b4b21bdec80b5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46195154712"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-11-28T22:14:28.000Z",
      "commit": "a99524834c1cc25e83e138439dff43877f8babfd",
      "fileid": "https://r2.ropensci.org/e286639144458435734d213bd35ab51c5081e5331f3931129f51e3421a0dd7ec",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46195154712"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-28T22:13:35.000Z",
      "commit": "a99524834c1cc25e83e138439dff43877f8babfd",
      "fileid": "https://r2.ropensci.org/8766a06605cf6f2a9b41ab6556880cf9ef4d7f7b5f34aec49700022a1b52ca22",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46195154712"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-28T22:13:28.000Z",
      "commit": "a99524834c1cc25e83e138439dff43877f8babfd",
      "fileid": "https://r2.ropensci.org/601256bbef1e0889ff44cbb865b58da1ff8167a615e56ef77031fd071ef2d0dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/46195154712"
    }
  ]
}