onetrace 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (727) hide show
  1. onetrace-0.1.0/CHANGELOG.md +112 -0
  2. onetrace-0.1.0/LICENSE +201 -0
  3. onetrace-0.1.0/MANIFEST.in +16 -0
  4. onetrace-0.1.0/PKG-INFO +255 -0
  5. onetrace-0.1.0/README.md +210 -0
  6. onetrace-0.1.0/SECURITY.md +39 -0
  7. onetrace-0.1.0/draft/draft-saha-stage-receipts-00-vectors.tar.gz +0 -0
  8. onetrace-0.1.0/draft/draft-saha-stage-receipts-00.txt +1960 -0
  9. onetrace-0.1.0/exam/CHANGES_v0.1.1.md +42 -0
  10. onetrace-0.1.0/exam/CHANGES_v0.1.2.md +39 -0
  11. onetrace-0.1.0/exam/CHANGES_v0.2.0.md +159 -0
  12. onetrace-0.1.0/exam/CHANGES_v0.3.0.md +52 -0
  13. onetrace-0.1.0/exam/CHANGES_v0.3.1.md +30 -0
  14. onetrace-0.1.0/exam/CHANGES_v0.4.0.md +50 -0
  15. onetrace-0.1.0/exam/CHANGES_v0.5.0.md +47 -0
  16. onetrace-0.1.0/exam/CHANGES_v0.6.0.md +67 -0
  17. onetrace-0.1.0/exam/CHANGES_v0.7.0.md +73 -0
  18. onetrace-0.1.0/exam/DECLARED_ENVIRONMENT.json +196 -0
  19. onetrace-0.1.0/exam/EXPECTED.json +2308 -0
  20. onetrace-0.1.0/exam/MERKLE_RULE.md +70 -0
  21. onetrace-0.1.0/exam/README.md +248 -0
  22. onetrace-0.1.0/exam/SHA256SUMS.exam +451 -0
  23. onetrace-0.1.0/exam/STRICTER_THAN_SAMPLES.md +7 -0
  24. onetrace-0.1.0/exam/TOPOLOGY_RULE.md +129 -0
  25. onetrace-0.1.0/exam/fixtures/dag/canonicalize.py +60 -0
  26. onetrace-0.1.0/exam/fixtures/dag/corpus/alpha.txt +7 -0
  27. onetrace-0.1.0/exam/fixtures/dag/corpus/beta.txt +7 -0
  28. onetrace-0.1.0/exam/fixtures/dag/corpus/delta.txt +5 -0
  29. onetrace-0.1.0/exam/fixtures/dag/corpus/gamma.txt +7 -0
  30. onetrace-0.1.0/exam/fixtures/dag/pipeline3.py +223 -0
  31. onetrace-0.1.0/exam/fixtures/dag/run_A/MANIFEST.json +1 -0
  32. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/check.json +1 -0
  33. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-1.json +1 -0
  34. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-2.json +1 -0
  35. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-3.json +1 -0
  36. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-4.json +1 -0
  37. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-5.json +1 -0
  38. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-6.json +1 -0
  39. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/chunks-7.json +1 -0
  40. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/documents.json +1 -0
  41. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/merged.json +1 -0
  42. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/normalised-a.json +1 -0
  43. onetrace-0.1.0/exam/fixtures/dag/run_A/artifacts/normalised-b.json +1 -0
  44. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/01-document-in.json +1 -0
  45. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/02-normalise_a.json +1 -0
  46. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/03-normalise_b.json +1 -0
  47. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/04-merge.json +1 -0
  48. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/05-refine_1.json +1 -0
  49. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/06-refine_2.json +1 -0
  50. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/07-refine_3.json +1 -0
  51. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/08-refine_4.json +1 -0
  52. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/09-refine_5.json +1 -0
  53. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/10-refine_6.json +1 -0
  54. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/11-refine_7.json +1 -0
  55. onetrace-0.1.0/exam/fixtures/dag/run_A/receipts/12-checked.json +1 -0
  56. onetrace-0.1.0/exam/fixtures/dag/run_B/MANIFEST.json +1 -0
  57. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/check.json +1 -0
  58. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-1.json +1 -0
  59. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-2.json +1 -0
  60. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-3.json +1 -0
  61. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-4.json +1 -0
  62. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-5.json +1 -0
  63. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-6.json +1 -0
  64. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/chunks-7.json +1 -0
  65. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/documents.json +1 -0
  66. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/merged.json +1 -0
  67. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/normalised-a.json +1 -0
  68. onetrace-0.1.0/exam/fixtures/dag/run_B/artifacts/normalised-b.json +1 -0
  69. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/01-document-in.json +1 -0
  70. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/02-normalise_a.json +1 -0
  71. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/03-normalise_b.json +1 -0
  72. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/04-merge.json +1 -0
  73. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/05-refine_1.json +1 -0
  74. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/06-refine_2.json +1 -0
  75. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/07-refine_3.json +1 -0
  76. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/08-refine_4.json +1 -0
  77. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/09-refine_5.json +1 -0
  78. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/10-refine_6.json +1 -0
  79. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/11-refine_7.json +1 -0
  80. onetrace-0.1.0/exam/fixtures/dag/run_B/receipts/12-checked.json +1 -0
  81. onetrace-0.1.0/exam/fixtures/dag/run_C/MANIFEST.json +1 -0
  82. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/check.json +1 -0
  83. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-1.json +1 -0
  84. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-2.json +1 -0
  85. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-3.json +1 -0
  86. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-4.json +1 -0
  87. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-5.json +1 -0
  88. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-6.json +1 -0
  89. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/chunks-7.json +1 -0
  90. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/documents.json +1 -0
  91. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/merged.json +1 -0
  92. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/normalised-a.json +1 -0
  93. onetrace-0.1.0/exam/fixtures/dag/run_C/artifacts/normalised-b.json +1 -0
  94. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/01-document-in.json +1 -0
  95. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/02-normalise_a.json +1 -0
  96. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/03-normalise_b.json +1 -0
  97. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/04-merge.json +1 -0
  98. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/05-refine_1.json +1 -0
  99. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/06-refine_2.json +1 -0
  100. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/07-refine_3.json +1 -0
  101. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/08-refine_4.json +1 -0
  102. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/09-refine_5.json +1 -0
  103. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/10-refine_6.json +1 -0
  104. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/11-refine_7.json +1 -0
  105. onetrace-0.1.0/exam/fixtures/dag/run_C/receipts/12-checked.json +1 -0
  106. onetrace-0.1.0/exam/fixtures/dag/run_D/MANIFEST.json +1 -0
  107. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/check.json +1 -0
  108. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-1.json +1 -0
  109. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-10.json +1 -0
  110. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-11.json +1 -0
  111. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-12.json +1 -0
  112. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-13.json +1 -0
  113. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-14.json +1 -0
  114. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-15.json +1 -0
  115. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-2.json +1 -0
  116. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-3.json +1 -0
  117. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-4.json +1 -0
  118. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-5.json +1 -0
  119. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-6.json +1 -0
  120. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-7.json +1 -0
  121. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-8.json +1 -0
  122. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/chunks-9.json +1 -0
  123. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/documents.json +1 -0
  124. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/merged.json +1 -0
  125. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/normalised-a.json +1 -0
  126. onetrace-0.1.0/exam/fixtures/dag/run_D/artifacts/normalised-b.json +1 -0
  127. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/01-document-in.json +1 -0
  128. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/02-normalise_a.json +1 -0
  129. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/03-normalise_b.json +1 -0
  130. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/04-merge.json +1 -0
  131. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/05-refine_1.json +1 -0
  132. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/06-refine_2.json +1 -0
  133. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/07-refine_3.json +1 -0
  134. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/08-refine_4.json +1 -0
  135. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/09-refine_5.json +1 -0
  136. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/10-refine_6.json +1 -0
  137. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/11-refine_7.json +1 -0
  138. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/12-refine_8.json +1 -0
  139. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/13-refine_9.json +1 -0
  140. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/14-refine_10.json +1 -0
  141. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/15-refine_11.json +1 -0
  142. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/16-refine_12.json +1 -0
  143. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/17-refine_13.json +1 -0
  144. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/18-refine_14.json +1 -0
  145. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/19-refine_15.json +1 -0
  146. onetrace-0.1.0/exam/fixtures/dag/run_D/receipts/20-checked.json +1 -0
  147. onetrace-0.1.0/exam/fixtures/dag/run_F/MANIFEST.json +1 -0
  148. onetrace-0.1.0/exam/fixtures/dag/run_F/artifacts/check.json +1 -0
  149. onetrace-0.1.0/exam/fixtures/dag/run_F/artifacts/chunks.json +1 -0
  150. onetrace-0.1.0/exam/fixtures/dag/run_F/artifacts/documents.json +1 -0
  151. onetrace-0.1.0/exam/fixtures/dag/run_F/artifacts/merged.json +1 -0
  152. onetrace-0.1.0/exam/fixtures/dag/run_F/artifacts/normalised-a.json +1 -0
  153. onetrace-0.1.0/exam/fixtures/dag/run_F/artifacts/normalised-b.json +1 -0
  154. onetrace-0.1.0/exam/fixtures/dag/run_F/receipts/01-document-in.json +1 -0
  155. onetrace-0.1.0/exam/fixtures/dag/run_F/receipts/02-normalise_a.json +1 -0
  156. onetrace-0.1.0/exam/fixtures/dag/run_F/receipts/03-normalise_b.json +1 -0
  157. onetrace-0.1.0/exam/fixtures/dag/run_F/receipts/04-merge.json +1 -0
  158. onetrace-0.1.0/exam/fixtures/dag/run_F/receipts/05-checked.json +1 -0
  159. onetrace-0.1.0/exam/fixtures/dag-r37/README.md +17 -0
  160. onetrace-0.1.0/exam/fixtures/dag-r37/canonicalize.py +60 -0
  161. onetrace-0.1.0/exam/fixtures/dag-r37/pipeline4.py +106 -0
  162. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/MANIFEST.json +1 -0
  163. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/artifacts/joined.json +1 -0
  164. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/artifacts/left.json +1 -0
  165. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/artifacts/right.json +1 -0
  166. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/receipts/01-zeta.json +1 -0
  167. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/receipts/02-alpha.json +1 -0
  168. onetrace-0.1.0/exam/fixtures/dag-r37/run_P/receipts/03-join.json +1 -0
  169. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/MANIFEST.json +1 -0
  170. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/artifacts/joined.json +1 -0
  171. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/artifacts/left.json +1 -0
  172. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/artifacts/right.json +1 -0
  173. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/receipts/01-omega.json +1 -0
  174. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/receipts/02-alpha.json +1 -0
  175. onetrace-0.1.0/exam/fixtures/dag-r37/run_Q/receipts/03-join.json +1 -0
  176. onetrace-0.1.0/exam/fixtures/dag-r37/run_R/MANIFEST.json +1 -0
  177. onetrace-0.1.0/exam/fixtures/dag-r37/run_R/receipts/01-zeta.json +1 -0
  178. onetrace-0.1.0/exam/fixtures/dag-r37/run_R/receipts/02-alpha.json +1 -0
  179. onetrace-0.1.0/exam/fixtures/dag-r37/run_R/receipts/03-join.json +1 -0
  180. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001/MANIFEST.json +1 -0
  181. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001/receipts/01-retrieve.json +1 -0
  182. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001/receipts/02-rerank.json +1 -0
  183. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001/receipts/03-generate.json +1 -0
  184. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001/receipts/04-verify.json +1 -0
  185. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001-constant/MANIFEST.json +1 -0
  186. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001-constant/receipts/01-retrieve.json +1 -0
  187. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001-constant/receipts/02-rerank.json +1 -0
  188. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001-constant/receipts/03-generate.json +1 -0
  189. onetrace-0.1.0/exam/fixtures/fri11/run-2026-09-11-0001-constant/receipts/04-verify.json +1 -0
  190. onetrace-0.1.0/exam/fixtures/ingest-r1/COMPARE_B_vs_A.txt +37 -0
  191. onetrace-0.1.0/exam/fixtures/ingest-r1/COMPARE_B_vs_C.txt +35 -0
  192. onetrace-0.1.0/exam/fixtures/ingest-r1/README.md +141 -0
  193. onetrace-0.1.0/exam/fixtures/ingest-r1/RESULTS_B_vs_A.json +53 -0
  194. onetrace-0.1.0/exam/fixtures/ingest-r1/RESULTS_B_vs_C.json +53 -0
  195. onetrace-0.1.0/exam/fixtures/ingest-r1/SHA256SUMS +134 -0
  196. onetrace-0.1.0/exam/fixtures/ingest-r1/canonicalize.py +60 -0
  197. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/fixtures/FIXTURE-A_master_services_agreement.txt +38 -0
  198. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/fixtures/FIXTURE-B_data_processing_addendum.txt +25 -0
  199. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/fixtures/FIXTURE-C_support_terms.txt +24 -0
  200. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/pdf/FIXTURE-A_master_services_agreement.pdf +68 -0
  201. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/pdf/README-samples.pdf +93 -0
  202. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/pdf/verifier-specification.pdf +125 -0
  203. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/README.md +67 -0
  204. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/deposition-test.html +183 -0
  205. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/index.html +470 -0
  206. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/stage-records.html +402 -0
  207. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/validation-battery.md +306 -0
  208. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/verifier-specification.md +181 -0
  209. onetrace-0.1.0/exam/fixtures/ingest-r1/corpus/public/where-it-fits.html +314 -0
  210. onetrace-0.1.0/exam/fixtures/ingest-r1/pipeline.py +364 -0
  211. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/MANIFEST.json +1 -0
  212. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/answer.manifest.json +1 -0
  213. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/chunks.jsonl +587 -0
  214. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/chunks.manifest.json +1 -0
  215. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/cleaned.manifest.json +1 -0
  216. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/converted.manifest.json +1 -0
  217. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/documents.manifest.json +1 -0
  218. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/index.tsv +587 -0
  219. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/prompt.txt +11 -0
  220. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/question.txt +1 -0
  221. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/retrieved.manifest.json +1 -0
  222. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/artifacts/vectors.manifest.json +1 -0
  223. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/01-document-in.json +1 -0
  224. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/02-converted.json +1 -0
  225. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/03-cleaned.json +1 -0
  226. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/04-split.json +1 -0
  227. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/05-embedded.json +1 -0
  228. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/06-indexed.json +1 -0
  229. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/07-retrieved.json +1 -0
  230. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/08-prompt-built.json +1 -0
  231. onetrace-0.1.0/exam/fixtures/ingest-r1/run_A/receipts/09-answer.json +1 -0
  232. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/MANIFEST.json +1 -0
  233. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/answer.manifest.json +1 -0
  234. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/chunks.jsonl +113 -0
  235. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/chunks.manifest.json +1 -0
  236. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/cleaned.manifest.json +1 -0
  237. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/converted.manifest.json +1 -0
  238. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/documents.manifest.json +1 -0
  239. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/index.tsv +113 -0
  240. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/prompt.txt +11 -0
  241. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/question.txt +1 -0
  242. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/retrieved.manifest.json +1 -0
  243. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/artifacts/vectors.manifest.json +1 -0
  244. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/01-document-in.json +1 -0
  245. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/02-converted.json +1 -0
  246. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/03-cleaned.json +1 -0
  247. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/04-split.json +1 -0
  248. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/05-embedded.json +1 -0
  249. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/06-indexed.json +1 -0
  250. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/07-retrieved.json +1 -0
  251. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/08-prompt-built.json +1 -0
  252. onetrace-0.1.0/exam/fixtures/ingest-r1/run_B/receipts/09-answer.json +1 -0
  253. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/MANIFEST.json +1 -0
  254. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/artifacts/chunks.manifest.json +1 -0
  255. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/artifacts/cleaned.manifest.json +1 -0
  256. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/artifacts/converted.manifest.json +1 -0
  257. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/artifacts/documents.manifest.json +1 -0
  258. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/receipts/01-document-in.json +1 -0
  259. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/receipts/02-converted.json +1 -0
  260. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/receipts/03-cleaned.json +1 -0
  261. onetrace-0.1.0/exam/fixtures/ingest-r1/run_Bb/receipts/04-split.json +1 -0
  262. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/MANIFEST.json +1 -0
  263. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/answer.manifest.json +1 -0
  264. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/chunks.jsonl +116 -0
  265. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/chunks.manifest.json +1 -0
  266. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/cleaned.manifest.json +1 -0
  267. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/converted.manifest.json +1 -0
  268. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/documents.manifest.json +1 -0
  269. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/index.tsv +116 -0
  270. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/prompt.txt +11 -0
  271. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/question.txt +1 -0
  272. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/retrieved.manifest.json +1 -0
  273. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/artifacts/vectors.manifest.json +1 -0
  274. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/01-document-in.json +1 -0
  275. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/02-converted.json +1 -0
  276. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/03-cleaned.json +1 -0
  277. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/04-split.json +1 -0
  278. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/05-embedded.json +1 -0
  279. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/06-indexed.json +1 -0
  280. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/07-retrieved.json +1 -0
  281. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/08-prompt-built.json +1 -0
  282. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C/receipts/09-answer.json +1 -0
  283. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/MANIFEST.json +1 -0
  284. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/answer.manifest.json +1 -0
  285. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/chunks.jsonl +116 -0
  286. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/chunks.manifest.json +1 -0
  287. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/cleaned.manifest.json +1 -0
  288. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/converted.manifest.json +1 -0
  289. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/documents.manifest.json +1 -0
  290. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/index.tsv +116 -0
  291. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/prompt.txt +11 -0
  292. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/question.txt +1 -0
  293. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/retrieved.manifest.json +1 -0
  294. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/artifacts/vectors.manifest.json +1 -0
  295. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/01-document-in.json +1 -0
  296. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/02-converted.json +1 -0
  297. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/03-cleaned.json +1 -0
  298. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/04-split.json +1 -0
  299. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/05-embedded.json +1 -0
  300. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/06-indexed.json +1 -0
  301. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/07-retrieved.json +1 -0
  302. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/08-prompt-built.json +1 -0
  303. onetrace-0.1.0/exam/fixtures/ingest-r1/run_C_poppler24/receipts/09-answer.json +1 -0
  304. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/MANIFEST.json +1 -0
  305. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/answer.manifest.json +1 -0
  306. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/chunks.jsonl +113 -0
  307. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/chunks.manifest.json +1 -0
  308. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/cleaned.manifest.json +1 -0
  309. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/converted.manifest.json +1 -0
  310. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/documents.manifest.json +1 -0
  311. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/index.tsv +113 -0
  312. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/prompt.txt +11 -0
  313. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/question.txt +1 -0
  314. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/retrieved.manifest.json +1 -0
  315. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/artifacts/vectors.manifest.json +1 -0
  316. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/01-document-in.json +1 -0
  317. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/02-converted.json +1 -0
  318. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/03-cleaned.json +1 -0
  319. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/04-split.json +1 -0
  320. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/05-embedded.json +1 -0
  321. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/06-indexed.json +1 -0
  322. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/07-retrieved.json +1 -0
  323. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/08-prompt-built.json +1 -0
  324. onetrace-0.1.0/exam/fixtures/ingest-r1/run_D/receipts/09-answer.json +1 -0
  325. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/A_34/SUMMARY.json +53 -0
  326. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/A_34/perdoc.roots.json +16 -0
  327. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/A_341/SUMMARY.json +53 -0
  328. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/A_35/SUMMARY.json +53 -0
  329. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/A_COMPARE_loud.txt +24 -0
  330. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/A_COMPARE_quiet.txt +24 -0
  331. onetrace-0.1.0/exam/fixtures/ingest-r2-pod/STAGES.json +58 -0
  332. onetrace-0.1.0/exam/fixtures/merkle-inclusion-proof/PROOF.json +79 -0
  333. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/MANIFEST.json +1 -0
  334. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/artifacts/joined.json +1 -0
  335. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/artifacts/left.json +1 -0
  336. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/artifacts/right.json +1 -0
  337. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/receipts/01-zeta.json +1 -0
  338. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/receipts/02-alpha.json +1 -0
  339. onetrace-0.1.0/exam/fixtures/plan-deviation-r17/receipts/03-join.json +1 -0
  340. onetrace-0.1.0/exam/fixtures/runB/RUNB_TABLE.json +181 -0
  341. onetrace-0.1.0/exam/fixtures/runB/canonicalize.py +60 -0
  342. onetrace-0.1.0/exam/fixtures/runB/chunks_587.jsonl +587 -0
  343. onetrace-0.1.0/exam/fixtures/runB/pipeline_runb.py +213 -0
  344. onetrace-0.1.0/exam/fixtures/runB/runB.runner.json +45 -0
  345. onetrace-0.1.0/exam/fixtures/runB/run_P1/MANIFEST.json +1 -0
  346. onetrace-0.1.0/exam/fixtures/runB/run_P1/artifacts/answer.manifest.json +1 -0
  347. onetrace-0.1.0/exam/fixtures/runB/run_P1/artifacts/chunks.jsonl +587 -0
  348. onetrace-0.1.0/exam/fixtures/runB/run_P1/artifacts/question.txt +1 -0
  349. onetrace-0.1.0/exam/fixtures/runB/run_P1/artifacts/retrieved.manifest.json +1 -0
  350. onetrace-0.1.0/exam/fixtures/runB/run_P1/artifacts/vectors.f32 +0 -0
  351. onetrace-0.1.0/exam/fixtures/runB/run_P1/artifacts/vectors.ids +587 -0
  352. onetrace-0.1.0/exam/fixtures/runB/run_P1/receipts/01-chunks-in.json +1 -0
  353. onetrace-0.1.0/exam/fixtures/runB/run_P1/receipts/02-embedded.json +1 -0
  354. onetrace-0.1.0/exam/fixtures/runB/run_P1/receipts/03-retrieved.json +1 -0
  355. onetrace-0.1.0/exam/fixtures/runB/run_P1/receipts/04-answer.json +1 -0
  356. onetrace-0.1.0/exam/fixtures/runB/run_P16/MANIFEST.json +1 -0
  357. onetrace-0.1.0/exam/fixtures/runB/run_P16/artifacts/answer.manifest.json +1 -0
  358. onetrace-0.1.0/exam/fixtures/runB/run_P16/artifacts/chunks.jsonl +587 -0
  359. onetrace-0.1.0/exam/fixtures/runB/run_P16/artifacts/question.txt +1 -0
  360. onetrace-0.1.0/exam/fixtures/runB/run_P16/artifacts/retrieved.manifest.json +1 -0
  361. onetrace-0.1.0/exam/fixtures/runB/run_P16/artifacts/vectors.f32 +0 -0
  362. onetrace-0.1.0/exam/fixtures/runB/run_P16/artifacts/vectors.ids +587 -0
  363. onetrace-0.1.0/exam/fixtures/runB/run_P16/receipts/01-chunks-in.json +1 -0
  364. onetrace-0.1.0/exam/fixtures/runB/run_P16/receipts/02-embedded.json +1 -0
  365. onetrace-0.1.0/exam/fixtures/runB/run_P16/receipts/03-retrieved.json +1 -0
  366. onetrace-0.1.0/exam/fixtures/runB/run_P16/receipts/04-answer.json +1 -0
  367. onetrace-0.1.0/exam/fixtures/runB/run_P256/MANIFEST.json +1 -0
  368. onetrace-0.1.0/exam/fixtures/runB/run_P256/artifacts/answer.manifest.json +1 -0
  369. onetrace-0.1.0/exam/fixtures/runB/run_P256/artifacts/chunks.jsonl +587 -0
  370. onetrace-0.1.0/exam/fixtures/runB/run_P256/artifacts/question.txt +1 -0
  371. onetrace-0.1.0/exam/fixtures/runB/run_P256/artifacts/retrieved.manifest.json +1 -0
  372. onetrace-0.1.0/exam/fixtures/runB/run_P256/artifacts/vectors.f32 +0 -0
  373. onetrace-0.1.0/exam/fixtures/runB/run_P256/artifacts/vectors.ids +587 -0
  374. onetrace-0.1.0/exam/fixtures/runB/run_P256/receipts/01-chunks-in.json +1 -0
  375. onetrace-0.1.0/exam/fixtures/runB/run_P256/receipts/02-embedded.json +1 -0
  376. onetrace-0.1.0/exam/fixtures/runB/run_P256/receipts/03-retrieved.json +1 -0
  377. onetrace-0.1.0/exam/fixtures/runB/run_P256/receipts/04-answer.json +1 -0
  378. onetrace-0.1.0/exam/fixtures/runB/run_P32/MANIFEST.json +1 -0
  379. onetrace-0.1.0/exam/fixtures/runB/run_P32/artifacts/answer.manifest.json +1 -0
  380. onetrace-0.1.0/exam/fixtures/runB/run_P32/artifacts/chunks.jsonl +587 -0
  381. onetrace-0.1.0/exam/fixtures/runB/run_P32/artifacts/question.txt +1 -0
  382. onetrace-0.1.0/exam/fixtures/runB/run_P32/artifacts/retrieved.manifest.json +1 -0
  383. onetrace-0.1.0/exam/fixtures/runB/run_P32/artifacts/vectors.f32 +0 -0
  384. onetrace-0.1.0/exam/fixtures/runB/run_P32/artifacts/vectors.ids +587 -0
  385. onetrace-0.1.0/exam/fixtures/runB/run_P32/receipts/01-chunks-in.json +1 -0
  386. onetrace-0.1.0/exam/fixtures/runB/run_P32/receipts/02-embedded.json +1 -0
  387. onetrace-0.1.0/exam/fixtures/runB/run_P32/receipts/03-retrieved.json +1 -0
  388. onetrace-0.1.0/exam/fixtures/runB/run_P32/receipts/04-answer.json +1 -0
  389. onetrace-0.1.0/exam/fixtures/runB/run_U/MANIFEST.json +1 -0
  390. onetrace-0.1.0/exam/fixtures/runB/run_U/artifacts/answer.manifest.json +1 -0
  391. onetrace-0.1.0/exam/fixtures/runB/run_U/artifacts/chunks.jsonl +587 -0
  392. onetrace-0.1.0/exam/fixtures/runB/run_U/artifacts/question.txt +1 -0
  393. onetrace-0.1.0/exam/fixtures/runB/run_U/artifacts/retrieved.manifest.json +1 -0
  394. onetrace-0.1.0/exam/fixtures/runB/run_U/artifacts/vectors.f32 +0 -0
  395. onetrace-0.1.0/exam/fixtures/runB/run_U/artifacts/vectors.ids +587 -0
  396. onetrace-0.1.0/exam/fixtures/runB/run_U/receipts/01-chunks-in.json +1 -0
  397. onetrace-0.1.0/exam/fixtures/runB/run_U/receipts/02-embedded.json +1 -0
  398. onetrace-0.1.0/exam/fixtures/runB/run_U/receipts/03-retrieved.json +1 -0
  399. onetrace-0.1.0/exam/fixtures/runB/run_U/receipts/04-answer.json +1 -0
  400. onetrace-0.1.0/exam/fixtures/two-root/merkle.py +55 -0
  401. onetrace-0.1.0/exam/fixtures/two-root/pipeline2.py +353 -0
  402. onetrace-0.1.0/exam/fixtures/two-root/run_A/SUMMARY.json +125 -0
  403. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/chunkindex/shard-00000.jsonl +44 -0
  404. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/chunkindex/shard-00001.jsonl +38 -0
  405. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/chunkindex/shard-00002.jsonl +31 -0
  406. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/chunks/shard-00000.jsonl +44 -0
  407. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/chunks/shard-00001.jsonl +38 -0
  408. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/chunks/shard-00002.jsonl +31 -0
  409. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/perdoc.roots.json +16 -0
  410. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/vectors.f32 +0 -0
  411. onetrace-0.1.0/exam/fixtures/two-root/run_A/artifacts/vectors.ids +113 -0
  412. onetrace-0.1.0/exam/fixtures/two-root/run_A/receipts/docs/shard-00000.jsonl +20 -0
  413. onetrace-0.1.0/exam/fixtures/two-root/run_A/receipts/docs/shard-00001.jsonl +16 -0
  414. onetrace-0.1.0/exam/fixtures/two-root/run_A/receipts/docs/shard-00002.jsonl +16 -0
  415. onetrace-0.1.0/exam/fixtures/two-root/run_B/SUMMARY.json +125 -0
  416. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/chunkindex/shard-00000.jsonl +44 -0
  417. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/chunkindex/shard-00001.jsonl +38 -0
  418. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/chunkindex/shard-00002.jsonl +31 -0
  419. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/chunks/shard-00000.jsonl +44 -0
  420. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/chunks/shard-00001.jsonl +38 -0
  421. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/chunks/shard-00002.jsonl +31 -0
  422. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/perdoc.roots.json +16 -0
  423. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/vectors.f32 +0 -0
  424. onetrace-0.1.0/exam/fixtures/two-root/run_B/artifacts/vectors.ids +113 -0
  425. onetrace-0.1.0/exam/fixtures/two-root/run_B/receipts/docs/shard-00000.jsonl +20 -0
  426. onetrace-0.1.0/exam/fixtures/two-root/run_B/receipts/docs/shard-00001.jsonl +16 -0
  427. onetrace-0.1.0/exam/fixtures/two-root/run_B/receipts/docs/shard-00002.jsonl +16 -0
  428. onetrace-0.1.0/exam/fixtures/two-root/run_C/SUMMARY.json +125 -0
  429. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/chunkindex/shard-00000.jsonl +45 -0
  430. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/chunkindex/shard-00001.jsonl +40 -0
  431. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/chunkindex/shard-00002.jsonl +31 -0
  432. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/chunks/shard-00000.jsonl +45 -0
  433. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/chunks/shard-00001.jsonl +40 -0
  434. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/chunks/shard-00002.jsonl +31 -0
  435. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/perdoc.roots.json +16 -0
  436. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/vectors.f32 +0 -0
  437. onetrace-0.1.0/exam/fixtures/two-root/run_C/artifacts/vectors.ids +116 -0
  438. onetrace-0.1.0/exam/fixtures/two-root/run_C/receipts/docs/shard-00000.jsonl +20 -0
  439. onetrace-0.1.0/exam/fixtures/two-root/run_C/receipts/docs/shard-00001.jsonl +16 -0
  440. onetrace-0.1.0/exam/fixtures/two-root/run_C/receipts/docs/shard-00002.jsonl +16 -0
  441. onetrace-0.1.0/exam/fixtures/two-root/run_D/SUMMARY.json +125 -0
  442. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunkindex/shard-00000.jsonl +34 -0
  443. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunkindex/shard-00001.jsonl +17 -0
  444. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunkindex/shard-00002.jsonl +20 -0
  445. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunkindex/shard-00003.jsonl +12 -0
  446. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunkindex/shard-00004.jsonl +30 -0
  447. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunks/shard-00000.jsonl +34 -0
  448. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunks/shard-00001.jsonl +17 -0
  449. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunks/shard-00002.jsonl +20 -0
  450. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunks/shard-00003.jsonl +12 -0
  451. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/chunks/shard-00004.jsonl +30 -0
  452. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/perdoc.roots.json +16 -0
  453. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/vectors.f32 +0 -0
  454. onetrace-0.1.0/exam/fixtures/two-root/run_D/artifacts/vectors.ids +113 -0
  455. onetrace-0.1.0/exam/fixtures/two-root/run_D/receipts/docs/shard-00000.jsonl +12 -0
  456. onetrace-0.1.0/exam/fixtures/two-root/run_D/receipts/docs/shard-00001.jsonl +12 -0
  457. onetrace-0.1.0/exam/fixtures/two-root/run_D/receipts/docs/shard-00002.jsonl +12 -0
  458. onetrace-0.1.0/exam/fixtures/two-root/run_D/receipts/docs/shard-00003.jsonl +8 -0
  459. onetrace-0.1.0/exam/fixtures/two-root/run_D/receipts/docs/shard-00004.jsonl +8 -0
  460. onetrace-0.1.0/exam/requirements.txt +8 -0
  461. onetrace-0.1.0/examples/PIN_DISCIPLINE.md +71 -0
  462. onetrace-0.1.0/examples/concurrency/README.md +71 -0
  463. onetrace-0.1.0/examples/concurrency/nostage.py +90 -0
  464. onetrace-0.1.0/examples/concurrency/pipeline.py +148 -0
  465. onetrace-0.1.0/examples/dag/corpus/alpha.txt +2 -0
  466. onetrace-0.1.0/examples/dag/corpus/beta.txt +2 -0
  467. onetrace-0.1.0/examples/dag/corpus/delta.txt +2 -0
  468. onetrace-0.1.0/examples/dag/corpus/gamma.txt +2 -0
  469. onetrace-0.1.0/examples/dag/pipeline.py +202 -0
  470. onetrace-0.1.0/examples/digest/README.md +53 -0
  471. onetrace-0.1.0/examples/golden/corpus.json +8 -0
  472. onetrace-0.1.0/examples/golden/pipeline.py +105 -0
  473. onetrace-0.1.0/examples/golden/question.txt +1 -0
  474. onetrace-0.1.0/examples/golden/run/MANIFEST.json +1 -0
  475. onetrace-0.1.0/examples/golden/run/SHA256SUMS +9 -0
  476. onetrace-0.1.0/examples/golden/run/artifacts/01-retrieve/candidates.json +1 -0
  477. onetrace-0.1.0/examples/golden/run/artifacts/02-rerank/ranked.json +1 -0
  478. onetrace-0.1.0/examples/golden/run/artifacts/03-generate/answer.json +1 -0
  479. onetrace-0.1.0/examples/golden/run/artifacts/04-verify/check.json +1 -0
  480. onetrace-0.1.0/examples/golden/run/receipts/01-retrieve.json +1 -0
  481. onetrace-0.1.0/examples/golden/run/receipts/02-rerank.json +1 -0
  482. onetrace-0.1.0/examples/golden/run/receipts/03-generate.json +1 -0
  483. onetrace-0.1.0/examples/golden/run/receipts/04-verify.json +1 -0
  484. onetrace-0.1.0/examples/ingest_r1_via_sdk/README.md +58 -0
  485. onetrace-0.1.0/examples/ingest_r1_via_sdk/pipeline.py +409 -0
  486. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/MANIFEST.json +1 -0
  487. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/SHA256SUMS +20 -0
  488. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/01-document-in/documents.manifest.json +1 -0
  489. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/02-converted/converted.manifest.json +1 -0
  490. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/03-cleaned/cleaned.manifest.json +1 -0
  491. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/04-split/chunks.manifest.json +1 -0
  492. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/05-embedded/vectors.manifest.json +1 -0
  493. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/06-indexed/index.manifest.json +1 -0
  494. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/07-retrieved/retrieved.manifest.json +1 -0
  495. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/08-prompt-built/prompt.manifest.json +1 -0
  496. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/08-prompt-built/prompt.txt +11 -0
  497. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/artifacts/09-answer/answer.json +1 -0
  498. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/01-document-in.json +1 -0
  499. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/02-converted.json +1 -0
  500. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/03-cleaned.json +1 -0
  501. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/04-split.json +1 -0
  502. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/05-embedded.json +1 -0
  503. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/06-indexed.json +1 -0
  504. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/07-retrieved.json +1 -0
  505. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/08-prompt-built.json +1 -0
  506. onetrace-0.1.0/examples/ingest_r1_via_sdk/run/receipts/09-answer.json +1 -0
  507. onetrace-0.1.0/examples/langchain_adapter/pipeline.py +342 -0
  508. onetrace-0.1.0/examples/langchain_adapter/question.txt +1 -0
  509. onetrace-0.1.0/examples/langchain_adapter/requirements.txt +16 -0
  510. onetrace-0.1.0/examples/langchain_adapter/run/MANIFEST.json +1 -0
  511. onetrace-0.1.0/examples/langchain_adapter/run/SHA256SUMS +19 -0
  512. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/01-document-in/documents.manifest.json +1 -0
  513. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/02-converted/converted.manifest.json +1 -0
  514. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/03-cleaned/cleaned.manifest.json +1 -0
  515. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/04-split/chunks.manifest.json +1 -0
  516. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/05-embedded/vectors.manifest.json +1 -0
  517. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/06-indexed/index.manifest.json +1 -0
  518. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/07-retrieved/retrieved.manifest.json +1 -0
  519. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/08-prompt-built/prompt.txt +48 -0
  520. onetrace-0.1.0/examples/langchain_adapter/run/artifacts/09-answer/answer.json +1 -0
  521. onetrace-0.1.0/examples/langchain_adapter/run/receipts/01-document-in.json +1 -0
  522. onetrace-0.1.0/examples/langchain_adapter/run/receipts/02-converted.json +1 -0
  523. onetrace-0.1.0/examples/langchain_adapter/run/receipts/03-cleaned.json +1 -0
  524. onetrace-0.1.0/examples/langchain_adapter/run/receipts/04-split.json +1 -0
  525. onetrace-0.1.0/examples/langchain_adapter/run/receipts/05-embedded.json +1 -0
  526. onetrace-0.1.0/examples/langchain_adapter/run/receipts/06-indexed.json +1 -0
  527. onetrace-0.1.0/examples/langchain_adapter/run/receipts/07-retrieved.json +1 -0
  528. onetrace-0.1.0/examples/langchain_adapter/run/receipts/08-prompt-built.json +1 -0
  529. onetrace-0.1.0/examples/langchain_adapter/run/receipts/09-answer.json +1 -0
  530. onetrace-0.1.0/examples/langflow_adapter/pip_freeze.txt +334 -0
  531. onetrace-0.1.0/examples/langflow_adapter/pipeline.py +374 -0
  532. onetrace-0.1.0/examples/langflow_adapter/requirements.txt +5 -0
  533. onetrace-0.1.0/examples/langflow_adapter/run/MANIFEST.json +1 -0
  534. onetrace-0.1.0/examples/langflow_adapter/run/SHA256SUMS +19 -0
  535. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/01-document-in/documents.manifest.json +1 -0
  536. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/02-converted/converted.json +1 -0
  537. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/03-cleaned/cleaned.json +1 -0
  538. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/04-split/chunks.json +1 -0
  539. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/05-embedded/vectors.json +1 -0
  540. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/06-indexed/index.json +1 -0
  541. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/07-retrieved/retrieved.json +1 -0
  542. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/08-prompt-built/prompt.json +1 -0
  543. onetrace-0.1.0/examples/langflow_adapter/run/artifacts/09-answer/answer.json +1 -0
  544. onetrace-0.1.0/examples/langflow_adapter/run/receipts/01-document-in.json +1 -0
  545. onetrace-0.1.0/examples/langflow_adapter/run/receipts/02-converted.json +1 -0
  546. onetrace-0.1.0/examples/langflow_adapter/run/receipts/03-cleaned.json +1 -0
  547. onetrace-0.1.0/examples/langflow_adapter/run/receipts/04-split.json +1 -0
  548. onetrace-0.1.0/examples/langflow_adapter/run/receipts/05-embedded.json +1 -0
  549. onetrace-0.1.0/examples/langflow_adapter/run/receipts/06-indexed.json +1 -0
  550. onetrace-0.1.0/examples/langflow_adapter/run/receipts/07-retrieved.json +1 -0
  551. onetrace-0.1.0/examples/langflow_adapter/run/receipts/08-prompt-built.json +1 -0
  552. onetrace-0.1.0/examples/langflow_adapter/run/receipts/09-answer.json +1 -0
  553. onetrace-0.1.0/examples/llamaindex_adapter/pip_freeze.txt +75 -0
  554. onetrace-0.1.0/examples/llamaindex_adapter/pipeline.py +344 -0
  555. onetrace-0.1.0/examples/llamaindex_adapter/requirements.txt +14 -0
  556. onetrace-0.1.0/examples/llamaindex_adapter/run/MANIFEST.json +1 -0
  557. onetrace-0.1.0/examples/llamaindex_adapter/run/SHA256SUMS +19 -0
  558. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/01-document-in/documents.manifest.json +1 -0
  559. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/02-converted/converted.json +1 -0
  560. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/03-cleaned/cleaned.json +1 -0
  561. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/04-split/chunks.json +1 -0
  562. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/05-embedded/vectors.json +1 -0
  563. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/06-indexed/index.json +1 -0
  564. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/07-retrieved/retrieved.json +1 -0
  565. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/08-prompt-built/prompt.json +1 -0
  566. onetrace-0.1.0/examples/llamaindex_adapter/run/artifacts/09-answer/answer.json +1 -0
  567. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/01-document-in.json +1 -0
  568. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/02-converted.json +1 -0
  569. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/03-cleaned.json +1 -0
  570. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/04-split.json +1 -0
  571. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/05-embedded.json +1 -0
  572. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/06-indexed.json +1 -0
  573. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/07-retrieved.json +1 -0
  574. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/08-prompt-built.json +1 -0
  575. onetrace-0.1.0/examples/llamaindex_adapter/run/receipts/09-answer.json +1 -0
  576. onetrace-0.1.0/examples/multiprocess/README.md +64 -0
  577. onetrace-0.1.0/examples/plain_python_control/pipeline.py +373 -0
  578. onetrace-0.1.0/examples/plain_python_control/question.txt +1 -0
  579. onetrace-0.1.0/examples/plain_python_control/requirements.txt +2 -0
  580. onetrace-0.1.0/examples/plain_python_control/run/MANIFEST.json +1 -0
  581. onetrace-0.1.0/examples/plain_python_control/run/SHA256SUMS +19 -0
  582. onetrace-0.1.0/examples/plain_python_control/run/artifacts/01-document-in/documents.manifest.json +1 -0
  583. onetrace-0.1.0/examples/plain_python_control/run/artifacts/02-converted/converted.manifest.json +1 -0
  584. onetrace-0.1.0/examples/plain_python_control/run/artifacts/03-cleaned/cleaned.manifest.json +1 -0
  585. onetrace-0.1.0/examples/plain_python_control/run/artifacts/04-split/chunks.manifest.json +1 -0
  586. onetrace-0.1.0/examples/plain_python_control/run/artifacts/05-embedded/vectors.manifest.json +1 -0
  587. onetrace-0.1.0/examples/plain_python_control/run/artifacts/06-indexed/index.manifest.json +1 -0
  588. onetrace-0.1.0/examples/plain_python_control/run/artifacts/07-retrieved/retrieved.manifest.json +1 -0
  589. onetrace-0.1.0/examples/plain_python_control/run/artifacts/08-prompt-built/prompt.txt +55 -0
  590. onetrace-0.1.0/examples/plain_python_control/run/artifacts/09-answer/answer.json +1 -0
  591. onetrace-0.1.0/examples/plain_python_control/run/receipts/01-document-in.json +1 -0
  592. onetrace-0.1.0/examples/plain_python_control/run/receipts/02-converted.json +1 -0
  593. onetrace-0.1.0/examples/plain_python_control/run/receipts/03-cleaned.json +1 -0
  594. onetrace-0.1.0/examples/plain_python_control/run/receipts/04-split.json +1 -0
  595. onetrace-0.1.0/examples/plain_python_control/run/receipts/05-embedded.json +1 -0
  596. onetrace-0.1.0/examples/plain_python_control/run/receipts/06-indexed.json +1 -0
  597. onetrace-0.1.0/examples/plain_python_control/run/receipts/07-retrieved.json +1 -0
  598. onetrace-0.1.0/examples/plain_python_control/run/receipts/08-prompt-built.json +1 -0
  599. onetrace-0.1.0/examples/plain_python_control/run/receipts/09-answer.json +1 -0
  600. onetrace-0.1.0/examples/tiny/corpus/gamma.txt +3 -0
  601. onetrace-0.1.0/examples/tiny/corpus/notes/alpha.txt +5 -0
  602. onetrace-0.1.0/examples/tiny/corpus/notes/beta.txt +9 -0
  603. onetrace-0.1.0/examples/tiny/pipeline.py +112 -0
  604. onetrace-0.1.0/examples/tiny/tiny.runner.json +10 -0
  605. onetrace-0.1.0/pyproject.toml +129 -0
  606. onetrace-0.1.0/reference/canonicalize.py +60 -0
  607. onetrace-0.1.0/reference/verify_candidate_R43fix_2026-09-24.py +240 -0
  608. onetrace-0.1.0/scripts/setup_adapter_venvs.sh +47 -0
  609. onetrace-0.1.0/setup.cfg +4 -0
  610. onetrace-0.1.0/src/onetrace/__init__.py +16 -0
  611. onetrace-0.1.0/src/onetrace/__main__.py +5 -0
  612. onetrace-0.1.0/src/onetrace/canonical.py +82 -0
  613. onetrace-0.1.0/src/onetrace/chain.py +45 -0
  614. onetrace-0.1.0/src/onetrace/cli.py +122 -0
  615. onetrace-0.1.0/src/onetrace/digest.py +38 -0
  616. onetrace-0.1.0/src/onetrace/emission_check.py +111 -0
  617. onetrace-0.1.0/src/onetrace/emit.py +915 -0
  618. onetrace-0.1.0/src/onetrace/ladder.py +181 -0
  619. onetrace-0.1.0/src/onetrace/localize.py +600 -0
  620. onetrace-0.1.0/src/onetrace/merkle.py +93 -0
  621. onetrace-0.1.0/src/onetrace/records.py +283 -0
  622. onetrace-0.1.0/src/onetrace/report.py +315 -0
  623. onetrace-0.1.0/src/onetrace/reproduce.py +561 -0
  624. onetrace-0.1.0/src/onetrace/sdk_verify.py +738 -0
  625. onetrace-0.1.0/src/onetrace/topology.py +220 -0
  626. onetrace-0.1.0/src/onetrace/verifier_call.py +278 -0
  627. onetrace-0.1.0/src/onetrace/verify_pin.py +176 -0
  628. onetrace-0.1.0/src/onetrace.egg-info/PKG-INFO +255 -0
  629. onetrace-0.1.0/src/onetrace.egg-info/SOURCES.txt +725 -0
  630. onetrace-0.1.0/src/onetrace.egg-info/dependency_links.txt +1 -0
  631. onetrace-0.1.0/src/onetrace.egg-info/entry_points.txt +2 -0
  632. onetrace-0.1.0/src/onetrace.egg-info/requires.txt +30 -0
  633. onetrace-0.1.0/src/onetrace.egg-info/top_level.txt +1 -0
  634. onetrace-0.1.0/tests/ring.py +93 -0
  635. onetrace-0.1.0/tests/runners/dag.runner.json +17 -0
  636. onetrace-0.1.0/tests/runners/example-dag-partial.runner.json +13 -0
  637. onetrace-0.1.0/tests/runners/example-dag.runner.json +14 -0
  638. onetrace-0.1.0/tests/runners/ingest-r1.runner.json +10 -0
  639. onetrace-0.1.0/tests/runners/two-root.runner.json +10 -0
  640. onetrace-0.1.0/tests/test_appendix_a.py +65 -0
  641. onetrace-0.1.0/tests/test_concurrency.py +314 -0
  642. onetrace-0.1.0/tests/test_concurrency_fixtures.py +168 -0
  643. onetrace-0.1.0/tests/test_digest_helper.py +77 -0
  644. onetrace-0.1.0/tests/test_digest_source.py +125 -0
  645. onetrace-0.1.0/tests/test_directory_containment_guard.py +78 -0
  646. onetrace-0.1.0/tests/test_drop_ledger.py +320 -0
  647. onetrace-0.1.0/tests/test_emission_check_versioning.py +53 -0
  648. onetrace-0.1.0/tests/test_emitter.py +797 -0
  649. onetrace-0.1.0/tests/test_golden_chain.py +125 -0
  650. onetrace-0.1.0/tests/test_ingest_r1_via_sdk.py +286 -0
  651. onetrace-0.1.0/tests/test_instruments_declared.py +192 -0
  652. onetrace-0.1.0/tests/test_langchain_adapter.py +114 -0
  653. onetrace-0.1.0/tests/test_langflow_adapter.py +113 -0
  654. onetrace-0.1.0/tests/test_llamaindex_adapter.py +118 -0
  655. onetrace-0.1.0/tests/test_merkle.py +134 -0
  656. onetrace-0.1.0/tests/test_multiprocess_lock.py +117 -0
  657. onetrace-0.1.0/tests/test_onetrace_verify_vendored_files.py +88 -0
  658. onetrace-0.1.0/tests/test_plain_python_control.py +135 -0
  659. onetrace-0.1.0/tests/test_pytest_timeout_guard.py +51 -0
  660. onetrace-0.1.0/tests/test_reproduce.py +327 -0
  661. onetrace-0.1.0/tests/test_ring.py +373 -0
  662. onetrace-0.1.0/tests/test_ring3_blind_verification.py +153 -0
  663. onetrace-0.1.0/tests/test_run_identity.py +160 -0
  664. onetrace-0.1.0/tests/test_runb.py +94 -0
  665. onetrace-0.1.0/tests/test_sdk_verify.py +1018 -0
  666. onetrace-0.1.0/tests/test_sdk_verify_differential.py +234 -0
  667. onetrace-0.1.0/tests/test_sdk_verify_entrypoint.py +569 -0
  668. onetrace-0.1.0/tests/test_standing_briefs_equal.py +82 -0
  669. onetrace-0.1.0/tests/test_topology.py +718 -0
  670. onetrace-0.1.0/tests/test_units.py +103 -0
  671. onetrace-0.1.0/tests/test_verifier_call_default_dir.py +29 -0
  672. onetrace-0.1.0/tests/test_verify_chain_format.py +99 -0
  673. onetrace-0.1.0/tests/test_verify_pin.py +345 -0
  674. onetrace-0.1.0/tests/test_version_agreement.py +34 -0
  675. onetrace-0.1.0/verifier/MANIFEST.json +1 -0
  676. onetrace-0.1.0/verifier/README.md +67 -0
  677. onetrace-0.1.0/verifier/SHA256SUMS +30 -0
  678. onetrace-0.1.0/verifier/SHA256SUMS.shipped +25 -0
  679. onetrace-0.1.0/verifier/canonicalize.py +60 -0
  680. onetrace-0.1.0/verifier/check_dag_r37.py +77 -0
  681. onetrace-0.1.0/verifier/check_edition.py +33 -0
  682. onetrace-0.1.0/verifier/check_merkle_inclusion.py +83 -0
  683. onetrace-0.1.0/verifier/check_plan_deviation_r17.py +108 -0
  684. onetrace-0.1.0/verifier/check_rejections.py +18 -0
  685. onetrace-0.1.0/verifier/check_two_root_r50.py +83 -0
  686. onetrace-0.1.0/verifier/golden_0_1/MANIFEST.json +1 -0
  687. onetrace-0.1.0/verifier/golden_0_1/README.md +7 -0
  688. onetrace-0.1.0/verifier/golden_0_1/SHA256SUMS +9 -0
  689. onetrace-0.1.0/verifier/golden_0_1/artifacts/01-retrieve/candidates.json +1 -0
  690. onetrace-0.1.0/verifier/golden_0_1/artifacts/02-rerank/ranked.json +1 -0
  691. onetrace-0.1.0/verifier/golden_0_1/artifacts/03-generate/answer.json +1 -0
  692. onetrace-0.1.0/verifier/golden_0_1/artifacts/04-verify/check.json +1 -0
  693. onetrace-0.1.0/verifier/golden_0_1/receipts/01-retrieve.json +1 -0
  694. onetrace-0.1.0/verifier/golden_0_1/receipts/02-rerank.json +1 -0
  695. onetrace-0.1.0/verifier/golden_0_1/receipts/03-generate.json +1 -0
  696. onetrace-0.1.0/verifier/golden_0_1/receipts/04-verify.json +1 -0
  697. onetrace-0.1.0/verifier/merkle_proof.py +105 -0
  698. onetrace-0.1.0/verifier/receipts/01-retrieve.json +1 -0
  699. onetrace-0.1.0/verifier/receipts/02-rerank.json +1 -0
  700. onetrace-0.1.0/verifier/receipts/03-generate.json +1 -0
  701. onetrace-0.1.0/verifier/receipts/04-verify.json +1 -0
  702. onetrace-0.1.0/verifier/rejection/A01-unknown-key.json +1 -0
  703. onetrace-0.1.0/verifier/rejection/EXPECTED_REASON.json +234 -0
  704. onetrace-0.1.0/verifier/rejection/INDEX.json +82 -0
  705. onetrace-0.1.0/verifier/rejection/R01-json-number.json +1 -0
  706. onetrace-0.1.0/verifier/rejection/R02-null-instrument.json +1 -0
  707. onetrace-0.1.0/verifier/rejection/R03-timestamp-no-zone.json +1 -0
  708. onetrace-0.1.0/verifier/rejection/R04-missing-constants.json +1 -0
  709. onetrace-0.1.0/verifier/rejection/R05-untrusted-class.json +1 -0
  710. onetrace-0.1.0/verifier/rejection/R06-error-without-body.json +1 -0
  711. onetrace-0.1.0/verifier/rejection/R07-coverage-lie.json +1 -0
  712. onetrace-0.1.0/verifier/rejection/R08-anchor-absent.json +1 -0
  713. onetrace-0.1.0/verifier/rejection/R09-self-digest.json +1 -0
  714. onetrace-0.1.0/verifier/rejection/R10-not-canonical.json +75 -0
  715. onetrace-0.1.0/verifier/rejection/R11-empty-constants.json +1 -0
  716. onetrace-0.1.0/verifier/rejection/R12-duplicate-key.json +1 -0
  717. onetrace-0.1.0/verifier/rejection/R13-lone-surrogate.json +1 -0
  718. onetrace-0.1.0/verifier/rejection/R14-boundary-unplaceable.json +1 -0
  719. onetrace-0.1.0/verifier/rejection/R15-emitting-stages-lie.json +1 -0
  720. onetrace-0.1.0/verifier/rejection/R16-unknown-format.json +1 -0
  721. onetrace-0.1.0/verifier/rejection/R18-secret-input-refused.json +1 -0
  722. onetrace-0.1.0/verifier/run_checks.sh +15 -0
  723. onetrace-0.1.0/verifier/validation-battery.md +306 -0
  724. onetrace-0.1.0/verifier/verifier-specification.md +181 -0
  725. onetrace-0.1.0/verifier/verify.py +135 -0
  726. onetrace-0.1.0/verifier/verify_roots.py +58 -0
  727. onetrace-0.1.0/verifier/verify_topology.py +75 -0
