Skip to content

Pillar 2 — Enforceable Software Building Codes (JBC Edition 1.3) & Blueprint LVS

1. Statutory Rationale: The Building Inspector Model

In civil and electrical engineering, passing an energized functional check ("the lamp turns on") does not make an installation safe to energize. An ungrounded receptacle, an undersized conductor, or a bypassed breaker works on the happy path until a fault burns the structure down. Licensure-backed building codes (NFPA 70 / NEC, International Building Code) make grounding, fault isolation, ampacity bounds, and inspectability mandatory conditions of occupancy.

Existing software standards fail to serve as an enforceable code book for three structural reasons: 1. Quality Taxonomies Without Decidable Predicates: ISO/IEC 25010 and IEEE 1016/29148 name desirable nouns (Analysability, Modifiability, Reliability) without objective thresholds or machine-checkable pass/fail rules. 2. Post-Mortem Pathology Catalogs: MITRE CWE enumerates ~900 overlapping weaknesses at inconsistent abstraction levels rather than affirmative construction standards. 3. Human-Era Blind Spots: Existing standards assume human authorship cost structures. Coding agents exhibit fundamentally different failure modes—hallucinating nonexistent packages, authoring assertion-free or tautological test theatre (assert True), leaving pass/NotImplementedError stubs behind typed headers, and injecting Any or # type: ignore to silence static gates.

Pillar 2 establishes the Jezz Software Building Code (JBC Edition 1.3 — 32 provisions across 6 Articles), an automated Building Inspector (BuildingInspector), and a deterministic BlueprintGraph Layout-Versus-Schematic (LVS) verifier that gate occupancy across Pillar 1's behavioral state machine.


2. Key Architectural Design Decisions in Edition 1.3

A. Option A Runtime Signature Breakers (JBC-DBC-004 + JBC-COG-003)

In Python, static annotations (def charge(acct: str, amt: float) -> Receipt:) are inert __annotations__ metadata at runtime—labeling a panel slot "20A" with a Sharpie while installing no breaker. - Public & Boundary Feeders (@jezz_callable): Mandatory on all public module functions and public class methods (enforcing strict=True, allow_inf_nan=False, and validate_return=True on non-generators via pydantic-core). - Why _private Intra-Module Helpers Are Excluded: Validating Sequence[T] or Mapping[K, V] walks every element (\(O(N)\)). Validating on every internal recursive/loop helper turns \(O(N)\) graph/tree algorithms into \(O(N^2)\), exhausts Iterator parameters, pollutes internal AST/handle helpers with arbitrary_types_allowed, and creates CodeVariance fatigue. - Sealed Module Enclosures (JBC-COG-003): Cross-module _private imports (from pkg.a import _helper) are outlawed so callers cannot bypass a module's validated public feeders.

B. Bounded Termination & Resource Envelopes (JBC-FLT-004..006)

Because arbitrary while cond: termination is undecidable, JBC adopts the safety-critical verifier pattern: - LoopBudget on while Loops (CWE-835): Every while loop must invoke budget.tick() against a deterministic step cap. - Fuel-Bounded Recursion Permitted; Unbounded Recursion Banned (CWE-674): Forcing post-order tree/AST algorithms into manual heap-stack state machines explodes Cognitive Complexity (JBC-COG-001). Recursion is legal iff governed by an explicit decreasing fuel parameter (remaining_depth / max_depth) or RecursionBudget. - Structured Concurrency & Allocation Caps (CWE-400, CWE-770): Bare create_task / Thread.start are banned in favor of TaskGroup; async external I/O requires wall-clock asyncio.timeout scopes (defeating Slowloris drip reads); @functools.cache and uncapped .read() / .read_text() / .fetchall() are replaced by bounded caches and read_bounded_text(ContainedPath, max_bytes=...).

