zanii-underwrite 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 (46) hide show
  1. zanii_underwrite-0.1.0/.gitignore +14 -0
  2. zanii_underwrite-0.1.0/LICENSE +159 -0
  3. zanii_underwrite-0.1.0/PKG-INFO +48 -0
  4. zanii_underwrite-0.1.0/README.md +36 -0
  5. zanii_underwrite-0.1.0/pyproject.toml +32 -0
  6. zanii_underwrite-0.1.0/zanii_underwrite/__init__.py +409 -0
  7. zanii_underwrite-0.1.0/zanii_underwrite/__main__.py +4 -0
  8. zanii_underwrite-0.1.0/zanii_underwrite/_common.py +102 -0
  9. zanii_underwrite-0.1.0/zanii_underwrite/_exact.py +35 -0
  10. zanii_underwrite-0.1.0/zanii_underwrite/_taxonomy_data.py +128 -0
  11. zanii_underwrite-0.1.0/zanii_underwrite/ai_use.py +327 -0
  12. zanii_underwrite-0.1.0/zanii_underwrite/backtest.py +131 -0
  13. zanii_underwrite-0.1.0/zanii_underwrite/basis_risk.py +149 -0
  14. zanii_underwrite-0.1.0/zanii_underwrite/case.py +343 -0
  15. zanii_underwrite-0.1.0/zanii_underwrite/cause.py +124 -0
  16. zanii_underwrite-0.1.0/zanii_underwrite/certify_handoff.py +134 -0
  17. zanii_underwrite-0.1.0/zanii_underwrite/claim.py +147 -0
  18. zanii_underwrite-0.1.0/zanii_underwrite/cli.py +657 -0
  19. zanii_underwrite-0.1.0/zanii_underwrite/cluster.py +211 -0
  20. zanii_underwrite-0.1.0/zanii_underwrite/completeness.py +301 -0
  21. zanii_underwrite-0.1.0/zanii_underwrite/consent_profile.py +513 -0
  22. zanii_underwrite-0.1.0/zanii_underwrite/crosswalk.py +196 -0
  23. zanii_underwrite-0.1.0/zanii_underwrite/exposure.py +340 -0
  24. zanii_underwrite-0.1.0/zanii_underwrite/gaming.py +132 -0
  25. zanii_underwrite-0.1.0/zanii_underwrite/incident_export.py +236 -0
  26. zanii_underwrite-0.1.0/zanii_underwrite/indicator.py +325 -0
  27. zanii_underwrite-0.1.0/zanii_underwrite/indicator_v2.py +211 -0
  28. zanii_underwrite-0.1.0/zanii_underwrite/insurability.py +189 -0
  29. zanii_underwrite-0.1.0/zanii_underwrite/loss_record.py +121 -0
  30. zanii_underwrite-0.1.0/zanii_underwrite/lossrun.py +299 -0
  31. zanii_underwrite-0.1.0/zanii_underwrite/model_change.py +109 -0
  32. zanii_underwrite-0.1.0/zanii_underwrite/monitoring.py +294 -0
  33. zanii_underwrite-0.1.0/zanii_underwrite/oracle.py +574 -0
  34. zanii_underwrite-0.1.0/zanii_underwrite/pack.py +203 -0
  35. zanii_underwrite-0.1.0/zanii_underwrite/performance.py +178 -0
  36. zanii_underwrite-0.1.0/zanii_underwrite/pool.py +297 -0
  37. zanii_underwrite-0.1.0/zanii_underwrite/portfolio.py +294 -0
  38. zanii_underwrite-0.1.0/zanii_underwrite/py.typed +0 -0
  39. zanii_underwrite-0.1.0/zanii_underwrite/readiness.py +172 -0
  40. zanii_underwrite-0.1.0/zanii_underwrite/renewal_diff.py +247 -0
  41. zanii_underwrite-0.1.0/zanii_underwrite/report.py +418 -0
  42. zanii_underwrite-0.1.0/zanii_underwrite/rulebook.py +223 -0
  43. zanii_underwrite-0.1.0/zanii_underwrite/taxonomy.py +69 -0
  44. zanii_underwrite-0.1.0/zanii_underwrite/timeline.py +141 -0
  45. zanii_underwrite-0.1.0/zanii_underwrite/weather.py +95 -0
  46. zanii_underwrite-0.1.0/zanii_underwrite/wording_check.py +192 -0
