EVIDENCE — arXiv fulltext archive dual-copy gate (sphinx lane)
captured: 2026-10-26T09:08:49Z
host: WorkBench   python: Python 3.14.7

COMMIT = /root/troupe-standup/wizard-work/sphinx/arxiv-fulltext-2026-10-25  (1 run)
LIVE   = /root/.hermes/wizard-outputs/sphinx/arxiv_fulltext               (3 runs)

The committed copy is the published SUBSET of the live working copy, so live
carries runs and source bytes the commit does not. A whole-tree `diff -r` is
therefore the wrong test (it fails on bytes the commit never claimed to
publish). compare_copies.py states the real claim: the commit publishes exactly
the files its run manifest declares, and every one of them is byte-identical in
live.

--------------------------------------------------------------------
1. THE GATE: bash CHECK.sh   (its exit code IS the verdict: 0)
--------------------------------------------------------------------
== gate on the COMMITTED copy: /root/troupe-standup/wizard-work/sphinx/arxiv-fulltext-2026-10-25
== L1  real-archive regression test

== L1 real-archive regression: python3 test_arxiv_fulltext.py
   
   25 passed, 0 failed
   ALL CHECKS PASSED
  PASS  L1 real-archive regression exits 0

== L2  fixture unit test

== L2 fixture units: python3 test_units.py
   
   32 passed, 0 failed
   ALL UNIT CHECKS PASSED
  PASS  L2 fixture units exits 0

== L3  prose partition + mutation negative control

== L3 prose partition: python3 test_prose.py
   
   26 passed, 0 failed
   ALL PROSE CHECKS PASSED
  PASS  L3 prose partition exits 0

== L4  published manifest digests match the bytes on disk
  PASS  at least one manifest found
  PASS  1706.03762v7/raw.html digest+size match
  PASS  1706.03762v7/paper.md digest+size match

== L5  prose verdict on every real run
  PASS  1706.03762v7/paper.md grades prose

7 passed, 0 failed
ALL CHECKS PASSED
  gate rc=0

== gate on the LIVE copy (superset, 3 runs): /root/.hermes/wizard-outputs/sphinx/arxiv_fulltext
== L1  real-archive regression test

== L1 real-archive regression: python3 test_arxiv_fulltext.py
   
   29 passed, 0 failed
   ALL CHECKS PASSED
  PASS  L1 real-archive regression exits 0

== L2  fixture unit test

== L2 fixture units: python3 test_units.py
   
   32 passed, 0 failed
   ALL UNIT CHECKS PASSED
  PASS  L2 fixture units exits 0

== L3  prose partition + mutation negative control

== L3 prose partition: python3 test_prose.py
   
   28 passed, 0 failed
   ALL PROSE CHECKS PASSED
  PASS  L3 prose partition exits 0

== L4  published manifest digests match the bytes on disk
  PASS  at least one manifest found
  PASS  1706.03762v7/raw.html digest+size match
  PASS  1706.03762v7/paper.md digest+size match
  PASS  pdf_fallback_1706.03762v7/raw.pdf digest+size match
  PASS  pdf_fallback_1706.03762v7/paper.md digest+size match

== L5  prose verdict on every real run
  PASS  1706.03762v7/paper.md grades prose
  PASS  pdf_fallback_1706.03762v7/paper.md grades prose
  PASS  pdf_ocr_1706.03762v7/paper.md grades prose

11 passed, 0 failed
ALL CHECKS PASSED
  gate rc=0

== committed copy == live, for everything the commit publishes
  9 shared tool/test/gate files byte-identical
  runs/1706.03762v7: 4 files, all declared, byte-identical to live
  compare rc=0

== NC1 positive: a faithful copy must grade clean
  faithful copy rc=0 (expected 0)

== NC1 negative: code injected into the archived paper must be caught
  manifest digest recomputed for the injected paper.md
  sabotaged copy rc=1 (expected 1)