C. Configurable Complexity Profiles (PermitProfile), Table-Driven Dispatch, & Single-Duty Classes (JBC-COG-001..005)

  • Statutory Threshold Profiles (PermitProfile & CodeThresholdOverrides): CodePermit (permits.py) and --profile standard|strict_internal (complexity.py) govern JBC-COG-001 and JBC-COG-002 across all four languages: PermitProfile.STANDARD enforces Cognitive Complexity \(\le 15\) and \(\le 35\) statements per callable, whereas PermitProfile.STRICT_INTERNAL tightens ceilings to Cognitive Complexity \(\le 10\) and \(\le 25\) statements (with optional explicit CodeThresholdOverrides per permit). Cross-module JBC-COG-003 cycle detection and topological layering share a single LoopBudget-guarded Tarjan SCC and module-matching kernel (jezz.codes.dep_graph) across rules_cog.py, polyglot_rules.py, and ast_graph.py.
  • Closing Sonar's elif Blind Spot (JBC-COG-004): Sonar Cognitive Complexity charges only +1 per elif with zero nesting penalty. JBC-COG-004 caps chains at \(\le 1\) elif (forcing 3+ way routing onto immutable MappingProxyType dispatch tables or match), bans else/elif after terminal jumps (return/raise/break/continue), and bans mutable module-level dispatch dicts.
  • Mathematical Single Responsibility (JBC-COG-005): Replaces subjective "one reason to change" prose with objective graph & capacity laws: Role Purity (no external I/O on BaseModels), LCOM4 <= 1 (Hitz & Montazeri connected state/method components), zero stateless instance methods, \(\le 5\) behavioral instance attributes, \(\le 7\) public methods, and class WMC <= 35.

D. Time-Bounded Sunset Variances & Differential Occupancy Ratchet (jezz.codes.ratchet)

  • Statutory Sunset Expiration (CodeVariance.expires_on): Non-LIFE_SAFETY variances support an optional expires_on: datetime.date sunset deadline evaluated against an explicit reference_date (--as-of YYYY-MM-DD, defaulting to UTC today). Once reference_date > expires_on, BuildingInspector automatically flips the discrepancy from VARIANCE_WAIVED back to VIOLATION (RED_TAG) with an explicit [Expired variance '...' (sunset YYYY-MM-DD)] citation so temporary waivers never calcify into permanent # noqa debt.
  • Differential Occupancy Ratchet (jezz inspect --changed-since <ref> / --staged & jezz renovate --ratchet): Enables immediate CI and autonomous brownfield adoption on unrenovated repositories. inspect_differential_rough_in parses the full workspace so cross-module provisions (JBC-COG-003 Tarjan cycle detection and intra-package enclosure rules) retain whole-graph visibility—catching cycles introduced between a touched module and an untouched legacy module—while scoping per-unit RED_TAG enforcement strictly to touched governed source files (.py, .ts, .tsx, .rs, .go) resolved via ContainedPath-validated git merge-base or staged-index diffs. For autonomous Phase V brownfield renovation (jezz renovate --ratchet), inspect_differential_final extends the same scoped static + whole-graph JBC-COG-003 evaluation with dynamic compiler/suite GateAttestations (JBC-VRF-005 & JBC-VRF-006).

E. Dynamic Path Anchoring & Hardcoded Path Prohibition (JBC-SEC-006)

Coding agents trained on ad-hoc scripts frequently bake machine-local absolute paths, OS temp prefixes, home-tilde expansions, or CWD-fragile string-literal Path("...") calls directly into modules and generated hooks (AGT-PATH-01, CWE-426, ISO/IEC 25010 §4.2.8): - Zero Hardcoded Host/OS Path Literals (src/ & tests/): check_sec_006 rejects embedded host-root, home-directory, temporary-directory, and Windows drive-letter path literals across both production and test units (exempting URL schemes, MIME/REST route strings, and non-path identifiers). - Dynamic Anchor Derivation in Production Modules: Production code is prohibited from passing string literals directly to Path(...) or os.path.*(...) constructors; every filesystem path must be computed dynamically from an explicit anchor (Path(__file__).resolve(), importlib.resources, tempfile / tmp_path, injected runtime environment anchors such as ${PLUGIN_ROOT}, or ContainedPath.from_parts(anchor, rel)).

F. Polyglot CST Inspection & Ecosystem Manifest Grounding (jezz.codes.adapters, polyglot_*)

