Repository navigation
Releases
legends-jev v0.3.0
legends-jev v0.3.0 (2026-12-03)
Signage Receipt v2 & Core Brand Derivation
- Upgraded
signagetolegends-jev/signage-receipt-v2withstate.core_brand,core_brand_shown,verdict_confidence, and a fourth verdict (different_business) so readable storefronts belonging to a different business no longer pass asomits_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 acrossdecide,direct,preview,readiness,ocr,models, andbenchmark.
Opt-In 262k Long-Context & Performance
- Added explicit opt-in
262klong-context support via--long-context(preview,decide,ocr,signage) andlong_context=Falsein Python helpers, attachingTypeSafe-Danger-Zone-Long-Context: trueonly when requested and surfacing explicit latency/accuracy/cost warnings. - Preferred Pillow C-accelerated
BICUBICresampling (Pillow>=10.0.0,<14) ahead of the pure-Python fallback with non-deprecatedResamplingenum lookups and zero deprecation warnings.
Security & Hardening
- Enforced strict 13-byte PNG
IHDRinvariants, duplicateIHDRrejection, chunk-walkacTLdetection, and streaming zero-copy PNGIDATdecompression-bomb bounds across all PNG entry points. - Hardened
refuse_symlink_tree()across--output,--api-key-file,--input, and--imageagainst Windows NTFS junctions (Python 3.11-3.13), unnormalized..traversals, and NUL-byte paths; added atomic sibling-temp--overwritewrites and strictis not Nonehandling for--api-key-file/--output. - Added deterministic O(N) JSON nesting-depth guards (
MAX_JSON_DEPTH = 64),parse_constant+parse_floatnon-finite/overflow (1e500) rejection,_ALLOWED_IMAGE_ASSET_KEYSallowlist validation, boundedusagetoken counts (<= 1_000_000_000), andbenchmark --executeabort handling on"response_"and"Inverted".
Verification
- Multi-OS CI (
checksrun47273182722):78/78passed plus wheel build andscripts/check_wheel.pyacross Ubuntu, Windows, and macOS on Python 3.11 and 3.13 (plus Python 3.12 locally). Note: live HTTPS execution againstapi.typesafe.aiwas not run on this build host (TYPESAFE_API_KEYnot 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, andSHA256SUMS.txt.
legends-jev v0.2.7
legends-jev v0.2.7
Highlights
- Ship canonical
cto-legends.comhomepage/documentation URLs, sync vendoredcto-legendsrouter skill pin (ff90a8bd2348), and standardize release artifact checksums.
Install or Upgrade via cto-legends
cto-legends update legends-jev --apply
cto-legends doctor legends-jevAll release artifacts are verified in SHA256SUMS.txt.
legends-jev v0.2.6
legends-jev v0.2.6 (2026-11-22)
- Sync vendored
cto-legendsrouter skill pin (69ddc4f68faa) with LF normalization via.gitattributes. - Attach verified release package artifacts and
SHA256SUMS.txt.
legends-jev v0.2.5
Release legends-jev v0.2.5: outlined r1 Legends Font architecture, plain-english workflow, and comparison SVG cards, expanded 280..1568 px in-process normalization and original-image pixel_box coordinate documentation, and evergreen collapsible reference documentation.
legends-jev v0.2.4
v0.2.4 - 2026-11-10
- Image Decompression & Pixel Ceiling Hardening (
legends_jev/core.py,legends_jev/provider.py): Enforced a 50 MiB file size cap, 64-megapixel (64,000,000pixel) and16,384 pxdimension limits inparse_image_header(), boundedzlib.decompressobj().decompress(raw, max_length)in_decode_simple_png_rgb(), and PillowImage.MAX_IMAGE_PIXELS+ post-openwidth * heightchecks in_normalize_image_for_vision()with cleanDecompressionBombError/OSErrorhandling. - Credential Redaction & Transport Hardening (
legends_jev/provider.py): Added control-character validation onTYPESAFE_API_KEY, caughthttp.client.InvalidHeader/HTTPExceptionwithout echoing header values, and enforced_NoRedirectHandlerwithProxyHandler({})and TLS 1.2+ on authenticated API calls. - Ancestor Symlink & Overwrite Guards (
legends_jev/cli.py,legends_jev/core.py): Added ancestor-chain symlink refusal (with macOS/var//tmp//etcsystem symlink exemptions),--overwriteprotection on--output, and control-character/delimiter sanitization inocr_request(). - Packaging & Release Gate (
pyproject.toml,README.md,docs/AGENT-RECIPE.md,scripts/check_release.py): Fixed documentation links, achieved 1:1 CLI flag parity indocs/AGENT-RECIPE.md, added explicitlicense-files, and upgradedscripts/check_release.pyto build and verify.whland.tar.gzdistributions.
legends-jev v0.2.3
Highlights
- Ecosystem Gold Standard & EDR Gate: Added
docs/AGENT-RECIPE.md,scripts/check_release.py,THIRD_PARTY_NOTICES.md,MANIFEST.in, andassets/manifest.jsonaligned with the CTO Legends public release standard. - Strict Explicit Credential Loading: Removed Windows DPAPI store lookups (
CryptUnprotectData) and PowerShell wrapper scripts; credentials are now resolved strictly fromTYPESAFE_API_KEYor an explicit--api-key-file <path>with symlink refusal across--input,--image,--output, and--api-key-file. - Documentation & Asset Hygiene: Sanitized
assets/banner.json, fixed the GitHub Actions workflow badge link, and documentedPillow>=10.0.0runtime image normalization inREADME.md.
legends-jev v0.2.2: native Pillow image normalization and zero-subprocess runtime
Highlights
- Pure-Python Image Normalization (
pyproject.toml,legends_jev/core.py): addedPillow>=10.0.0to packagedependenciesand removed the Windowspowershell -NoProfile -NonInteractive -Command "Add-Type -AssemblyName System.Drawing..."image-resizing subprocess fallback fromlegends_jev/core.py, eliminating child PowerShell process creation during JPEG/PNG normalization and leaving zerosubprocesscalls anywhere in thelegends_jevruntime package. - Direct Credential Readiness (
legends_jev/cli.py): addedcredential_presenttodoctorandreadinessJSON output so agents detect provisioned credentials directly in Python without invoking PowerShell wrapper scripts. - Verification: 25 automated unit tests (
tests/test_core.py, including native1920x1080JPEG normalization) and isolated wheel verification (scripts/check_wheel.py) pass across Python 3.11+.
legends-jev v0.2.1
legends-jev v0.2.1
- Raise minimum supported Python runtime to Python 3.11+ (
requires-python = ">=3.11"). - Harden GitHub Actions CI workflows with 40-character commit SHA action pins, explicit
contents: readpermissions, andpip>=26.2.2before package installation.
legends-jev v0.2.0
legends-jev v0.2.0
Highlights
- General-purpose optical recognition (
ocr/ocr_request): Typed structured text extraction,claims_evaluation, and0..1000normalized + original-imagepixel_boxbounding boxes across1..6local images (PNG,JPEG,WEBP,GIF). - Storefront signage & logo verification (
signage/signage_request): Structured visual comparison of a published Google Business Profile title against physical storefront signage, multi-vantage Street View captures (streetview,streetview_v1,streetview_v2), and logo badges, returningvisual_verdict,best_streetview,physical_sign_visible, and per-observationpixel_boxcoordinates. - Multimodal
decide: Optionalimages(--image label=path) support ondecidefor visual candidate action selection, with automatic aspect-preserving image normalization (280..1568 px) via Pillow when available. - Pure-Python Windows DPAPI credential resolution: Reads
TYPESAFE_API_KEYfrom process environment or~/.cto-legends/credentials/typesafe_api_key.dpapiviactypes.windll.crypt32.CryptUnprotectDatawithout spawning a PowerShell subprocess.
Verification
- Commit:
18b4b2867f226e175f10dc042b389f6c38602fb2 - Unit & schema validation suite:
25 / 25passed - Isolated wheel smoke check (
scripts/check_wheel.py): passed
legends-jev v0.1.0
legends-jev v0.1.0
An MIT-licensed decision adapter for TypeSafe Jev. It compares explicitly
supplied action candidates against small text observations and returns reviewed
suggestions or an operator fallback.
- Text-only Choice, Score and Noul helpers with strict response validation.
- Offline previews and deterministic freshness/eligibility guards.
- Explicit single-request API calls, sanitized errors and no automatic retries.
- Portable environment credentials and a Windows DPAPI pilot wrapper.
- Labeled synthetic comparison and packaged operator recipe.
This release does not capture screens, ground images, click controls or navigate
browsers. Operators validate results and use their existing action tools. The
hosted Jev service is separate from the open-source adapter. See the benchmark
report for observed performance and limits; no general speedup is claimed.