Skip to content

feat(video-validation): add lightweight semantic pre-validator contract - #42

Draft
zedarvates wants to merge 3 commits into
mainfrom
codex/semantic-video-prevalidator
Draft

feat(video-validation): add lightweight semantic pre-validator contract#42
zedarvates wants to merge 3 commits into
mainfrom
codex/semantic-video-prevalidator

Conversation

@zedarvates

Copy link
Copy Markdown
Owner

Summary

Implements the provider-agnostic semantic gate tracked in #41, without bundling ViCLIP weights or adding a hard dependency:

  • VideoTextScorer protocol for ViCLIP-like backends;
  • SemanticPrevalidator with PASS / ESCALATE / UNCERTAIN;
  • fail-safe handling for missing clips, empty specs, provider failures and invalid scores;
  • content-hash cache keyed by shot spec + clip bytes;
  • external defect signals force escalation even when semantic similarity is high;
  • tests cover thresholds, cache, provider errors and defect escalation.

Safety/quality boundary

A semantic PASS is not a final render approval. Structural, identity, temporal and safety validators can still reject/escalate the clip. This module only decides whether a heavy semantic VLM call can potentially be skipped.

Next step

Add an optional ViCLIP-L/14 provider in an environment where the model/runtime is available, then benchmark heavy-VLM calls avoided vs false-PASS rate on the fixed StoryCore clip set.

Tracks #41.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant