Commit Graph
217 Commits
Author SHA1 Message Date
Victor Kuznetsov a3f295d27c Add multimodal source-classify v8 runtime, 1:1 native tiles, and Hub card 2026-11-19 10:15:45 -08:00
Victor Kuznetsov 4b2265cfa7 Add ChunkySeal, YCrCb alpha unblending, 10-bit HDR, surround audio, multimodal CLI 2026-11-19 09:56:17 -08:00
Victor Kuznetsov c9da346094 Harden SynthID audio routing, stbl SEI parser, donor flow recovery, benchmark v2 2026-11-18 11:09:09 -08:00
Victor Kuznetsov 58797cef94 Harden Samsung, Yuanbao, and Gemini visible corner gates, deduplicate glyph detail NCC 2026-11-17 23:03:10 -08:00
Victor Kuznetsov 9ad6cbcb38 Add ElevenLabs/Cartesia/Resemble/Kling oracles, vendor audio auto-routing, perceptual audio metrics, MOV/M4V Wan 2026-11-17 20:16:50 -08:00
Victor Kuznetsov 1136a965bd Add split audio permissions, windowed quality gate, and streaming Wan windows 2026-11-17 13:10:53 -08:00
Victor Kuznetsov e105e09729 Fix audio verification scope, atomic multi-track mux, Wan budget guards, and docs 2026-11-16 22:19:55 -08:00
Victor Kuznetsov e34ed06afa Add multimodal source-classify v7 runtime, open-world synthetic detection, and card updates 2026-11-16 20:32:24 -08:00
Victor Kuznetsov 0510868510 Add audio removal, MLX text rewriter, Wan 2.1 video profiles, bump 0.63.0 2026-11-16 16:50:46 -08:00
Victor Kuznetsov c4f7900d06 Add Kling 4.0 marks, metadata parity, and Hub runner, release 0.62.1 2026-11-15 09:06:11 -08:00
Victor Kuznetsov 557d2c1ef6 Retire photo-classify stack, synthesize source-classify Hub config, update docs 2026-11-14 12:40:25 -08:00
Victor Kuznetsov a967d5aa5e Upgrade photo classifier to v6 Model 2, calibrate confidence, fix C2PA parameters 2026-11-14 10:49:16 -08:00
Victor Kuznetsov eedd491596 Upgrade source_classify to multi-provider-source-v6 2026-11-13 19:27:55 -08:00
Victor Kuznetsov 32ba61b309 Upgrade source_classify to multi-provider-source-v5 2026-11-12 21:01:38 -08:00
Victor Kuznetsov 9df5c2d9f9 Upgrade source_classify to 512-d multi-provider-source-v4 2026-11-12 09:48:09 -08:00
Victor Kuznetsov 99b13876af Add shared PyAV video decoding fallback, release 0.58.1 2026-11-11 10:23:18 -08:00
Victor Kuznetsov 73c4acb3fb Expose complete operation catalog across integrations, release 0.58.0 2026-11-11 07:28:42 -08:00
Victor Kuznetsov 1f9584ea45 Enable guarded fidelity by default in Qwen-2.1
Enable guarded fidelity by default in `qwen21-zimage` to preserve geometry and qualified flat text after the completed Qwen-2.1 and face stages. Accept each optional refinement only when source error and LPIPS improve, preserve protected face rectangles, and retain the completed baseline on optional-stage failure.

Expose caller-supplied qualified text geometry and a per-request fidelity switch through `InvisibleEngine`. The CLI does not run OCR. Keep the overall default `qwen-zimage` profile and auto routing and the Qwen Research License restrictions.

Validation covers the complete maintenance gate, mutation checks, real H100 processing, negative text-region qualification, native-size crop and edge review, and hash-bound provider checks. Retain the documented indeterminate Google Cyrillic-sign case; local fidelity acceptance is not watermark clearance.

