Code: smart-base
smart-base · 6 declared code directories · Files open on GitHub at the commit this site was built from.
platform/ smart-base-platform
The import seam: `platform/index.ts` re-exports every platform symbol this instance uses, so re-pointing the platform is a one-file edit. It sat at `platform.ts` beside the declaration until the cutover (folio-assistant#2320, bean hupw, owner 2026-10-07: 'Forks declare it'): a remote mount brings declared directories only, so a root file the mounted code imports never arrived. Declared, it travels with the code that needs it.
1 file
schemas/ smart-base-schemas
The dak vocabulary in code: `dak-blocks.ts` (the block builders `content-adapters/dak.json` names), `dak-kinds.ts` and `dak-jsonld.ts` (read off `block-kinds/`), `dak-content-type.ts`, `dak.ts`, and the l2-dak-authoring skill's input/output JSON Schemas. Declared at the cutover (bean hupw) so a remote mount brings it: the mounted adapter and QA checkers name these modules.
36 files
content-types-stack.test.tsdak-annexes.test.tsdak-annexes.tsdak-blocks.test.tsdak-blocks.tsdak-content-type.tsdak-jsonld.tsdak-kinds.tsdak.test.tsdak.tsskills/dak-l1-library/input.schema.jsonskills/dak-l1-library/output.schema.jsonskills/guideline-use-case/input.schema.jsonskills/guideline-use-case/output.schema.jsonskills/l2-dak-authoring/input.schema.jsonskills/l2-dak-authoring/output.schema.jsonskills/l2-dependency-choice/input.schema.jsonskills/l2-dependency-choice/output.schema.jsonskills/l3-dependency-choice/input.schema.jsonskills/l3-dependency-choice/output.schema.jsonskills/l3-readiness/input.schema.jsonskills/l3-readiness/output.schema.jsonskills/l4-application-brief/input.schema.jsonskills/l4-application-brief/output.schema.jsonskills/l4-application-build/input.schema.jsonskills/l4-application-build/output.schema.jsonskills/recommendation-candidates/input.schema.jsonskills/recommendation-candidates/output.schema.jsonskills/recommendation-extraction/input.schema.jsonskills/recommendation-extraction/output.schema.jsonskills/recommendation-scenarios/input.schema.jsonskills/recommendation-scenarios/output.schema.jsonskills/smart-guideline-end-to-end/input.schema.jsonskills/smart-guideline-end-to-end/output.schema.jsonskills/transcription-verbatim/input.schema.jsonskills/transcription-verbatim/output.schema.json
pipeline/ smart-base-pipeline
`pipeline/qa-checkers-dak.ts`, the automated DAK checkers `qa-checkers/` names (`DAK_AUTOMATED_CHECKERS`). Declared at the cutover (bean hupw) so a remote mount brings it; it was `content/pipeline/` until every layer's pipeline moved to `pipeline/` (owner, 2026-10-14, the rnfl move cat-harness-tools made on 2026-10-12).
2 files
scripts/ smart-base-scripts
This layer's own scripts and their tests: document-kinds, the DAK components figure, the DTH term findings, the smart-kg L1 extraction and pin, and the fhir-harness exclusions check, and the L1 recommendation scenario candidates with the vocabulary reader they resolve against (bean kvd2), whose test fixtures and measles run sit under `scripts/fixtures/`. Declared at the cutover (bean hupw) so a remote mount brings them.
56 files
check-dak-annexes.test.tscheck-dak-annexes.tscheck-fhir-harness-exclusions.test.tscheck-fhir-harness-exclusions.tsdak-api-hub-page.tsdak-ast-sidecars.test.tsdak-ast-sidecars.tsdak-data-dictionary-diff.test.tsdak-data-dictionary-diff.tsdak-data-dictionary.test.tsdak-data-dictionary.tsdak-pdf.test.tsdak-pdf.tsdak-pre-export.shdak-swimlanes.test.tsdak-swimlanes.tsextract-dak-l1-references.test.tsextract-dak-l1-references.tsextract-smart-kg-l1.test.tsextract-smart-kg-l1.tsfhir-harness-exclusions.baseline.tsfixtures/l1-recommendation-scenarios/smart-base-generic-personas.jsongen-dak-components-figure.test.tsgen-dak-components-figure.tsgen-document-kinds.test.tsgen-document-kinds.tsgen-dth-term-findings.test.tsgen-dth-term-findings.tsgen-l1-extraction-pages.test.tsgen-l1-extraction-pages.tsig-pages-committed.test.tsig-site-sidecars.test.tsig-site-sidecars.tsl1-extraction-declared.test.tsl1-kgid.test.tsl1-kgid.tsl1-membership.test.tsl1-membership.tsl1-recommendation-candidates.test.tsl1-recommendation-candidates.tsl1-recommendation-scenarios.test.tsl1-recommendation-scenarios.tsl1-run-context.tsl1-scenario-vocabulary.tsl1-specialise.test.tsl1-specialise.tsl1-transcription-verbatim.test.tsl1-transcription-verbatim.tspin-smart-kg.tsrender-processes.tstemplates/dak-api-hub.jstests/fhir-cache-seed-publisher-sites.test.tstests/smart-base-consumer.tstests/stage-ast-sites-cone.test.tsvisio-svg-bpmn.test.tsvisio-svg-bpmn.ts
kg/ smart-base-kg
The SMART Guidelines knowledge-graph schema, L1 3.0, as Zod: `src/` (the L1 layer and its `l1-library` extension, the graph-document shape, `validate.ts`, `kgid.ts`, the offline JSON-LD loader and the emitters), `test/`, and `generated/l1/` (the ontology JSON, the document JSON Schema and the JSON-LD contexts, written by `src/emit.ts`), with its own `package.json` for `kg.yml`. The emitter also writes the IG's FSH (`input/fsh/models/KGL1*.fsh`, `input/fsh/codesystems/KG*.fsh`, `input/fsh/valuesets/KG*VS.fsh`), which stays at the repository root with the rest of the IG. Moved here from the repository root `kg/` on the owner's ruling F1 (2026-10-15): `scripts/l1-recommendation-candidates.ts` imports `kg/src/`, and a remote mount brings declared directories only, so a root `kg/` never arrived in an index.
25 files
README.mdgenerated/l1/l1-library.context.jsonldgenerated/l1/l1-library.jsongenerated/l1/l1-library.jsonldgenerated/l1/l1.context.jsonldgenerated/l1/l1.jsongenerated/l1/recommendation-graph.schema.jsonpackage-lock.jsonpackage.jsonsrc/context.tssrc/emit.tssrc/fsh.tssrc/graph.tssrc/kgid.tssrc/l1-library.tssrc/l1.tssrc/loader.tssrc/ontology.tssrc/props.tssrc/shape-text.tssrc/validate.tssrc/vocab.tstest/context.test.tstest/generated.test.tstsconfig.json
test/ cat-harness-tools-tests
Tests of the code this layer holds, moved with their subjects so the harness keeps no test importing upward into this layer: `composition-roots` (the declared tool groups and route mounting) and `mcp-graph-tools`.
47 files
attestations/block-qa/site-docs/source/guides-who-smart-ig/a-mock-session.attestations.jsonresults/block-qa/site-docs/source/concepts-who-smart-content-types/who-smart-guidelines-daks-l2-lead.qa.jsonresults/block-qa/site-docs/source/concepts-who-smart-content-types/who-smart-guidelines-daks-l2.qa.jsonresults/block-qa/site-docs/source/concepts-who-smart-content-types/who-smart-implementation-guides-l3-lead.qa.jsonresults/block-qa/site-docs/source/concepts-who-smart-content-types/who-smart-implementation-guides-l3.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-dak/a-mock-session.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-dak/next.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-dak/overview.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-dak/the-l2-artifacts.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-dak/workflow.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/a-mock-session.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/making-the-build-incremental.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/next.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/overview.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/prerequisites.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/the-l3-pipeline.qa.jsonresults/block-qa/site-docs/source/guides-who-smart-ig/workflow.qa.jsonresults/library-qa/9789240010567-eng.qa-results.jsonresults/library-qa/9789240081949-eng.qa-results.jsonresults/library-qa/9789240093362-eng.qa-results.jsonresults/library-qa/9789240101197-eng.qa-results.jsonresults/library-qa/9789240116191-eng.qa-results.jsonresults/library-qa/9789240120747-eng.qa-results.jsonresults/library-qa/9789241509510-eng.qa-results.jsonresults/library-qa/9789241511766-eng.qa-results.jsonresults/library-qa/mehl-2021-who-smart-guidelines.qa-results.jsonresults/library-qa/smart-trust.qa-results.jsonresults/library-qa/who-dpi-h-reference-architecture-draft-v1.qa-results.jsonresults/library-qa/who-rhr-1806-eng.qa-results.jsonresults/p2-refusals.qa-results.jsonresults/witnesses/concepts-who-smart-content-types/qa-index.jsonresults/witnesses/concepts-who-smart-content-types/who-smart-guidelines-daks-l2.block.jsonresults/witnesses/concepts-who-smart-content-types/who-smart-implementation-guides-l3.block.jsonresults/witnesses/guides-who-smart-dak/a-mock-session.block.jsonresults/witnesses/guides-who-smart-dak/next.block.jsonresults/witnesses/guides-who-smart-dak/overview.block.jsonresults/witnesses/guides-who-smart-dak/qa-index.jsonresults/witnesses/guides-who-smart-dak/the-l2-artifacts.block.jsonresults/witnesses/guides-who-smart-dak/workflow.block.jsonresults/witnesses/guides-who-smart-ig/a-mock-session.block.jsonresults/witnesses/guides-who-smart-ig/making-the-build-incremental.block.jsonresults/witnesses/guides-who-smart-ig/next.block.jsonresults/witnesses/guides-who-smart-ig/overview.block.jsonresults/witnesses/guides-who-smart-ig/prerequisites.block.jsonresults/witnesses/guides-who-smart-ig/qa-index.jsonresults/witnesses/guides-who-smart-ig/the-l3-pipeline.block.jsonresults/witnesses/guides-who-smart-ig/workflow.block.json