Skip to content
Alpha: see what works today →
Menu

The runtime's tests

The newest run on main of the tests of cascade-runtime-js, read as a tree of package, capability and situation, each with what it is for and each case linked to its source. Failures come first within a capability, and the levels that hold one are open.

9 packages 0.0.0unreleasedAll 3155 cases pass · commit 326fc39 · · 283.34 s · the run 3154 passed 1 skipped

npm test, node:test over every package. For an agent: cascade-runtime-js.ctrf.json.

What each package promises · 9 packages, 188 capabilities

PackageWhat it is forCapabilitiesCases
cascade-runtimeThe library an app calls to import a person's health records into their pod, store them, and query them.Opening a pod · Looking into an export before importing · Importing a health export · Recording a hospital connection · Asking a pod questions · Names for vocabulary terms · and 49 more1108
mcpcascade-mcp, a command that serves a folder of pods to an MCP client, such as Claude Desktop or VS Code, over its standard input and output.Serving a folder of pods to an MCP client · Asking the person before a write · Starting cascade-mcp36
fhir-pullThe importer for a pull: it saves what pull() fetched from a hospital as files, and reads them back as documents for an import.Saving a pull as files · Refusing a pull an import cannot state · Reading a saved pull as documents · Stating where a pull's records came from · Listing a saved pull's records before an import · Saving and reading what a hospital's server said of itself48
ccda-downloadThe importer for a C-CDA document downloaded from a patient portal: it hands the file on whole for an import, with what the document's header says.Recognising a downloaded C-CDA document · Saying what a C-CDA document's header states · Listing a C-CDA document's entries before an import · Finding whose records a C-CDA document holds27
apple-healthThe importer for an Apple Health export: it finds the export's clinical record files and says where and when Apple Health received each.Finding the documents of an Apple Health export · Saying where an Apple Health record came from · Listing an Apple Health export's records before an import18
graphdbA loader that copies a pod into a GraphDB server, so that a developer can explore the pod's records with GraphDB's own tools.Loading a pod into GraphDB · Asking a GraphDB repository a question14
runtimeThe core every Cascade package is built on: it files what arrives in a person's pod, names it, runs the matcher and builds the views.Loading an adapter into the Bridge · Converting a document with the WebAssembly Bridge · Converting from a kit's saved output · Turning an adapter's arrivals into revisions · Refusing a step that cannot be filed · Writing a step's files · and 42 more730
evalsThe eval harness: it asks a synthetic person's questions of one model twice, once reaching her pod only through `cascade-mcp` (the pod arm) and once reading every download (the records arm), checks each answer by program, has blind judges grade the rest against a key written before any run, and writes the results and a report.Giving every case's pod the reference tables · Running the pod arm at pinned commits · Reusing a session whose inputs are unchanged · Running a whole eval with one command · Confining a child to its job · Giving a job back when its child leaves it unfinished · and 20 more387
siteThe generator of Cascade's documentation site: the pages of a sample pod, the specification, the term reference, and the unit-test pages, of which this is one.Building a site from sections · The front page · Every hub page carries the website's header, footer and tokens · A newcomer's first pages · The API page · The term reference · and 35 more787

cascade-runtime 1107 passed 1 skipped

cascade-runtime 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The library an app calls to import a person's health records into their pod, store them, and query them.