While JBC Edition 1.2 was originally implemented against Python's stdlib ast + tokenize, its 31 provisions express structural, control-flow, boundary-contract, and epistemic laws rather than Python-only lint style. Track 8 (track-8-polyglot-inspector.md) generalizes BuildingInspector, WorkspaceAstGraph, inspect_differential_rough_in, jezz mcp, jezz hook stop, and audit_pce_dossier across four systems and application languages: - Hexagonal LanguageAdapterPort & InspectedUnit Union (adapters.py, polyglot_ir.py): Pairs PythonLanguageAdapter (SourceUnit) with TreeSitterLanguageAdapter backends backed by official C-extension tree-sitter grammars for TypeScript (.ts, .tsx), Rust (.rs), and Go (.go), normalizing callables, nominal/schema types, imports, comments, and language-idiomatic CST hazards into PolyglotUnit with fail-closed SyntaxError rejection on malformed CSTs. - Universal Structural Evaluators + Whole-Workspace Inter-Procedural Guard & Taint Propagation (polyglot_cst.py, polyglot_rules.py, polyglot_ts*.py, polyglot_rust*.py, polyglot_go*.py, rules_sec_obs.py, call_flow*.py): Evaluates SonarSource Cognitive Complexity (JBC-COG-001), nesting/arity/span (JBC-COG-002), iterative Tarjan SCC cycles & private/internal module breaches (JBC-COG-003), else if dispatch caps (JBC-COG-004), Hitz–Montazeri LCOM4 / WMC / schema purity (JBC-COG-005), per-parameter backward-closed boundary guards and cross-callable/cross-module validator-helper delegation (JBC-DBC-001..005), fault/concurrency/resource envelopes (JBC-FLT-001..006), LoopBudget-bounded monotone fixed-point inter-procedural SQL/shell/eval (JBC-SEC-001) and path-sink (JBC-SEC-005) taint propagation across wrapper helpers and imported modules (build_workspace_call_flow & refine_discrepancies_with_call_flow, preserving differential ratchet anchoring), state determinism (JBC-OBS-001..003), and anti-theatre verification (JBC-VRF-001..004) uniformly across all four languages. - Four-Ecosystem Manifest Grounding (polyglot_manifests.py, JBC-VRF-003): Grounds third-party and workspace imports against pyproject.toml/setup.cfg (Python), package.json + packages/*/apps/* monorepo workspaces & @types/* companions (TypeScript), Cargo.toml + [workspace.members]/[workspace.dependencies] crate renames (Rust), and go.mod module/require/replace directives (Go).

G. Subpackage Compartmentation (JBC-COG-006), Switchable CAD Blueprints, & Coarse-Grained LVS (jezz.codes.compartment, jezz.codes.blueprint, jezz.codes.blueprint_lvs, @jezz/blueprint)

