OpenSheaf Explorer

The tests across archives

Resolution (chapter 15) and branches (chapter 09) are tested on the three fixture archives, which refer to each other: other/ keeps a catalogue of lines of the three, an accepted copy of a version of archive/, and a mirror of another; and on the broken copies. The tests check the statuses of versions on the lines whose signatures the reference implementation made contested or vouched for; sheaf: URIs resolved to the latest signed version, a document version, a pin, a key log, from a short form, and across the two layouts; the statuses of pins of section 8.5, each of the seven met; copies that agree, and a fork of a line; and the verdicts of branch points, confirmed, unchecked and inconsistent.

import { test } from 'node:test';
import assert from 'node:assert/strict';
import { Http, LIMITS, sha512 } from '../app/http.js';
import { Archive } from '../app/archive.js';
import { Resolver, Copy, localKind } from '../app/resolve.js';
import { verdict, levelOfVersion, level, CONFIRMED, UNCHECKED, INCONSISTENT } from '../app/branches.js';
import { historyOf } from '../app/versions.js';
import { diskFetch, ORIGIN, ALPHA, BETA, GAMMA, READING, idOf, DISCOVERY } from './disk.mjs';

const open = (path, options = {}) => Archive.open(new Http({ fetch: diskFetch(options) }), ORIGIN + path);
const at = (archive) => `${ORIGIN}${archive}/`;
const parts = (id) => id.split(':').slice(1);
const pinOf = (archive, label) => DISCOVERY[archive].objects.find((o) => o.label === label);

⟨tests of statuses on the fixtures⟩

⟨tests of resolution⟩

⟨tests of the statuses of pins⟩

⟨tests of branch points⟩

Statuses on the fixtures

The statuses of section 7.3 as the fixtures hold them: every version of archive/'s lines is signed; in other/, exposed was signed only with the key exposed afterwards, and is contested, as are both versions of the owner catalogue, which pins it; the first version of vouched lost its signature file and is vouched for by the second, signed with the new key; in forked/, before is signed against the first version of the key log, and after against the second, from the fork point on, and is contested. A contested version is never the latest signed version.

test('the statuses of the versions of the fixtures (section 7.3)', async () => {
  const archive = await open('archive/');
  for (const id of [ALPHA, BETA, GAMMA, READING]) {
    const line = await archive.line(id);
    assert.ok(line.statuses.every((s) => s === 'signed'), id);
    assert.equal(line.latest, line.inv.head);
  }
  const other = await open('other/');
  assert.deepEqual((await other.line(idOf('exposed', 'other'))).statuses, ['contested']);
  assert.deepEqual((await other.line(idOf('main', 'other'))).statuses, ['contested', 'contested']);
  const vouched = await other.line(idOf('vouched', 'other'));
  assert.deepEqual(vouched.statuses, ['vouched for', 'signed']);
  assert.equal(vouched.latest, 'v2');
  assert.equal((await other.line(idOf('exposed', 'other'))).latest, null);
  const forked = await open('forked/');
  assert.deepEqual((await forked.line(idOf('before', 'forked'))).statuses, ['signed']);
  assert.deepEqual((await forked.line(idOf('after', 'forked'))).statuses, ['contested']);
});

A line whose key log is not in the archive cannot have its signature files named: its versions are unchecked; one whose signature files are gone is not a version, unsigned; one whose signature does not verify, invalid. The previous chain is checked by the verification (its tests).

test('lines of the broken copies', async () => {
  const noLog = await open('broken/no-key-log/');
  const line = await noLog.line(ALPHA);
  assert.ok(line.unnamed && line.statuses.every((s) => s === 'unchecked') && line.latest === null);
  assert.deepEqual((await (await open('broken/unsigned/')).line(BETA)).statuses, ['signed', 'unsigned']);
  const bad = await (await open('broken/bad-signature/')).line(ALPHA);
  assert.deepEqual(bad.statuses, ['signed', 'signed', 'signed', 'invalid']);
  assert.equal(bad.latest, 'v3');
  assert.match(bad.judgements[3][0].reason, /does not verify/);
});

Resolution

