Commit Graph
378 Commits
Author SHA1 Message Date
Victor Kuznetsov 69776756e4 Chain release distribution after PyPI publish, remove duplicate skill workflow 2026-11-13 11:17:45 -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 d2ed4d4d8c Use packaged FFmpeg in CI, refresh registry and encoding guards 2026-11-11 08:48:13 -08:00
Victor Kuznetsov 5640dc73a8 Refresh C2PA registry, isolate the ONNX routing test 2026-11-11 07:42:12 -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 2fbbc2ecd8 Fix Seedance study portability and FFmpeg test coverage 2026-11-10 13:23:42 -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 ffd5338f03 Fix broken PyPI README images and links with absolute GitHub URLs 2026-11-09 15:09:48 -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 3dbd98c971 Update source_classify v3 weights SHA-256, metrics, and C2PA soft bindings 2026-10-28 09:43:08 -07:00
Victor Kuznetsov 450f33f073 Pin source-classify v3 Hub revision and move classifier training scripts to private repo 2026-10-26 23:00:43 -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 Kuznetsov 76462f9916 Drive login-free web oracles through Playwright with a fresh proxy session
Gemini stays on the existing Chrome account. SynthID Detector starts as an
anonymous Playwright page and continues in that Chrome only when the page
asks for sign-in. Each ThorData run picks a new Europe or US session.
2026-10-18 17:44:21 -07:00
Victor KuznetsovandClaude Opus 5.5 521831b972 Scope out plan-removable branding and LLM text watermarks
A visible mark is in scope when its vendor describes it as identifying
AI-generated content, whichever plan turns it off: the Gemini sparkle,
or the visible watermark Gemini Notebook (formerly NotebookLM) adds to
generated images and videos. Product branding that a paid plan of the
same product removes, such as "Made with Gamma", is out of scope.

Watermarks in LLM-generated text are out of scope: the Claude and
OpenAI marks live in word choice with no hidden characters, only a
substantial rewrite removes them, and their detectors are not public.

The skill states both boundaries, including the vendor-declared
exception so the Gemini sparkle is never refused, and moves to 1.0.13.
The Codex plugin version is now pinned to the Claude plugin's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 22:33:51 -07:00
Victor KuznetsovandClaude Opus 5.5 f0b2c2406e Publish to the MCP registry from CI with GitHub OIDC
publish-mcp-registry.yml lists server.json in the official MCP registry
on every published release, and on dispatch for a version already on
PyPI. GitHub OIDC proves the io.github.wiltodelta namespace, so no login
or stored secret is involved. It skips a version the registry already
lists, checks out only server.json at the release tag, requires both of
its versions to equal the release, waits for PyPI to serve it, runs a
pinned, checksum-verified mcp-publisher, and reads the entry back.

Tests run the lookup and manifest steps against stubbed replies; every
targeted mutation fails them. docs/development.md records a stale
worktree venv that mixes OpenCV 4.x and 5.x into one cv2 package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 20:14:55 -07:00
Victor KuznetsovandClaude Opus 5.5 a4eb16ad77 Build the expected MCP output path with the platform separator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 14:27:35 -07:00
Victor KuznetsovandClaude Opus 5.5 06c0cb1bbe Add Codex plugin manifest, stdlib MCP server, SHA-pinned Actions
- .codex-plugin/plugin.json and assets/icon.svg package the existing skill
  tree for Codex plugin catalogs; skill version 1.0.12 across all manifests
- `remove-ai-watermarks mcp` serves identify, remove and batch over stdio,
  one CLI command per tool call, standard library only; server.json and
  glama.json for the MCP registry and Glama
- Pin every GitHub Action to a commit SHA
- Call module.train(False) instead of module.eval(), which plugin scanners
  read as dynamic code execution

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 14:13:04 -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 21f4621eb7 Add SynthID Detector surface, drop extra web confirmation 2026-10-17 11:47:53 -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 KuznetsovandClaude Opus 5.5 10c7775990 Hide maintainer skills from public skill discovery
The skills CLI discovers every SKILL.md under .claude/skills, so
provider-oracles and signal-discovery were offered by `npx skills add`
and listed on skills.sh beside the published skill. Mark both
metadata.internal, the CLI's documented hide flag, and fail the suite
on any project skill that lacks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 20:04:18 -07:00
Victor Kuznetsov 898f8be789 Add AI disclosure layouts, tighten detection and provenance warnings 2026-10-04 11:03:37 -07:00
Victor KuznetsovandClaude Opus 5.5 72752feb33 Scan uv.lock in CI and add a security policy
Add a CI job running the maintain.sh uv-secure scan, pinned to the gate by
a parity test, and a SECURITY.md with private reporting and dependency
remediation. Refresh the security-gate block record for accelerate 1.15.0.

Closes #114

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 10:33:50 -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 21661bea35 Reproduce re-watermarking and verify SynthID coexistence 2026-09-29 13:50:52 -07:00
Victor Kuznetsov 5cb4f2f808 Add Perth and PixelSeal benchmark oracles 2026-09-28 11:14:28 -07:00
Victor KuznetsovandClaude Opus 5.5 e310a22bd8 Compare capture paths in POSIX form on every platform
The manifest stores forward-slash paths, and str() of a Windows path uses
backslashes, so the index test failed on both Windows CI jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 10:11:54 -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