OpenCut Studio — Agent Engineering Guardrails
-
Deterministic Frame Math Only:
- Inside
src/remotion-engine/, NEVER use CSS@keyframes,transition,requestAnimationFrame, orsetTimeout. - Always compute positions, scales, opacities, and 3D rotations from
const frame = useCurrentFrame()andconst { fps } = useVideoConfig()usinginterpolate()orspring().
- Inside
-
Hybrid Local Scratch + Google Drive Storage Discipline:
- Never store raw video
ArrayBufferblobs insidelocalStorageorIndexedDB. - Active editing reads directly from
localFsManager.ts(FileSystemDirectoryHandle). - Long-term persistence and cross-device sync use
googleDriveClient.ts(uploadType=resumablefor media, multipart JSON for StyleDNA and EditPlan).
- Never store raw video
-
Zero-Cost Offline Resilience:
- Every AI feature (
styleAnalyzer.ts,feedbackCompiler.ts) MUST include a deterministic fallback implementation so the user can test and use every feature even before entering an Ollama URL or Google AI Studio API key.
- Every AI feature (