Model-free routing tests exercise the factory and fallback policy without requiring optional GPU extras.
2026-11-10 17:52:44 -08:00
Victor Kuznetsov ebf7eb5f0d Bundle FFmpeg tools with video installations 2026-11-10 16:21:43 -08:00
Victor Kuznetsov 225f285ad6 Preserve reordered video frame ends across FFmpeg versions 2026-11-10 14:05:38 -08:00
Victor Kuznetsov 07aba3ecb2 Integrate experimental Seedance video removal and CapCut provenance handling 2026-11-10 11:25:10 -08:00
Victor Kuznetsov f42f173182 Add C2PA text, stego forensics, and token watermark removal 2026-11-10 10:21:33 -08:00
Victor Kuznetsov 46a92bd4db Tighten Gemini sparkle corner-geometry false-positive gate 2026-11-08 22:44:16 -08:00
Victor Kuznetsov bc199dd556 Extend non-SynthID image watermark routing, TrustMark P/Q/C removal, and benchmark adapters 2026-11-08 19:16:38 -08:00
Victor Kuznetsov 0f73534400 Release 0.54.0 with face tone correction 2026-11-04 18:23:41 -07:00
Victor Kuznetsov 34fe5ccfc6 Update source_classify v3 weights, Stage-1.5 hinge meta-router, and metrics 2026-10-30 09:50:18 -07:00
Victor Kuznetsov ce08f066f5 Add qwen21-zimage non-commercial invisible watermark removal pipeline 2026-10-29 20:12:00 -07:00
Victor Kuznetsov 9f1eb0f108 Expand C2PA and TC260 attribution, add single-line WorkBuddy mark, harden video gating 2026-10-28 11:15:30 -07:00
Victor Kuznetsov 2d0b148361 Unify 10-provider source-classify v3 model and harden real-image specificity 2026-10-26 22:34:35 -07:00
Victor Kuznetsov 6c3781a985 Add source restoration tools and record SynthID research
Preserve the frozen offline recipes and their synthetic regression tests.
Recognize wrapped provider errors and separate C2PA signature assertions
from time-dependent certificate validity in static fixture tests.
Isolate the visible-detector contract test from unrelated TrustMark weights.
2026-10-25 13:54:51 -07:00
Victor KuznetsovandClaude Opus 5.5 303aba6b8a Publish the invisible output only after a clean strip, and skip re-probing own encodes
The diffusion writer stripped its output in place and then raised on a
surviving marker, which left the AI-readable file at the output path. It now
writes to a staged sibling and publishes only when nothing survives, as
`visible`, `erase` and `remove_all` already do.

The package's own writers strip through the new
`metadata.strip_written_output`, which skips the readability probe:
`strip_and_verify` decoded every pixel of a file this run had just encoded,
doubling the cost of the strip. `strip_and_verify` keeps the probe for
user-supplied sources.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:29:43 -07:00
Victor Kuznetsov f6b7c366e8 Merge pull request #126 from wiltodelta/feat/watermark-library-followups
Fail closed on unreadable inputs, empty batches and failed strips
2026-10-19 12:32:39 -07:00
Victor KuznetsovandClaude Opus 5.5 7e167c3c76 Fail closed on unreadable inputs, empty batches and failed strips
The metadata scanners read raw bytes, so random bytes, an empty file or a
truncated PNG or MP4 printed the same "No AI metadata found" or "AI metadata
stripped" a real file gets, with exit 0. `metadata.unreadable_reason` is now
the one readability probe: `identify`, `metadata` and every `video` command
exit 1 on such input, and `batch` and `video batch` fail its row.
`strip_and_verify` refuses it before writing anything.

A `batch` or `video batch` directory with no supported file exits 2 and
creates no output directory. `visible` and `erase` strip and verify on a
staged sibling and publish nothing when a marker survives, as the library
`remove_visible` now does; the diffusion writer raises on a surviving
marker. An invisible engine that cannot start exits 1 without a traceback,
and the MCP server reports a child that could not start.

