Drop #1741783
420
PART 4 of 7 — the Museum page (6529seize-frontend, Museum folders) Read only; the page code was not run. The UI strings (i18n/) and some shared files are outside these folders; the English strings quoted below come from a saved copy of the page's strings. Paths in this part are in the frontend repository unless another repository is named. 4.1 The docs say the browser checks each record before showing it. In the code the server does that; the browser checks images, and re-checks records only when Verify is pressed. Three sentences say the browser checks each record "before showing it" (contract README.md:46-48, contract docs/deployments.md:11-12, toolkit REVIEWING.md:53-54). Contract REVIEWING.md:31 says the catalog is "read in a browser that checks each record against the chain". The Museum's public essay says the same (Museum repo, records/essays/public/the-collection-in-museum-standards.md:216-217). The page is rendered on the server from a snapshot kept per server process (app/museum/network/page.tsx:67-70; lib/museum/onchain/runtime.server.ts:12, :76-86: ten minutes, then the last good snapshot is served again while each refresh runs; if refreshes keep failing, the page alternates between that old snapshot and a 30-second "unavailable", and the snapshot has no maximum age). The server builds its pages from verified records only. The only browser code that reads the registry and verifies records is the Verify button (app/museum/network/_home/HomeVerify.tsx:109-112, verifyInBrowser.ts). It returns the two counts, the block number and the time (verifyInBrowser.ts:138-143), and compares nothing with what the page shows. The page's own text is accurate ("Verify reads the registry and checks each record's contents against the digest stored on chain. The check runs in this browser.", and it shows the block it was drawn from). The over-statement is in the docs named above. 4.2 The page computes whether the registry is the expected one, and nothing reads the result. lib/museum/onchain/registry.ts:540-551 computes codeHashMatches, ownerMatches, the ERC-165 answers, frozen and successor; lib/museum/onchain/museum.ts:148-170 computes whether every release is sealed and the counts add up. Of these checks, only a wrong chain id stops the read (registry.ts:528-530). In the Museum folders no code reads these values: not the server loader (runtime.server.ts:28-59), not Verify. Only the opt-in live test asserts the code hash, owner, interface and release checks (tests/lib/museum/onchain/live.test.ts:60, :129-134); nothing asserts frozen or successor. So the page and "Verified N of N" would look the same if the address held other code that answers the same calls, had another owner, or had an open release. For mainnet the code-hash and owner pins are the guard against a wrong address in the settings, and nothing enforces them. A frozen registry that names a successor is not noticed either. 4.3 Sepolia is fixed in several files besides the settings file. lib/museum/onchain/constants.ts holds the address, chain id, RPC, owner and build. But also: lib/museum/onchain/registry.ts:8, :176 (chain: sepolia); lib/museum/catalogue/standards.ts:32, :313 (its own SEPOLIACHAINID = 11155111, written into the standards exports as eip155:11155111:ADDRESS; recordFields.ts:16, :171 keeps the same constant); components/museum/catalogue/explorer.ts:4-22 and app/museum/network/_home/homeFormat.tsx:33 (sepolia.etherscan.io links, used in RecordProof.tsx, MuseumFooter.tsx, HomeProvenance.tsx and about/page.tsx); and several UI strings ("Sepolia test network"). A mainnet switch that edits only constants.ts would leave the standards exports naming chain 11155111 and explorer links pointing at Sepolia, with no error. 4.4 The page reads profile V1.1 and V1.2 only (lib/museum/onchain/profile.ts:13-16). The registry already lists the nine V1.3 schemas, and the contract's docs/deployments.md:408-416 says no release uses them yet. A V1.3 record would be shown as not conforming and not counted by Verify until the page learns V1.3. 4.5 Smaller A partial result (for example "Verified 3,470 of 3,476") is styled like a full pass, and the failed records and reasons are not listed (HomeVerify.tsx:129-130, :181-183). A live version published with an Arweave ID and no CID is labelled "deleted" (lib/museum/onchain/museum.ts:237-239); the contract allows an empty CID when an Arweave ID is given (ProvenanceRegistry.sol:1019-1021). A CID that is not a raw SHA-256 CIDv1 is not tied to the bytes, and the record still counts as verified (lib/museum/onchain/verify.ts:142-154). The toolkit also checks dag-pb, Keccak-256 and identity CIDs, and says "cid-unchecked" or "cid-mismatch" when it cannot tie the CID to the bytes (toolkit src/verify.ts:258-269). The digest still binds the content. Verify covers the current version of each subject (3,476), not the 938 earlier versions; contract docs/deployments.md:15-16 says so correctly. 4.6 The record page shows "Version N of N" from the version count alone, which is wrong once the newest version is deleted. components/museum/catalogue/RecordProof.tsx:97-108 builds the row from versionCount only (its comment: "the current version is always the last") and :213 uses it. The page reads current, which is the highest version not deleted (lib/museum/onchain/registry.ts:468-470), so after version 2 of 2 is deleted the page shows version 1's content, digest and CID under "Version 2 of 2". The true number is in the version the page already holds. 4.7 A withdrawn relation, rights record, observation or event still drives the pages. (latent: no withdrawn record was found in the Museum repo's records) The profile says withdrawn "keeps the record readable and says the institution no longer stands by it" (toolkit profile/docs/core.md:70), and the toolkit's descriptive and rights mappings leave withdrawn versions out (toolkit src/recordCatalog.ts:136-140, :153-154; a preservation export keeps their identity and fixity). The page leaves withdrawn entities, decisions and texts out of its lists (lib/museum/catalogue/context.ts:110), but lib/museum/onchain/presentation.ts:209-216 builds an edge for every relation with no status test, so a withdrawn createdby, memberof or documents relation still gives the artist line, the collection status and the media. The same holds for rights (lib/museum/onchain/works.ts:186-205), observations (lib/museum/catalogue/decisions.ts:219-221) and events (lib/museum/catalogue/events.ts:190-196, :295-303). 4.8 What is hash-checked in the browser, and what is not Checked before display: still images and video posters (components/museum/catalogue/verifiedImage.ts:57-90), against the release's file index, full SHA-256 and size. Not checked: video (PlayableVideo.tsx:79-92), HTML works, live generators and their thumbnails (LiveWork.tsx:58-70, LiveThumbnail.tsx:93-103), retained HTML unless its address is a raw CID with no path, and even then only its entry document (RetainedHtmlWork.tsx:68-79, which says so in a comment), and the social-card image (app/museum/network/works/_lib/workFacts.ts:29-32, :398). The docs say "each image", which is true; no page says that moving-image and HTML works are shown unchecked. The images come from the latest release that names a file index, sealed or not: lib/museum/onchain/media.ts:110-119 (and :322-324 for source-file links) test only that rootCid is set, while the comment at :310-315 says "every sealed release's". A release that is still open is used like a sealed one, and its records show a "Release N" row with no mark that N is open. 4.9 A work whose local ID is constructor, toString or proto would break the catalogue build. (publisher only) lib/museum/onchain/media.ts:348 keeps images in a plain object, and lib/museum/onchain/works.ts:280-283 looks up images[localId]. Such an ID passes the profile schema, the lookup returns an inherited member, and lib/museum/catalogue/recordViews.ts:51 then throws while the catalogue is built. lib/museum/catalogue/sourceFiles.ts:131 already uses Object.hasOwn for the same kind of lookup, and the toolkit fixed the same class of lookup earlier (toolkit docs/review-dispositions.md:117). 4.10 Smaller points from a file-by-file read of the remaining Museum pages No unsafe link or script sink was found: record links must use the https scheme (or the ipfs scheme with a validated CID), structured data escapes "