The line alpha resolved from other/, with the at of its URI: the latest signed version, v4, found in archive/; document version 2, which the history of v4 gives as v3 (a notice was added to it); a pin of v3 with its digest; a pin with a wrong digest, a mismatch; a short form; the key log of the owner. The same from a resolver with no home and a wrong at: unavailable. And vouched, in the hashed layout of other/, from a resolver whose home is archive/.

test('sheaf: URIs resolved across archives (section 12.3)', async () => {
  const home = await open('other/');
  const r = new Resolver(home.http, home);
  const [name, owner] = parts(ALPHA);
  const hint = `?at=${encodeURIComponent(at('archive'))}`;
  let { id, found } = await r.resolve(`sheaf:${name}${hint}`);
  assert.equal(id, ALPHA);
  assert.deepEqual([found.status, found.version, found.copy.where], ['verified', 'v4', at('archive')]);
  const objOf = (v) => found.copy.line.objs.get(v);
  const v2 = historyOf(found.copy.line.inv, objOf, 'v4').find((h) => objOf(h).documentVersion === 2);
  assert.equal(v2, 'v3');
  ({ found } = await r.resolve(`sheaf:${name}/v2${hint}`));
  assert.deepEqual([found.status, found.version], ['verified', 'v3']);
  const digest = found.digest;
  ({ found } = await r.resolve(`sheaf:${name}/v2?sha512=${digest}&at=${encodeURIComponent(at('archive'))}`));
  assert.deepEqual([found.status, found.version], ['verified', 'v3']);
  ({ found } = await r.resolve(`sheaf:${name}/v2?sha512=${'0'.repeat(128)}&at=${encodeURIComponent(at('archive'))}`));
  assert.equal(found.status, 'mismatch');
  ({ found } = await r.resolve(`sheaf:${name.slice(0, 10)}:${owner.slice(0, 10)}/v3${hint}`, [], {}));
  assert.equal(found.version, 'v4');
  ({ id, found } = await r.resolve(`sheaf:${owner}${hint}`));
  assert.deepEqual([id, found.status, found.version], [`sheaf:${owner}:${owner}`, 'verified', 'v1']);
  const nowhere = new Resolver(new Http({ fetch: diskFetch() }));
  assert.equal((await nowhere.resolve(`sheaf:${name}:${owner}?at=${encodeURIComponent(at('nowhere'))}`)).found.status, 'unavailable');
  assert.ok(nowhere.notes.some((n) => n.message.startsWith(`unavailable: ${at('nowhere')}`)));
  const fromArchive = new Resolver(home.http, await open('archive/'));
  const [vn, vo] = parts(idOf('vouched', 'other'));
  ({ found } = await fromArchive.resolve(`sheaf:${vn}:${vo}?at=${encodeURIComponent(at('other'))}`));
  assert.deepEqual([found.status, found.version, found.copy.where], ['verified', 'v2', at('other')]);
  await assert.rejects(r.resolve(`sheaf:${name}:*`), /searched for/);
});

A short form that matches several lines is ambiguous, and the resolver lists them rather than choosing (section 12.2): the lines of archive/ whose names start with the same letter, if any, or else all its lines, named by their owner part alone.

test('an ambiguous short form is not chosen', async () => {
  const r = new Resolver(new Http({ fetch: diskFetch() }), await open('archive/'));
  const owner = parts(ALPHA)[1];
  const names = DISCOVERY.archive.objects.filter((o) => o.kind !== 'owner').map((o) => o.name);
  const prefix = names.map((n) => n.slice(0, 8)).find((p, k, all) => all.indexOf(p) !== k);
  if (prefix) {
    await assert.rejects(r.resolve(`sheaf:${prefix}:${owner.slice(0, 8)}`), /ambiguous/);
  }
  await assert.rejects(r.resolve(`sheaf:aaaaaaaa:${owner.slice(0, 8)}`), /no line of that name/);
});

Copies agree when they hold the same inventory at the earlier of their latest signed versions (section 7.4), which fixes every version before it; two signed copies that do not are a fork of the line, which the resolver reports, choosing neither. The copies are made from the line of alpha as read, one stopping earlier, one with the digest of its last version changed.

