CCIP automation + reference quality (auto-enqueue, auto-apply, contamination fix, cache) #152

Merged
bvandeusen merged 1 commits from dev into main 2026-06-29 22:29:30 -04:00
Owner

Automation — keep identity flowing hands-free

  • Hourly auto-enqueue of CCIP backfill: new images embed (and errored ones retry) without the button.
  • Daily CCIP auto-apply (ON by default, opt-out): confident matches (≥0.92) auto-tag source='ccip_auto', reversible; switch + threshold in the GPU agent card; auto_applied count in /api/ccip/overview. Migration 0064.

Reference quality (the over-fire root cause)

  • character_references now draws only from single-character images — on a multi-character image the tag is image-level, so both figures were polluting both characters' prototypes.
  • Cached on a cheap signature so it isn't reloaded per modal open.

Tests: multi-character image not used as reference; auto-apply tags a confident match. CI green (1012 tests + migration).

NOT in scope (confirmed unbuilt, next phase): comic-panel cropping + SigLIP concept crops.

🤖 Generated with Claude Code

## Automation — keep identity flowing hands-free - **Hourly auto-enqueue** of CCIP backfill: new images embed (and errored ones retry) without the button. - **Daily CCIP auto-apply** (ON by default, opt-out): confident matches (≥0.92) auto-tag `source='ccip_auto'`, reversible; switch + threshold in the GPU agent card; `auto_applied` count in `/api/ccip/overview`. Migration 0064. ## Reference quality (the over-fire root cause) - `character_references` now draws **only from single-character images** — on a multi-character image the tag is image-level, so both figures were polluting both characters' prototypes. - Cached on a cheap signature so it isn't reloaded per modal open. Tests: multi-character image not used as reference; auto-apply tags a confident match. CI green (1012 tests + migration). NOT in scope (confirmed unbuilt, next phase): comic-panel cropping + SigLIP concept crops. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 1 commit 2026-06-29 22:29:25 -04:00
feat(ccip): automation + reference quality — keep identity flowing hands-free (#114)
CI / lint (push) Successful in 2s
CI / frontend-build (push) Successful in 19s
CI / backend-lint-and-test (push) Successful in 26s
CI / integration (push) Successful in 3m32s
b91a230f12
Works through the optional CCIP ideas + the "keep moving even if I forget" ask:

AUTOMATION (no button needed):
- Hourly beat auto-enqueues CCIP backfill — new images get embedded (and errored
  ones retried) on their own; the queue never goes idle waiting for a click.
- CCIP auto-apply: a daily sweep tags confident matches (source='ccip_auto') so
  identity tags keep flowing. ON by default (opt-out, like head auto-apply);
  ml_settings.ccip_auto_apply_enabled + _threshold (0.92, above the suggest cut),
  migration 0064. Vectorized (one matmul + reduceat per image), reversible, skips
  already-applied/rejected. Switch + threshold in the GPU agent card; GET/PATCH
  /api/ml/settings; auto_applied count in /api/ccip/overview.

REFERENCE QUALITY (the over-fire root cause):
- character_references now draws ONLY from single-character images — on a
  multi-character image the tag is image-level, so every figure would otherwise
  pollute each character's prototypes (a 2-char image tagged 'Velma' made
  Daphne's figure a Velma reference). This is the contamination behind residual
  over-firing.
- Cached on a cheap signature (char-tag count + ccip-region count/max-id) so the
  reference load isn't redone on every modal open.

Tests: multi-character image not used as a reference; auto-apply tags a confident
match as ccip_auto.

NEXT (not done, confirmed): comic-panel cropping + SigLIP concept crops ("spot
interesting content").

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ttrj5P7upUTueSfoJcxEqa
bvandeusen merged commit 9df874e396 into main 2026-06-29 22:29:30 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledCurator#152