Module-level cycle detection (JBC-COG-003) alone permits two classic architectural regressions in growing agent-authored codebases: cross-folder mutual tangling (alpha/x -> beta/y + beta/z -> alpha/w, which has zero file-level cycles!) and unpartitioned flat-package sprawl that blows past cold-start agent localization budgets. Edition 1.3 closes both at the architectural scale: - Subpackage Quotient Acyclicity, Floorplate Caps, Portal Ratios, & Workspace Fire-Walls (JBC-COG-006): Collapses sibling subpackage compartments and workspace members (packages/*, apps/*, crates/*, libs/*, services/*) into a quotient graph \(G/\sim\) and enforces: (1) zero Tarjan SCC cycles in \(G/\sim\), (2) per-compartment direct module caps (standard <= 35, strict_internal <= 25) and per-package module caps (standard <= 100, strict_internal <= 75), (3) bounded external portal ratios (\(|\partial C| / |C| \le 0.65\) standard / \(\le 0.55\) strict_internal for \(|C| \ge 10\) to block sham folder splits without forcing eager __init__.py / index.ts barrel imports), and (4) strict public-boundary fire-walls across multi-package workspace members (plus Go internal/ trees). - Zero-Drift BlueprintGraph Netlist & Switchable A-1/E-1 CAD Projections (jezz blueprint, packages/jezz-blueprint): extract_blueprint deterministically projects AST/CST, imports, call-flow, @jezz_callable/strict-schema circuit breakers, and ecosystem manifests into a SHA-256-sealed BlueprintGraph (Rooms, fire-rated Walls, PerimeterPortPins, Buses, CircuitBreakers, ExternalRisers, InvariantPins, and algebraic RedlineDeltas \(B^* = B_0 \oplus \Delta B\)). Both jezz blueprint (cli_blueprint.py) and the self-hosted TypeScript @jezz/blueprint package (elkjs + strict zod) render synchronized switchable CAD views uniting Sheet A-1 (Architectural Floor Plan: spatial permanence, proportional room mass, wall fire-rating strokes, 34/35 occupancy gauges) and Sheet E-1 (Electrical Wiring Schematic: IC blocks with FIXED_SIDE WEST/EAST/SOUTH perimeter pins and elkjs ORTHOGONAL Manhattan bus routing) with shared selection/camera state, Title Block, toggleable CAD layers (Structure, Breakers, Taint & I/O Risers, Redline Diff), and .svg export. - Coarse-Grained Boundary LVS Equivalence (verify_blueprint_lvs & Dual-Digest CertificateOfOccupancy): Modeled after EDA Layout-Versus-Schematic verification, verify_blueprint_lvs(actual, target) enforces strict homomorphic equivalence at room walls, inbound perimeter port pins, cross-room buses, external I/O risers, and invariant pins (OPEN_CIRCUIT on missing obligations; SHORT_CIRCUIT on unauthorized cross-wall buses, demolished REMOVE_BUS conduits, cyclic rooms, or undeclared external sinks/packages), while leaving interior module helpers and algorithms 100% unconstrained and idiomatic. CertificateOfOccupancy cryptographically seals both artifact_digest and blueprint_netlist_digest.

H. Polyglot Import/Local Alias Canonicalization (JBC-SEC-001) & Full 32-Code Final CLI Gate (jezz inspect --final)

  • Default-Deny Subprocess Allowlists, Alias Canonicalization, & Static Scope Boundaries (JBC-SEC-001): Rather than enumerating a known-bad blocklist of shells or flags while letting unresolved argv pass, JBC-SEC-001 enforces a fail-closed static executable and mode allowlist across Python, TypeScript, Rust, and Go (dep_graph.py, complexity.py, ast_utils.py, rules_sec_obs.py, polyglot_{ts,rust,go}_hazards.py): every non-test subprocess/exec call must statically resolve argv[0] (within lexically isolated per-callable container scopes or closed intra-module private helpers) to a non-shell binary, unwrap only statically resolved transparent wrappers (env, timeout, nice, sudo, xargs), restrict language runtimes (python -m <allowlisted_module> / .py script, node --test / .js script, uv, cargo, go) to non-eval modes, restrict parameterized dynamic-argument invocations to an explicit binary+subcommand allowlist, and reject dynamic-execution/FFI/deserialization families (eval/exec/compile, ctypes/cffi, timeit, dynamic importlib.import_module attribute calls, Node vm/dynamic import(), Go plugin.Open/syscall.Syscall, Rust libloading/libc). Scope boundary: as an AST_STATIC / whole-workspace call_flow gate, JBC-SEC-001 cannot inspect external binaries' runtime behavior or opaque higher-order callable registries not visible in workspace source; adversarial containment requires OS/container sandboxing.
  • Unified 32 / 32 CLI & CI Gate (jezz inspect --final): While jezz inspect <repo> runs the fast zero-subprocess Rough-In suite (30 static/graph rules), jezz inspect <repo> --final [--gate-timeout <sec>] executes ecosystem static-type and dynamic test-suite watchdogs (mypy --strict + pytest, tsc --noEmit + vitest/node --test, cargo check + cargo test, go vet + go test) via PolyglotSubprocessGateRunner and attests JBC-VRF-005 and JBC-VRF-006 directly from the CLI and action.yml (final-gates: "true").

3. Edition 1.3 Code Book — 32 Provisions Across 6 Articles

Article I: DBC — Design by Contract, Signature Breakers & Bounded Domains (5)

Code Title Severity Waivable Primary Lineage & Verbatim Anchor
JBC-DBC-001 Executable Preconditions, Relational Postconditions & Validators structural Yes Meyer DbC §11; MITRE CWE-369 ("The product divides a value by zero.")
JBC-DBC-002 Total Static Type Grounding & Type-Erasure Prohibition structural Yes IEEE 1016 §5.6; AGT-TYPE-01
JBC-DBC-003 Explicit Optionality & Total Return Paths structural No CWE-476 ("The product dereferences a pointer that it expects to be valid but is NULL."); CERT MSC01-C ("Strive for logical completeness")
JBC-DBC-004 Public Callable Runtime Signature & Return Breakers (Option A) structural Yes NASA P10 Rule 7; CWE-20 ("...does not validate or incorrectly validates that the input has the properties that are required...")
JBC-DBC-005 Bounded Scalar & Collection Domain Primitives structural Yes CWE-770 ("...without imposing any intended restrictions on the size or number of resources..."); OWASP ASVS V5.1.3

Article II: FLT — Fault Isolation, Termination & Resource Envelopes (6)

Code Title Severity Waivable Primary Lineage & Verbatim Anchor
JBC-FLT-001 Prohibition of Silent Fault Suppression life_safety No CWE-390 ("The product detects a specific error, but takes no actions to handle the error."); CERT ERR00-J
JBC-FLT-002 Causal Exception Chaining & Actionable Error Diagnostics structural Yes ISO/IEC 25010 §4.2.5; CWE-755
JBC-FLT-003 Managed Resource Handles, Sync Timeouts & Bounded Retries structural Yes CWE-400 ("The product does not properly control the allocation and maintenance of a limited resource.")
JBC-FLT-004 Guaranteed Loop & Recursion Termination (LoopBudget & Fuel) structural Yes NASA P10 Rule 2 ("All loops must have a fixed upper-bound"); CWE-835; CWE-674
JBC-FLT-005 Structured Concurrency & Wall-Clock Cancel Deadlines structural Yes CWE-400 (Slowloris & orphan task prevention)
JBC-FLT-006 Bounded Memory Caches & Stream Allocation Ceilings structural Yes CWE-770

Article III: SEC — Trust Boundaries, Ingress/Egress & Sink Containment (6)

Code Title Severity Waivable Primary Lineage & Verbatim Anchor
JBC-SEC-001 Parameterized Sink Execution & Dynamic Eval Prohibition life_safety No CWE-89; OWASP ASVS V5.3.4 ("Verify that data selection or database queries... use parameterized queries...")
JBC-SEC-002 Secret Redaction & Sensitive Payload Containment life_safety No OWASP ASVS V7.1.1 ("Verify that the application does not log credentials or payment details."); CWE-209/532/798
JBC-SEC-003 Strict Closed Boundary Schemas (extra='forbid', strict=True, allow_inf_nan=False) structural Yes CWE-754 ("...does not check or incorrectly checks for unusual or exceptional conditions..."); OWASP ASVS V5.1.3
JBC-SEC-004 Typed Wire Ingress & Explicit Egress Projection structural Yes OWASP API3:2023 ("This category combines API3:2019 Excessive Data Exposure and API6:2019 - Mass Assignment..."); CWE-200
JBC-SEC-005 Taint Separation & Canonicalized Sink Types life_safety No CWE-22 ("...uses external input to construct a pathname... underneath a restricted parent directory, but it does not properly neutralize special elements...")
JBC-SEC-006 Dynamic Path Anchoring & Hardcoded Path Prohibition structural Yes ISO/IEC 25010 §4.2.8; CWE-426 ("The application searches for critical resources using an untrusted search path"); AGT-PATH-01

Article IV: COG — Complexity, Dispatch Tables, Class Cohesion & Compartmentation (6)

Code Title Severity Waivable Primary Lineage & Verbatim Anchor
JBC-COG-001 Callable Cognitive Complexity Ceiling (\(\le 15\)) workmanship Yes Sonar (Campbell 2017: "Increment (add one) for each break in the linear flow... Increment when flow-breaking structures are nested.")
JBC-COG-002 Control-Flow Nesting (\(\le 4\)), Arity (\(\le 6\)), and Span (\(\le 35\) stmts) workmanship Yes NASA P10 Rule 1 ("Restrict all code to very simple control flow constructs") & Rule 4; IEEE 1016
JBC-COG-003 Acyclic Module Topology, Wildcard Ban & Sealed _private Enclosures structural No Parnas 1972 ("Every module in the second decomposition is characterized by its knowledge of a design decision which it hides from all others.")
JBC-COG-004 Table-Driven Dispatch (circuit_board) & Guard-Clause Discipline workmanship Yes McConnell Code Complete Ch. 18; Object Calisthenics Rule 2
JBC-COG-005 Single-Duty Class Cohesion (LCOM4 == 1) & Panel Capacity workmanship Yes Hitz & Montazeri LCOM4 (1995); Chidamber & Kemerer WMC/CBO (1994)
JBC-COG-006 Subpackage Quotient Acyclicity, Floorplate Caps & Workspace Fire-Walls structural Yes Parnas 1972; Baldwin & Clark Design Rules DSM (2000); Martin CCP/CRP

Article V: OBS — Observability, State Hygiene & Determinism (3)

Code Title Severity Waivable Primary Lineage
JBC-OBS-001 Structured Diagnostic Telemetry & Debug Trap Prohibition workmanship Yes CWE-489; ISO/IEC 25010 §4.2.7
JBC-OBS-002 Immutable Default State & Global State Prohibition structural No NASA P10 Rule 6; CWE-665
JBC-OBS-003 Deterministic Execution & Controlled Nondeterminism workmanship Yes ISO/IEC 25010 Testability; CWE-330

Article VI: VRF — Anti-Theatre Verification, Grounding & Watchdogs (6)

Code Title Severity Waivable Primary Lineage
JBC-VRF-001 Prohibition of Verification Theatre & Tautological Assertions life_safety No AGT-THEATRE-01; IEEE 29148 §5.2.8
JBC-VRF-002 Prohibition of Hollow Stubs & Deferred Placeholders life_safety No AGT-STUB-01
JBC-VRF-003 Epistemic Import & Declared Dependency Grounding structural No AGT-HALLUC-01; CWE-1357
JBC-VRF-004 Prohibition of Unpermitted Gate Suppression Directives structural Yes AGT-TAMPER-01
JBC-VRF-005 Mandatory Static Soundness Gate Attestation life_safety No ISO/IEC 25010 §4.2.5; AGT-ATTEST-01
JBC-VRF-006 Mandatory Dynamic Suite, Watchdog Timeout & Memory Attestation life_safety No Meyer DbC §11; CWE-400; AGT-ATTEST-02

4. Polyglot Z3 Symbolic Contract Verification (jezz.codes.smt)

Beyond AST/CST structural checks and randomized property-based testing, src/jezz/codes/smt/ (jezz prove & MCP jbc_prove_contracts) lowers idiomatic contracts across Python (@icontract, Pydantic BaseModel / Annotated[..., Field(...)], StrEnum), TypeScript (Zod, @requires/@ensures), Rust (Result, assert!), and Go ((T, error) guards) into quantifier-free Z3 verification conditions (QF_LIA, QF_NRA, QF_SLIA):

  • Sound 5-State Verdict Taxonomy (ContractProofStatus):
  • PROVED_DEDUCTIVE (UNSAT): Preconditions \(P\) and contract \(P \land Q\) are satisfiable (non-vacuous), at least one return path is reachable, and Z3 proved \(P \land \neg \text{WP}(\text{body}, Q)\) is UNSAT across all valid inputs (including division/modulo zero-safety).
  • SCHEMA_NON_VACUOUS (SAT): Declared Pydantic/Zod schema field constraints are jointly satisfiable (SAT(P)).
  • UNPROVED_OPAQUE (SAT contract, body unproved): Preconditions/postconditions are non-vacuous (SAT), but the callable invokes I/O, composite heap containers, or loops outside the decidable pure fragment (--require-deductive fails closed with exit 1 whenever unproved_opaque_count > 0).
  • COUNTEREXAMPLE_FOUND (SAT witness): Z3 synthesized a concrete input assignment violating a postcondition, inline assertion, or division-by-zero guard.
  • VACUOUS_CONTRACT (UNSAT(P) or UNSAT(P \land Q)): Contradictory preconditions or impossible postconditions caught before body verification.
  • Extended Python VCGen & Exact Regex/Monoid Lowering (vcgen_py.py, vcgen_py_ext.py, solver.py):
  • Exact Single-Quantifier Regex Decomposition: Anchored single-character-atom patterns with one bounded quantifier \(A_1^{k_1}\cdots B^{\{\ell, u\}}\cdots A_m^{k_m}\) lower via an equivalence-preserving decomposition into \(\text{InRe}(s, A_1^{k_1}\cdots B^*\cdots A_m^{k_m}) \land K+\ell \le |s| \le K+u\) (eliminating exponential \(2^u\) NFA Option unrolling in Z3's seq theory), while negated character classes [^...] lower to z3.Diff(z3.AllChar(...), union) 1-state DFAs.
  • Free-Monoid split & strip Axioms: a, b = s.split(sep, maxsplit=1) lowers to \(s = v_0 \mathbin{\Vert} \text{sep} \mathbin{\Vert} v_1 \land \neg\text{Contains}(v_0 \mathbin{\Vert} \text{sep}_{[:-1]}, \text{sep})\); segments = s.split(c) lowers to exact segment-count partition axioms; s == s.strip() lowers to full 29-codepoint Unicode edge-whitespace exclusion.
  • Per-Obligation Supplementary-Plane Landmark Quotient Compression & Code-Unit Length Lowering (UnicodeAlphabetMap): Because Z3's StringSort caps its internal alphabet at 0x2FFFF (196,608 characters, precluding a global bijection from the 983,040 supplementary code points U+20000..U+10FFFF into 65,536 Plane-2 slots), build_unicode_alphabet_map builds a per-obligation order-preserving landmark quotient map over supplementary literals and regex range endpoints—allocating exact slots for referenced landmarks and witness slots for unmentioned inter-landmark intervals, and failing closed (UNPROVED_OPAQUE) if an obligation exceeds Plane-2 slot capacity—while leaving BMP + SMP (U+0000..U+1FFFF) fixed and bounding SmtLen by UTF-16 code units (\(|s|_{\text{cp}} \le \ell \le 2|s|_{\text{cp}}\)) for TypeScript and UTF-8 bytes (\(|s|_{\text{cp}} \le \ell \le 4|s|_{\text{cp}}\)) for Rust and Go.
  • Fail-Closed Decorator, Invariant, DBC Inheritance, & Schema Refinement Extraction: Workspace-wide contract resolution resolves imported @icontract decorator aliases (must_be_negative = icontract.ensure(...)), propagates ancestor @invariant predicates and icontract.DBC / DBCMeta base-method @require (disjunctive weakening) and @ensure (conjunctive strengthening) across intra-file and cross-module inheritance hierarchies, restricts @icontract.invariant deductive proof to classes whose methods obey a strict pure read-only attribute-projection whitelist (UNPROVED_OPAQUE on any mutation, receiver escape/aliasing, dunder hook, or reflective call), and marks unmodeled Python/TypeScript/Rust decorators, TS arrow_functions, and Zod .refine/.superRefine/.transform chains UNPROVED_OPAQUE so --require-deductive never exits 0 on unverified contracts.
  • Real Rounding, BaseModel Projections, & Pure Helper Folding: round(x, k) lowers to \(|r - x| \le \frac{1}{2}\cdot 10^{-k}\) with integer monotonicity landmarks; BaseModel receivers/parameters/constructors and T | None optionals project onto scalar + __set_* variables; intra-module total and raise-guarded helpers inline symbolically.
  • Declarative Custom Workspace Provisions (.jezz/codes/*.toml, jezz.codes.custom_codes): Organizations extend CODE_BOOK without Python code execution via five polyglot matchers (ast_call_or_attr, cst_query, import_boundary, callable_contract, lexical_pattern) verified against mandatory invalid_fixtures and valid_fixtures (jezz codes list|verify|create|onboard); optional pinned_python_plugin rules remain disabled unless both JEZZ_ALLOW_CUSTOM_PLUGINS=1 / --allow-custom-plugins and a matching SHA-256 entry in [custom_plugins.pins] are present.
  • Self-Hosted Proof Ledger on jezz (uv run jezz prove .): Across 306 repository obligations (0 vacuous, 0 counterexamples), Z3 deductively proves 18 pure callables (PROVED_DEDUCTIVE) and 168 schemas (SCHEMA_NON_VACUOUS), leaving 120 I/O, subprocess, AST-graph, and orchestrator callables explicitly marked UNPROVED_OPAQUE.