== NC2: a published file the manifest does not declare must be caught
  undeclared-file copy rc=1 (expected 1)
  restored copy rc=0 (expected 0)

== git leg: artifact committed
  git rc=0

VERIFIED

--------------------------------------------------------------------
2. NC1 POSITIVE — a faithful copy must grade clean (expected rc=0)
--------------------------------------------------------------------
== L1  real-archive regression test

== L1 real-archive regression: python3 test_arxiv_fulltext.py
   
   25 passed, 0 failed
   ALL CHECKS PASSED
  PASS  L1 real-archive regression exits 0

== L2  fixture unit test

== L2 fixture units: python3 test_units.py
   
   32 passed, 0 failed
   ALL UNIT CHECKS PASSED
  PASS  L2 fixture units exits 0

== L3  prose partition + mutation negative control

== L3 prose partition: python3 test_prose.py
   
   26 passed, 0 failed
   ALL PROSE CHECKS PASSED
  PASS  L3 prose partition exits 0

== L4  published manifest digests match the bytes on disk
  PASS  at least one manifest found
  PASS  1706.03762v7/raw.html digest+size match
  PASS  1706.03762v7/paper.md digest+size match

== L5  prose verdict on every real run
  PASS  1706.03762v7/paper.md grades prose

7 passed, 0 failed
ALL CHECKS PASSED

--------------------------------------------------------------------
3. NC1 NEGATIVE — a fenced Python block injected into the real archived
   paper.md, with the manifest digest RECOMPUTED so that only the prose legs
   can fail. Expected rc=1. MEASURED rc=1, and the digest legs PASS.
--------------------------------------------------------------------
recomputed digest for 1706.03762v7/paper.md (42536 bytes, sha256 3cdb5d3407a935af...)

== L1  real-archive regression test

== L1 real-archive regression: python3 test_arxiv_fulltext.py
   
   25 passed, 0 failed
   ALL CHECKS PASSED
  PASS  L1 real-archive regression exits 0

== L2  fixture unit test

== L2 fixture units: python3 test_units.py
   
   32 passed, 0 failed
   ALL UNIT CHECKS PASSED
  PASS  L2 fixture units exits 0

== L3  prose partition + mutation negative control

== L3 prose partition: python3 test_prose.py
     - bare maths assignment does not flip verdict ['code_fence_present=1']
     - short untagged fence does not flip verdict ['code_fence_present=1']
     - 1706.03762v7: graded prose ['code_fence_present=1']
  FAIL  L3 prose partition exits 0  rc=1 err=

== L4  published manifest digests match the bytes on disk
  PASS  at least one manifest found
  PASS  1706.03762v7/raw.html digest+size match
  PASS  1706.03762v7/paper.md digest+size match

== L5  prose verdict on every real run
  FAIL  1706.03762v7/paper.md grades prose  ['  PROSE: no  (code_fence_present=1)']

5 passed, 2 failed

FAILURES:
  - L3 prose partition exits 0 rc=1 err=
  - 1706.03762v7/paper.md grades prose ['  PROSE: no  (code_fence_present=1)']

READ THIS AS: the injected code is caught by the PROSE legs alone. L4 (the digest
legs) passes on the sabotaged copy because the manifest digest was recomputed,
so the failure cannot be attributed to a digest mismatch.

--------------------------------------------------------------------
4. ARTIFACT DIGESTS (sha256, bytes on disk)
--------------------------------------------------------------------
b2adf45ac52f6af62c3f93316059550a0201da8768da4107196a7af5111d962f  CHECK.sh
ae74e8f530be4f7609aa56680041d888a7ea96da03a239950513267f429b21af  compare_copies.py
086299ddce23716b03bf0a3c0e67a67bb2e2d92abfccec2bc08c5194f5926878  README-prose.md
e815d4934dc15ef483437ba860b260c20a08d966affc30b1f84022fcf851c89f  run_checks.py
e2fd595302fab61cb6458d74e8f2d0ef2a11d1ba5977fb5019a472bdbb35908e  prose.py