test('copies that agree, and a fork of a line (section 7.4)', async () => {
  const archive = await open('archive/');
  const line = await archive.line(ALPHA);
  const shorter = { ...line, versions: line.versions.slice(0, 2), statuses: line.statuses.slice(0, 2), latest: 'v2' };
  const forked = { ...line, versions: line.versions.map((v, k) => (k === 3 ? { ...v, digest: 'x' } : v)) };
  const a = new Copy('a', archive, line), b = new Copy('b', archive, shorter), c = new Copy('c', archive, forked);
  assert.ok(a.agrees(b) && b.agrees(a));
  assert.ok(!a.agrees(c));
  const r = new Resolver(archive.http, archive);
  r.copies = async () => [a, c];
  const found = await r.latest(...parts(ALPHA));
  assert.equal(found.status, 'fork');
  assert.ok(r.notes.some((n) => n.message.startsWith(`a fork of the line ${ALPHA}`)));
});

The statuses of pins

Each status of section 8.5, from other/'s resolver: the pin of alpha that shelf holds, verified in archive/; the pin of exposed that other/'s owner catalogue holds, contested; a pin with another digest, a mismatch; the line delta, taken down in archive/, removed; a version of beta without its signature files (in a broken copy), not a version, for a resolver that knows no other copy, and verified for other/'s, whose mirror of beta holds it signed (any copy whose bytes match the pin will do, section 8.5); a version whose key log is missing (in another broken copy), unchecked; and a line nowhere, unavailable.

test('the statuses of pins (section 8.5)', async () => {
  const home = await open('other/');
  const r = new Resolver(home.http, home);
  const alpha = pinOf('archive', 'alpha');
  assert.equal((await r.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, [at('archive')])).status, 'verified');
  const exposed = pinOf('other', 'exposed');
  assert.equal((await r.pin(exposed.name, exposed.owner, 'v1', exposed.inventorySha512, [])).status, 'contested');
  assert.equal((await r.pin(alpha.name, alpha.owner, 'v1', '0'.repeat(128), [at('archive')])).status, 'mismatch');
  const delta = DISCOVERY.archive.tombstones[0];
  assert.equal((await r.pin(delta.name, delta.owner, delta.lastVersion, delta.inventorySha512, [at('archive')])).status, 'removed');
  const beta = pinOf('archive', 'beta');
  const fresh = () => new Resolver(new Http({ fetch: diskFetch() }));
  assert.equal((await fresh().pin(beta.name, beta.owner, 'v2', beta.inventorySha512, [at('broken/unsigned')])).status, 'not a version');
  assert.equal((await fresh().pin(beta.name, beta.owner, 'v2', beta.inventorySha512, [at('broken/no-key-log')])).status, 'unchecked');
  assert.equal((await r.pin(beta.name, beta.owner, 'v2', beta.inventorySha512, [at('broken/unsigned')])).status, 'verified');
  assert.equal((await fresh().pin(beta.name, beta.owner, 'v2', beta.inventorySha512, [at('nowhere')])).status, 'unavailable');
});

A pin of a key-log version resolves only to a version of the key log (chapter 07), as opensheaf-py's test_a_pin_to_a_key_log_version_that_is_not_one: a copy of other/ made on the fly, nowitness/, serves the second version of its owner's key log without its signature files. That version is still held with the number and digest pinned, but it is no longer a version of the key log: the pin is not a version, never verified.

test('a pin to a key-log version that is not one', async () => {
  const owner = DISCOVERY.other.owners[0].owner;
  const inner = diskFetch();
  const fetch = async (url, init = {}) => {
    if (!url.startsWith(`${ORIGIN}nowitness/`)) return inner(url, init);
    const real = url.replace('nowitness/', 'other/');
    if (decodeURIComponent(real).includes(`sheaf%3a${owner}%3a`) && real.includes('/extensions/opensheaf-witnesses/v2/')) {
      return new Response('not found', { status: 404 });
    }
    return inner(real, init);
  };
  const other = await open('other/');
  const digest = await sha512(await other.inventoryBytes(`sheaf:${owner}:${owner}`, 'v2'));
  const fresh = () => new Resolver(new Http({ fetch }));
  assert.equal((await fresh().pin(owner, owner, 'v2', digest, [at('other')])).status, 'verified');
  const r = fresh();
  assert.equal((await r.pin(owner, owner, 'v2', digest, [at('nowitness')])).status, 'not a version');
  const log = await r.keyLog(owner, [at('nowitness')]);
  assert.ok(log.lookup(2, digest) !== null && log.verified(2, digest) === null);
  assert.equal((await fresh().pin(owner, owner, 'v2', '0'.repeat(128), [at('other')])).status, 'mismatch');
});

