Skip to content

legends-jev v0.3.0

Latest

Choose a tag to compare

@avalonreset avalonreset released this 04 Dec 05:22

legends-jev v0.3.0 (2026-12-03)

Signage Receipt v2 & Core Brand Derivation

  • Upgraded signage to legends-jev/signage-receipt-v2 with state.core_brand, core_brand_shown, verdict_confidence, and a fourth verdict (different_business) so readable storefronts belonging to a different business no longer pass as omits_suspect_terms.
  • Added derive_core_brand() with whole-phrase stripping (longest phrase first, unmatched delimiter cleanup) and explicit --core-brand / core_brand=... override support.
  • Enforced frozen signage v2 confidence gates (is_confident_signage(), SPEC-V2-FROZEN-20261123) while preserving default schemas and rubrics across decide, direct, preview, readiness, ocr, models, and benchmark.

Opt-In 262k Long-Context & Performance

  • Added explicit opt-in 262k long-context support via --long-context (preview, decide, ocr, signage) and long_context=False in Python helpers, attaching TypeSafe-Danger-Zone-Long-Context: true only when requested and surfacing explicit latency/accuracy/cost warnings.
  • Preferred Pillow C-accelerated BICUBIC resampling (Pillow>=10.0.0,<14) ahead of the pure-Python fallback with non-deprecated Resampling enum lookups and zero deprecation warnings.

Security & Hardening

  • Enforced strict 13-byte PNG IHDR invariants, duplicate IHDR rejection, chunk-walk acTL detection, and streaming zero-copy PNG IDAT decompression-bomb bounds across all PNG entry points.
  • Hardened refuse_symlink_tree() across --output, --api-key-file, --input, and --image against Windows NTFS junctions (Python 3.11-3.13), unnormalized .. traversals, and NUL-byte paths; added atomic sibling-temp --overwrite writes and strict is not None handling for --api-key-file / --output.
  • Added deterministic O(N) JSON nesting-depth guards (MAX_JSON_DEPTH = 64), parse_constant + parse_float non-finite/overflow (1e500) rejection, _ALLOWED_IMAGE_ASSET_KEYS allowlist validation, bounded usage token counts (<= 1_000_000_000), and benchmark --execute abort handling on "response_" and "Inverted".

Verification

  • Multi-OS CI (checks run 47273182722): 78/78 passed plus wheel build and scripts/check_wheel.py across Ubuntu, Windows, and macOS on Python 3.11 and 3.13 (plus Python 3.12 locally). Note: live HTTPS execution against api.typesafe.ai was not run on this build host (TYPESAFE_API_KEY not provisioned).
  • Attached deterministic legends-jev-0.3.0-bundle.tar.gz, legends_jev-0.3.0-py3-none-any.whl, legends_jev-0.3.0.tar.gz, and SHA256SUMS.txt.