underwrite 0.0.1__tar.gz → 0.1.0__tar.gz

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