Locations on local or private hosts, named by archive data, are not fetched from an archive on a public host (nor by a resolver with no home), and the note says why; from an archive on a local host (here a fixture whose address is changed) they are.

test('local and private hosts are fetched only from an archive on one', async () => {
  const local = ['localhost', 'a.localhost', 'printer.local', 'printer.local.', '127.0.0.1', '10.1.2.3', '172.16.0.1',
                 '172.31.255.255', '192.168.1.5', '169.254.169.254', '0.0.0.0', '[::1]', '[::]', '[fd12:3456::1]',
                 '[fc00::]', '[fe80::1]', '[::ffff:7f00:1]', '[::ffff:c0a8:105]'];
  const others = ['example.org', 'local.example.org', '172.32.0.1', '11.0.0.1', '192.169.0.1', '[2001:db8::1]', '[fe00::1]',
                  '[::2]', '[::ffff:808:808]'];
  for (const h of local) assert.ok(localKind(h), h);
  for (const h of others) assert.equal(localKind(h), null, h);
  assert.equal(localKind(new URL('https://2130706433/').hostname), 'a loopback address');
  assert.equal(localKind(new URL('https://[::ffff:127.0.0.1]/').hostname), 'a loopback address');
  const alpha = pinOf('archive', 'alpha');
  const where = ['https://192.168.1.5/papers/', 'https://printer.local/', 'https://[::1]:8443/'];
  for (const home of [await open('archive/'), null]) {
    const log = [];
    const r = new Resolver(new Http({ fetch: diskFetch({ log }) }), home);
    if (home) home.http = r.http;
    const before = log.length;
    assert.equal((await r.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, where)).status, home ? 'verified' : 'unavailable');
    assert.deepEqual(log.slice(before).filter((u) => !u.startsWith(ORIGIN)), []);
    assert.ok(r.notes.some((n) => n.message === 'unavailable: https://192.168.1.5/papers/: not fetched: 192.168.1.5 is a private ' +
      'address, which the explorer fetches only for an archive that is itself on a local or private host'), JSON.stringify(r.notes));
    assert.ok(r.notes.some((n) => n.message.startsWith('unavailable: https://printer.local/: not fetched: printer.local is a name of the local network')));
    assert.ok(r.notes.some((n) => n.message.startsWith('unavailable: https://[::1]:8443/: not fetched: [::1] is a loopback address')));
  }
  const log = [];
  const onLocalhost = Object.assign(await open('broken/old/'), { base: 'http://localhost:8000/papers/' });
  const r = new Resolver(new Http({ fetch: diskFetch({ log }) }), onLocalhost);
  assert.equal((await r.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, where.slice(0, 1))).status, 'unavailable');
  assert.ok(log.includes('https://192.168.1.5/papers/opensheaf.json'), log.join(' '));
  assert.ok(!r.notes.some((n) => /not fetched/.test(n.message)));
});

A pin resolved again by the same resolver is answered from what it has read; a resolver made afresh (again) reads the servers again, and finds an archive gone. A member listing many locations has only the first LIMITS.mirrors tried, and the resolver notes the others.

test('a pin resolved again is read from the server again; locations are bounded', async () => {
  const down = [];
  const r = new Resolver(new Http({ fetch: diskFetch({ down }) }));
  const alpha = pinOf('archive', 'alpha');
  const pin = (resolver, where = [at('archive')]) => resolver.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, where);
  assert.equal((await pin(r)).status, 'verified');
  down.push(at('archive'));
  assert.equal((await pin(r)).status, 'verified');
  assert.equal((await pin(r.again())).status, 'unavailable');
  const log = [];
  const many = new Resolver(new Http({ fetch: diskFetch({ log }) }));
  const where = Array.from({ length: 20 }, (_, k) => `https://mirror${k}.example.org/`);
  assert.equal((await pin(many, where)).status, 'unavailable');
  assert.equal(log.length, LIMITS.mirrors);
  assert.ok(many.notes.some((n) => n.message.startsWith(`15 more location(s) not tried`)));
});

