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.
| port | type | required | description | constraint | |
|---|---|---|---|---|---|
| in | work-dir | FilesystemPath | string · A filesystem path, possibly outside the repository. Not admissible as a command-line argument. | ||
| out | logic-covered | Count | Logic 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:
| process | step | lane | via skill |
|---|---|---|---|
| An IG site, built from the AST on its cache branch | Build the IG with the AST exporter | AST 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.
| install | cli: git clone -b claude/ast-export https://github.com/litlfred/fhir-ig-publisher |
| runtime | java, maven, sushi, jekyll, python3, git |
| network | yes |
When a host it reaches is refused:
| host / error | remedy |
|---|---|
packages.fhir.org | tool fhir-cache-seed-npm |
| when to choose it | |
|---|---|
| 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. |
What it is made of
| role | file | |
|---|---|---|
| definition | fhir-harness/tools/ig-ast-measure-real-igs/ig-ast-measure-real-igs.ts | |
| script | fhir-ig-publisher/ast-export/scripts/run-real-igs.sh | not in this checkout |
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`."
}
}