Skip to content
Alpha: see what works today →
Menu

The starter kit's tests

The newest run on main of the tests of cascade-starter-kit, 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.

cascade-starter-kit 0.0.0unreleasedAll 859 cases pass · commit e1efd2f · · 246.03 s · the run 859 passed 0 skipped

npm test, node:test over the kit. For an agent: cascade-starter-kit.ctrf.json.

cascade-starter-kit 0.0.0 · commit e1efd2f · unreleased: what main does today, not a compatibility promise

cascade-starter-kit, the app a person starts from on cascade-runtime: a template of React pages over a small server, its two add-ons (a chat with a model, and an MCP server), and `create-cascade-app`, the command that makes an app from them.

Glossary
ACMG classification (ACMG classifications)
one of the five values a laboratory gives a variant under the guidelines of the American College of Medical Genetics and Genomics: pathogenic, likely pathogenic, uncertain significance, likely benign or benign.
add-on (add-ons)
a folder of files that `create-cascade-app --with` adds to the template: `chat`, a chat with a model, and `mcp`, an MCP server.
address (addresses)
here, where a page or a route of the app is reached: a path such as `/pods/alex-rivera/`, with its query.
Anthropic
the company that makes the Claude models; one of the providers a chat can use, over its own interface.
Backspace
the key that deletes the character just typed.
base
of the template, the app with no add-on: its screens, its server, the sample pods and the tool list. Of an address, the path the app is served under, such as `/cascade/`.
body (bodies)
what a request sends to an operation at `POST /api/<operation>`: a JSON object holding that operation's inputs, such as `{ "pod": "ines" }` for `waitingWords`.
box (boxes)
a panel the app draws over a screen for one task, such as making a pod or showing a connection; closing it shows the screen again.
bring in (brought in)
here, to import a hospital's pull into the pod from the connection's box (the button "Bring it into …").
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
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.
combination (combinations)
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
context
what an "Ask about this" button sends with a chat's first question: the kind of thing asked about and its identifier, such as a lab change's key.
counsellor sentence
the line every variant's entry ends with: "Your clinician or a genetic counsellor can explain what this means for you."
credit (credits)
the sentence a reference table's publisher asks to be shown wherever the table's content is, such as LOINC's notice; the app prints it once on each screen that shows what the table says.
Ctrl+V
the keys most programs paste with. A prompt that reads the keyboard itself gets nothing from them, so the app says to paste another way.
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.
demo person (demo people)
one of the demo hospitals' made-up patients, offered by name when a pod is made; one person may be at two hospitals.
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.
door (doors)
one way a model reaches the app's tools: the chat, WebMCP in the page, or the MCP server.
drug class (drug classes, class)
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
engine
the part of cascade-runtime that answers questions about a pod and its reference tables, which a page loads after its first screen is drawn.
expression (expressions)
here, a variant written out in HGVS notation, such as `NM_000249.3:c.2042C>T`; one variant may have several.
feed (feeds)
a published list of the versions of reference tables, which an app reads to find newer ones.
FHIR base (FHIR bases)
the URL of a hospital's FHIR server; each record there is at `<FHIR base>/<type>/<id>`. cascade:serverBaseUrl
Find a hospital
the screen that lists the hospitals a person can sign in at, each on a card with its sign-in.
four settings
the four `.env` lines that choose the chat's model: `CASCADE_MODEL_PROVIDER`, `CASCADE_MODEL_URL`, `CASCADE_MODEL_NAME` and `CASCADE_MODEL_KEY`.
host (hosts)
here, the object `podApi(host)` reads its pods, reference tables and hospitals through: `nodeHost()` over folders on Node, another over the browser's own storage in a page.
hosted
of a model, run by a provider on the internet, as against on the person's own computer.
isError
the flag on an MCP tool's result that says the call failed; the result's text is then the reason.
key
here, a model provider's API key: the password an app sends with each request to a hosted model.
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.
lane
the strip under a trend's chart that draws each medication's days: prescribed, started, stopped.
listener
the local web server, from cascade-sandbox's `serveDemo()`, that answers for the demo hospitals while the app runs.
lockfile (lockfiles)
`package-lock.json`: npm's record of the exact version of every package an install takes.
made app
an app as `create-cascade-app` leaves it in a new folder: the template, the chosen add-ons, its packages installed and its sample pods loaded.
manifest (manifests)
an add-on's `registry-item.json`: its files, the packages it pins and the npm scripts it adds, in shadcn's registry-item shape.
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.
MED-RT
the US Veterans Health Administration's table of what medicines do and are made of, from which the drug classes come.
model (models)
a language model that an app lets answer a person's questions about their records.
named question (named questions)
a query the vocabulary carries under a name, such as `pod/My active allergies`.
nested panel (nested panels)
a panel that LOINC lists as one of another panel's tests.
never list
`NEVER` in `tools.ts`: the PodApi operations no tool may call, such as making an encrypted pod, connecting to a hospital or deleting every pod.
panel (panels)
a set of lab tests reported together, such as a thyroid panel.
pin
the one address in `app/package.json` naming the build of cascade-runtime the template runs on.
pod (pods)
one person's records, and what that person has said about them, kept as files in one folder.
PodApi
`podApi(host)` in `pod-api.ts`: every read and write the app makes of its pods and reference tables, as operations that take and give plain JSON. The server, the pages, the commands and the tools all go through it.
PodApi's sentence
the sentence `inputRefusal()` returns for an input PodApi refuses, such as `pod must be a string`; a schema over HTTP must refuse with that same sentence.
provider (providers)
the service a model is reached at, such as Anthropic, Google Gemini, Groq, or a model server on the person's own computer.
publisher (publishers)
of a reference table, the body that issues it, such as the Regenstrief Institute for LOINC; the app's code calls it the table's `source`.
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
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 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.
relation (relations)
here, the way MED-RT ties a medicine to a class: its established pharmacologic class, its mechanism of action, its physiologic effect or its chemical structure.
report
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.)
requirement
whether LOINC lists a test in a panel as required or optional, or under a condition of its own such as `R-a`.
retired code (Retired code)
a code its code system no longer uses; the app tags a record that carries one "Retired code".
review status
ClinVar's statement of how well a classification is supported, such as `criteria provided, multiple submitters, no conflicts`. cascade:clinvarReviewStatus
round (rounds)
in a chat, one turn of the model that calls tools, with their results sent back to it.
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.
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/
scope (scopes)
what an app asks a hospital, at sign-in, to let it read, such as `patient/*.read`: every record of the patient.
screen (screens)
one page of the app at an address of its own, such as a pod's or a reference table's; moving between screens does not load the page again.
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.
section (sections)
one kind of record on a pod's screen, such as Medications or Lab results: a tile that counts its rows, and a table of them.
series
one of the reference tables across its versions, such as RxNorm's product ingredients. cascade:ReferenceSeries
six words
the words an encrypted pod is sealed with, shown once when it is made; a person proves they kept them by typing words 2 and 5.
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/
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.
statin (statins)
a medicine that lowers cholesterol, such as atorvastatin.
step (steps)
here, one change a person asks the app for from a form on a screen, such as setting a date or making a pod; the screen's route runs it and draws what came of it.
story pod (story pods)
a pod of a sandbox story's made-up patient, as against a real person's.
subject (subjects)
the person a pod is about. cascade:Subject
submitter (submitters)
a laboratory that sent ClinVar its classification of a variant.
tag
a word or two the app sets beside a line, a row or a view entry to mark it: `Needs review`, `Differs` or `Retired code`.
tarball (tarballs)
a single file that packs a build of a package, which `--tarball` names so that a new app installs it in place of the one the lockfiles were made with.
target (targets)
one of the two ways the app is built: the Node target, whose pages call the server, and the browser target, which runs PodApi in the page with no server.
template
here, the folder `app/`: the app as `create-cascade-app` copies it, before any add-on.
tier (tiers)
a tool's consent level: `free`, a read that runs unasked, or `ask`, a write the person confirms first.
tile (tiles)
here, a square on a pod's page for one kind of record, with the count of its rows; a click opens its box.
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.
trend
the screen that charts one lab test's results over time against the days of one medication.
try/
the app's browser target as published on the web with the kits' samples, for trying a pod with nothing installed.
UI message stream
the Vercel AI SDK's format for a chat's reply as server-sent events: the text as it comes, each tool call and its result.
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.
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
waiting
of an encrypted pod, asked for but not yet made: PodApi holds its six words until the person types back words 2 and 5, and writes nothing before.
WebMCP
a proposed browser API by which a web page offers tools to a model the browser runs (cascade-runtime's "model context" entry names the object).
What changed
the part of a pod's screen that draws a card for each lab change, with the results behind it and a link to its trend.
world's date
the day the demo hospitals answer as of, which the app can set so a story's later records are not yet there.
Worth a look
here, the list at the top of a pod's page of the few things the app would point a person to, each a sentence linking to its entry.
zod
the library the server's routes use to describe the shape of a request body and to refuse one that does not fit it.
Build and packaging 35 passed