A key log is met in every archive the resolver reads: the owner of forked/ is read in forked/, where its key log has a fork record, and the resolver reports its end; a line of it signed against the second version of the key log is contested wherever it is found.

test('an owner ended by a fork, met by a resolver (sections 6.3 and 12.3)', async () => {
  const r = new Resolver(new Http({ fetch: diskFetch() }));
  const after = pinOf('forked', 'after'), before = pinOf('forked', 'before');
  assert.equal((await r.pin(after.name, after.owner, 'v1', after.inventorySha512, [at('forked')])).status, 'contested');
  assert.equal((await r.pin(before.name, before.owner, 'v1', before.inventorySha512, [at('forked')])).status, 'verified');
  assert.deepEqual(r.ownerNotes(after.owner), [`owner ${after.owner} ended by a fork of its key log at v2`]);
});

A pin is decided by the bytes of the inventory (section 12.3). Two copies of archive/ are made on the fly: nocheck/ serves no checksum files, and still matches, with a warning naming it; tampered/ serves the head inventory of alpha changed, which does not match, and is reported with its location, while the copy of archive/ decides the status; alone, it is a mismatch.

test('copies that disagree with a pin (section 12.3)', async () => {
  const alpha = pinOf('archive', 'alpha');
  const inner = diskFetch();
  const fetch = async (url, init = {}) => {
    if (url.startsWith(`${ORIGIN}nocheck/`)) {
      if (url.endsWith('inventory.json.sha512')) return new Response('not found', { status: 404 });
      return inner(url.replace('nocheck/', 'archive/'), init);
    }
    if (url.startsWith(`${ORIGIN}tampered/`)) {
      const real = url.replace('tampered/', 'archive/');
      const res = await inner(real, init);
      if (res.ok && init.method !== 'HEAD' && real.endsWith(`/${alpha.head}/inventory.json`)) {
        const bytes = new Uint8Array([...new Uint8Array(await res.arrayBuffer()), 32]);
        return new Response(bytes, { status: 200, headers: { 'content-length': String(bytes.length) } });
      }
      return res;
    }
    return inner(url, init);
  };
  const fresh = () => new Resolver(new Http({ fetch }));
  const messages = (r) => r.notes.map((n) => n.message);
  let r = fresh();
  assert.equal((await r.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, [at('nocheck')])).status, 'verified');
  assert.ok(messages(r).some((m) => m.startsWith(at('nocheck')) && m.includes('the checksum file of its inventory is missing')));
  r = fresh();
  assert.equal((await r.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, [at('tampered'), at('archive')])).status, 'verified');
  assert.ok(messages(r).includes(`${at('tampered')}: ${ALPHA} ${alpha.head} does not match the pin (section 12.3)`));
  r = fresh();
  assert.equal((await r.pin(alpha.name, alpha.owner, alpha.head, alpha.inventorySha512, [at('tampered')])).status, 'mismatch');
});

What a mirror serves is believed only as far as the signed inventories bind it (section 12.3), as opensheaf-js and opensheaf-py check every file they read. Two copies of archive/ are made on the fly: rootinv/ serves a root inventory of its own for alpha, which maps datacite.json of every version to other bytes, which it also serves; it is not read, since a line is read through the copy of the inventory in the folder of the head version, and the title is the genuine one. swapped/ serves other bytes at the content paths of datacite.json, which are refused, since they do not have the digest the inventory states.

test('a mirror serving a root inventory or content of its own (section 12.3)', async () => {
  const alpha = pinOf('archive', 'alpha');
  const dir = `${ORIGIN}archive/ocfl/${alpha.owner}/${alpha.name}/`;
  const inner = diskFetch();
  const read = async (path) => new Uint8Array(await (await inner(dir + path)).arrayBuffer());
  const parse = (bytes) => JSON.parse(new TextDecoder().decode(bytes));
  const genuine = parse(await read('inventory.json')), root = parse(await read('inventory.json'));
  const paths = Object.values(genuine.versions).flatMap((v) =>
    Object.entries(v.state).filter(([, ps]) => ps.includes('datacite.json')).flatMap(([d]) => genuine.manifest[d]));
  const forged = new TextEncoder().encode(JSON.stringify({ ...parse(await read(paths[0])), titles: [{ title: 'A forged title' }] }));
  const d = await sha512(forged);
  for (const v of Object.values(root.versions)) {
    for (const [k, ps] of Object.entries(v.state)) {
      if (!ps.includes('datacite.json')) continue;
      v.state[k] = ps.filter((p) => p !== 'datacite.json');
      if (!v.state[k].length) delete v.state[k];
      v.state[d] = ['datacite.json'];
    }
  }
  root.manifest[d] = ['v1/content/forged.json'];
  const served = {
    rootinv: { 'inventory.json': new TextEncoder().encode(JSON.stringify(root)), 'v1/content/forged.json': forged },
    swapped: Object.fromEntries(paths.map((p) => [p, forged])),
  };
  const fetch = async (url, init = {}) => {
    for (const [mirror, files] of Object.entries(served)) {
      if (!url.startsWith(`${ORIGIN}${mirror}/`)) continue;
      const real = url.replace(`${mirror}/`, 'archive/');
      for (const [rel, bytes] of Object.entries(files)) {
        if (real === dir + rel) return new Response(bytes, { status: 200, headers: { 'content-length': String(bytes.length) } });
      }
      return inner(real, init);
    }
    return inner(url, init);
  };
  const fresh = () => new Resolver(new Http({ fetch }));
  const genuineTitle = (await (async () => {
    const r = new Resolver(new Http({ fetch: diskFetch() }));
    return r.describe(await r.latest(alpha.name, alpha.owner, [at('archive')]));
  })()).title;
  let r = fresh();
  let res = await r.latest(alpha.name, alpha.owner, [at('rootinv')]);
  assert.equal(res.status, 'verified');
  assert.equal((await r.describe(res)).title, genuineTitle);
  assert.notEqual(genuineTitle, 'A forged title');
  r = fresh();
  res = await r.latest(alpha.name, alpha.owner, [at('swapped')]);
  await assert.rejects(r.describe(res), (e) => e.kind === 'digest' && /does not have the digest/.test(e.message));
});

Branch points

The accepted copy of other/ is a branch of alpha's version 2: its branch point is confirmed against the key log of archive/'s owner that other/ keeps beside it; unchecked without that key log; and inconsistent when its evidence lacks the parent's signatures (the parent version is then not a version) or a file of the parent version differs.

test('the verdicts of a branch point (section 9.3)', async () => {
  const other = await open('other/');
  const id = idOf('alpha-accepted', 'other');
  const inv = await other.inventory(id);
  const obj = await other.json(id, inv, 'v1', 'object.json');
  const genesis = await other.bytes(id, inv, 'v1', 'genesis.json');
  const lv = levelOfVersion(other, id, inv, 'v1');
  const logs = (owner) => other.keyLog(owner);
  assert.deepEqual(await verdict(lv, obj, genesis, logs), [CONFIRMED, []]);
  assert.equal(obj.parent.owner, parts(ALPHA)[1]);
  const [unchecked, why] = await verdict(lv, obj, genesis, async () => null);
  assert.equal(unchecked, UNCHECKED);
  assert.deepEqual(why, ['the parent version is unchecked (section 9.3)']);
  const unsigned = level(new Map([...lv.digests].filter(([p]) => !p.startsWith('parent/signatures/'))), lv.read);
  const [v1, problems] = await verdict(unsigned, obj, genesis, logs);
  assert.equal(v1, INCONSISTENT);
  assert.ok(problems.some((p) => p.includes('not a version: unsigned')));
  const pdf = [...lv.digests.keys()].find((p) => p.endsWith('.pdf'));
  const changed = level(new Map([...lv.digests].map(([p, d]) => [p, p === pdf ? '0'.repeat(128) : d])), lv.read);
  const [v2, more] = await verdict(changed, obj, genesis, logs);
  assert.equal(v2, INCONSISTENT);
  assert.ok(more.some((p) => p.startsWith(`${pdf}: a file of the parent version is missing, or differs`)));
  const own = { ...obj, owner: obj.parent.owner };
  assert.ok((await verdict(lv, own, genesis, logs))[1].some((p) => p.includes("neither the parent's owner nor the originator")));
});