Glossary
About
a judgment that its member, an export's patient, is the subject, so every record naming that patient is the subject's. cascade:About
absence (absences)
what a reply says the records lack: the codes and words a record of it would carry (`match`), what was looked through (`coverage`), and the tool call (`query`) or the files (`sources`) that looked.
act (acts)
one thing done to a pod that writes files to it: an import, an entry session, a connection to a hospital's server, or a run of the matcher. prov:Activity
activity
on a call's result, the name of the act the call made.
adapter (adapters)
the program that converts an export into records; `import` loads it on first use.
address (addresses)
a pod's identifier, made once when the pod is made: `pod://`, a random UUID and a slash.
answer (answers, answered, answering)
the rows a question returns from a pod.
authorization code (authorization codes)
the one-time code that arrives at the redirect URI from a sign-in, which `connect()` trades for the token.
backed (backs)
of an absence, borne out by what was looked through; an absence that is not comes back with `backed: false` and a `reason`.
Binary
FHIR's resource that wraps a file's bytes, base64-encoded.
brands bundle (brands bundles)
the list of the hospitals that use a vendor's system, as the vendor publishes it in SMART's User-access Brands format: a FHIR Bundle of Organizations, each pointing to the endpoint its records are served from. https://hl7.org/fhir/smart-app-launch/brands.html
builder (builders)
a program that builds a reference table on the app's own machine from its publisher's release, as is needed where a licence keeps a feed from publishing the rows.
bundler (bundlers)
a program, such as Vite or esbuild, that joins an app's modules into the files a web page loads.
C-CDA
Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out.
CapabilityStatement
FHIR's resource in which a server says what software it is and what it supports, served at `<FHIR base>/metadata`. https://hl7.org/fhir/R4/capabilitystatement.html
cell (cells)
one tab-separated value on a line of a compact read, under the column name the view's first line gives.
citation (citations, cite, cites, cited)
where a fact points (`cite`): a view entry, a FHIR resource in a download, or a line of one. In a reply about downloads it also gives, field by field, what the fact says the record there holds.
claim (claims, claimed, claiming, unclaimed)
to say that an export's patient is the owner: the owner claims a profile by filing an About judgment. A patient no one has claimed is unclaimed, and its records are stored but shown in no answer. cascade:About
ClinVar
the public archive, kept by the US National Library of Medicine, of how laboratories classify variants, from benign to pathogenic; one of the reference tables. cascade:VariantClassifications
ClinVar ID (ClinVar IDs)
the number ClinVar gives one variant, which a pod holds as `clinvarVariationId`.
code system (code systems)
a published list of codes for one kind of thing, such as RxNorm for medicines, LOINC for lab tests and SNOMED CT for clinical findings.
coding expression
a variant written in HGVS notation against a gene's transcript, such as `NM_000249.3:c.2042C>T`. cascade:hgvsCodingDnaExpression
combination (combinations, combination product)
a medicine with more than one active ingredient, such as a tablet of lisinopril with hydrochlorothiazide.
compact read (compact reads)
the whole pod as tab-separated text, which the `ask` tool returns a part at a time when called with `format: "compact"`; each line is one row of a view, its cells separated by tabs.
connection (connections)
one sign-in of one person at one hospital's server. `connect()` returns it as a `Connection`, good for one pull; `pod.connect()` stores the pod's record of it. cascade:ConnectToServer
criticality
how dangerous a reaction to an allergen could be, as a source states it: `low`, `high` or `unable-to-assess`. cascade:allergyCriticality
current version (current versions)
of a series, the version a pod opened now is given: the newest one the app has kept. cascade:defaultTableVersion
custodian (custodians)
the organisation that keeps a document and answers for its true copy. cascade:CustodianRole
dateIs
on a lab change's `medication`, which of its days the change is placed on: `start of use`, `end of use` or `prescription written`.
demo hospital (demo hospitals)
a pretend hospital with made-up patients, from the package cascade-sandbox, which an app or a test signs in to and pulls from with no account and no network; Cascade North and Cascade South are two.
Different
a judgment that its members are separate things; it overrules a Same of the two. cascade:Different
directory (directories)
the list of hospitals an app offers a person to connect to: one row for each hospital, with its name, the vendor of its system, its FHIR base and the places it serves.
DocumentReference (DocumentReferences)
FHIR's resource for a document a hospital holds about a patient, such as a clinical note or a C-CDA document: it points to the document by URL, or carries it inline. cascade:ClinicalNoteOrDocument
download (downloads)
a file of a person's records as a hospital's server or portal gave it, before any import: FHIR resources in JSON, or a C-CDA document.
drug class (drug classes, class, classes, classed)
a group of medicines that work alike or are built alike, such as ACE inhibitors, as the US Food and Drug Administration assigns them. cascade:DrugClasses
entry point (entry points)
a name an app imports the package by: `cascade-runtime`, or one with a path after it, such as `cascade-runtime/check`. The browser entry point is the build of `cascade-runtime` that a bundler gives a web page in place of Node's.
entry session (entry sessions)
one call of `pod.enter()`: the act that files what the owner typed, as one owner-entered record or several, under a `urn:uuid:` name the app makes once.
Erroneous
a judgment that its members are wrong; they are left out of every answer. cascade:Erroneous
export (exports, exported)
what a person downloads of their own records: an Apple Health export, or a C-CDA document from a patient portal.
fact (facts)
one record an item rests on: what the model says of it, and where it is.
feed (feeds)
a published list of the versions of reference tables, which an app reads to find newer ones.
FHIR
Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON. https://hl7.org/fhir/R4/
FHIR base (FHIR bases)
the URL of a hospital's FHIR server; each record there is at `<FHIR base>/<type>/<id>`. cascade:serverBaseUrl
field (fields)
one kind of thing a record says: its `value`, `unit`, `status`, `code`, `name` or `id`, a date (`date`, `start`, `end`, `recorded`), or its text (`text`, from which a `quote` is taken).
finding (findings)
something the matcher noticed about a pod's records and filed for the owner to answer with a judgment. cascade:FindingForReview
guide
`guide/AGENTS.md`, the document the package ships for a developer, or a coding agent, who is building an app on a pod.
handle (handles)
a compact read's short name for a view entry: a letter for its view, then the first eight or more hexadecimal digits of the view entry's name, such as `L41e35923`. `ask` takes a list of them in `entries` to return only those view entries' rows.
head
the snapshot of this app's latest act in a pod.
header (headers)
the one file of a sealed pod left readable, `settings/encryption.json`, which says how the pod is sealed.
host (hosts)
the app's code that runs the tools for a model and gives them the functions they reach pods through (`PodReads`); in Node, `podReads()` makes one.
index (indexes, index by code)
a file kept beside a version of a reference table that says which rows each code finds, so that the rows need not all be read.
interpretation (interpretations)
a laboratory's flag on a result, such as `H` for high. cascade:resultInterpretationCode
item (items)
one point of a reply, with what it rests on.
join (joins, joined)
of a record, to be put with the records of a view entry by a judgment, a Same or the matcher's; the view entry is then named for its least record, so its name, and the handle made from it, changes.
judgment (judgments, judge, judges, judged)
a conclusion about records, made by a person or by a machine. cascade:Judgment
kept answer (kept answers)
an answer to a named question saved beside the pod's folder, and returned again while nothing it was worked out from has changed.
kit (kits)
a story and the exports it uses, which the vocabulary carries for testing, such as `alex-rivera`.
lab change (lab changes)
a difference between one lab test's results before and after the day a medication started or stopped, as `findChanges()` reports it; it says what moved and never why.
label (labels)
of a series, its name as a person reads it, such as 'Vaccine groups'; a feed gives it and a check updates it.
launcher
the SMART Health IT launcher, `launch.smarthealthit.org`: a public test hospital on the internet, kept by the SMART project, which this project did not write.
lens (lenses)
a choice of which judgments count when a question is answered: `everyday` is the default, and `export` is stricter, for records sent elsewhere.
lookup (lookups)
what the reference tables say about one code, such as its name.
loopback
the machine's own network interface, `127.0.0.1`. An app with no server of its own gives a redirect URI there, and `loopbackSignIn()` listens on it for the hospital's redirect.
map (maps, mapped)
of a table row, to give for one code the code it stands for in another series.
matched
on a call's result, the result of the matcher's run that followed it.
matcher (matchers)
the part of a runtime that compares a pod's records and writes a Same for those its rules find to be one thing, such as one allergy reported by two sources. cascade:CascadeMatcher
matcher judgment (matcher judgments)
a Same the matcher wrote for records its rules found to be one thing; it names the version of each reference table it used.
member (members)
a record a judgment is about. prov:hadMember
model (models)
a language model that an app lets answer a person's questions about their records.
model context
`document.modelContext`, the browser API proposed as WebMCP through which a web page offers tools to a model the browser runs.
named question (named questions)
a query the vocabulary carries under a name, such as `pod/My active allergies`.
narrative
the part of a C-CDA document written for a person to read, as table rows, list items and paragraphs, beside its coded records; a narrative line or row is one of those. cascade:narrativeText
OID
the dotted number by which a C-CDA document names a code system, such as `2.16.840.1.113883.6.1` for LOINC.
OperationOutcome
FHIR's resource for a server's warning or error message; it is no record of the patient.
order of preference
for a table kind, the series an app reads first when several hold a code, set as `preference`; a code's name comes from the first series in it that names the code.
Organization (Organizations)
FHIR's resource for a hospital, a clinic, a laboratory or another body that gives care. cascade:Organization
origin (origins)
the scheme, server name and port of a URL, such as `https://hospital.example`: what a browser treats as one site.
owner (owners)
the person who keeps a pod and decides what its records mean; in every pod on this page, the subject acting for themselves.
owner-entered record (owner-entered records)
a record the owner typed in themselves and filed with `pod.enter()`, such as an allergy they know they have; no source holds it, and being the owner's own it needs no claim.
pack (packs)
one file holding all of a sample's files, so a page fetches them at once.
packed package (packed)
the package as `npm run build:package` makes it for publishing: its compiled code, its browser build and the vocabulary and adapters it carries. A source checkout is not packed.
panel (panels)
a set of lab tests reported together, such as a thyroid panel.
parent snapshot (parent, parents)
the snapshot that an act's snapshot names as the one before it; a pod's first snapshot has none.
partial date (partial dates)
a date that gives only a year, or a year and a month.
patient (patients)
the person an export's records are about, as that source knows them, before anyone has said who they are in the pod. cascade:PatientProfile
PKCE
Proof Key for Code Exchange, RFC 7636: the part of a sign-in by which a public client shows, at the token exchange, that it is the app that began the sign-in. `connect()` always uses its S256 method. https://www.rfc-editor.org/rfc/rfc7636
plan (plans)
what a pull asks a hospital for: a list of searches, each for one type of resource, and the types to read by id when a record names one that no search returned (`backfill`).
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
precise ingredient (precise ingredients)
a particular form of an ingredient, such as lisinopril anhydrous of lisinopril, which some medicine products are tied to. cascade:hasPreciseIngredient
product ingredients
the reference table that gives each medicine product its active ingredient, from RxNorm. cascade:ProductIngredients
profile (profiles)
one source's record of its patient, which the owner claims; `claimedProfiles` and `unclaimedProfiles` list them.
public client (public clients)
an app that can keep no password of its own, as one that runs in a browser or on a person's own machine cannot; every app this package signs in is one.
pull (pulls, pulled, pulling)
the records one patient has at one hospital, as `pull()` fetched them in one go, with the FHIR base they came from and when; also the fetching itself.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
recorded date (recorded dates)
when a record was written down, as against when the thing it records happened: a C-CDA record's author time, a report's issue time.
redirect URI (redirect URIs)
the app's own URL to which a hospital sends the person's browser when the sign-in is over.
reference range (reference ranges)
the span of values a laboratory calls normal for a test, printed beside a result. cascade:referenceRangeText
reference tables (reference table)
public code lists, such as RxNorm for medicines, that tell a runtime when two codes mean one thing. cascade:ReferenceSeries
Refusal
the error thrown when the package declines a request it understood, such as a name it does not have; it has written nothing.
refused
on a call's result, why a rule turned the call down; a refused call wrote nothing.
registration (registrations)
who the app is to a hospital's vendor: its client id, which is the name the vendor knows it by, its redirect URI, and the scopes it asks for, which say what it may read.
reply (replies)
a model's answer to a person's question about their records, as JSON.
reply contract (contract, contracts)
the form a reply must take: an `answer`, a `short` form of it, and `items`. `replySchema` is its JSON Schema, and `replyErrors()` lists where a reply departs from it.
report (reports)
one laboratory's classification of one of a person's variants, as a pod holds it; `pod.agreement()` compares each with ClinVar. (A hospital server's `serverReport()` is another thing: what the server says of itself.)
resource (resources)
one record in FHIR, named by its type and its id, such as `Observation/ldl-1`.
retraction (retractions, retract, retracts, retracted)
the owner taking back a judgment they filed: the judgment stays in the pod and no longer counts. prov:invalidated
review status
ClinVar's statement of how well a classification is supported, such as `criteria provided, multiple submitters, no conflicts`. cascade:clinvarReviewStatus
row (rows)
one line of a table: of a view, what one view entry holds, a cell per column; of a reference table, what it says of one code or variant.
rule (rules)
a numbered requirement in the vocabulary that every runtime must meet, such as A14 in `runtime/arrivals.feature`; a heading on this page links the rules its API reaches.
rule list (rule lists)
the vocabulary's list of what the matcher compares, each line naming a query and the table kind it reads; it has versions, as a reference table has. cascade:RuleListRow
runtime (runtimes)
software that reads and writes pods as the vocabulary requires; this package is one.
Same
a judgment that its members are one thing, so answers show them once. cascade:Same
sample (samples)
a kit's pod saved as files a web page can read.
sandbox story (sandbox stories)
a made-up patient at a demo hospital whose records were written to show one outcome, such as a lab result that falls after a medication starts, with that outcome written down beside them.
schema (schemas)
a description, in JSON Schema, of what a tool's input may hold: its properties, the type of each, which are required, and the values or bounds each allows (`enum`, `minimum`, `maximum`). https://json-schema.org/
sealed (seal, seals)
of a pod or a file, encrypted on disk so that only the secret opens it.
one request to a hospital for a patient's records of one type, such as Condition; a plan lists them, and a hospital may answer a search a page at a time.
search list (search lists)
a version's codes and their names kept as one file beside its rows, which a search reads.
secret (secrets)
the six words that open an encrypted pod; `sixWords()` draws them from the EFF long word list, a public list of 7,776 easy-to-type words.
series
one of the reference tables across its versions, such as RxNorm's product ingredients. cascade:ReferenceSeries
shapes
the vocabulary's requirements on what a record, a judgment or a file of a pod must state, written in SHACL, the W3C language for checking data. https://www.w3.org/TR/shacl/
signal (signals)
the AbortSignal an app passes to connect() or pull() and aborts to stop it.
SMART configuration
what a hospital's server publishes at `<FHIR base>/.well-known/smart-configuration`: where its sign-in page and its token exchange are, and what they support.
SMART on FHIR
the standard by which an app signs a person in to a hospital and is then let read that person's records: OAuth 2.0 as HL7's SMART App Launch profiles it for FHIR servers. https://hl7.org/fhir/smart-app-launch/
snapshot (snapshots)
the set of files a pod held as one act left it, which names the snapshot before it as a git commit names its parent. cascade:Snapshot
source (sources)
one hospital server, or one document, whose records an export holds.
source's short name (sources' short names, source's short names)
a compact read's name for a source: `S1`, `S2` and so on, each listed with who wrote it.
SPARQL
the W3C query language for data written as statements, as Turtle writes them; `pod.ask()` runs an app's own SPARQL SELECT. https://www.w3.org/TR/sparql11-query/
starter copies (starter)
the reference tables as the package carries them, which a new app uses until it has read a feed.
step (steps)
one scripted action on a pod, such as making it, an import, an entry session or a judgment, named by a letter and a number such as `J10`.
store
where an app keeps its reference tables: the folder `.tables/` beside its pods in Node, a database in a browser.
story (stories)
the steps taken with one made-up patient's exports, in order.
structured output
a model provider's feature that makes a model reply in a given JSON Schema; providers take only some of JSON Schema's keywords.
subject (subjects)
the person a pod is about. cascade:Subject
submitter (submitters)
a laboratory that sent ClinVar its classification of a variant.
table kind (table kinds)
what a reference table's rows say, such as product ingredients or vaccine groups; the vocabulary declares each kind. cascade:TableKind
to find the codes of a series whose name holds the text asked, as `tables.search()` does, a page at a time.
template (templates)
Turtle with blanks, given in the guide, which an app fills in with what a person typed or decided and passes to `pod.enter()` or `pod.judge()`.
term (terms)
one word the vocabulary defines, named by an IRI, a web-style identifier such as `https://ns.cascadeprotocol.org/cascade#allergenName`.
tie
codes, words, a day and a kind of record that the caller holds an absence to as well as the absence's own, passed as `tied`; the evals take them from their answer key.
token (tokens, access token)
the access token a hospital issues when a person signs in: the key the package sends with each request for that person's records. `connect()` keeps it where the app's code cannot read it.
token exchange
the request in which `connect()` trades the authorization code for the token.
tool (tools)
a function a model may call: a name, a description, a JSON Schema for its input, and the code that runs it.
tool call (tool calls)
one run of a tool by a model: the tool's name, the input it was given, whether it succeeded, and what it returned.
Turtle
a W3C text format for writing statements in the vocabulary's terms; `pod.enter()` and `pod.judge()` take it. https://www.w3.org/TR/turtle/
Unopened
the `Refusal` thrown when a pod does not open with the secret given, or with none; its `outcome` gives the reason, such as `incorrect secret`.
variant (variants)
a difference in one of a person's genes from the reference sequence, as a genetic test reports it. cascade:GeneticVariantFinding
verdict
the column of `pod.agreement()`'s rows saying how a report stands to ClinVar: `agrees` when its classification is among the row's, `differs` when the row holds another, and none when ClinVar cannot say.
verify (verifies, verified)
to check a version's rows, once fetched, against the checksum the feed gives for them and against the version's own name, which is worked out from the rows.
version (versions)
what a record says at one time; when a source changes a record, the pod keeps the old version and adds a new one. (Of a reference table or the runtime, "version" has its everyday meaning.) cascade:version
view (views)
a pod's records of one kind, such as medications, as its judgments leave them: one line for each thing however many sources reported it. A named question such as `pod/My medication history` returns a view's rows. cascade:View
view entry (view entries, entry, entries)
one thing in a view, such as one medication or one lab result: the records that are one thing, shown as one. A row names it in `entry`, by an IRI that ends in `#` and 64 hexadecimal digits. cascade:inEntry
vocabulary (vocabularies)
cascade-vocabulary, the project that defines the words health data is written in, the requirements every pod meets, and a set of ready-made questions. https://ns.cascadeprotocol.org/cascade#
withdrawn (withdrew, withdraws)
of a record, said by its own source not to be so: refuted, ruled out, entered in error, negated or nullified.
Build and packaging 230 passed 1 skipped

mcp 36 passed

cascade-mcp 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

cascade-mcp, a command that serves a folder of pods to an MCP client, such as Claude Desktop or VS Code, over its standard input and output. It offers the tools of cascade-runtime/tools: those that read to any client, and those that propose a write only to a client that can ask the person, who must say yes to each.

Glossary
isError
the flag on an MCP tool's result that says the call failed; the result's text is then the reason.
MCP (MCP client, MCP clients, MCP server)
Model Context Protocol: an open standard by which an app that runs a model, the MCP client, starts a program, the MCP server, and calls the tools it offers.
model (models)
a language model that an app lets answer a person's questions about their records.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
reference tables (reference table)
public code lists, such as RxNorm for medicines, that tell a runtime when two codes mean one thing. cascade:ReferenceSeries
standard error (standard output, standard input)
a program's second output stream, where it writes what it has to say to a person; cascade-mcp's standard output carries only the protocol.
tool (tools)
a function a model may call: a name, a description, a JSON Schema for its input, and the code that runs it.

fhir-pull 48 passed

@cascade-runtime/fhir-pull 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The importer for a pull: it saves what pull() fetched from a hospital as files, and reads them back as documents for an import. It does the same for what a hospital's server said of itself at a connection. cascade-runtime exports pullFiles() and connectFiles() from here; the rest is called by pod.look(), pod.import() and pod.connect().

Glossary
as-of date
the instant a hospital answered as of: its records as they stood then, which is not when the document was made or arrived. Only the host that made a demo hospital sets one; a pull from a real hospital has none. cascade:answeredAsOf
author
the party that wrote a document's content, such as the hospital whose server gave the record. A document is attributed to its author. cascade:AuthorRole
authorization endpoint
the URL of a hospital's sign-in page, as its server publishes it.
Bundle
FHIR's resource that holds other resources; a pull keeps everything it fetched in one.
C-CDA
Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out.
CapabilityStatement
FHIR's resource in which a server says what software it is and what it supports, served at `<FHIR base>/metadata`. https://hl7.org/fhir/R4/capabilitystatement.html
client id
the name a hospital's vendor knows an app by, which the app sends when a person signs in.
connection (connections)
one sign-in of one person at one hospital's server. `connect()` returns it as a `Connection`, good for one pull; `pod.connect()` stores the pod's record of it. cascade:ConnectToServer
custodian (custodians)
the organisation that keeps a document and answers for its true copy. cascade:CustodianRole
document (documents)
one file that an import takes whole and gives to an adapter: a FHIR resource or Bundle in JSON, or a C-CDA document. The pod keeps its bytes.
DocumentReference (DocumentReferences)
FHIR's resource for a document a hospital holds about a patient, such as a clinical note or a C-CDA document: it points to the document by URL, or carries it inline. cascade:ClinicalNoteOrDocument
FHIR
Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON. https://hl7.org/fhir/R4/
FHIR base (FHIR bases)
the URL of a hospital's FHIR server; each record there is at `<FHIR base>/<type>/<id>`. cascade:serverBaseUrl
importer (importers)
the part of the runtime that knows one form of export: it says which files are its documents and what the export states about each. `pod.look()` and `pod.import()` try each importer in turn.
index entry (index entries)
one thing `index()` lists for `pod.look()` to count: something an import would bring, with its source's name, its kind or section, and when it was received, each only where the export states it.
media type (media types)
the standard name of a file's format, such as `application/fhir+json`; an import offers a document to the adapters of its media type.
origin (origins)
the scheme, server name and port of a URL, such as `https://hospital.example`: what a browser treats as one site.
patient (patients)
the person an export's records are about, as that source knows them, before anyone has said who they are in the pod. cascade:PatientProfile
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
pull (pulls, pulled, pulling)
the records one patient has at one hospital, as `pull()` fetched them in one go, with the FHIR base they came from and when; also the fetching itself.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
record class (record classes)
the vocabulary's class for one kind of record, such as `cascade:LaboratoryTestResult` for a lab result.
resource (resources)
one record in FHIR, named by its type and its id, such as `Observation/ldl-1`.
one request to a hospital for a patient's records of one type, such as Condition; a plan lists them, and a hospital may answer a search a page at a time.
SMART configuration
what a hospital's server publishes at `<FHIR base>/.well-known/smart-configuration`: where its sign-in page and its token exchange are, and what they support.
source (sources)
one hospital server, or one document, whose records an export holds.
transmitter
a party that passed a document on without writing it, as Apple Health does with a hospital's records. A document is never attributed to its transmitter. cascade:TransmitterRole

ccda-download 27 passed

@cascade-runtime/ccda-download 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The importer for a C-CDA document downloaded from a patient portal: it hands the file on whole for an import, with what the document's header says. pod.look() and pod.import() call it; an app does not.

Glossary
adapter (adapters)
the program that converts an export into records; `import` loads it on first use.
C-CDA
Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out.
CDA
Clinical Document Architecture: HL7's XML standard for clinical documents, whose root element is `ClinicalDocument`. C-CDA is the set of CDA templates US patient portals use.
CDA time (CDA times)
a time as CDA writes it: `YYYYMMDD`, then optionally hours, minutes and seconds, then optionally an offset from UTC, such as `20250403083000-0400`.
custodian (custodians)
the organisation that keeps a document and answers for its true copy. cascade:CustodianRole
document (documents)
one file that an import takes whole and gives to an adapter: a FHIR resource or Bundle in JSON, or a C-CDA document. The pod keeps its bytes.
download (downloads)
a file of a person's records as a hospital's server or portal gave it, before any import: FHIR resources in JSON, or a C-CDA document.
id (ids)
in CDA, an identifier in two parts: a `root`, an OID or a UUID that says who issued it, and an optional `extension`, the value that issuer gave.
importer (importers)
the part of the runtime that knows one form of export: it says which files are its documents and what the export states about each. `pod.look()` and `pod.import()` try each importer in turn.
index entry (index entries)
one thing `index()` lists for `pod.look()` to count: something an import would bring, with its source's name, its kind or section, and when it was received, each only where the export states it.
media type (media types)
the standard name of a file's format, such as `application/fhir+json`; an import offers a document to the adapters of its media type.
NPI
National Provider Identifier: the ten-digit number the US government gives each provider of health care; in CDA an id whose root is `2.16.840.1.113883.4.6`.
nullFlavor
CDA's attribute that says a value is absent and why, such as `UNK` for unknown; an id that carries one identifies nothing.
patient (patients)
the person an export's records are about, as that source knows them, before anyone has said who they are in the pod. cascade:PatientProfile
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
scope (scopes)
the two ids a record from a C-CDA document is named under: one of the document's custodian and one of its patient. Two downloads with the same scope give the same record the same name.
section (sections)
one titled part of a C-CDA document's body, such as Medications or Allergies, holding an `entry` element for each coded record.

apple-health 18 passed

@cascade-runtime/apple-health 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The importer for an Apple Health export: it finds the export's clinical record files and says where and when Apple Health received each. pod.look() and pod.import() call it; an app does not.

Glossary
attributed (attributes the document, attributes nothing)
of a document, said to be the work of a party, by `prov:wasAttributedTo`; a pod reads this to say whose word a record is.
author
the party that wrote a document's content, such as the hospital whose server gave the record. A document is attributed to its author. cascade:AuthorRole
document (documents)
one file that an import takes whole and gives to an adapter: a FHIR resource or Bundle in JSON, or a C-CDA document. The pod keeps its bytes.
export (exports, exported)
what a person downloads of their own records: an Apple Health export, or a C-CDA document from a patient portal.
FHIR
Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON. https://hl7.org/fhir/R4/
importer (importers)
the part of the runtime that knows one form of export: it says which files are its documents and what the export states about each. `pod.look()` and `pod.import()` try each importer in turn.
index entry (index entries)
one thing `index()` lists for `pod.look()` to count: something an import would bring, with its source's name, its kind or section, and when it was received, each only where the export states it.
IRI
a web-style identifier, of which a URL is one kind; Turtle writes one between angle brackets.
media type (media types)
the standard name of a file's format, such as `application/fhir+json`; an import offers a document to the adapters of its media type.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
resource (resources)
one record in FHIR, named by its type and its id, such as `Observation/ldl-1`.
source (sources)
one hospital server, or one document, whose records an export holds.
transmitter
a party that passed a document on without writing it, as Apple Health does with a hospital's records. A document is never attributed to its transmitter. cascade:TransmitterRole

graphdb 14 passed

@cascade-runtime/graphdb 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

A loader that copies a pod into a GraphDB server, so that a developer can explore the pod's records with GraphDB's own tools. npm run graphdb -- <name> <GraphDB's base URL> runs it; no app needs it.

Glossary
derivation (derivations)
a query a lens carries that works out statements from a pod's files which the files do not hold themselves; what the derivations of a lens work out is the pod's derived state under it.
derived state
what a lens works out from a pod's files and keeps beside them: statements the files do not hold themselves. It is kept in a graph of its own, named for the lens (`urn:cascade:derived:<lens>`), apart from the files.
GraphDB
Ontotext's database for data written as statements, with a web workbench for browsing and querying it.
lens (lenses)
a choice of which judgments count when a question is answered: `everyday` is the default, and `export` is stricter, for records sent elsewhere.
named graph (named graphs)
a set of statements kept under a name, an IRI, inside one store; a query can ask which graph a statement is in.
named question (named questions)
a query the vocabulary carries under a name, such as `pod/My active allergies`.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
repository (repositories)
one database on a GraphDB server, with an ID and a title.
row (rows)
one line of a table: of a view, what one view entry holds, a cell per column; of a reference table, what it says of one code or variant.
saved query (saved queries)
a SPARQL query that GraphDB keeps under a name, for anyone using the server to run.
SPARQL
the W3C query language for data written as statements, as Turtle writes them; `pod.ask()` runs an app's own SPARQL SELECT. https://www.w3.org/TR/sparql11-query/

runtime 730 passed

@cascade-runtime/runtime 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The core every Cascade package is built on: it files what arrives in a person's pod, names it, runs the matcher and builds the views. Apps call cascade-runtime, which wraps it; this page is for whoever builds on the core itself.

Glossary
accept (accepts, accepted, unaccepted, decline, declines, declined)
of an adapter, to take a document it can read and convert it. The saved-output Bridge declines a document its step marks `unaccepted.txt`, and accepts one it saved nothing for.
act (acts)
one thing done to a pod that writes files to it: an import, an entry session, a connection to a hospital's server, or a run of the matcher. prov:Activity
adapter (adapters)
the program that converts an export into records; `import` loads it on first use.
adapter's description (description)
what the Bridge reads from an adapter before loading it: the media type it converts, and the files of the adapter and of the vocabulary it needs to load.
adopt (adopts, adopted, adopting)
of an open, to take a newer version of a table the pod uses as the pod's current one.
Argon2id
the slow key derivation that turns a secret into a pod's key, so that guessing a secret costs time.
arrival (arrivals)
one state of one record as a source reported it, as an adapter hands it to the runtime, before it is filed.
base URL (base URLs)
the address of a hospital server's API, which a record read from that server is named from.
blank node (blank nodes)
a thing a statement mentions without an IRI, which has no name outside its file.
Bridge
the program that runs an adapter on a document and returns what it converted, or the reason it failed.
built whole
of a pod: its derived state and the files its build writes worked out from every file, with nothing kept from before.
C-CDA
Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out.
canonical N-Quads
a graph's statements written one to a line in the single spelling and order the W3C's RDFC-1.0 fixes, so equal graphs give equal text.
canonical path
a path written the one plain way: no `.` or `..` part, no doubled or leading slash, no backslash.
check (checks, kit check)
one of the five things `runtime/the-kit.feature` requires of a replay of a kit's story, numbered 2 to 6, such as check 3, "every file conforms to the shapes". Check 1 is that every example passes.
checkout (checkouts, sibling checkout)
a folder holding a repository at one commit; a sibling checkout is one in the folder beside the runtime's own.
ClinVar
a public database of genetic variants; each has a ClinVar ID.
code system (code systems)
a published list of codes for one kind of thing, such as RxNorm for medicines, LOINC for lab tests and SNOMED CT for clinical findings.
comparison (comparisons)
a query the vocabulary ships under `queries/matcher/` that returns the pairs of records one rule holds to be one thing.
component (components)
a repository the runtime reads when it runs: the vocabulary, an adapter, the reference tables.
CONSTRUCT (CONSTRUCTs)
the form of a SPARQL query that returns statements it builds, where SELECT returns rows.
content-addressed file
a file named by a hash of what it holds: a document or a version.
conversion findings
what an adapter reports about a document beside its graph, saved as `findings.ttl`: what it left out or could not read. Not a finding for review, which is the pod's.
current version (current versions)
of a series, the version a pod opened now is given: the newest one the app has kept. cascade:defaultTableVersion
custodian (custodians)
the organisation that keeps a document and answers for its true copy. cascade:CustodianRole
dataset (datasets)
a pod as a query reads it: a default graph and named graphs.
default graph
the statements a query reads outside any `GRAPH` block.
derivation (derivations, derived)
a query of the vocabulary that adds to a pod's dataset what follows from its files, such as which revision of a record is current.
description of a version (descriptions of a version, descriptions of the versions, version's description)
the file in the pod that says which series a table version belongs to, its number, and which version it revises. cascade:ReferenceSeries
Different
a judgment that its members are separate things; it overrules a Same of the two. cascade:Different
document (documents)
one file of an export, which the pod keeps under the hash of its bytes.
EARL
the W3C's Evaluation and Report Language: a report as RDF, one assertion for each test with its outcome.
entry session (entry sessions)
one call of `pod.enter()`: the act that files what the owner typed, as one owner-entered record or several, under a `urn:uuid:` name the app makes once.
example (examples)
in a feature, one named run: steps on a pod, then what a query of it must return.
export (exports, exported)
what a person downloads of their own records: an Apple Health export, or a C-CDA document from a patient portal.
fault (faults)
one sentence a kit check returns, saying one thing wrong with the pod; a check passes when it returns none.
feature (features)
a file of the vocabulary that states rules of a pod and, under each, examples.
finding (findings)
something the matcher noticed about a pod's records and filed for the owner to answer with a judgment. cascade:FindingForReview
fingerprint (fingerprints)
a number the C-CDA adapter works out from the strings of a record that has no id, to tell such records apart.
first parent
the parent snapshot that is the same writer's previous snapshot; a writer's first snapshot has none.
fixture (fixtures)
a sealed pod, or one sealed file, that the pod encryption vectors carry together with the secrets that open it.
focus node (focus nodes)
in SHACL, a node a shape is checking.
graph (graphs, named graph)
a set of statements held under a name; each file of a pod is read as the graph named by its address.
group (groups)
in SPARQL, the patterns between one pair of braces. A query's WHERE group is the one its WHERE keyword opens, not one inside a sub-select, OPTIONAL, MINUS or UNION.
handle (handles)
a short name a kit gives a record or a judgment, with the inputs its name is made from, in the kit's `handles.json`.
hash (hashes)
a short code worked out from bytes, such as a file's or the text of an IRI: the same bytes always give the same hash, and any change gives another.
head
the snapshot of this app's latest act in a pod.
header (headers)
the one file of a sealed pod left readable, `settings/encryption.json`, which says how the pod is sealed.
HGVS expression
the standard way to write a genetic variant, such as `NM_000249.4:c.2042C>T`.
import (imports)
the act of bringing an export's documents into a pod; its own file lists the documents it kept.
index (indexes, index by code)
a file kept beside a version of a reference table that says which rows each code finds, so that the rows need not all be read.
IRI (IRIs)
the name of one thing, written as an address, such as `urn:uuid:3b9e2d47-8c15-4f6a-a0d2-7e5c1b9f4a63` or `https://ns.cascadeprotocol.org/cascade#allergenName`; it need not be one a browser can open.
isomorphic
of two graphs: the same statements once their blank nodes are matched up.
judgment (judgments, judge, judges, judged)
a conclusion about records, made by a person or by a machine. cascade:Judgment
justification
the reason a rule gives for a Same, such as "same code".
kept dataset (kept build)
a pod's dataset held in memory from one step to the next, in place of a new read of every file.
kit (kits)
a story and the exports it uses, which the vocabulary carries for testing, such as `alex-rivera`.
labels (labels file)
the file the build writes that gives each thing in a pod (a record, a version, a revision, a document, a view entry, the subject) one name a person can read.
layout
the vocabulary's file that says in which folder of a pod each kind of thing is filed.
lends (lent, lend)
of the kept dataset: changes it in place into the matcher's view for the length of a run, and puts it back after.
lens (lenses)
a choice of which judgments count when a question is answered: `everyday` is the default, and `export` is stricter, for records sent elsewhere.
linked worktree (worktree, worktrees)
a second working folder of one checkout, as `git worktree add` makes.
manifest
the file the build writes last, which lists the pod's views and says when they were built.
matcher (matchers)
the part of a runtime that compares a pod's records and writes a Same for those its rules find to be one thing, such as one allergy reported by two sources. cascade:CascadeMatcher
matcher judgment (matcher judgments)
a Same the matcher wrote for records its rules found to be one thing; it names the version of each reference table it used.
matcher's view
a pod as the matcher reads it: its files but those the build writes, with the everyday lens's derived state.
media type (media types)
the kind of a document as the web names it, such as `application/fhir+json`.
member (members)
a record a judgment is about. prov:hadMember
merged parent (merged parents)
a parent snapshot that is another head, taken in as a git merge takes in a branch.
MuHash3072
the set hash Bitcoin Core uses: one number for each member, multiplied together modulo a 3072-bit prime, so the order of members does not matter.
N-Triples
a W3C text format that writes one statement a line.
naming rule (naming rules)
a term of the vocabulary that says how one kind of thing is named, from its content or from listed inputs, such as `cascade:VersionNamingRule`.
new writer
a writer with no head, or with one the pod does not hold; its first snapshot has no first parent and merges every head in the pod.
outline
a Gherkin Scenario Outline: one example written once and run for each row of its table.
owner (owners)
the person who keeps a pod and decides what its records mean; in every pod on this page, the subject acting for themselves.
pack (packs)
one file holding all of a sample's files, so a page fetches them at once.
parent snapshot (parent, parents)
the snapshot that an act's snapshot names as the one before it; a pod's first snapshot has none.
patient (patients)
the person an export's records are about, as that source knows them, before anyone has said who they are in the pod. cascade:PatientProfile
performer
the function a replay calls to perform steps of one kind, such as an import or an entry session.
phrase (phrases)
one wording of a step that `runtime/steps.md` defines, such as "the pod holds no revision".
placeholder (placeholders)
the name a view entry has in a pod's derived state, `urn:cascade:entry:` and a hash, until the build names the entry in its view.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
pyshacl
the SHACL engine the vocabulary's own tests run; the results this package gives are held to its.
quad (quads)
one statement together with the graph that holds it.
realm
one JavaScript global environment, such as a page or an iframe; an object made in another realm fails `instanceof` here.
rebuilt in part
of a step with a kept build: only the records the step reached are derived and written again.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
reference tables (reference table)
public code lists, such as RxNorm for medicines, that tell a runtime when two codes mean one thing. cascade:ReferenceSeries
Refusal
the error thrown when the package declines a request it understood, such as a name it does not have; it has written no file of the person's.
refused
on a call's result, why a rule turned the call down; a refused call wrote no file of the person's, though a pod with a build still rewrites its manifest.
register (registers, registered)
of a code system, to give it a URI space in the vocabulary, from which a code's IRI is made.
release (releases)
a version of the rule list as shipped; a release may declare an earlier rule wrong.
renew (renewal, renewed)
of a kept store, to replace it with a new store filled from the old one, which frees the memory the old one held.
replay (replays, replayed)
performing a story's steps, in order, on a new pod.
restorable union
a union that can undo what a run did to it: it remembers the graphs it dropped, added to or took subjects from, and `restore()` puts every quad and blank node back.
retraction (retractions, retract, retracts, retracted)
the owner taking back a judgment they filed: the judgment stays in the pod and no longer counts. prov:invalidated
revision (revisions)
the pod's note that a record took a version at one arrival: which version, when, and from which document. (Of a pod, `revision()` is another thing: a name for the state its files are in.)
rule (rules)
a numbered requirement in the vocabulary that every runtime must meet, such as A14 in `runtime/arrivals.feature`; a heading on this page links the rules its API reaches.
rule list (rule lists)
the vocabulary's list of what the matcher compares, each line naming a query and the table kind it reads; it has versions, as a reference table has. cascade:RuleListRow
runtime (runtimes)
software that reads and writes pods as the vocabulary requires; this package is one.
Same
a judgment that its members are one thing, so answers show them once. cascade:Same
sample (samples)
a kit's pod saved as files a web page can read.
saved output
the graph and conversion findings a kit keeps for each document its story imports, as the Bridge made them.
sealed (seal, seals)
of a pod or a file, encrypted on disk so that only the secret opens it.
secret (secrets)
the six words that open an encrypted pod; `sixWords()` draws them from the EFF long word list, a public list of 7,776 easy-to-type words.
seeded
drawn by a random generator started from a stated number, so a failing case can be drawn again.
selector (selectors)
the place in a document an arrival was read from.
series
one of the reference tables across its versions, such as RxNorm's product ingredients. cascade:ReferenceSeries
session (sessions)
one stretch in which a writer has a pod open. (An entry session is another thing: the act of entering records.)
set hash (set hashes)
one hash over the paths and bytes of the files of the set, the same in whatever order they were added.
SHACL
the W3C's Shapes Constraint Language, in which the vocabulary's shapes are written.
shapes (shape)
the vocabulary's requirements on what a record, a judgment or a file of a pod must state, written in SHACL, the W3C language for checking data. https://www.w3.org/TR/shacl/
snapshot (snapshots)
the set of files a pod held as one act left it, which names the snapshot before it as a git commit names its parent. cascade:Snapshot
source (sources)
one hospital server, or one document, whose records an export holds.
SPARQL
the W3C query language for data written as statements, as Turtle writes them; `pod.ask()` runs an app's own SPARQL SELECT. https://www.w3.org/TR/sparql11-query/
SPARQL constraint (SPARQL constraints)
a constraint of a shape written as a SPARQL query, each row of which is one thing wrong with the focus node `$this`.
stand-in (stand-ins)
in a test, a fast hash used in place of Argon2id where no real key is under test.
step (steps)
one scripted action on a pod, such as making it, an import, an entry session or a judgment, named by a letter and a number such as `J10`.
store (stores)
what holds graphs and runs SPARQL over them; here Oxigraph.
story (stories)
the steps taken with one made-up patient's exports, in order.
subject (subjects)
the person a pod is about. cascade:Subject
sync (syncs)
the act a writer writes after it received another writer's files; its snapshot merges the heads that arrived.
table kind (table kinds)
what a reference table's rows say, such as product ingredients or vaccine groups; the vocabulary declares each kind. cascade:TableKind
table version (table versions)
one release of a reference table: the rows a table kind holds as of one date, named by an IRI the pod's files use.
target (targets)
what a shape names to say which nodes it checks: a class, the subjects or objects of a property, or one node.
term (terms)
one word the vocabulary defines, named by an IRI, a web-style identifier such as `https://ns.cascadeprotocol.org/cascade#allergenName`.
the build (the build's)
the files a pod works out from its records after every step: its views and its manifest.
the set
the files of a pod that a set hash covers; the layout says which, and an act's own file and a sync's file are left out of the hash their snapshot states.
transmitter
the party that passed a document on without writing it, as Apple Health does a hospital's record.
tripwire
a check that turns red on a change someone should look at, not on a fault in the package.
Turtle
a W3C text format for writing statements in the vocabulary's terms; `pod.enter()` and `pod.judge()` take it. https://www.w3.org/TR/turtle/
type index
the file in which a pod lists, for each class of thing, the file or folder that holds it, so that another app can find the pod's views.
unheld
of a table version a pod names: not among the tables the pod is opened with.
union (unions)
a store read with some of its graphs as the default graph.
Unopened
the `Refusal` thrown when a pod does not open with the secret given, or with none; its `outcome` gives the reason, such as `incorrect secret`.
URI space
the beginning that every IRI of one code system's codes shares.
vector (vectors)
a test case the vocabulary publishes for every runtime: inputs, and the result each must give, such as a name.
version (versions)
what a record says at one time; when a source changes a record, the pod keeps the old version and adds a new one. (Of a reference table or the runtime, "version" has its everyday meaning.) cascade:version
view (views)
a pod's records of one kind, such as medications, as its judgments leave them: one line for each thing however many sources reported it. A named question such as `pod/My medication history` returns a view's rows. cascade:View
view entry (view entries, entry, entries)
one thing in a view, such as one medication or one lab result: the records that are one thing, shown as one. A row names it in `entry`, by an IRI that ends in `#` and 64 hexadecimal digits. cascade:inEntry
vocabulary (vocabularies)
cascade-vocabulary, the project that defines the words health data is written in, the requirements every pod meets, and a set of ready-made questions. https://ns.cascadeprotocol.org/cascade#
WebAssembly
the portable compiled form the Bridge is built in, which runs in a browser and in Node.
worker
a thread a web page or Node starts to run code apart from the main one.
writer (writers)
one app or device that writes to a pod; two writers hold copies of it and exchange files.
Build and packaging 53 passed

evals 387 passed

cascade-evals 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The eval harness: it asks a synthetic person's questions of one model twice, once reaching her pod only through `cascade-mcp` (the pod arm) and once reading every download (the records arm), checks each answer by program, has blind judges grade the rest against a key written before any run, and writes the results and a report. It is run on demand by `cascade-evals`; no app calls it.

Glossary
absence (absences)
what a reply says the records lack: the codes and words a record of it would carry (`match`), what was looked through (`coverage`), and the tool call (`query`) or the files (`sources`) that looked.
answer (answers, answered)
here, the reply a subject writes to one question, saved as `<question>.json` in the job's folder under the run's `answers/`.
arm (arms)
one of the two ways a model is given a person's records: the pod arm or the records arm.
backed (backs)
of an absence, borne out by what was looked through; an absence that is not comes back with `backed: false` and a `reason`.
beyond the key
of a point in an answer, matching no key item; a judge gives each a verdict of its own: fair, true but not planted, speculative, or contradicted by the records.
cap (caps)
the most tokens and dollars a config lets a run spend; a job that would pass it is not started.
cascade-mcp
the MCP server of the runtime through which the pod arm reaches a pod; the harness starts one for each job.
case (cases)
a synthetic person the harness asks about: her downloads, her questions in sessions, and the key, in a folder of `cases/`.
checkout (checkouts)
one copy of a repository on disk; a job can be reused from a run made in another checkout, such as a worktree.
child (children)
the `claude -p` process the runner starts for one job.
citation (citations, cite, cites, cited)
where a fact points (`cite`): a view entry, a FHIR resource in a download, or a line of one. In a reply about downloads it also gives, field by field, what the fact says the record there holds.
compact read (compact reads)
the whole pod as tab-separated text, which the `ask` tool returns a part at a time when called with `format: "compact"`; each line is one row of a view, its cells separated by tabs.
config (configs)
a file of `configs/` that says which cases, models, repeats and judges a run has, and its cap; `smoke`, `standard` and `full` are the tiers.
doctor card (doctor cards)
the part of the report that shows one answer as a person could hand it to a doctor: the question, the short answer, each dated fact with its source.
download (downloads)
a file of a person's records as a hospital's server or portal gave it, before any import: FHIR resources in JSON, or a C-CDA document.
fact (facts)
one record an item rests on: what the model says of it, and where it is.
feed (feeds)
a published list of the versions of reference tables, which an app reads to find newer ones.
FHIR
Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON. https://hl7.org/fhir/R4/
field (fields)
one kind of thing a record says: its `value`, `unit`, `status`, `code`, `name` or `id`, a date (`date`, `start`, `end`, `recorded`), or its text (`text`, from which a `quote` is taken).
give back (given back, gives back, giving back)
to return a job a child left unfinished to `pending`, with what the child wrote removed, so the next `--go` runs it again from the start.
hand-out (hand-outs, handed out, hands out)
the moment `ask` gives a session its next question; also said of a job the runner has given to a child.
handle (handles)
a compact read's short name for a view entry: a letter for its view, then the first eight or more hexadecimal digits of the view entry's name, such as `L41e35923`. `ask` takes a list of them in `entries` to return only those view entries' rows.
held tables (held, whole)
the reference tables the harness keeps once in its work folder, `work/reference-tables`, and copies into each case's pods folder; a fetch is whole when every feed came, none refused or unread, and `.whole` marks it.
inputs hash (hash)
a digest of everything a session's answers depend on; a recorded session with the same hash is reused, not run again.
instance (instances)
one case, model and repeat, with both arms' sessions and their judging: the unit the report counts.
item (items)
one point of a reply, with what it rests on.
job (jobs)
one unit of work the runner hands out: a subject's session on one arm, or one judge's sitting.
judge (judges, judged)
here, a model that grades both arms' answers against the key without being told which arm wrote which.
kept clone (kept clones)
a pinned clone left on disk by an earlier run and reused while its files are unchanged; `checkKept()` checks it.
key (keys)
what a case's author wrote, before any run, that a good answer to each question finds: `key.json` for programs and `key.md` for the judges.
key item (key items)
one thing the key expects of one question: a fact or an absence to find, a planted gap to raise, or a trap to avoid.
letters (letter)
the names, A and B, under which a packet shows the two arms' answers, in an order drawn for each judge's sitting.
model (models)
a language model that an app lets answer a person's questions about their records.
packet (packets)
the one file a judge reads: the questions, both arms' blinded answers under letters, and the key's prose.
passage (passages)
the lines of a download a citation points at, as the harness read them, at most `PASSAGE_CAP` characters.
pinned run (pins, pinned)
a run whose config names a commit for each repository the pod arm depends on; the runtime of those commits builds the pods and serves them.
plan (plans, planned)
here, a run's `plan.json`: its config, cases and jobs, each job with its status.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
pod arm
the arm in which the model reaches the person's pod only through `cascade-mcp`'s tools.
print view (print views)
a page of the report that holds every doctor card of one arm of one run, laid out for paper.
prompt version
a digest of every part of an arm's prompt; it is one of a session's inputs.
provenance
of a view entry, what the pod's own files say it came from: its records, each record's versions, and the documents those were read from.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
records arm
the arm in which the model is given every download as a file and reads them itself.
reference tables (reference table)
public code lists, such as RxNorm for medicines, that tell a runtime when two codes mean one thing. cascade:ReferenceSeries
refuse (refuses, refused)
here, of a function, to throw an Error whose message says why, naming what it refused; it returns nothing.
reply (replies)
a model's answer to a person's question about their records, as JSON.
reply contract (contract, contracts)
the form a reply must take: an `answer`, a `short` form of it, and `items`. `replySchema` is its JSON Schema, and `replyErrors()` lists where a reply departs from it.
resource (resources)
one record in FHIR, named by its type and its id, such as `Observation/ldl-1`.
run (runs)
one execution of a config, in a folder of `runs/`: its plan, prompts, answers, verdicts and, once finished, `results.json` and the report.
runtime
here, cascade-runtime-js, the code that builds a pod and serves its tools; a pinned run builds and serves the runtime of its pinned commit.
scrubber (scrubbed, scrubs)
the function that replaces, with `[record]`, text only one arm writes: a resource reference, a file name with a line, a handle, an IRI.
session (sessions)
one chat: the questions a case asks in it, asked in order of one model on one arm. A subject's job is one session.
session id (session ids)
the identifier a job's child is started with (`--session-id`), which names the session's transcript file.
starter copies (starter)
the reference tables as the package carries them, which a new app uses until it has read a feed.
subject (subjects)
here, the model being evaluated, as it answers a session. The person a pod is about is written "the person" on this page.
tag (tags)
the first line of a job's prompt, `eval-tag: <run>/<job>`, by which a Workflow agent's transcript is known as the job's.
tell (tells)
wording the scrubber cannot remove that could let a judge guess the arm, such as "the pod" or "line 211"; each is recorded with its arm and question.
tie
codes, words, a day and a kind of record that the caller holds an absence to as well as the absence's own, passed as `tied`; the evals take them from their answer key.
tool (tools)
a function a model may call: a name, a description, a JSON Schema for its input, and the code that runs it.
tool call (tool calls)
one run of a tool by a model: the tool's name, the input it was given, whether it succeeded, and what it returned.
transcript (transcripts)
the `.jsonl` file Claude Code writes of one session: every model call with its tokens, and every tool use.
trap (traps)
a key item that names something a good answer does not say; it is graded avoided or raised, and counted apart from the key items an answer should find.
Turtle
a W3C text format for writing statements in the vocabulary's terms; `pod.enter()` and `pod.judge()` take it. https://www.w3.org/TR/turtle/
verdict (verdicts)
here, what one judge wrote of one packet: a grade for each key item under each letter, and a grade for each point beyond the key.
view entry (view entries, entry, entries)
one thing in a view, such as one medication or one lab result: the records that are one thing, shown as one. A row names it in `entry`, by an IRI that ends in `#` and 64 hexadecimal digits. cascade:inEntry
violation (violations)
one tool use of a job outside what it was allowed: a file read, a command run or a file written that is not its own.
wave (waves)
the jobs the runner starts together; the cap is checked between waves.
Build and packaging 15 passed

site 787 passed

@cascade-runtime/site 0.0.0 · commit 326fc39 · unreleased: what main does today, not a compatibility promise

The generator of Cascade's documentation site: the pages of a sample pod, the specification, the term reference, and the unit-test pages, of which this is one. Nothing installs it: it runs when the site is built, and this page is for whoever changes the site or sends it a test report.

Glossary
about line
the one sentence, under a package's name on its tests page, that says what the package is and who calls it; it is the `about` of the package's `spec.json`.
accounting
an adapter's own list of every source path of its format, each with a verdict: carried into a record, and as which vocabulary term, or not carried, and why.
adapter (adapters)
the program that converts an export into records; `import` loads it on first use.
anchor (anchors)
the part of a web address after `#`, which takes a reader to one place on a page: the `id` of a heading, a rule or an entry.
build section (build check, build checks)
the closed section at the end of a package on a tests page, headed "Build and packaging", for the cases of a file or capability that a package's `spec.json` lists under `build`, checks of how the package is built; it is not part of the specification.
C-CDA
Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out.
capability (capabilities)
one thing a package does for whoever calls it, named as a developer would search for it, with its API after a dot: the top level of a tests page, and the outermost `describe` of a test file.
case (cases, leaf)
one test as a report records it: its name, whether it passed, failed or was skipped, and how long it took. On a tests page a case is a leaf: it completes the sentence "it …".
Choice row (Choice rows)
one line of the Choice table of a decision note: a thing that was decided, the prior art, and what the vocabulary does, which names the rule the decision led to.
code system (code systems)
a published list of codes for one kind of thing, such as RxNorm for medicines, LOINC for lab tests and SNOMED CT for clinical findings.
conformance results
what one run of the vocabulary's features against a runtime found: for each example, passed, failed or not run. The run writes them in EARL.
crosswalk (crosswalks)
what an adapter's accounting says each source path becomes: the vocabulary term it is carried as, and the source paths that are not carried. The adapter's explorer shows it.
CTRF
Common Test Report Format, an open JSON format for test results (ctrf.io); the site writes each suite's results in it beside the page, for an agent, and reads it from a suite no test runner runs.
decision note (decision notes)
a Markdown file in the vocabulary's `decisions/` folder that settles one design question: a Choice table of what was decided, and a Why section whose paragraphs each give the reason for a Choice row. A rule names the note and the Choice row that ruled it.
digest
the SHA-256 hash of a text, written in hexadecimal; a few of its first digits tell apart two things of one name.
doc comment (doc comments, description, descriptions)
a `/** … */` comment directly above a `describe` or a test; the tests page shows it as that level's description.
Docs block (Docs blocks)
the `## Docs` section a repository's README opens with: links into the site, the front page first.
EARL
Evaluation and Report Language, a W3C format for test results as Turtle; conformance results are written in it. https://www.w3.org/TR/EARL10-Schema/
example (examples)
under a rule in a feature, one worked scenario: a pod made a certain way, and what must then be true of it. A conformance run passes or fails each.
feature (features)
a file of the vocabulary that states its rules on one subject, each with examples, in Gherkin, such as `runtime/arrivals.feature`; a kit has one of its own.
FHIR
Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON. https://hl7.org/fhir/R4/
finisher (finishers)
a function the site's build calls last, with every file the sections wrote, which returns more files made from them, such as an index.
front page
the site's `index.html`: a "Find your way" table of what a reader may have come for, and a list of the project's repositories.
gap (gaps)
a named reason a source path is not carried, or is carried in part, such as "only the first note is carried"; an adapter lists its gaps in a file of its own.
glossary (term, terms, alias, aliases)
the words a package's tests use in one sense, each with a one-sentence definition, listed in the package's `spec.json` and shown under its about line; a term may have aliases, other forms of the word that link to the same definition.
guide
`guide/AGENTS.md` of the cascade-runtime package: the document for a developer, or a coding agent, who is building an app on a pod. The site shows it as the API page and copies it as `AGENTS.md`.
IRI (IRIs)
a web-style identifier, such as `https://ns.cascadeprotocol.org/cascade#allergenName`; every vocabulary term, record and view entry is named by one.
JUnit
an XML format for test results that most test runners can write; each runner fills it in its own way.
kit (kits)
a story and the exports it uses, which the vocabulary carries for testing, such as `alex-rivera`.
kit check (kit checks)
one of the five things `runtime/the-kit.feature` requires of a replay of a kit's story, numbered 2 to 6, such as check 3, "every file conforms to the shapes". Check 1 is that every example passes.
lens (lenses)
a choice of which judgments count when a question is answered: `everyday` is the default, and `export` is stricter, for records sent elsewhere.
level (levels)
a heading of a tests page that holds cases or other levels: a capability, or a situation under it. In a test file it is a `describe`.
llms.txt
a Markdown file at a site's root, in the form llmstxt.org proposes, that lists the site's main links in groups for a language model to read.
matcher (matchers)
the part of a runtime that compares a pod's records and writes a Same for those its rules find to be one thing, such as one allergy reported by two sources. cascade:CascadeMatcher
named question (named questions)
a query the vocabulary carries under a name, such as `pod/My active allergies`.
namespace (namespaces, prefix, prefixes)
the shared start of the IRIs of one vocabulary, such as `http://xmlns.com/foaf/0.1/`, which a prefix such as `foaf:` stands for.
package (packages)
one folder `packages/<name>/` of a repository, with its own `test/` and `spec.json`: a tests page shows each as one top-level group of capabilities; a repository with no `packages/` is one package named for it.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
record (records)
one thing said about a person's health, such as an allergy, a medication or a lab result. cascade:Record
report
the file one run of a repository's tests wrote, in JUnit or, for a suite no test runner runs, in CTRF; the site reads the newest from `main`.
resource (resources)
one record in FHIR, named by its type and its id, such as `Observation/ldl-1`.
row (rows)
a line of the front page's "Find your way" table: one thing a reader may have come for, such as "build an app", and the links that serve it. Each section says which row its links go in.
rule (rules)
a numbered requirement in the vocabulary that every runtime must meet, such as A14 in `runtime/arrivals.feature`; a heading on this page links the rules its API reaches.
runner (runners, test runner)
the program that runs a repository's tests and writes the report: node:test, pytest, vitest or nextest; `ctrf` for a suite no runner runs, whose report is already in CTRF.
runtime (runtimes)
software that reads and writes pods as the vocabulary requires; this package is one.
section (sections)
one part of the site, such as the term reference or the specification: the files it writes, among them its entry page, and the links it lists for the front page.
shapes (shape)
the vocabulary's requirements on what a record, a judgment or a file of a pod must state, written in SHACL, the W3C language for checking data. https://www.w3.org/TR/shacl/
situation (situations)
the second level of a tests page: the function under test, written as code, or a circumstance beginning "when", "given" or "with".
slug (slugs)
a name made fit for an address: lowercase letters and digits, with one hyphen for each run of anything else.
source path (source paths)
where a value sits in a record of a source format, written as a path such as `/code/coding/code` in FHIR.
spec.json
the file `test/spec.json` of a package: its about line, its capabilities in the order the page shows them, its glossary, and the files and capabilities it lists under `build`, which are build checks.
specification
the vocabulary's features, read as the rules a pod and a runtime must meet; the site shows them under `spec/`.
starter kit
cascade-starter-kit: the app template that `create-cascade-app` makes, and the `try/` page that runs one in a browser.
suite (suites, suite list)
one repository's tests, as `packages/site/test-suites.json` lists them: where its newest report is found and which runner wrote it.
summary bar
the strip that stays at the top of a tests page: the package, the commit, the counts of passed, failed and skipped cases, the run time and three buttons.
term reference
the page of the site, at `terms/`, that has an entry for every vocabulary term.
test folder (test folders)
where a repository's test files sit when that is not `test/` or `tests/`, as `test-suites.json` gives it in `tests`, ending in "/"; the page leaves it off the names of the files.
tests page (tests pages)
the page of one repository's test results, read as a specification.
Turtle
a W3C text format for writing statements in the vocabulary's terms; `pod.enter()` and `pod.judge()` take it. https://www.w3.org/TR/turtle/
verdict (verdicts)
what an accounting says an adapter does with a source path: carried, carried in part, no home in the vocabulary, ignored, consumed in reading the record, or redundant with another source path.
view (views)
a pod's records of one kind, such as medications, as its judgments leave them: one line for each thing however many sources reported it. A named question such as `pod/My medication history` returns a view's rows. cascade:View
view entry (view entries)
one thing in a view, such as one medication or one lab result: the records that are one thing, shown as one. A row names it in `entry`, by an IRI that ends in `#` and 64 hexadecimal digits. cascade:inEntry
vocabulary (vocabularies)
cascade-vocabulary, the project that defines the words health data is written in, the requirements every pod meets, and a set of ready-made questions. https://ns.cascadeprotocol.org/cascade#
vocabulary term (vocabulary terms, terms of the vocabulary)
one word the vocabulary defines, such as `cascade:allergenName`: a class, a property or a named value, named by an IRI.
Build and packaging 4 passed