Skip to content

legends-captions v0.2.0

Latest

Choose a tag to compare

@avalonreset avalonreset released this 04 Dec 05:12

legends-captions v0.2.0 (2026-12-03)

Native *.words.jsonl Handoff & FFmpeg libass Doctor

  • Added native line-delimited *.words.jsonl ledger ingestion (render-ass --input and normalize --input) for zero-friction handoffs from legends-youtube CrispASR Parakeet and NeMo Forced Aligner word ledgers, preserving bounded size limits, strict UTF-8 validation, line-numbered diagnostics, and deterministic word timing extraction.
  • Upgraded legends-captions doctor to probe ffmpeg and ffprobe paths and parsed versions, emit non-blocking advisories for older FFmpeg builds (< 6.0 or pre-2024 snapshots), and verify libass ass and subtitles filter availability directly via argv with bounded timeouts.
  • Added machine-readable routes.json (legends.routes/v1) and expanded docs/AGENT-RECIPE.md and README.md with cross-module *.words.jsonl handoff and FFmpeg libass guidance.

Cross-Platform Security & Determinism Hardening

  • Hardened external binary lookup (_resolve_external_binary) to block Windows CWD hijacking and .cmd/.bat/.vbs/.ps1 script shims while resolving legitimate package-manager symlinks and directory junctions across Homebrew, WinGet, Scoop, Nix, Linux usr-merge, and WindowsApps.
  • Hardened path traversal checks against symlinks and Windows NTFS junctions across Python 3.11-3.13, added atomic exclusive file writes (O_EXCL), collision-checked --output/--manifest-output (case-insensitive + hardlink), and strict UTF-8 stdio reconfiguration on Windows.
  • Added deterministic linear-time pre-parse MAX_JSON_DEPTH = 64 guard (O(N) worst case), OverflowError guards, and lone UTF-16 surrogate rejection across all JSON/JSONL loaders.

Verification

  • Hermetic test suite: 46/46 passed across Ubuntu and Windows on Python 3.11 and 3.13 (tests run 47271414850) plus Python 3.12 locally.
  • Attached deterministic legends-captions-0.2.0-bundle.tar.gz, legends_captions-0.2.0-py3-none-any.whl, legends_captions-0.2.0.tar.gz, and SHA256SUMS.txt.