{"job_id":"anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd","request_id":"bulk-2026-05-21T06-14-14-458Z-5-a3-physics.09.laws-of-motion.action-reaction-pairs","status":"complete","asset":{"primary_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd/walkthrough.mp4","thumbnail_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd/thumb.jpg","transcript_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd/transcript.vtt","interactive_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd/index.html","scenefile_url":"https://storage.googleapis.com/pupiltree-animation-assets/anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd/scene-source.json","duration_seconds":15,"byte_size":469815,"renderer":"html_three_js_local","parameters":{"style":"auto","executor":"native_render_executor","localPath":"/app/storage/assets/anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd","interactivity":"none","renderer_style":"three_js","durationSeconds":15,"render_manifest":{"jobId":"anim-job-5ce60b2c-2be3-4d76-8094-67fb1cdaaddd","request":{"gap":{"topic":"laws_of_motion-action_reaction_pairs","severity":"moderate","error_type":"concept_misunderstanding","memory_state":"fragile","display_topic":"Action-Reaction Pairs","common_wrong_answer":"The concept works the same way in all conditions.","confidence_at_error":"high","correct_understanding":"The concept depends on constraints, assumptions, and variable relationships."},"target":{"style":"auto","render":{"fps":30,"format":"mp4","resolution":"1920x1080","include_thumbnail":true,"include_transcript":true},"audience":{"tone":"neutral_instructional","grade":"9","language":"en"},"interactivity":"none","duration_seconds":15},"context":{"chapter":{"name":"Laws of Motion","ncert_class":9},"sub_topics":[{"topic":"laws_of_motion-action_reaction_pairs","key_concepts":["Action-Reaction Pairs","Laws of Motion"]}]},"metadata":{"priority":"normal","trace_id":"bulk-run-2026-05-21T06-14-14-458Z"},"exam_type":"neet","asset_type":"simulation","request_id":"bulk-2026-05-21T06-14-14-458Z-5-a3-physics.09.laws-of-motion.action-reaction-pairs","subject_area":"physics"},"renderer":"html_three_js_local","storyboard":{"beats":[{"label":"Topic","visual":"Show the topic title and the key physical context.","narration":"Action-Reaction Pairs"},{"label":"Mistake","visual":"Show the wrong approach and why it seems plausible.","narration":"The concept works the same way in all conditions."},{"label":"Correction","visual":"Show the right approach step by step.","narration":"The concept depends on constraints, assumptions, and variable relationships."},{"label":"Concept","visual":"Highlight the key formula and the governing relationship.","narration":"Action-Reaction Pairs. Laws of Motion"}],"title":"Action-Reaction Pairs","sceneCode":"<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\"/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n  <title>Action-Reaction Pairs: Context Matters</title>\n  <style>\n    :root{--bg:#101417;--panel:#1c232e;--line:#3b4a55;--accent:#e0b15b;--text:#f3f7fa;--muted:#a8b4bf;--blue:#4ea8ff;--green:#8decb0;--red:#df8279;}\n    *{box-sizing:border-box;}\n    body{margin:0;font-family:\"Plus Jakarta Sans\",\"Manrope\",\"Inter\",ui-sans-serif,system-ui,sans-serif;background:radial-gradient(120% 90% at 20% -5%,#2a3944 0%,var(--bg) 58%);color:var(--text);}\n    main{min-height:100vh;display:grid;grid-template-columns:minmax(300px,380px) 1fr;}\n    aside{border-right:1px solid var(--line);background:linear-gradient(180deg,rgba(28,35,46,.86),rgba(14,18,26,.94));padding:24px;overflow:auto;backdrop-filter:blur(6px);}\n    section{padding:24px;display:grid;place-items:center;}\n    h1{margin:0 0 10px;font-size:1.65rem;line-height:1.15;}\n    .sub{margin:0 0 16px;color:var(--muted);}\n    .formula{margin:0 0 14px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#162029;color:var(--accent);font-family:ui-monospace,monospace;font-size:0.9rem;box-shadow:inset 0 0 28px rgba(224,177,91,.14);}\n    .control{display:grid;gap:6px;margin:12px 0;}\n    .control input{width:100%;accent-color:var(--accent);}\n    ul{margin:14px 0 0 18px;padding:0;color:var(--muted);display:grid;gap:6px;}\n    .stage{width:min(1020px,95%);aspect-ratio:16/9;border:1px solid #4b6170;border-radius:14px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 38%,#3f6272,#141b22 72%);box-shadow:0 18px 60px rgba(0,0,0,.42), inset 0 0 90px rgba(255,255,255,.05);}\n    .stage::before{content:\"\";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 34%);pointer-events:none;}\n    .legend{position:absolute;right:12px;top:12px;padding:8px 10px;border-radius:10px;border:1px solid #465a64;background:rgba(9,14,18,.58);font-size:0.8rem;color:var(--muted);backdrop-filter:blur(4px);}\n    @media(max-width:900px){main{grid-template-columns:1fr;}aside{border-right:0;border-bottom:1px solid var(--line);}}\n  </style>\n</head>\n<body>\n<main>\n  <aside>\n    <h1>Action–Reaction Pairs</h1>\n    <p class=\"sub\">Why forces depend on constraints</p>\n    <p class=\"formula\">F_A = −F_B (in all frames)</p>\n    <label class=\"control\"><span>Mass Ratio (m₂/m₁): <strong id=\"v-mass\">1</strong></span><input id=\"c-mass\" type=\"range\" min=\"0.5\" max=\"4\" step=\"0.5\" value=\"1\"/></label>\n    <label class=\"control\"><span>Applied Force: <strong id=\"v-force\">50</strong> N</span><input id=\"c-force\" type=\"range\" min=\"20\" max=\"100\" step=\"10\" value=\"50\"/></label>\n    <label class=\"control\"><span>Surface Friction: <strong id=\"v-friction\">0</strong> (0=smooth)</span><input id=\"c-friction\" type=\"range\" min=\"0\" max=\"0.8\" step=\"0.2\" value=\"0\"/></label>\n    <ul>\n      <li><strong>Misconception:</strong> Action–reaction pairs always produce equal accelerations.</li>\n      <li><strong>Truth:</strong> Forces are equal, but accelerations depend on mass &amp; constraints (friction, support).</li>\n      <li><strong>Key:</strong> Same pair, different outcomes because of environment.</li>\n    </ul>\n  </aside>\n  <section>\n    <div class=\"stage\" id=\"stage\">\n      <div class=\"legend\" id=\"legend\">Ready</div>\n      <canvas id=\"sim-cv\" style=\"position:absolute;inset:0;width:100%;height:100%;\"></canvas>\n    </div>\n  </section>\n</main>\n<script>\nconst controls=[{\"key\":\"mass\",\"label\":\"Mass Ratio\",\"min\":0.5,\"max\":4,\"step\":0.5,\"value\":1,\"units\":\"\"},{\"key\":\"force\",\"label\":\"Applied Force\",\"min\":20,\"max\":100,\"step\":10,\"value\":50,\"units\":\"N\"},{\"key\":\"friction\",\"label\":\"Surface Friction\",\"min\":0,\"max\":0.8,\"step\":0.2,\"value\":0,\"units\":\"\"}];\nfor(const c of controls){\n  const inp=document.getElementById('c-'+c.key);\n  const out=document.getElementById('v-'+c.key);\n  inp?.addEventListener('input',()=>{out.textContent=inp.value;window.updateModel?.();});\n}\n(function(){\n  const cv=document.getElementById('sim-cv');\n  const ctx=cv.getContext('2d');\n  function resize(){const r=cv.getBoundingClientRect();if(r.width>0){cv.width=r.width;cv.height=r.height;}}\n  resize();new ResizeObserver(resize).observe(cv);\n  let lastTs=0;\n  \n  // State variables\n  let obj1Pos=0,obj1Vel=0;\n  let obj2Pos=0,obj2Vel=0;\n  let time=0;\n  let cycleTime=0;\n  \n  function glowDot(x,y,r,color,a){\n    const g=ctx.createRadialGradient(x,y,0,x,y,r*2.6);\n    g.addColorStop(0,color.replace('ALPHA',String(a)));\n    g.addColorStop(1,color.replace('ALPHA','0'));\n    ctx.fillStyle=g;ctx.beginPath();ctx.arc(x,y,r*2.6,0,Math.PI*2);ctx.fill();\n  }\n  \n  function arrow(x1,y1,x2,y2,color,width){\n    const dx=x2-x1,dy=y2-y1,l=Math.sqrt(dx*dx+dy*dy);\n    if(l<3)return;\n    const nx=dx/l,ny=dy/l,s=12;\n    ctx.strokeStyle=color;ctx.lineWidth=width||2;\n    ctx.beginPath();ctx.moveTo(x1,y1);ctx.lineTo(x2,y2);ctx.stroke();\n    ctx.fillStyle=color;ctx.beginPath();\n    ctx.moveTo(x2,y2);\n    ctx.lineTo(x2-s*nx+s*0.4*ny,y2-s*ny-s*0.4*nx);\n    ctx.lineTo(x2-s*nx-s*0.4*ny,y2-s*ny+s*0.4*nx);\n    ctx.fill();\n  }\n  \n  function tick(ts){\n    const dt=Math.min(0.04,(ts-lastTs)/1000);lastTs=ts;\n    const W=cv.width,H=cv.height;\n    \n    // Read slider values\n    const massRatio=parseFloat(document.getElementById('c-mass').value);\n    const appliedForce=parseFloat(document.getElementById('c-force').value);\n    const friction=parseFloat(document.getElementById('c-friction').value);\n    \n    // Physics: two blocks on a surface, pushing each other\n    // Object 1 (m=1): receives applied force, pushes on object 2\n    // Object 2 (m=massRatio): pushed by object 1\n    const m1=1;\n    const m2=massRatio;\n    \n    // Friction forces on each object\n    const f1Friction=friction*m1*9.8;\n    const f2Friction=friction*m2*9.8;\n    \n    // Contact force (action-reaction pair)\n    // System acceleration if they move together\n    const totalMass=m1+m2;\n    const netForce=appliedForce-f1Friction-f2Friction;\n    const commonAccel=netForce/totalMass;\n    \n    // Contact force that object 1 exerts on object 2\n    // F_contact = m2*(appliedForce - f1Friction)/totalMass\n    const contactForce=m2*Math.max(0,appliedForce-f1Friction)/totalMass;\n    \n    // Individual accelerations\n    const a1=(appliedForce-contactForce-f1Friction)/m1;\n    const a2=(contactForce-f2Friction)/m2;\n    \n    // Update velocities and positions\n    obj1Vel+=a1*dt;\n    obj2Vel+=a2*dt;\n    obj1Pos+=obj1Vel*dt;\n    obj2Pos+=obj2Vel*dt;\n    \n    // Reset every 8 seconds\n    time+=dt;\n    cycleTime+=dt;\n    if(cycleTime>8){\n      obj1Pos=0;obj1Vel=0;\n      obj2Pos=0;obj2Vel=0;\n      cycleTime=0;\n    }\n    \n    // Clear canvas\n    ctx.clearRect(0,0,W,H);\n    \n    // Draw ground/surface\n    const groundY=H*0.65;\n    ctx.fillStyle='rgba(255,255,255,0.08)';\n    ctx.fillRect(0,groundY,W,H-groundY);\n    ctx.strokeStyle='#465a64';\n    ctx.lineWidth=1;\n    ctx.beginPath();\n    ctx.moveTo(0,groundY);ctx.lineTo(W,groundY);\n    ctx.stroke();\n    \n    // Draw friction indicator (if present)\n    if(friction>0){\n      ctx.fillStyle='rgba(223,130,121,0.15)';\n      for(let i=0;i<W;i+=20){\n        ctx.fillRect(i,groundY-4,8,4);\n      }\n    }\n    \n    // Calculate screen positions for the two objects\n    const scale=W*0.15;\n    const x1Base=W*0.25+obj1Pos*scale;\n    const x2Base=W*0.65+obj2Pos*scale;\n    const boxH=H*0.12;\n    const boxW=H*0.10;\n    \n    // Draw object 1 (left, pushed)\n    ctx.fillStyle='#4ea8ff';\n    ctx.fillRect(x1Base-boxW/2,groundY-boxH,boxW,boxH);\n    ctx.strokeStyle='#7ec8ff';\n    ctx.lineWidth=1.5;\n    ctx.strokeRect(x1Base-boxW/2,groundY-boxH,boxW,boxH);\n    ctx.fillStyle='var(--text)';\n    ctx.font=Math.round(H*0.06)+'px sans-serif';\n    ctx.textAlign='center';\n    ctx.fillText('m₁',x1Base,groundY-boxH*0.3);\n    \n    // Draw object 2 (right, mass varies)\n    ctx.fillStyle='#df8279';\n    ctx.fillRect(x2Base-boxW*massRatio/2,groundY-boxH,boxW*massRatio,boxH);\n    ctx.strokeStyle='#ff9999';\n    ctx.lineWidth=1.5;\n    ctx.strokeRect(x2Base-boxW*massRatio/2,groundY-boxH,boxW*massRatio,boxH);\n    ctx.fillStyle='var(--text)';\n    ctx.font=Math.round(H*0.06)+'px sans-serif';\n    ctx.textAlign='center';\n    ctx.fillText('m₂',x2Base,groundY-boxH*0.3);\n    \n    // Draw applied force on object 1\n    const forceArrowLen=appliedForce*0.8;\n    arrow(x1Base-boxW/2-20,groundY-boxH*0.5,x1Base-boxW/2-20-forceArrowLen,groundY-boxH*0.5,'#e0b15b',3);\n    ctx.fillStyle='#e0b15b';\n    ctx.font=Math.round(H*0.05)+'px sans-serif';\n    ctx.textAlign='right';\n    ctx.fillText('F_app',x1Base-boxW/2-30,groundY-boxH*0.5-8);\n    \n    // Draw contact forces (action-reaction pair)\n    const contactLen=Math.abs(contactForce)*1.2;\n    if(contactForce>1){\n      // Force on object 1 (rightward, reaction)\n      arrow(x1Base+boxW/2+5,groundY-boxH*0.5,x1Base+boxW/2+5+contactLen,groundY-boxH*0.5,'#8decb0',2.5);\n      ctx.fillStyle='#8decb0';\n      ctx.font=Math.round(H*0.045)+'px sans-serif';\n      ctx.textAlign='left';\n      ctx.fillText('F_c',x1Base+boxW/2+10,groundY-boxH*0.5-8);\n      \n      // Force on object 2 (leftward, action)\n      arrow(x2Base-boxW*massRatio/2-5,groundY-boxH*0.5,x2Base-boxW*massRatio/2-5-contactLen,groundY-boxH*0.5,'#8decb0',2.5);\n      ctx.fillStyle='#8decb0';\n      ctx.font=Math.round(H*0.045)+'px sans-serif';\n      ctx.textAlign='right';\n      ctx.fillText('-F_c',x2Base-boxW*massRatio/2-10,groundY-boxH*0.5-8);\n      \n      // Glow effect at contact\n      glowDot((x1Base+boxW/2+x2Base-boxW*massRatio/2)*0.5,groundY-boxH*0.5,12,'rgba(141,236,176,ALPHA)',0.5);\n    }\n    \n    // Draw velocity vectors above objects\n    const velScale=H*0.08;\n    if(Math.abs(obj1Vel)>0.1){\n      arrow(x1Base,groundY-boxH-15,x1Base+obj1Vel*velScale,groundY-boxH-15,'#4ea8ff',2);\n      ctx.fillStyle='#4ea8ff';\n      ctx.font=Math.round(H*0.04)+'px sans-serif';\n      ctx.textAlign='center';\n      ctx.fillText('v₁',x1Base,groundY-boxH-30);\n    }\n    if(Math.abs(obj2Vel)>0.1){\n      arrow(x2Base,groundY-boxH-15,x2Base+obj2Vel*velScale,groundY-boxH-15","remediationGoal":"Close concept_misunderstanding for physics."},"rendererStyle":"three_js"}}},"metadata":{"rendered_at":"2026-05-21T06:24:47.675Z","cache_hit":false,"cost_usd":0},"error":{"code":"RENDER_TIMEOUT","message":"browserType.launch: Target page, context or browser has been closed\nBrowser logs:\n\n<launching> /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-edgeupdater --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderDocument,OptimizationHints,msForceBrowserSignIn,msEdgeUpdateLaunchServicesPreferredVersion --enable-features=CDPScreenshotNewSurface --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --edge-skip-compat-layer-relaunch --disable-infobars --disable-search-engine-choice-screen --disable-sync --enable-unsafe-swiftshader --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --disable-dev-shm-usage --user-data-dir=/tmp/playwright_chromiumdev_profile-MgR5ML --remote-debugging-pipe --no-startup-window\n<launched> pid=72\n[pid=72][err] /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell: error while loading shared libraries: libXfixes.so.3: cannot open shared object file: No such file or directory\nCall log:\n  - <launching> /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-edgeupdater --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderDocument,OptimizationHints,msForceBrowserSignIn,msEdgeUpdateLaunchServicesPreferredVersion --enable-features=CDPScreenshotNewSurface --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --edge-skip-compat-layer-relaunch --disable-infobars --disable-search-engine-choice-screen --disable-sync --enable-unsafe-swiftshader --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --no-sandbox --disable-dev-shm-usage --user-data-dir=/tmp/playwright_chromiumdev_profile-MgR5ML --remote-debugging-pipe --no-startup-window\n  - <launched> pid=72\n  - [pid=72][err] /ms-playwright/chromium_headless_shell-1223/chrome-headless-shell-linux64/chrome-headless-shell: error while loading shared libraries: libXfixes.so.3: cannot open shared object file: No such file or directory\n  - [pid=72] <gracefully close start>\n  - [pid=72] <kill>\n  - [pid=72] <will force kill>\n  - [pid=72] exception while trying to kill process: Error: kill ESRCH\n  - [pid=72] <process did exit: exitCode=127, signal=null>\n  - [pid=72] starting temporary directories cleanup\n  - [pid=72] finished temporary directories cleanup\n  - [pid=72] <gracefully close end>\n","retryable":true}}