Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: narrow SynthID-defeat backlog entry to history-only, gate on 128GB hardware

[._.]/ Adam Eivy687c509cba0c
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index f2ac08317f..e474290c16 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -50,6 +50,8 @@
## Changed
+- **SynthID-defeat backlog entry refined.** PLAN.md `Future Ideas` entry for the generative regen path narrowed: post-hoc / history-only (second button on the image-settings/lightbox modal, never wired into the active gen flow or as a per-render checkbox), `short-step` framing added next to the existing denoise-strength range, and explicitly hardware-gated on the user's incoming 128GB unified-memory machine. Also documents the 2026-05-20 detection-tool result (`C2PA removed, SynthID detected` on a cleaned codex render) and the heatmap-vs-template distinction — OpenAI's verifier renders the one-way correlation map `∫ image · template`, not the watermark template itself, which rules out deterministic image-processing approaches (heatmap subtraction, secondary-watermark overlay, frequency-band cancellation). Future-me doesn't have to relitigate why median/sharpen can't defeat SynthID.
+
- **Image Cleaner copy: honest about SynthID.** The lightbox Clean tooltip, both auto-clean settings descriptions (Settings → Image Gen, and per-render Image Gen form checkbox), the `/devtools/image-clean` page subtitle, the success toast, the file-header comment in `server/lib/imageClean.js`, and the palette nav-manifest keywords (dropped `watermark`) now all explicitly say the cleaner removes the C2PA metadata chunk (verified: confirmed by openai.com/synthid showing "Content Credentials not detected" after a clean of a gpt-image render) but does NOT defeat SynthID. SynthID is embedded in pixel values and Google's published claims state it survives median+sharpen+re-encode by design; gpt-image / Imagen / Gemini renders stay detectable by their vendor watermark checkers after a clean. The prior copy ("strips C2PA provenance + reduces AI artifacts") was technically accurate per-step but implicitly framed the cleaner as a provenance-stripper, which over-promised against SynthID-bearing output. Devtools page also adds a yellow-tagged Note paragraph linking to openai.com/synthid.
- **`isPlainObject` promoted to a named export of `server/lib/objects.js`.** The `(v && typeof v === 'object' && !Array.isArray(v))` check was previously inlined at 16 sites across `server/lib/`, `server/services/`, and `server/routes/`. The helper is now a named export of `objects.js` (surfaces through the `server/lib/index.js` barrel automatically) and all 16 sites import it. Pure refactor — no behavioral changes; the helper retains the "non-null, non-array `object`" semantics that match every existing call site (Date / Map / class instances still return true).
diff --git a/PLAN.md b/PLAN.md
index e6697068b9..15eec91022 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -165,4 +165,4 @@ Items here need a research / design pass, an explicit decision, or a preconditio
- **Inline Code Review Annotations** — one-click fix from self-improvement findings.
- **Major Dependency Upgrades** — React 19, Zod 4, PM2 6, Vite 8.
- **Workflow tab Phase 2** — drag-and-drop ordering of stages, custom user-defined stages, per-app workflow overrides.
-- **Generative regen path for SynthID defeat (image cleaner).** Current `cleanImageBuffer` (`server/lib/imageClean.js`) only strips the C2PA `caBX` chunk + runs `median(3).sharpen()` — SynthID survives by design (verified: post-clean codex output still detected by openai.com/synthid). A real SynthID defeater needs to round-trip pixels through a generative model: img2img on a local FLUX runner at moderate denoise strength (~0.35–0.5) so the composition holds but the per-pixel watermark signal is overwritten by the new sampling. New "Defeat watermark (slow, alters image)" option exposed in the lightbox + Settings → Image Gen + per-render Image Gen checkbox, gated on local mode being configured (or fallback to a cloud img2img provider, which costs money). Sidecar records `regenerated: true, regenStrength: 0.4, regenModelId: 'flux-v1'` so the lineage is honest. Probably wants its own queue lane since each run is ~5–15s on local mflux. UX caveat: this is the only honest watermark-defeat path; the existing C2PA-strip-and-denoise will always be a no-op against SynthID and should never be relabeled as a watermark stripper.
+- **Generative regen path for SynthID defeat (image cleaner) — research/backlog, hardware-gated.** Current `cleanImageBuffer` (`server/lib/imageClean.js`) only strips the C2PA `caBX` chunk + runs `median(3).sharpen()` — SynthID survives by design (verified 2026-05-20 against codex output: post-clean image reads as `C2PA removed, SynthID detected` on openai.com/synthid). The detector heatmap that OpenAI's verifier renders is a one-way correlation map `∫ image · template`, not the watermark template itself — so deterministic image-processing approaches (subtracting the heatmap, overlaying a second "PortOS SynthID," frequency-band cancellation) can't work without the secret key. The only honest defeat path is to round-trip pixels through a generative model: short-step img2img (low step count + low–moderate denoise, ~0.35–0.5) on a local FLUX runner so composition holds but the per-pixel watermark signal is overwritten by fresh sampling. **Scope narrowed (2026-05-20):** post-hoc, history-only. Surface as a second button next to "Clean (aggressive)" on the image-settings/lightbox modal — never auto-applied, never wired into the active gen flow, no per-render checkbox. Each run is ~5–15s on local mflux and GPU/unified-memory heavy; wants its own queue lane. Sidecar records `regenerated: true, regenSteps: N, regenStrength: 0.4, regenModelId: 'flux-v1'` so lineage stays honest. **Hardware-gated** — defer until the 128GB unified-memory machine arrives; current dev hardware can't comfortably host the local diffusion runner alongside the rest of PortOS. Pull in only after that hardware is online and the user wants to play with it. UX caveat: this is the only honest watermark-defeat path; the existing C2PA-strip-and-denoise will always be a no-op against SynthID and should never be relabeled as a watermark stripper.