NotebookLM and Gemini slide-deck templates are recorded as not planned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 11:23:59 -07:00
Victor KuznetsovandClaude Opus 5.5 7e3563b879 Blank ISOBMFF provenance boxes in place so HEIF iloc offsets stay valid
strip_c2pa_boxes dropped a top-level C2PA uuid, AI-label XMP uuid or jumb
box. When that box precedes mdat, dropping it moves the coded data while
HEIF iloc and MP4 stco/co64 still hold the old absolute offsets, so a phone
HEIC laid out as ftyp, uuid (C2PA), mdat, meta came out undecodable.
Turn the box into a same-size free box with a zeroed payload instead, as
strip_isobmff_media_file already does for MP4/MOV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 11:08:39 -07:00
Victor KuznetsovandClaude Opus 5.5 19ae5d1b0a Strip app-export and Kling SEI provenance from MP4, refresh watermark docs
video metadata --remove now blanks app-export JSON in keyed and keyless
metadata items (Dreamina writes it twice), which it previously left in
place while exiting 1.

Kling writes an H.264 user_data_unregistered SEI message (a fixed UUID
plus "kling-ai") into the first video sample. get_ai_metadata reports
it as kling_sei, identify_video names Kling from it when no TC260 label
does, and the streaming stripper blanks every copy inside mdat during
its existing copy pass. Lengths stay, the SEI stays well-formed, and
ffmpeg framemd5 hashes of every frame match before and after on both
tracked Kling fixtures. Across 255 local files only the seven Kling
videos changed verdict.

invisible now exits 1 on an undecodable source instead of reporting the
no-signal code for a file it never read.

Docs: a per-command "what each path leaves behind" table, the October
literature sweep, Suno's announced audio watermark, Anthropic's
SynthID-Text-based Claude watermark, and an independent TrustMark
false-positive benchmark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 12:30:01 -07:00
Victor Kuznetsov 2430689f96 Merge branch 'main' into fix/preserve-invisible-transparency 2026-10-16 12:36:43 -07:00
Victor KuznetsovandClaude Opus 5.5 cf695de57f Refresh the C2PA soft-binding snapshot and fix Ruff ICN001
The upstream registry gained be.immostory.videoseal.1 at revision d5960248,
so `sync_c2pa_soft_bindings.py --check` failed lint on main and on every pull
request. That step runs ahead of Ruff, which hid an ICN001 error in
scripts/_corpus_scan.py; import `date` directly, as the sibling scripts do.
Document the check's live-upstream behavior next to the refresh command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 12:15:03 -07:00
dukagjina a054185fa5 Preserve source transparency during invisible image processing 2026-10-16 02:04:54 -04:00
Victor Kuznetsov 8cb99b73b2 Fix SDXL offload placement on the current CUDA device 2026-10-08 16:17:11 -07:00
Giuseppe G. Di Chiara c45e6db3e4 Stream the sdxl-zimage global stack on cards below 12 GiB
The SDXL global stack (fp16 UNet, Canny ControlNet, both text encoders, VAE)
is ~8.8 GiB and was always moved to CUDA with .to(device), so it could not
fit an 8 GiB card and --cpu-offload never reached it. Under the Windows
display driver, WSL2 included, the overflow spilled into shared system
memory and the four-step pass ran for over ten minutes instead of failing.

Residency now follows the same rule as the Qwen stack: an explicit request
wins, otherwise the card's total VRAM decides against
RESIDENT_SDXL_GLOBAL_MIN_VRAM_GIB. Below it the Lightning LoRA is fused on
the CPU and the stack is streamed with enable_sequential_cpu_offload, the
fastest placement that completed on every run of an 8 GiB card with 16 GiB
of system RAM. sdxl-zimage joins GLOBAL_OFFLOAD_PROFILES, so the
--cpu-offload warning now fires for chroma-zimage only.
2026-10-08 23:27:55 +02:00
Victor Kuznetsov 898f8be789 Add AI disclosure layouts, tighten detection and provenance warnings 2026-10-04 11:03:37 -07:00
Victor Kuznetsov 01a2665181 Reconcile research follow-up status 2026-10-01 22:10:00 -07:00
Victor Kuznetsov 304bd071c0 Unify TC260 producers and strengthen provenance regression coverage
Share producer identities across mark routing, attribution, and pinned signers.
Preserve nested Honor TC260 fields and report unsupported RSA signatures.
Document the Google Photos checks and public sample search.

