Skip to content
LITHOEN

Evidence platform and governance · Step 2

Record

Step 2 a7 assertion correction

Repository path
data/internal/studies/step2-a7-assertion-correction.json
Size · SHA-256
3.5 KB · c92643fda8015dad9ccd355b1fc202e182de817cc0e8a940bdd215d08b522f75
Identifier
study:step2-a7-assertion-correction
Schema version
1.0.0
{
  "schemaVersion": "1.0.0",
  "id": "study:step2-a7-assertion-correction",
  "corrects": "study:step2-computable-lineage-outcomes",
  "correctedOn": "2026-10-03",
  "frozenRecordEdited": false,
  "frozenRecordEditedNote": "study:step2-computable-lineage-outcomes carries outcomesHash 1a0f4b46ddd34498 and is merged. It is NOT rewritten. A frozen record that quietly becomes consistent with a later discovery loses the sequence, and the sequence is the point: what was claimed, when it was found false, and what replaced it.",
  "whatWasSaid": "Under acceptance criterion A7, the record states: 'git diff against origin/main over that path is empty, and a test asserts both the empty diff and that the store is still populated so that \"no diff\" cannot mean \"no files\"'.",
  "whatIsTrue": [
    "The first half stands. At the time of the migration the diff over data/public/claims against origin/main was empty, and no claim's content changed. That remains the case.",
    "The second half does not. The test asserted it in a way that could not hold in CI, and it has been replaced."
  ],
  "theDefect": {
    "mechanism": "The test ran `git diff --name-only origin/main -- data/public/claims` through execFileSync. actions/checkout@v4 builds a merge ref for a pull_request event and leaves no refs/remotes/origin/main, so the command exited 128 with `fatal: bad revision 'origin/main'` and the test threw.",
    "observedBothWays": "Run 37116438685, push to main on 5bb8413's successor 88a9556: 92 test files passed, this file among them. Run 37115764380, pull_request on 389d87d: the same file, 15 tests, 1 failed, with `fatal: bad revision 'origin/main'` in the log. Identical code and an identical tree; only the GitHub event differed.",
    "severity": "It would have failed every future pull_request run while passing every push to main — an unstable verify, which is precisely what the Step 3 instruction forbids.",
    "theUncomfortablePart": "This is the same defect class the Step 0 closure had just finished documenting as finding S0-F1: a check that depends on git state CI's shallow checkout does not provide, reporting a different answer in CI than locally. That finding was written one commit before this test was. Recognising a defect in another gate did not prevent reproducing it."
  },
  "theReplacement": {
    "why": "A test whose subject is a diff against a moving ref also stops meaning anything once the work merges, because then there is no diff left to find. It was asserting a historical fact as if it were an invariant.",
    "nowAsserted": "That the three fields Step 2 introduced — upstreamExistence, upstreamKey, transmits — appear on no claim record, and that every claim still carries statement, value, confidence, significance, status and evidenceIds. Checked across all 1547 claim files rather than a sample of one.",
    "driftEnforcedWhere": "data/corpus-manifest.json holds a per-store content hash and validate-corpus fails on a stale manifest. That is the enforcement point for the claims store changing, and the test asserts the manifest actually covers claims and lineage rather than duplicating the hash comparison.",
    "gitDependenciesRemaining": "Zero in this test file. Confirmed against a depth-1 clone with its remote removed, which is a harsher condition than CI's."
  },
  "whatIsNotChanged": "Every other A7 finding and the ten met criteria stand. No claim's content changed in the migration, and that is still true and still verifiable from history where history is available — it is just no longer asserted by a test that cannot run everywhere."
}