Skip to content
Alpha: see what works today →
Menu

decisions/naming.md on GitHub, at the commit these pages were built from

How everything in a pod is named

Status: draft, 2026-10-22, from the review on #130. Replaces N1's owner, N2's inputs, N6's constant and its "used" (the rule list's version leaves it, the maker becomes jdg:CascadeMatcher), N7's "nothing else" (six kinds of act are random now), A2's single parent, and M5's and M9's "at the run's time" (an assertion carries no time); built by #193 then #191, one re-mint. Which revision is current is currency.md; how a moved, switched or re-issued source's records are joined is republishing-sources.md; what a judgment is and borrows is judgments.md. The rubric below is the one the four notes share. Recipe detail (constant, escaping, bit layout, canonical form) lives in the rule terms and runtime/naming.feature.

Question

A pod holds records from several hospitals, versions of each, the pod's own revisions, stored documents, acts, a person's judgments and a machine's, findings, tables and views. It has no server of record, is written by more than one writer, and shows views the person may share. Each thing needs a name two runtimes give alike, that it keeps, that nobody can forge, and that says nothing a shared view should not.

Rubric

Every rule in this note, in currency.md, in republishing-sources.md and in judgments.md is one input run through four tests.

  1. A name is identity by definition, not by inference. A thing is named by what its source says identifies it, and nothing past that: a server's record by that server's address, type and id; an entry by its document and position. Two things share a name only where the source itself gave them one definition.
  2. Everything past the definition is a judgment. That two records are one fact, that two servers are one hospital, that a source's patient is this person: each is a belief, filed with its reason and its maker, so that it can be wrong and can be retracted without touching a name.
  3. One judgment per fact, where a fact exists. Where one fact joins thousands of records, a moved server or a merged hospital, it is said once and the joins are derived. Where no such fact exists, a vendor switch that re-issues every id, judgments are per record, scoped as narrowly as the facts allow.
  4. The machine surfaces what it is less sure of. Every judgment can be reviewed and overridden by a person, whose judgment outranks the machine's. The machine lists for the person the ones it made on weaker grounds, a code and a date rather than a shared identifier, or a pick between revisions no source time decided, so review goes where it is needed.

What others do

Show what others do (7 entries)
  • FHIR names a resource by its server plus a logical id, and says an id is stable only "on the same server" and a copy "might or might not keep the same logical id"; business identifiers are "the preferred basis to recognize the same content on different systems"; a fullUrl is unique within one bundle; meta.versionId is an opaque server-assigned version id.
  • CDA gives every entry an id of the II datatype, whose root "guarantees the global uniqueness of the instance identifier": a promise of uniqueness, not persistence. HL7's C-CDA Companion Guide makes persistence a best practice, "C-CDA Content Creators SHOULD maintain act/observation IDs across documents", and the networks make it a SHALL: the Carequality and CommonWell joint content guide, "systems SHALL maintain consistent IDs", and the Sequoia Data Usability guide, "Organizations SHALL send the same ID for clinical data which has not changed".
  • openEHR names a versioned object object_id::creating_system_id::version_tree_id, the system visible in the name; a CONTRIBUTION records each commit.
  • SPHN scopes every instance IRI by its data provider and keeps cross-provider sameness in a separate hasSharedIdentifier. OMOP keeps each source's value beside the concept it maps to and names nothing across sources.
  • git names blob, tree and commit by the hash of their content; a commit names its parent heads, one or several, and one tree, so one hash covers the whole state.
  • Nanopublications hash a self-referencing graph with the self-reference blanked (trusty URIs). Web Annotation gives each annotation exactly one IRI.
  • RFC 6920 gives a hash of bytes an IRI, ni:///sha-256;…. RFC 9562 gives an application its own UUID layout (version 8) and recommends a random v4 or v7 as a namespace. RFC 3986 §6 says which URL differences are not differences. RDFC-1.0 canonicalises a graph so its hash is the same from any serialisation.

