itself 0.2.0__tar.gz → 0.3.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 (319) hide show
  1. itself-0.3.0/CHANGELOG.md +651 -0
  2. {itself-0.2.0 → itself-0.3.0}/CONTRIBUTING.md +8 -1
  3. {itself-0.2.0 → itself-0.3.0}/PKG-INFO +113 -21
  4. {itself-0.2.0 → itself-0.3.0}/README.md +112 -20
  5. itself-0.3.0/conformance/bundles/invalid/blank-transition-authorizer.json +39 -0
  6. itself-0.3.0/conformance/bundles/invalid/evidence-scope-mismatch.json +135 -0
  7. itself-0.3.0/conformance/bundles/invalid/mixed-evidence-without-contradiction.json +135 -0
  8. itself-0.3.0/conformance/bundles/invalid/refuted-without-contradiction.json +135 -0
  9. itself-0.3.0/conformance/bundles/invalid/transition-before-subject.json +39 -0
  10. itself-0.3.0/conformance/bundles/invalid/verdict-before-evidence.json +113 -0
  11. itself-0.3.0/conformance/bundles/invalid/verdict-outcome-mismatch.json +135 -0
  12. {itself-0.2.0 → itself-0.3.0}/conformance/javascript/README.md +2 -0
  13. {itself-0.2.0 → itself-0.3.0}/conformance/javascript/check.mjs +65 -3
  14. itself-0.3.0/conformance/transitions.json +55 -0
  15. {itself-0.2.0 → itself-0.3.0}/cookbook/README.md +8 -4
  16. {itself-0.2.0 → itself-0.3.0}/cookbook/agent-change-gate/README.md +51 -2
  17. {itself-0.2.0 → itself-0.3.0}/cookbook/agent-change-gate/github-actions.yml +2 -16
  18. {itself-0.2.0 → itself-0.3.0}/cookbook/agent-change-gate/run.py +130 -10
  19. {itself-0.2.0 → itself-0.3.0}/cookbook/verify-evidence-bundle/README.md +4 -0
  20. {itself-0.2.0 → itself-0.3.0}/cookbook/verify-evidence-bundle/github-actions.yml +6 -2
  21. {itself-0.2.0 → itself-0.3.0}/cookbook/verify-evidence-bundle/gitlab-ci.yml +5 -2
  22. {itself-0.2.0 → itself-0.3.0}/docs/DECISION_MODELS.md +72 -15
  23. {itself-0.2.0 → itself-0.3.0}/docs/EVIDENCE_BUNDLES.md +13 -5
  24. {itself-0.2.0 → itself-0.3.0}/docs/INFERENCE.md +52 -24
  25. {itself-0.2.0 → itself-0.3.0}/docs/PROTOCOL_RECORDS.md +65 -15
  26. {itself-0.2.0 → itself-0.3.0}/docs/README.md +3 -2
  27. {itself-0.2.0 → itself-0.3.0}/docs/REASONING_RECEIPT.md +13 -4
  28. {itself-0.2.0 → itself-0.3.0}/docs/SCHEMAS.md +5 -1
  29. {itself-0.2.0 → itself-0.3.0}/docs/SPECIFICATION.md +56 -40
  30. {itself-0.2.0 → itself-0.3.0}/docs/VERSIONING.md +24 -8
  31. {itself-0.2.0 → itself-0.3.0}/evaluations/capacity_curve.py +11 -4
  32. {itself-0.2.0 → itself-0.3.0}/evaluations/reporting.py +19 -11
  33. {itself-0.2.0 → itself-0.3.0}/evaluations/sdk_exercise.py +12 -7
  34. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/COMPARATIVE_STUDY.md +158 -10
  35. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/DESIGN.md +5 -2
  36. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/README.md +18 -0
  37. itself-0.3.0/experiments/001-cache-key-omission/manifests/v6/together-glm-5p2.json +131 -0
  38. itself-0.3.0/experiments/001-cache-key-omission/manifests/v6/together-minimax-m3p1-flash.json +131 -0
  39. itself-0.3.0/experiments/001-cache-key-omission/manifests/v6/together-qwen3p7-plus.json +132 -0
  40. itself-0.3.0/experiments/001-cache-key-omission/manifests/v7/together-glm-5p2.json +132 -0
  41. itself-0.3.0/experiments/001-cache-key-omission/manifests/v7/together-minimax-m3p1-flash.json +132 -0
  42. itself-0.3.0/experiments/001-cache-key-omission/manifests/v7/together-qwen3p7-plus.json +133 -0
  43. {itself-0.2.0 → itself-0.3.0}/experiments/MODEL_ADAPTERS.md +155 -25
  44. {itself-0.2.0 → itself-0.3.0}/experiments/README.md +39 -6
  45. itself-0.3.0/experiments/_bundle_validation.py +573 -0
  46. itself-0.3.0/experiments/_schema_validation.py +69 -0
  47. itself-0.3.0/experiments/_study_contracts.py +251 -0
  48. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_comparison.py +15 -9
  49. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_comparison_report.py +380 -76
  50. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_comparison_run.py +147 -9
  51. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_comparison_study.py +324 -25
  52. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_model_run.py +102 -12
  53. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_scripted_run.py +53 -21
  54. {itself-0.2.0 → itself-0.3.0}/experiments/comparison_bundles.py +412 -148
  55. {itself-0.2.0 → itself-0.3.0}/experiments/comparison_manifests.py +162 -49
  56. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/README.md +57 -0
  57. itself-0.3.0/experiments/contracts/v2/comparison-attempt-report.schema.json +165 -0
  58. itself-0.3.0/experiments/contracts/v2/comparison-bundle.schema.json +248 -0
  59. itself-0.3.0/experiments/contracts/v2/comparison-manifest.schema.json +298 -0
  60. itself-0.3.0/experiments/contracts/v2/examples/comparison-attempt-report.json +26 -0
  61. itself-0.3.0/experiments/contracts/v2/examples/comparison-manifest.json +120 -0
  62. itself-0.3.0/experiments/contracts/v2/examples/trial-attempt-report.json +29 -0
  63. itself-0.3.0/experiments/contracts/v2/examples/trial-manifest.json +76 -0
  64. itself-0.3.0/experiments/contracts/v2/trial-attempt-report.schema.json +157 -0
  65. itself-0.3.0/experiments/contracts/v2/trial-bundle.schema.json +106 -0
  66. itself-0.3.0/experiments/contracts/v2/trial-manifest.schema.json +224 -0
  67. {itself-0.2.0 → itself-0.3.0}/experiments/diagnostician.py +3 -15
  68. {itself-0.2.0 → itself-0.3.0}/experiments/model_adapters.py +172 -10
  69. {itself-0.2.0 → itself-0.3.0}/experiments/narrative_diagnostician.py +5 -16
  70. {itself-0.2.0 → itself-0.3.0}/experiments/results/README.md +36 -6
  71. itself-0.3.0/experiments/results/current/2026-11-26-case-001-comparison-v6.json +737 -0
  72. itself-0.3.0/experiments/results/current/2026-11-26-case-001-comparison-v6.md +71 -0
  73. itself-0.3.0/experiments/results/current/2026-11-26-case-001-comparison-v7.json +1375 -0
  74. itself-0.3.0/experiments/results/current/2026-11-26-case-001-comparison-v7.md +71 -0
  75. {itself-0.2.0 → itself-0.3.0}/experiments/trial_bundles.py +532 -234
  76. itself-0.3.0/experiments/trial_manifests.py +516 -0
  77. {itself-0.2.0 → itself-0.3.0}/pyproject.toml +1 -1
  78. {itself-0.2.0 → itself-0.3.0}/src/itself/__init__.py +2 -0
  79. itself-0.3.0/src/itself/_artifact_sinks.py +208 -0
  80. {itself-0.2.0 → itself-0.3.0}/src/itself/_endpoints.py +19 -2
  81. itself-0.3.0/src/itself/_filesystem.py +379 -0
  82. {itself-0.2.0 → itself-0.3.0}/src/itself/_formats.py +8 -0
  83. itself-0.3.0/src/itself/_http_transport.py +481 -0
  84. itself-0.3.0/src/itself/_inference_errors.py +97 -0
  85. {itself-0.2.0 → itself-0.3.0}/src/itself/_json.py +9 -0
  86. itself-0.3.0/src/itself/_schema_references.py +145 -0
  87. {itself-0.2.0 → itself-0.3.0}/src/itself/_version.py +1 -1
  88. {itself-0.2.0 → itself-0.3.0}/src/itself/bundle.py +304 -22
  89. {itself-0.2.0 → itself-0.3.0}/src/itself/cli.py +206 -100
  90. {itself-0.2.0 → itself-0.3.0}/src/itself/decision_model.py +65 -22
  91. {itself-0.2.0 → itself-0.3.0}/src/itself/evidence_bundle.py +75 -52
  92. {itself-0.2.0 → itself-0.3.0}/src/itself/inference.py +49 -682
  93. itself-0.3.0/src/itself/ledger.py +516 -0
  94. {itself-0.2.0 → itself-0.3.0}/src/itself/receipts.py +65 -95
  95. {itself-0.2.0 → itself-0.3.0}/src/itself/reporting.py +8 -8
  96. {itself-0.2.0 → itself-0.3.0}/src/itself/schema_export.py +5 -2
  97. {itself-0.2.0 → itself-0.3.0}/src/itself/validation.py +8 -3
  98. {itself-0.2.0 → itself-0.3.0}/src/itself.egg-info/PKG-INFO +113 -21
  99. {itself-0.2.0 → itself-0.3.0}/src/itself.egg-info/SOURCES.txt +42 -0
  100. {itself-0.2.0 → itself-0.3.0}/tests/test_bundle.py +52 -0
  101. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_comparison.py +20 -1
  102. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_comparison_report.py +176 -0
  103. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_comparison_run.py +192 -2
  104. itself-0.3.0/tests/test_cache_key_comparison_study.py +993 -0
  105. itself-0.3.0/tests/test_cache_key_comparison_study_runs.py +559 -0
  106. itself-0.3.0/tests/test_cache_key_model_run.py +546 -0
  107. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_scripted_run.py +44 -0
  108. {itself-0.2.0 → itself-0.3.0}/tests/test_capacity_curve.py +71 -1
  109. {itself-0.2.0 → itself-0.3.0}/tests/test_cli.py +506 -0
  110. {itself-0.2.0 → itself-0.3.0}/tests/test_comparison_bundle_schemas.py +43 -3
  111. {itself-0.2.0 → itself-0.3.0}/tests/test_comparison_bundles.py +22 -0
  112. {itself-0.2.0 → itself-0.3.0}/tests/test_comparison_manifests.py +134 -1
  113. itself-0.3.0/tests/test_cookbook_agent_change_gate.py +510 -0
  114. itself-0.3.0/tests/test_cookbook_workflows.py +280 -0
  115. {itself-0.2.0 → itself-0.3.0}/tests/test_decision_model.py +287 -5
  116. {itself-0.2.0 → itself-0.3.0}/tests/test_diagnostician_contract_schema.py +12 -0
  117. itself-0.3.0/tests/test_endpoints.py +691 -0
  118. {itself-0.2.0 → itself-0.3.0}/tests/test_evidence_bundle.py +327 -0
  119. itself-0.3.0/tests/test_filesystem.py +943 -0
  120. {itself-0.2.0 → itself-0.3.0}/tests/test_inference.py +411 -8
  121. itself-0.3.0/tests/test_ledger.py +1077 -0
  122. {itself-0.2.0 → itself-0.3.0}/tests/test_model_adapters.py +179 -3
  123. itself-0.3.0/tests/test_public_annotations.py +91 -0
  124. itself-0.3.0/tests/test_rejected_response_status.py +399 -0
  125. {itself-0.2.0 → itself-0.3.0}/tests/test_schema_export.py +39 -0
  126. itself-0.3.0/tests/test_schema_references.py +221 -0
  127. {itself-0.2.0 → itself-0.3.0}/tests/test_sdk_exercise.py +19 -0
  128. {itself-0.2.0 → itself-0.3.0}/tests/test_state.py +136 -15
  129. itself-0.3.0/tests/test_study_contracts.py +744 -0
  130. itself-0.3.0/tests/test_trial_bundles.py +591 -0
  131. {itself-0.2.0 → itself-0.3.0}/tests/test_trial_manifests.py +90 -1
  132. itself-0.3.0/tests/test_urllib_transport.py +1053 -0
  133. itself-0.3.0/tests/test_v2_comparison_run.py +580 -0
  134. itself-0.3.0/tests/test_v2_trial_run.py +644 -0
  135. itself-0.3.0/tests/test_validation_policy.py +746 -0
  136. {itself-0.2.0 → itself-0.3.0}/uv.lock +7 -7
  137. itself-0.2.0/CHANGELOG.md +0 -270
  138. itself-0.2.0/experiments/_bundle_validation.py +0 -232
  139. itself-0.2.0/experiments/_schema_validation.py +0 -35
  140. itself-0.2.0/experiments/trial_manifests.py +0 -290
  141. itself-0.2.0/src/itself/_filesystem.py +0 -187
  142. itself-0.2.0/src/itself/ledger.py +0 -373
  143. itself-0.2.0/tests/test_cache_key_comparison_study.py +0 -336
  144. itself-0.2.0/tests/test_cache_key_model_run.py +0 -201
  145. itself-0.2.0/tests/test_cookbook_agent_change_gate.py +0 -179
  146. itself-0.2.0/tests/test_cookbook_workflows.py +0 -67
  147. itself-0.2.0/tests/test_filesystem.py +0 -169
  148. itself-0.2.0/tests/test_ledger.py +0 -406
  149. itself-0.2.0/tests/test_trial_bundles.py +0 -316
  150. itself-0.2.0/tests/test_urllib_transport.py +0 -484
  151. {itself-0.2.0 → itself-0.3.0}/LICENSE +0 -0
  152. {itself-0.2.0 → itself-0.3.0}/MANIFEST.in +0 -0
  153. {itself-0.2.0 → itself-0.3.0}/SECURITY.md +0 -0
  154. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/blank-transition-subject.json +0 -0
  155. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/dangling-reference.json +0 -0
  156. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/duplicate-id.json +0 -0
  157. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/invalid-transition.json +0 -0
  158. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/proto-scope-mismatch.json +0 -0
  159. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/state-drift.json +0 -0
  160. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/test-plan-kind-mismatch.json +0 -0
  161. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/transition-subject-mismatch.json +0 -0
  162. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/unrelated-evidence.json +0 -0
  163. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/verdict-after-transition.json +0 -0
  164. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/invalid/wrong-reference-kind.json +0 -0
  165. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/valid/evidence-backed-history.json +0 -0
  166. {itself-0.2.0 → itself-0.3.0}/conformance/bundles/valid/test-execution-lineage.json +0 -0
  167. {itself-0.2.0 → itself-0.3.0}/conformance/canonicalization/rfc8785-jsonl-v1.json +0 -0
  168. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/claim-initially-supported.json +0 -0
  169. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/claim-without-scope.json +0 -0
  170. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/evidence-without-relation.json +0 -0
  171. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/model-self-promotion.json +0 -0
  172. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/promotion-without-evidence.json +0 -0
  173. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/timestamp-leap-second.json +0 -0
  174. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/timestamp-trailing-newline.json +0 -0
  175. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/timestamp-with-space.json +0 -0
  176. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/uri-reference-invalid-port.json +0 -0
  177. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/uri-reference-ipv6-brace-quantifier.json +0 -0
  178. {itself-0.2.0 → itself-0.3.0}/conformance/invalid/uri-reference-ipv6-leading-zero.json +0 -0
  179. {itself-0.2.0 → itself-0.3.0}/conformance/javascript/package-lock.json +0 -0
  180. {itself-0.2.0 → itself-0.3.0}/conformance/javascript/package.json +0 -0
  181. {itself-0.2.0 → itself-0.3.0}/conformance/javascript/uri-reference.mjs +0 -0
  182. {itself-0.2.0 → itself-0.3.0}/conformance/json/accept/escaped-nul-and-uppercase-hex.json +0 -0
  183. {itself-0.2.0 → itself-0.3.0}/conformance/json/accept/largest-safe-integer.json +0 -0
  184. {itself-0.2.0 → itself-0.3.0}/conformance/json/accept/nesting-128-levels.json +0 -0
  185. {itself-0.2.0 → itself-0.3.0}/conformance/json/accept/proto-key.json +0 -0
  186. {itself-0.2.0 → itself-0.3.0}/conformance/json/accept/surrogate-pair-escape.json +0 -0
  187. {itself-0.2.0 → itself-0.3.0}/conformance/json/accept/zero-with-huge-exponent.json +0 -0
  188. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/duplicate-key-different-value.json +0 -0
  189. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/duplicate-key-same-value.json +0 -0
  190. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/invalid-utf8.json +0 -0
  191. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/lone-surrogate-escape.json +0 -0
  192. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/nan-literal.json +0 -0
  193. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/negative-zero.json +0 -0
  194. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/nesting-129-levels.json +0 -0
  195. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/trailing-comma.json +0 -0
  196. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/underflow-with-huge-exponent.json +0 -0
  197. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/underflow.json +0 -0
  198. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/unsafe-integer.json +0 -0
  199. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/utf16le.json +0 -0
  200. {itself-0.2.0 → itself-0.3.0}/conformance/json/reject/utf8-byte-order-mark.json +0 -0
  201. {itself-0.2.0 → itself-0.3.0}/conformance/valid/artifact-reference-ipv6-host.json +0 -0
  202. {itself-0.2.0 → itself-0.3.0}/conformance/valid/artifact-reference.json +0 -0
  203. {itself-0.2.0 → itself-0.3.0}/conformance/valid/causal-hypothesis.json +0 -0
  204. {itself-0.2.0 → itself-0.3.0}/conformance/valid/completed-test.json +0 -0
  205. {itself-0.2.0 → itself-0.3.0}/conformance/valid/decision.json +0 -0
  206. {itself-0.2.0 → itself-0.3.0}/conformance/valid/evidence.json +0 -0
  207. {itself-0.2.0 → itself-0.3.0}/conformance/valid/minimal-claim.json +0 -0
  208. {itself-0.2.0 → itself-0.3.0}/conformance/valid/prediction.json +0 -0
  209. {itself-0.2.0 → itself-0.3.0}/conformance/valid/proposed-claim.json +0 -0
  210. {itself-0.2.0 → itself-0.3.0}/conformance/valid/status-transition.json +0 -0
  211. {itself-0.2.0 → itself-0.3.0}/conformance/valid/test-plan.json +0 -0
  212. {itself-0.2.0 → itself-0.3.0}/conformance/valid/verdict.json +0 -0
  213. {itself-0.2.0 → itself-0.3.0}/cookbook/agent-change-gate/gitlab-ci.yml +0 -0
  214. {itself-0.2.0 → itself-0.3.0}/cookbook/fixtures/model-assertion.json +0 -0
  215. {itself-0.2.0 → itself-0.3.0}/cookbook/publish-reasoning-receipt/README.md +0 -0
  216. {itself-0.2.0 → itself-0.3.0}/cookbook/publish-reasoning-receipt/github-actions.yml +0 -0
  217. {itself-0.2.0 → itself-0.3.0}/cookbook/publish-reasoning-receipt/gitlab-ci.yml +0 -0
  218. {itself-0.2.0 → itself-0.3.0}/docs/EVALUATIONS.md +0 -0
  219. {itself-0.2.0 → itself-0.3.0}/docs/assets/itself-lifecycle-dark.svg +0 -0
  220. {itself-0.2.0 → itself-0.3.0}/evaluations/__init__.py +0 -0
  221. {itself-0.2.0 → itself-0.3.0}/evaluations/contracts/v1/evaluation-report.schema.json +0 -0
  222. {itself-0.2.0 → itself-0.3.0}/examples/__init__.py +0 -0
  223. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/README.md +0 -0
  224. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/build_bundle.py +0 -0
  225. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/bundle/artifacts/model-assertion.json +0 -0
  226. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/bundle/bundle.json +0 -0
  227. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/bundle/inputs/diagnosis-request.json +0 -0
  228. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/bundle/ledger.jsonl +0 -0
  229. {itself-0.2.0 → itself-0.3.0}/examples/cache-key-diagnosis/bundle/reasoning-receipt.json +0 -0
  230. {itself-0.2.0 → itself-0.3.0}/examples/inference_to_evidence/README.md +0 -0
  231. {itself-0.2.0 → itself-0.3.0}/examples/inference_to_evidence/__init__.py +0 -0
  232. {itself-0.2.0 → itself-0.3.0}/examples/inference_to_evidence/run.py +0 -0
  233. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v1/fireworks-glm-5p2.json +0 -0
  234. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v1/fireworks-minimax-m3.json +0 -0
  235. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v1/fireworks-qwen3p7-max.json +0 -0
  236. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v1/together-glm-5p2.json +0 -0
  237. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v1/together-minimax-m3.json +0 -0
  238. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v1/together-qwen3p7-max.json +0 -0
  239. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v2/fireworks-glm-5p2.json +0 -0
  240. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v2/fireworks-minimax-m3.json +0 -0
  241. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v2/fireworks-qwen3p7-plus.json +0 -0
  242. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v2/together-glm-5p2.json +0 -0
  243. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v2/together-minimax-m3.json +0 -0
  244. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v3/fireworks-glm-5p2.json +0 -0
  245. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v3/fireworks-minimax-m3.json +0 -0
  246. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v3/fireworks-qwen3p7-plus.json +0 -0
  247. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v3/together-minimax-m3.json +0 -0
  248. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v4/fireworks-glm-5p2.json +0 -0
  249. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v4/fireworks-minimax-m3.json +0 -0
  250. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v4/fireworks-qwen3p7-plus.json +0 -0
  251. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v4/together-minimax-m3.json +0 -0
  252. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v5/fireworks-glm-5p2.json +0 -0
  253. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v5/fireworks-minimax-m3.json +0 -0
  254. {itself-0.2.0 → itself-0.3.0}/experiments/001-cache-key-omission/manifests/v5/fireworks-qwen3p7-plus.json +0 -0
  255. {itself-0.2.0 → itself-0.3.0}/experiments/__init__.py +0 -0
  256. {itself-0.2.0 → itself-0.3.0}/experiments/_contract_values.py +0 -0
  257. {itself-0.2.0 → itself-0.3.0}/experiments/cases/__init__.py +0 -0
  258. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_diagnostician.py +0 -0
  259. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_exchange.py +0 -0
  260. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_model_trial.py +0 -0
  261. {itself-0.2.0 → itself-0.3.0}/experiments/cases/cache_key_omission.py +0 -0
  262. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/comparison-attempt-report.schema.json +0 -0
  263. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/comparison-bundle.schema.json +0 -0
  264. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/comparison-manifest.schema.json +0 -0
  265. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/diagnosis-assertion.schema.json +0 -0
  266. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/diagnosis-request.schema.json +0 -0
  267. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/diagnosis-result.schema.json +0 -0
  268. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/assertion.json +0 -0
  269. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/comparison-manifest.json +0 -0
  270. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/narrative-assertion.json +0 -0
  271. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/narrative-result.json +0 -0
  272. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/request.json +0 -0
  273. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/result.json +0 -0
  274. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/examples/trial-manifest.json +0 -0
  275. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/narrative-assertion.schema.json +0 -0
  276. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/narrative-result.schema.json +0 -0
  277. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/trial-attempt-report.schema.json +0 -0
  278. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/trial-bundle.schema.json +0 -0
  279. {itself-0.2.0 → itself-0.3.0}/experiments/contracts/v1/trial-manifest.schema.json +0 -0
  280. {itself-0.2.0 → itself-0.3.0}/experiments/results/archive/2026-07-22-together-case-001-evidence-enforced-pilot.md +0 -0
  281. {itself-0.2.0 → itself-0.3.0}/experiments/results/archive/2026-07-22-together-case-001.md +0 -0
  282. {itself-0.2.0 → itself-0.3.0}/experiments/results/archive/2026-07-24-case-001-comparison-v2.json +0 -0
  283. {itself-0.2.0 → itself-0.3.0}/experiments/results/archive/2026-07-24-case-001-comparison-v2.md +0 -0
  284. {itself-0.2.0 → itself-0.3.0}/experiments/results/archive/2026-07-24-case-001-comparison-v4.json +0 -0
  285. {itself-0.2.0 → itself-0.3.0}/experiments/results/archive/2026-07-24-case-001-comparison-v4.md +0 -0
  286. {itself-0.2.0 → itself-0.3.0}/experiments/results/current/2026-07-24-case-001-comparison-v5.json +0 -0
  287. {itself-0.2.0 → itself-0.3.0}/experiments/results/current/2026-07-24-case-001-comparison-v5.md +0 -0
  288. {itself-0.2.0 → itself-0.3.0}/setup.cfg +0 -0
  289. {itself-0.2.0 → itself-0.3.0}/src/itself/py.typed +0 -0
  290. {itself-0.2.0 → itself-0.3.0}/src/itself/records.py +0 -0
  291. {itself-0.2.0 → itself-0.3.0}/src/itself/schemas/v0alpha/evidence-bundle.schema.json +0 -0
  292. {itself-0.2.0 → itself-0.3.0}/src/itself/schemas/v0alpha/protocol.schema.json +0 -0
  293. {itself-0.2.0 → itself-0.3.0}/src/itself/schemas/v0alpha/reasoning-receipt.schema.json +0 -0
  294. {itself-0.2.0 → itself-0.3.0}/src/itself/schemas/v0alpha2/evidence-bundle.schema.json +0 -0
  295. {itself-0.2.0 → itself-0.3.0}/src/itself/schemas/v0alpha2/protocol.schema.json +0 -0
  296. {itself-0.2.0 → itself-0.3.0}/src/itself/schemas/v0alpha2/reasoning-receipt.schema.json +0 -0
  297. {itself-0.2.0 → itself-0.3.0}/src/itself/state.py +0 -0
  298. {itself-0.2.0 → itself-0.3.0}/src/itself/types.py +0 -0
  299. {itself-0.2.0 → itself-0.3.0}/src/itself.egg-info/dependency_links.txt +0 -0
  300. {itself-0.2.0 → itself-0.3.0}/src/itself.egg-info/entry_points.txt +0 -0
  301. {itself-0.2.0 → itself-0.3.0}/src/itself.egg-info/requires.txt +0 -0
  302. {itself-0.2.0 → itself-0.3.0}/src/itself.egg-info/top_level.txt +0 -0
  303. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_exchange.py +0 -0
  304. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_model_trial.py +0 -0
  305. {itself-0.2.0 → itself-0.3.0}/tests/test_cache_key_omission.py +0 -0
  306. {itself-0.2.0 → itself-0.3.0}/tests/test_canonicalization.py +0 -0
  307. {itself-0.2.0 → itself-0.3.0}/tests/test_conformance.py +0 -0
  308. {itself-0.2.0 → itself-0.3.0}/tests/test_diagnostician.py +0 -0
  309. {itself-0.2.0 → itself-0.3.0}/tests/test_distribution.py +0 -0
  310. {itself-0.2.0 → itself-0.3.0}/tests/test_evaluation_reporting.py +0 -0
  311. {itself-0.2.0 → itself-0.3.0}/tests/test_inference_to_evidence_example.py +0 -0
  312. {itself-0.2.0 → itself-0.3.0}/tests/test_license_headers.py +0 -0
  313. {itself-0.2.0 → itself-0.3.0}/tests/test_narrative_diagnostician.py +0 -0
  314. {itself-0.2.0 → itself-0.3.0}/tests/test_published_schemas.py +0 -0
  315. {itself-0.2.0 → itself-0.3.0}/tests/test_receipts.py +0 -0
  316. {itself-0.2.0 → itself-0.3.0}/tests/test_records.py +0 -0
  317. {itself-0.2.0 → itself-0.3.0}/tests/test_reporting.py +0 -0
  318. {itself-0.2.0 → itself-0.3.0}/typing_tests/diagnostician_api.py +0 -0
  319. {itself-0.2.0 → itself-0.3.0}/typing_tests/public_api.py +0 -0
