Skip to content
LITHOEN

Evidence platform and governance · Step 2

Document

Claim-context lineage — design note, offline preparation

Repository path
docs/design/step2-claim-context-lineage.md
Size · SHA-256
11.0 KB · 0b74530c4035fd9a44c14f0b1805cdc8997e41dbec6100add8e4663cbfaa5968

Status: DESIGN ONLY, NOT IMPLEMENTED. Authorised by study:step2-offline-preparation-amendment. Nothing in this note has been built, no validator is registered, and audit-independence reports exactly what it reported before this note existed. Step 2 execution remains blocked on remote CI.

Companion records:

  • data/internal/studies/step2-offline-preparation-amendment.json — the exception, its authorisation and its stop boundary.
  • data/internal/studies/step2-lineage-edge-inventory.json — the four-axis audit of all 31 edges and the four findings this design answers.
  • data/internal/studies/step2-lineage-execution-protocol-v1.json — what Step 2 would run, frozen in advance.

The question the present model cannot ask

independenceOf(a, b, lineage, originRole) takes two source identifiers. It asks whether work A and work B rest on the same observations — a question about two works, answered once for the whole corpus.

The question that matters is never that one. It is: for this claim, do its citations represent one observation or several? A lineage edge transmits particular content. When Report 54 repeats Marston's Bandalup Hill resource figure, the two works are one origin for that figure and remain two independent works about everything else either of them says. The present model has no way to say so, because the edge is work-to-work and therefore applies to every claim equally.

This is the same shape as a defect this project has already catalogued more than once: a rule asking a global question where a per-record one was meant.

That the distinction is real in this corpus, not merely tidy

Three edges are individually decisive today. Reading each against the passages the affected claims actually cite:

Claim Cited passages Edge transmits Present verdict Correct verdict
wa-laterite-object-status-is-source-qualified Bulletin 14 ch. 10 Central Bore (Murrin), p. 221; Report 54 mineralization ch., p. 112 Report 54's Bandalup Hill laterite statement and Marston's 15.4 Mt at 1.4 % figure SHARED_ORIGIN not shared on these passages
ravensthorpe-district-name-covers-a-sulphide-deposit-group Bulletin 14 contents ch. 4 + ch. 10 Bandalup Creek; Report 54 metamorphism ch. p. 64 and Mount Barren Group stratigraphy the same Bandalup Hill laterite figure SHARED_ORIGIN not shared on these passages
plate-boundary-is-model-dependent PB2002 "Introduction — file descriptions"; Bird (2003) bibliographic record the whole data release, which exists only as that paper's supplement SHARED_ORIGIN SHARED_ORIGIN — unchanged
icp-mass-spectrometry-limit DS-801 "Chemical Analysis, p. 4"; Kessel (2005) abstract DS-801's ICP-AES and ICP-MS methods, adapted from Briggs (2002), not held UNKNOWN UNKNOWN — unchanged
x-ray-diffraction-target DS-801 "Mineralogical Analysis, p. 12"; USGS OFR 01-041 XRD primer the same ICP methods UNKNOWN not affected by this edge

Three of five verdicts change, and the two that must not change do not. The two that change both move in the direction the present model finds hardest to notice — away from an unearned caution — and the control cases show the change is not simply a relaxation.

A design that altered nothing here would be elegance. This one is answerable to five records.

The temptation to avoid

Every locator in this corpus has the shape { kind: 'section', value: <free text> }, 521 of 521, and the values are human prose: "Chapter 10, 'Lateritic deposits', section 'CENTRAL BORE (MURRIN) DEPOSIT', report page 221". The obvious implementation is to decide whether a claim's locator falls inside an edge's transmitted region by matching those strings.

That is finding F1 rebuilt. F1 exists because normaliseDescriptor reduces an upstream citation to firstword:year, so four descriptors beginning with the word The collapse to the key the: and four unrelated works — a commission's evaluation of published isotopic abundances, the surface geology of Australia, a WAMEX exploration abstract — are held to share an ancestor. All six pairs among them return SHARED_ORIGIN. A string reduced far enough to match will match the wrong things, and a prose locator reduced far enough to compare will do it again.

Scope must be declared on identifiers, never inferred from prose.

The representation

Three additions to sourceLineageSchema, each traceable to a finding. Nothing else changes, and no existing field is removed.

1. upstreamKey — answers F1

/**
 * The identity of the upstream work, ASSIGNED rather than parsed. Two edges name the same
 * upstream when and only when they carry the same key. Null means no key has been
 * assigned: the ancestry is unresolved, which blocks independence without inventing a
 * shared ancestor.
 */
upstreamKey: z.string().min(4).nullable()

A key is a resolvable identifier where one exists — doi:10.1029/2001GC000252, wamex:a5747, isbn:… — or an explicit unresolved:<slug> where none does. Both forms are declarations a reviewer can check. Neither is derived from the descriptor, so a definite article cannot make two works one.