Sources: FHIR R4 resource identity and business identifiers (https://hl7.org/fhir/R4/resource.html#id, https://hl7.org/fhir/R4/resource.html#identifiers), bundle uniqueness (https://hl7.org/fhir/R4/bundle.html#bundle-unique); CDA II datatype (https://hl7.org/cda/stds/core/StructureDefinition-II-definitions.html), C-CDA Companion Guide R4.1 §5.1.4 (HL7 members' copy; read from https://www.cal-med.com/fhir/HL7_CCDA_Companion_Guide.pdf), Joint Document Content WG Concise Consolidated CDA v2.0 §2.2.2 (https://www.commonwellalliance.org/wp-content/uploads/2024/04/Resources-Improve-C-CDA-Joint-Content-WG-v2.0-FINAL-COPY-20220316.pdf), Sequoia Data Usability IG v2.0 §3.4.2.1 (https://sequoiaproject.org/wp-content/uploads/2024/12/Data-Usability-Workgroup-Implementation-Guide-V2.0-Final.pdf); openEHR OBJECT_VERSION_ID (https://specifications.openehr.org/releases/BASE/latest/base_types.html#_object_version_id_class) and CONTRIBUTION (https://specifications.openehr.org/releases/RM/latest/common.html#_contribution_class); SPHN data generation (https://sphn-semantic-framework.readthedocs.io/en/latest/user_guide/data_generation.html); OMOP CDM (https://ohdsi.github.io/CommonDataModel/); git objects (https://git-scm.com/book/en/v2/Git-Internals-Git-Objects); trusty URIs (https://trustyuri.net/); Web Annotation (https://www.w3.org/TR/annotation-model/); RFC 6920 (https://www.rfc-editor.org/rfc/rfc6920), RFC 9562 §5.8 and §6.6 (https://www.rfc-editor.org/rfc/rfc9562), RFC 3986 §6 (https://www.rfc-editor.org/rfc/rfc3986#section-6); RDFC-1.0 (https://www.w3.org/TR/rdf-canon/); Clarke et al., incremental multiset hash functions, ASIACRYPT 2003 (https://doi.org/10.1007/978-3-540-40061-5_12); Bellare and Micciancio, incremental hashing, EUROCRYPT 1997 (https://cseweb.ucsd.edu/~mihir/papers/inchash.pdf); Wagner, a generalized birthday problem, CRYPTO 2002 (https://doi.org/10.1007/3-540-45708-9_19); Bitcoin Core's MuHash3072, its unit vectors and its Python reference (https://github.com/bitcoin/bitcoin/blob/a773e1e33b349dc819b5a0edc1c7a4839dc73b48/src/crypto/muhash.cpp, https://github.com/bitcoin/bitcoin/blob/a773e1e33b349dc819b5a0edc1c7a4839dc73b48/src/test/crypto_tests.cpp, https://github.com/bitcoin/bitcoin/blob/a773e1e33b349dc819b5a0edc1c7a4839dc73b48/test/functional/test_framework/crypto/muhash.py); Maitin-Shepard et al., elliptic curve multiset hash (https://arxiv.org/abs/1601.06502); Lewi et al., LtHash (https://eprint.iacr.org/2019/227). Research 1 to 5 on #130: base-URL churn from archived endpoint lists (https://github.com/the-cascade-protocol/cascade-vocabulary/issues/130#issuecomment-6327416626), the server's self-asserted base probed across seven vendors (https://github.com/the-cascade-protocol/cascade-vocabulary/issues/130#issuecomment-6328100407), id-less and generator-minted ids in documents (https://github.com/the-cascade-protocol/cascade-vocabulary/issues/130#issuecomment-6328557801), C-CDA entry id stability across documents (https://github.com/the-cascade-protocol/cascade-vocabulary/issues/130#issuecomment-6334427968), and record identity across every input kind (https://github.com/the-cascade-protocol/cascade-vocabulary/issues/130#issuecomment-6334428443); the evidence issue keeping the churn and self-URL counts and scripts (https://github.com/the-cascade-protocol/cascade-vocabulary/issues/201); and two downloads seven weeks apart from one EHR, in cascade-cli #121 (https://github.com/the-cascade-protocol/cascade-cli/pull/121).

Choice

Each row below is the rubric's first test applied to one kind of thing: what its source says identifies it, and so what is hashed. Whatever failed that test, the server's self-asserted base, a generator's urn:uuid, a version id, appears here only as evidence for a judgment.

Nothing kept cites anything derived. Kept is what nothing else in the pod could make again: documents' bytes, acts, what was typed into an entry, every person's statement, a model's statement or answer (kept word for word, judgments.md), and the pod's own choices. Derived is what the pod works out from the kept: versions, revisions, matcher judgments, findings and entries. A statement about something derived names the kept things that define it, and its kind, never the derived thing's name: a person's judgment names records and the document each member was shown from, never a version, and replaces or retracts anyone's judgment but a matcher's (row "person's judgment", runtime/naming.feature, N16); a statement about an entry names the records the person was shown (row "view entry"); and an answer to a warning names its kind and what it is about, never the warning (row "document, finding"). Each kind of finding says which kept things its targets resolve to: a matcher judgment no longer reached, its member records; a state a source went back to, its record, the document that gave that state and the document of each later state it contradicts, a state being the record and the document that gave it; a writer's clock found behind, the act whose revisions show it; two results that disagree, the two records. A cascade:Acknowledged names the kind as its cascade:answersWarningOfKind and those things as its members, and answers every warning of the kind about nothing it does not name, so a finding worked out again under another name stays answered and one about other things is listed; a judgment naming a finding is refused (runtime/matcher.feature, M19). Two answers that have no code yet will follow the rule when built: a Before answering a rollback finding names, for each record that went back, the record and the documents of the two states it orders (currency.md, row "Before over a finding"); a response to a care hypothesis a rule raises, which is derived and never stored, names the hypothesis's kind, its rule, and the records of the entries it rests on, while one to a model's hypothesis, which is minted once and kept, may name the hypothesis (readings-and-care-hypotheses.md, row "response to a care hypothesis"). The kept side holds still only as its names do. A change to a record-naming recipe ships a kept table of each old record name to its new one, and statements are read through it; and a statement moved between pods names the same records only under the same naming scheme and key (row "scheme").

thing prior art what we do borrowed or diverged Rules that cite it
derived name RFC 9562 §5.8, §6.6 UUIDv8 over a random v4 namespace, the rule's IRI, then the inputs, escaped and joined; lists carry their count (runtime/naming.feature, N11) borrowed; the rule IRI as first input is ours
rule FHIR extensions named by URL a term in the one unversioned Cascade namespace (#193); a changed recipe is a new IRI; local names are descriptive words in the ontology's own style, one per naming recipe: RecordFromServer, RecordFromDocument, RecordFromCcda, ContainedRecord, Entry, Version, Revision, ViewEntry, Snapshot, Server, Organisation, MatcherJudgment, MatcherJudgmentAssertion, ReleaseRetraction, never a short tag like fhir-resource borrowed No rule cites this row.
record from a server FHIR server + id; SPHN provider-scoped IRI hash of the normalised base URL the client used, the type and the id; rec:sourceUrl stated in the file (runtime/naming.feature, N1) SPHN's scope, hashed so a shared view names no host; diverges from FHIR, which calls the pair not durable, and ignores the server's own implementation.url (see republishing-sources.md)
record from a document FHIR documents named by the document and a selector; an id the generator minted is the document's, never the hospital's; a urn:uuid fullUrl is never identity across documents (runtime/naming.feature, N1) borrowed from FHIR's promise, uniqueness within one bundle only
record from C-CDA CDA id roots; Sequoia Data Usability "same ID for unchanged data" custodian and patient scopes, the custodian's being the id its organization record is named by (the paragraph below the table), then the entry's CDA id root and extension, so the same statement in two documents from one system is one record; two entries of one document with one id and different content fall back to document-and-selector names and a finding says the source broke its own definition (runtime/naming.feature, N1) borrowed from the networks' SHALL; diverges from the document row because CDA ids are measured stable where generator UUIDs are not
record from an entry hash of the session's IRI and the draft's position (runtime/naming.feature, N2; runtime/arrivals.feature, A12) ours
server, organisation prov:Organization; FHIR Organization; CDA custodian records: a server by the base URL the client used; an organisation by server plus Organization/{id} from a server, and from a document by its business identifier, a C-CDA id or a FHIR Organization.identifier as the paragraph below the table maps and picks it; what they report sits on versions (runtime/arrivals.feature, A16, A17 and A20) borrowed from PROV for the class; a versioned record typed as an Agent, which PROV allows
version git blob; RFC 6920; RDFC-1.0 ni: hash of RDFC-1.0 canonical N-Quads of exactly its triples (a sort, since no blank node is allowed), business identifiers nested and sorted; the nodes inside it are fragments of the placeholder by role: #identifier-n, a quantity's role, #padded- and the local name of a time written short of the second (#padded-abatementDate), and #absent- and the local name of a value absent for a reason (#absent-onsetDate) (runtime/naming.feature, N3 and N12; runtime/arrivals.feature, A7) borrowed; diverges from FHIR's and openEHR's per-system version ids
source's own version openEHR creating_system_id; FHIR versionId a nested node on the revision, never in a name (runtime/naming.feature, N4) diverges: not visible in a name
revision git commit; trusty URIs self-hashed over its own triples, carrying its act's id, rec:asOf, prov:generatedAtTime, and the record's heads it saw as prov:wasRevisionOf (runtime/naming.feature, N4; runtime/arrivals.feature, A9) borrowed; ni: form rather than trusty URI syntax; prov:wasRevisionOf used for the pod's own observation DAG
act openEHR CONTRIBUTION; FHIR urn:uuid six kinds, each a random v4 minted once: an import, an entry session, a connect (what a server reports), a release's migration (renames, retracts what a release declares wrong, rewrites what a release changes in form), a matcher run, a sync; every file an act writes is named by its snapshot, and a file a step that is no act writes (a new pod's files, a reference version's arrival, a person's judgment) is in the set hash but named by no snapshot; every act names the software and version that performed it; nothing else a runtime mints is random (the subject's urn:uuid and a person's judgment are minted once by their owners) (runtime/naming.feature, N7 and N15; runtime/arrivals.feature, A11 and A12) the act is the contribution; the kinds are ours
sync git merge commit an act a writer writes whenever it holds an act, other than a sync, whose snapshot is no ancestor of its last snapshot, naming each such act, so a receiving that stops partway and is retried writes the same sync; its file in the syncs' folder, provenance/syncs/, outside the set; the set excludes the files that change in place (the views under clinical/, settings/, profile/card.ttl, manifest.ttl), so it only grows; the order-free set hash of the snapshot row is what the snapshot carries, not what every check computes; a sync that brings nothing but another writer's syncs writes nothing, and the writer takes the one head it then holds as git fast-forwards (runtime/sync.feature, S1 to S5) borrowed; written on arrival rather than by a merger, and never for a no-op; the class cascade:SyncFromAnotherWriter is ours: looked at PROV-O, PAV and ActivityStreams, failed because none has a sync or merge activity (PROV-O has only prov:Activity, PAV names authoring and curation, ActivityStreams Create, Update and Add of one object), and git's merge commit is the snapshot, which cascade:Snapshot already borrows, not the act that made it
person's judgment keeps the IRI it arrived with, minted once by whoever made it (runtime/naming.feature, N10); names its records, and by prov:wasDerivedFrom the document each member's current revision came from, never a version; replaces and retracts only a person's judgment (runtime/naming.feature, N16) ours
matcher judgment nanopub assertion the matcher judgment named once, by the naming rule MatcherJudgment, then the maker, the matcher's rule, the justification, the member count, the members sorted and used sorted, where the members are the record and the least member of each entry it matched, a star that same-pairs.rq derives to its least member, and used is the version of each member and of each table the matcher's rule read, never the rule list's version (N6, M5, M13) borrowed from nanopubs, which keep an assertion apart from the provenance and publication info that publish it: the judgment is named once, and each of its assertions names the rule list version it was published under
assertion, retraction by a release deterministic, with no time and no run: an assertion from the rule list version and the matcher judgment, so at most one per version per matcher judgment however many runs reach it, and none under a version whose row for the matcher judgment's rule carries the rec:queryHash of a version the matcher judgment is already asserted under, so a new version asserts only the matcher judgments of the rules it changed; the run that wrote it is known from its snapshot; a release's retraction of an assertion from the release, the assertion and the rule it declares wrong; two writers on one release write one file with one content (N6, M5 and M9 for the assertion; N15 for the retraction) ours
maker PROV agents the Cascade matcher is jdg:CascadeMatcher, one prov:SoftwareAgent, unversioned, for any runtime that follows runtime/matcher.feature; a matcher of another procedure is its own agent term in its own namespace; the runtime that ran is on the act, not the matcher judgment (M5) borrowed; one agent for one procedure is ours
retraction nanopub npx:retracts a prov:Activity that prov:invalidated; replacement by dcterms:replaces; a person's keeps the IRI it arrived with (N10), a release's is named by its rule (N15) diverges: npx:retracts has domain foaf:Agent, making the retractor an agent and the retracted a nanopublication, where ours is an activity over any entity
document, finding RFC 6920; Web Annotation; W3C DQV; FHIR DetectedIssue; SHACL results bytes hashed; content hashed, a finding over its own triples with no act and no time, so two writers' first runs file one file; a finding is cascade:FindingForReview, a oa:Annotation whose oa:hasBody is its kind, oa:motivatedBy oa:classifying, and oa:hasTarget what it names, each kind saying whether its body applies to each target alone (cascade:MatcherJudgmentsNoLongerReached: each target is a matcher judgment no longer reached) or to its targets together (a later finding of two records' differing values) (looked at DQV's dqv:QualityAnnotation, feedback about a dataset or its distribution, its motivation fixed to quality assessment; FHIR's DetectedIssue, a clinical issue between a patient's actions; SHACL's sh:ValidationResult, which needs the shape and constraint that failed; none names a finding a pod files for its person about its own matcher judgments); the matcher judgments a rule list version no longer reaches are one finding of kind cascade:MatcherJudgmentsNoLongerReached, filed by that version's first run over the whole pod (runtime/matcher.feature, M18 and M19) (runtime/naming.feature, N5; runtime/arrivals.feature, A1); a finding's name is derived, so no judgment names it, and an answer names its kind and the kept things its kind says it is about ("Nothing kept cites anything derived"; judgments.md, row "acknowledgement") borrowed from RFC 6920 and Web Annotation; the class is ours, named for what it is for, since a bare "finding" reads as a clinical one
view entry <view># + hash of its least member, prov:wasDerivedFrom each judgment; named in the view that gives it members and rebuilt with it; another view in the same folder cites it by a relative reference, as the variant interpretations view cites a variant's entry <variants.ttl#hex>; carries every member's current state, with a lead per currency.md, each member's values a node <view># + the entry's hash, -, and the hash of the member's IRI; a padded time it copies a node of its holder, the entry's or the member values' IRI, -padded- and the local name, since the holder's IRI has its fragment already; an app's statement about an entry names the records the person was shown, never the entry, never changes after, and finds the entry by record/Which entry shows it (runtime/naming.feature, N13; runtime/the-kit.feature, Check 6) ours
snapshot git tree; git commit parents; Bitcoin Core's MuHash3072 one node per act, in the act's file, a chain as git's commits are: its first parent, the writer's own previous snapshot, kept outside the pod as git keeps HEAD (a browser app beside the pod's name and key), none on a writer's first or when the head it was handed is no snapshot the pod holds; for a sync, every head it holds but the first parent as a merged parent, as git merges, and on a writer's first, every head it holds; the files of the set this act wrote, never a file a step that is no act wrote, and none for a sync; and an order-free hash of the set, every file N9 names in a folder the layout gives but the sync row's files that change in place, the syncs' act files, filed apart, and the act's own file: MuHash3072 exactly as Bitcoin Core computes it, over the path, a 0x00 byte and the SHA-256 of each file's bytes, so a changed byte changes it; the name binds the act's description, as a git commit binds its message outside its tree; two writers hold one set when the set hashes of what each holds agree; never a list of every file (runtime/naming.feature, N14; runtime/sync.feature, S3 and S5) borrowed from git's chain of commits and from Bitcoin Core's UTXO set hash, with its vectors; diverged from git's tree, which with this layout rewrites a leaf folder per act
pod identity Solid WebID; DIDs the subject's random urn:uuid; no name ever includes an address, a WebID or a DID; a judgment that leaves the pod carries it as the author, so a receiver can cite the person and reconcile their shares, and whether the author leaves at all is the share-time choice like every field; keying it hides nothing more, since it is random already, and a per-receiver id is open below (runtime/arrivals.feature, A13) diverges from Solid, which names a pod by its URL
scheme declared per pod at creation: source URL as IRI, opaque hash (default), or keyed hash; what has no URL (C-CDA, entries, judgments) is hashed under all three; a test key for kits ours No rule cites this row.

An organization version's identifier is W3C ORG's org:identifier, a skos:notation, whose literal datatype names the identifier system: "1234567893"^^<http://hl7.org/fhir/sid/us-npi>; an identifier with no system is a plain string. A C-CDA id follows HL7's CDA-to-FHIR identifier mapping (https://hl7.org/fhir/us/ccda/en/mappingGuidance.html, "CDA id → FHIR Identifier"): a root that is a known identifier system becomes its URI, and root and extension give the extension as the value with that URI as datatype, else urn:oid:<root> (urn:uuid:<root> for a UUID root); a root alone gives urn:oid:<root> (or urn:uuid:<root>) as the value with datatype urn:ietf:rfc:3986, and a known system's root alone is no identifier. A FHIR system urn:oid:<root> of a known system is that URI too. The known systems are those of FHIR's identifier registry (https://hl7.org/fhir/R4/identifier-registry.html) that an organization in a source here carries: the NPI, 2.16.840.1.113883.4.6, as http://hl7.org/fhir/sid/us-npi. So one NPI names one organization record in either format. An organization a document names is named by the literal of one identifier its version carries, its datatype IRI and lexical form, so its name and its version state one identifier byte for byte: of the identifiers that are an NPI or a system rooted at an OID or a UUID, the NPI, else the least by code point of datatype IRI, then lexical form, whatever order the document lists them in. A C-CDA record's custodian scope is that id of its custodian, written back as a root and an extension (the NPI's URI as its OID, a root alone as the tail of its IRI, a UUID root in lower case), so one organization's records are scoped alike however a document orders its ids, and a custodian with no id an organization could be named by scopes nothing, its document's records named by the document (#259). A name is foaf:name; an address is cascade:organizationAddress, one string per address. A document names its custodian and its author organization by their records, in cascade:CustodianRole and cascade:AuthorRole (#212).

The rules are the vocabulary's: each a term with rdfs:seeAlso to its standard, a .rq where SPARQL can state it, vectors cross-checked against an independent library, a reference implementation, and a self-check shape (#191). One unversioned namespace holds every term a pod file carries or a name hashes (#193), and it lands before the rules move, so every name is re-minted once: a version hashes its predicates and a matcher judgment its justification IRI, and either change alone would re-mint them all.

Why

Why hash the server away when FHIR says the pair is not durable. (rows "record from a server", "server, organisation") A patient's pod shows views the person shares, and a URL there names every hospital they have used. SPHN already scopes by provider and carries sameness separately; we keep that shape and hash the scope. The cost FHIR warns of is real and was measured (research 1 and 2 on #130): a vendor switch, which re-issues ids on a new base, at roughly 1 to 4.5% of US hospitals a year by KLAS's purchase counts (unverified: the 2024 count was read from a search excerpt; that ids are re-issued is inferred); and the address a client holds changing while the server stays, 2 to 3% of Epic's listed URLs a year, and 41% of them not listed verbatim after Epic's Brands rewrite (verified, counted from the archived lists). Hashing the server's self-asserted base instead lost: it survives a path edit and not a hosting move (verified, probed), MEDITECH never sends it, and eClinicalWorks reports one base for every practice (both verified, probed), so two resources at two practices could fuse under one name, the one failure no judgment could undo. So the client's address is hashed, and what the source says about itself is evidence for one judgment per source, in republishing-sources.md. A record is one thing at one source, so a moved source is a new source, and the join is a judgment because it is one.

Why identifiers are evidence, not names. (rows "record from a document", "version") An accession alone would merge a whole panel; sources disagree on identifier systems; and a name input a source may correct later is a name that changes. So the identifier rides in the version, sorted, and a judgment says when two records share one plus a code. A document's minted ids are the document's for the same reason: two of three open converters mint a new id per run, a summary generator can be set to mask server ids (both verified, in the generators' code), and nothing in a resource says whether a server or a generator assigned its id (research 3).

Why content names a version, not a counter. (rows "version", "source's own version") Many servers, version ids that reset or are opaque, and the same state arriving by several paths (a pull, Apple's copy, a C-CDA). A content hash is the same from any path, which is where idempotency comes from, and is recomputable by anyone with the file and the rule; the hash and the IRI form are RFC 6920's, the selection of triples is ours. The source's version id rides in a nested node because the revision is the pod's commit, not the server's.

Why the revision is a commit with heads. (row "revision") Two arrivals of one state are two events, so the act's id is hashed in; a random name would check nothing, so the revision is self-hashed. Naming the record's heads it saw, as git's parents do, lets two offline writers both import a correction and merge by union; naming every ancestor would grow without bound. Which head is current is currency.md.

Why six kinds of act, and a snapshot per act. (rows "act", "sync", "snapshot") Every file an act writes is credited to it, which is what the audit trail and the snapshot rest on. A connect writes what a server reports, a migration writes a release's retractions, a run writes matcher judgments and assertions; folding them into an import would pretend a connect with no pull, or a migration by a writer that never imports, happened inside one. So each is an act with a random id, a start, an agent and a snapshot, and the snapshot exists because per-file integrity says nothing about the set being whole. The snapshot is a chain, its previous snapshot and this act's additions with an order-free hash of the set, because a list of every file per act grows with the square of the pod: 170 to 490 GB over ten years and 12,300 acts (5,000 and 7,300 pulls; the 70 to 200 GB of 5,000 acts scaled by 2.46) against a pod of 36 to 38 GB, where git's tree with this layout is 2.5 to 5 GB over those acts (the 1 to 2 GB of 5,000 acts scaled by 2.46) and the chain 60 to 115 MB (computed from a stated ten-year pod, #206); the set only grows, so a chain loses nothing, and "in sync" is one comparison of two hashes. A sync is an act because "when did this writer first see that import" is history nothing else records, and the matcher run the union calls for needs a cause to name; it is written only when the writer holds an act, other than a sync, whose snapshot is no ancestor of its last snapshot, because a background transport syncs many times a day and moves nothing in nearly all of them, because what the writer holds survives a transfer that stops partway where a list of what one transfer moved does not, and because an act that counted syncs would fire on its own arrival at the other writer. That test says whether anything an act wrote has reached the writer unmerged, at the cost of a walk of the snapshots it holds, and the files that change in place are outside the set, or every view rebuild would change it. Union needs no merge step of its own: two writers that imported one record wrote one version file by name, and two that ran one rule on one pair wrote one matcher judgment, so the only things a union leaves are two heads of one record, which the ladder in currency.md ranks, and pairs no matcher saw together, which the run the sync triggers takes, bound to the records the sync brought (republishing-sources.md).

Why MuHash3072 over each file's path and bytes, and the act outside the set. (row "snapshot") The set hash is what a writer compares with another's and what the kit checks a pod against, so it is a lasting wire format, and the members a writer hashes are names an import derives from documents anyone can craft. A sum of hashes is broken for such members: Wagner's generalized birthday attack finds chosen members with any target sum modulo 2^256 in about 2^32 work. MuHash3072 multiplies in a 3072-bit prime field, where finding a collision is a discrete logarithm problem of about 128-bit strength; it is incremental, a file added being one multiplication; and Bitcoin Core has computed its UTXO set hash with it since 2021, with unit vectors and a Python reference that this vocabulary's vectors are checked against, so an implementer needs SHA-256, ChaCha20 and a big integer, all at hand in Python and a browser. A member holds the file's bytes' SHA-256 as well as its path, because a path names a file and says nothing of what it holds, and a removed file and a changed one should fail alike. The act's own file holds the snapshot, whose set hash cannot cover itself, so the hash leaves that file out and the snapshot's name binds the act's description in its place, as a git commit binds its message beside its tree; the next snapshot's set holds the file whole. Only an act's files are credited to it: a file a step that is no act wrote, a new pod's, a reference version's, a person's judgment, is in the set but credited to none, since crediting it to the next act would say that act wrote it.

Why a matcher judgment, an assertion per rule list version, and one matcher agent. (rows "matcher judgment", "assertion, retraction by a release", "maker", "document, finding") A matcher judgment is named once, with an assertion per rule list version because the same inputs give the same name, so a later version that agrees could otherwise write nothing, and a run that reaches an asserted judgment writes nothing, so a daily run adds no files. A matcher judgment counts while its maker is trusted, its used versions are current, and it has an assertion under a rule list version whose row for the rule carries the same rec:queryHash as the version the app uses. M11 pins a rule's bytes, so two versions with one hash reach the same matcher judgments, and a new version asserts only the matcher judgments of the rules it changed; an assertion per matcher judgment per version would be 600k to 1.2M files over ten years, more than the rest of the pod (computed, #206). A matcher judgment's members are the record and the least member of each entry it matched, a star, because entries are a transitive closure and come out the same, where every earlier copy as a member makes a fact re-downloaded in each monthly summary a matcher judgment of 1, 2 … g members, which same-pairs.rq expands to about 58M pairs over ten years (computed from an assumed 100 persistent entries per summary, #206). The rule list's version is out of the matcher judgment's name because with it in, every version renamed every matcher judgment, the duplication the split exists to stop; the member and table versions stay in, because a matcher judgment about old content is a different matcher judgment, and a new table version re-mints only the matcher judgments whose joining rows changed in it (M7), since rows are the content: re-minting every table-reading matcher judgment per adopted table version is about 960k matcher judgments in ten years (assumed monthly adoption, #206), and a used table version stays current for a matcher judgment while the current version's joining rows are the same. Which rows join is asked of the matcher judgment's rule, run over its members against the current version (M7), so a matcher judgment names no rows and its recipe stays as ruled. A rule list version that merely tightens a rule retracts nothing: the matcher judgments it no longer reaches have no assertion under it and stop counting by derivation, and its first run files one finding naming them, which the review page lists as one line, answered pair by pair over records: a Same or a Different over a pair's records, which an app may file for every pair at once, or an acknowledgement of the kind naming exactly them; a person's Same already filed on a pair is untouched. A release retracts only what it declares wrong, so a known-bad join is never offered back. The Cascade matcher is one unversioned agent because the matcher feature promises every runtime that follows it reaches the same matcher judgments, so which runtime ran is forensics, and it sits on the run's act with every other act's performer: a bug in a rule list version is found by the assertions under it, a bug in a runtime by the acts it performed, a bug in an app by its own agent and version, and bad data from any of them is hidden by a person's Erroneous over the act.

Why the rest. (rows "derived name", "rule", "record from C-CDA", "record from an entry", "person's judgment", "document, finding", "view entry", "retraction", "scheme", "pod identity") Escaping closes a verified collision, ("a|b") and ("a","b") named one thing; a list carries its count so two lists back to back are unambiguous; the rule IRI makes two rules of equal arity never collide and lets a v8 name say which rule made it (ni: names take none, being content). Base URLs are normalised because :443 and none are one server, and userinfo is refused because a credential must never be a name input. The host is an ASCII reg-name, or a bracketed IPv6 address or IPvFuture with no zone id, and the port is empty (no port) or ASCII digits read as an integer, leading zeros dropped, above 65535 refused, then the scheme's default dropped, so :0443 and none are one server too and a URL two parsers read apart names nothing. A contained resource is scoped by its container's source version because a renumbered one would otherwise become a revision of another record. An entry hashes a session the app minted because the subject and a timestamp collide across writers in one instant. Custodian and patient in a C-CDA name stop two patients' id-less statements from one clinic fusing. A C-CDA entry is named by its CDA id across documents where a FHIR document's entry is not, because the two promises differ and the measurements differ (research 4 on #130): FHIR says a document's ids are unique within that bundle only, and converters mint them at random per run; CDA's networks say "organizations SHALL send the same ID for clinical data which has not changed", HL7's companion guide makes it a SHOULD, and in the only public pairs from one system every observation, medication and procedure kept its id (verified, counted: Greenway, 77 of 91 statements; Allscripts, 26 of 26; Synthea a month on, 97%), as did every record with a source id in two downloads seven weeks apart from one EHR (verified, cascade-cli #121). What failed was the wrappers, a concern act or a vitals organizer re-minted per export, which the matcher joins like any duplicate, and an id reused for two different entries (verified, counted: 2 in Synthea; 22 of 344 within one document in #121), which would fuse two facts under one name that no judgment could split; so the collision inside a document falls back to the document's name with a finding, and the rare reuse across documents is accepted over the per-document alternative's cost, thousands of records and a matcher judgment file per join on every re-download of a stable sender. A person's judgment keeps its IRI because whoever made it minted it once, so another pod can cite it. A document and a finding are named by content so the same one from two writers is one file, and Web Annotation wants exactly one IRI per annotation. A view entry is a fragment of its view because the view is rebuilt from the set, so its entries are too, and nothing outside the view may cite one; what an app names instead is the paragraph after this one. A retraction is an activity because PROV already says how an entity is invalidated. A fragment on a hashed parent (#source-version, #identifier-n, #padded-onsetDate, #absent-onsetDate) is a stated convention because the node is inside the parent's hashed content; RFC 6920's grammar has no fragment, and we say so. The opaque default hides a hospital from a casual reader of a shared view; the scheme declaration says in plain words that only a key hides it from a determined one. The address stays out of every name because a hostname in a name is a commitment nobody can undo. The vocabulary owns the rules because a pod reader has only the vocabulary; vectors are cross-checked because an implementation that minted its own vectors proves nothing.

Why nothing kept cites anything derived. (rows "person's judgment", "retraction", "view entry") A derived name changes whenever a field is renamed, a converter reads more, the matcher is retuned or a pod is rebuilt in another order, which happens every few weeks; a kept thing that cited one would be stranded by the next release, with nothing in the pod to carry it over, since the kept side is what nothing else can make again. A person's judgment so names the document each member was shown from, which is named by its bytes and never changes, where a version's name hashes our field names. A person states Same or Different over records rather than replacing or retracting the matcher's judgment, whose name hashes the versions it used and is re-minted when they change; the Same or the Different says the same thing of names that hold, and a person outranks every machine (judgments.md). A record's name is a recipe, and has been re-minted once, so the recipe's change carries its table of old names to new.

Why an answer to a warning names its kind and what it is about. (row "document, finding") A finding is named by its triples, and its targets by theirs: a field rename re-mints the versions a matcher judgment and a revision hash, and with them the finding, so an acknowledgement naming the finding put the warning back on the review page after a release, and a Same over it stopped joining its pairs. The kind and the kept things hold still. A rollback or a clock finding is answered by one acknowledgement over everything the line is about: a 30-day restore can name hundreds of records, and a judgment per record would file as many, so an acknowledgement answers each record it names with the documents of its states, and a clock finding each act it names. Two things stay one warning each, since a warning about a thing is the same warning whichever others the person answered beside it. A finding of matcher judgments no longer reached is about a pair of records, and so is a finding of two results that disagree: an acknowledgement answers a pair only when its members are exactly that pair's two records. One that names the records of two pairs answers neither, since a later warning about one record from each of them, which the person never saw, would otherwise count as seen (a matcher retuned twice drops the pairs one and two, then one and three). The cost is a judgment per pair, which a Same or a Different already costs and which an app files for every pair of a line at once. Two people's partial acknowledgements of one rollback do not add up: each names some of the documents a record's finding contradicts, and neither saw the whole. A rollback is about the documents of the states it contradicts as well as its record, so a source that goes forward and back again, contradicting a later report, is listed again. Two results that disagree are about their two records alone, so a new value from either, which is a new finding of the same two, stays answered: naming the document of each compared value would leave an entered result, which has none, never answerable. The Same over a finding is gone, not kept with a derivation, as proposal 2.1 rules: it joined every pair the finding named, pairs the person had not looked at, with a person's weight over every machine, where a Same or a Different per pair says the same of names that hold. Looked at: keeping the finding's name and carrying answers across releases by a table of old finding names to new, as records do, which serves a recipe change but not a retuned matcher or a rebuild in another order, where no table exists; and requiring every acknowledgement's members to equal its warning's, which needs a judgment per record of a restore.

Why an app's statement names records, never its entry. (row "view entry") What an app keeps about an entry, an answer, a note, a link or a cached list, names the records the person was shown in it, by their IRIs, and never the entry's, and it never changes after. An entry is named from its least member, so a source that joins with a record that sorts lower renames it; an id minted once to avoid that is state no original holds, so a rebuild from the originals, in another order or by another runtime, could not give it back. A record's IRI comes from its source's own id (rows "record from a server", "record from C-CDA", "record from a document"), so it holds still when another source joins, provided the pod keeps its naming scheme (vocabulary issue #192) and is rebuilt from the same originals. The app finds the entry again with the named question record/Which entry shows it, which reads cascade:entryMember, again after every import or rebuild; it never reads cascade:inEntry, which is derived state. Where a statement reaches is worked out when it is read, through the entry its records are in, and a read never adds the entry's current records to it: that would rewrite what the person said, spread it across a wrong join, and leave two devices that read at different times holding two different statements. The one moment a statement can be stranded, a statement whose every record's original is removed while records that joined since still hold the thing, is handled once, at removal: the runtime carries the statement to the records the entry then holds, in a statement signed as the runtime and listed for review. No runtime removes an original yet; the carrying is built with removal, in the runtime's kept-and-built work (https://github.com/the-cascade-protocol/cascade-runtime-js/issues/819). A record is in at most one entry, so it is in one of three states: in an entry, where the question returns a row; in no entry for a reason, where record/Why it is in no view returns a row and the app shows the reason; or in neither, which means the pod no longer holds it. A statement none of whose records is held is kept, not dropped, and shown apart with what the app saved of it, since the person said it and the original may return; the person can say it again of a current entry. Two entries, in two builds, that share a record are one thing, so a cache keyed by records tells "the same medicine, renamed" from "one stopped and another started". When a person judges two of an entry's records Different the entry splits, and a statement that named records on both sides finds two entries; the app shows it with each. A version is not named: its IRI hashes its predicates (row "version"), so renaming a term re-mints it; an app that needs what a record said saves it. No question for "statements whose records are gone" is added, since the statements are the app's and the two questions' empty answers are those rows. Vocabulary issue #393, on where a statement lives, is open; its research recommends naming records. TestGivenAnImmunizationASecondSourceJoins in tests/test_query_fixtures.py shows the join and the removal.

Alternatives that lost

Still open

What would change our mind

A pod that takes writes in one place, or syncs through a hub asked at write time, would make random record ids looked up in the pod the simpler choice, and FHIR's. A generator that guaranteed deterministic ids across documents would make trusting them right for that generator. A C-CDA sender measured re-minting its inner statements' ids per export, or reusing ids across documents at any real rate, would move C-CDA to per-document names. Vendor switches rising well above the measured rate, or ids turning out not to survive a same-server URL change, would make business identifiers a name input after all. Servers giving every record a long random id would make the keyed scheme unnecessary; cross-pod reconciliation needing shared names would rule it out. A signed or hashed-graph standard adopted across tools would replace the version and revision forms.