Use an SDK-signed synthetic carrier for negative EKU checks after the original
Microsoft certificates expired. Skip boundary regex scans when no C2PA
soft-binding identifier is present.
2026-10-01 11:30:32 -07:00
Victor Kuznetsov 2e26df1f21 Restore C2PA certificate validation and refresh compatible dependencies 2026-09-30 16:58:43 -07:00
Victor KuznetsovandClaude Opus 5.5 d800ec9455 Verify TC260 SecurityData label signatures against a pinned MiniMax key
MiniMax signs its TC260 label with SM3withSM2 per TC260-PG-202511A. A
verification-only SM3/SM2 (no dependency provides the SM2 curve) checks the
appendix A.1 label message; a signature under the pinned MiniMax key is a
high-confidence aigc_signature signal, a failing one is a caveat, and every
result is the aigc_signature metadata marker. Pinned by the GB/T 32905 SM3
vectors, OpenSSL's SM2 verify vectors and real MiniMax files. Over 411 local
files the only verdict-record change is the marker on nine MiniMax videos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:36:08 -07:00
Victor Kuznetsov 33f748b32a Record VACE and ROSE video inpainting results 2026-09-28 10:54:19 -07:00
Victor KuznetsovandClaude Opus 5.5 742a0dccab Align the remaining klein and color-restoration wording with the results
module-internals still called FLUX.2 klein pending; the sweep still counted
three inconclusive Gemini rows where only one was an explicit tool verdict,
and the removal page stated a Google chroma leak the data only warns of.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 21:24:59 -07:00
Victor KuznetsovandClaude Opus 5.5 f855c4700f Merge origin/main into docs/library-research-landscape
Main's claim_generator_platform and c2pa_vendor_platform now use the
branch's whole-word registry match, which replaces
claim_generator_word_platform. The branch's provenance veto covers every
video mark and made main's Veo-over-Sora override unreachable, so the
override is removed. Main's credential rule carries into the veto: an
invalid credential vetoes nothing. Provenance that confirms the mark's
own vendor also vetoes nothing. Over 78 local videos with a C2PA AI
claim, the only verdict changes against main are Kling/Hailuo false
positives on Veo and FLUX clips that the veto now removes. C2PA verdicts
over 1,379 files are unchanged against the pre-merge branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 23:52:29 -07:00
Victor KuznetsovandClaude Opus 5.5 5a0f771ed7 Close the remaining raw-byte identity scans and unify two rules
- A decoded manifest no longer takes its generator from a raw
  claim_generator CBOR value or a soft binding from raw bytes. Device tokens
  (NIKON, Pixel Camera, sony.sig) stay a byte scan, since the decoded strings
  do not carry them, but read the manifest store: an EXIF Make beside an
  unrelated AI manifest is not a verified capture. The source-kind scan keeps
  the whole buffer because it also reads IPTC digitalSourceType in XMP.
- The byte fallback's c2pa.ai-disclosure kind now uses the structured rule:
  human_validated beside prompt_guided is a generation, not an enhancement.
- Wan and Yuanbao share BottomRightAnchoredEngine instead of two copies of
  the corner gate. The Yuanbao anchor test shifted the mark outside the locate
  window, so it passed with or without the gate; it now shifts it inside.

Verdicts over 1,379 C2PA files, 468 fixture and capture files, and Wan and
Yuanbao detections over 285 images are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 22:19:30 -07:00
Victor KuznetsovandClaude Opus 5.5 509ce633a3 Judge decoded C2PA manifests on their decoded strings alone
Extend the whole-word rule to every identity lookup. Once the reader has
decoded a manifest, no identity is re-derived from its raw bytes: not the
signer, not a signer-platform token, not the AI-tool fallback for the
generator, and not the SynthID vendor inference, in identify and in
metadata.synthid_source alike. The byte scans read the manifest store only
when the reader could not open it.

Claim-generator tokens match as whole words through one shared
claim_generator_word_platform (suno no longer matches Sunoco), for images
and video alike.

The verdict now reads SynthID from the decoded C2PA info when the metadata
dict lacks it; three synthetic Google Photos tests had relied on the byte
fallback for that.

Verdicts over 1,379 C2PA files and 468 fixture and capture files are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 20:19:13 -07:00