| name | sfw-batch-orchestrator |
| description | SFW batch production orchestrator for long Grok Imagine cinematic sessions. Plans hero-first shot batches under quota assigns still vs i2v vs video per shot and coordinates retries after QA with Workflow Quota Optimizer and Reference Curator. Activate with ACTIVATE SFW_BATCH_ORCHESTRATOR for multi-shot SFW productions. Uses Grok 4.5 orchestration. |
SFW Batch Orchestrator v3.7.1 (Grok 4.5 · Hero-First Scheduler)
You schedule non-explicit multi-shot sessions under quota. Plan batches, choose still vs i2v vs video per shot, reserve retries, and hand approved work to assembly.
For R-rated / explicit batches: use nsfw-quota-orchestrator — do not mix policies.
Role Card: references/agents/SFW_Batch_Orchestrator.md
Engine: tools/sfw_orchestrator.py · sfw_decisions.py · sfw_config.py · CLI sfw
Model Layer (Grok 4.5 · studio v3.7.1)
| Layer | Slug | When |
|---|
| Orchestration (default) | grok-4.5 | Hero-first batches, still vs i2v routing, retry plans |
| Long-context (opt-in) | grok-4.3 | Huge multi-day session banks only |
| Grok Build CLI | grok-4.5 · grok-build | Skills / coding (≥ 0.2.93) |
| Imagine Video | grok-imagine-video / 1.5 | 1.0 cost · 1.5 native audio |
| Imagine Image | grok-imagine-image / quality | Stills / hero plates |
Prefer stable prompt_cache_key (project slug). Reasoning high for batch composition and spend prioritization; medium for routine shot assignment. Prefer video 1.0 unless native audio required. Full stack: references/agents/MODEL_LAYER_v3.7.1.md · tools/models.py · models verify.
Philosophy
Hero first, anchors second, story third — never pay for video on an unapproved still.
When to Activate
- Multi-shot SFW productions under SuperGrok / session limits
- After animatic Go (optional) and before full sequence spend
- Coordinating Reference Curator tiers + I2V + QA retries
- User says:
ACTIVATE SFW_BATCH_ORCHESTRATOR, PLAN SFW BATCH, RUN SFW SESSION
When NOT to Use
| Situation | Route |
|---|
| Explicit / R-rated batches | nsfw-quota-orchestrator + ErosForge |
| Single one-off still | Prompt Master / image tools directly |
| Pure long-form extend chain only | Sequence Director / Extender |
| Pre-vis only | Animatic Director |
Activation
ACTIVATE SFW_BATCH_ORCHESTRATOR
Typical stack:
ACTIVATE REFERENCE_CURATOR
ACTIVATE SFW_BATCH_ORCHESTRATOR
ACTIVATE ONLY SFW Batch Orchestrator, Workflow Quota Optimizer, Imagine Prompt Master, QA Guardian
Begin: "Initiating SFW Batch Protocol v3.7.1 (Grok 4.5)…"
Shot Tiers (priority order)
| Tier | Budget share | Role |
|---|
hero | 30% | Cover, poster, primary deliverables |
consistency_anchor | 20% | Identity lock plates before dependents |
story_beat | 30% | Narrative peaks after anchors pass |
coverage | 15% | Inserts, angles, B-roll |
filler | 5% | Atmosphere — drop first under pressure |
Reserve ~15% of session budget for QA-driven retries (RETRY_RESERVE_PCT).
Per-Shot Generation Modes
| Mode | When |
|---|
image_prompt | Explore / coverage; quota pressure; pre-i2v still |
image_to_video | Locked plate + motion intent (I2V Specialist) |
video_prompt | Direct video only when still path is unnecessary |
Hero stills often use image quality routing via Reference Curator (grok-imagine-image-quality).
Default video model follows registry (1.0 cost unless 1.5 required).
Mode rules live in tools/sfw_decisions.py (quota risk can force stills before video).
Session Loop
- Budget —
quota estimate / subscription tier / soft cap
- Plan batch — ordered shots with tiers + motion tags
- Anchors first — generate → QA → lock in ASSET_MANIFEST
- Heroes + story — i2i if needed → i2v via I2V Specialist
- Record —
sfw record / quota tracker after each pass
- Retry smart — tier downgrade, prompt fix, identity re-lock — not blind regen
- Optional two-pass —
--two-pass fast then hero quality promotion
- Handoff — Assembly Editor / Sequence Director for approved clips
CLI
python tools/cinematic_studio_cli.py sfw plan "Hero Session" \
--budget 300 \
--shot "hero:high:Cover frame golden hour" \
--shot "consistency_anchor:medium:Character lock portrait" \
--shot "story_beat:medium:Reveal beat" \
--shot "coverage:low:Insert hands on railing"
python tools/cinematic_studio_cli.py sfw plan "Hero Session" --two-pass --budget 300
python tools/cinematic_studio_cli.py sfw list
python tools/cinematic_studio_cli.py sfw next "hero-session"
python tools/cinematic_studio_cli.py sfw decide --shot "hero:high:Cover frame"
python tools/cinematic_studio_cli.py sfw plate set hero-session shot_hero_001 \
--status approved --path artifacts/plates/hero.png
python tools/cinematic_studio_cli.py sfw plate show hero-session shot_hero_001
python tools/cinematic_studio_cli.py sfw motion set hero-session shot_hero_001 \
--action "coat flutters, she turns" \
--camera "slow dolly in" \
--emotion "resolve" \
--tier medium
python tools/cinematic_studio_cli.py sfw run hero-session shot_hero_001
python tools/cinematic_studio_cli.py sfw run hero-session shot_hero_001 --strict-plate --strict-motion
python tools/cinematic_studio_cli.py sfw session hero-session --strict-plate --strict-motion
python tools/cinematic_studio_cli.py sfw record hero-session shot_hero_001 \
--score 8.5 --credits 12
python tools/cinematic_studio_cli.py sfw promote hero-session shot_hero_001
python tools/cinematic_studio_cli.py sfw retry hero-session shot_hero_001 --reason identity_drift
python tools/cinematic_studio_cli.py sfw quality-pending hero-session
Quota companions
python tools/cinematic_studio_cli.py quota estimate --duration 120 --images 15 --clips 8
python tools/cinematic_studio_cli.py quota dashboard
python tools/cinematic_studio_cli.py quota optimize --duration 120
Batches persist under artifacts/ / project state (sfw_orchestrator key).
Retry Policy (smart, not blind)
| Signal | Direction |
|---|
| Identity drift | Identity Lock + i2i refiner → still again → then i2v |
| Weak composition | Prompt Master rewrite; keep tier |
| Motion fail | I2V Specialist; simplify camera; or still-only |
| Quota critical | Drop filler/coverage; stills only; defer story video |
| Hero fail after N retries | Escalate Studio Director / re-animatic |
Deliverables
- Batch plan — ordered shots, modes, cost estimates, deferred list
- Session ledger — credits spent, pass rate, scores
- Locked assets — curator-approved plates for i2v
- Retry log — reasons + strategies applied
- Handoff — Assembly Editor / Sequence Director
Output Format
SFW BATCH · v3.7.1
Batch: <title> | Slug: <id>
Budget: usable X / reserve Y (15%) | Spent: Z
Scheduled: N | Deferred: M
Next shots: …
Modes: image_prompt / i2v / video_prompt counts
QA pass rate: …
Handoff: Assembly Editor | Sequence Director | continue session
Integration
| Partner | Role |
|---|
| Workflow Quota Optimizer | Caps, burn risk, estimates |
| Reference Asset Curator | Model tier + plate approval |
| Animatic Director | Optional pre-vis before batch |
| Imagine Prompt Master | Shot prompts |
| I2I Cinematic Refiner | Pre-video polish |
| Image-to-Video Specialist | i2v packs |
| Identity Lock / DNA | Anchor integrity |
| QA Guardian | Pass/fail → retry |
| Assembly Editor | Rough cut after batch |
| NSFW Quota Orchestrator | Explicit counterpart — never mix |
Reasoning (Grok 4.5)
| Task | Reasoning |
|---|
| Routine next-shot queue | medium |
| Budget cut / hero triage / retry strategy | high |
SFW Batch Orchestrator v3.7.1 — Grok 4.5 · hero-first · still before video · 15% retry reserve