Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- tasks/01-A-content-formats-gui-v4/README.mdAdded+8
- tasks/01-A-content-formats-gui-v4/environment/DockerfileAdded+41
- tasks/01-A-content-formats-gui-v4/environment/files.pyAdded+52
- tasks/01-A-content-formats-gui-v4/environment/install-dejavu-sans.shAdded+6
- tasks/01-A-content-formats-gui-v4/environment/install-gui.pyAdded+59
- tasks/01-A-content-formats-gui-v4/environment/start-editor.shAdded+14
- tasks/01-A-content-formats-gui-v4/instruction.mdAdded+20
- tasks/01-A-content-formats-gui-v4/task.tomlAdded+25
- tasks/01-A-content-formats-gui-v4/tests/DockerfileAdded+33
- tasks/01-A-content-formats-gui-v4/tests/access.jsonAdded+1
- tasks/01-A-content-formats-gui-v4/tests/deterministic_checks.pyAdded+101
- tasks/01-A-content-formats-gui-v4/tests/footage_backend.pyAdded+154
- tasks/01-A-content-formats-gui-v4/tests/gui_evidence.pyAdded+62
- tasks/01-A-content-formats-gui-v4/tests/install-dejavu-sans.shAdded+6
- tasks/01-A-content-formats-gui-v4/tests/media_helpers.pyAdded+77
- tasks/01-A-content-formats-gui-v4/tests/source-manifest.jsonAdded+104
- tasks/01-A-content-formats-gui-v4/tests/test.shAdded+6
- tasks/01-A-content-formats-gui-v4/tests/verifier-config.jsonAdded+5
- tasks/01-A-content-formats-gui-v4/tests/verifier_runtime.pyAdded+72
- tasks/01-A-content-formats-gui-v4/tests/verify.pyAdded+164
- tasks/golf-tracer-08/RUBRIC.mdAdded+46
- tasks/golf-tracer-08/environment/DockerfileAdded+7
- tasks/golf-tracer-08/instruction.mdAdded+11
- tasks/golf-tracer-08/task.tomlAdded+22
- tasks/golf-tracer-08/tests/calibration.jsonAdded+7
- tasks/golf-tracer-08/tests/reference/README.mdAdded+44
- tasks/golf-tracer-08/tests/reference/data.jsAdded
- tasks/golf-tracer-08/tests/reference/frames.csvAdded+188
- tasks/golf-tracer-08/tests/reference/svg_frames/000000.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000001.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000002.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000003.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000004.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000005.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000006.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000007.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000008.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000009.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000010.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000011.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000012.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000013.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000014.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000015.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000016.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000017.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000018.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000019.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000020.svgAdded
- tasks/golf-tracer-08/tests/reference/svg_frames/000021.svgAdded
12345678# 01-A-content-formats-gui-v4
Harbor schema 1.4, Filmcraft 0.7.2, gui access.Eight random-named sources; clean/sample exports in two orientations.Agent build context: environment/. Isolated verifier context: tests/.
[Setup and validation](../../reports/task01-content-formats-v4/README.md).Live and oracle checks pending; no runs launched.1234567891011121314151617181920212223242526272829303132333435363738394041FROM debian:bookworm-slim@sha256:3783cc01769c7b2b1b83a5c5ad96c815348e28ed7da68e2e3687004faa906251ENV DEBIAN_FRONTEND=noninteractiveARG TARGETARCHRUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg python3 python3-tk python3-numpy python3-pil ca-certificates \ xvfb xfce4-session xfwm4 xfce4-panel xfce4-settings xfdesktop4 thunar mousepad xterm \ x11vnc xdotool wmctrl imagemagick webp dbus-x11 zenity xdg-desktop-portal xdg-desktop-portal-gtk \ fonts-dejavu-core fonts-liberation fontconfig tesseract-ocr libgl1-mesa-dri libgl1 libglu1-mesa \ mesa-vulkan-drivers libvulkan1 libegl1 libx11-6 libx11-xcb1 libxcursor1 libxi6 \ libxrandr2 libxkbcommon0 libwayland-client0 libgtk-3-0 libsm6 libice6 \ libxrender1 libxext6 libxkbcommon-x11-0 libxcb-cursor0 libxcb-icccm4 \ libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 \ libxcb-xinput0 libpulse0 libasound2 libnss3 procps util-linux \ && rm -rf /var/lib/apt/lists/*COPY vendor/filmcraft-${TARGETARCH}.tar.gz /tmp/filmcraft.tar.gzRUN case "$TARGETARCH" in \ amd64) filmcraft_sha=4171c4bf5f57fd29475655f8a6df4719feda8c8f3ed95b2475d8dc112ad3be86 ;; \ arm64) filmcraft_sha=4af56f649a6fb19dcae386abd59921ec6c9190b725014517075fa4d81123c68a ;; \ *) exit 1 ;; esac \ && echo "${filmcraft_sha} /tmp/filmcraft.tar.gz" | sha256sum -c - \ && mkdir -p /opt/filmcraft \ && tar -xzf /tmp/filmcraft.tar.gz -C /opt/filmcraft --strip-components=1 \ && cp -a /opt/filmcraft/share/. /usr/local/share/ \ && ln -s /opt/filmcraft/bin/filmcraft-cli /usr/local/bin/filmcraft-cli \ && rm /tmp/filmcraft.tar.gzENV RAYON_NUM_THREADS=4 SDL_AUDIODRIVER=dummy LIBGL_ALWAYS_SOFTWARE=1 WGPU_BACKEND=vulkan LANG=C.UTF-8 DISPLAY=:1COPY desktop/ /root/Desktop/COPY start-editor.sh filmcraft-wrapper.sh /usr/local/bin/COPY filmcraft.desktop /root/Desktop/Filmcraft.desktopRUN mkdir -p /root/Desktop/output /logs/artifacts \ && chmod +x /usr/local/bin/start-editor.sh /usr/local/bin/filmcraft-wrapper.sh /root/Desktop/Filmcraft.desktop \ && ln -s /usr/local/bin/filmcraft-wrapper.sh /usr/local/bin/filmcraft \ && chmod -R a+rX /root/Desktop/videos /root/Desktop/memories /root/Desktop/archiveCOPY files.py /opt/gui-only/files.pyCOPY install-gui.py /opt/gui-only/install.pyRUN python3 /opt/gui-only/install.pyRUN printf "[Desktop Entry]\nType=Application\nName=Terminal\nExec=xterm\nTerminal=false\n" > /root/Desktop/Terminal.desktopCOPY install-dejavu-sans.sh /usr/local/bin/install-dejavu-sans.shRUN sh /usr/local/bin/install-dejavu-sans.shWORKDIR /rootCMD ["/usr/local/bin/start-editor.sh"]12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#!/usr/bin/python3"""GUI file browsing and fixed app launchers; no shell or executable-file launch."""import os,subprocess,sysfrom pathlib import Pathimport tkinter as tkfrom tkinter import ttk,messageboxAPPS={'FilmCraft':['/usr/local/bin/filmcraft','--graphics','software']}root=tk.Tk();root.title('Files');root.geometry('960x700')path=tk.StringVar(value='/root/Desktop');status=tk.StringVar()bar=ttk.Frame(root);bar.pack(fill='x')def launch(name,filename=None): args=APPS[name][:] if not Path(args[0]).exists():return if filename:args.append(str(filename)) subprocess.Popen(args,stdin=subprocess.DEVNULL,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,start_new_session=True)for name in APPS: if Path(APPS[name][0]).exists():ttk.Button(bar,text='Open '+name,command=lambda n=name:launch(n)).pack(side='left',padx=4,pady=6)nav=ttk.Frame(root);nav.pack(fill='x')def go(value):path.set(str(value));refresh()ttk.Button(nav,text='Up',command=lambda:go(Path(path.get()).parent)).pack(side='left')entry=ttk.Entry(nav,textvariable=path);entry.pack(side='left',fill='x',expand=True);entry.bind('<Return>',lambda _:refresh())ttk.Button(nav,text='Go',command=lambda:refresh()).pack(side='left')short=ttk.Frame(root);short.pack(fill='x')for name,value in [('Desktop','/root/Desktop'),('Home','/root'),('Output','/root/Desktop/output'),('Linux filesystem','/')]:ttk.Button(short,text=name,command=lambda v=value:go(v)).pack(side='left')view=ttk.Treeview(root,columns=('type','size'),show='tree headings');view.heading('#0',text='Name');view.heading('type',text='Type');view.heading('size',text='Size');view.pack(fill='both',expand=True)ttk.Label(root,textvariable=status).pack(fill='x')items={}def refresh(): p=Path(path.get()).expanduser() if not p.is_dir():messagebox.showerror('Files','Choose a folder path.');return path.set(str(p.resolve()));view.delete(*view.get_children());items.clear() try: for x in sorted(p.iterdir(),key=lambda x:(not x.is_dir(),x.name.lower())): try:typ='Folder' if x.is_dir() else 'File';size='' if x.is_dir() else str(x.stat().st_size)+' bytes' except OSError:typ='Unavailable';size='' i=view.insert('', 'end',text=x.name,values=(typ,size));items[i]=x status.set(str(len(items))+' items') except OSError as e:status.set(str(e))def open_selected(_=None): sel=view.selection() if not sel:return p=items[sel[0]] if p.is_dir():go(p);return suffix=p.suffix.lower() if suffix=='.fcproj':launch('FilmCraft',p);return if suffix in {'.mp4','.mov','.mkv','.avi','.webm','.mp3','.wav','.png','.jpg','.jpeg'}: name='FilmCraft';launch(name,p);return if suffix in {'.txt','.md','.csv','.json','.xml','.toml','.log'} and p.stat().st_size<1000000: w=tk.Toplevel(root);w.title(p.name);t=tk.Text(w,wrap='word');t.pack(fill='both',expand=True);t.insert('1.0',p.read_text(errors='replace'));t.configure(state='disabled');return messagebox.showinfo('Files','This file can be browsed but cannot be launched. Open media and projects in the editor using its file dialogs.')view.bind('<Double-1>',open_selected);view.bind('<Return>',open_selected)refresh();root.mainloop()123456#!/bin/shset -eutest -s /usr/share/fonts/truetype/dejavu/DejaVuSans.ttffc-cache -ffc-match 'DejaVu Sans' | head -1fc-scan --format '%{family}\n' /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf | head -11234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859"""Trusted environment setup. Run before exposing screenshots/actions to a model."""import jsonimport osfrom pathlib import Pathimport subprocessimport xml.etree.ElementTree as ET
# Restore navigation packages from trusted, offline Debian assets before guarding commands.if Path('/opt/gui-only/nonexistent-debs').exists(): subprocess.run(['dpkg','-i',*[str(p) for p in Path('/opt/gui-only/nonexistent-debs').glob('*.deb')]],check=True,stdout=subprocess.DEVNULL)
BLOCKED = 'xterm uxterm lxterm koi8rxterm x-terminal-emulator xfce4-terminal gnome-terminal gnome-terminal-server konsole mate-terminal lxterminal qterminal terminator tilix sakura rxvt urxvt zutty xfce4-appfinder xfrun4 exo-desktop-item-edit xfce4-settings-editor xfce4-settings-manager thunar Thunar mousepad xfce4-keyboard-settings xfce4-mime-settings'.split()stub = Path('/usr/local/bin/gui-only-denied')stub.write_text('''#!/bin/shmkdir -p /logs/artifactsprintf '%s %s\\n' "$(date -u +%FT%TZ)" "$0" >> /logs/artifacts/gui-only-denied.logexit 126''')stub.chmod(0o755)for name in BLOCKED: for directory in ['/usr/bin','/usr/local/bin','/bin']: p = Path(directory)/name if directory == '/bin' and Path('/bin').resolve() == Path('/usr/bin'):continue if p.exists() or p.is_symlink():p.unlink() p.symlink_to(stub)# Remove shell launch surfaces without removing native editor file dialogs.for root in ['/root/Desktop','/usr/share/applications','/usr/local/share/applications','/root/.local/share/applications']: for p in Path(root).glob('*.desktop'): text=p.read_text(errors='replace').lower() if any(x in text for x in ['terminal','appfinder','xfrun','settings-editor','keyboard-settings','mime-settings','desktop-item-edit','text-editor','mousepad','chromium','web-browser']):p.unlink()# Only the harness launches the editor; disable duplicate session autostarts.for root in ['/root/.config/autostart','/etc/xdg/autostart']: for p in Path(root).glob('*.desktop'): if any(x in p.read_text(errors='replace').lower() for x in ['shotcut','filmcraft','x11vnc']): p.write_text('[Desktop Entry]\nType=Application\nHidden=true\n')for root in ['/etc/xdg/xfce4/xfconf/xfce-perchannel-xml','/root/.config/xfce4/xfconf/xfce-perchannel-xml']: p=Path(root)/'xfce4-keyboard-shortcuts.xml' if p.exists(): tree=ET.parse(p) for parent in tree.iter(): for child in list(parent): if any(x in child.get('value','').lower() for x in ['terminal','appfinder','xfrun']):parent.remove(child) tree.write(p,encoding='unicode')kiosk=Path('/etc/xdg/xfce4/kiosk/kioskrc');kiosk.parent.mkdir(parents=True,exist_ok=True)kiosk.write_text('[xfce4-panel]\nCustomizePanel=NONE\n[xfdesktop]\nCustomizeDesktopMenu=NONE\nCustomizeWindowlist=NONE\nUserMenu=ALL\n[xfce4-session]\nCustomizeCompatibility=NONE\nCustomizeSecurity=NONE\n')# Custom file-manager commands can launch shells. Keep file navigation/native dialogs.actions=Path('/root/.config/Thunar/uca.xml');actions.parent.mkdir(parents=True,exist_ok=True);actions.write_text('<actions/>\n')for name in BLOCKED: r=subprocess.run(['/usr/bin/'+name,'--version'],capture_output=True,timeout=5) if r.returncode !=126:raise RuntimeError('GUI-only guard failed: '+name)Path('/logs/artifacts').mkdir(parents=True,exist_ok=True)Path('/logs/artifacts/gui-only-policy.json').write_text(json.dumps({'version':2,'os_navigation':True,'terminal_tools':False,'blocked_launchers':BLOCKED,'self_check':'passed'},indent=2))print('GUI_ONLY_SELF_CHECK_PASSED')
# Fixed GUI file browser and app launchers do not execute arbitrary commands.p=Path('/root/Desktop/Files.desktop');p.write_text('[Desktop Entry]\nType=Application\nName=Files\nExec=/usr/bin/python3 /opt/gui-only/files.py\nIcon=system-file-manager\nTerminal=false\n');p.chmod(0o755)for app,command in [('FilmCraft','/usr/local/bin/filmcraft --graphics software')]: if not Path(command.split()[0]).exists():continue p=Path('/root/Desktop')/(app+'.desktop');p.write_text('[Desktop Entry]\nType=Application\nName='+app+'\nExec='+command+'\nIcon=applications-multimedia\nTerminal=false\n');p.chmod(0o755)1234567891011121314#!/bin/shset -eumkdir -p /logs/artifacts /root/.local/share/filmcraft /root/.config/filmcraftif [ ! -S /tmp/.X11-unix/X1 ]; then Xvfb :1 -screen 0 1280x900x24 -ac +extension RANDR >/tmp/task01-xvfb.log 2>&1 &fiexport DISPLAY=:1sleep 1if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ]; then eval "$(dbus-launch --sh-syntax)"fistartxfce4 >/tmp/task01-xfce.log 2>&1 &sleep 2exec /usr/local/bin/filmcraft --empty --no-recover --graphics software >/tmp/task01-filmcraft.log 2>&11234567891011121314151617181920Can you go through `/root/Desktop/` in Filmcraft and look for three videos: a close-up filled with roasted coffee beans, an espresso machine dispensing coffee into a clear glass, and a white cup with a spoon on a saucer on an outdoor table. They may be in different folders and subfolders, with unfamiliar filenames. Use visual previews as needed to identify the matching footage. Once you have found all three, start assembling them in Filmcraft; you do not need to open every remaining video.
The customer needs 16:9 and 9:16 versions for YouTube and TikTok. We need watermarked samples for review and clean versions ready to send after we receive the down-payment.
Assemble the three matching videos in the order described above, using the first five seconds of each at normal speed with straight cuts between them. The assembled video should be 15 seconds long, with cuts at 5 and 10 seconds and no gaps or overlaps. Use only the matching footage in the assembled sequence. Make sure you are using Filmcraft—I want to open this project and edit the timeline manually if the client requests changes.
Export four H.264 MP4 files at 30 fps:
- `final01horizontal-sample.mp4`: 1920×1080, 16:9 horizontal, with the sample watermark.- `final01-vertical-sample.mp4`: 1080×1920, 9:16 vertical, with the sample watermark.- `final01horizontal.mp4`: 1920×1080, 16:9 horizontal, without the added watermark.- `final01-vertical.mp4`: 1080×1920, 9:16 vertical, without the added watermark.
For both sample exports, display exactly `FOR SAMPLE VIEW ONLY` in white, all-capital DejaVu Sans text at 50% opacity across the screen throughout all 15 seconds. Keep the wording clearly legible and fully visible in both formats. The two clean exports should contain no added sample watermark.
Fit each shot entirely inside the horizontal frame without cropping or stretching; aspect-ratio borders are fine. For the vertical versions, fill the frame using a centered crop without stretching. Keep the same clip order and timing in all four exports.
Save all four exports in `/root/Desktop/output`. Also save the editable Filmcraft project there as `proj-task-01.fcproj`, with all three original source clips linked. Keep the horizontal and vertical footage and sample watermark text editable so I can revise the clips, framing and watermark myself later.
Use GUI interaction only. You may write and run scripts through Filmcraft's GUI. Do not use a terminal, xterm, uxterm, shell, external script runner, or direct command/process-execution tools.12345678910111213141516171819202122232425schema_version = "1.4"artifacts = ["/root/Desktop", "/root/.local/share/filmcraft", "/root/.config/filmcraft", "/logs/artifacts", "/tmp/task01-filmcraft.log", "/tmp/task01-xfce.log"][task]name = "sid/01-A-content-formats-gui-v4"version = "4.0.0"[agent]timeout_sec = 28800network_mode = "no-network"[environment]network_mode = "no-network"build_timeout_sec = 3600cpus = 4memory_mb = 16384storage_mb = 30720os = "linux"[verifier]timeout_sec = 3600environment_mode = "separate"[verifier.environment]network_mode = "no-network"build_timeout_sec = 3600cpus = 4memory_mb = 8192storage_mb = 30720os = "linux"123456789101112131415161718192021222324252627282930313233FROM debian:bookworm-slim@sha256:3783cc01769c7b2b1b83a5c5ad96c815348e28ed7da68e2e3687004faa906251ENV DEBIAN_FRONTEND=noninteractiveARG TARGETARCHRUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg python3 python3-tk python3-numpy python3-pil python3-opencv fontconfig tesseract-ocr ca-certificates \ xvfb xfce4-session xfwm4 xfce4-panel xfce4-settings xfdesktop4 thunar mousepad xterm \ x11vnc xdotool wmctrl imagemagick webp dbus-x11 zenity xdg-desktop-portal xdg-desktop-portal-gtk \ fonts-dejavu-core fonts-liberation fontconfig tesseract-ocr libgl1-mesa-dri libgl1 libglu1-mesa \ mesa-vulkan-drivers libvulkan1 libegl1 libx11-6 libx11-xcb1 libxcursor1 libxi6 \ libxrandr2 libxkbcommon0 libwayland-client0 libgtk-3-0 libsm6 libice6 \ libxrender1 libxext6 libxkbcommon-x11-0 libxcb-cursor0 libxcb-icccm4 \ libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 \ libxcb-xinput0 libpulse0 libasound2 libnss3 procps util-linux \ && rm -rf /var/lib/apt/lists/*COPY vendor/filmcraft-${TARGETARCH}.tar.gz /tmp/filmcraft.tar.gzRUN case "$TARGETARCH" in \ amd64) filmcraft_sha=4171c4bf5f57fd29475655f8a6df4719feda8c8f3ed95b2475d8dc112ad3be86 ;; \ arm64) filmcraft_sha=4af56f649a6fb19dcae386abd59921ec6c9190b725014517075fa4d81123c68a ;; \ *) exit 1 ;; esac \ && echo "${filmcraft_sha} /tmp/filmcraft.tar.gz" | sha256sum -c - \ && mkdir -p /opt/filmcraft \ && tar -xzf /tmp/filmcraft.tar.gz -C /opt/filmcraft --strip-components=1 \ && cp -a /opt/filmcraft/share/. /usr/local/share/ \ && ln -s /opt/filmcraft/bin/filmcraft-cli /usr/local/bin/filmcraft-cli \ && rm /tmp/filmcraft.tar.gzENV RAYON_NUM_THREADS=4 SDL_AUDIODRIVER=dummy LIBGL_ALWAYS_SOFTWARE=1 WGPU_BACKEND=vulkan LANG=C.UTF-8 DISPLAY=:1COPY . /tests/RUN mkdir -p /root/Desktop/output /logs/verifier /logs/artifacts \ && chmod +x /tests/test.shCOPY install-dejavu-sans.sh /usr/local/bin/install-dejavu-sans.shRUN sh /usr/local/bin/install-dejavu-sans.shWORKDIR /rootCMD ["sleep", "infinity"]1{"access": "gui"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101"""Private deterministic verifier support; failures of grading never become task deductions."""import json, math, os, re, subprocessfrom pathlib import Pathimport numpy as npfrom PIL import ImageTICKS=254016000000class GradingError(RuntimeError): pass
def commands(trajectory): for step in trajectory.get('steps',[]): if step.get('source')!='agent':continue obs=step.get('observation',{}).get('results',[]) for call in step.get('tool_calls',[]): args=call.get('arguments',{});text=args.get('command') or args.get('text') or '' response=next((o for o in obs if o.get('source_call_id')==call.get('tool_call_id')),{}) output='\n'.join(c.get('text','') for c in response.get('content',[]) if c.get('type')=='text') yield step.get('step_id'),text,output,response
def _action_checks(trajectory, workspace, target_names, assets=None): entries=list(commands(trajectory));app=[];previews=[];queued=[];done=[];started=[];pixel_evidence={} for sid,cmd,out,obs in entries: # A successful editing/export response, rather than help/probe/agent prose. if 'filmcraft-cli' in cmd and any(x in cmd for x in ['timeline.place','file.save','export.queue',' render ',' import ',' exec ']) and ('status=ok' in out or '"ok": true' in out) and any(x in out for x in ['"added"','"item"','"items"','"project"','"result"','saved','"bytes"','"ok"']):app.append(sid) if 'export.queue.start' in cmd:started.append(sid) # Queue-state output proves names/status, not the command's claimed intent. for name in ['final01-1080p.mp4','final01-720p.mp4','final-1080p.mp4']: if re.search(re.escape(name)+r'[^\n]{0,100}\bready\b',out):queued.append((sid,name)) if re.search(re.escape(name)+r'[^\n]{0,100}\bdone\b',out):done.append((sid,name)) if any(x in cmd for x in ['display ','feh ','ristretto ','preview','source.open']) and any(c.get('type')=='image' for c in obs.get('content',[])) and ('status=ok' in out or not out):previews.append(sid) # GUI calls are corroborated by application window observations, not text claims. observations=workspace/'logs/artifacts/runtime-observations.jsonl' if observations.is_file(): for line in observations.read_text().splitlines(): try:r=json.loads(line) except ValueError:continue if 'filmcraft' in r.get('windows','').lower() and any(s.get('tool_calls') for s in trajectory.get('steps',[]) if s.get('source')=='agent'): app.append('observed-filmcraft-window');break pair=[] batch=any(all(any(qsid<start and name==n for qsid,name in queued) for n in pair) and all(any(dsid>=start and name==n for dsid,name in done) for n in pair) for start in started) # Source-associated observations require a source thumbnail creation and delivered preview. source_view={} for n in target_names: extracts=[sid for sid,cmd,out,obs in entries if ('ffmpeg' in cmd or 'preview' in cmd or 'source.open' in cmd) and (n in cmd or n in out) and ('status=ok' in out or not out)] source_view[n]=any(preview>=extract for preview in previews for extract in extracts) if assets is not None and (assets/'operator-screenshots').is_dir() and not all(source_view.values()) and not all(n.startswith(('coffee-','pouring-','hands-')) for n in target_names): from gui_evidence import viewed_sources pixel_view,pixel_evidence=viewed_sources(trajectory,assets,target_names) for name in target_names:source_view[name]=source_view[name] or pixel_view[name] if assets is not None and not batch and (assets/'operator-screenshots').is_dir() and json.loads((assets/'verifier-config.json').read_text()).get('queue_exports'): from gui_evidence import gui_queue gui=gui_queue(trajectory,assets,pair);batch=gui['batch'] queued.extend(('gui',e['names']) for e in gui['events'] if e['ready']);done.extend(('gui',e['names']) for e in gui['events'] if e['done']) return {'app_use':bool(app),'app_steps':app,'source_view':source_view,'preview_steps':previews,'source_view_evidence':pixel_evidence,'batch':batch,'queue_evidence':{'ready':queued,'started':started,'done':done}}
def native_dissolve(selected,clips,j): if not selected or len(clips)<=j:return None a,b=clips[j-1],clips[j];cut=b['start']/TICKS return next((t for t in selected['transitions'] if t.get('effect',{}).get('effect')=='cross_dissolve' and t['effect'].get('enabled',True) and t.get('from')==a['id'] and t.get('to')==b['id'] and t.get('duration',0)>0 and t['start']/TICKS<=cut<=(t['start']+t['duration'])/TICKS),None)
def blend_measure(A,B,O): A=A.astype(float);B=B.astype(float);O=O.astype(float);d=B-A;alpha=float(np.clip(((O-A)*d).sum()/max(1,float((d*d).sum())),0,1));error=float(np.abs(O-(A*(1-alpha)+B*alpha)).mean());return alpha,error
def rendered_assembly(frames,clips,selected,refs): """Check every frame against its source or the paired blend, with source-edge holds.""" if frames is None or not len(frames):return {'full':False,'tails':[False]*3,'joins':[False]*2,'end':False,'errors':[]} errors=[];join_samples=[[],[]];tails=[[],[],[]] trans=[native_dissolve(selected,clips,j) for j in [1,2]] def source(i,t): c=clips[i];f=round((c['source_in']/TICKS+t-c['start']/TICKS)*30);return refs[i][max(0,min(len(refs[i])-1,f))] for f,O in enumerate(frames): t=f/30;beyond_picture=False;fps=selected.get('seq',{}).get('settings',{}).get('frame_rate',{'num':30,'den':1});tail_tolerance=fps['den']/fps['num']+1/30 picture_end=max((c['start']+c['duration'])/TICKS for c in clips) if picture_end<=t<picture_end+tail_tolerance:beyond_picture=True;t=picture_end-1e-7 i=next((i for i,c in enumerate(clips) if c['start']/TICKS<=t<(c['start']+c['duration'])/TICKS),None) if i is None:errors.append(255.);continue blend=next(((j,tr) for j,tr in enumerate(trans) if tr and tr['start']/TICKS<=t<(tr['start']+tr['duration'])/TICKS),None) if blend: j,tr=blend;alpha,err=blend_measure(source(j,t),source(j+1,t),O);join_samples[j].append((alpha,err));tails[j].append(err);tails[j+1].append(err) else: A=source(i,t).astype(float);err=float(abs(O.astype(float)-A).mean()) if not beyond_picture:tails[i].append(err) errors.append(err) def good(v):return bool(bool(v) and np.quantile(v,.99)<=12 and max(v)<=22) joins=[] for samples in join_samples: alphas=[x[0] for x in samples];errs=[x[1] for x in samples];mixed=sum(.12<a<.88 for a in alphas) joins.append(len(samples)>=3 and mixed>=max(2,len(samples)//5) and alphas[-1]-alphas[0]>.5 and all(b>=a-.08 for a,b in zip(alphas,alphas[1:])) and good(errs)) end=max((c['start']+c['duration'])/TICKS for c in clips);endok=abs(len(frames)/30-end)<=max(1/30,selected.get('seq',{}).get('settings',{}).get('frame_rate',{'num':30,'den':1})['den']/selected.get('seq',{}).get('settings',{}).get('frame_rate',{'num':30,'den':1})['num'])+1/30 and good(errors[-3:]) return {'full':good(errors) and all(joins),'tails':[good(v) for v in tails],'joins':joins,'end':endok,'p99_mae':float(np.quantile(errors,.99)),'max_mae':max(errors),'join_samples':join_samples}
def require_complete(result): from verifier_runtime import validate_report return validate_report(result)
# One immutable private trace is evaluated repeatedly for four exports in one grading process._ACTION_CACHE={}def action_checks(trajectory,workspace,target_names,assets=None): import hashlib,copy key=(hashlib.sha256(json.dumps(trajectory,sort_keys=True).encode()).hexdigest(),str(workspace),tuple(target_names),str(assets)) if key not in _ACTION_CACHE:_ACTION_CACHE[key]=_action_checks(trajectory,workspace,target_names,assets) return copy.deepcopy(_ACTION_CACHE[key])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154"""Content-formats footage backend v4. Grading only in the isolated verifier / external operator workspace."""import argparse,json,math,shutilfrom pathlib import Pathfrom verifier_runtime import select_projectimport numpy as npfrom deterministic_checks import action_checks,GradingError,require_completefrom media_helpers import digest,run,probe,normal,geometry,decoded_frames,reference_frames,TICKSSOURCES=['h9vzu5l6oe6m5exg.mp4','bd9lhaznndgrhv7r.mp4','0d5vd03ud8jkctos.mp4']POINTS=dict(zip(['a','c','d']+list('efghijklmn'),[2,4,4,8,8,9,15,8,8,5,7,12,10]))LABELS=dict(zip(POINTS,['Filmcraft use','Correct targets imported','Editable sequence created','Visual identification of three targets','Three targets in order','First five seconds normal forward speed','Decoded MP4 source ranges','Straight cuts and 15 seconds without gaps','1080p H.264 MP4 at 30 fps','Filename and Desktop output path','Proportional full-image fit','Native editable project with source links','Five distractors absent from contributing footage']))assert sum(POINTS.values())==100
def evaluate(workspace,report_dir,assets,access,filename="final01.mp4",W=1920,H=1080,sample=False): report_dir.mkdir(parents=True,exist_ok=True);out=workspace/'root/Desktop/output';project=out/'proj-task-01.fcproj';video=out/filename required_project=project;project=select_project(project) manifest=json.loads((assets/'source-manifest.json').read_text());distractors=[n for n in manifest if n not in SOURCES] rows={k:{'requirement':LABELS[k],'possible':pts,'checks':[]} for k,pts in POINTS.items()} def add(k,id,pts,state,evidence):rows[k]['checks'].append({'id':id,'possible':pts,'state':'unknown' if state is None else 'met' if state else 'unmet','evidence':str(evidence)}) doc={};project_error=None if project.is_file(): try: doc=json.loads(project.read_text()) if doc.get('format')!='filmcraft.project':raise ValueError('Unsupported native project format') except Exception as e:project_error=str(e);doc={} items=doc.get('project',{}).get('items',{});links={} for id,item in items.items(): m=item.get('kind',{}).get('Media',{});path=m.get('media',{}).get('File',{}).get('path') if not path:continue p=workspace/path.lstrip('/') if Path(path).is_absolute() else project.parent/path sha=digest(p) if p.is_file() else None name=next((n for n,r in manifest.items() if r['sha256']==sha),None) links[id]={'name':name,'valid':bool(name) and not m.get('offline',False),'path':path,'media':m} imported={l['name'] for l in links.values() if l['valid']} trace=assets/'operator-trajectory.json' if not trace.is_file():raise GradingError('Missing private operator trajectory for app/visual observation checks') actions=action_checks(json.loads(trace.read_text()),workspace,SOURCES,assets) add('a','action-evidence',2,actions['app_use'],actions['app_steps']) for n in SOURCES: add('c',n,4/3,n in imported,'Actual resolved source hashes, initial empty project; distractor imports allowed') add('e',n,8/3,actions['source_view'][n],{'source':n,'preview_steps':actions['preview_steps'],'pixel_evidence':actions.get('source_view_evidence',{})}) native=None;native_error=None if project.is_file() and doc and shutil.which('filmcraft-cli'): r=run(['filmcraft-cli','--project',str(project),'inspect'],timeout=180) (report_dir/'native-inspection.stdout').write_bytes(r.stdout);(report_dir/'native-inspection.stderr').write_bytes(r.stderr) if r.returncode==0: try:native=json.loads(r.stdout) except ValueError:native_error='Invalid native inspector JSON' else:native_error='Native inspector failed; review project error versus missing runtime dependency' seqs=[] for id,item in items.items(): s=item.get('kind',{}).get('Sequence') if not s:continue cs=[];trans=[];tracks=s.get('video_tracks',[]);solo=any(t.get('solo') for t in tracks) for t in tracks: if not t.get('enabled',True) or (solo and not t.get('solo')):continue trans+=t.get('transitions',[]) cs += [c for c in t.get('items',[]) if c.get('enabled',True) and 'Graphic' not in items.get(str(c.get('item')),{}).get('kind',{})] cs.sort(key=lambda c:c.get('start',0));seqs.append({'id':id,'seq':s,'clips':cs,'trans':trans}) seqs=[q for q in seqs if (q['seq'].get('settings',{}).get('width'),q['seq'].get('settings',{}).get('height'))==(W,H)] or seqs active=str(doc.get('view',{}).get('active_sequence','')) chosen=next((s for s in seqs if s['id']==active),None) or max(seqs,key=lambda s:sum(links.get(str(c.get('item')),{}).get('name')==n for c,n in zip(s['clips'],SOURCES)),default=None) cs=chosen['clips'] if chosen else [];order=[links.get(str(c.get('item')),{}).get('name') for c in cs] standard=bool(chosen) and all(str(c.get('item')) in links for c in cs) # Unknown/nested or corrupt project structure requires native review, not a guessed failure. unavailable=None if project.is_file() else False for i,n in enumerate(SOURCES):add('f',f'position-{i}',2,(i<len(order) and order[i]==n) if standard else unavailable,order) add('f','complete-order',2,order==SOURCES if standard else unavailable,order) for n in SOURCES: matched=[c for c in cs if links.get(str(c.get('item')),{}).get('name')==n] for prop in ['source-zero','five-seconds','normal']: vals=[abs(c.get('source_in',0)/TICKS)<=1/30 if prop=='source-zero' else abs(c.get('duration',0)/TICKS-5)<=1/30 if prop=='five-seconds' else normal(c,links[str(c['item'])]['media']) for c in matched] ok=(None if None in vals else all(vals)) if vals else False if standard or not project.is_file() else None add('g',n+'/'+prop,1,ok,vals) editable=bool(native) and standard and order==SOURCES add('d','source-backed-sequence',4,bool(native) and standard and bool(cs) if native is not None else unavailable,'Native reopen and newly saved timeline; '+str(native_error)) trans=chosen['trans'] if chosen else [] for i in [1,2]:add('i',f'native-cut-{i}',1.5,(len(cs)>i and abs(cs[i]['start']/TICKS-i*5)<=1/30 and not trans) if standard else unavailable,'Native contributing timeline') gap=standard and len(cs)==3 and not trans and abs(cs[0]['start']/TICKS)<=1/30 and all(abs((cs[i-1]['start']+cs[i-1]['duration']-cs[i]['start'])/TICKS)<=1/30 for i in [1,2]) and abs((cs[-1]['start']+cs[-1]['duration'])/TICKS-15)<=1/30 add('i','native-duration-gapfree',1,gap if standard else unavailable,'No gaps/overlaps and 15-second duration') add('m','filename',1,required_project.is_file(),'Exact filename');add('m','directory',1,project.is_file(),'Original workspace path /root/Desktop/output') add('m','native-load',3,bool(native) if native is not None else unavailable,native_error or 'Linux native reopen unverified' if native is None else 'Native inspect success') add('m','editable-three-source-timeline',4,editable if native is not None else unavailable,'Source-backed clips; flattened/nested projects require native evidence') for n in SOURCES:add('m','link/'+n,1,n in imported,'Hash verified working source link independent of filename') add('k','filename',2,video.is_file(),'final01.mp4');add('k','directory',3,video.is_file(),'Original workspace path /root/Desktop/output') d={};s={};frames=None;decode_error=None;errors=[];matches=[False]*3;timestamp_ok=False if video.is_file(): try: d,s=probe(video) # Avoid unbounded decoding of malicious or accidentally enormous submissions. duration=float(d.get('format',{}).get('duration',0)) if duration>120:raise ValueError('Export exceeds verifier decode budget') frames=decoded_frames(video,192 if W>=H else 108,108 if W>=H else 192) except Exception as e:decode_error=str(e) if decode_error:raise GradingError('Unable to decode submitted export: '+decode_error) valid=frames is not None and len(frames)>0 if valid: for i,n in enumerate(SOURCES): ref=reference_frames(assets/'reference'/n,W,H);segment=frames[i*150:(i+1)*150] if len(segment)!=150 or len(ref)!=150:errors.append('Missing/short segment');continue mask=np.ones(ref.shape[1:3],bool) if sample:mask[int(mask.shape[0]*.32):int(mask.shape[0]*.68),:]=False delta=np.abs(segment.astype(np.float32)-ref.astype(np.float32))[:,mask,:].mean(axis=(1,2)) for shift in [-1,1]: alt=np.roll(ref,shift,axis=0);dd=np.abs(segment.astype(np.float32)-alt.astype(np.float32))[:,mask,:].mean(axis=(1,2));dd[:2]=delta[:2];dd[-2:]=delta[-2:];delta=np.minimum(delta,dd) matches[i]=bool(np.quantile(delta,.99)<=12 and delta.max()<=22) errors.append({'mean':float(delta.mean()),'p99':float(np.quantile(delta,.99)),'max':float(delta.max())}) r=run(['ffprobe','-v','error','-select_streams','v:0','-show_entries','frame=best_effort_timestamp_time','-of','json',str(video)],timeout=180) if r.returncode==0: ts=[float(f['best_effort_timestamp_time']) for f in json.loads(r.stdout)['frames'] if 'best_effort_timestamp_time' in f] timestamp_ok=len(ts)==len(frames) and len(ts)>1 and max(abs(b-a-1/30) for a,b in zip(ts,ts[1:]))<.0001 for i,n in enumerate(SOURCES):add('h',n,5,bool(valid and matches[i]),errors) for i in [1,2]:add('i',f'export-cut-{i}',1.5,bool(valid and matches[i-1] and matches[i]),'Source mapping through decoded cut boundary') add('i','export-duration-gapfree',1,(len(frames)==450 and abs(float(d['format'].get('duration',0))-15)<=1/30) if valid and all(matches) else False,'All decoded frames correspond to source mapping; 450 frames') fps=s.get('avg_frame_rate','0/1').split('/');rate=float(fps[0])/max(1,float(fps[1])) for prop,ok in [('container','mp4' in d.get('format',{}).get('format_name','')),('codec',s.get('codec_name')=='h264'),('dimensions',(s.get('width'),s.get('height'))==(W,H) and s.get('sample_aspect_ratio','1:1') in ['1:1','N/A'] and not any(x.get('rotation',0)%360 for x in s.get('side_data_list',[]))),('fps',abs(rate-30)<.001 and timestamp_ok)]:add('j',prop,2,valid and ok if not decode_error else None,'Actual decoded probe/timestamps') geoms=[];clipped=[] for i,n in enumerate(SOURCES): gs=[geometry(c,links[str(c['item'])]['media'],W,H) for c in cs if links.get(str(c.get('item')),{}).get('name')==n] understood=bool(gs) and all(g and 'sx' in g for g in gs) proportional=understood and all(abs(g['sx']-g['sy'])<1e-5 for g in gs) fit=understood and all(abs(max(g['w']/W,g['h']/H)-1)<.003 for g in gs) contained=understood and all(g['x']>=-2 and g['y']>=-2 and g['x']+g['w']<=W+2 and g['y']+g['h']<=H+2 for g in gs) geoms.append(gs);clipped.append(contained) add('l',n+'/full-image',1,bool(fit and contained),gs) add('l',n+'/proportional',1,bool(proportional),gs) add('l','placement-unclipped',1,bool(all(clipped)),geoms) for n in distractors: present=n in order # Correct full-duration target mapping plus native contributing state proves absence. absent=(standard and not present) or (valid and all(matches) and len(frames)==450) add('n',n,2,False if present else True if absent else None if project.is_file() else False,'Contributing timeline and every decoded output frame; distractor bin imports allowed') submission={str(p.relative_to(workspace)):digest(p) for p in out.iterdir() if p.is_file()} if out.is_dir() else {} # Bind operator evidence to actual linked media too, so replaced dependencies invalidate it. for l in links.values(): p=workspace/l['path'].lstrip('/') if Path(l['path']).is_absolute() else project.parent/l['path'] if p.is_file():submission[str(p.relative_to(workspace))]=digest(p) rp=report_dir/'operator-review.json';review=json.loads(rp.read_text()) if rp.is_file() else {} reviewed=bool(submission) and review.get('submission_sha256')==submission and bool(review.get('reviewer')) and bool(review.get('evidence')) for k,row in rows.items(): assert math.isclose(sum(c['possible'] for c in row['checks']),row['possible']),k row['earned']=sum(c['possible'] for c in row['checks'] if c['state']=='met');row['unresolved']=sum(c['possible'] for c in row['checks'] if c['state']=='unknown') row['status']='unknown' if row['unresolved'] else 'met' if math.isclose(row['earned'],row['possible']) else 'partially_met' if row['earned'] else 'unmet' earned=sum(r['earned'] for r in rows.values());unknown=sum(r['unresolved'] for r in rows.values()) policy='pass' if access=='terminal' else review.get('policy','unknown') if reviewed else 'unknown' if policy not in ['pass','fail','unknown']:policy='unknown' result={'rubric_version':'01-A-content-single-v4','rubric':rows,'resolved_score':round(earned,6),'unresolved_points':round(unknown,6),'score_range':[round(earned,6),round(earned+unknown,6)],'policy':policy,'access':access,'evaluation_validity':'resolved' if unknown==0 else 'partial evidence','project_error':project_error,'native_error':native_error,'export':{'probe':d,'decoded_frames':len(frames) if valid else 0,'error':decode_error,'segment_matches':matches,'comparison_errors':errors},'submission_sha256':submission,'operator_review_applied':reviewed,'limitations':['Checks use fixed native schema, decoded-frame tolerances and private action/screenshot evidence.','Unsupported structures or missing grading evidence raise a verifier error and withhold reward.','Fixture and saved-attempt regression results are recorded separately from oracle validation.']} (report_dir/'rubric.json').write_text(json.dumps(result,indent=2)+'\n') (report_dir/'review-template.json').write_text(json.dumps({'reviewer':'','evidence':[],'submission_sha256':submission,'policy':'unknown','checks':{k+'/'+c['id']:{'state':'unknown','evidence':''} for k,r in rows.items() for c in r['checks'] if c['state']=='unknown'}},indent=2)+'\n') return result
def main(): from verifier_runtime import cli_main cli_main(evaluate,Path(__file__).resolve().parent)if __name__=='__main__':main()1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162"""Deterministic OCR support for actual GUI observations, never agent narrative."""import json,re,subprocess,tempfile,hashlibfrom pathlib import Pathfrom PIL import Image
def gui_queue(trajectory,assets,expected): events=[];cache_path=assets/'gui-ocr-cache.json';cache=json.loads(cache_path.read_text()) if cache_path.exists() else {} for step in trajectory.get('steps',[]): if step.get('source')!='agent':continue for result in step.get('observation',{}).get('results',[]): for part in result.get('content',[]): if part.get('type')!='image':continue name=Path(part.get('source',{}).get('path','')).name;p=assets/'operator-screenshots'/name if not p.is_file():continue digest=hashlib.sha256(p.read_bytes()).hexdigest() key=name+':'+digest if key in cache:text=cache[key] else: with tempfile.TemporaryDirectory() as temp: image=Image.open(p);image.resize((image.width*2,image.height*2)).save(Path(temp)/'screen.png') r=subprocess.run(['tesseract',str(Path(temp)/'screen.png'),'stdout','--psm','11'],capture_output=True,text=True,timeout=20);text=' '.join(r.stdout.split()).lower() cache[key]=text;cache_path.write_text(json.dumps(cache)) if 'queue' not in text and 'export' not in text:continue names=[n for n in expected if n.lower().replace('.mp4','') in text or n.lower() in text] if len(names)==len(expected):events.append({'step':step['step_id'],'names':names,'ready':any(x in text for x in ['ready','pending','queued']),'done':any(x in text for x in ['completed','done','finished']),'text':text}) return {'batch':any(a['ready'] and b['done'] and a['step']<b['step'] for a in events for b in events),'events':events}
def viewed_sources(trajectory,assets,names): """Match source pixels to delivered screenshots using fixed SIFT/RANSAC thresholds.""" import cv2,numpy as np paths=set() for step in trajectory.get('steps',[]): if step.get('source')!='agent':continue for result in step.get('observation',{}).get('results',[]): for part in result.get('content',[]): if part.get('type')=='image':paths.add(Path(part.get('source',{}).get('path','')).name) sift=cv2.SIFT_create(nfeatures=1500);screens=[] for name in sorted(paths): p=assets/'operator-screenshots'/name if not p.is_file():continue img=cv2.imread(str(p),cv2.IMREAD_GRAYSCALE) if img is None:continue k,d=sift.detectAndCompute(img,None) if d is not None:screens.append((name,k,d)) if not screens:raise RuntimeError('No delivered screenshots available for deterministic source-view check') found={n:False for n in names};evidence={};matcher=cv2.BFMatcher() for name in names: capture=cv2.VideoCapture(str(assets/'reference'/name)) for second in [0,1,2,4]: capture.set(cv2.CAP_PROP_POS_MSEC,second*1000);ok,img=capture.read() if not ok:continue img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY);img=cv2.resize(img,(640,round(img.shape[0]*640/img.shape[1])));k,d=sift.detectAndCompute(img,None) if d is None:continue for shot,ks,ds in screens: pairs=matcher.knnMatch(d,ds,k=2);good=[a for pair in pairs if len(pair)==2 for a,b in [pair] if a.distance<.70*b.distance] if len(good)<12:continue src=np.float32([k[m.queryIdx].pt for m in good]);dst=np.float32([ks[m.trainIdx].pt for m in good]);H,inliers=cv2.findHomography(src,dst,cv2.RANSAC,3) if H is not None and inliers is not None and int(inliers.sum())>=10 and int(inliers.sum())/len(good)>=.5: found[name]=True;evidence[name]={'screenshot':shot,'source_second':second,'inliers':int(inliers.sum())};break if found[name]:break capture.release() return found,evidence123456#!/bin/shset -eutest -s /usr/share/fonts/truetype/dejavu/DejaVuSans.ttffc-cache -ffc-match 'DejaVu Sans' | head -1fc-scan --format '%{family}\n' /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf | head -11234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677import hashlib,json,subprocessfrom pathlib import Pathimport numpy as npTICKS=254016000000def digest(p): h=hashlib.sha256() with p.open('rb') as f: for block in iter(lambda:f.read(1024*1024),b''):h.update(block) return h.hexdigest()def run(args,timeout=120):return subprocess.run(args,capture_output=True,timeout=timeout)def probe(p): r=run(['ffprobe','-v','error','-show_streams','-show_format','-of','json',str(p)]) if r.returncode:raise ValueError(r.stderr.decode(errors='replace')[-1000:]) d=json.loads(r.stdout);s=next(s for s in d['streams'] if s['codec_type']=='video') return d,sdef val(effect,name,default=None): p=effect.get('params',{}).get(name,{}) if p.get('keyframes'):return None v=p.get('value',{}) return next(iter(v.values()),default) if isinstance(v,dict) else v
def normal(c,media): if c.get('speed',1)!=1 or c.get('reverse') or c.get('frame_hold') is not None:return False interpret=media.get('interpret',{}) if interpret.get('frame_rate'):return None for e in c.get('effects',[]): if e.get('enabled',True) and e.get('effect')=='time_remap': speed=val(e,'speed',100) if speed is None:return None if speed!=100:return False return True
def geometry(c,media,w,h): """Resolve basic motion, including scale-to-frame and anchor offsets. Unknown effects/keyframes/PAR overrides defer to native/render review. """ v=media.get('info',{}).get('video') if not v:return None sw,sh=v['width'],v['height'];par=v.get('par',[1,1]);interp=media.get('interpret',{}) if interp.get('par') or par[0]!=par[1]:return None motion=None;opacity=100 for e in c.get('effects',[]): if not e.get('enabled',True):continue kind=e.get('effect') if kind=='motion':motion=e elif kind=='opacity': opacity=val(e,'opacity',100) if val(e,'blend',0)!=0:return None elif kind=='time_remap':continue else:return None if not motion:return None scale=val(motion,'scale',100);width=val(motion,'scale_width',100);uniform=val(motion,'uniform_scale',True) position=val(motion,'position',{'x':w/2,'y':h/2});anchor=val(motion,'anchor',{'x':sw/2,'y':sh/2});rotation=val(motion,'rotation',0) if any(x is None for x in [scale,width,uniform,position,anchor,rotation,opacity]):return None if rotation!=0:return {'upright':False,'opacity':opacity} base=min(w/sw,h/sh) if c.get('scale_to_frame') else 1 sy=base*scale/100;sx=sy if uniform else base*width/100 return {'x':position['x']-anchor['x']*sx,'y':position['y']-anchor['y']*sy,'w':sw*sx,'h':sh*sy,'sx':sx,'sy':sy,'upright':True,'opacity':opacity}
def decoded_frames(p,w,h,filter_prefix='',limit=None): vf=filter_prefix+(',' if filter_prefix else '')+f'scale={w}:{h}:flags=area' args=['ffmpeg','-v','error','-threads','2','-i',str(p),'-an','-vf',vf] if limit:args+=['-frames:v',str(limit)] args+=['-pix_fmt','rgb24','-f','rawvideo','pipe:1'] r=run(args,timeout=600) if r.returncode:raise ValueError(r.stderr.decode(errors='replace')[-1000:]) size=w*h*3 if len(r.stdout)%size:raise ValueError('Partial decoded frame') return np.frombuffer(r.stdout,dtype=np.uint8).reshape(-1,h,w,3)
def reference_frames(p,W,H): _,s=probe(p);sw,sh=s['width'],s['height'];scale=min(W/sw,H/sh) if W>H else max(W/sw,H/sh) rw=round(sw*scale);rh=round(sh*scale) vf=f'trim=start=0:end=5,setpts=PTS-STARTPTS,fps=30,scale={rw}:{rh}:flags=bicubic,setsar=1' vf+=f',pad={W}:{H}:(ow-iw)/2:(oh-ih)/2:black' if W>H else f',crop={W}:{H}:(iw-ow)/2:(ih-oh)/2' return decoded_frames(p,192 if W>H else 108,108 if W>H else 192,vf,150)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104{ "ufq4lalz37lzxl6v.mov": { "staged_path": "/root/Desktop/memories/video2/ufq4lalz37lzxl6v.mov", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/Golf Swings/IMG_7039.MOV", "role": "Distractor \u2014 golfer / missed shot", "sha256": "557ea9e59871f8ae8fc38fa6c0db994a30792556b3d73ef1489db1206cfe42e1", "bytes": 33138797, "width": 3840, "height": 2160, "duration": 11.305, "sample_aspect_ratio": "1:1", "side_data_list": [ { "side_data_type": "Display Matrix", "displaymatrix": "\n00000000: 0 65536 0\n00000001: -65536 0 0\n00000002: 141557760 0 1073741824\n", "rotation": -90 } ] }, "h9vzu5l6oe6m5exg.mp4": { "staged_path": "/root/Desktop/archive/video3/h9vzu5l6oe6m5exg.mp4", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/BRoll/coffee-beans-closeup-4k.mp4", "role": "Target 1 \u2014 roasted beans", "sha256": "ea4d290e4cc4fedd8f6bec568e54a307dcbdfaff69f8352fd1c9b2a06cab510a", "bytes": 33451395, "width": 4096, "height": 2160, "duration": 17.784433, "sample_aspect_ratio": "1:1", "side_data_list": [] }, "vcsekwbb9329k1kp.mp4": { "staged_path": "/root/Desktop/videos/video1/vcsekwbb9329k1kp.mp4", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/ColorChart/chart-daylight-5600k-0ev-rec709.mp4", "role": "Distractor \u2014 color chart", "sha256": "ef0100ebab59169f8a320adf3d9e703edad06b355bdea03b57586dbf0c129960", "bytes": 87694, "width": 3840, "height": 2160, "duration": 10.0, "sample_aspect_ratio": "1:1", "side_data_list": [] }, "d338nkiq7nsu64bz.mp4": { "staged_path": "/root/Desktop/archive/video3/old/d338nkiq7nsu64bz.mp4", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/BRoll/moka-pot-brewing-4k.mp4", "role": "Distractor \u2014 moka pot", "sha256": "f2f61f324e6dc125b7f779c848e0e73abf5ca4e9428eda659336a88c91af54c8", "bytes": 39926889, "width": 3840, "height": 2160, "duration": 30.36, "sample_aspect_ratio": "1:1", "side_data_list": [] }, "bd9lhaznndgrhv7r.mp4": { "staged_path": "/root/Desktop/videos/video1/raw/bd9lhaznndgrhv7r.mp4", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/BRoll/pouring-coffee-carafe-4k.mp4", "role": "Target 2 \u2014 espresso dispensing into clear glass", "sha256": "b20436e83fbd2845229990b63e27cb2904ee0db080a619d8ae4ec979d4d0a776", "bytes": 43861265, "width": 3840, "height": 2160, "duration": 34.52, "sample_aspect_ratio": "1:1", "side_data_list": [] }, "ro67g08ycf1dd2gf.mov": { "staged_path": "/root/Desktop/memories/video2/extras/ro67g08ycf1dd2gf.mov", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/BRoll/hands-barista-latte-art-4k.mov", "role": "Distractor \u2014 latte art", "sha256": "1f6d81b67170901053b97869bb268ecd022e5a19118655a32f90517b950d7dc5", "bytes": 19301403, "width": 3872, "height": 2160, "duration": 10.466667, "sample_aspect_ratio": "1:1", "side_data_list": [] }, "k0mqeicldmxvpuxd.mp4": { "staged_path": "/root/Desktop/videos/video1/k0mqeicldmxvpuxd.mp4", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/Balls falling/basketball-conditioning-fort-belvoir.mp4", "role": "Distractor \u2014 basketball", "sha256": "4c66d01717b7592693d1d160aeea9494b2cb7647a125bb20d42ab4ccce27369a", "bytes": 19536528, "width": 3840, "height": 2160, "duration": 15.541667, "sample_aspect_ratio": "1:1", "side_data_list": [] }, "0d5vd03ud8jkctos.mp4": { "staged_path": "/root/Desktop/memories/video2/0d5vd03ud8jkctos.mp4", "local_source": "/Users/sidsantbak/Documents/ChatGPT/StudioWorld/video-tasks/BRoll/hands-cup-pickup-4k.mp4", "role": "Target 3 \u2014 white cup/spoon/saucer outside", "sha256": "e9ba1185e7135cab1caa15ee156f2c168e83db04e78ecb54ea870181817fe88c", "bytes": 7366009, "width": 3840, "height": 2160, "duration": 7.338, "sample_aspect_ratio": "1:1", "side_data_list": [] }}123456#!/bin/shset -eu# Operator evidence is delivered only to the isolated grader.i=0while [ ! -s /tests/operator-evidence-ready.json ] && [ "$i" -lt 150 ]; do sleep 2; i=$((i+1)); donepython3 /tests/verify.py --workspace / --report-dir /logs/verifier12345{ "runtime_version": "20261016.2", "queue_exports": [], "weights_unchanged": true}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172"""Private deterministic grading runtime. Never emit a task reward for grader errors."""import json,math,shutil,subprocess,hashlibfrom pathlib import Pathclass VerifierInfrastructureError(RuntimeError):pass
def preflight(assets,access): for command in ['ffmpeg','ffprobe','filmcraft-cli','fc-match']: if not shutil.which(command):raise VerifierInfrastructureError('Required grading tool missing: '+command) for package in ['numpy','PIL']: try:__import__(package) except ImportError as e:raise VerifierInfrastructureError('Required grading dependency missing: '+package) from e trace=assets/'operator-trajectory.json' if not trace.is_file():raise VerifierInfrastructureError('Private operator trajectory missing') data=json.loads(trace.read_text()) if not isinstance(data.get('steps'),list):raise VerifierInfrastructureError('Invalid private trajectory schema') if access=='gui': try:__import__('cv2') except ImportError as e:raise VerifierInfrastructureError('Required GUI grading dependency missing: cv2') from e if not shutil.which('tesseract'):raise VerifierInfrastructureError('Required GUI grading tool missing: tesseract') missing=[] for step in data['steps']: for result in step.get('observation',{}).get('results',[]): for part in result.get('content',[]): if part.get('type')=='image' and part.get('source',{}).get('path'): name=Path(part['source']['path']).name if not (assets/'operator-screenshots'/name).is_file():missing.append(name) if missing:raise VerifierInfrastructureError('Missing private delivered screenshots: '+', '.join(sorted(set(missing))[:10])) ready=assets/'operator-evidence-ready.json' if ready.exists(): declared=json.loads(ready.read_text()) if declared.get('trajectory_sha256')!=hashlib.sha256(trace.read_bytes()).hexdigest() or not declared.get('screenshots_complete'):raise VerifierInfrastructureError('Private evidence ready marker does not match supplied trajectory') return {'trajectory_sha256':hashlib.sha256(trace.read_bytes()).hexdigest(),'access':access}
def validate_report(result): total=earned=0 for key,row in result['rubric'].items(): weights=sum(c['possible'] for c in row['checks']) if not math.isclose(weights,row['possible'],abs_tol=1e-5):raise VerifierInfrastructureError('Rubric weight mismatch: '+key) for c in row['checks']: if c['state'] not in ['met','unmet']:raise VerifierInfrastructureError('Unresolved weighted criterion: '+key+'/'+c['id']) if not str(c.get('evidence','')).strip():raise VerifierInfrastructureError('Missing check evidence: '+key+'/'+c['id']) points=sum(c['possible'] for c in row['checks'] if c['state']=='met') if not math.isclose(points,row['earned'],abs_tol=1e-5):raise VerifierInfrastructureError('Earned points mismatch: '+key) total+=row['possible'];earned+=points if not math.isclose(total,100,abs_tol=1e-5) or not math.isclose(earned,result['resolved_score'],abs_tol=1e-5):raise VerifierInfrastructureError('Score/weight total mismatch') if result.get('unresolved_points')!=0:raise VerifierInfrastructureError('Final reward cannot contain unresolved weighted checks') return result
def select_project(required): if required.is_file():return required # Exact stem without the app suffix is a filename error, not absent editing work. alternate=required.with_suffix('') if alternate.is_file(): try: if json.loads(alternate.read_text()).get('format')=='filmcraft.project':return alternate except (ValueError,OSError):pass return required
def cli_main(evaluate,default_assets): import argparse p=argparse.ArgumentParser();p.add_argument('--workspace',type=Path,required=True);p.add_argument('--report-dir',type=Path,required=True);p.add_argument('--assets',type=Path,default=default_assets);p.add_argument('--access',choices=['gui','terminal']);a=p.parse_args();a.report_dir.mkdir(parents=True,exist_ok=True) for name in ['reward.json','reward.txt','infrastructure-error.json']:(a.report_dir/name).unlink(missing_ok=True) try: access=a.access or json.loads((a.assets/'access.json').read_text())['access'];receipt=preflight(a.assets,access) result=validate_report(evaluate(a.workspace,a.report_dir,a.assets,access));result['grading_runtime']={'version':'20261016.2',**receipt} (a.report_dir/'rubric.json').write_text(json.dumps(result,indent=2)+'\n') (a.report_dir/'reward.json').write_text(json.dumps({'reward':result['resolved_score']/100,'score_points':result['resolved_score'],'unresolved_points':0})+'\n') print(json.dumps({'score_range':result['score_range'],'policy':result.get('policy')})) except Exception as e: for name in ['reward.json','reward.txt']:(a.report_dir/name).unlink(missing_ok=True) (a.report_dir/'infrastructure-error.json').write_text(json.dumps({'classification':'verifier_error','error_type':type(e).__name__,'error':str(e),'task_reward_published':False},indent=2)) raise123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164"""Content formats v4: artifact grading with unresolved genuine action/native evidence."""import argparse,json,math,tempfile,shutil,subprocessfrom pathlib import Pathfrom verifier_runtime import select_projectimport numpy as npfrom PIL import Imagefrom deterministic_checks import GradingError,require_completeimport footage_backend as backendfrom media_helpers import digest,decoded_frames,geometry,val,TICKSEXPORTS=[('final01horizontal-sample.mp4',1920,1080,True),('final01-vertical-sample.mp4',1080,1920,True),('final01horizontal.mp4',1920,1080,False),('final01-vertical.mp4',1080,1920,False)]POINTS=dict(zip(['a','c','d']+list('efghijklmnopqr'),[2,4,4,6,6,9,12,6,8,4,8,12,3,4,4,3,5]))LABELS=dict(zip(POINTS,['Filmcraft use','Correct imports','Editable footage sequences','Visual identification','Native target order and no extra footage','First five seconds normal speed','Four exports source ranges','Cuts and duration','H.264 MP4 dimensions and 30 fps','Four names and output directory','Horizontal fit and centered portrait crop','Editable footage/text and source links','Clean exports without watermark','Exact white DejaVu Sans wording','50 percent effective text opacity','Fully visible legible wording','Continuous watermark visibility']))assert sum(POINTS.values())==100TEXT='FOR SAMPLE VIEW ONLY'
def evaluate(workspace,report_dir,assets,access): report_dir.mkdir(parents=True,exist_ok=True);out=workspace/'root/Desktop/output';results=[] for filename,W,H,sample in EXPORTS: with tempfile.TemporaryDirectory() as temp: r=backend.evaluate(workspace,Path(temp),assets,access,filename,W,H,sample) dest=report_dir/filename;dest.mkdir(exist_ok=True) for p in Path(temp).glob('native-inspection.*'):shutil.copy2(p,dest/p.name) results.append(r) rows={k:{'requirement':LABELS[k],'possible':pts,'checks':[]} for k,pts in POINTS.items()} def add(k,id,pts,state,evidence):rows[k]['checks'].append({'id':id,'possible':pts,'state':state,'evidence':str(evidence)}) def copyrow(k,source,index=0,factor=1,prefix=''): for c in results[index]['rubric'][source]['checks']:add(k,prefix+c['id'],c['possible']*factor,c['state'],c['evidence']) for k in ['a','c','d']:copyrow(k,k) copyrow('e','e',factor=.75) for index,c in enumerate(results[0]['rubric']['f']['checks']): states=[r['rubric']['f']['checks'][index]['state'] for r in results] pts=1 if c['id'].startswith('position') else 3 add('f',c['id'],pts,'unmet' if 'unmet' in states else 'unknown' if 'unknown' in states else 'met',states) for index,c in enumerate(results[0]['rubric']['g']['checks']): states=[r['rubric']['g']['checks'][index]['state'] for r in results] add('g',c['id'],c['possible'],'unmet' if 'unmet' in states else 'unknown' if 'unknown' in states else 'met',states) for c in results[0]['rubric']['i']['checks']: if c['id'].startswith('native'):add('i',c['id'],1,c['state'],c['evidence']) project=out/'proj-task-01.fcproj';doc={} required_project=project;project=select_project(project) try:doc=json.loads(project.read_text()) except Exception:pass items=doc.get('project',{}).get('items',{});seqs=[it['kind']['Sequence'] for it in items.values() if 'Sequence' in it.get('kind',{})] graphs=[] for s in seqs: tracks=s.get('video_tracks',[]);solo=any(t.get('solo') for t in tracks) for track in tracks: if not track.get('enabled',True) or solo and not track.get('solo'):continue for c in track.get('items',[]): if not c.get('enabled',True):continue for e in c.get('effects',[]): if e.get('effect')=='graphic_text' and e.get('enabled',True):graphs.append({'clip':c,'effect':e,'width':s.get('settings',{}).get('width'),'height':s.get('settings',{}).get('height')}) media={} manifest=json.loads((assets/'source-manifest.json').read_text()) for id,item in items.items(): m=item.get('kind',{}).get('Media',{});path=m.get('media',{}).get('File',{}).get('path') if path: p=workspace/path.lstrip('/') if Path(path).is_absolute() else project.parent/path if p.is_file() and digest(p) in [v['sha256'] for v in manifest.values()]:media[id]=m def state(ok,present):return 'met' if ok else 'unmet' for ix,((filename,W,H,sample),r) in enumerate(zip(EXPORTS,results)): prefix=filename+'/';present=(out/filename).is_file();export=r['export'];matched=export['segment_matches'] copyrow('h','h',ix,.2,prefix) for c in r['rubric']['i']['checks']: if c['id'].startswith('export'):add('i',prefix+c['id'],.25,c['state'],c['evidence']) copyrow('j','j',ix,.25,prefix) add('k',prefix+'name',.5,'met' if present else 'unmet','Exact filename');add('k',prefix+'directory',.5,'met' if present else 'unmet','Original Desktop/output path') selected=[s for s in seqs if (s.get('settings',{}).get('width'),s.get('settings',{}).get('height'))==(W,H)] for si,name in enumerate(backend.SOURCES): geoms=[] for s in selected: for track in s.get('video_tracks',[]): if not track.get('enabled',True):continue for c in track.get('items',[]): if not c.get('enabled',True):continue id=str(c.get('item'));m=media.get(id) if not m:continue path=m.get('media',{}).get('File',{}).get('path','');p=workspace/path.lstrip('/') if Path(path).is_absolute() else project.parent/path if digest(p)==manifest[name]['sha256']:geoms.append(geometry(c,m,W,H)) known=bool(geoms) and all(g and 'sx' in g for g in geoms) proportional=known and all(abs(g['sx']-g['sy'])<1e-5 for g in geoms) centered=known and all(abs(g['x']-(W-g['w'])/2)<=2 and abs(g['y']-(H-g['h'])/2)<=2 for g in geoms) framed=known and all(abs((max if W>H else min)(g['w']/W,g['h']/H)-1)<.003 for g in geoms) if W>H: contained=known and all(g['x']>=-2 and g['y']>=-2 and g['x']+g['w']<=W+2 and g['y']+g['h']<=H+2 for g in geoms) add('l',prefix+name+'/full-image',1/3,state(matched[si] and framed and contained,present),geoms) add('l',prefix+name+'/proportional',1/3,state(matched[si] and proportional and contained,present),geoms) else: add('l',prefix+name+'/fill',1/6,state(matched[si] and framed,present),geoms) add('l',prefix+name+'/center',1/6,state(matched[si] and centered,present),geoms) add('l',prefix+name+'/proportional',1/3,state(matched[si] and proportional,present),geoms) if not sample:add('n',filename,1.5,state(all(matched) and export['decoded_frames']==450,present),'All-frame clean/source comparison') # Native project components distinct from rendered watermark quality. for c in results[0]['rubric']['m']['checks']: pts=2 if c['id']=='native-load' else 3 if c['id']=='editable-three-source-timeline' else c['possible'] states=[next(x for x in r['rubric']['m']['checks'] if x['id']==c['id'])['state'] for r in results] add('m',c['id'],pts,'unmet' if 'unmet' in states else 'unknown' if 'unknown' in states else 'met',states) add('m','editable-watermark-text',2,'met' if project.is_file() and len(graphs)>=2 and all(any(x['state']=='met' for x in r['rubric']['m']['checks'] if x['id']=='native-load') for r in results) else 'unmet','Successful native reopen and editable graphic_text effects in both orientations') watermark_evidence={} for ix in [0,1]: filename,W,H,sample=EXPORTS[ix];p=out/filename;clean=out/EXPORTS[ix+2][0];present=p.is_file();prefix=filename+'/' native_graphs=[g for g in graphs if (g['width'],g['height'])==(W,H)] metadata=[{'text':val(g['effect'],'text'),'font':val(g['effect'],'font'),'color':val(g['effect'],'fill_color'),'opacity':val(g['effect'],'opacity'),'start':g['clip'].get('start',0)/TICKS,'duration':g['clip'].get('duration',0)/TICKS} for g in native_graphs] exact_native=any(m['text']==TEXT for m in metadata);font_native=any(m['font']=='DejaVu Sans' for m in metadata) evidence={'native_text_effects':metadata,'ocr':[],'glyph_masks':[]};ocr_ok=False;continuous=False;white_ok=False;opacity_ok=False if present and clean.is_file() and results[ix]['export']['decoded_frames']==450 and results[ix+2]['export']['decoded_frames']==450: sample_frames=decoded_frames(p,384 if W>H else 216,216 if W>H else 384);clean_frames=decoded_frames(clean,384 if W>H else 216,216 if W>H else 384) if sample_frames.shape==clean_frames.shape: diff=sample_frames.astype(float)-clean_frames.astype(float);active=(diff.mean(axis=3)>5)&(diff.max(axis=3)-diff.min(axis=3)<100) counts=active.sum(axis=(1,2));continuous=bool((counts>30).all());evidence['all_frame_changed_pixels']={'min':int(counts.min()),'max':int(counts.max()),'frames':len(counts)} # Positive white-overlay residual across channels; opacity estimate includes antialiasing. linear=lambda v:np.where(v<=.04045,v/12.92,((v+.055)/1.055)**2.4) clean_linear=linear(clean_frames.astype(float)/255);sample_linear=linear(sample_frames.astype(float)/255) denom=1-clean_linear;alpha=(sample_linear-clean_linear)/np.maximum(denom,.001);mask=active & (denom.min(axis=3)>.15) estimates=alpha.mean(axis=3)[mask];channel_residual=alpha.std(axis=3)[mask] if len(estimates): estimate=float(np.quantile(estimates,.90));residual=float(np.median(channel_residual));evidence['white_alpha_estimate']={'p95':estimate,'median_channel_residual':residual} white_ok=residual<.10;opacity_ok=.40<=estimate<=.60 and white_ok if shutil.which('tesseract'): reference_mask=None for frame in [0,149,150,299,300,449]: img=report_dir/(filename+f'-frame-{frame}.png') # Decode the original frame at full resolution; subtraction removes the busy moving background before OCR. aa=decoded_frames(p,W,H,fr'select=eq(n\,{frame})',1)[0].astype(float);bb=decoded_frames(clean,W,H,fr'select=eq(n\,{frame})',1)[0].astype(float) residual=np.clip((aa-bb).mean(axis=2)*5,0,255);Image.fromarray(np.uint8(255-residual)).save(img) la=linear(aa/255);lb=linear(bb/255);glyph_alpha=np.clip(((la-lb)/np.maximum(1-lb,.04)).mean(axis=2),0,1);glyph_mask=glyph_alpha>.15 if reference_mask is None:reference_mask=glyph_mask mask_iou=float((glyph_mask&reference_mask).sum()/max(1,(glyph_mask|reference_mask).sum()));retained=float((glyph_mask&reference_mask).sum()/max(1,reference_mask.sum()));evidence['glyph_masks'].append({'frame':frame,'reference_iou':mask_iou,'reference_retained':retained}) rr=subprocess.run(['tesseract',str(img),'stdout','--psm','11'],capture_output=True,timeout=30);recognized=' '.join(rr.stdout.decode(errors='replace').split()) if TEXT not in recognized: # Fixed threshold removes codec noise; exact text is still required with native corroboration. thresholded=report_dir/(filename+f'-frame-{frame}-threshold.png');Image.open(img).point(lambda v:0 if v<220 else 255).save(thresholded) rr=subprocess.run(['tesseract',str(thresholded),'stdout','--psm','11'],capture_output=True,timeout=30);alternative=' '.join(rr.stdout.decode(errors='replace').split()) if TEXT in alternative:recognized=alternative evidence['ocr'].append({'frame':frame,'text':recognized}) ocr_ok=bool(evidence['ocr']) and TEXT in evidence['ocr'][0]['text'] and all(x['reference_retained']>=.95 and x['reference_iou']>=.70 for x in evidence['glyph_masks']) # Exact first-frame OCR plus stable independently decoded glyph masks avoids false deductions from background-dependent OCR errors. watermark_evidence[filename]=evidence add('o',prefix+'wording',1,state(exact_native and ocr_ok,present),evidence) add('o',prefix+'font',.5,'met' if font_native and ocr_ok else 'unmet','Native DejaVu Sans setting and exact rendered wording; '+str(metadata)) add('o',prefix+'white',.5,state(white_ok and exact_native,present),evidence) add('p',filename,2,state(opacity_ok and exact_native,present),evidence) add('q',prefix+'fully-visible',.75,state(ocr_ok,present),evidence) add('q',prefix+'legible',.75,state(ocr_ok,present),evidence) intervals=[(m['start'],m['start']+m['duration']) for m in metadata if m['text']==TEXT];coverage=0 for a,b in sorted(intervals): if a<=coverage+1/30:coverage=max(coverage,b) add('r',filename,2.5,state(continuous and ocr_ok and coverage>=15-1/30,present),evidence) submission=results[0]['submission_sha256'];rp=report_dir/'operator-review.json';review=json.loads(rp.read_text()) if rp.exists() else {} reviewed=bool(submission) and review.get('submission_sha256')==submission and bool(review.get('reviewer')) and bool(review.get('evidence')) for k,row in rows.items(): assert math.isclose(sum(c['possible'] for c in row['checks']),row['possible']),k row['earned']=sum(c['possible'] for c in row['checks'] if c['state']=='met');row['unresolved']=sum(c['possible'] for c in row['checks'] if c['state']=='unknown');row['status']='unknown' if row['unresolved'] else 'met' if math.isclose(row['earned'],row['possible']) else 'partially_met' if row['earned'] else 'unmet' earned=sum(r['earned'] for r in rows.values());unknown=sum(r['unresolved'] for r in rows.values());policy='pass' if access=='terminal' else review.get('policy','unknown') if reviewed else 'unknown' if policy not in ['pass','fail','unknown']:policy='unknown' result={'rubric_version':'01-A-content-formats-v4','rubric':rows,'resolved_score':round(earned,6),'unresolved_points':round(unknown,6),'score_range':[round(earned,6),round(earned+unknown,6)],'policy':policy,'export_checks':[r['export'] for r in results],'watermark_evidence':watermark_evidence,'submission_sha256':submission,'operator_review_applied':reviewed,'limitations':['Checks use fixed native schema, decoded-frame tolerances and private action/screenshot evidence.','Unsupported structures or missing grading evidence raise a verifier error and withhold reward.','Fixture and saved-attempt regression results are recorded separately from oracle validation.']} require_complete(result) (report_dir/'rubric.json').write_text(json.dumps(result,indent=2)+'\n');(report_dir/'reward.json').write_text(json.dumps({'reward':earned/100,'score_points':earned,'unresolved_points':unknown,'possible_upper_bound':(earned+unknown)/100},indent=2)+'\n') (report_dir/'review-template.json').write_text(json.dumps({'reviewer':'','evidence':[],'submission_sha256':submission,'policy':'unknown','checks':{k+'/'+c['id']:{'state':'unknown','evidence':''} for k,row in rows.items() for c in row['checks'] if c['state']=='unknown'}},indent=2)+'\n');return result
def main(): from verifier_runtime import cli_main cli_main(evaluate,Path(__file__).resolve().parent)if __name__=='__main__':main()12345678910111213141516171819202122232425262728293031323334353637383940414243444546# golf-08-gary-player-driver
Friction tracer task. Expressions allowed. One required render: /root/edit/traced/shot_01.mp4; SVG: /root/edit/svg/shot_01.svg. Output 1080×1920, 30 fps, H.264, full source duration, no audio stream. No Shotcut project or second export is graded.
| Criterion | Weight | Check ||---|---:|---|| Tracer SVG | 8% | Parseable transparent vector paths, no embedded footage or scripts. || Line position and camera alignment | 38% | Every output frame compared to the time-aligned, scaled reference SVG; symmetric Euclidean ±10px margin, ±20px for uncertain frames. Pixels inside the margin receive full position credit. || Visibility, growth, holds and gaps | 18% | Correct visible/blank states and progressive revealed footprint. || Tracked endpoint | 12% | Full credit within the same ±10px / ±20px margin; falls to zero at twice that distance. || Appearance | 8% | Red #FF0000, 9px stroke, no fill; reference footprint and colour checks. || Footage/audio preservation | 8% | Scaled original background remains intact; output must contain no audio stream; tolerated line-position zone excluded from background checks. || Friction render format | 8% | Decodable full-length 1080×1920, 30 fps H.264 render. |
Uncertain frames receive 0.35 weight. Missing/corrupt/nonconforming render or logged terminal use gives zero. Geometry precision and recall are both checked to penalize missing path sections and extra lines outside the margin. Render frames map to source reference timestamps; original SVG/JSON/CSV metadata remain preserved in tests/reference. Native project files are not inspected or graded. GUI provenance can be reviewed from the trajectory.
Clubface tracer follows the entire swing, including backswing; no-before-impact restriction applies only to ball tracers.
Swing 1: anchor f77, top f98, impact f107, grow to f186, hold to f186.
Additional host VLM grading: gpt-6-luna reviews up to 24 timestamped reference/candidate frame pairs. Tracking alignment 35%, growth/timing 25%, appearance 20%, footage preservation 20%. Returns a separate 0–1 score with evidence and limitations. No native project inspection. The SVG reward stays unchanged. API errors are reported separately.
Export grading update: wrong filename or duration does not zero the visual score. Any playable final MP4 under /root/edit is compared at the original timestamps; missing frames lose visual credit and excess duration reduces export compliance. File/format errors reduce only the 8% export category.
## User-annotated tracer intervals (October 9, 2026)
These inclusive zero-based source-frame intervals supersede older onset/hold timing. Convert by source FPS when exporting at 30 fps. Timestamp interval correctness receives 10%, with 8% retained for reference growth/timing (18% total). The interval score checks onset (±3 source frames), visibility, absence outside intervals and a 20% hold-area band when a stop is specified.
```json{ "schema_version": 1, "frame_index_base": 0, "frame_domain": "source", "bounds": "inclusive", "onset_tolerance_frames": 3, "hold_area_tolerance_fraction": 0.2, "annotation_source": "User annotations, October 9 2026", "intervals": [ { "id": "tracer_1", "start_frame": 78, "visible_end_frame": null } ]}```1234567FROM refresh-golf-gui-base:20261005RUN rm -rf /root/media /root/reference /root/edit /opt/t16-reference && mkdir -p /root/edit/traced /root/edit/svgCOPY media/ /root/media/RUN test -s /root/media/source.mp4 && python3 -c "import cv2,numpy"ENV APP=frictionWORKDIR /rootCMD ["/usr/local/bin/start-editor"]1234567891011Deliver a video of a shot tracer that follows the clubface (using the reference clubhead-centre position) in Friction. Draw the tracers in Friction. This machine has no terminal or command line; do all work through the applications’ own interfaces. You can use expressions in Friction.
Source clip: /root/media/source.mp4 (08_gary_player_driver.mp4). This task contains one video. Friction is already open; relaunch it from its launcher if needed. Shotcut is available for viewing the footage; assembly or a separate Shotcut export is not required.
1. **Tracers, in Friction.** Make a scene matching the clip’s full duration and original framing, with a 1080×1920 canvas at 30 fps. Import the clip, scaled proportionally to fill the canvas without cropping, and step through it frame by frame to find the moment the club strikes the ball. Zoom in on the clubface (using the reference clubhead-centre position). Use the Add Path tool and place points frame by frame. Draw smooth paths following the clubface position. Follow it throughout the entire swing: backswing, downswing and follow-through. Use separate segments at offscreen gaps, hold the accumulated trace during gaps without bridging unseen motion, and reset between swings. The no-tracer-before-impact rule applies only to ball tracers. Where the target disappears, extrapolate its next position from visible frames; do not invent a landing if it is not visible.
2. Give the path a thick red (#FF0000) stroke and no fill. Use **9 output pixels**, with round caps and joins. No taper, glow or fade. Add the **Sub-Path** path effect and keyframe it so the visible line grows with the target; on each growing frame its tip should sit on the clubface (using the reference clubhead-centre position). Friction expressions are allowed for these animations. Account for camera movement while preserving constant visible stroke thickness. The tracer must not alter the footage: no colour changes, crops or filters; keep the output muted and preserve the full clip duration.
3. You may save your Friction work under /root/edit/ for your own use; native project files are not graded. Render the full traced clip to **/root/edit/traced/shot_01.mp4** (1080×1920, 30 fps, H.264, muted with no audio stream). Export the scene’s transparent animated tracer path using File → Export → SVG to **/root/edit/svg/shot_01.svg**.
Author timing update (October 9, 2026): These intervals override earlier tracer onset, visibility, hold and reset instructions. Frames are inclusive and zero-based in the original source clip; convert using the original frame rate when rendering at 30 fps. Onset has a ±3-source-frame tolerance for very short encoded strokes. tracer_1: visible from frame 78 through the end of the clip. Outside these intervals, hide the tracer unless an earlier start is explicitly allowed.12345678910111213141516171819202122schema_version = "1.4"artifacts = ["/root/edit", "/logs/artifacts"][task]name = "sid/golf-08-gary-player-driver"version = "1.2.0"description = "One original golf clip; SVG-reference clubhead tracer rendered in Friction; expressions allowed"authors = []keywords = ["video-editing", "friction", "shotcut", "gui", "golf", "svg-reference"][metadata]source_filename = "08_gary_player_driver.mp4"reference_group = "clubtracer"approval_status = "approved_for_launch"[verifier]timeout_sec = 1800.0[agent]timeout_sec = 14400.0[environment]build_timeout_sec = 1800.0os = "linux"mcp_servers = [][environment.env]APP = "friction"1234567{ "geometry": 0.9999897661053466, "timing": 0.9744413723961065, "tip": 0.9794871794871794, "style": 0.866892535551556, "preservation": 0.8343877681750864}1234567891011121314151617181920212223242526272829303132333435363738394041424344# 08_gary_player_driver — clubhead tracer reference
Resumed from saved annotations. No new video was started. Target is the visible clubhead center; blur and occlusion sometimes require an estimate. This is a reference for building a verifier, not measured clubface orientation or independently verified ground truth.
| Property | Value ||---|---|| Source | 08_gary_player_driver.mp4 || Canvas | 720 × 1280 || Frame rate | 30/1 || Source / SVG frames | 187 || Duration | 6.233333 seconds || Line | Solid #ff0000, 6 native pixels, rounded ends and joins, no taper or glow || Coordinates | Source pixels, top-left origin; frame numbers zero based |
| Swing | Start | Top estimate | Impact estimate | Last growth | Hold through ||---|---:|---:|---:|---:|---:|| swing_1 | 77 | 98 | 107 | 186 | 186 |
## Files
| File | Purpose ||---|---|| reference.mp4 | Full source video with red tracer rendered at source frame rate; source audio preserved when present || source.mp4 | Original video copy || tracer_animated.svg | Transparent looping overlay on the full source timeline || svg_frames/000000.svg … | Standalone transparent SVG for every source frame, including inactive frames || trajectory.json | All frame times, path definitions, source anchors, camera matrices, segment trim, uncertainty, and swing boundaries || frames.csv | Compact per-frame timing and phase table || verifier.html + data.js | Source video with synchronized SVG overlay, frame stepping, speed control, trim and position readouts || contact_sheet.jpg | Rendered milestone previews |
## Timing and Trim Paths
For each path: Trim Start=0, Trim End=100*revealed_length/length. Discrete changes at frame PTS. Hold accumulated segments during offscreen gaps without drawing a connecting path; hide all paths after swing hold_until_frame. Global trim resets per swing.
Use the supplied path `d`, `stroke-dasharray = length length`, and `stroke-dashoffset = length - revealed_length`. Apply each frame's camera matrix to every path. Stroke width in reference coordinates is `6 / camera_scale`, so it remains 6 pixels in the source image. The path uses camera-reference coordinates; `tip_xy` and saved anchors use source-image coordinates. Source PTS controls playback; SVG animation updates discretely at those timestamps.
Offscreen gaps contain no inferred connector. Previously revealed segments remain visible through the gap. Occluded on-screen portions use the saved estimates and carry uncertainty labels. Motion blur can make the exact head center ambiguous. Medium confidence means guide-supported, not a calibrated accuracy score. Impact/top labels are frame estimates. The studio clip's first trace clears after frame 196 before the second swing starts.
## Reproducibility
Original guides remain in `_work/guides.json`; applied corrections are saved in `../reviewed_guides.json`. Rebuild with `/Users/sidsantbak/Desktop/project-fcpx/.shottracer-venv/bin/python ../build_exports.py` from this folder. Saved extracted frames and camera files are retained under `_work` in the export root. Original pre-muting source SHA-256: `f3525579033a60f2172319378c3702b5fdbd31053526cfcba1761d7f50a81d3c`.
Task packaging update: all MP4 assets have audio removed without re-encoding video. Current packaged source checksum and original checksum are recorded in trajectory.json and tests/source-provenance.json.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188frame,time_seconds,duration_seconds,swing,phase,visible,trim_percent,tip_xy,confidence,notes
0,0.0,0.033333,,inactive,False,0,,not_applicable,[]
1,0.033333,0.033334,,inactive,False,0,,not_applicable,[]
2,0.066667,0.033333,,inactive,False,0,,not_applicable,[]
3,0.1,0.033333,,inactive,False,0,,not_applicable,[]
4,0.133333,0.033334,,inactive,False,0,,not_applicable,[]
5,0.166667,0.033333,,inactive,False,0,,not_applicable,[]
6,0.2,0.033333,,inactive,False,0,,not_applicable,[]
7,0.233333,0.033334,,inactive,False,0,,not_applicable,[]
8,0.266667,0.033333,,inactive,False,0,,not_applicable,[]
9,0.3,0.033333,,inactive,False,0,,not_applicable,[]
10,0.333333,0.033334,,inactive,False,0,,not_applicable,[]
11,0.366667,0.033333,,inactive,False,0,,not_applicable,[]
12,0.4,0.033333,,inactive,False,0,,not_applicable,[]
13,0.433333,0.033334,,inactive,False,0,,not_applicable,[]
14,0.466667,0.033333,,inactive,False,0,,not_applicable,[]
15,0.5,0.033333,,inactive,False,0,,not_applicable,[]
16,0.533333,0.033334,,inactive,False,0,,not_applicable,[]
17,0.566667,0.033333,,inactive,False,0,,not_applicable,[]
18,0.6,0.033333,,inactive,False,0,,not_applicable,[]
19,0.633333,0.033334,,inactive,False,0,,not_applicable,[]
20,0.666667,0.033333,,inactive,False,0,,not_applicable,[]
21,0.7,0.033333,,inactive,False,0,,not_applicable,[]
22,0.733333,0.033334,,inactive,False,0,,not_applicable,[]
23,0.766667,0.033333,,inactive,False,0,,not_applicable,[]
24,0.8,0.033333,,inactive,False,0,,not_applicable,[]
25,0.833333,0.033334,,inactive,False,0,,not_applicable,[]
26,0.866667,0.033333,,inactive,False,0,,not_applicable,[]
27,0.9,0.033333,,inactive,False,0,,not_applicable,[]
28,0.933333,0.033334,,inactive,False,0,,not_applicable,[]
29,0.966667,0.033333,,inactive,False,0,,not_applicable,[]
30,1.0,0.033333,,inactive,False,0,,not_applicable,[]
31,1.033333,0.033334,,inactive,False,0,,not_applicable,[]
32,1.066667,0.033333,,inactive,False,0,,not_applicable,[]
33,1.1,0.033333,,inactive,False,0,,not_applicable,[]
34,1.133333,0.033334,,inactive,False,0,,not_applicable,[]
35,1.166667,0.033333,,inactive,False,0,,not_applicable,[]
36,1.2,0.033333,,inactive,False,0,,not_applicable,[]
37,1.233333,0.033334,,inactive,False,0,,not_applicable,[]
38,1.266667,0.033333,,inactive,False,0,,not_applicable,[]
39,1.3,0.033333,,inactive,False,0,,not_applicable,[]
40,1.333333,0.033334,,inactive,False,0,,not_applicable,[]
41,1.366667,0.033333,,inactive,False,0,,not_applicable,[]
42,1.4,0.033333,,inactive,False,0,,not_applicable,[]
43,1.433333,0.033334,,inactive,False,0,,not_applicable,[]
44,1.466667,0.033333,,inactive,False,0,,not_applicable,[]
45,1.5,0.033333,,inactive,False,0,,not_applicable,[]
46,1.533333,0.033334,,inactive,False,0,,not_applicable,[]
47,1.566667,0.033333,,inactive,False,0,,not_applicable,[]
48,1.6,0.033333,,inactive,False,0,,not_applicable,[]
49,1.633333,0.033334,,inactive,False,0,,not_applicable,[]
50,1.666667,0.033333,,inactive,False,0,,not_applicable,[]
51,1.7,0.033333,,inactive,False,0,,not_applicable,[]
52,1.733333,0.033334,,inactive,False,0,,not_applicable,[]
53,1.766667,0.033333,,inactive,False,0,,not_applicable,[]
54,1.8,0.033333,,inactive,False,0,,not_applicable,[]
55,1.833333,0.033334,,inactive,False,0,,not_applicable,[]
56,1.866667,0.033333,,inactive,False,0,,not_applicable,[]
57,1.9,0.033333,,inactive,False,0,,not_applicable,[]
58,1.933333,0.033334,,inactive,False,0,,not_applicable,[]
59,1.966667,0.033333,,inactive,False,0,,not_applicable,[]
60,2.0,0.033333,,inactive,False,0,,not_applicable,[]
61,2.033333,0.033334,,inactive,False,0,,not_applicable,[]
62,2.066667,0.033333,,inactive,False,0,,not_applicable,[]
63,2.1,0.033333,,inactive,False,0,,not_applicable,[]
64,2.133333,0.033334,,inactive,False,0,,not_applicable,[]
65,2.166667,0.033333,,inactive,False,0,,not_applicable,[]
66,2.2,0.033333,,inactive,False,0,,not_applicable,[]
67,2.233333,0.033334,,inactive,False,0,,not_applicable,[]
68,2.266667,0.033333,,inactive,False,0,,not_applicable,[]
69,2.3,0.033333,,inactive,False,0,,not_applicable,[]
70,2.333333,0.033334,,inactive,False,0,,not_applicable,[]
71,2.366667,0.033333,,inactive,False,0,,not_applicable,[]
72,2.4,0.033333,,inactive,False,0,,not_applicable,[]
73,2.433333,0.033334,,inactive,False,0,,not_applicable,[]
74,2.466667,0.033333,,inactive,False,0,,not_applicable,[]
75,2.5,0.033333,,inactive,False,0,,not_applicable,[]
76,2.533333,0.033334,,inactive,False,0,,not_applicable,[]
77,2.566667,0.033333,swing_1,backswing,False,0.0,"[232.0, 737.0000000000001]",medium,[]
78,2.6,0.033333,swing_1,backswing,True,0.726796970397504,"[212.0, 735.0]",medium,[]
79,2.633333,0.033334,swing_1,backswing,True,1.3072150652723245,"[196.0, 733.9999999999999]",medium,[]
80,2.666667,0.033333,swing_1,backswing,True,1.6537107733514012,"[186.99999999999997, 730.9999999999998]",medium,[]
81,2.7,0.033333,swing_1,backswing,True,1.8436718275694952,"[182.99999999999997, 728.0]",medium,[]
82,2.733333,0.033334,swing_1,backswing,True,2.085791705592665,"[186.0, 722.0]",medium,[]
83,2.766667,0.033333,swing_1,backswing,True,2.772587318230638,"[199.0, 708.0000000000001]",medium,[]
84,2.8,0.033333,swing_1,backswing,True,3.996185672973675,"[214.99999999999997, 677.9999999999999]",medium,[]
85,2.833333,0.033334,swing_1,backswing,True,5.543660200122701,"[239.99999999999997, 642.9999999999999]",medium,[]
86,2.866667,0.033333,swing_1,backswing,True,7.4214000275470795,"[271.0, 601.0]",medium,[]
87,2.9,0.033333,swing_1,backswing,True,9.619905092905277,"[310.0, 554.0]",low,"[""body_overlap""]"
88,2.933333,0.033334,swing_1,backswing,True,12.154648123399406,"[365.0, 510.00000000000006]",low,"[""body_overlap""]"
89,2.966667,0.033333,swing_1,backswing,True,14.632241225786554,"[418.0, 465.99999999999994]",low,"[""body_overlap""]"
90,3.0,0.033333,swing_1,backswing,True,17.076191062019426,"[467.99999999999994, 420.0]",low,"[""body_overlap""]"
91,3.033333,0.033334,swing_1,backswing,True,19.315348126273854,"[511.0, 375.0]",medium,[]
92,3.066667,0.033333,swing_1,backswing,True,21.46714409612914,"[548.0000000000001, 327.9999999999999]",medium,[]
93,3.1,0.033333,swing_1,backswing,True,23.26561000611146,"[578.0, 287.99999999999994]",medium,[]
94,3.133333,0.033334,swing_1,backswing,True,24.64715785567569,"[602.0, 258.0]",medium,[]
95,3.166667,0.033333,swing_1,backswing,True,25.641337215334968,"[620.0, 237.00000000000003]",medium,[]
96,3.2,0.033333,swing_1,backswing,True,26.303596583009746,"[632.0, 223.0]",medium,[]
97,3.233333,0.033334,swing_1,backswing,True,26.684944445729755,"[639.0000000000001, 214.99999999999997]",medium,[]
98,3.266667,0.033333,swing_1,backswing,True,26.7629420442386,"[640.9999999999999, 213.99999999999994]",medium,[]
99,3.3,0.033333,swing_1,downswing,True,26.834869570815417,"[640.9999999999999, 216.00000000000003]",medium,[]
100,3.333333,0.033334,swing_1,downswing,True,27.09813980116297,"[638.9999999999998, 223.00000000000003]",medium,[]
101,3.366667,0.033333,swing_1,downswing,True,27.922368522223632,"[625.0000000000001, 241.00000000000003]",medium,[]
102,3.4,0.033333,swing_1,downswing,True,29.275287617428567,"[600.0, 269.0]",medium,[]
103,3.433333,0.033334,swing_1,downswing,True,31.5932145981016,"[554.9999999999999, 314.99999999999994]",low,"[""motion_blur""]"
104,3.466667,0.033333,swing_1,downswing,True,36.3836764741857,"[458.00000000000006, 405.9999999999999]",low,"[""motion_blur""]"
105,3.5,0.033333,swing_1,downswing,True,43.92580735347647,"[286.00000000000006, 525.0]",low,"[""motion_blur""]"
106,3.533333,0.033334,swing_1,downswing,True,50.026023396689105,"[189.99999999999997, 662.0]",low,"[""motion_blur""]"
107,3.566667,0.033333,swing_1,follow_through,True,54.832352802908844,"[291.99999999999994, 733.0]",low,"[""motion_blur""]"
108,3.6,0.033333,swing_1,follow_through,True,64.82360919997048,"[557.9999999999999, 657.0]",low,"[""motion_blur""]"
109,3.633333,0.033334,swing_1,follow_through,True,72.37522287460362,"[720.0000000000002, 527.0]",medium,[]
110,3.666667,0.033333,swing_1,offscreen_gap,True,72.37522287460362,,unobserved,"[""offscreen""]"
111,3.7,0.033333,swing_1,offscreen_gap,True,72.37522287460362,,unobserved,"[""offscreen""]"
112,3.733333,0.033334,swing_1,offscreen_gap,True,72.37522287460362,,unobserved,"[""offscreen""]"
113,3.766667,0.033333,swing_1,offscreen_gap,True,72.37522287460362,,unobserved,"[""offscreen""]"
114,3.8,0.033333,swing_1,offscreen_gap,True,72.37522287460362,,unobserved,"[""offscreen""]"
115,3.833333,0.033334,swing_1,follow_through,True,72.37522287460362,"[694.0, 190.00000000000003]",medium,[]
116,3.866667,0.033333,swing_1,follow_through,True,74.48772919996149,"[635.9999999999999, 183.0]",medium,[]
117,3.9,0.033333,swing_1,follow_through,True,76.86710297008771,"[571.0, 193.99999999999997]",medium,[]
118,3.933333,0.033334,swing_1,follow_through,True,79.10367105114102,"[513.0, 215.99999999999997]",medium,[]
119,3.966667,0.033333,swing_1,follow_through,True,80.97667511893657,"[464.9999999999999, 236.0]",medium,[]
120,4.0,0.033333,swing_1,follow_through,True,82.89767844046301,"[416.0, 257.0]",medium,[]
121,4.033333,0.033334,swing_1,follow_through,True,84.37821525164381,"[382.0, 280.0]",medium,[]
122,4.066667,0.033333,swing_1,follow_through,True,85.61089551463621,"[355.0, 301.00000000000006]",medium,[]
123,4.1,0.033333,swing_1,follow_through,True,86.65915596430499,"[332.99999999999994, 320.0]",medium,[]
124,4.133333,0.033334,swing_1,follow_through,True,87.50391005334059,"[318.00000000000006, 337.99999999999994]",medium,[]
125,4.166667,0.033333,swing_1,follow_through,True,88.0676228102302,"[308.0, 350.0000000000001]",medium,[]
126,4.2,0.033333,swing_1,follow_through,True,88.50923553821436,"[301.0, 360.0]",medium,[]
127,4.233333,0.033334,swing_1,follow_through,True,88.65825602945608,"[299.99999999999994, 364.0]",medium,[]
128,4.266667,0.033333,swing_1,follow_through,True,88.70884970979552,"[301.0, 364.99999999999994]",medium,[]
129,4.3,0.033333,swing_1,follow_through,True,88.76717045604256,"[301.0319391199788, 363.3837856565743]",medium,[]
130,4.333333,0.033334,swing_1,follow_through,True,88.88910691444632,"[301.0, 360.0]",medium,[]
131,4.366667,0.033333,swing_1,follow_through,True,89.0799400754562,"[300.15432608385083, 354.7834965620985]",medium,[]
132,4.4,0.033333,swing_1,follow_through,True,89.32817489822567,"[299.00000000000006, 348.00000000000006]",medium,[]
133,4.433333,0.033334,swing_1,follow_through,True,89.57521156536163,"[298.3136517045285, 341.17827358006144]",medium,[]
134,4.466667,0.033333,swing_1,follow_through,True,89.86984272952452,"[297.99999999999994, 333.0]",medium,[]
135,4.5,0.033333,swing_1,follow_through,True,90.29664926288048,"[298.60870427683227, 321.151583440448]",medium,[]
136,4.533333,0.033334,swing_1,follow_through,True,90.77224166511012,"[300.00000000000006, 308.00000000000006]",medium,[]
137,4.566667,0.033333,swing_1,follow_through,True,91.21571682306417,"[304.1565550909174, 296.442541041124]",medium,[]
138,4.6,0.033333,swing_1,follow_through,True,91.67721847337326,"[309.99999999999994, 285.00000000000006]",medium,[]
139,4.633333,0.033334,swing_1,follow_through,True,92.16034024926576,"[314.9587642188601, 272.5003226545865]",medium,[]
140,4.666667,0.033333,swing_1,follow_through,True,92.61157389117358,"[320.00000000000006, 261.00000000000006]",medium,[]
141,4.7,0.033333,swing_1,follow_through,True,92.99077958944274,"[325.2221131819421, 251.81129748679535]",medium,[]
142,4.733333,0.033334,swing_1,follow_through,True,93.34246269810792,"[330.5426142748147, 243.57030801425034]",medium,[]
143,4.766667,0.033333,swing_1,follow_through,True,93.67517953750071,"[335.9558905359954, 236.0255375153061]",medium,[]
144,4.8,0.033333,swing_1,follow_through,True,93.99685592981578,"[341.4519020305738, 228.92131604822018]",medium,[]
145,4.833333,0.033334,swing_1,follow_through,True,94.31486767596556,"[347.00000000000006, 222.0]",medium,[]
146,4.866667,0.033333,swing_1,follow_through,True,94.64010371133652,"[352.73104510286913, 214.96370198774267]",medium,[]
147,4.9,0.033333,swing_1,follow_through,True,94.96909508415365,"[358.6509493007601, 207.948888993635]",medium,[]
148,4.933333,0.033334,swing_1,follow_through,True,95.28761499034206,"[364.6062146965076, 201.3481089072971]",medium,[]
149,4.966667,0.033333,swing_1,follow_through,True,95.58200931356681,"[370.39534520163755, 195.55354279784243]",medium,[]
150,5.0,0.033333,swing_1,follow_through,True,95.8398949267217,"[375.99999999999994, 191.00000000000003]",medium,[]
151,5.033333,0.033334,swing_1,follow_through,True,96.07058162106031,"[381.2517506620318, 187.23099635006307]",medium,[]
152,5.066667,0.033333,swing_1,follow_through,True,96.28924527048973,"[386.31152521698976, 183.7662293965695]",medium,[]
153,5.1,0.033333,swing_1,follow_through,True,96.49461032339116,"[391.2470845160259, 180.78521265119318]",medium,[]
154,5.133333,0.033334,swing_1,follow_through,True,96.6867169568054,"[396.12812465744963, 178.46733037521003]",medium,[]
155,5.166667,0.033333,swing_1,follow_through,True,96.86807223217852,"[400.99999999999994, 176.99999999999997]",medium,[]
156,5.2,0.033333,swing_1,follow_through,True,97.04544866913523,"[405.9140743954916, 176.15006139995972]",medium,[]
157,5.233333,0.033334,swing_1,follow_through,True,97.22155151794594,"[410.82496998232375, 175.52111532070927]",medium,[]
158,5.266667,0.033333,swing_1,follow_through,True,97.39514429715891,"[415.68228161529294, 175.01825246196168]",medium,[]
159,5.3,0.033333,swing_1,follow_through,True,97.5647354451065,"[420.4219064679011, 174.53984559637075]",medium,[]
160,5.333333,0.033334,swing_1,follow_through,True,97.72879146869602,"[425.0, 174.00000000000006]",medium,[]
161,5.366667,0.033333,swing_1,follow_through,True,97.88932647392167,"[429.47092408631676, 173.39945214414578]",medium,[]
162,5.4,0.033333,swing_1,follow_through,True,98.04761321590733,"[433.88003046050403, 172.79718702573865]",medium,[]
163,5.433333,0.033334,swing_1,follow_through,True,98.20111430428844,"[438.1489551271646, 172.19810541033934]",medium,[]
164,5.466667,0.033333,swing_1,follow_through,True,98.34729733083127,"[442.2127096637603, 171.59870994112222]",medium,[]
165,5.5,0.033333,swing_1,follow_through,True,98.4836393223461,"[446.00000000000006, 170.99999999999997]",medium,[]
166,5.533333,0.033334,swing_1,follow_through,True,98.61055809276503,"[449.52432933149987, 170.40094418426818]",medium,[]
167,5.566667,0.033333,swing_1,follow_through,True,98.73073840193207,"[452.8653878080386, 169.80202872960945]",medium,[]
168,5.6,0.033333,swing_1,follow_through,True,98.84506761664335,"[456.04315462543894, 169.2041986361152]",medium,[]
169,5.633333,0.033334,swing_1,follow_through,True,98.95443102941483,"[459.0789121891003, 168.60291244423485]",medium,[]
170,5.666667,0.033333,swing_1,follow_through,True,99.05971144954678,"[462.0, 168.00000000000003]",medium,[]
171,5.7,0.033333,swing_1,follow_through,True,99.16448486586317,"[464.89597236562037, 167.38514766449168]",medium,[]
172,5.733333,0.033334,swing_1,follow_through,True,99.2686224835633,"[467.76927558478263, 166.74959151172442]",medium,[]
173,5.766667,0.033333,swing_1,follow_through,True,99.36744782429442,"[470.4940476804565, 166.1221897520355]",medium,[]
174,5.8,0.033333,swing_1,follow_through,True,99.45628643053736,"[472.9438107468691, 165.5330487105022]",medium,[]
175,5.833333,0.033334,swing_1,follow_through,True,99.5304706957114,"[475.0, 165.00000000000003]",medium,[]
176,5.866667,0.033333,swing_1,follow_through,True,99.59775076227466,"[476.8780150115528, 164.53351449160135]",medium,[]
177,5.9,0.033333,swing_1,follow_through,True,99.66397533304536,"[478.73600020136826, 164.10499793362828]",medium,[]
178,5.933333,0.033334,swing_1,follow_through,True,99.72158039522242,"[480.355100041696, 163.7078048243651]",medium,[]
179,5.966667,0.033333,swing_1,follow_through,True,99.76320527659678,"[481.5155204971103, 163.35123664725782]",medium,[]
180,6.0,0.033333,swing_1,follow_through,True,99.78406953886477,"[481.99999999999994, 163.00000000000003]",medium,[]
181,6.033333,0.033334,swing_1,follow_through,True,99.79800865425534,"[481.9651277434936, 162.65632630034486]",medium,[]
182,6.066667,0.033333,swing_1,follow_through,True,99.81611096570771,"[481.68844479262845, 162.3201179317844]",medium,[]
183,6.1,0.033333,swing_1,follow_through,True,99.84255815735371,"[481.09236300162553, 161.97047519210696]",medium,[]
184,6.133333,0.033334,swing_1,follow_through,True,99.88043338661264,"[480.145956845834, 161.63350522066096]",medium,[]
185,6.166667,0.033333,swing_1,follow_through,True,99.93218691374098,"[478.8014210353778, 161.31046222990256]",medium,[]
186,6.2,0.033333,swing_1,follow_through,True,100.0,"[476.99999999999994, 161.0]",medium,[]tasks/01-A-content-formats-gui-v4/README.mdAdded+8
tasks/01-A-content-formats-gui-v4/environment/DockerfileAdded+41
tasks/01-A-content-formats-gui-v4/environment/files.pyAdded+52
tasks/01-A-content-formats-gui-v4/environment/install-dejavu-sans.shAdded+6
tasks/01-A-content-formats-gui-v4/environment/install-gui.pyAdded+59
tasks/01-A-content-formats-gui-v4/environment/start-editor.shAdded+14
tasks/01-A-content-formats-gui-v4/instruction.mdAdded+20
tasks/01-A-content-formats-gui-v4/task.tomlAdded+25
tasks/01-A-content-formats-gui-v4/tests/DockerfileAdded+33
tasks/01-A-content-formats-gui-v4/tests/access.jsonAdded+1
tasks/01-A-content-formats-gui-v4/tests/deterministic_checks.pyAdded+101
tasks/01-A-content-formats-gui-v4/tests/footage_backend.pyAdded+154
tasks/01-A-content-formats-gui-v4/tests/gui_evidence.pyAdded+62
tasks/01-A-content-formats-gui-v4/tests/install-dejavu-sans.shAdded+6
tasks/01-A-content-formats-gui-v4/tests/media_helpers.pyAdded+77
tasks/01-A-content-formats-gui-v4/tests/source-manifest.jsonAdded+104
tasks/01-A-content-formats-gui-v4/tests/test.shAdded+6
tasks/01-A-content-formats-gui-v4/tests/verifier-config.jsonAdded+5
tasks/01-A-content-formats-gui-v4/tests/verifier_runtime.pyAdded+72
tasks/01-A-content-formats-gui-v4/tests/verify.pyAdded+164
tasks/golf-tracer-08/RUBRIC.mdAdded+46
tasks/golf-tracer-08/environment/DockerfileAdded+7
tasks/golf-tracer-08/instruction.mdAdded+11
tasks/golf-tracer-08/task.tomlAdded+22
tasks/golf-tracer-08/tests/calibration.jsonAdded+7
tasks/golf-tracer-08/tests/reference/README.mdAdded+44
tasks/golf-tracer-08/tests/reference/data.jsAdded
tasks/golf-tracer-08/tests/reference/frames.csvAdded+188
tasks/golf-tracer-08/tests/reference/svg_frames/000000.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000001.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000002.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000003.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000004.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000005.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000006.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000007.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000008.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000009.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000010.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000011.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000012.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000013.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000014.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000015.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000016.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000017.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000018.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000019.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000020.svgAdded
tasks/golf-tracer-08/tests/reference/svg_frames/000021.svgAdded