szl-substrate 0.1.0__py3-none-any.whl
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.
- szl_substrate/__init__.py +378 -0
- szl_substrate/_vendor_blobs.py +79 -0
- szl_substrate/a11oy_agent_loop.py +844 -0
- szl_substrate/a11oy_autoreview.py +1149 -0
- szl_substrate/a11oy_code_engine.py +1457 -0
- szl_substrate/a11oy_hf_assets.py +178 -0
- szl_substrate/a11oy_mcp_client.py +276 -0
- szl_substrate/a11oy_org_rag.py +3168 -0
- szl_substrate/a11oy_uds_portability_nav.py +168 -0
- szl_substrate/a11oy_waqay_nav.py +175 -0
- szl_substrate/a11oy_yupay_nav.py +177 -0
- szl_substrate/operator_shell_v4.py +569 -0
- szl_substrate/szl_agentic_loop.py +1830 -0
- szl_substrate/szl_allodial.py +339 -0
- szl_substrate/szl_alloy_models.py +831 -0
- szl_substrate/szl_anatomy_routes.py +356 -0
- szl_substrate/szl_be_hardening.py +958 -0
- szl_substrate/szl_brain.py +249 -0
- szl_substrate/szl_calibration.py +329 -0
- szl_substrate/szl_chain_of_title.py +213 -0
- szl_substrate/szl_codename_gate.py +152 -0
- szl_substrate/szl_conformal.py +735 -0
- szl_substrate/szl_conjecture_factory.py +361 -0
- szl_substrate/szl_connector_mcp.py +118 -0
- szl_substrate/szl_connectors_serve.py +145 -0
- szl_substrate/szl_contracting.py +736 -0
- szl_substrate/szl_cuas_formulas.py +939 -0
- szl_substrate/szl_deepdive_gaps.py +592 -0
- szl_substrate/szl_dsse.py +332 -0
- szl_substrate/szl_ecosystem_routes.py +488 -0
- szl_substrate/szl_energy_sovereign.py +1156 -0
- szl_substrate/szl_entanglement.py +394 -0
- szl_substrate/szl_evidence_research.py +913 -0
- szl_substrate/szl_formula_wiring.py +1428 -0
- szl_substrate/szl_formulas.py +1206 -0
- szl_substrate/szl_hf_bucket.py +726 -0
- szl_substrate/szl_joules_truth.py +145 -0
- szl_substrate/szl_ken.py +537 -0
- szl_substrate/szl_khipu_consensus.py +611 -0
- szl_substrate/szl_khipu_lmdb.py +241 -0
- szl_substrate/szl_khipu_replicate.py +150 -0
- szl_substrate/szl_live_wires.py +389 -0
- szl_substrate/szl_llm_registry.py +690 -0
- szl_substrate/szl_logging.py +45 -0
- szl_substrate/szl_mbse_cosim.py +692 -0
- szl_substrate/szl_mbse_nav.py +450 -0
- szl_substrate/szl_metrics_prom.py +261 -0
- szl_substrate/szl_neuroplasticity.py +267 -0
- szl_substrate/szl_provenance.py +440 -0
- szl_substrate/szl_qhawaq.py +982 -0
- szl_substrate/szl_quantum_bio.py +252 -0
- szl_substrate/szl_rag.py +564 -0
- szl_substrate/szl_readiness.py +974 -0
- szl_substrate/szl_restraint.py +655 -0
- szl_substrate/szl_rosie_companion.py +485 -0
- szl_substrate/szl_sapa.py +463 -0
- szl_substrate/szl_sapa_patch.py +308 -0
- szl_substrate/szl_scaling.py +374 -0
- szl_substrate/szl_spaces_proxy.py +444 -0
- szl_substrate/szl_spaces_surface.py +525 -0
- szl_substrate/szl_uds_portability.py +770 -0
- szl_substrate/szl_unay.py +443 -0
- szl_substrate/szl_unay_routes.py +237 -0
- szl_substrate/szl_unified_formulas.py +213 -0
- szl_substrate/szl_v4_fleet.py +359 -0
- szl_substrate/szl_waqay.py +1068 -0
- szl_substrate/szl_warhacker_aliases.py +252 -0
- szl_substrate/szl_yupay.py +911 -0
- szl_substrate/test_szl_hf_bucket.py +216 -0
- szl_substrate-0.1.0.dist-info/METADATA +331 -0
- szl_substrate-0.1.0.dist-info/RECORD +75 -0
- szl_substrate-0.1.0.dist-info/WHEEL +4 -0
- szl_substrate-0.1.0.dist-info/licenses/LICENSE +201 -0
- szl_substrate-0.1.0.dist-info/licenses/NOTICE +27 -0
- szl_substrate-0.1.0.dist-info/licenses/NOTICE-THIRD-PARTY.md +174 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# © 2026 Lutar, Stephen P. — SZL Holdings · ORCID 0009-0001-0110-4173 · Doctrine v11
|
|
3
|
+
"""
|
|
4
|
+
szl_substrate — the installable shared substrate for a11oy + killinchu.
|
|
5
|
+
|
|
6
|
+
This package is the single source of truth for modules that were previously
|
|
7
|
+
duplicated byte-for-byte across the two flagship application repos. The goal is
|
|
8
|
+
to eliminate that duplication WITHOUT a big-bang cutover: each app imports a
|
|
9
|
+
module from here with a guarded fallback to its local copy, so nothing breaks if
|
|
10
|
+
the package is not yet installed in a given environment.
|
|
11
|
+
|
|
12
|
+
Honesty labels (Doctrine v11): every governance signal remains ADVISORY.
|
|
13
|
+
Λ = Conjecture 1 (advisory, never "green"/proven). Signed receipts use real DSSE
|
|
14
|
+
in-Space and an honest UNSIGNED marker when no cosign key is present — a
|
|
15
|
+
signature is NEVER fabricated.
|
|
16
|
+
|
|
17
|
+
Extracted modules (POC pass):
|
|
18
|
+
- szl_calibration : ECE / Brier calibration tracking + advisory response gate
|
|
19
|
+
(pure-Python, no third-party deps).
|
|
20
|
+
- szl_dsse : DSSE (in-toto) ECDSA-P256-SHA256 signing/verification,
|
|
21
|
+
cosign-compatible, UNSIGNED-honest fallback (requires
|
|
22
|
+
`cryptography`).
|
|
23
|
+
- szl_brain : governed reasoning-brain scaffolding (pure-Python; makes a
|
|
24
|
+
lazy, guarded call into szl_rag when available).
|
|
25
|
+
|
|
26
|
+
Extracted modules (Wave-S batch — 10 S-tier leaves, byte-identical a11oy↔killinchu
|
|
27
|
+
at extraction time; 0 app-file importers + ≤1 shared-file importer; no local
|
|
28
|
+
imports; none drifted):
|
|
29
|
+
- szl_allodial : Denning(1976) lattice / Goguen-Meseguer(1982)
|
|
30
|
+
non-interference sovereignty formulas (stdlib-only;
|
|
31
|
+
EXPERIMENTAL/PROPOSED — adds nothing to the locked 8).
|
|
32
|
+
- a11oy_hf_assets : Hugging Face asset helpers (stdlib-only).
|
|
33
|
+
- szl_chain_of_title : chain-of-title provenance helpers (stdlib-only).
|
|
34
|
+
- szl_conjecture_factory: conjecture registry (Λ uniqueness stays OPEN /
|
|
35
|
+
Conjecture 1; stdlib-only).
|
|
36
|
+
- szl_connectors_serve : Enterprise-Mesh FastAPI registration. NOTE: has an
|
|
37
|
+
UNGUARDED module-level `import szl_connectors`, so it
|
|
38
|
+
is intentionally NOT eager-imported at package init;
|
|
39
|
+
import it explicitly via
|
|
40
|
+
`from szl_substrate import szl_connectors_serve`
|
|
41
|
+
only where `szl_connectors` is present.
|
|
42
|
+
- szl_ecosystem_routes : ecosystem route registration (stdlib-only).
|
|
43
|
+
- szl_entanglement : 2-qubit entanglement measures + Λ-v5 coherence bridge
|
|
44
|
+
(stdlib-only).
|
|
45
|
+
- szl_metrics_prom : Prometheus metrics helpers (stdlib-only).
|
|
46
|
+
- szl_neuroplasticity : neuroplasticity formulas (stdlib-only).
|
|
47
|
+
- szl_scaling : scaling formulas (stdlib-only).
|
|
48
|
+
|
|
49
|
+
See MIGRATION.md for the full ranked plan covering all 69 shared files.
|
|
50
|
+
"""
|
|
51
|
+
from __future__ import annotations
|
|
52
|
+
|
|
53
|
+
__version__ = "0.1.0"
|
|
54
|
+
|
|
55
|
+
# Re-export the modules as attributes so callers can do either:
|
|
56
|
+
# from szl_substrate import szl_dsse
|
|
57
|
+
# from szl_substrate.szl_dsse import sign_payload
|
|
58
|
+
from . import szl_calibration # noqa: E402,F401
|
|
59
|
+
from . import szl_dsse # noqa: E402,F401
|
|
60
|
+
from . import szl_brain # noqa: E402,F401
|
|
61
|
+
|
|
62
|
+
# Wave-S batch: eager-import the pure-stdlib leaves (safe to import anywhere).
|
|
63
|
+
# szl_connectors_serve is deliberately EXCLUDED from eager import because it has
|
|
64
|
+
# an unguarded module-level `import szl_connectors`; callers import it directly
|
|
65
|
+
# where that dependency exists (see docstring above).
|
|
66
|
+
from . import szl_allodial # noqa: E402,F401
|
|
67
|
+
from . import a11oy_hf_assets # noqa: E402,F401
|
|
68
|
+
from . import szl_chain_of_title # noqa: E402,F401
|
|
69
|
+
from . import szl_conjecture_factory # noqa: E402,F401
|
|
70
|
+
from . import szl_ecosystem_routes # noqa: E402,F401
|
|
71
|
+
from . import szl_entanglement # noqa: E402,F401
|
|
72
|
+
from . import szl_metrics_prom # noqa: E402,F401
|
|
73
|
+
from . import szl_neuroplasticity # noqa: E402,F401
|
|
74
|
+
from . import szl_scaling # noqa: E402,F401
|
|
75
|
+
|
|
76
|
+
# M-tier reconciled drift (Wave-E dev 5): the 3 shared files that had DRIFTED
|
|
77
|
+
# between a11oy and killinchu, reconciled to a single canonical copy here. All
|
|
78
|
+
# three are pure-stdlib at module scope (their szl_dsse / app-specific imports are
|
|
79
|
+
# lazy + guarded inside functions), so they are safe to eager-import. See
|
|
80
|
+
# MIGRATION.md for the per-file reconciliation decision. serve.py is intentionally
|
|
81
|
+
# NOT extracted — it is the per-app entrypoint (legitimately divergent, L-tier).
|
|
82
|
+
from . import _vendor_blobs # noqa: E402,F401
|
|
83
|
+
from . import szl_be_hardening # noqa: E402,F401
|
|
84
|
+
from . import szl_evidence_research # noqa: E402,F401
|
|
85
|
+
|
|
86
|
+
# M-tier wave 1 (this pass): 7 M-tier modules whose shared-module deps are
|
|
87
|
+
# ALREADY in the package (szl_dsse is here; szl_rag / szl_joules_truth are only
|
|
88
|
+
# referenced lazily+guarded inside functions and degrade gracefully). All 7 were
|
|
89
|
+
# byte-identical between a11oy and killinchu at extraction time (cmp-verified),
|
|
90
|
+
# none was a drifted/allow-listed file, so each is extracted byte-for-byte.
|
|
91
|
+
#
|
|
92
|
+
# EAGER (3): pure-stdlib at module scope, so safe to import anywhere. Their
|
|
93
|
+
# szl_dsse / szl_joules_truth uses are all lazy+guarded inside functions.
|
|
94
|
+
from . import szl_ken # noqa: E402,F401
|
|
95
|
+
from . import szl_qhawaq # noqa: E402,F401
|
|
96
|
+
from . import szl_restraint # noqa: E402,F401
|
|
97
|
+
#
|
|
98
|
+
# IMPORT-DIRECTLY (4): each has an UNGUARDED module-level import that would break
|
|
99
|
+
# `import szl_substrate` wherever that dependency is absent, which would violate
|
|
100
|
+
# the package's "importable everywhere" invariant (the same honest-fallback
|
|
101
|
+
# guarantee szl_dsse relies on). So — exactly like `szl_connectors_serve` — they
|
|
102
|
+
# are intentionally EXCLUDED from eager import and imported directly
|
|
103
|
+
# (`from szl_substrate import X`) only where their dependency is present:
|
|
104
|
+
# - szl_provenance : module-level `import szl_dsse` (app path only)
|
|
105
|
+
# - szl_warhacker_aliases : module-level `from fastapi import ...`
|
|
106
|
+
# - operator_shell_v4 : module-level `from fastapi import ...`
|
|
107
|
+
# - szl_llm_registry : module-level `from fastapi import ...`
|
|
108
|
+
# They still ship as importable submodule files and are byte-identical extracts.
|
|
109
|
+
|
|
110
|
+
# M-tier wave 2 (this pass): 6 more M-tier modules whose shared-module deps are
|
|
111
|
+
# ALREADY in the package, or are only referenced lazily+guarded inside functions
|
|
112
|
+
# and degrade gracefully. All 6 were byte-identical between a11oy and killinchu at
|
|
113
|
+
# extraction time (cmp-verified), none was a drifted/allow-listed file, so each is
|
|
114
|
+
# extracted byte-for-byte. Dependency status:
|
|
115
|
+
# - szl_alloy_models : szl_llm_registry (in-function, lazy) ✅ dep moved
|
|
116
|
+
# - szl_mbse_cosim : szl_dsse + szl_restraint (in-function) ✅ deps moved
|
|
117
|
+
# - szl_sapa : szl_dsse (lazy) + szl_energy_sovereign
|
|
118
|
+
# (lazy+guarded soft-import, degrades) ✅ szl_dsse moved
|
|
119
|
+
# - a11oy_agent_loop : szl_brain (module-level but guarded
|
|
120
|
+
# try/except -> None) + szl_agent_loop_banach (lazy) ✅
|
|
121
|
+
#
|
|
122
|
+
# EAGER (4): pure-stdlib at module scope, so safe to import anywhere. Their
|
|
123
|
+
# szl_dsse / szl_restraint / szl_llm_registry / szl_energy_sovereign uses are all
|
|
124
|
+
# lazy+guarded inside functions; a11oy_agent_loop's szl_brain import is wrapped in
|
|
125
|
+
# try/except -> None, so its absence never breaks the module import.
|
|
126
|
+
from . import szl_alloy_models # noqa: E402,F401
|
|
127
|
+
from . import szl_mbse_cosim # noqa: E402,F401
|
|
128
|
+
from . import szl_sapa # noqa: E402,F401
|
|
129
|
+
from . import a11oy_agent_loop # noqa: E402,F401
|
|
130
|
+
|
|
131
|
+
# M-tier wave 3 (this pass): 2 more M-tier modules whose deps are satisfied.
|
|
132
|
+
# Both are byte-identical between a11oy and killinchu at extraction time
|
|
133
|
+
# (cmp-verified, neither is a drifted/allow-listed file), so each is extracted
|
|
134
|
+
# byte-for-byte. Dependency status:
|
|
135
|
+
# - szl_live_wires : only app-specific deps (szl_wire, szl_jack) and fastapi,
|
|
136
|
+
# ALL wrapped in module-level try/except -> None. Its module
|
|
137
|
+
# scope is pure-stdlib, so it is EAGER-safe (importing it
|
|
138
|
+
# never fails even when fastapi/szl_wire/szl_jack are absent).
|
|
139
|
+
# - szl_sapa_patch : szl_sapa ✅ moved. BUT it carries an UNGUARDED module-level
|
|
140
|
+
# `import szl_sapa` (bare name) + `from fastapi import
|
|
141
|
+
# Request`, so it is import-directly (NOT eager) — exactly
|
|
142
|
+
# like szl_waqay / szl_yupay / operator_shell_v4.
|
|
143
|
+
#
|
|
144
|
+
# EAGER (1): szl_live_wires — pure-stdlib at module scope; every heavier import
|
|
145
|
+
# is guarded, so `import szl_substrate` still succeeds with fastapi absent.
|
|
146
|
+
from . import szl_live_wires # noqa: E402,F401
|
|
147
|
+
|
|
148
|
+
# M-tier wave 4 (this pass): a dependency-ordered batch that first lands the 5
|
|
149
|
+
# remaining S-tier leaves that block the next M modules, then the 3 M modules
|
|
150
|
+
# they unblock. All 8 were byte-identical between a11oy and killinchu at
|
|
151
|
+
# extraction time (cmp-verified against BOTH fresh clones; none is a
|
|
152
|
+
# drifted/allow-listed file), so each is extracted byte-for-byte. Dependency
|
|
153
|
+
# status (strictly dependency-ordered):
|
|
154
|
+
# S leaves (deps: none in shared set):
|
|
155
|
+
# - szl_formulas : pure-stdlib leaf (blast radius: 5 app + 1 shared)
|
|
156
|
+
# - szl_conformal : pure-stdlib leaf
|
|
157
|
+
# - szl_khipu_replicate: pure-stdlib leaf
|
|
158
|
+
# - szl_unay : pure-stdlib leaf
|
|
159
|
+
# - szl_khipu_lmdb : leaf, but UNGUARDED module-level `import lmdb`
|
|
160
|
+
# M modules (every shared dep now ALREADY in the package via this same batch):
|
|
161
|
+
# - a11oy_autoreview : szl_calibration / szl_conformal / szl_restraint, ALL
|
|
162
|
+
# guarded (try/except -> None); module scope pure-stdlib
|
|
163
|
+
# - szl_anatomy_routes : UNGUARDED module-level `import szl_formulas` (✅ in this
|
|
164
|
+
# batch); fastapi guarded
|
|
165
|
+
# - szl_unay_routes : UNGUARDED module-level `import szl_unay` /
|
|
166
|
+
# `import szl_khipu_lmdb` / `import szl_khipu_replicate`
|
|
167
|
+
# (all ✅ in this batch); fastapi guarded
|
|
168
|
+
#
|
|
169
|
+
# EAGER (5): pure-stdlib at module scope (a11oy_autoreview's shared-dep imports
|
|
170
|
+
# are all wrapped in try/except -> None), so `import szl_substrate` never fails
|
|
171
|
+
# on their behalf (verified with fastapi + lmdb absent).
|
|
172
|
+
from . import szl_formulas # noqa: E402,F401
|
|
173
|
+
from . import szl_conformal # noqa: E402,F401
|
|
174
|
+
from . import szl_khipu_replicate # noqa: E402,F401
|
|
175
|
+
from . import szl_unay # noqa: E402,F401
|
|
176
|
+
from . import a11oy_autoreview # noqa: E402,F401
|
|
177
|
+
#
|
|
178
|
+
# IMPORT-DIRECTLY (3): each has an UNGUARDED module-level import that would break
|
|
179
|
+
# `import szl_substrate` wherever that dependency is absent, so — exactly like
|
|
180
|
+
# szl_connectors_serve / szl_sapa_patch — they are EXCLUDED from eager import and
|
|
181
|
+
# imported directly (`from szl_substrate import X`) only where their dependency is
|
|
182
|
+
# present. They still ship as importable byte-identical submodule files:
|
|
183
|
+
# - szl_khipu_lmdb : module-level `import lmdb`
|
|
184
|
+
# - szl_anatomy_routes: module-level `import szl_formulas` (bare name)
|
|
185
|
+
# - szl_unay_routes : module-level `import szl_unay` / `szl_khipu_lmdb` /
|
|
186
|
+
# `szl_khipu_replicate` (bare names) + transitive `lmdb`
|
|
187
|
+
#
|
|
188
|
+
# IMPORT-DIRECTLY (1): szl_sapa_patch — module-level fastapi + bare `import
|
|
189
|
+
# szl_sapa`, so it is EXCLUDED from eager import and imported directly
|
|
190
|
+
# (`from szl_substrate import szl_sapa_patch`) only where fastapi and szl_sapa
|
|
191
|
+
# are present. It still ships as an importable submodule file (byte-identical).
|
|
192
|
+
#
|
|
193
|
+
# IMPORT-DIRECTLY (2): each has an UNGUARDED module-level `from fastapi import
|
|
194
|
+
# Request` (with a starlette fallback that also raises if neither is installed),
|
|
195
|
+
# so eager-importing them would break `import szl_substrate` wherever fastapi and
|
|
196
|
+
# starlette are both absent. Exactly like szl_llm_registry / operator_shell_v4,
|
|
197
|
+
# they are EXCLUDED from eager import and imported directly
|
|
198
|
+
# (`from szl_substrate import X`) only where fastapi/starlette is present:
|
|
199
|
+
# - szl_waqay : module-level `from fastapi import Request` (szl_dsse/szl_restraint lazy)
|
|
200
|
+
# - szl_yupay : module-level `from fastapi import Request` (szl_dsse/szl_restraint lazy)
|
|
201
|
+
# They still ship as importable submodule files and are byte-identical extracts.
|
|
202
|
+
|
|
203
|
+
# =========================================================================
|
|
204
|
+
# Wave-K finish batch (this pass): the ENTIRE remaining safe universe.
|
|
205
|
+
# =========================================================================
|
|
206
|
+
# With every prior wave landed, this pass migrates ALL remaining shared
|
|
207
|
+
# modules that are byte-identical between a11oy and killinchu (cmp-verified
|
|
208
|
+
# against BOTH fresh clones), leaving ONLY serve.py per-app. It includes the
|
|
209
|
+
# five modules that were previously allow-listed as "killinchu sync pending"
|
|
210
|
+
# drift but are now BYTE-IDENTICAL again in both repos (the sync landed in
|
|
211
|
+
# later waves): szl_rag, szl_v4_fleet, a11oy_code_engine, szl_agentic_loop,
|
|
212
|
+
# szl_joules_truth. Their now-STALE drift-allow-list entries are removed in
|
|
213
|
+
# BOTH app repos in the companion PRs (tightening the ratchet, exactly as the
|
|
214
|
+
# drift guard's stale-allow WARNING invites) — a signature is never fabricated
|
|
215
|
+
# and no real divergence is masked.
|
|
216
|
+
#
|
|
217
|
+
# szl_joules_truth is the second L-tier leaf (11 app + 2 shared importers);
|
|
218
|
+
# its wide fan-out is handled the same guarded-shim way as szl_dsse.
|
|
219
|
+
#
|
|
220
|
+
# EAGER (25): pure-stdlib at module scope, or every heavier/first-party import
|
|
221
|
+
# is guarded (try/except or in-function), so `import szl_substrate` never fails
|
|
222
|
+
# on their behalf (verified with fastapi + lmdb + starlette + szl_connectors
|
|
223
|
+
# all absent). Their intra-shared deps are all already in the package or only
|
|
224
|
+
# referenced lazily+guarded and degrade gracefully.
|
|
225
|
+
from . import a11oy_uds_portability_nav # noqa: E402,F401
|
|
226
|
+
from . import a11oy_waqay_nav # noqa: E402,F401
|
|
227
|
+
from . import a11oy_yupay_nav # noqa: E402,F401
|
|
228
|
+
from . import szl_contracting # noqa: E402,F401
|
|
229
|
+
from . import szl_formula_wiring # noqa: E402,F401
|
|
230
|
+
from . import szl_logging # noqa: E402,F401
|
|
231
|
+
from . import szl_mbse_nav # noqa: E402,F401
|
|
232
|
+
from . import szl_readiness # noqa: E402,F401
|
|
233
|
+
from . import szl_unified_formulas # noqa: E402,F401
|
|
234
|
+
from . import a11oy_mcp_client # noqa: E402,F401
|
|
235
|
+
from . import szl_codename_gate # noqa: E402,F401
|
|
236
|
+
from . import szl_cuas_formulas # noqa: E402,F401
|
|
237
|
+
from . import szl_hf_bucket # noqa: E402,F401
|
|
238
|
+
from . import szl_khipu_consensus # noqa: E402,F401
|
|
239
|
+
from . import szl_v4_fleet # noqa: E402,F401
|
|
240
|
+
from . import szl_rag # noqa: E402,F401
|
|
241
|
+
from . import szl_spaces_proxy # noqa: E402,F401
|
|
242
|
+
from . import szl_spaces_surface # noqa: E402,F401
|
|
243
|
+
from . import a11oy_code_engine # noqa: E402,F401
|
|
244
|
+
from . import a11oy_org_rag # noqa: E402,F401
|
|
245
|
+
from . import szl_energy_sovereign # noqa: E402,F401
|
|
246
|
+
from . import szl_agentic_loop # noqa: E402,F401
|
|
247
|
+
from . import szl_joules_truth # noqa: E402,F401
|
|
248
|
+
#
|
|
249
|
+
# IMPORT-DIRECTLY (4): each has an UNGUARDED module-level import that would
|
|
250
|
+
# break `import szl_substrate` wherever that dependency is absent, so — exactly
|
|
251
|
+
# like szl_connectors_serve / szl_sapa_patch / szl_waqay — they are EXCLUDED
|
|
252
|
+
# from eager import and imported directly (`from szl_substrate import X`) only
|
|
253
|
+
# where their dependency is present. They still ship as importable
|
|
254
|
+
# byte-identical submodule files:
|
|
255
|
+
# - szl_connector_mcp : module-level `import szl_connectors` (app path only)
|
|
256
|
+
# - szl_deepdive_gaps : module-level `from fastapi import ...`
|
|
257
|
+
# - szl_quantum_bio : module-level `from starlette import ...`
|
|
258
|
+
# - szl_uds_portability: module-level `try fastapi except starlette` (both
|
|
259
|
+
# raise if neither installed — same shape as szl_waqay)
|
|
260
|
+
# - szl_rosie_companion: module-level `from fastapi import ...` fallback that
|
|
261
|
+
# also raises when fastapi/starlette are both absent
|
|
262
|
+
# - test_szl_hf_bucket: module-level `import szl_hf_bucket` (bare name; it is
|
|
263
|
+
# the module's own byte-identical unit test, shipped so
|
|
264
|
+
# the 69-file shared set is fully accounted for)
|
|
265
|
+
|
|
266
|
+
# Convenience re-exports of the most commonly used entry points. These are the
|
|
267
|
+
# stable public surface the apps import through the guarded shim.
|
|
268
|
+
from .szl_dsse import ( # noqa: E402,F401
|
|
269
|
+
sign_payload,
|
|
270
|
+
verify_envelope,
|
|
271
|
+
sign_khipu_receipt,
|
|
272
|
+
signing_available,
|
|
273
|
+
canonical_json,
|
|
274
|
+
KHIPU_PAYLOAD_TYPE,
|
|
275
|
+
KEYID,
|
|
276
|
+
)
|
|
277
|
+
from .szl_calibration import ( # noqa: E402,F401
|
|
278
|
+
expected_calibration_error,
|
|
279
|
+
brier_score,
|
|
280
|
+
brier_binary,
|
|
281
|
+
reliability_bins,
|
|
282
|
+
CalibrationTracker,
|
|
283
|
+
DEFAULT_ECE_GATE,
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
__all__ = [
|
|
287
|
+
"__version__",
|
|
288
|
+
"szl_calibration",
|
|
289
|
+
"szl_dsse",
|
|
290
|
+
"szl_brain",
|
|
291
|
+
# Wave-S batch (eager)
|
|
292
|
+
"szl_allodial",
|
|
293
|
+
"a11oy_hf_assets",
|
|
294
|
+
"szl_chain_of_title",
|
|
295
|
+
"szl_conjecture_factory",
|
|
296
|
+
"szl_ecosystem_routes",
|
|
297
|
+
"szl_entanglement",
|
|
298
|
+
"szl_metrics_prom",
|
|
299
|
+
"szl_neuroplasticity",
|
|
300
|
+
"szl_scaling",
|
|
301
|
+
# Wave-S batch (lazy — import directly): szl_connectors_serve
|
|
302
|
+
# M-tier reconciled drift (Wave-E dev 5)
|
|
303
|
+
"szl_be_hardening",
|
|
304
|
+
"szl_evidence_research",
|
|
305
|
+
# M-tier wave 1 (eager — pure-stdlib at module scope)
|
|
306
|
+
"szl_ken",
|
|
307
|
+
"szl_qhawaq",
|
|
308
|
+
"szl_restraint",
|
|
309
|
+
# M-tier wave 1 (import-directly, NOT eager — unguarded module-level dep):
|
|
310
|
+
# szl_provenance (szl_dsse), szl_warhacker_aliases / operator_shell_v4 /
|
|
311
|
+
# szl_llm_registry (fastapi). They ship as submodule files.
|
|
312
|
+
# M-tier wave 2 (eager — pure-stdlib at module scope; deps lazy/guarded)
|
|
313
|
+
"szl_alloy_models",
|
|
314
|
+
"szl_mbse_cosim",
|
|
315
|
+
"szl_sapa",
|
|
316
|
+
"a11oy_agent_loop",
|
|
317
|
+
# M-tier wave 3 (eager — pure-stdlib at module scope; heavier deps guarded)
|
|
318
|
+
"szl_live_wires",
|
|
319
|
+
# M-tier wave 4 (eager — pure-stdlib at module scope; shared deps guarded)
|
|
320
|
+
"szl_formulas",
|
|
321
|
+
"szl_conformal",
|
|
322
|
+
"szl_khipu_replicate",
|
|
323
|
+
"szl_unay",
|
|
324
|
+
"a11oy_autoreview",
|
|
325
|
+
# M-tier wave 4 (import-directly, NOT eager — unguarded module-level dep):
|
|
326
|
+
# szl_khipu_lmdb (lmdb), szl_anatomy_routes (szl_formulas),
|
|
327
|
+
# szl_unay_routes (szl_unay/szl_khipu_lmdb/szl_khipu_replicate). They ship
|
|
328
|
+
# as importable byte-identical submodule files.
|
|
329
|
+
# M-tier wave 3 (import-directly, NOT eager — module-level fastapi + bare
|
|
330
|
+
# `import szl_sapa`): szl_sapa_patch. It ships as a submodule file.
|
|
331
|
+
# Wave-K finish batch (eager)
|
|
332
|
+
"a11oy_uds_portability_nav",
|
|
333
|
+
"a11oy_waqay_nav",
|
|
334
|
+
"a11oy_yupay_nav",
|
|
335
|
+
"szl_contracting",
|
|
336
|
+
"szl_formula_wiring",
|
|
337
|
+
"szl_logging",
|
|
338
|
+
"szl_mbse_nav",
|
|
339
|
+
"szl_readiness",
|
|
340
|
+
"szl_unified_formulas",
|
|
341
|
+
"a11oy_mcp_client",
|
|
342
|
+
"szl_codename_gate",
|
|
343
|
+
"szl_cuas_formulas",
|
|
344
|
+
"szl_hf_bucket",
|
|
345
|
+
"szl_khipu_consensus",
|
|
346
|
+
"szl_v4_fleet",
|
|
347
|
+
"szl_rag",
|
|
348
|
+
"szl_spaces_proxy",
|
|
349
|
+
"szl_spaces_surface",
|
|
350
|
+
"a11oy_code_engine",
|
|
351
|
+
"a11oy_org_rag",
|
|
352
|
+
"szl_energy_sovereign",
|
|
353
|
+
"szl_agentic_loop",
|
|
354
|
+
"szl_joules_truth",
|
|
355
|
+
# Wave-K finish batch (import-directly, NOT eager — unguarded module-level
|
|
356
|
+
# dep): szl_connector_mcp (szl_connectors), szl_deepdive_gaps (fastapi),
|
|
357
|
+
# szl_quantum_bio (starlette), szl_uds_portability (fastapi/starlette),
|
|
358
|
+
# szl_rosie_companion (fastapi/starlette), test_szl_hf_bucket
|
|
359
|
+
# (szl_hf_bucket). They ship as importable byte-identical submodule files.
|
|
360
|
+
# M-tier wave 2 (import-directly, NOT eager — module-level fastapi):
|
|
361
|
+
# szl_waqay, szl_yupay. They ship as submodule files.
|
|
362
|
+
# _vendor_blobs is underscore-private but ships as an importable submodule
|
|
363
|
+
# dsse
|
|
364
|
+
"sign_payload",
|
|
365
|
+
"verify_envelope",
|
|
366
|
+
"sign_khipu_receipt",
|
|
367
|
+
"signing_available",
|
|
368
|
+
"canonical_json",
|
|
369
|
+
"KHIPU_PAYLOAD_TYPE",
|
|
370
|
+
"KEYID",
|
|
371
|
+
# calibration
|
|
372
|
+
"expected_calibration_error",
|
|
373
|
+
"brier_score",
|
|
374
|
+
"brier_binary",
|
|
375
|
+
"reliability_bins",
|
|
376
|
+
"CalibrationTracker",
|
|
377
|
+
"DEFAULT_ECE_GATE",
|
|
378
|
+
]
|