@@ -0,0 +1,112 @@
1
+ # Changelog
2
+
3
+ Generated from `git log a1d46e1..HEAD -- src/ examples/` (this repository's first commit through
4
+ the current commit) — the only diff basis that exists, since `onetrace` has not yet had a
5
+ released version to diff against. Grouped by area below; every line traces to a real commit in
6
+ that log, not written from memory. Once a first release is tagged, later entries will diff
7
+ against it instead.
8
+
9
+ ## [Unreleased]
10
+
11
+ ### Breaking
12
+
13
+ - **`onetrace-verify`: `import verify` and `import canonicalize` no longer work (`ce8e357`).**
14
+ Before this commit, `onetrace-verify`'s wheel installed `verify.py` and `canonicalize.py` as
15
+ loose top-level modules (`py-modules`) directly in site-packages, so a caller could
16
+ `import verify` after `pip install onetrace-verify`. Fixing
17
+ `onetrace.verifier_call.default_verifier_dir()` (a real product defect: it resolved to a
18
+ path that does not exist under a real wheel install) required these two files to live
19
+ somewhere `importlib.resources` can hand back a directory for, so they moved inside the
20
+ `onetrace_verify` package itself (`onetrace_verify/verify.py`,
21
+ `onetrace_verify/canonicalize.py`) as package data. They are not meant to be imported as
22
+ ordinary Python modules there — `onetrace.verifier_call.load()` reads their bytes, checks
23
+ them against `SHA256SUMS.shipped`, and executes exactly those checked bytes, the same
24
+ mechanism it always used. A caller that needs the raw source directly can do:
25
+
26
+ ```python
27
+ import importlib.resources
28
+ verify_py = importlib.resources.files("onetrace_verify") / "verify.py"
29
+ ```
30
+
31
+ No compatibility shim restores the bare `import verify` / `import canonicalize` form: the
32
+ only way to make it work again is either an import-time side effect that populates
33
+ `sys.modules["verify"]` whenever `onetrace_verify` happens to be imported (fragile — it
34
+ depends on import order a caller doesn't control) or asking every caller to change their own
35
+ code first (not "at no cost" either way). Pre-release, this break is accepted as-is rather
36
+ than papered over with something fragile.
37
+
38
+ ### SDK core and the three verbs
39
+
40
+ - Stage-receipt emission (`onetrace.emit`), the record model (`onetrace.records`), and canonical
41
+ form (`onetrace.canonical`).
42
+ - `diff`, `localize`, and `reproduce`, each calling the reference verifier before comparing
43
+ anything, never trusting a record the verifier hasn't checked.
44
+ - `localize --doc`: one document's chunk sets under two runs, digest by digest.
45
+ - Topology support: fan-out, fan-in, and loops as an additive extension over the original linear
46
+ chain — `stage.instance`, `receipt:<node id>` inputs, `edges`/`declared_edges` in the manifest,
47
+ and `diff`/`localize`/`reproduce` all extended to a DAG shape.
48
+ - `reproduce`: an upstream COULD NOT CHECK stage never lets a downstream one report DIVERGED.
49
+ - `localize` on a single run: an ambiguous bare stage name is refused, not guessed at.
50
+
51
+ ### Emission guarantees
52
+
53
+ - The drop ledger (`rec.gap`) and boundaries (`rec.boundary`), and the "complete" claim's own
54
+ second half — `boundaries` empty, not just every declared stage present.
55
+ - Instruments declared once at initialisation, shared across every instance of a repeated stage.
56
+ - Verify-pin hooks: the reference verifier runs after a receipt (or after the whole run) and its
57
+ rows are written beside the record, never inside it.
58
+ - Atomic writes for every receipt and the manifest (write-fsync-replace, so a crash mid-write
59
+ never leaves a half-written file where a reader expects a whole one).
60
+ - `KeyboardInterrupt`/`CancelledError` during a stage are recorded as an error outcome, not
61
+ silently swallowed.
62
+ - A run's own store-growth bound (`max_run_bytes`), refusing further writes past it rather than
63
+ writing an over-bound artifact.
64
+ - The secrets guard: an input declared `trust_class: "secret"` is never digested, by the emitter
65
+ or by the verifier checking a hand-built record after the fact.
66
+ - One run, one process: a lock file held for the run's lifetime.
67
+ - Run identity: `run_id`, generated or caller-supplied, and `run_id_source` naming which; the
68
+ chain-manifest format moved to `stage-receipt-chain/0.2` to carry it.
69
+ - `ctx.reference`/`onetrace.digest`: a streamed digest over a path, for an artifact a stage
70
+ doesn't need the bytes of in Python, with `digest_source` (`caller` vs `emitter`) on the
71
+ receipt.
72
+
73
+ ### The SDK-side build verifier (`onetrace.sdk_verify`)
74
+
75
+ A second, independent implementation of every check the reference verifier performs, built to
76
+ answer register requirement #9: `python -m onetrace.sdk_verify MANIFEST.json [OUT_DIR]` prints a
77
+ row per check and writes the same report as JSON beside the text when `OUT_DIR` is given.
78
+
79
+ - The full per-receipt check set (required fields, canonical form, duplicate keys, lone
80
+ surrogates, the format-version check, timestamps and their zones, instrument naming,
81
+ trust classes, outcome shape, coverage/completeness, anchor state) and the whole-chain checks
82
+ (digest and link integrity, chain head, emission order, plan conformance against declared
83
+ edges).
84
+ - Five checks the format's own Internet-Draft names as missing from the preview verifier:
85
+ `"complete"` implies empty `boundaries`; `"ended"` does not precede `"started"`; `"prev"` is
86
+ null exactly when `"index"` is `"1"`; `"rederivable"` is one of its two literal string values;
87
+ the chain manifest's `run_id` equals every receipt's.
88
+ - Merkle inclusion proofs for a corpus-manifest reference to one member, without needing the rest
89
+ of the corpus.
90
+ - External effects (`effects`): each entry's `target` and one of three declared states.
91
+ - A chain's `digest_source` count (caller vs. emitter), observational, never a refusal.
92
+ - Malformed input FAILs cleanly instead of raising a host exception (an unhashable value where a
93
+ string was expected, a non-dict receipt, a malformed Merkle proof).
94
+ - A real RFC 3339 offset pattern for the timestamp-zone check, replacing a coincidental
95
+ character-position match that let a bare date string (no time, no zone at all) pass.
96
+
97
+ ### Examples
98
+
99
+ - `examples/golden`: a small, deterministic four-stage chain (retrieve, rerank, generate, verify)
100
+ with no network and no model, emitted through the SDK.
101
+ - `examples/langchain_adapter`: a real LangChain-based pipeline over the same nine-stage,
102
+ thirteen-document contract, with its own pinned-version refusal and regression test.
103
+ - `examples/langflow_adapter`: the same contract built with Langflow, including custom components
104
+ where the framework's own constructs needed infrastructure disproportionate to a small offline
105
+ demo.
106
+
107
+ ### Fixed
108
+
109
+ - A two-root, run-scoped instrument case in the ladder/localize path.
110
+ - A batch of malformed-input crashes, a coincidental timestamp-zone-check pass, a rejection-vector
111
+ text mismatch, and a vector-number mislabeling, found by a deliberate audit of this project's
112
+ own checks and rejection vectors and fixed in one pass.
onetrace-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,16 @@
1
+ # The sdist's own file list. Without this, setuptools' default rules include only src/ (the
2
+ # installable package) plus a short list of root metadata files -- silently dropping exam/ and
3
+ # verifier/, which tests/ring.py needs to run at all.
4
+ include LICENSE
5
+ include README.md
6
+ include CHANGELOG.md
7
+ include SECURITY.md
8
+ recursive-include exam *
9
+ recursive-include examples *
10
+ recursive-include reference *
11
+ recursive-include scripts *
12
+ recursive-include tests *
13
+ recursive-include verifier *
14
+ recursive-include draft *
15
+ prune */__pycache__
16
+ global-exclude *.pyc
@@ -0,0 +1,255 @@
1
+ Metadata-Version: 2.4
2
+ Name: onetrace
3
+ Version: 0.1.0
4
+ Summary: onetrace SDK: stage-receipt records and the verbs diff, localize, reproduce
5
+ Author-email: Shamik Saha <shamik.saha.rcciit@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Keywords: provenance,reproducibility,data-lineage,stage-receipt,audit-trail
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Requires-Python: >=3.10
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: onetrace-verify>=0.1.0
19
+ Provides-Extra: test
20
+ Requires-Dist: pytest>=8; extra == "test"
21
+ Requires-Dist: pytest-asyncio; extra == "test"
22
+ Requires-Dist: pytest-timeout>=2.3; extra == "test"
23
+ Requires-Dist: numpy<3,>=2.1; extra == "test"
24
+ Provides-Extra: langchain
25
+ Requires-Dist: beautifulsoup4==4.15.0; extra == "langchain"
26
+ Requires-Dist: langchain==1.4.2; extra == "langchain"
27
+ Requires-Dist: langchain-classic==1.0.8; extra == "langchain"
28
+ Requires-Dist: langchain-community==0.4.2; extra == "langchain"
29
+ Requires-Dist: langchain-core==1.6.5; extra == "langchain"
30
+ Requires-Dist: langchain-protocol==0.0.19; extra == "langchain"
31
+ Requires-Dist: langchain-text-splitters==1.1.2; extra == "langchain"
32
+ Requires-Dist: numpy==2.5.3; extra == "langchain"
33
+ Requires-Dist: pypdf==6.19.0; extra == "langchain"
34
+ Provides-Extra: llamaindex
35
+ Requires-Dist: llama-index-core==0.14.25; extra == "llamaindex"
36
+ Requires-Dist: llama-index-readers-file==0.7.0; extra == "llamaindex"
37
+ Requires-Dist: llama-index-instrumentation==0.6.0; extra == "llamaindex"
38
+ Requires-Dist: llama-index-workflows==2.24.1; extra == "llamaindex"
39
+ Requires-Dist: pypdf==6.19.0; extra == "llamaindex"
40
+ Requires-Dist: numpy==2.4.6; extra == "llamaindex"
41
+ Provides-Extra: langflow
42
+ Requires-Dist: langflow-base==1.12.3; extra == "langflow"
43
+ Requires-Dist: lfx==1.12.3; extra == "langflow"
44
+ Dynamic: license-file
45
+
46
+ # onetrace
47
+
48
+ onetrace is an SDK for emitting and verifying *stage receipts*: a signed, chained record of what
49
+ a pipeline actually did at each step, checkable independently of the code that produced it.
50
+ onetrace does not check whether a pipeline's output is *true* — it checks what was recorded, and
51
+ whether an independent verifier can confirm that record is internally consistent and unbroken.
52
+ Truth is a claim about the world; onetrace only ever speaks to what was recorded and what a
53
+ verifier could confirm about it.
54
+
55
+ ## Install and quickstart
56
+
57
+ ```
58
+ pip install onetrace
59
+ ```
60
+
61
+ `onetrace-verify` (the reference verifier, standard library only) comes along automatically —
62
+ it is a declared dependency, not an extra step.
63
+
64
+ Save this as `demo.py`. It emits a two-stage run with no network, no model, and no file beyond
65
+ itself:
66
+
67
+ ```python
68
+ #!/usr/bin/env python3
69
+ """onetrace quickstart demo: two stages, no network, no model, deterministic."""
70
+ import json
71
+ import sys
72
+ from pathlib import Path
73
+
74
+ from onetrace.emit import Instrument, Recorder
75
+
76
+ QUESTION = "What does the warranty cover?"
77
+ CORPUS = [
78
+ {"id": "p1", "text": "The warranty covers manufacturing defects for twelve months."},
79
+ {"id": "p2", "text": "Shipping delays are handled by the logistics partner, not the warranty."},
80
+ {"id": "p3", "text": "Batteries are covered by a separate six-month warranty."},
81
+ ]
82
+
83
+
84
+ def main(out_dir: str, run_id: str) -> None:
85
+ out = Path(out_dir)
86
+ out.mkdir(parents=True, exist_ok=True)
87
+ corpus_path = out / "corpus.json"
88
+ corpus_path.write_text(json.dumps(CORPUS), encoding="utf-8")
89
+
90
+ rec = Recorder(out_dir, run_id=run_id, declared_stages=["retrieve", "answer"],
91
+ manifest=Path(__file__), policy="fail-closed",
92
+ anchor_reason="quickstart demo; epoch anchoring is not implemented")
93
+
94
+ retrieve_cfg = {"tokenizer": "lower-split", "top_k": "1"}
95
+
96
+ @rec.stage("retrieve", Instrument("word-overlap", "retriever", "1.0.0", retrieve_cfg))
97
+ def retrieve(ctx):
98
+ corpus = json.loads(
99
+ ctx.read_external(corpus_path, "application/json", name="corpus",
100
+ trust_class="operator-authored").decode("utf-8"))
101
+ qwords = set(QUESTION.lower().split())
102
+ scored = [(p["id"], p["text"], len(qwords & set(p["text"].lower().split())))
103
+ for p in corpus]
104
+ scored.sort(key=lambda s: (-s[2], s[0]))
105
+ best_id, best_text, _ = scored[0]
106
+ for k, v in retrieve_cfg.items():
107
+ ctx.constant(k, v)
108
+ ctx.assertion("candidate_count", str(len(corpus)))
109
+ return ctx.write_json("retrieved.json", {"id": best_id, "text": best_text})
110
+
111
+ answer_cfg = {"method": "extractive"}
112
+
113
+ @rec.stage("answer", Instrument("extractive", "answerer", "1.0.0", answer_cfg))
114
+ def answer(ctx, retrieved_artifact):
115
+ retrieved = ctx.read_json(retrieved_artifact)
116
+ for k, v in answer_cfg.items():
117
+ ctx.constant(k, v)
118
+ ctx.assertion("source", retrieved["id"])
119
+ return ctx.write_json("answer.json", {"answer": retrieved["text"], "cited": retrieved["id"]})
120
+
121
+ retrieved = retrieve()
122
+ answer(retrieved)
123
+
124
+
125
+ if __name__ == "__main__":
126
+ main(sys.argv[1], sys.argv[2])
127
+ ```
128
+
129
+ Emit two runs of it:
130
+
131
+ ```
132
+ python demo.py run_a run-a
133
+ python demo.py run_b run-b
134
+ ```
135
+
136
+ Verify one with the reference verifier:
137
+
138
+ ```
139
+ cd run_a && onetrace-verify .
140
+ ```
141
+
142
+ ```
143
+ [PASS ] receipts/01-retrieve.json: bytes are canonical
144
+ ...
145
+ [PASS ] manifest: chain head matches the last receipt
146
+
147
+ 52 pass, 0 fail, 2 not-run -> PASS
148
+ ```
149
+
150
+ The 2 `not-run` rows are `originality` — this run is unanchored (no epoch anchoring configured),
151
+ so the verifier checks that the record is internally consistent, not that it is first-published.
152
+
153
+ Compare the two runs:
154
+
155
+ ```
156
+ onetrace diff run_a run_b --out diff_report
157
+ ```
158
+
159
+ ```
160
+ baseline run_a run-a (run)
161
+ candidate run_b run-b (run)
162
+
163
+ diff: identical
164
+
165
+ stage baseline candidate verdict
166
+ --------------------------------------------------------------------
167
+ retrieve 51bd312473c4 51bd312473c4 same
168
+ answer 35a281ec6835 35a281ec6835 same
169
+
170
+ first difference none
171
+ comparisons performed 2; stages identical before the first difference 2
172
+ ```
173
+
174
+ `onetrace localize` takes the same two runs (or just one, to find the first unclean stage in it
175
+ alone) and finds the first point of divergence:
176
+
177
+ ```
178
+ onetrace localize run_a run_b --out localize_report
179
+ ```
180
+
181
+ ```
182
+ baseline run_a run-a (run)
183
+ candidate run_b run-b (run)
184
+
185
+ localize: identical
186
+
187
+ stage baseline candidate verdict
188
+ --------------------------------------------------------------------
189
+ retrieve 51bd312473c4 51bd312473c4 same
190
+ answer 35a281ec6835 35a281ec6835 same
191
+
192
+ first difference none
193
+ comparisons performed 2; stages identical before the first difference 2
194
+ ```
195
+
196
+ `onetrace reproduce` re-executes a recorded stage and compares its output against what the
197
+ receipt claims — it needs the original pipeline code available to re-run, so it isn't part of
198
+ this quickstart.
199
+
200
+ This transcript was run word for word in a fresh virtual environment (`pip install onetrace`
201
+ from a locally-built wheel, no editable install, no repository checkout) before being written
202
+ here.
203
+
204
+ ## Five verdicts
205
+
206
+ Every stage in a comparison gets exactly one of five verdicts, and nothing else:
207
+
208
+ - **same** — the stage's output digest matches on both sides.
209
+ - **FIRST DIFFERENCE** — the first stage, in order, whose output digest does not match.
210
+ - **downstream** — after the first difference, still different; the divergence propagated.
211
+ - **reconverged** — after diverging, a later stage's output matches again (different work,
212
+ same result — this happens in practice and is reported honestly, not hidden).
213
+ - **COULD NOT CHECK** — the stage can't be evaluated (an unimplemented format version, a
214
+ declared boundary, a file that can't be read). This is not a pass, and it is not silently
215
+ folded into "same."
216
+
217
+ A verdict is always about a stage's **output**. A difference in the instrument, its
218
+ configuration, or the declared constants never changes a verdict by itself — it appears as an
219
+ annotation alongside the ladder, naming exactly what differs, so a `same` result never hides that
220
+ something about *how* the output was produced changed even though the bytes didn't.
221
+
222
+ `diff` and `localize` each also report one overall result word for the whole comparison
223
+ (`identical`, `diverged`, `not comparable`, `refused`, or `could not check`, with exit codes
224
+ 0/1/2/3/4 respectively — `localize` on a single run instead reports `clean` or `located`, exit
225
+ 0 or 1); `reproduce` reports each stage as `REPRODUCED`, `DIVERGED`, or `COULD NOT CHECK`.
226
+
227
+ ## Links and the trust model
228
+
229
+ - [Documentation](docs/) — the format in plain words, the five verdicts, the three verbs, one page per adapter, and what onetrace does not claim.
230
+ - [The stage-receipt format (Internet-Draft)](draft/draft-saha-stage-receipts-00.txt)
231
+ - [The reference verifier](verifier/)
232
+ - [The rejection vectors](verifier/rejection/) — records a conforming verifier must refuse, and why
233
+
234
+ **The verifier does not trust the SDK that emitted a record.** Every record this SDK produces is
235
+ checked the same way a record from any other emitter would be — the verifier reads bytes, not
236
+ intentions, and it owes nothing to the code that wrote them.
237
+
238
+ ## Stability
239
+
240
+ The current record format is `stage-receipt/0.2` (format major version `0`), specified by an
241
+ Internet-Draft that has not yet reached RFC status. Anything in the format — required members,
242
+ canonical-form rules, the rejection vectors — may still change before major version `1`. Format
243
+ major version is carried in every record: a manifest declaring one the reference verifier does
244
+ not implement is refused outright, by name, rather than silently accepted (verify a manifest with
245
+ an unrecognized `format` and it prints `[REFUSED] manifest: format -- ...` and exits non-zero); a
246
+ verb comparing individual stages reports the stage's own verdict as `COULD NOT CHECK` for the
247
+ same reason. Neither ever guesses.
248
+
249
+ ## License, security, and reporting a problem
250
+
251
+ Licensed under [Apache-2.0](LICENSE).
252
+
253
+ This is pre-release software (see the classifiers in `pyproject.toml`). See [SECURITY.md](SECURITY.md)
254
+ for what's in scope and how to report a vulnerability; for anything else, open an issue against
255
+ this repository.