@@ -0,0 +1,14 @@
1
+ node_modules/
2
+ dist/
3
+ .venv/
4
+ __pycache__/
5
+ *.pyc
6
+ .env
7
+ .env.*
8
+ *.pem
9
+ *.key
10
+ *-key.json
11
+ data/
12
+ var/
13
+ coverage/
14
+ skills/
@@ -0,0 +1,159 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work; and
103
+
104
+ (d) If the Work includes a "NOTICE" text file as part of its
105
+ distribution, then any Derivative Works that You distribute must
106
+ include a readable copy of the attribution notices contained
107
+ within such NOTICE file.
108
+
109
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
110
+ any Contribution intentionally submitted for inclusion in the Work
111
+ by You to the Licensor shall be under the terms and conditions of
112
+ this License, without any additional terms or conditions.
113
+
114
+ 6. Trademarks. This License does not grant permission to use the trade
115
+ names, trademarks, service marks, or product names of the Licensor,
116
+ except as required for reasonable and customary use in describing the
117
+ origin of the Work and reproducing the content of the NOTICE file.
118
+
119
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed
120
+ to in writing, Licensor provides the Work (and each Contributor
121
+ provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
122
+ OR CONDITIONS OF ANY KIND, either express or implied, including,
123
+ without limitation, any warranties or conditions of TITLE,
124
+ NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
125
+
126
+ 8. Limitation of Liability. In no event and under no legal theory,
127
+ whether in tort (including negligence), contract, or otherwise,
128
+ unless required by applicable law (such as deliberate and grossly
129
+ negligent acts) or agreed to in writing, shall any Contributor be
130
+ liable to You for damages, including any direct, indirect, special,
131
+ incidental, or consequential damages of any character arising as a
132
+ result of this License or out of the use or inability to use the
133
+ Work.
134
+
135
+ 9. Accepting Warranty or Additional Liability. While redistributing
136
+ the Work or Derivative Works thereof, You may choose to offer,
137
+ and charge a fee for, acceptance of support, warranty, indemnity,
138
+ or other liability obligations and/or rights consistent with this
139
+ License. However, in accepting such obligations, You may act only
140
+ on Your own behalf and on Your sole responsibility, not on behalf
141
+ of any other Contributor, and only if You agree to indemnify,
142
+ defend, and hold each Contributor harmless for any liability
143
+ incurred by, or claims asserted against, such Contributor.
144
+
145
+ END OF TERMS AND CONDITIONS
146
+
147
+ Copyright 2026 Zanii
148
+
149
+ Licensed under the Apache License, Version 2.0 (the "License");
150
+ you may not use this file except in compliance with the License.
151
+ You may obtain a copy of the License at
152
+
153
+ http://www.apache.org/licenses/LICENSE-2.0
154
+
155
+ Unless required by applicable law or agreed to in writing, software
156
+ distributed under the License is distributed on an "AS IS" BASIS,
157
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
158
+ See the License for the specific language governing permissions and
159
+ limitations under the License.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.5
2
+ Name: zanii-underwrite
3
+ Version: 0.1.0
4
+ Summary: Zanii Underwrite formats: build and verify exposure records, loss runs, completeness proofs and signed packs.
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.11
8
+ Requires-Dist: zanii-blackbox==0.23.1
9
+ Requires-Dist: zanii-certify==0.6.0
10
+ Requires-Dist: zanii==0.26.2
11
+ Description-Content-Type: text/markdown
12
+
13
+ # zanii-underwrite
14
+
15
+ Insurance evidence for AI agents: build and verify the signed formats of Zanii Underwrite in
16
+ Python. Pure functions, no I/O, no network. Alpha (0.x): formats may change between minor versions.
17
+
18
+ ```sh
19
+ pip install zanii-underwrite
20
+ ```
21
+
22
+ ```python
23
+ from zanii_underwrite import Refusal, verify_pack
24
+
25
+ try:
26
+ verdict = verify_pack({"pack": pack, "documents": documents, "receipt": receipt, "decisions": decisions,
27
+ "pq": pq, "purpose": purpose, "recipient": recipient, "at": at,
28
+ "trusted_signers": trusted, "seen_nonces": [], "require_pq": False})
29
+ except Refusal as r:
30
+ print("refused:", r) # the first failing rule id
31
+ ```
32
+
33
+ What it covers:
34
+
35
+ - **Risk:** exposure records, loss runs, completeness proofs, insurability and readiness packs,
36
+ monitoring events, renewal diff, framework crosswalk, AI-use statement, pool and portfolio views.
37
+ - **Response:** case logs, incident exports, playbook reports, timelines, claim packs.
38
+ - A `zanii-uw-py` CLI with the same contract as the TypeScript `zanii-uw`.
39
+
40
+ Every format is canonical JSON (RFC 8785), integers only, and unknown values are `None` with a
41
+ reason. The TypeScript library `@zanii/underwrite` on npm gives the same bytes for the same input.
42
+
43
+ Zanii never insures, quotes, places or advises on cover; a licensed partner carries every
44
+ regulated step. The framework crosswalk is an evidence map awaiting a compliance reviewer, not a
45
+ certification. Seeds and keys named TEST ONLY are published on purpose for test vectors; a
46
+ production verifier must never trust them.
47
+
48
+ License: Apache-2.0. Contact: info@zanii.agency.
@@ -0,0 +1,36 @@
1
+ # zanii-underwrite
2
+
3
+ Insurance evidence for AI agents: build and verify the signed formats of Zanii Underwrite in
4
+ Python. Pure functions, no I/O, no network. Alpha (0.x): formats may change between minor versions.
5
+
6
+ ```sh
7
+ pip install zanii-underwrite
8
+ ```
9
+
10
+ ```python
11
+ from zanii_underwrite import Refusal, verify_pack
12
+
13
+ try:
14
+ verdict = verify_pack({"pack": pack, "documents": documents, "receipt": receipt, "decisions": decisions,
15
+ "pq": pq, "purpose": purpose, "recipient": recipient, "at": at,
16
+ "trusted_signers": trusted, "seen_nonces": [], "require_pq": False})
17
+ except Refusal as r:
18
+ print("refused:", r) # the first failing rule id
19
+ ```
20
+
21
+ What it covers:
22
+
23
+ - **Risk:** exposure records, loss runs, completeness proofs, insurability and readiness packs,
24
+ monitoring events, renewal diff, framework crosswalk, AI-use statement, pool and portfolio views.
25
+ - **Response:** case logs, incident exports, playbook reports, timelines, claim packs.
26
+ - A `zanii-uw-py` CLI with the same contract as the TypeScript `zanii-uw`.
27
+
28
+ Every format is canonical JSON (RFC 8785), integers only, and unknown values are `None` with a
29
+ reason. The TypeScript library `@zanii/underwrite` on npm gives the same bytes for the same input.
30
+
31
+ Zanii never insures, quotes, places or advises on cover; a licensed partner carries every
32
+ regulated step. The framework crosswalk is an evidence map awaiting a compliance reviewer, not a
33
+ certification. Seeds and keys named TEST ONLY are published on purpose for test vectors; a
34
+ production verifier must never trust them.
35
+
36
+ License: Apache-2.0. Contact: info@zanii.agency.
@@ -0,0 +1,32 @@
1
+ [project]
2
+ name = "zanii-underwrite"
3
+ version = "0.1.0"
4
+ readme = "README.md"
5
+ description = "Zanii Underwrite formats: build and verify exposure records, loss runs, completeness proofs and signed packs."
6
+ requires-python = ">=3.11"
7
+ license = "Apache-2.0"
8
+ license-files = ["LICENSE"]
9
+ dependencies = ["zanii==0.26.2", "zanii-certify==0.6.0", "zanii-blackbox==0.23.1"]
10
+
11
+ [project.scripts]
12
+ zanii-uw-py = "zanii_underwrite.cli:run"
13
+
14
+ [dependency-groups]
15
+ dev = ["pytest>=8", "ruff>=0.6", "mypy>=1.11"]
16
+
17
+ [build-system]
18
+ requires = ["hatchling"]
19
+ build-backend = "hatchling.build"
20
+
21
+ [tool.hatch.build.targets.wheel]
22
+ packages = ["zanii_underwrite"]
23
+
24
+ [tool.hatch.build.targets.sdist]
25
+ include = ["zanii_underwrite", "README.md", "LICENSE"]
26
+
27
+ [tool.ruff]
28
+ line-length = 120
29
+ target-version = "py311"
30
+
31
+ [tool.mypy]
32
+ strict = true
@@ -0,0 +1,409 @@
1
+ """Zanii Underwrite formats. Each format is added here only after its spec and vectors are merged."""
2
+
3
+ from ._common import Refusal, Result
4
+ from .ai_use import AI_USE, AI_USE_LABELS, AI_USE_RULES, ai_use_statement
5
+ from .backtest import BACKTEST, BACKTEST_RULES, run_backtest, shadow_gate_passes
6
+ from .basis_risk import BASIS_RISK, BASIS_RISK_LABELS, BASIS_RISK_RULES, build_basis_risk
7
+ from .case import CASE_ENTRY, CASE_RECORD, CASE_RULES, case_entry, check_case, verify_case
8
+ from .cause import CAUSE, CAUSE_MAP, build_cause_map, classify_cause
9
+ from .cause import RULES as _CAUSE_RULES
10
+ from .certify_handoff import RULES as _CERTIFY_RULES
11
+ from .certify_handoff import (
12
+ CertifyError,
13
+ certify_handoff,
14
+ retest_request,
15
+ retest_result,
16
+ retest_result_body,
17
+ suspension_notice,
18
+ )
19
+ from .claim import CLAIM, CLAIM_RULES, build_claim, check_claim
20
+ from .cluster import (
21
+ CLUSTER,
22
+ CLUSTER_MAX_WINDOW_H,
23
+ CLUSTER_REINSURER_MIN,
24
+ CLUSTER_RULES,
25
+ CLUSTER_VERDICT,
26
+ CLUSTER_VERIFY_RULES,
27
+ CLUSTER_VIEWS,
28
+ build_cluster,
29
+ verify_cluster,
30
+ )
31
+ from .completeness import COMPLETENESS, build_completeness, check_completeness, verify_completeness
32
+ from .consent_profile import PROFILE as CONSENT_PROFILE
33
+ from .consent_profile import VERDICT as CONSENT_VERDICT
34
+ from .consent_profile import build_uw_consent, build_withdrawal, check_consent, verify_consent_profile
35
+ from .crosswalk import (
36
+ CROSSWALK,
37
+ CROSSWALK_LABELS,
38
+ CROSSWALK_REFS,
39
+ CROSSWALK_RESULT,
40
+ CROSSWALK_RULES,
41
+ CROSSWALK_SOURCES,
42
+ CROSSWALK_TABLE,
43
+ crosswalk,
44
+ )
45
+ from .exposure import EXPOSURE, build_exposure, verify_exposure
46
+ from .exposure import ORDER as EXPOSURE_RULES
47
+ from .gaming import GAMING_CHECKS, gaming_checks
48
+ from .incident_export import (
49
+ INCIDENT_EXPORT,
50
+ INCIDENT_EXPORT_RULES,
51
+ INCIDENT_EXPORT_VERDICT,
52
+ build_incident_export,
53
+ check_incident_export,
54
+ incident_ledger_proofs,
55
+ verify_incident_export,
56
+ )
57
+ from .indicator import (
58
+ ZARI_MODEL,
59
+ ZARI_RESULT,
60
+ ZARI_RESULT_LEGACY,
61
+ ZARI_RULES,
62
+ check_zari_model,
63
+ evaluate_zari,
64
+ gaming_ok,
65
+ pool_complement,
66
+ sign_zari_model,
67
+ zari_facts,
68
+ zari_inputs,
69
+ zari_pack,
70
+ )
71
+ from .indicator_v2 import (
72
+ BACKTEST_V2,
73
+ BACKTEST_V2_RULES,
74
+ ZARI_MODEL_V2,
75
+ ZARI_RESULT_V2,
76
+ ZARI_RESULT_V2_LEGACY,
77
+ ZARI_V2_RULES,
78
+ check_zari_model_v2,
79
+ evaluate_zari_v2,
80
+ run_backtest_v2,
81
+ )
82
+ from .insurability import INSURABILITY, INSURABILITY_RULES, build_insurability, check_insurability, verify_insurability
83
+ from .loss_record import LOSS_RECORD, LOSS_VERDICT, build_loss_record, verify_loss_record
84
+ from .lossrun import (
85
+ LOSSRUN,
86
+ LOSSRUN_RULES,
87
+ build_loss_run,
88
+ build_lossrun,
89
+ verify_loss_run,
90
+ verify_lossrun,
91
+ wilson_low_ppm,
92
+ )
93
+ from .model_change import (
94
+ MODEL_ACCEPTANCE,
95
+ MODEL_REVIEW,
96
+ MODEL_SWITCH,
97
+ check_model_switch,
98
+ sign_model_acceptance,
99
+ sign_model_review,
100
+ )
101
+ from .monitoring import EVENT as MONITORING_EVENT
102
+ from .monitoring import VERDICT as MONITORING_VERDICT
103
+ from .monitoring import detect_monitoring_events, sign_monitoring_event, verify_monitoring_event
104
+ from .oracle import (
105
+ ORACLE,
106
+ ORACLE_V2,
107
+ ORACLE_V2_BUILD_RULES,
108
+ ORACLE_V2_VERIFY_RULES,
109
+ ORACLE_VERDICT_V2,
110
+ build_oracle,
111
+ build_oracle_v2,
112
+ sign_oracle,
113
+ sign_oracle_v2,
114
+ verify_oracle,
115
+ verify_oracle_v2,
116
+ )
117
+ from .oracle import VERDICT as ORACLE_VERDICT
118
+ from .pack import PACK, build_pack, check_pack_envelope, sign_pack, verify_pack
119
+ from .pack import VERDICT as PACK_VERDICT
120
+ from .performance import PERFORMANCE, build_performance, sign_performance, verify_performance
121
+ from .performance import VERDICT as PERFORMANCE_VERDICT
122
+ from .pool import (
123
+ POOL,
124
+ POOL_AUDIT_RULES,
125
+ POOL_MEMBERSHIP,
126
+ POOL_RELEASE_RULES,
127
+ POOL_RELEASE_VERDICT,
128
+ POOL_RULES,
129
+ POOL_SIGNED,
130
+ audit_pool,
131
+ build_pool,
132
+ pool_can_read,
133
+ sign_pool_release,
134
+ verify_pool_release,
135
+ )
136
+ from .portfolio import (
137
+ PORTFOLIO,
138
+ PORTFOLIO_RULES,
139
+ PORTFOLIO_SIGNED,
140
+ PORTFOLIO_VERDICT,
141
+ PORTFOLIO_VIEW_RULES,
142
+ build_portfolio,
143
+ portfolio_exclusion,
144
+ sign_portfolio,
145
+ verify_portfolio,
146
+ )
147
+ from .readiness import READINESS, build_readiness, check_readiness, verify_readiness
148
+ from .renewal_diff import RENEWAL_DIFF, renewal_diff, renewal_diff_text
149
+ from .report import HTML as REPORT_HTML
150
+ from .report import REGIME_FIELDS, REPORT, REPORT_V2, render_report, report_freeze, sign_report, verify_report
151
+ from .report import VERDICT as REPORT_VERDICT
152
+ from .rulebook import (
153
+ POLICY_RECORD,
154
+ POLICY_VERDICT,
155
+ RULEBOOK,
156
+ apply_rulebook,
157
+ build_policy_record,
158
+ build_rulebook,
159
+ cosign_policy_record,
160
+ verify_policy_record,
161
+ )
162
+ from .rulebook import RESULT as RULEBOOK_RESULT
163
+ from .taxonomy import TAXONOMY, build_taxonomy, classify, verify_taxonomy
164
+ from .timeline import RULES as _TIMELINE_RULES
165
+ from .timeline import TIMELINE, build_timeline
166
+ from .weather import (
167
+ SIGNED_SKEW_S,
168
+ WEATHER,
169
+ WEATHER_RULES,
170
+ WEATHER_VERDICT,
171
+ sign_weather,
172
+ verify_weather,
173
+ weather_conditions_ok,
174
+ )
175
+ from .wording_check import (
176
+ WORDING,
177
+ WORDING_CHECK,
178
+ WORDING_CHECK_SIGNED,
179
+ WORDING_CHECK_SIGNED_RULES,
180
+ WORDING_CHECK_VERDICT,
181
+ check_wording,
182
+ sign_wording_check,
183
+ verify_wording_check,
184
+ )
185
+
186
+ PACKAGE = "zanii.underwrite"
187
+ # The TypeScript rule lists, in check order, for the modules that keep their rules as a label table.
188
+ CAUSE_RULES = list(_CAUSE_RULES)
189
+ CERTIFY_RULES = list(_CERTIFY_RULES)
190
+ TIMELINE_RULES = list(_TIMELINE_RULES)
191
+
192
+ __all__ = [
193
+ "AI_USE",
194
+ "AI_USE_LABELS",
195
+ "AI_USE_RULES",
196
+ "BACKTEST",
197
+ "BACKTEST_RULES",
198
+ "BACKTEST_V2",
199
+ "BACKTEST_V2_RULES",
200
+ "BASIS_RISK",
201
+ "BASIS_RISK_LABELS",
202
+ "BASIS_RISK_RULES",
203
+ "CASE_ENTRY",
204
+ "CASE_RECORD",
205
+ "CASE_RULES",
206
+ "CAUSE",
207
+ "CAUSE_MAP",
208
+ "CAUSE_RULES",
209
+ "CERTIFY_RULES",
210
+ "CLAIM",
211
+ "CLAIM_RULES",
212
+ "CLUSTER",
213
+ "CLUSTER_MAX_WINDOW_H",
214
+ "CLUSTER_REINSURER_MIN",
215
+ "CLUSTER_RULES",
216
+ "CLUSTER_VERDICT",
217
+ "CLUSTER_VERIFY_RULES",
218
+ "CLUSTER_VIEWS",
219
+ "COMPLETENESS",
220
+ "CONSENT_PROFILE",
221
+ "CONSENT_VERDICT",
222
+ "CROSSWALK",
223
+ "CROSSWALK_LABELS",
224
+ "CROSSWALK_REFS",
225
+ "CROSSWALK_RESULT",
226
+ "CROSSWALK_RULES",
227
+ "CROSSWALK_SOURCES",
228
+ "CROSSWALK_TABLE",
229
+ "EXPOSURE",
230
+ "EXPOSURE_RULES",
231
+ "GAMING_CHECKS",
232
+ "INCIDENT_EXPORT",
233
+ "INCIDENT_EXPORT_RULES",
234
+ "INCIDENT_EXPORT_VERDICT",
235
+ "INSURABILITY",
236
+ "INSURABILITY_RULES",
237
+ "LOSSRUN",
238
+ "LOSSRUN_RULES",
239
+ "LOSS_RECORD",
240
+ "LOSS_VERDICT",
241
+ "MODEL_ACCEPTANCE",
242
+ "MODEL_REVIEW",
243
+ "MODEL_SWITCH",
244
+ "MONITORING_EVENT",
245
+ "MONITORING_VERDICT",
246
+ "ORACLE",
247
+ "ORACLE_V2",
248
+ "ORACLE_V2_BUILD_RULES",
249
+ "ORACLE_V2_VERIFY_RULES",
250
+ "ORACLE_VERDICT",
251
+ "ORACLE_VERDICT_V2",
252
+ "PACK",
253
+ "PACKAGE",
254
+ "PACK_VERDICT",
255
+ "PERFORMANCE",
256
+ "PERFORMANCE_VERDICT",
257
+ "POLICY_RECORD",
258
+ "POLICY_VERDICT",
259
+ "POOL",
260
+ "POOL_AUDIT_RULES",
261
+ "POOL_MEMBERSHIP",
262
+ "POOL_RELEASE_RULES",
263
+ "POOL_RELEASE_VERDICT",
264
+ "POOL_RULES",
265
+ "POOL_SIGNED",
266
+ "PORTFOLIO",
267
+ "PORTFOLIO_RULES",
268
+ "PORTFOLIO_SIGNED",
269
+ "PORTFOLIO_VERDICT",
270
+ "PORTFOLIO_VIEW_RULES",
271
+ "READINESS",
272
+ "REGIME_FIELDS",
273
+ "RENEWAL_DIFF",
274
+ "REPORT",
275
+ "REPORT_HTML",
276
+ "REPORT_V2",
277
+ "REPORT_VERDICT",
278
+ "RULEBOOK",
279
+ "RULEBOOK_RESULT",
280
+ "SIGNED_SKEW_S",
281
+ "TAXONOMY",
282
+ "TIMELINE",
283
+ "TIMELINE_RULES",
284
+ "WEATHER",
285
+ "WEATHER_RULES",
286
+ "WEATHER_VERDICT",
287
+ "WORDING",
288
+ "WORDING_CHECK",
289
+ "WORDING_CHECK_SIGNED",
290
+ "WORDING_CHECK_SIGNED_RULES",
291
+ "WORDING_CHECK_VERDICT",
292
+ "ZARI_MODEL",
293
+ "ZARI_MODEL_V2",
294
+ "ZARI_RESULT",
295
+ "ZARI_RESULT_LEGACY",
296
+ "ZARI_RESULT_V2",
297
+ "ZARI_RESULT_V2_LEGACY",
298
+ "ZARI_RULES",
299
+ "ZARI_V2_RULES",
300
+ "CertifyError",
301
+ "Refusal",
302
+ "Result",
303
+ "ai_use_statement",
304
+ "apply_rulebook",
305
+ "audit_pool",
306
+ "build_basis_risk",
307
+ "build_cause_map",
308
+ "build_claim",
309
+ "build_cluster",
310
+ "build_completeness",
311
+ "build_exposure",
312
+ "build_incident_export",
313
+ "build_insurability",
314
+ "build_loss_record",
315
+ "build_loss_run",
316
+ "build_lossrun",
317
+ "build_oracle",
318
+ "build_oracle_v2",
319
+ "build_pack",
320
+ "build_performance",
321
+ "build_policy_record",
322
+ "build_pool",
323
+ "build_portfolio",
324
+ "build_readiness",
325
+ "build_rulebook",
326
+ "build_taxonomy",
327
+ "build_timeline",
328
+ "build_uw_consent",
329
+ "build_withdrawal",
330
+ "case_entry",
331
+ "certify_handoff",
332
+ "check_case",
333
+ "check_claim",
334
+ "check_completeness",
335
+ "check_consent",
336
+ "check_incident_export",
337
+ "check_insurability",
338
+ "check_model_switch",
339
+ "check_pack_envelope",
340
+ "check_readiness",
341
+ "check_wording",
342
+ "check_zari_model",
343
+ "check_zari_model_v2",
344
+ "classify",
345
+ "classify_cause",
346
+ "cosign_policy_record",
347
+ "crosswalk",
348
+ "detect_monitoring_events",
349
+ "evaluate_zari",
350
+ "evaluate_zari_v2",
351
+ "gaming_checks",
352
+ "gaming_ok",
353
+ "incident_ledger_proofs",
354
+ "pool_can_read",
355
+ "pool_complement",
356
+ "portfolio_exclusion",
357
+ "render_report",
358
+ "renewal_diff",
359
+ "renewal_diff_text",
360
+ "report_freeze",
361
+ "retest_request",
362
+ "retest_result",
363
+ "retest_result_body",
364
+ "run_backtest",
365
+ "run_backtest_v2",
366
+ "shadow_gate_passes",
367
+ "sign_model_acceptance",
368
+ "sign_model_review",
369
+ "sign_monitoring_event",
370
+ "sign_oracle",
371
+ "sign_oracle_v2",
372
+ "sign_pack",
373
+ "sign_performance",
374
+ "sign_pool_release",
375
+ "sign_portfolio",
376
+ "sign_report",
377
+ "sign_weather",
378
+ "sign_wording_check",
379
+ "sign_zari_model",
380
+ "suspension_notice",
381
+ "verify_case",
382
+ "verify_cluster",
383
+ "verify_completeness",
384
+ "verify_consent_profile",
385
+ "verify_exposure",
386
+ "verify_incident_export",
387
+ "verify_insurability",
388
+ "verify_loss_record",
389
+ "verify_loss_run",
390
+ "verify_lossrun",
391
+ "verify_monitoring_event",
392
+ "verify_oracle",
393
+ "verify_oracle_v2",
394
+ "verify_pack",
395
+ "verify_performance",
396
+ "verify_policy_record",
397
+ "verify_pool_release",
398
+ "verify_portfolio",
399
+ "verify_readiness",
400
+ "verify_report",
401
+ "verify_taxonomy",
402
+ "verify_weather",
403
+ "verify_wording_check",
404
+ "weather_conditions_ok",
405
+ "wilson_low_ppm",
406
+ "zari_facts",
407
+ "zari_inputs",
408
+ "zari_pack",
409
+ ]