underwrite 0.0.1__tar.gz → 0.1.1__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 (257) hide show
  1. underwrite-0.1.1/PKG-INFO +446 -0
  2. underwrite-0.1.1/README.md +431 -0
  3. underwrite-0.1.1/contracts/acceptance_decision.v2.schema.json +355 -0
  4. underwrite-0.1.1/contracts/baseline_record.v1.schema.json +1979 -0
  5. underwrite-0.1.1/contracts/binary_run_audit.v1.schema.json +184 -0
  6. underwrite-0.1.1/contracts/binary_run_inventory.v1.schema.json +130 -0
  7. underwrite-0.1.1/contracts/boundary_allowlist.v1.schema.json +64 -0
  8. underwrite-0.1.1/contracts/capabilities.v1.schema.json +90 -0
  9. underwrite-0.1.1/contracts/cli_result.v1.schema.json +875 -0
  10. underwrite-0.1.1/contracts/common_result_inspection.v1.schema.json +336 -0
  11. underwrite-0.1.1/contracts/common_result_inspection_actions.v1.schema.json +425 -0
  12. underwrite-0.1.1/contracts/declared_claims.v2.schema.json +127 -0
  13. underwrite-0.1.1/contracts/declared_comparison.v1.schema.json +83 -0
  14. underwrite-0.1.1/contracts/declared_comparison_case.v1.schema.json +69 -0
  15. underwrite-0.1.1/contracts/deepeval_accounting.v1.schema.json +512 -0
  16. underwrite-0.1.1/contracts/deepeval_accounting.v2.schema.json +576 -0
  17. underwrite-0.1.1/contracts/deepeval_bound_record.v1.schema.json +2464 -0
  18. underwrite-0.1.1/contracts/deepeval_metric_bindings.v1.schema.json +517 -0
  19. underwrite-0.1.1/contracts/deepeval_record.v1.schema.json +1574 -0
  20. underwrite-0.1.1/contracts/deepeval_record.v2.schema.json +1642 -0
  21. underwrite-0.1.1/contracts/evidence_error.v1.schema.json +18 -0
  22. underwrite-0.1.1/contracts/evidence_result.v1.schema.json +267 -0
  23. underwrite-0.1.1/contracts/exemptions.v1.schema.json +51 -0
  24. underwrite-0.1.1/contracts/langfuse_accounting.v1.schema.json +580 -0
  25. underwrite-0.1.1/contracts/langfuse_record.v1.schema.json +1788 -0
  26. underwrite-0.1.1/contracts/langfuse_row_index.v1.schema.json +342 -0
  27. {underwrite-0.0.1/src/underwrite/_contracts → underwrite-0.1.1/contracts}/measurement_policy.v2.schema.json +1 -0
  28. underwrite-0.1.1/contracts/measurement_policy.v3.schema.json +169 -0
  29. underwrite-0.1.1/contracts/measurement_record.v1.schema.json +2537 -0
  30. underwrite-0.1.1/contracts/measurement_replay.v1.schema.json +1670 -0
  31. underwrite-0.1.1/contracts/measurement_semantics.v1.schema.json +251 -0
  32. underwrite-0.1.1/contracts/metric_definition.v1.schema.json +162 -0
  33. underwrite-0.1.1/contracts/paired_binary_evidence.v1.schema.json +929 -0
  34. underwrite-0.1.1/contracts/paired_binary_input.v1.schema.json +219 -0
  35. underwrite-0.1.1/contracts/paired_binary_policy.v1.schema.json +66 -0
  36. underwrite-0.1.1/contracts/paired_handoff_review.v1.schema.json +3094 -0
  37. underwrite-0.1.1/contracts/paired_review.v1.schema.json +323 -0
  38. underwrite-0.1.1/contracts/paired_review_context.v1.schema.json +157 -0
  39. underwrite-0.1.1/contracts/promptfoo_accounting.v1.schema.json +112 -0
  40. underwrite-0.1.1/contracts/promptfoo_record.v1.schema.json +1276 -0
  41. underwrite-0.1.1/contracts/promptfoo_row_index.v1.schema.json +320 -0
  42. underwrite-0.1.1/contracts/read.v2.schema.json +1057 -0
  43. underwrite-0.1.1/contracts/record_catalog.v1.schema.json +67 -0
  44. underwrite-0.1.1/contracts/record_document.v1.schema.json +78 -0
  45. underwrite-0.1.1/contracts/record_error.v1.schema.json +382 -0
  46. underwrite-0.1.1/contracts/record_spec.v1.schema.json +176 -0
  47. underwrite-0.1.1/contracts/record_verification.v1.schema.json +73 -0
  48. underwrite-0.1.1/contracts/record_view.v1.schema.json +355 -0
  49. underwrite-0.1.1/contracts/result_record.v1.schema.json +180 -0
  50. underwrite-0.1.1/pyproject.toml +179 -0
  51. underwrite-0.0.1/pyproject.toml → underwrite-0.1.1/pyproject.toml.orig +52 -4
  52. underwrite-0.1.1/src/underwrite/_contracts/acceptance_decision.v2.schema.json +355 -0
  53. underwrite-0.1.1/src/underwrite/_contracts/baseline_record.v1.schema.json +1979 -0
  54. underwrite-0.1.1/src/underwrite/_contracts/binary_run_audit.v1.schema.json +184 -0
  55. underwrite-0.1.1/src/underwrite/_contracts/binary_run_inventory.v1.schema.json +130 -0
  56. underwrite-0.1.1/src/underwrite/_contracts/boundary_allowlist.v1.schema.json +64 -0
  57. underwrite-0.1.1/src/underwrite/_contracts/capabilities.v1.schema.json +90 -0
  58. underwrite-0.1.1/src/underwrite/_contracts/cli_result.v1.schema.json +875 -0
  59. underwrite-0.1.1/src/underwrite/_contracts/common_result_inspection.v1.schema.json +336 -0
  60. underwrite-0.1.1/src/underwrite/_contracts/common_result_inspection_actions.v1.schema.json +425 -0
  61. underwrite-0.1.1/src/underwrite/_contracts/declared_claims.v2.schema.json +127 -0
  62. underwrite-0.1.1/src/underwrite/_contracts/declared_comparison.v1.schema.json +83 -0
  63. underwrite-0.1.1/src/underwrite/_contracts/declared_comparison_case.v1.schema.json +69 -0
  64. underwrite-0.1.1/src/underwrite/_contracts/deepeval_accounting.v1.schema.json +512 -0
  65. underwrite-0.1.1/src/underwrite/_contracts/deepeval_accounting.v2.schema.json +576 -0
  66. underwrite-0.1.1/src/underwrite/_contracts/deepeval_bound_record.v1.schema.json +2464 -0
  67. underwrite-0.1.1/src/underwrite/_contracts/deepeval_metric_bindings.v1.schema.json +517 -0
  68. underwrite-0.1.1/src/underwrite/_contracts/deepeval_record.v1.schema.json +1574 -0
  69. underwrite-0.1.1/src/underwrite/_contracts/deepeval_record.v2.schema.json +1642 -0
  70. underwrite-0.1.1/src/underwrite/_contracts/evidence_error.v1.schema.json +18 -0
  71. underwrite-0.1.1/src/underwrite/_contracts/evidence_result.v1.schema.json +267 -0
  72. underwrite-0.1.1/src/underwrite/_contracts/exemptions.v1.schema.json +51 -0
  73. underwrite-0.1.1/src/underwrite/_contracts/langfuse_accounting.v1.schema.json +580 -0
  74. underwrite-0.1.1/src/underwrite/_contracts/langfuse_record.v1.schema.json +1788 -0
  75. underwrite-0.1.1/src/underwrite/_contracts/langfuse_row_index.v1.schema.json +342 -0
  76. {underwrite-0.0.1/contracts → underwrite-0.1.1/src/underwrite/_contracts}/measurement_policy.v2.schema.json +1 -0
  77. underwrite-0.1.1/src/underwrite/_contracts/measurement_policy.v3.schema.json +169 -0
  78. underwrite-0.1.1/src/underwrite/_contracts/measurement_record.v1.schema.json +2537 -0
  79. underwrite-0.1.1/src/underwrite/_contracts/measurement_replay.v1.schema.json +1670 -0
  80. underwrite-0.1.1/src/underwrite/_contracts/measurement_semantics.v1.schema.json +251 -0
  81. underwrite-0.1.1/src/underwrite/_contracts/metric_definition.v1.schema.json +162 -0
  82. underwrite-0.1.1/src/underwrite/_contracts/paired_binary_evidence.v1.schema.json +929 -0
  83. underwrite-0.1.1/src/underwrite/_contracts/paired_binary_input.v1.schema.json +219 -0
  84. underwrite-0.1.1/src/underwrite/_contracts/paired_binary_policy.v1.schema.json +66 -0
  85. underwrite-0.1.1/src/underwrite/_contracts/paired_handoff_review.v1.schema.json +3094 -0
  86. underwrite-0.1.1/src/underwrite/_contracts/paired_review.v1.schema.json +323 -0
  87. underwrite-0.1.1/src/underwrite/_contracts/paired_review_context.v1.schema.json +157 -0
  88. underwrite-0.1.1/src/underwrite/_contracts/promptfoo_accounting.v1.schema.json +112 -0
  89. underwrite-0.1.1/src/underwrite/_contracts/promptfoo_record.v1.schema.json +1276 -0
  90. underwrite-0.1.1/src/underwrite/_contracts/promptfoo_row_index.v1.schema.json +320 -0
  91. underwrite-0.1.1/src/underwrite/_contracts/read.v2.schema.json +1057 -0
  92. underwrite-0.1.1/src/underwrite/_contracts/record_catalog.v1.schema.json +67 -0
  93. underwrite-0.1.1/src/underwrite/_contracts/record_document.v1.schema.json +78 -0
  94. underwrite-0.1.1/src/underwrite/_contracts/record_error.v1.schema.json +382 -0
  95. underwrite-0.1.1/src/underwrite/_contracts/record_spec.v1.schema.json +176 -0
  96. underwrite-0.1.1/src/underwrite/_contracts/record_verification.v1.schema.json +73 -0
  97. underwrite-0.1.1/src/underwrite/_contracts/record_view.v1.schema.json +355 -0
  98. underwrite-0.1.1/src/underwrite/_contracts/result_record.v1.schema.json +180 -0
  99. underwrite-0.1.1/src/underwrite/_fileio.py +36 -0
  100. underwrite-0.1.1/src/underwrite/_json.py +72 -0
  101. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/acceptance/claims.py +19 -11
  102. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/acceptance/classify.py +2 -2
  103. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/acceptance/decision.py +49 -93
  104. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/accept.py +29 -16
  105. underwrite-0.1.1/src/underwrite/cli/audit_baseline.py +40 -0
  106. underwrite-0.1.1/src/underwrite/cli/audit_counts.py +37 -0
  107. underwrite-0.1.1/src/underwrite/cli/audit_deepeval.py +147 -0
  108. underwrite-0.1.1/src/underwrite/cli/audit_langfuse.py +104 -0
  109. underwrite-0.1.1/src/underwrite/cli/audit_promptfoo.py +62 -0
  110. underwrite-0.1.1/src/underwrite/cli/audit_run.py +77 -0
  111. underwrite-0.1.1/src/underwrite/cli/boundary.py +344 -0
  112. underwrite-0.1.1/src/underwrite/cli/capabilities.py +106 -0
  113. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/commands.py +113 -37
  114. underwrite-0.1.1/src/underwrite/cli/compare_declarations.py +110 -0
  115. underwrite-0.1.1/src/underwrite/cli/evidence.py +146 -0
  116. underwrite-0.1.1/src/underwrite/cli/handoff_limits.py +11 -0
  117. underwrite-0.1.1/src/underwrite/cli/handoff_review.py +399 -0
  118. underwrite-0.1.1/src/underwrite/cli/inspect_result.py +192 -0
  119. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/instrument.py +15 -2
  120. underwrite-0.1.1/src/underwrite/cli/legacy_input.py +142 -0
  121. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/local_json.py +46 -8
  122. underwrite-0.1.1/src/underwrite/cli/main.py +539 -0
  123. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/measure.py +53 -111
  124. underwrite-0.1.1/src/underwrite/cli/measurement_flow.py +114 -0
  125. underwrite-0.1.1/src/underwrite/cli/pair_binary.py +77 -0
  126. underwrite-0.1.1/src/underwrite/cli/prepare_event_policy.py +84 -0
  127. underwrite-0.1.1/src/underwrite/cli/project_baseline.py +73 -0
  128. underwrite-0.1.1/src/underwrite/cli/record_baseline.py +258 -0
  129. underwrite-0.1.1/src/underwrite/cli/record_capture.py +122 -0
  130. underwrite-0.1.1/src/underwrite/cli/record_deepeval.py +330 -0
  131. underwrite-0.1.1/src/underwrite/cli/record_deepeval_bound.py +280 -0
  132. underwrite-0.1.1/src/underwrite/cli/record_langfuse.py +317 -0
  133. underwrite-0.1.1/src/underwrite/cli/record_measure.py +314 -0
  134. underwrite-0.1.1/src/underwrite/cli/record_promptfoo.py +298 -0
  135. underwrite-0.1.1/src/underwrite/cli/records.py +317 -0
  136. underwrite-0.1.1/src/underwrite/cli/render.py +98 -0
  137. underwrite-0.1.1/src/underwrite/cli/replay_measure.py +211 -0
  138. underwrite-0.1.1/src/underwrite/cli/review_pair.py +57 -0
  139. underwrite-0.1.1/src/underwrite/fleet/_pin_storage.py +211 -0
  140. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/fleet/drift.py +34 -14
  141. underwrite-0.1.1/src/underwrite/fleet/pins.py +575 -0
  142. underwrite-0.1.1/src/underwrite/instrument/evidence/accounting.py +194 -0
  143. underwrite-0.1.1/src/underwrite/instrument/evidence/common_result.py +111 -0
  144. underwrite-0.1.1/src/underwrite/instrument/evidence/declarations.py +163 -0
  145. underwrite-0.1.1/src/underwrite/instrument/evidence/deepeval_accounting.py +284 -0
  146. underwrite-0.1.1/src/underwrite/instrument/evidence/deepeval_binding.py +161 -0
  147. underwrite-0.1.1/src/underwrite/instrument/evidence/goppi_baseline.py +794 -0
  148. underwrite-0.1.1/src/underwrite/instrument/evidence/goppi_identity.py +17 -0
  149. underwrite-0.1.1/src/underwrite/instrument/evidence/goppi_p7_handoff.py +1970 -0
  150. underwrite-0.1.1/src/underwrite/instrument/evidence/langfuse_accounting.py +235 -0
  151. underwrite-0.1.1/src/underwrite/instrument/evidence/langfuse_row_index.py +80 -0
  152. underwrite-0.1.1/src/underwrite/instrument/evidence/paired_binary.py +669 -0
  153. underwrite-0.1.1/src/underwrite/instrument/evidence/paired_review.py +597 -0
  154. underwrite-0.1.1/src/underwrite/instrument/evidence/run_audit.py +425 -0
  155. underwrite-0.1.1/src/underwrite/instrument/ingest/accounting.py +277 -0
  156. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/_shape.py +11 -3
  157. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/deepeval.py +39 -19
  158. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/promptfoo.py +18 -6
  159. underwrite-0.1.1/src/underwrite/instrument/ingest/deepeval_accounting.py +140 -0
  160. underwrite-0.1.1/src/underwrite/instrument/ingest/deepeval_binding.py +131 -0
  161. underwrite-0.1.1/src/underwrite/instrument/ingest/goppi_baseline.py +112 -0
  162. underwrite-0.1.1/src/underwrite/instrument/ingest/goppi_p7_handoff.py +360 -0
  163. underwrite-0.1.1/src/underwrite/instrument/ingest/goppi_pilot.py +840 -0
  164. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/inspection.py +44 -6
  165. underwrite-0.1.1/src/underwrite/instrument/ingest/langfuse_accounting.py +152 -0
  166. underwrite-0.1.1/src/underwrite/instrument/ingest/local_capture.py +294 -0
  167. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/project.py +4 -5
  168. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/transport.py +5 -96
  169. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/calibration.py +4 -1
  170. underwrite-0.1.1/src/underwrite/measurement/directional.py +61 -0
  171. underwrite-0.1.1/src/underwrite/measurement/event_policy.py +105 -0
  172. underwrite-0.1.1/src/underwrite/measurement/event_read.py +328 -0
  173. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/read_input.py +9 -6
  174. underwrite-0.1.1/src/underwrite/measurement_contract/read.py +310 -0
  175. underwrite-0.1.1/src/underwrite/measurement_contract/semantics.py +184 -0
  176. underwrite-0.1.1/src/underwrite/service/__init__.py +0 -0
  177. underwrite-0.1.1/src/underwrite/service/_record_errors.py +34 -0
  178. underwrite-0.1.1/src/underwrite/service/_record_format.py +444 -0
  179. underwrite-0.1.1/src/underwrite/service/records.py +1013 -0
  180. underwrite-0.0.1/PKG-INFO +0 -188
  181. underwrite-0.0.1/README.md +0 -173
  182. underwrite-0.0.1/src/underwrite/cli/boundary.py +0 -235
  183. underwrite-0.0.1/src/underwrite/cli/main.py +0 -103
  184. underwrite-0.0.1/src/underwrite/cli/render.py +0 -62
  185. underwrite-0.0.1/src/underwrite/fleet/pins.py +0 -235
  186. {underwrite-0.0.1 → underwrite-0.1.1}/LICENSE +0 -0
  187. {underwrite-0.0.1 → underwrite-0.1.1}/NOTICE +0 -0
  188. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/acceptance_decision.v1.schema.json +0 -0
  189. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/acceptance_error.v1.schema.json +0 -0
  190. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/artifact_case.v1.schema.json +0 -0
  191. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/artifact_inspection.v1.schema.json +0 -0
  192. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/artifact_inspection_error.v1.schema.json +0 -0
  193. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/change_candidate.v1.schema.json +0 -0
  194. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/declared_claims.v1.schema.json +0 -0
  195. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/gate_rules.v1.schema.json +0 -0
  196. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/measurement_error.v1.schema.json +0 -0
  197. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/observation.v1.schema.json +0 -0
  198. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/read.v1.schema.json +0 -0
  199. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/release_case.v1.schema.json +0 -0
  200. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/release_inspection.v1.schema.json +0 -0
  201. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/release_inspection_error.v1.schema.json +0 -0
  202. {underwrite-0.0.1 → underwrite-0.1.1}/contracts/statistical_seed.v1.schema.json +0 -0
  203. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/__init__.py +0 -0
  204. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/acceptance_decision.v1.schema.json +0 -0
  205. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/acceptance_error.v1.schema.json +0 -0
  206. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/artifact_case.v1.schema.json +0 -0
  207. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/artifact_inspection.v1.schema.json +0 -0
  208. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/artifact_inspection_error.v1.schema.json +0 -0
  209. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/change_candidate.v1.schema.json +0 -0
  210. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/declared_claims.v1.schema.json +0 -0
  211. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/gate_rules.v1.schema.json +0 -0
  212. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/measurement_error.v1.schema.json +0 -0
  213. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/observation.v1.schema.json +0 -0
  214. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/read.v1.schema.json +0 -0
  215. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/release_case.v1.schema.json +0 -0
  216. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/release_inspection.v1.schema.json +0 -0
  217. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/release_inspection_error.v1.schema.json +0 -0
  218. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/_contracts/statistical_seed.v1.schema.json +0 -0
  219. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/acceptance/__init__.py +0 -0
  220. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/acceptance/incident.py +0 -0
  221. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/acceptance/lifecycle.py +0 -0
  222. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/adjudication/__init__.py +0 -0
  223. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/__init__.py +0 -0
  224. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/gate_rules.py +0 -0
  225. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/inspection.py +0 -0
  226. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/cli/release.py +0 -0
  227. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/fleet/__init__.py +0 -0
  228. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/__init__.py +0 -0
  229. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/__init__.py +0 -0
  230. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/_resampling.py +0 -0
  231. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/aa.py +0 -0
  232. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/controlled.py +0 -0
  233. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/judge.py +0 -0
  234. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/paired.py +0 -0
  235. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/retrieval.py +0 -0
  236. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/selfcheck.py +0 -0
  237. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/evidence/split.py +0 -0
  238. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/__init__.py +0 -0
  239. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/application.py +0 -0
  240. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/__init__.py +0 -0
  241. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/evidence_bundle.py +0 -0
  242. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/inspect.py +0 -0
  243. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/langfuse.py +0 -0
  244. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/openinference.py +0 -0
  245. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/codecs/otlp_json.py +0 -0
  246. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/formats.py +0 -0
  247. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/release.py +0 -0
  248. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/release_bindings.py +0 -0
  249. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/release_compose.py +0 -0
  250. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/instrument/ingest/schema.py +0 -0
  251. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/__init__.py +0 -0
  252. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/availability.py +0 -0
  253. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/eprocess.py +0 -0
  254. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/jury.py +0 -0
  255. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/read.py +0 -0
  256. {underwrite-0.0.1 → underwrite-0.1.1}/src/underwrite/measurement/stratify.py +0 -0
  257. {underwrite-0.0.1/src/underwrite/service → underwrite-0.1.1/src/underwrite/measurement_contract}/__init__.py +0 -0
