Skip to content
LITHOEN

Evidence platform and governance · Step 3

Record

Source Intelligence Discovery Graph — frozen protocol

Repository path
data/internal/studies/step3-source-intelligence-protocol-v1.json
Size · SHA-256
19.7 KB · f275adf223f4cfe1029deb5b340ea138d76ef3a550a7713da1991314272f745f
Identifier
study:step3-source-intelligence-protocol-v1
Programme step
3
Step name
Source Intelligence Discovery Graph — frozen protocol
Schema version
1.0.0
Protocol hash
c9eaa6679d818720
{
  "schemaVersion": "1.0.0",
  "id": "study:step3-source-intelligence-protocol-v1",
  "programmeStep": 3,
  "programmeStepName": "Source Intelligence Discovery Graph — frozen protocol",
  "phaseNumber": null,
  "phaseNumberNote": "Null throughout this programme: repository truth controls numbering. Highest recorded phase 77, highest ADR ADR-0062.",
  "frozenOn": "2026-10-03",
  "canonicalisation": "compactKeyNull.",
  "protocolHash": "c9eaa6679d818720",
  "checkpoint": "Frozen BEFORE any new outcome-bearing request. Part A sends none at all.",
  "preconditions": {
    "localVerify": "Green on main's unchanged union tree 58f3ab1a88474ec1d0afcaf4939444b41994af59: 1818 tests across 92 files, corpus valid, lineage integrity passed, leakage clean over 4497 files, zero failure markers.",
    "remoteCi": "Run 37116438685 on 88a9556, push to main: completed/success. Run 37116307081 on 2e5c645: completed/success.",
    "step1": {
      "verdict": "SCHOLARLY_CITATION_GRAPH_REACHABLE",
      "record": "study:step1-citation-reachability-outcomes",
      "outcomesHash": "31904eedd7e36660",
      "sufficientAlone": false
    },
    "step2": {
      "verdict": "COMPUTABLE_EVIDENCE_LINEAGE_INDEPENDENCE_IMPLEMENTED_TEN_OF_ELEVEN_CRITERIA_MET",
      "record": "study:step2-computable-lineage-outcomes",
      "outcomesHash": "1a0f4b46ddd34498",
      "criteria": "10 of 11 met; A2 unmet, finding S2-F1, whose premise was corrected rather than whose number was moved.",
      "mergedInto": "389d87d is an ancestor of 88a9556",
      "applicability": "The lineage engine, schema, gate and all 31 migrated edges are present on this tree. The Lineage integrity line in the verify above IS that gate running on it, so Part A's independence verdicts come from a live engine rather than a reported one.",
      "correction": "study:step2-a7-assertion-correction — the A7 test asked git for a ref CI does not provide and was replaced. No other A7 finding changed."
    },
    "whyStep1AloneWouldNotDo": "Part A's contextual roles and independence positions are computed BY the Step 2 engine. Without Step 2 accepted and present, Part A could report a source's dependencies but not its position, and the whole point of a source profile is the position."
  },
  "baseline": {
    "executionBase": {
      "commit": "85eb91048fd9b4049962e51693d5835dbe279bf4",
      "tree": "a6659ea76c3296bd72a7c745c309b986314a5e79",
      "whatItIs": "The commit Part A and Part B actually run against: the CI-verified main plus one commit, the A7 test fix recorded in study:step2-a7-assertion-correction."
    },
    "ciVerifiedAncestor": {
      "commit": "88a95569",
      "commitNote": "Short form as reported by git; the full SHA is in the CI record below and in the merge history.",
      "tree": "58f3ab1a88474ec1d0afcaf4939444b41994af59",
      "whatItIs": "The SHA a green remote run exists for — run 37116438685, completed/success, 10 steps. The execution base is one commit ahead of it and has NO remote run of its own at freeze time, which is stated rather than glossed: the test fix it carries is covered by local verify only."
    },
    "canonicalSourceSet": {
      "count": 121,
      "countNote": "RECOUNTED on this base. 121 was a figure reported earlier in the programme and is not a constant: it is re-derived here and must be re-derived again by any later step rather than assumed.",
      "sourceSetSha256Prefix": "4f25a93c69ec312f",
      "canonicalisationOfThatHash": "sha256 over JSON.stringify of the source ids, sorted ascending; first 16 hex characters."
    },
    "otherCounts": {
      "evidence": 521,
      "claims": 1547,
      "lineageEdges": 31
    }
  },
  "knownDesignInput": {
    "why": "Step 1's results are openly known and shaped this design. They are not restated as outcome-blind assumptions.",
    "whatWasKnown": [
      "Six of six DOI-bearing members resolved by exact DOI in at least one provider; all six returned a non-empty outgoing reference list and at least one citing work; all six returned a stable persistent identifier on repeat.",
      "Zero of eight non-DOI members resolved under the frozen rule. All three members of the one real shared-lineage cluster were NOT_FOUND in both providers, and so was the article behind ten of the corpus's seventeen measurements.",
      "All forty requests returned HTTP 200. No access was refused, rate-limited or gated, with no key and no contact address.",
      "Finding S1-F1: resolveIdentity counts provider records rather than deduplicated works, so two members that resolve to one work were reported AMBIGUOUS. It CANNOT affect this step's seeds, because every seed here carries a DOI and the EXACT_DOI branch returns before the fallback is reached. Stated so that the exemption is a reasoned one rather than an oversight.",
      "Finding S1-F2: Crossref held no reference list for a work whose DOI it resolved while OpenAlex held 125. Provider coverage differs and the difference is a result."
    ]
  },
  "theTwoScopes": {
    "statement": "One Step with two different coverages. Not a licence to begin mass accumulation.",
    "partA": "Every canonical Source. No network.",
    "partB": "Only the DOI-eligible subset. One bounded network command."
  },
  "partA": {
    "question": "For each canonical Source, what does the corpus itself already know about its position?",
    "derivedFrom": "data/public/sources, evidence, claims; data/internal/measurement-audits, bottlenecks. Nothing else.",
    "network": "none",
    "doesNotDuplicateTheLineageEngine": "Independence verdicts are obtained by calling independenceForClaim from the Step 2 engine. The ancestry walk is not reimplemented, and no verdict is derived in this layer.",
    "fieldsPerSource": [
      "identity and type: id, title, type, tier, publisher, publishedYear, doi, normalised doi, and whether it is DOI-eligible for the channel",
      "declaredOriginRole, labelled explicitly as corpus-wide and DECLARED",
      "citation: the evidence records drawn from this source, with ids",
      "support: the claims resting on those evidence records, and separately the measurement claims among them, identified by measurementaudit.claimId",
      "entities as SUBJECT of supported claims, and separately entities MENTIONED only in an evidence scope, the two lists disjoint by construction",
      "contextualRoles: per claim, whether the claim reads a passage an origin-transmitting edge records as borrowed",
      "dependencies: the edges from this source, the edges naming it as upstream, resolved upstreams, unresolved count, and whether it declares no upstream",
      "independencePosition: the most cautious claim-context verdict against each source it is co-cited with",
      "gaps: bottlenecks linked through this source's own evidence ids"
    ],
    "threeThingsKeptApart": {
      "mention": "An entity named in an evidence record's scope. The source talks about it.",
      "citation": "An evidence record drawn from this source. The corpus quotes it.",
      "support": "A claim resting on such evidence. The corpus leans on it.",
      "why": "A source may mention fifty entities, be cited twice and support nothing. One number for all three would make it look like fifty times the evidence it is."
    },
    "prohibitions": [
      "No single unconditional primary-or-review label may stand in for a contextual role. A document can be primary for one measurement and secondary for another, and declaredOriginRole is emitted with that caveat attached to it in the record.",
      "No source is called independent because a dependency between it and another happens not to be recorded. NO_RECORDED_DEPENDENCY and NOT_IN_ENUMERATION both carry a note saying they are not findings of originality.",
      "No gap is inferred. Only links already present in a canonical record are followed, and the mediating field is named on each one.",
      "No acquisition priority, ranking or recommendation. That is Step 4 and is not implemented."
    ],
    "acceptanceCriteria": [
      {
        "ref": "PA1",
        "criterion": "Coverage",
        "threshold": "All 121 sources profiled, zero missing. The count is recounted from the corpus at build time, never pinned to 121 in a test."
      },
      {
        "ref": "PA2",
        "criterion": "Every figure recomputes",
        "threshold": "A gate rebuilds the profiles from the corpus and compares field by field. Zero differences. No number in the artefact is typed."
      },
      {
        "ref": "PA3",
        "criterion": "Mention, citation and support are disjoint",
        "threshold": "For every profile, the subject list and the mention list share zero members, and the three counts are separate fields."
      },
      {
        "ref": "PA4",
        "criterion": "No global label substitutes for a contextual role",
        "threshold": "Every profile carries declaredOriginRole with its caveat AND a contextualRoles entry for each supported claim. Zero profiles with supported claims and no contextual roles."
      },
      {
        "ref": "PA5",
        "criterion": "Independence never asserted from silence",
        "threshold": "Zero profiles assert INDEPENDENT for a pairing. The only verdicts recorded are those the Step 2 engine returns, and a source absent from the co-cited list is not thereby independent — the record says so."
      },
      {
        "ref": "PA6",
        "criterion": "Gaps only where a link exists",
        "threshold": "Every gap entry names the canonical field that links it. Zero inferred links."
      },
      {
        "ref": "PA7",
        "criterion": "Stays internal",
        "threshold": "The artefact is classified INTERNAL and appears in no build output. The existing leakage scan over the rendered site must stay clean."
      }
    ]
  },
  "partB": {
    "question": "For the subset the channel can address at all, what citation neighbourhood is actually retrievable from this environment today?",
    "doiIsNotAGenreOrAQualitySignal": "A DOI is an identification criterion. It says nothing about a document's type, rigour or worth, and the absence of one says nothing either. The eight non-DOI members of Step 1 remain full members of Part A at undiminished scientific value; their provider non-match is a limited negative result about two indexes on one date.",
    "eligibleSet": {
      "count": 28,
      "uniqueDois": 28,
      "sourcesSharingADoi": 0,
      "eligibleSetSha256Prefix": "731eba54cb966ba9",
      "canonicalisationOfThatHash": "sha256 over JSON.stringify of [{id, normalisedDoi}] sorted by id; first 16 hex characters."
    },
    "seeds": {
      "count": 28,
      "rule": "The seed set IS the eligible set. No selection is made, so no seed can have been chosen for its answer and D equals B by construction.",
      "alreadyProbedInStep1": 6,
      "newSeeds": 22,
      "newSeedsNote": "Each of the 28 gets its own identity resolution in this run. The six probed in Step 1 are not assumed resolvable, and the twenty-two new ones are certainly not."
    },
    "providers": {
      "order": [
        "OPENALEX",
        "CROSSREF"
      ],
      "permittedOperations": {
        "OPENALEX": [
          "GET /works/doi:<DOI> — identity, and the outgoing reference list arrives inside the same record at no further cost",
          "GET /works?filter=cites:<id>&per-page=200 — incoming citations, one page"
        ],
        "CROSSREF": [
          "GET /works/<DOI> — identity, and the reference array arrives inside the same record"
        ]
      },
      "forbidden": [
        "Any provider not named here. Semantic Scholar, Lens, Dimensions, Scopus, Web of Science and Google Scholar are out of scope and would need a new frozen protocol.",
        "Any API key, contact address or credential.",
        "Any scraping of a provider interface, browser automation around a blocked endpoint, or workaround of an access policy. A block is a result.",
        "Crossref incoming citations: Crossref is not asked for cited-by at all, so no incoming figure in this run may be attributed to it."
      ],
      "referencesDoNotImplyCitations": "Retrieving an outgoing reference list does not establish that incoming citations are available for the same work. F and G below are measured and reported separately, and neither substitutes for the other."
    },
    "budget": {
      "chargedRequestCap": 100,
      "arithmetic": "28 seeds times 3 requests — OpenAlex identity, OpenAlex cited-by, Crossref identity — is 84. The cap leaves room for retries and binds before any unplanned request.",
      "timeoutSecondsPerRequest": 20,
      "retries": "At most one per request, and only on 429 or 5xx. No retry on 401, 403 or 404 — those are answers.",
      "pagination": "At most ONE page of at most 200 items on the cited-by query. The reported total count is taken from the provider's meta and is NOT a traversal.",
      "graphTraversalDepth": 1,
      "graphTraversalNote": "Depth one and no further. No candidate is expanded, because expanding candidates is accumulation and accumulation is not authorised.",
      "candidatesStoredPerSeedPerDirection": 10,
      "candidateStorageNote": "Full counts are always recorded; only the stored records are capped. Candidate volume is not the result.",
      "stopWhen": "The cap binds, or every seed has an identity outcome and every resolved seed has had both directions attempted. Budget remaining is not a reason to continue."
    },
    "matchingAndDedup": {
      "identity": "scripts/lib/citation-identity.ts resolveIdentity, unchanged and frozen since Step 1. Every seed carries a DOI, so resolution runs through the EXACT_DOI branch.",
      "dedup": "dedupeByWork — by normalised DOI where present, else by provider plus provider id. Never by title.",
      "provenanceRetained": "Deduplicating a work does NOT collapse its discovery paths. Every candidate retains each provider that returned it, the seed it was found from, the direction it was found in, and the provider's own metadata reading."
    },
    "candidateWall": {
      "status": "SOURCE_CANDIDATE and nothing else.",
      "forbiddenFields": "No evidenceIds, claimIds, classification, supportStrength, score, citedByCount or quality on any candidate. Enforced by candidateFindings from Step 1.",
      "noPromotion": "No canonical Source, Evidence, Claim or independence assertion is created by this run. The Source count must still be 121 afterwards.",
      "citationIsNotSupport": "A citation edge is not a support edge and is not evidence of data reuse. The absence of a citation edge is not evidence of independence.",
      "noQualityFromCounts": "A cited-by count is never used as a measure of quality, truth or priority, and no candidate carries one."
    },
    "acceptanceCriteria": [
      {
        "ref": "PB1",
        "criterion": "Seeds attempted",
        "threshold": "All 28 attempted. None skipped, none added. A seed that fails is reported, never replaced."
      },
      {
        "ref": "PB2",
        "criterion": "Each seed resolved on its own evidence",
        "threshold": "Every seed has its own identity outcome recorded. No seed's availability is inherited from Step 1."
      },
      {
        "ref": "PB3",
        "criterion": "Budget respected",
        "threshold": "Charged requests at most 100. Retries at most one per request and only on 429 or 5xx. Zero requests outside the permitted operations."
      },
      {
        "ref": "PB4",
        "criterion": "F and G separate",
        "threshold": "Outgoing-retrieved and incoming-retrieved are counted and reported separately, with neither inferred from the other."
      },
      {
        "ref": "PB5",
        "criterion": "Candidate wall holds",
        "threshold": "candidateFindings returns zero findings over every stored candidate. Every candidate carries status, discoveredVia and seedSourceId."
      },
      {
        "ref": "PB6",
        "criterion": "Nothing promoted",
        "threshold": "Canonical Source count is 121 before and after. Zero Evidence, Claim or lineage records created."
      },
      {
        "ref": "PB7",
        "criterion": "Dedup keeps provenance",
        "threshold": "Every deduplicated work retains every discovery path that found it. Zero works with a collapsed provenance list."
      },
      {
        "ref": "PB8",
        "criterion": "No ranking",
        "threshold": "Zero candidates carry a cited-by count, score or quality field."
      },
      {
        "ref": "PB9",
        "criterion": "Verify needs no network",
        "threshold": "pnpm verify exits 0 with no live request. The Part B artefact is frozen on disk and every test reads it from there, so provider drift or downtime cannot destabilise verify."
      }
    ],
    "providerObservationRecord": "Each attempt stores: an ISO timestamp, the exact request URL, the provider, the HTTP status, whether it was retried, the pagination bound applied, and a sha256 prefix of the response body as received. The body hash is the snapshot: it lets a later reader tell a provider change from a code change without this corpus storing a provider's content."
  },
  "denominatorsToReportSeparately": {
    "why": "Presence, attempt, success and retrieval are four different things, and a single percentage would hide which one is being claimed.",
    "A": "all canonical Sources",
    "B": "Sources with a usable DOI",
    "C": "unique DOIs among them",
    "D": "seeds actually selected for requests",
    "E": "seeds with a confirmed provider identity",
    "F": "seeds for which an outgoing reference list was retrieved",
    "G": "seeds for which incoming citations were retrieved",
    "H": "untried, ambiguous and inaccessible cases, counted apart",
    "sourcesAreNotWorks": "Several internal records may point at one bibliographic work. Sources and unique scholarly works are reported as different quantities and never summed together.",
    "theLadder": "A DOI shows potential eligibility. A successful request shows verified availability. Retrieved edges show a recovered part of the graph. None of the three is completeness, and the report may not imply it."
  },
  "reporting": {
    "headlineIsNotCandidateCount": true,
    "headline": [
      "how much of the corpus the internal layer covers",
      "what share is potentially eligible for the DOI channel",
      "what share was actually verified",
      "where graph edges were in fact retrieved",
      "where unknown or unverified regions remain"
    ],
    "separately": "candidates, deduplication, provenance, budget spend and limitations.",
    "partsReportedApart": "Part A and Part B get separate results. A positive DOI-discovery result is NOT describable as unblocking source discovery for all Lithoen source types.",
    "forbiddenPhrasing": [
      "Any claim of graph completeness.",
      "Any absence claim about the scholarly literature.",
      "Any statement that a non-DOI source is less valuable, or less scientific, because a provider did not match it."
    ]
  },
  "privacy": {
    "classification": "Both Part A and Part B artefacts are INTERNAL.",
    "why": "A source being public does not make Lithoen's analysis of it public. The profile exposes which claims lean on which source, where the corpus is thin, and which dependencies are unresolved — internal analytics about the corpus, not facts about the document.",
    "enforcement": "The artefacts live under data/internal, which no part of the web application reads, and the existing leakage scan over the rendered output must stay clean."
  },
  "executionState": "NOT_EXECUTED at freeze time. Part A sends no request; Part B is a single explicit command run under the budget above.",
  "whatWouldCountAsFailure": [
    "Editing any threshold or denominator in this record after seeing a result.",
    "Adding a provider, key or contact address.",
    "Expanding past traversal depth one.",
    "Promoting any candidate.",
    "Reporting a candidate count as the headline.",
    "Describing an unexecuted check as passed, or a reported provider count as a retrieved graph."
  ]
}