Measure the AST export on real IGs

Build the WHO SMART Trust and Immunizations IGs through ig-ast-export and print the fork’s measurements: counts, whether FSH sources sit where the plan expects, and logic-layer edge coverage per resource type. --byte-identical adds a stock build and an output/ diff.

Skills it satisfies

A skill states the capability; this Tool is one way to exercise it. Each skill’s declared input and output contract follows, where it has one.

ig-publisher-fork

Requirements for an agent working a local experimental fork of the IG Publisher — which repositories, what the AST must carry, what must not change, and the acceptance criteria. Read before forking, and before reporting a fork’s work complete.

Source: fhir-harness/skills/fhir-ig-base/ig-publisher-fork.md.

Also satisfied by: fhir-cache-seed-npm, fhir-package-mirror, ig-ast-export, ig-ast-incremental-build, ig-ast-plan, smart-fhir-cache-seed.

The skill declares no I/O contract (schemas/skills/ig-publisher-fork/{input,output}.schema.json).

Inputs and outputs

Each port names a shared type by IRI, so two Tools for one skill can be checked for interchangeability.

porttyperequireddescriptionconstraint
inwork-dirFilesystemPathstring · A filesystem path, possibly outside the repository. Not admissible as a command-line argument.
outlogic-coveredCountLogic resources carrying at least one edge to another logic resource in the IG.integer · A non-negative count — how many of something, or how many to show. Zero is a real answer.

Processes and tasks

Steps this Tool can carry out, because each names a skill it satisfies:

processsteplanevia skill
An IG site, built from the AST on its cache branchBuild the IG with the AST exporterAST refresh (GitHub runner: IG Publisher with the AST exporter)ig-publisher-fork

How it is deployed and reached

  • Command line. From the repository root: fhir-ig-publisher/ast-export/scripts/run-real-igs.sh [work-dir] [--byte-identical].
  • GitHub Actions. No workflow in this checkout runs its command.

As an API: its operation in the OpenAPI document and the MCP tool list of its layer.

installcli: git clone -b claude/ast-export https://github.com/litlfred/fhir-ig-publisher
runtimejava, maven, sushi, jekyll, python3, git
networkyes

When a host it reaches is refused:

host / errorremedy
packages.fhir.orgtool fhir-cache-seed-npm
when to choose it
whenMeasuring the AST exporter’s coverage, on a machine that reaches the package registry.
limitsThe two IGs are fixed by repository name; the script knows nothing else about them.
costTwo full IG builds, three with --byte-identical.

What it is made of

Linked data

The Tool is published as its own JSON-LD document at its IRI, https://litlfred.github.io/folio-assistant/fhir-harness/tools/ig-ast-measure-real-igs.jsonld, partOf its layer’s document. The node below is the definition this page was drawn from, and is embedded in the page as application/ld+json.

{
  "@context": "https://litlfred.github.io/folio-assistant/fhir-harness/fhir-harness.context.jsonld",
  "@id": "https://litlfred.github.io/folio-assistant/fhir-harness/tools/ig-ast-measure-real-igs.jsonld",
  "@type": "https://litlfred.github.io/cat-harness/v0/ns/Tool",
  "partOf": "https://litlfred.github.io/folio-assistant/fhir-harness/fhir-harness.jsonld",
  "name": "ig-ast-measure-real-igs",
  "title": "Measure the AST export on real IGs",
  "description": "Build the WHO SMART Trust and Immunizations IGs through `ig-ast-export` and print the fork's measurements: counts, whether FSH sources sit where the plan expects, and logic-layer edge coverage per resource type. `--byte-identical` adds a stock build and an `output/` diff.",
  "install": {
    "cli": "git clone -b claude/ast-export https://github.com/litlfred/fhir-ig-publisher"
  },
  "invoke": {
    "shell": "fhir-ig-publisher/ast-export/scripts/run-real-igs.sh [work-dir] [--byte-identical]"
  },
  "io": {
    "inputs": [
      {
        "name": "work-dir",
        "schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/FilesystemPath",
        "required": false
      }
    ],
    "outputs": [
      {
        "name": "logic-covered",
        "schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Count",
        "description": "Logic resources carrying at least one edge to another logic resource in the IG."
      }
    ]
  },
  "satisfies": [
    "ig-publisher-fork"
  ],
  "requirements": {
    "runtime": [
      "java",
      "maven",
      "sushi",
      "jekyll",
      "python3",
      "git"
    ],
    "network": true
  },
  "remedies": [
    {
      "host": "packages.fhir.org",
      "tool": "fhir-cache-seed-npm"
    }
  ],
  "selection": {
    "when": "Measuring the AST exporter's coverage, on a machine that reaches the package registry.",
    "limits": "The two IGs are fixed by repository name; the script knows nothing else about them.",
    "cost": "Two full IG builds, three with `--byte-identical`."
  }
}

folio-assistant — code under the Apache License 2.0, documentation under CC BY 3.0. Generated schema and API references are rebuilt from source on every push to main.

deployed dev