@@ -0,0 +1,446 @@
1
+ Metadata-Version: 2.4
2
+ Name: underwrite
3
+ Version: 0.1.1
4
+ Summary: Local evidence normalization, measurement, and acceptance checks
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Requires-Dist: underwrite-core>=0.1.0,<0.2
9
+ Requires-Dist: jsonschema>=4.26.0
10
+ Requires-Dist: pyyaml>=6.0.3
11
+ Requires-Python: >=3.12
12
+ Project-URL: Repository, https://github.com/ntts9990/underwrite
13
+ Project-URL: Issues, https://github.com/ntts9990/underwrite/issues
14
+ Description-Content-Type: text/markdown
15
+
16
+ <div align="center">
17
+
18
+ <h1><img src="https://raw.githubusercontent.com/ntts9990/underwrite/main/assets/brand/underwrite-logo.png" alt="underwrite" width="640"></h1>
19
+
20
+ ### Know what your eval files actually support.
21
+
22
+ Find mismatches. Keep missing evidence visible. Know what to check next.
23
+
24
+ **Local CLI & Python library · Typed JSON · No server or model calls**
25
+
26
+ [![CI](https://github.com/ntts9990/underwrite/actions/workflows/ci.yml/badge.svg)](https://github.com/ntts9990/underwrite/actions/workflows/ci.yml)
27
+ [![PyPI](https://img.shields.io/pypi/v/underwrite)](https://pypi.org/project/underwrite/)
28
+ [![Python 3.12+](https://img.shields.io/badge/Python-3.12%2B-blue)](https://pypi.org/project/underwrite/)
29
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/ntts9990/underwrite/blob/main/LICENSE)
30
+
31
+ **[Try it](#quickstart)** · [Use with an agent](#agent-use) · [Supported formats](#supported-formats) · [Docs](#documentation)
32
+
33
+ **English** · [한국어](https://github.com/ntts9990/underwrite/blob/main/README.ko.md)
34
+
35
+ </div>
36
+
37
+ Already have evaluation exports from **goppi, Langfuse, DeepEval, or Promptfoo**?
38
+ A score or summary alone does not show whether supplied rows match declared
39
+ totals or whether the planned case inventory is complete. For supported local
40
+ profiles, underwrite checks relationships it can verify and makes unknown
41
+ coverage explicit. It returns typed CLI/Python results with findings, input
42
+ identity, and interpretation limits. You or your agent can use them to request
43
+ the next piece of evidence.
44
+
45
+ Underwrite complements the tools that run evaluations: goppi owns execution,
46
+ trace/verifier binding, and reruns; other producers own their exports and scores.
47
+ Underwrite examines supplied artifacts and can retain selected bytes. It does
48
+ not rerun an agent, independently authenticate a producer, or assign a universal
49
+ quality score. No Docker, dashboard, or provider credentials are needed to
50
+ inspect the supported local files.
51
+
52
+ > [!NOTE]
53
+ > **This guide targets `underwrite==0.1.1`.** Its CLI and Python workflows work
54
+ > without a checkout. The older `0.0.1` artifacts lack these workflows and have
55
+ > a separate `pins refresh` caution; see [Install](#install).
56
+
57
+ ## Quickstart
58
+
59
+ Requires **Python 3.12+** and [uv](https://docs.astral.sh/uv/); the optional
60
+ synthetic download below uses `curl`.
61
+ File-based CLI workflows are tested with CPython 3.12 on Linux and macOS. They
62
+ require Unix/POSIX file APIs, including for ordinary artifact reads.
63
+
64
+ **1. Install and check a file.** The app-only install resolves a compatible
65
+ `underwrite-core` automatically. Download the public synthetic example; no
66
+ checkout or API key is needed:
67
+
68
+ ```sh
69
+ uv tool install 'underwrite==0.1.1'
70
+ underwrite capabilities --json
71
+ example_dir=$(mktemp -d)
72
+ curl -fsSLo "$example_dir/promptfoo.json" \
73
+ https://raw.githubusercontent.com/ntts9990/underwrite/cb913d39bce628b93dcd3b06fcc4ce36f9dc66af/fixtures/examples/evidence/synthetic-promptfoo-count-mismatch.json
74
+ underwrite audit-promptfoo "$example_dir/promptfoo.json" \
75
+ --version 0.123.0 --json
76
+ ```
77
+
78
+ The same `uv tool install` command updates an older uv-managed `underwrite`
79
+ tool without `--force`. If your shell cannot find `underwrite`, run
80
+ `uv tool update-shell` and open a new shell.
81
+
82
+ **2. Read the finding.** The producer summary declares **3 results**, including
83
+ **1 failure**; the file contains **2 rows**, with **0 failure rows**. The command
84
+ reports the difference without guessing which side is wrong. Selected fields
85
+ from its actual output:
86
+
87
+ ```json
88
+ {
89
+ "schema": "promptfoo_accounting.v1",
90
+ "declared_relation": "inconsistent",
91
+ "producer_stats": {"errors": 1, "failures": 1, "successes": 1, "total": 3},
92
+ "row_tallies": {"errors": 1, "failures": 0, "successes": 1, "total": 2},
93
+ "deltas": {"errors": 0, "failures": -1, "successes": 0, "total": -1},
94
+ "findings": [
95
+ {"code": "CATEGORY_COUNT_MISMATCH", "location": "/results/stats/failures", "row_index": null}
96
+ ],
97
+ "limitations": [
98
+ "PLANNED_DENOMINATOR_UNKNOWN",
99
+ "CAUSE_UNKNOWN",
100
+ "SOURCE_CLAIMS_UNVERIFIED",
101
+ "NO_APPROVAL_AUTHORITY"
102
+ ]
103
+ }
104
+ ```
105
+
106
+ **3. Next check.** Compare the export with the producer's run record and planned
107
+ case inventory before claiming that a run was skipped or a failure row is
108
+ missing. `CAUSE_UNKNOWN` and `PLANNED_DENOMINATOR_UNKNOWN` make that limit
109
+ explicit. Exit `0` means the report was produced, not that the counts agree or
110
+ the source's verdict was verified. To keep the input and analysis together,
111
+ [save them in a local record](#keep-results-you-can-return-to).
112
+
113
+ For your own completed Promptfoo export, replace the example path and select its
114
+ supported source version. The synthetic download above is a constructed example,
115
+ not an unchanged producer export.
116
+
117
+ <details>
118
+ <summary><strong>Try the native measurement → acceptance workflow</strong></summary>
119
+
120
+ This example uses policies and fixtures in the GitHub checkout; they are not
121
+ included in the installed package. To run it, prepare a checkout first:
122
+
123
+ ```sh
124
+ git clone https://github.com/ntts9990/underwrite.git
125
+ cd underwrite
126
+ uv sync --frozen --all-groups
127
+
128
+ mkdir -p output
129
+ uv run --frozen --no-sync underwrite ingest \
130
+ --format underwrite.evidence-bundle --version v1 \
131
+ --file fixtures/examples/event-measurement/bundle.json --json \
132
+ > output/observation.json
133
+
134
+ uv run --frozen --no-sync underwrite measure \
135
+ --observation output/observation.json \
136
+ --policy fixtures/examples/event-acceptance/policy.json --json \
137
+ > output/read-event.json
138
+
139
+ uv run --frozen --no-sync underwrite accept \
140
+ --candidate fixtures/examples/event-acceptance/candidate-single.json \
141
+ --claims fixtures/examples/event-acceptance/claims.json \
142
+ --read output/read-event.json --json
143
+ ```
144
+
145
+ This measures a synthetic binary-event proportion, not general quality or latency.
146
+ The `read.v2` uses an explicit `measurement_policy.v3`; calibration diagnostics do
147
+ not vote on its verdict. The final classification is `screened`, requires human
148
+ review, and keeps `merge_authorized` false. Repeat `--read` for each required claim.
149
+ See [measurement meaning](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#measurement-meaning-and-migration).
150
+
151
+ </details>
152
+
153
+ ## Why underwrite?
154
+
155
+ | Question after an evaluation | What underwrite gives you |
156
+ | --- | --- |
157
+ | Does the summary match the supplied records? | Profile-specific accounting: Promptfoo count deltas, DeepEval evaluator errors, or Langfuse score associations. |
158
+ | What is still unknown? | Explicit missingness and limits such as an unknown planned denominator or unverified source claim, so a zero is not silently substituted. |
159
+ | Can this evidence support a measurement? | A separate native binary-event path with declared semantics and policy; external scores do not become a universal quality verdict. |
160
+ | Can I revisit the conclusion? | Typed CLI/Python JSON and optional private records tying selected input bytes to the analysis, with verification and retrieval. |
161
+
162
+ ## How it works
163
+
164
+ ```mermaid
165
+ flowchart LR
166
+ A[Supported local eval file] --> B[Select exact profile]
167
+ B --> C[Check supplied records and missingness]
168
+ C --> D[Typed JSON: finding, identity, limits]
169
+ D --> E[Agent or person gathers next evidence]
170
+ C --> F[Optional private record]
171
+ F --> G[Verify and retrieve]
172
+ H[Native event evidence + policy] --> I[Measure]
173
+ I --> D
174
+ ```
175
+
176
+ The command checks only what its selected profile supports. The calling agent
177
+ interprets the JSON and can pursue the next evidence task; underwrite does not
178
+ apply a proposed change or grant merge authority. Local records keep selected
179
+ inputs and results for later review.
180
+
181
+ ## Agent use
182
+
183
+ Give your coding agent the installed CLI and a completed local export. It can
184
+ discover the available routes, execute them, and use the JSON in its response:
185
+
186
+ ```sh
187
+ underwrite --help
188
+ underwrite capabilities --json
189
+ ```
190
+
191
+ Python callers can use
192
+ `underwrite.instrument.ingest.accounting.audit_promptfoo_file(Path(...))` for
193
+ the same result as a dictionary. Select an exact supported profile before
194
+ interpreting any producer-specific field.
195
+
196
+ Example task for an agent with terminal access:
197
+
198
+ > Review `/absolute/path/to/completed-promptfoo-export.json` with the installed
199
+ > `underwrite` 0.1.1 CLI as a Promptfoo 0.123.0 export. Use `capabilities --json`
200
+ > and `audit-promptfoo --version 0.123.0`.
201
+ > Report `declared_relation`, `producer_stats`, `row_tallies`, `raw_hash`,
202
+ > `limitations`, and the next useful action. Do not rerun the producer or treat
203
+ > exit `0` as agreement or approval.
204
+
205
+ The optional [underwrite-review skill](https://github.com/ntts9990/underwrite/blob/main/skills/underwrite-review/SKILL.md) provides
206
+ reusable guidance for Codex and Claude Code. [Setup and usage](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#optional-artifact-review-skill)
207
+ are explicit: the skill lives in the repository, not the PyPI package, and does
208
+ not install the CLI or add a background service.
209
+ The same CLI and importable Python APIs are available to your own automation.
210
+
211
+ ## Supported formats
212
+
213
+ Support is for the **specific local payload profiles below**, not every API,
214
+ export, or version offered by each producer. Select the version explicitly.
215
+
216
+ | Your input | Supported profile | Start here |
217
+ | --- | --- | --- |
218
+ | **goppi** | Completed baseline exchange manifest v2; separate paired-handoff route | [`audit-baseline`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#audit-a-completed-goppi-baseline-as-common-evidence) for descriptive common JSON · [`project-baseline`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#project-a-completed-goppi-baseline-into-event-observations) for native measurement · [`review-handoff`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#review-a-completed-paired-handoff-in-one-call) |
219
+ | **Langfuse** | `4.35.0` server blob exports: observations-v2 and scores JSON arrays | [`audit-langfuse`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#account-for-langfuse-score-kinds-and-associations), with an optional content-minimized row index |
220
+ | **DeepEval** | Ordinary TestRun JSON, `4.1.1` or `4.2.8` | [`audit-deepeval`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#account-for-deepeval-scores-and-evaluator-errors) |
221
+ | **Promptfoo** | Eval output JSON, `0.123.0` or `0.124.1` | [`audit-promptfoo`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#source-checkout-pilot-audit-promptfoo-counts) |
222
+ | **External common result** | `evidence_result.v1` JSON from a producer | [`inspect-result`](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#inspect-an-external-common-result) for contract screening and availability counts, with optional evidence-item `next_action` and declared metric-binding counts |
223
+ | **Native evidence** | `underwrite.evidence-bundle` / `v1` | `ingest` → `measure` → `accept` |
224
+ | **Inspect AI** | `inspect.eval-log` / `0.3.263` | `ingest` |
225
+ | **OpenInference** | `openinference.traces` / `0.1.38` | `ingest` |
226
+ | **OTLP JSON** | `otlp-json.traces` / `0.160.0` | `ingest` |
227
+
228
+ For completed exports already on your machine, the installed CLI accepts them
229
+ directly; select the exact producer profile you have:
230
+
231
+ ```sh
232
+ underwrite audit-promptfoo /path/to/promptfoo-output.json --version 0.124.1 --json
233
+ underwrite audit-deepeval /path/to/deepeval-test-run.json --version 4.2.8 --json
234
+ underwrite audit-langfuse --observations /path/to/observations.json \
235
+ --scores /path/to/scores.json --json
236
+ underwrite audit-baseline --exchange /path/to/goppi-baseline-exchange --json
237
+ ```
238
+
239
+ DeepEval accounting defaults to `4.1.1`; select `--version 4.2.8` for that
240
+ profile. For a reusable owner-asserted metric-name pack and common descriptive
241
+ JSON, see the [DeepEval binding workflow](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#account-for-deepeval-scores-and-evaluator-errors).
242
+ Promptfoo accounting defaults to `0.123.0`; select `--version 0.124.1`
243
+ for that profile. Langfuse's version identifies the server export, not its SDK.
244
+ See [artifact requirements](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#get-the-right-producer-artifact) and
245
+ [producer checks](https://github.com/ntts9990/underwrite/blob/main/EVIDENCE_REVIEW.md) for the tested scope and fixture origins.
246
+
247
+ Generic `ingest` / `project` normalizes supported exports to an observation;
248
+ external observations do not enter the current `measure` path. goppi uses its
249
+ explicit exchange adapters: `audit-baseline` produces descriptive
250
+ `evidence_result.v1` without a policy or directional verdict, while
251
+ `project-baseline` can produce native event observations. `prepare-event-policy`
252
+ binds a consumer configuration while leaving statistical assumptions unknown.
253
+ For an already produced `evidence_result.v1` file, `inspect-result` checks the
254
+ installed contract and item counts without verifying the producer's source or
255
+ bundle, or admitting that result to measurement or acceptance.
256
+ Its optional action view counts recorded next actions for evidence remediation,
257
+ not executed tool calls or an agent trajectory.
258
+
259
+ ## Keep results you can return to
260
+
261
+ Use `records` when you want the analysis and its selected source bytes retained
262
+ together. For a completed local Promptfoo export:
263
+
264
+ ```sh
265
+ underwrite records audit-promptfoo /path/to/promptfoo-output.json \
266
+ --version 0.123.0 --root ./review-store --id review-001 --json
267
+
268
+ underwrite records read-json \
269
+ --root ./review-store --id review-001 \
270
+ --name analysis/accounting.json --json
271
+ ```
272
+
273
+ Use a fresh ID for each capture; existing records are never overwritten.
274
+ `records verify` checks stored integrity. `records measure` captures a native
275
+ measurement, and `records replay-measure` recalculates it from verified saved
276
+ inputs using the current engine, without executing the original producer.
277
+ For an exact completed goppi baseline v2 directory, `records audit-baseline`
278
+ captures its five files and the descriptive result together in one call; see
279
+ [the goppi record workflow](https://github.com/ntts9990/underwrite/blob/main/STORAGE.md#retain-a-completed-goppi-baseline).
280
+
281
+ Records retain raw inputs, which may contain private content. Choose a private
282
+ local POSIX filesystem and a backup strategy; `./review-store` is only an example
283
+ location, not a backup. [Storage contracts and recovery](https://github.com/ntts9990/underwrite/blob/main/STORAGE.md).
284
+
285
+ ## What the result means
286
+
287
+ underwrite keeps different kinds of evidence distinct:
288
+
289
+ | Result | What it establishes |
290
+ | --- | --- |
291
+ | Source accounting | Relationships among the supplied rows, scores, and declared summaries |
292
+ | Byte hashes and record verification | Identity and integrity of selected bytes, not independent provenance |
293
+ | Native measurement | A result under the supplied event definition, population, and statistical assumptions |
294
+ | Acceptance classification | A policy result from declared claims and reads; no merge or deployment authority |
295
+
296
+ `not_measured`, `indeterminate`, and `abstained` remain different states. Missing
297
+ information is explicit. A source score is not automatically a calibrated
298
+ probability, and a successful command is not approval to ship.
299
+
300
+ ## Install
301
+
302
+ Install the versioned app; its dependency resolves the compatible core. Use
303
+ `underwrite --help` and `underwrite capabilities --json` to see the installed
304
+ profiles:
305
+
306
+ ```sh
307
+ uv tool install 'underwrite==0.1.1'
308
+ underwrite --help
309
+ underwrite capabilities --json
310
+ ```
311
+
312
+ The same `uv tool install` command updates an older uv-managed installation
313
+ without `--force`. If the executable is not on `PATH`, run `uv tool update-shell`
314
+ and open a new shell.
315
+
316
+ For the importable Python API, install into a Python 3.12 environment instead:
317
+
318
+ ```sh
319
+ uv venv --python 3.12 .venv
320
+ uv pip install --python .venv/bin/python 'underwrite==0.1.1'
321
+ .venv/bin/python - <<'PY'
322
+ from pathlib import Path
323
+ from underwrite.instrument.ingest.accounting import audit_promptfoo_file
324
+
325
+ result = audit_promptfoo_file(Path("/path/to/promptfoo-output.json"), version="0.123.0")
326
+ print(result["declared_relation"])
327
+ PY
328
+ ```
329
+
330
+ The installed distributions contain runtime code and schemas. The guide,
331
+ synthetic fixtures, optional agent skill, and contributor tools live in the
332
+ GitHub repository and require a checkout if you want to run those examples.
333
+
334
+ <details>
335
+ <summary>Historical 0.0.1 and its pin-manifest caution</summary>
336
+
337
+ The older published [app](https://pypi.org/project/underwrite/0.0.1/) and
338
+ [core](https://pypi.org/project/underwrite-core/0.0.1/) do not include the
339
+ `0.1.0` measurement, accounting, records, handoff, or `capabilities` workflows.
340
+ Discover installed commands with `--help`. Do not pair a `0.1.0` app wheel with
341
+ the `0.0.1` core.
342
+
343
+ The published `0.0.1` `pins refresh` should not process an untrusted pin
344
+ manifest. A controlled local audit reproduced overwrite of a writable file
345
+ outside the pin registry using a crafted manifest. The `0.1.0` code
346
+ refuses that path before mutation; the older `0.0.1` artifacts do not include
347
+ the correction. The reproduced case required the crafted manifest and a
348
+ writable target file.
349
+
350
+ </details>
351
+
352
+ ## CLI
353
+
354
+ Use `underwrite <command> --help` for options. Alongside the workflows above,
355
+ `inspect` checks artifact manifests, `audit-counts` checks Promptfoo counts through
356
+ a manifest with an expected hash, `check` examines release evidence linkage,
357
+ `absence` checks population presence, `boundary scan` checks configured verdict
358
+ vocabulary, and `drift check` / `pins refresh` work with supplied pin registries.
359
+ [JSON contracts](https://github.com/ntts9990/underwrite/tree/main/contracts/) define each command family's results and errors.
360
+
361
+ Legacy `absence` and `drift check` exemption files and `boundary scan` allowlists
362
+ are bounded to 1 MiB, 64 JSON container levels, and 1024 policy entries each.
363
+ `boundary scan` reads at most 4 MiB per selected JSON or JSONL file and 32 MiB
364
+ of captured bytes across the command, including its allowlist. It admits up to
365
+ 4096 selected files, 100000 visited directory entries, 100000 physical JSONL
366
+ lines and 1 MiB per raw line (including its delimiter), and 4096 leaks including
367
+ allowed rows. Its selected JSON or human output is capped at 1 MiB including
368
+ the final newline. Duplicate keys and nonfinite numbers are invalid; supplied
369
+ `--now` and policy expiry dates must be real ASCII `YYYY-MM-DD` dates. Admission
370
+ failures return a typed `UNCONFIGURED` result with exit 2. An absent `--now`
371
+ still yields `NOW_REQUIRED` only when the semantic check needs a clock.
372
+
373
+ `absence` retains `Path.glob` matching and refuses more than 4096 matching
374
+ regular files; it does not bound directory traversal within `Path.glob` or
375
+ suppressed internal filesystem errors. Boundary scans follow an explicitly
376
+ selected directory link and regular file links, but do not descend into a child
377
+ directory link. These selections do not establish path containment against a
378
+ hostile filesystem.
379
+
380
+ `drift check` admits up to 256 manifests and 4096 declared pin files while
381
+ counting at most 100000 visited registry entries. Each manifest is limited to
382
+ 1 MiB and 64 JSON container levels; each selected source or pin copy is limited
383
+ to 4 MiB. The 32 MiB command capture budget includes exemption bytes, manifests,
384
+ and both copies. Read-only inspection follows selected directory and file links;
385
+ it does not create an atomic filesystem snapshot or a hostile-path containment
386
+ guarantee. Missing or nonregular selected copies are reported as DRIFT; malformed,
387
+ unreadable, or excessive registry input returns a typed `UNCONFIGURED` result
388
+ without fabricated population counts.
389
+
390
+ `pins refresh` selects one registry repository and copies committed Git blobs.
391
+ Refresh paths must be normalized relative `/`-separated components; empty, dot,
392
+ parent, backslash, Unicode control/format, oversized, and colliding destinations
393
+ are refused.
394
+ The selected registry and its existing destinations are checked before mutation.
395
+ Each pin is replaced with a new inode under its opened registry parent, and
396
+ `PINS.json` is replaced last. Admission or Git-source failures leave the registry
397
+ unchanged. A later filesystem failure reports `publication: may_be_partial`;
398
+ refresh is not an all-files transaction or a durability guarantee.
399
+ Refresh captures each committed Git blob within 4 MiB and the 32 MiB aggregate
400
+ budget, and checks the fully serialized 1 MiB manifest before its first write.
401
+
402
+ <a id="development-checkout-evidence-pilots"></a>
403
+
404
+ ## Documentation
405
+
406
+ These guides and examples are on GitHub, outside the runtime wheel. The installed
407
+ package includes the schemas needed for its CLI and Python APIs.
408
+
409
+ | Explore | Guide |
410
+ | --- | --- |
411
+ | Run from an agent, choose inputs, interpret JSON | [Agent usage](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md) |
412
+ | Compare declarations, paired evidence, and goppi handoffs | [Evidence workflows](https://github.com/ntts9990/underwrite/blob/main/AGENT_USAGE.md#source-checkout-pilot-compare-declarations) |
413
+ | Save, verify, retrieve, and recalculate | [Local records](https://github.com/ntts9990/underwrite/blob/main/STORAGE.md) |
414
+ | Understand producer fixtures and tested boundaries | [Producer evidence](https://github.com/ntts9990/underwrite/blob/main/EVIDENCE_REVIEW.md) |
415
+ | Extend the CLI and pure calculation core | [Contributing](https://github.com/ntts9990/underwrite/blob/main/CONTRIBUTING.md) · [Architecture rules](https://github.com/ntts9990/underwrite/blob/main/AGENTS.md) |
416
+
417
+ ## Contributing
418
+
419
+ Bring a reproducible artifact, a concrete workflow, or a fix.
420
+ [Open an issue](https://github.com/ntts9990/underwrite/issues) with the producer
421
+ version and expected result; share only sanitized examples. See
422
+ [CONTRIBUTING.md](https://github.com/ntts9990/underwrite/blob/main/CONTRIBUTING.md) for local preflight and PR checks, and
423
+ [SECURITY.md](https://github.com/ntts9990/underwrite/blob/main/SECURITY.md) for private vulnerability reports.
424
+
425
+ <details>
426
+ <summary>Maintainers: future PyPI releases</summary>
427
+
428
+ Before using OIDC publishing, create the GitHub environment `pypi`, restrict it to
429
+ `main`, and configure a PyPI GitHub Trusted Publisher on **each** package with owner
430
+ `ntts9990`, repository `underwrite`, workflow `publish.yml`, and environment `pypi`.
431
+ Once configured, run **Publish PyPI** manually from `main` in GitHub Actions.
432
+
433
+ The workflow validates both packages, then publishes core before the application;
434
+ only the separate publish job receives OIDC permission. No stored PyPI API token
435
+ is required. Retry a partial upload with the same artifacts: existing registry
436
+ files must match exactly, and changed artifacts require a new version.
437
+
438
+ See the official [uv publishing guide](https://docs.astral.sh/uv/guides/package/)
439
+ and [PyPI Trusted Publisher guide](https://docs.pypi.org/trusted-publishers/using-a-publisher/).
440
+
441
+ </details>
442
+
443
+ ## License
444
+
445
+ [Apache-2.0](https://github.com/ntts9990/underwrite/blob/main/LICENSE). [LICENSING.md](https://github.com/ntts9990/underwrite/blob/main/LICENSING.md) records the adapted policy
446
+ templates' CC licenses.