From 588c652a2f7bf290459d44327941663ac84ff5c6 Mon Sep 17 00:00:00 2001 From: JSLMPR Date: Wed, 22 Jul 2026 09:38:47 +0200 Subject: [PATCH] Add opt-in localpoc profile for the local highlight PoC Activated with --spring.profiles.active=localpoc. Points only at pre-provisioned local model paths (Piper voice, MusicGen, AudioLDM2), disables bootstrap auto-start, uses heuristic visual analysis, isolates PoC input/output dirs, and keeps render disabled + director approval required. Base/production defaults are untouched. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Bg76sLc43Wc3j5ZcLkboYR --- src/main/resources/application-localpoc.yml | 68 +++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 src/main/resources/application-localpoc.yml diff --git a/src/main/resources/application-localpoc.yml b/src/main/resources/application-localpoc.yml new file mode 100644 index 0000000..428d185 --- /dev/null +++ b/src/main/resources/application-localpoc.yml @@ -0,0 +1,68 @@ +# Opt-in profile for the LOCAL cinematic-highlight Proof of Concept. +# Activate with: --spring.profiles.active=localpoc (or SPRING_PROFILES_ACTIVE=localpoc) +# +# This profile does NOT change base/production defaults. It points only at concrete, pre-provisioned +# local model paths, keeps render disabled + approval required, isolates PoC input/output, and never +# starts a network-capable bootstrap script. +# +# Prohibitions still in force: no rendering without an explicit approved.flag for the specific project, +# no external AI, no placeholder audio. Models load offline from models/ (the worker sets HF_HUB_OFFLINE). + +video-clipping: + # Keep the other schedulers out of the PoC run. + folder-scheduler: + enabled: false + + editing: + enabled: true + + # Isolated PoC output tree (base output/ is left untouched). + highlight-project-directory: ./output/localpoc/highlight-projects + + assets: + # Empty/absent asset folders -> the pipeline generates assets with local models instead of copying. + music-folder: ./input/localpoc/assets/music + sfx-folder: ./input/localpoc/assets/sfx + fonts-folder: ./input/localpoc/assets/fonts + luts-folder: ./input/localpoc/assets/luts + voiceover-folder: ./output/localpoc/highlight-projects/_voiceover-cache + + # Heuristic visual analysis for the first PoC (real CV worker requires the prohibited bootstrap + # script; wiring resident CV is a Phase 3 quality improvement). No network, no fallback ambiguity. + visual-analysis: + provider: heuristic + fallback-to-heuristic: false + local-cv-worker: + auto-start: false + + # The other (multi-clip) local director scheduler is not part of the highlight PoC. + local-director: + enabled: false + + # Local generative audio models — concrete pre-provisioned paths. Never auto-start the bootstrap. + local-asset-worker: + auto-start: false + strict-runtime: false + python-binary: ./.venv-local-asset/bin/python + script: ./tools/local_asset_worker.py + piper-binary: ./.venv-local-asset/bin/piper + piper-model-path: ./models/piper/en_US-lessac-medium/en_US-lessac-medium.onnx + music-model: ./models/musicgen-small/config.json + sfx-model: ./models/audioldm2/model_index.json + + # Single-source highlight flow: ingest + candidate generation ON, render OFF, approval REQUIRED. + highlight-scheduler: + enabled: true + source-directory: ./input/localpoc/highlights/source + working-directory: ./input/localpoc/highlights/working + processed-directory: ./input/localpoc/highlights/processed + rejected-directory: ./input/localpoc/highlights/rejected + render-enabled: false + require-director-approval: true + max-highlights-per-source: 3 + highlight-min-duration-seconds: 8 + highlight-max-duration-seconds: 35 + +logging: + level: + org.example.videoclips: INFO