ancestryOf then keys an unresolved upstream by upstreamKey instead of descriptor:normaliseDescriptor(...), and contributes no shared key at all when the key is null. This preserves the intent of the present behaviour — the comment in ancestryOf is right that two works citing one unretrieved upstream do share an ancestor — and makes the sharing something a record asserts rather than something a regex guesses.

2. upstreamExistence — answers F2

upstreamExistence: z.enum(['NAMED_AND_HELD', 'NAMED_NOT_HELD', 'DECLARED_NONE'])

Today a declared absence and an unretrieved citation are the same value, upstreamSourceId: null, and they mean opposite things. ancestryOf reads both as unresolved, so lineage:abs-state-boundaries-primary — filed, in its own words, "so that the independence of the Phase 18 denominator is stated rather than assumed" — is the sole reason that independence cannot be stated. With the edge present the source is UNKNOWN against all 120 others; with that one edge deleted it is INDEPENDENT against 55. Filing the record destroyed the property it was filed to assert.

DECLARED_NONE contributes no ancestor and does not increment unresolved. Two sources are affected today, both upstream-kind works: abs-asgs2021-state-boundaries and usgs-ds801-soil-geochemistry.

3. transmits — answers the global-question problem

transmits:
  | { coverage: 'WHOLE_WORK'; why: string }
  | { coverage: 'ENUMERATED'; intoEvidenceIds: string[]; why: string }

intoEvidenceIds names the evidence records in the downstream work that carry borrowed content. Intersection with a claim is then a set-membership test on identifiers: no parsing, no normalisation, no matching. PB2002 is WHOLE_WORK, because the data release exists only as the supplement to Bird (2003); Report 54's Marston edge is ENUMERATED, naming the evidence that carries the Bandalup Hill figure.

The default for anything unenumerated is UNKNOWN, never independent. If a claim cites the downstream work through an evidence record that an ENUMERATED edge does not list, the pairing is UNKNOWN — not INDEPENDENT. An unclassified passage is unknown and never free, which is the same rule this corpus already applies to an empty cell in a coverage map. It also makes staleness safe by construction: evidence added later is unenumerated, so it is unknown, so a growing corpus cannot silently acquire independence it has not earned.

Alternatives considered

A1 — keep the string normalisation, make it stricter. Reject descriptors that normalise to a stop word; require a year. Rejected: it is still a rule about the form of a value where the error is in its meaning. A stricter regex fails differently, not less, and the corpus has six descriptors with no year that may well name a work precisely.

A2 — resolve the 26 unheld upstreams by retrieval. Rejected as an answer, though it is worth doing for its own sake. It needs network access this preparation does not authorise, it belongs to a later step, and it fixes neither F1 nor F2: a fully resolved corpus still cannot express that an edge transmits one figure rather than a whole work.

A3 — per-claim scope by matching locator prose. Rejected above. It is F1 rebuilt in a new field.

A4 — declared identifier joins, with UNKNOWN as the default. Chosen. Every judgement is a declaration a reviewer can check, every join is on an identifier, and the unsafe direction is closed by construction rather than by diligence.

Risks of the chosen design

Risk Mitigation
R1 Every edge needs hand classification. Tractable at 31; it will not scale to thousands without tooling. Accept at this size. Record the burden rather than discover it later.
R2 A declared key can be wrong — two different works given one key, which is F1 by hand instead of by regex. A gate requiring every key to be either a recognised identifier scheme or an explicit unresolved: slug carrying a basis string, and reporting every key used by more than one edge for review rather than accepting it silently.
R3 An ENUMERATED list goes stale as evidence is added. The UNKNOWN default makes staleness safe. A gate reports, per edge, how many evidence records in the downstream work are unenumerated, so the staleness is visible and quantified instead of silent.
R4 Migration changes canonical independence verdicts on at least the three decisive edges. Forbidden under this preparation. In Step 2 it must be a declared step with before-and-after verdicts recorded per claim, reviewed, and never applied as a side effect of a schema change.
R5 The audit's own Axis D columns depend on normaliseDescriptor, which this design deletes. Stated in the inventory's method block: any change to that function invalidates those columns. They are a record of the defect, not a live metric.

What is deliberately not decided here

F3 — two lineage mechanisms. source.derivedFromSourceIds and the lineage:* store both express derivation. One source of 121 populates the former; four of the five resolved edges are absent from it; its only reader is a referential-integrity rule that checks the ids resolve. Which of the two is canonical is a decision for the owner, not a design detail, and this note does not take it. The options are to make the field a derived projection of the edge store, or to remove it.

F4 — coverage. 21 of 121 sources carry an edge; 50 of the 100 that carry none are of a downstream kind, meaning their content comes from elsewhere by this corpus's own definitions. That is why 65 of 85 co-cited pairs are UNKNOWN. No design fixes this; it is a denominator to quote whenever an independence figure is quoted, and the 19 independently-corroborated claims should never be stated without it.