@@ -0,0 +1,651 @@
1
+ # Changelog
2
+
3
+ User-visible SDK and format changes are recorded here. Protocol, receipt,
4
+ evidence-bundle, and experiment-contract versions remain independent of the
5
+ Python distribution version.
6
+
7
+ ## Unreleased
8
+
9
+ ## 0.3.0
10
+
11
+ An opt-in validation policy for deployments that need more than `v0alpha2`
12
+ conformance, faster ledger appends, a default request deadline, and hardening
13
+ of the ledger and receipt stores, the endpoints, the CLI's output, the
14
+ agent-change gate, and the research harness. The formats are unchanged, and
15
+ without a validation policy or trust list the reference validators accept
16
+ exactly the histories 0.2.0 accepted. Both adapters have new versions because
17
+ their requests run differently. This release implements:
18
+
19
+ | Surface | Version |
20
+ | --- | --- |
21
+ | Claim and Evidence Protocol | `0.1.0-alpha.3` |
22
+ | Reasoning receipt | `0.1.0-alpha.2` |
23
+ | Evidence bundle | `0.1.0-alpha.2` |
24
+ | Schema publication line | `v0alpha2` |
25
+ | Ledger canonicalization | `rfc8785-jsonl-v1` |
26
+ | Chat Completions adapter | `0.4.0` |
27
+ | Decision-model adapter | `0.2.0` |
28
+
29
+ ### Migrating from 0.2.0
30
+
31
+ - **Trust lists.** With `trusted_authorizers` or `--trusted-authorizer`, a
32
+ transition out of an evidence-backed status (`supported`, `refuted`,
33
+ `inconclusive`, `mixed_evidence`, or `corroborated_within_scope`) must also
34
+ be authorized by a listed actor id, and an actor id declared with more than
35
+ one `actor_type` is refused with `actor_type_conflict`. Add the ids that
36
+ move claims out of those statuses, and declare each actor id with one actor
37
+ type throughout a history. Validation without a trust list is unchanged.
38
+ - **Request deadline.** `OpenAICompatibleEndpoint` and `DecisionModelEndpoint`
39
+ default to `deadline_seconds=600.0` instead of no deadline. Give a request
40
+ that legitimately runs longer a larger value, or `None` for no deadline.
41
+ - **Adapter versions.** Results record Chat Completions adapter `0.4.0` and
42
+ decision-model adapter `0.2.0`, and requests send the `User-Agent` values
43
+ `itself-inference/0.4.0` and `itself-decisions/0.2.0`. Update anything that
44
+ matches on either.
45
+ - **`base_url`.** An endpoint `base_url` must name a host, and one with an
46
+ empty query or fragment marker, such as `https://h.example/v1/?` or
47
+ `https://h.example/v1#`, is refused with `ValueError`. Remove the marker.
48
+ - **Loopback names.** A host name with one trailing dot, such as `localhost.`
49
+ or `api.localhost.`, is now a loopback host: opted-in insecure HTTP accepts
50
+ it, and the built-in transport no longer sends it through a configured
51
+ proxy.
52
+ - **Referenced schemas.** `StructuredOutputProfile` and
53
+ `ProtocolValidator(schema_path)` raise `ValueError` for a schema whose `$ref`
54
+ or `$dynamicRef` names a resource outside the schema, including a JSON Schema
55
+ meta-schema. Include what such a schema references in the schema itself.
56
+ - **Inference errors.** A request header value that `http.client` refuses
57
+ raises `InferenceError` with `InferenceFailure.CONFIGURATION` instead of
58
+ `ValueError`, and `UrllibHttpTransport` refuses a `max_response_bytes` that
59
+ is not an integer.
60
+ - **Inference error status.** A failure that `UrllibHttpTransport` raises
61
+ after a response's headers arrived carries the response's status in
62
+ `status_code`, so a `response_too_large` or `transport` failure can carry a
63
+ 2xx status. Code that reads a non-`None` `status_code` as an HTTP-status
64
+ failure should check `failure` instead.
65
+ - **Ledger store writes.** `JsonlLedgerStore.append` and `extend` raise
66
+ `OSError` and write nothing when another writer created, removed, or changed
67
+ the ledger after the append read it.
68
+ - **Directory sync.** A ledger, receipt, inference artifact, evidence bundle,
69
+ or schema export that has been put in place can now be followed by an
70
+ `OSError`, such as `EIO`, from synchronizing its directory.
71
+ - **`itself ledger append`.** It refuses, before writing anything, an append
72
+ whose ledger as read or as it would be written exceeds 128 MiB or 100,000
73
+ records. Use `JsonlLedgerStore` for larger ledgers.
74
+ - **CLI output.** Text output and error messages escape control characters,
75
+ DEL, and the Unicode line and paragraph separators as `\xNN` or `\uNNNN`.
76
+ JSON written to standard output, by `--format json` and by
77
+ `receipt generate` without `--output`, escapes DEL, the C1 controls, U+2028,
78
+ and U+2029 as `\uXXXX`; its parsed value is unchanged, but a comparison of
79
+ raw bytes sees the escapes. Usage and `--version` output name the program
80
+ `itself` however it is started, and a blank `--trusted-authorizer` or an
81
+ out-of-range `--created-at` or `--as-of` is a usage error with exit status 2.
82
+ - **Agent-change gate.** The gate approves only when the check returns the
83
+ passing exit code, `0` unless `--passing-exit-code` says otherwise, so a
84
+ correctly predicted failing check is rejected with status 1 where 0.2.0
85
+ approved it with 0. A check ended by a signal is inconclusive and deferred
86
+ with status 2 where 0.2.0 refuted it with 1. A `--model-actor-id` that names
87
+ `ci-check-runner` or `ci-assurance-policy`, a `--timeout-seconds` that is not
88
+ a finite positive number, and an assertion nested too deeply to parse each
89
+ exit with status 2 and write nothing. The GitHub Actions wrapper fails in the
90
+ step that runs the gate.
91
+ - **Verification recipes.** The evidence-bundle verification recipes set
92
+ `pipefail`, so a job whose validation failed behind `tee` and still passed
93
+ now fails.
94
+ - **`itself.inference` source.** `inspect.getsource` no longer finds the
95
+ source of the nine classes `itself.inference` re-exports from private
96
+ modules: it raises `OSError` for six of them and returns unrelated lines for
97
+ `ArtifactSink`, `HttpTransport`, and `InferenceFailure`. They are the same
98
+ objects with the same `__module__`, so imports, pickles, and reprs are
99
+ unchanged.
100
+ - **Research harness and evaluations.** Both runner CLIs exit with status 2
101
+ for every error. An attempt quarantined at `<destination>.quarantined` keeps
102
+ its slot, so a second attempt at that destination is refused before any
103
+ request. The SDK exercise names its artifact mutation
104
+ `artifact-same-length-byte-change`, rejected at `inventory_digest`, and
105
+ capacity-curve timings no longer include constructing validators and
106
+ builders.
107
+
108
+ ### Added
109
+
110
+ - `ValidationPolicy`, one frozen object for the opt-in checks of the reference
111
+ validators. These checks are outside `v0alpha2` conformance, and without a
112
+ policy every history validates exactly as before. `BundleValidator` and
113
+ `EvidenceBundleValidator` accept `policy=`, so `Ledger`, `JsonlLedgerStore`,
114
+ and `EvidenceBundleBuilder` apply it through their validators.
115
+ `trusted_authorizers=` still works as shorthand for a policy with only that
116
+ list, and passing both raises `ValueError`. Besides `trusted_authorizers`, a
117
+ policy can set:
118
+ - `require_supported_reliance`, which refuses with the new code
119
+ `unsupported_reliance` an `approved` or `executed` decision that relies on
120
+ a claim not `supported` or `corroborated_within_scope` at the decision's
121
+ position. References declared external are skipped, and because
122
+ `relied_on_claim_refs` is optional, a decision that names no claims is not
123
+ refused.
124
+ - `as_of`, a timezone-aware datetime. It refuses with the new code
125
+ `expired_support` a subject that ends `supported` or
126
+ `corroborated_within_scope` when its scope `valid_until`, or the
127
+ `expires_at` or scope `valid_until` of evidence cited by the transition
128
+ behind its current status, is at or before that time.
129
+ - `--require-supported-reliance` and `--as-of TIMESTAMP`, an RFC 3339
130
+ date-time with an offset, on every `itself` command that accepts
131
+ `--trusted-authorizer`. As with the trust list, `receipt validate` accepts
132
+ them only with `--ledger`.
133
+ - `max_records` and `max_bytes` on `JsonlLedgerStore.append` and `extend`. They
134
+ mean what they mean on `load`, and apply to both the stored ledger and the
135
+ result.
136
+ - `issues` on `ReasoningReceiptValidationError` and
137
+ `EvidenceBundleValidationError`: the individual schema errors that a schema
138
+ failure's message joins one per line, empty for any other failure.
139
+ - `--passing-exit-code` for the agent-change gate recipe, an integer from 0
140
+ through 255, `0` by default. A model that correctly predicts any other exit
141
+ code still has its assertion supported, but the action is rejected. The
142
+ gate's `summary.md` states the passing exit code.
143
+ - `conformance/transitions.json`, the 37 allowed status transitions. The Python
144
+ tests and the JavaScript validator check every ordered pair of the twelve
145
+ statuses against it, and the specification now publishes the whole table.
146
+ - Invalid bundle fixtures for a blank transition authorizer, a transition
147
+ before its subject, a verdict before its evidence, `mixed_evidence` and
148
+ `refuted` verdicts without contradicting evidence, a transition that does
149
+ not match its verdict's outcome, and evidence scoped differently from its
150
+ verdict.
151
+ - Study contract v2 in the research harness under `experiments/`, beside v1:
152
+ six study-record schemas in `experiments/contracts/v2/`, document version
153
+ `0.3.0`, with examples. A v2 manifest declares a request deadline, whether a
154
+ stream asks for token usage, which sends `stream_options` and is part of the
155
+ bound prompt payload, and the shipped `itself.inference` client it runs on;
156
+ the runners refuse a different running client before any request. v2 bundle
157
+ manifests and attempt reports record the shipped client actually used, an
158
+ attempt report keeps the HTTP status the transport observed without clamping,
159
+ including that of a response the transport rejected after its headers
160
+ arrived, and a harness failure after a request publishes a valid
161
+ `runner_failed` bundle, with the captured response and a sanitized one-line
162
+ error, instead of a quarantine. An interrupt is published as `interrupted`
163
+ and still propagates. The comparison report counts runner failures apart
164
+ from adapter failures. The new `build_trial_manifest` builds v2 manifests,
165
+ and `build_comparison_manifest` does when given the v2 contract; it still
166
+ builds v1 by default. Case 001 comparison study v6 is the first study
167
+ registered under v2, and v1 documents and runs are unchanged.
168
+ - Case 001 comparison study v6, registered and run under study contract v2:
169
+ GLM 5.2, MiniMax M3.1 Flash, and Qwen 3.7 Plus, five replicates each, run
170
+ round-robin by replicate index through one Together AI endpoint. They are
171
+ v5's model versions where that provider served them at registration; it did
172
+ not serve MiniMax M3, so its successor in the same line takes that cell. V6
173
+ keeps v5's case request, output profiles, expected observations, sampling,
174
+ token ceiling, timeout, streaming, strict JSON Schema, and single attempt.
175
+ It adds a stream usage request and a 600-second request deadline, the
176
+ shipped client's default, and pins the shipped client
177
+ `openai-compatible-chat-completions` `0.4.0` as a literal, so the
178
+ registration stays checkable after the client's version moves on. Five of 15
179
+ runs completed, all for GLM 5.2; the provider refused the test-plan request
180
+ for MiniMax M3.1 Flash and Qwen 3.7 Plus with HTTP 400, and those ten runs
181
+ are retained as failed runs with their status. The report is
182
+ `experiments/results/current/2026-11-26-case-001-comparison-v6.md`. Because
183
+ v6 differs from v5 in provider, in one model, and in study contract, the two
184
+ are not pooled or compared. The comparison report renders v6 and labels
185
+ `http_status`, `response_usage`, and `transport` failures.
186
+ - Case 001 comparison study v7, registered and run under study contract v2:
187
+ v6's three targets, endpoint, execution order, and settings, with one
188
+ change. Its test-plan output profile, `diagnosis-assertion-v0.4.0`, sends
189
+ v0.3.0's schema without the `uniqueItems` keyword on
190
+ `retained_hypothesis_ids`, which the provider's structured output refused
191
+ for two of v6's three models, and its system prompt adds one sentence asking
192
+ for each identifier once. The diagnosis contract is unchanged, so the
193
+ harness still refuses a plan that repeats an identifier, as an
194
+ `assertion_contract` failure. A comparison manifest's
195
+ `profiles.structured.profile_id` now selects its test-plan profile, and
196
+ `build_comparison_manifest` takes `structured_profile_id` to ask for
197
+ v0.4.0; an unknown profile, or one that does not match whether the manifest
198
+ registers expected observations, is refused. The v2 comparison attempt
199
+ report schema names `diagnosis-assertion-v0.4.0`. Fourteen of 15 runs
200
+ completed: five for GLM 5.2, four for MiniMax M3.1 Flash, and five for Qwen
201
+ 3.7 Plus. One MiniMax M3.1 Flash run stopped on a test plan that broke the
202
+ diagnosis contract and is retained as a failed run. The report is
203
+ `experiments/results/current/2026-11-26-case-001-comparison-v7.md`, and when
204
+ exactly one run stopped the report now says "1 run". Because v7 differs from
205
+ v6 in its test-plan profile, v5, v6, and v7 are not pooled or compared.
206
+ `cache_key_comparison_study register` registers v7 by default, and the
207
+ comparison report renders v7 and marks every version other than v5, v6, and
208
+ v7 as historical.
209
+ - `docs/INFERENCE.md` says that a provider may report token usage on a stream
210
+ only when asked, and how to ask.
211
+
212
+ ### Changed
213
+
214
+ - With `trusted_authorizers`, a transition out of an evidence-backed status,
215
+ such as `supported` to `stale` or `corroborated_within_scope` to
216
+ `invalidated`, must also be authorized by a listed actor id, or it is
217
+ refused with `untrusted_authorizer` and does not apply. Before, only
218
+ transitions into those statuses were restricted.
219
+ - With `trusted_authorizers`, an actor id declared with more than one
220
+ `actor_type`, in any record's `created_by` or any decision's or transition's
221
+ `authorized_by`, is refused with the new code `actor_type_conflict`. The code
222
+ is reported once per id, on the record where the second type appears.
223
+ - `OpenAICompatibleEndpoint.deadline_seconds` and
224
+ `DecisionModelEndpoint.deadline_seconds` default to 600 seconds instead of
225
+ no deadline, so a server that keeps a response trickling can no longer hold a
226
+ request open indefinitely. To keep requests that legitimately run longer,
227
+ set a larger value; `deadline_seconds=None` still removes the deadline. The
228
+ deadline is not recorded in requests, artifacts, or results.
229
+ - The Chat Completions adapter version is `0.4.0` and the decision-model
230
+ adapter version is `0.2.0`, because the default deadline and the endpoint and
231
+ transport changes in this release change how their requests run. Results and
232
+ `User-Agent` headers name the new versions.
233
+ - `UrllibHttpTransport` gives the response's HTTP status as the `status_code`
234
+ of each `InferenceError` it raises after the response's headers arrived:
235
+ for a body over the byte limit or one that ends before its declared length,
236
+ a body read that fails or times out, and a deadline that passes while the
237
+ body is read. Before, these failures had no status. Their failure class,
238
+ message, and retryability are unchanged, and `DecisionModelError` keeps the
239
+ status the same way. A custom transport may also give the status of a
240
+ response it rejects, and need not.
241
+ - `itself ledger append` applies the CLI's ledger ceilings, 128 MiB and
242
+ 100,000 records, to the ledger it reads and to the ledger it would write,
243
+ and refuses an append that would exceed either before writing anything.
244
+ Before, it applied no limit.
245
+ - A `JsonlLedgerStore` instance holds the records it last validated or wrote,
246
+ with the SHA-256 of the file bytes they match. When a later read returns
247
+ exactly those bytes, it skips decoding and schema validation of the stored
248
+ history. The cross-record checks still cover the whole history on every
249
+ append, and any byte difference takes the full path, so results, errors, and
250
+ written bytes are unchanged. In one measurement, 800 single appends through
251
+ one instance took about 9 seconds, against about 62 seconds with 0.2.0.
252
+ - Loopback detection ignores one trailing dot on a host name, so `localhost.`
253
+ and `api.localhost.` are loopback hosts. Opted-in insecure HTTP now accepts
254
+ them, and the built-in transport connects to them directly instead of
255
+ through a configured proxy. Address literals are unchanged, so `127.0.0.1.`
256
+ is still not a loopback host.
257
+ - Ledger and receipt replacement, inference-artifact capture, evidence-bundle
258
+ publication, and schema export synchronize the parent directory after the
259
+ rename where the filesystem supports it. A directory sync that the
260
+ filesystem does not support or permit (`EINVAL`, `ENOTSUP`, `EOPNOTSUPP`,
261
+ `EACCES`, or `EPERM`) is skipped, and any other failure, such as `EIO`, is
262
+ raised with the new file or directory already in place.
263
+ - Schema validation never retrieves a referenced schema.
264
+ `StructuredOutputProfile` and `ProtocolValidator(schema_path)` raise
265
+ `ValueError` for a schema whose `$ref` or `$dynamicRef` names a resource
266
+ outside the schema, including a JSON Schema meta-schema. A reference that
267
+ still cannot be resolved while a response is validated is a configuration
268
+ failure, not a fetch.
269
+ - The packaged receipt and evidence-bundle schemas are compiled once per
270
+ process. The bundle schema was previously recompiled for every manifest.
271
+ - CLI text output and error messages escape C0 and C1 control characters,
272
+ DEL, and the Unicode line and paragraph separators found in records and file
273
+ names, as `\xNN` or `\uNNNN`, so a record cannot forge an output line, a CI
274
+ annotation, or a terminal sequence. Each integrity or schema issue still
275
+ prints on its own line. JSON written to standard output, by `--format json`
276
+ and by `receipt generate` without `--output`, escapes DEL, the C1 controls,
277
+ U+2028, and U+2029 as `\uXXXX`. Its parsed value is unchanged, other
278
+ non-ASCII text is still printed as it is, and files the stores write keep
279
+ their bytes.
280
+ - The HTTP transport, artifact sinks, and inference errors moved from
281
+ `itself.inference` into private modules. `itself.inference` re-exports the
282
+ same nine public classes as the same objects, and they keep
283
+ `itself.inference` as their `__module__`, but `inspect.getsource` no longer
284
+ finds their source.
285
+ - The agent-change gate recipe approves only when the check returns the
286
+ repository's passing exit code. It validates what it writes with a trust
287
+ list naming its policy actor and with supported reliance required, so a
288
+ `--model-actor-id` naming one of the runner's own actors fails with exit
289
+ status 2 and writes nothing. It treats a check ended by a signal as having no
290
+ exit code, so the claim is inconclusive and the action deferred; refuses a
291
+ `--timeout-seconds` that is not a finite positive number; treats an
292
+ assertion nested too deeply to parse as an input error; quotes the model
293
+ assertion in `summary.md` as one inline code span; and runs the check
294
+ without the GitHub Actions workflow-command files in its environment. Its
295
+ GitHub Actions wrapper fails in the step that runs the gate, and its README
296
+ says how to run the gate from code the change cannot edit.
297
+ - In the research harness under `experiments/`, which is not part of the
298
+ package, no failure deletes a captured provider response. The trial builder
299
+ checks its declared metrics, and both builders check the destination, before
300
+ any request. Under study contract v1, both record an HTTP status outside
301
+ 100–599 as a failed attempt with a null status code, and any other failure
302
+ after capture moves staging to `<destination>.quarantined` and raises
303
+ `AttemptQuarantinedError` naming it, or lets an interrupt such as
304
+ `KeyboardInterrupt` propagate unchanged. A later attempt at a quarantined
305
+ destination is refused before any request. A v1 attempt report holds a
306
+ status only for an HTTP-status failure, so the status the transport now
307
+ gives a response it rejected, such as one over the byte limit, is recorded
308
+ there as null.
309
+ - `TrialBundleValidator` replays the recorded diagnosis through the case,
310
+ requires the stored ledger and scorecard to equal the replay, and binds the
311
+ trial manifest to the recorded request and diagnostician. Both harness
312
+ bundle validators refuse a root that is a link or not a directory, check
313
+ each path with `lstat` before reading it, bound every read and the number of
314
+ directory entries walked, follow no links, and reject entries that are
315
+ neither regular files nor directories. `receipt_recomputes` is measured
316
+ rather than written as a literal, an accepted premature promotion is counted
317
+ instead of ending the run, and a failed attempt records the time it failed
318
+ as `completed_at`.
319
+ - Both harness runner CLIs print every error on one line and exit with status
320
+ 2, so status 1 means only a valid failed-attempt bundle. The comparison
321
+ report derives its streaming mode, hosted-only limitations, and historical
322
+ banner from the study targets. Under study contract v1 the binding sends no
323
+ request deadline, because v1 manifests record none, and a test pins the
324
+ shipped adapter it was re-verified against. The study manifests registered
325
+ under v1, their results, and the v1 contracts are byte-identical, and every
326
+ manifest still validates.
327
+ - The harness loaders and validators choose a study record's schemas from the
328
+ version it declares. A record that declares neither `0.2.0` nor `0.3.0` is
329
+ refused with `unsupported version` instead of a schema `const` error.
330
+ - The capacity curve constructs its validators and builder outside the timed
331
+ regions, so its timings no longer include construction. The SDK exercise
332
+ flips one artifact bit instead of appending a byte, so the mutation reaches
333
+ the digest check; its report names it `artifact-same-length-byte-change`,
334
+ rejected at `inventory_digest`, where it was `artifact-byte-append` at
335
+ `inventory_size_or_digest`. Evaluation reports and the harness contract
336
+ schemas are compiled once per process.
337
+ - The README and decision-model guide call decision models by that name,
338
+ keeping "System One models" as the alias the field also uses, show the PyPI
339
+ install, and show endpoint configuration for TypeSafe's hosted Jev.
340
+
341
+ ### Fixed
342
+
343
+ - `JsonlLedgerStore.extend` and `append` raise `OSError` instead of replacing a
344
+ ledger that another writer created, removed, or changed after the append
345
+ read it, judged by device, inode, size, and modification time. Before, the
346
+ store compared only device and inode, and only from the moment it began
347
+ writing, so it silently discarded records that another writer added in
348
+ place, or added between the append's read and its write. The store is still
349
+ single-writer, and the ledger and receipt stores now share one atomic
350
+ replacement routine.
351
+ - `BundleValidator` reports a record that is not a JSON object, such as `1` or
352
+ `null`, as `schema_invalid` instead of raising `AttributeError`. The
353
+ JavaScript validator no longer raises `TypeError` for a `null` record.
354
+ - A request header value that `http.client` refuses, such as a credential with
355
+ a line break supplied by a custom caller, is a configuration failure whose
356
+ message and traceback omit the value. Before, it escaped as a `ValueError`
357
+ that quoted the header.
358
+ - An endpoint `base_url` must name a host, so `https://:443/v1` is refused.
359
+ - An endpoint `base_url` with an empty query or fragment marker, such as
360
+ `https://h.example/v1/?` or `https://h.example/v1#`, is refused. Before, it
361
+ was accepted and the resource path was appended after the marker.
362
+ - `UrllibHttpTransport` refuses a `max_response_bytes` that is not an integer,
363
+ such as `2.0` or `"3"`, with `ValueError`.
364
+ - `DecisionModelClient` checks a score answer's `score` to the precision the
365
+ answer reports. Before, many multi-level score answers from an endpoint that
366
+ rounds the numbers it reports were refused with `response_schema` at the
367
+ default tolerance: a ten-level score of `6.78` over two-place probabilities
368
+ whose expected level is `6.76`, exactly what such rounding produces, was one.
369
+ The allowance now adds one unit of the score's last place and
370
+ `count**2 // 4` units of the finest place among the probabilities, compared
371
+ exactly on the reported decimals. Every answer accepted before still is, and
372
+ a full-precision answer is checked essentially as strictly as before.
373
+ - The CLI names itself `itself` in usage and `--version` output however it is
374
+ started, and a blank `--trusted-authorizer` is a usage error with exit
375
+ status 2 instead of an uncaught `ValueError`.
376
+ - A `--created-at` or `--as-of` value whose offset moves it outside the
377
+ representable date range is a usage error instead of an uncaught
378
+ `OverflowError`.
379
+ - `typing.get_type_hints` resolves every class, method, property, and function
380
+ that `itself` exports. Members of `BundleValidator`, `Ledger`,
381
+ `JsonlLedgerStore`, `LedgerSummary`, and `SubjectReplay` raised `NameError`
382
+ for `JsonValue`.
383
+ - The evidence-bundle verification recipes set `pipefail` and capture standard
384
+ error, so a failed validation fails the job instead of being hidden by `tee`.
385
+ The GitHub Actions recipe retains its verification report when validation
386
+ fails.
387
+
388
+ ## 0.2.0
389
+
390
+ The first public release of `itself`. It implements these format
391
+ versions, each versioned independently of the package:
392
+
393
+ | Surface | Version |
394
+ | --- | --- |
395
+ | Claim and Evidence Protocol | `0.1.0-alpha.3` |
396
+ | Reasoning receipt | `0.1.0-alpha.2` |
397
+ | Evidence bundle | `0.1.0-alpha.2` |
398
+ | Schema publication line | `v0alpha2` |
399
+ | Ledger canonicalization | `rfc8785-jsonl-v1` |
400
+ | Chat Completions adapter | `0.3.1` |
401
+ | Decision-model adapter | `0.1.0` |
402
+
403
+ ### Added
404
+
405
+ - A CI integration cookbook with a provider-free agent-change gate, independent
406
+ evidence-bundle verification, reasoning-receipt publication, and thin GitHub
407
+ Actions and GitLab CI wrappers.
408
+ - A versioned, content-identified evaluation-report contract with canonical
409
+ JSON output and derived Markdown rendering.
410
+ - A deterministic offline SDK exercise covering the complete
411
+ inference-to-evidence lifecycle, exact invalid-fixture outcomes, bundle
412
+ reproduction, and adversarial bundle mutations.
413
+ - An observational capacity curve for record construction, ledger storage,
414
+ receipt generation, and evidence-bundle validation at increasing sizes.
415
+ - CI automation that publishes evaluation summaries and retains their complete
416
+ reports and evidence bundles for inspection.
417
+ - Typed, schema-validating constructors for every Claim and Evidence Protocol
418
+ record kind, with immutable value objects for shared provenance, scope,
419
+ authority, oracle, relation, digest, and cost fields.
420
+ - A provider-neutral structured-inference protocol and configurable
421
+ OpenAI-compatible Chat Completions client.
422
+ - A typed `EvidenceBundleBuilder` and immutable `EvidenceBundleFile` input
423
+ model for materializing closed evidence bundles.
424
+ - `itself bundle create` for packaging a ledger, its deterministic receipt,
425
+ declared inputs, supplemental files, and every referenced artifact.
426
+ - Atomic bundle creation, default assurance limitations, strict artifact
427
+ mapping, and deterministic creation-time overrides.
428
+ - A complete, independently verifiable cache-key diagnosis evidence bundle.
429
+ - A compact, deterministic inference-to-evidence example exercising the public
430
+ compatible-endpoint adapter, private response capture, typed lifecycle
431
+ records, external verification, and closed evidence-bundle construction.
432
+ - An independent JavaScript conformance runner and CI job covering all
433
+ language-neutral record fixtures, cross-record integrity codes, authorization
434
+ rules, and deterministic bundle replay.
435
+ - Deterministic `itself schema export` tooling with a public catalog, schema
436
+ content digests, and canonical hosted URLs under
437
+ `https://greaterexpanse.com/itself/schemas/`.
438
+ - A top-level `itself --version` command and an automated package-version
439
+ consistency check.
440
+ - Schema guidance defining offline validation, export APIs, checksum
441
+ boundaries, and immutable versioned publication lines.
442
+ - Reproducible source-manifest and distribution-metadata checks, with the
443
+ documentation assets, controlled experiments, typing fixtures, and lockfile
444
+ included in source archives.
445
+ - An immutable `v0alpha2` schema publication line with RFC 8785 canonical JSON
446
+ Lines, I-JSON conformance vectors, and independent JavaScript verification.
447
+ - Configurable evidence-bundle limits for manifest size, inventory size,
448
+ individual and aggregate file bytes, directory traversal, receipts, and
449
+ ledger records.
450
+ - Deterministic publication-race tests for schema exports, evidence bundles,
451
+ and content-addressed inference artifacts.
452
+ - A decision-model adapter for endpoints that implement the `/v1/systemone`
453
+ decision format. `ChoiceQuestion`, `NoulQuestion`, and `ScoreQuestion`
454
+ declare typed questions; `DecisionModelEndpoint` applies the Chat Completions
455
+ endpoint's transport rules; and `DecisionModelClient` captures each exact
456
+ request and bounded response, validates every distribution locally, and by
457
+ default asks each ordered question with its options as declared and reversed,
458
+ reporting the order gap and whether the most likely option flipped. A
459
+ failure after a request is captured raises `DecisionModelError`, which
460
+ references the captured request and, inside `decide`, the attempts that
461
+ completed. Probabilities stay in artifacts, so protocol records and schemas
462
+ are unchanged.
463
+ - `DecisionModelAdapter`, a provider-neutral protocol for decision services
464
+ with other wire formats, and a decision-model guide.
465
+ - `decode_jsonl_records` in `itself.ledger` and `decode_receipt_document` in
466
+ `itself.receipts`, which decode ledger and receipt bytes under the same rules
467
+ as the file loaders.
468
+ - An opt-in `trusted_authorizers` for `BundleValidator` and
469
+ `EvidenceBundleValidator`, and a repeatable `--trusted-authorizer ID` option
470
+ on the `ledger`, `receipt`, and `bundle` commands. Validation then refuses an
471
+ evidence-backed transition whose `authorized_by` declares any other actor id,
472
+ with the new `untrusted_authorizer` integrity code. The list compares
473
+ declared ids and establishes no identity.
474
+ - `EVIDENCE_BACKED_STATUSES`, the statuses a transition reaches only with
475
+ evidence, exported from `itself`.
476
+ - A `max_bytes` limit for `JsonReceiptStore.write`, which refuses a larger
477
+ receipt before writing anything.
478
+ - An opt-in `deadline_seconds` on `OpenAICompatibleEndpoint`,
479
+ `DecisionModelEndpoint`, and `HttpRequest`. The built-in transport shuts a
480
+ request down once it passes, so a server that keeps a connection busy with
481
+ keep-alive comments or chunked trailer lines can no longer hold a call open
482
+ past the per-read `timeout_seconds`. The deadline runs from the moment the
483
+ socket connects, so it also covers a proxy's `CONNECT` exchange and the TLS
484
+ handshake, and a request with a deadline trusts the same certificates as one
485
+ without.
486
+ - A test that pins the SHA-256 digest of every packaged schema file, so a
487
+ published schema line cannot change in place.
488
+ - Shared JSON reader fixtures under `conformance/json/accept` and
489
+ `conformance/json/reject` that both the Python reference and the JavaScript
490
+ validator must accept or refuse, plus a valid record fixture with an IPv6
491
+ artifact host, invalid record fixtures for timestamps with a space separator,
492
+ a leap second, or a trailing newline and for URIs with a malformed port, an
493
+ IPv6 literal written with `{,2}`, or an IPv4 octet with a leading zero inside
494
+ an IPv6 literal, and invalid bundle fixtures for a `__proto__` scope dimension
495
+ and a blank transition subject. The reader fixtures also cover a zero and an
496
+ underflowing number written with exponents beyond the range of any float, and
497
+ an escaped `NUL` with uppercase hexadecimal digits.
498
+
499
+ ### Changed
500
+
501
+ - Public positioning now leads with agent assurance and AI-driven engineering
502
+ workflows, while retaining evidence as the formal result of an external check
503
+ in the provider-neutral protocol.
504
+ - Project licensing changed from the MIT License to the Mozilla Public License
505
+ 2.0.
506
+ - Authored Python and JavaScript sources now carry per-file SPDX license and
507
+ Greater Expanse LLC copyright notices.
508
+ - Public reference material is grouped behind an audience-oriented
509
+ documentation index instead of competing with the README at repository root.
510
+ - The README, evaluation guides, and generated comparison reports now explain
511
+ Itself's assurance boundary and experiment outcomes in plain developer-facing
512
+ language before presenting reproducibility details.
513
+ - The public Python schema-export surface uses `export_schemas`, `SchemaExport`,
514
+ and `SchemaExportError`.
515
+ - Experimental contract identifiers now use self-contained `urn:itself:...`
516
+ references instead of URLs for schemas that are not part of the public hosted
517
+ catalog.
518
+ - Local examples and inference artifacts now stay under the ignored `.itself/`
519
+ workspace, and CI checkouts no longer persist Git credentials.
520
+ - Evidence-backed state transitions now require a preceding verdict whose
521
+ subject, scope, relation, evidence, and authorized transition match exactly.
522
+ - Current-line ledger and receipt identifiers now use RFC 8785 rather than a
523
+ Python-specific JSON serialization profile.
524
+ - Experiment bundle formats now share one validation and filesystem policy;
525
+ repeated schema-diagnostic and runtime-narrowing helpers are centralized.
526
+ - Appending to a `Ledger` or `JsonlLedgerStore` schema-validates only the new
527
+ records instead of the whole history, so an append no longer slows down in
528
+ proportion to the ledger's size.
529
+ - `ProtocolValidator` validates each record against the schema branch for its
530
+ `kind`, so errors name the failing field instead of reporting that a record
531
+ matches none of the nine record kinds, and it compiles the packaged schema
532
+ once per process. The set of accepted records is unchanged: a schema whose
533
+ shape would make the per-kind branch accept a different set, such as one with
534
+ a root `$ref` or a branch with keywords beside its `$ref`, is applied whole.
535
+ Tests check this against every conformance fixture, systematic mutations of
536
+ them, and three custom schemas.
537
+ - Strict JSON decoding requires UTF-8 bytes without a byte-order mark and
538
+ rejects values nested more than 128 levels deep with `IJsonError` instead of
539
+ an uncaught `RecursionError`. `ProtocolValidator` applies the same limit and
540
+ refuses a value that contains itself, so a ledger never stores a record its
541
+ own reader would refuse.
542
+ - The built-in HTTP transport never sends loopback requests through a proxy and
543
+ accepts only `http` and `https` URLs; requests to other hosts still honor the
544
+ standard proxy environment. Endpoints refuse a `base_url` or `resource_path`
545
+ with whitespace, control, or non-ASCII characters, reserve the `Host`,
546
+ `Content-Length`, and `Transfer-Encoding` headers, and limit
547
+ `timeout_seconds` and `deadline_seconds` to `threading.TIMEOUT_MAX`. A URL or
548
+ header value that HTTP cannot carry is a configuration failure instead of a
549
+ retryable transport failure, and a credential value that ends in whitespace
550
+ is refused like one with a line break. The Chat Completions adapter version
551
+ is `0.3.1`.
552
+ - `EvidenceBundleValidator` parses the ledger and receipt from the same bytes
553
+ it checks against the manifest. `EvidenceBundleBuilder.build` validates the
554
+ staged bundle once and then re-hashes the published copy instead of
555
+ validating it a second time.
556
+ - CLI commands that read ledgers or receipts (`bundle create`, `ledger
557
+ validate`, `ledger replay`, `ledger summary`, `receipt generate`, and
558
+ `receipt validate`) enforce the default evidence-bundle ceilings of 100,000
559
+ records or 128 MiB per ledger and 128 MiB per receipt, and `receipt generate
560
+ --output` refuses to write a receipt over its ceiling. Larger ledgers remain
561
+ available through the Python API.
562
+ - Schema format checks use jsonschema's `format-nongpl` extra, so the SDK
563
+ installs no GPL-licensed dependency, and `uri-reference` is checked with the
564
+ SDK's own pattern for RFC 3986's URI-reference rule, whichever URI library is
565
+ installed. The pattern follows the RFC in two cases the earlier checker
566
+ decided the other way: an IPv4 octet with a leading zero inside an IPv6
567
+ literal is refused, and an IPvFuture literal may begin with an uppercase
568
+ `V`.
569
+ - The default receipt ceiling in `EvidenceBundleLimits` is 128 MiB, up from
570
+ 64 MiB, matching the ledger ceiling, because a receipt can be nearly as large
571
+ as its ledger.
572
+ - `TransitionRequest` validates its fields when it is constructed: an unknown
573
+ status, actor type, or role, or `None` for any of them, raises `ValueError`,
574
+ as does an `evidence_refs` that is a single string or `None`.
575
+ - `bundle create` assigns media types from a fixed suffix table owned by the
576
+ SDK instead of the host's `mimetypes` database, so regenerating a bundle with
577
+ `--created-at` gives the same identifier on every host.
578
+ - The protocol specification now states that a completed test MUST cite its
579
+ evidence, as the `v0alpha2` schema already requires; that records citing each
580
+ other are appended together; that the reference reader limits nesting to 128
581
+ levels, which writers must not exceed; that each record declares actor types
582
+ rather than binding them to an identity; and that a trust list compares
583
+ declared identifiers.
584
+
585
+ ### Fixed
586
+
587
+ - Compose conditional `test` and `verdict` rules inside their schema `allOf`
588
+ blocks so independent Draft 2020-12 validators agree on evaluated properties.
589
+ - Reject symlinked or permissively accessible inference-artifact destinations
590
+ before writing raw provider responses.
591
+ - Closed-bundle artifact records without a digest now produce a stable
592
+ validation error instead of an internal key lookup failure.
593
+ - Reject symbolic-link paths at ledger, receipt, and schema-export storage
594
+ boundaries without altering their targets.
595
+ - Reject duplicate keys, non-finite values, unsafe integers, negative zero,
596
+ Unicode surrogates, and ambiguous external references at untrusted JSON
597
+ boundaries.
598
+ - Refuse credential-bearing plaintext endpoints, redirects, unsafe resource
599
+ paths, conflicting transport overrides, oversized responses, malformed
600
+ streaming events, and incomplete model output.
601
+ - Bound evidence-bundle validation before expensive traversal, allocation, or
602
+ hashing, and stream artifact digests instead of loading entire files.
603
+ - Publish completed directories with an atomic no-replace operation so a
604
+ destination created concurrently is preserved.
605
+ - Keep private experiment-directory creation inside its declared boundary
606
+ without changing permissions on caller-owned ancestors.
607
+ - Refuse a credential value that contains a line break or other character not
608
+ allowed in an HTTP header as a configuration failure before any request.
609
+ Previously `http.client` rejected it inside a chained, retryable transport
610
+ error whose traceback could print the secret. Extra header values must be
611
+ printable ASCII, and `base_url` must carry a valid port.
612
+ - `validate_transition` and `Actor` convert plain strings decoded from JSON to
613
+ enum members, so a string-typed model actor can no longer authorize an
614
+ evidence-backed transition through the public function.
615
+ - A bare string passed as a reference list, such as `evidence_refs="ev-1"`,
616
+ raises `RecordConstructionError` instead of being stored as one reference per
617
+ character.
618
+ - Report a response body that ends before its declared length, and other
619
+ `http.client` protocol errors, as retryable transport failures.
620
+ - `InferenceError` survives pickling, so a failure raised in a worker process
621
+ reaches the caller with its failure class, status code, and artifact.
622
+ - `DirectoryArtifactSink` calls `os.fchmod` only on POSIX; Python 3.11 and 3.12
623
+ lack it on Windows.
624
+ - A streamed content part without text is a response-envelope failure instead
625
+ of an uncaught `KeyError`.
626
+ - `receipt generate --output` refuses to replace its own source ledger.
627
+ - The bundle builder rejects `%`, `?`, and `#` in file paths, which URL
628
+ resolvers would decode or truncate.
629
+ - A `size_bytes` in a bundle manifest that is not a JSON integer, such as
630
+ `3302.0`, or an inventory path that cannot be inspected, raises
631
+ `EvidenceBundleValidationError`.
632
+ - The strict reader reports a number whose exponent is beyond `Decimal`'s
633
+ range, such as `1e-99999999999999999999`, as an `IJsonError` instead of
634
+ raising `decimal.InvalidOperation`, and reads a zero with such an exponent
635
+ as zero, as the JavaScript validator does.
636
+ - `EvidenceBundleBuilder.build` removes a published bundle whose files no
637
+ longer match what it verified before it raises, so no unverified bundle is
638
+ left at the destination.
639
+ - `status_transition_record` accepts plain status strings and reports an
640
+ unknown status as `RecordConstructionError`.
641
+ - The JavaScript conformance validator parses JSON with its own strict parser.
642
+ It rejects repeated keys even when their values are equal, keeps `__proto__`
643
+ keys so its ledger digests match Python's, rejects invalid UTF-8 and
644
+ byte-order marks instead of decoding them, and limits nesting to 128 levels.
645
+ It checks `date-time` with the Python reference's grammar and
646
+ `uri-reference` with the reference's own RFC 3986 pattern, refuses blank
647
+ transition subjects as the reference does, and no longer accepts a lone high
648
+ surrogate at the end of a string. `lossless-json` is no longer a dependency.
649
+ - Protocol, receipt, and bundle validation refuse a `date-time` or
650
+ `uri-reference` value that ends in a newline, which the underlying regular
651
+ expressions accepted.