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/FC-L1-masking-three-panels-gui/environment/DockerfileAdded+35
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/instruction.mdAdded+7
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/README-basketball-conditioning-fort-belvoir.mdAdded+34
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/README-superbowl-lv-flyover.mdAdded+34
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/basketball-conditioning-fort-belvoir.LICENSE.txtAdded+80
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/basketball-conditioning-fort-belvoir.PROVENANCE.mdAdded+34
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/superbowl-lv-flyover.LICENSE.txtAdded+35
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/superbowl-lv-flyover.PROVENANCE.mdAdded+34
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/vibrant-techno-delight.LICENSE.txtAdded+69
- tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/vibrant-techno-delight.PROVENANCE.mdAdded+47
- tasks/FC-L1-masking-three-panels-gui/environment/licenses/LICENSE-APACHEAdded+177
- tasks/FC-L1-masking-three-panels-gui/environment/licenses/LICENSE-MITAdded+21
- tasks/FC-L1-masking-three-panels-gui/environment/start-editor.shAdded+18
- tasks/FC-L1-masking-three-panels-gui/instruction.mdAdded+9
- tasks/FC-L1-masking-three-panels-gui/task.tomlAdded+25
- tasks/FC-L1-masking-three-panels-gui/tests/DockerfileAdded+31
- tasks/FC-L1-masking-three-panels-gui/tests/operator-evidence.jsonAdded+41
- tasks/FC-L1-masking-three-panels-gui/tests/verify.pyAdded+188
- tasks/golf-tracer-01/tests/reference/svg_frames/000040.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000041.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000042.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000054.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000055.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000068.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000069.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000081.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000083.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000095.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000097.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000108.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000120.svgAdded
- tasks/golf-tracer-01/tests/reference/svg_frames/000122.svgAdded
- tasks/t23-dance-blob/README.mdAdded+11
- tasks/t23-dance-blob/RUBRIC.mdAdded+44
- tasks/t23-dance-blob/instruction.mdAdded+16
- tasks/t23-dance-blob/task.tomlAdded+54
- tasks/t23-dance-blob/tests/_vedit_verifier.pyAdded+359
- tasks/t23-dance-blob/tests/beats.jsonAdded+18
- tasks/t23-dance-blob/tests/legacy_v0.pyAdded+320
- tasks/t23-dance-blob/tests/legacy_v1/instruction.mdAdded+14
- tasks/t23-dance-blob/tests/legacy_v1/reference_score.pyAdded+305
- tasks/t23-dance-blob/tests/legacy_v1/test_outputs.pyAdded+30
- tasks/t23-dance-blob/tests/legacy_v1/visual-reference.jsonAdded
- tasks/t23-dance-blob/tests/native/runtime-launch.shAdded+23
- tasks/t23-dance-blob/tests/native/runtime-lock.jsonAdded+16
- tasks/t23-dance-blob/tests/reference_score.pyAdded+305
- tasks/t23-dance-blob/tests/reference_viewing.pyAdded+52
- tasks/t23-dance-blob/tests/source.sha256Added+1
- tasks/t23-dance-blob/tests/task_score.pyAdded+512
- tasks/t23-dance-blob/tests/test.shAdded+22
1234567891011121314151617181920212223242526272829303132333435FROM debian:bookworm-slim@sha256:3783cc01769c7b2b1b83a5c5ad96c815348e28ed7da68e2e3687004faa906251ENV DEBIAN_FRONTEND=noninteractiveARG TARGETARCHRUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg python3 python3-dbus python3-gi libglib2.0-bin 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 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/masking-task/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/masking-taskWORKDIR /rootCMD ["/usr/local/bin/start-editor.sh"]1234567I want to make a TikTok-style edit using the three supplied videos and music. Find the correct video and audio files and import them into FilmCraft. Use the screenshot as a visual reference.
Create a 1920×1080 sequence at 24 fps. Use perfectly rectangular masks, with basketball on the left, the Super Bowl flyover in the middle, and the hands picking up the cup on the right. None of the masked clips should have black borders at the top or bottom.
For the basketball clip, start the video from the beginning. For the flyover, there is a part where they film the planes up close. Include that part so the planes are visible throughout the masked shot. Use footage within 01:39–01:58. For the mug clip, use footage before 00:03 and keep the mug handle visible throughout the masked shot.
Bring the clips in one by one on the beat, keeping each visible as the next appears.12345678910111213141516171819202122232425262728293031323334# Provenance record: basketball-conditioning-fort-belvoir.mp4
## TitleArmy Reserve Soldiers conduct basketball conditioning at Fort Belvoir
## Source- Source page: https://www.dvidshub.net/video/1025016/army-reserve-soldiers-conduct-basketball-conditioning-fort-belvoir- Direct download URL (as retrieved): https://d34w7g4gy10iej.cloudfront.net/video/2609/DOD_112019696/DOD_112019696.mp4
## CreatorCPT David Reyes (as stated on the DVIDS video page)
## License- Public domain (per DVIDS video-page statement)- License evidence: `basketball-conditioning-fort-belvoir.LICENSE.txt` (saved copy of the source-page license statement and API license fields, retrieved 2026-10-13)- License URL: not stated on source page
## Format / Version- Container: mp4- Video codec: h264- Audio codec: aac- Dimensions: 3840x2160- Frame rate: 24.0 fps- Duration: 15.54 s- Format/version note: ffprobe was run against the local copy on 2026-10-13.
## RestrictionsDVIDS marks these items PUBLIC DOMAIN because, per the DVIDS copyright notice (https://www.dvidshub.net/about/copyright), visual information prepared by U.S. Government employees as part of their official duties is generally not eligible for copyright protection in the United States. The notice adds limits: use of the material is at the user's sole risk (no warranties of any kind); posting does not waive the publicity or privacy rights of any individuals portrayed; military department names, insignia, seals, and symbols may be protected as trademarks and may not be used in commerce without prior written permission; some items on DVIDS may be subject to copyright owned by non-DoW parties even when not marked as such, and unauthorized use may create legal liability; and the material must not be used in a way that implies Department of War endorsement. All users must display the disclaimer: "The appearance of U.S. Department of War (DoW) visual information does not imply or constitute DoW endorsement." Commercial users are also requested to obscure distinctive U.S. military markings (tail/hull numbers, unit insignia, service names) in marketing or advertising uses.
## AdaptationsNone. The file was downloaded verbatim from the direct download URL above; only the local filename was assigned. No re-encoding, trimming, editing, or other modification was performed.
## Embedded footage / musicnone identified in the page description (no background music or third-party footage mentioned)12345678910111213141516171819202122232425262728293031323334# Provenance record: superbowl-lv-flyover.webm
## TitleSuper Bowl LV Flyover (782884)
## Source- Source page: https://commons.wikimedia.org/wiki/File:Super_Bowl_LV_Flyover_(782884).webm- Direct download URL (as retrieved): https://upload.wikimedia.org/wikipedia/commons/7/7a/Super_Bowl_LV_Flyover_%28782884%29.webm
## CreatorTech. Sgt. Jensen Stidham, U.S. Air Force (Commons 'Artist' field); credit links the DVIDS video https://www.dvidshub.net/video/782884/super-bowl-lv-flyover. Uploaded by Commons user Elisfkc. File description: Air Force Global Strike Command bombers perform the Super Bowl LV flyover at Raymond James Stadium in Tampa, Fla., Feb. 7, 2021 (B-1B Lancer, B-2 Spirit, B-52H Stratofortress).
## License- Public domain (Commons LicenseShortName / UsageTerms: 'Public domain')- License evidence: `superbowl-lv-flyover.LICENSE.txt` (saved copy of the source-page license statement and API license fields, retrieved 2026-10-13)- License URL: not stated on source page
## Format / Version- Container: webm (Matroska)- Video codec: vp9- Audio codec: opus- Dimensions: 1920x1080- Frame rate: 29.97 fps- Duration: 129.37 s- Format/version note: ffprobe was run against the local copy on 2026-10-13.
## RestrictionsU.S. government work, public domain (as stated on the source page).
## AdaptationsNone. The file was downloaded verbatim from the direct download URL above; only the local filename was assigned. No re-encoding, trimming, editing, or other modification was performed.
## Embedded footage / musicnone identified in the file description (no background music or third-party footage mentioned)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980LICENSE EVIDENCE — saved copy (retrieved 2026-10-13)File: basketball-conditioning-fort-belvoir.mp4Source page: https://www.dvidshub.net/video/1025016/army-reserve-soldiers-conduct-basketball-conditioning-fort-belvoir
Exact license statement from the source:PUBLIC DOMAIN — "This work, Army Reserve Soldiers conduct basketball conditioning at Fort Belvoir, by CPT David Reyes, identified by DVIDS, must comply with the restrictions shown on https://www.dvidshub.net/about/copyright." (statement as shown on the DVIDS video page)
License URL: not stated on source page
Additional evidence notes:Source type: DVIDS video page (U.S. military). Page description (paraphrase): soldiers perform crossover dribbling drills through tight cone formations. This downloaded copy is the page's player-embedded streaming variant (3840x2160 per ffprobe); DVIDS's labeled higher-resolution 'Product Variants' require a DVIDS login and were not retrieved.
---This file is a saved copy of the licensing evidence as it appeared on the sourcepage on the retrieval date above. It is kept for provenance records and is notlegal advice.
================================================================FULL LICENSE TERMS (captured 2026-10-19 from https://www.dvidshub.net/about/copyright,"COPYRIGHT TRADEMARK AND PRIVACY/PUBLICITY INFORMATION — Public Use Notice of Limitations"):
Motion and still media files ("Visual Information", VI) are provided as a public service consistent with the Department of War's Principles of Information.
No Representations or Warranties. DoW makes no representations or warranties of any kind regarding the suitability of using DoW VI for non-DoW purposes. Use of DoW VI is at the user's sole risk.
Publicity and Privacy Rights. VI postings by the DoW do not waive any publicity or privacy rights of any individuals portrayed.
Intellectual Property Restrictions. Military Department and other DoW component names, insignia, seals, symbols and similar marks may be protected as trademarks or service marks and may not be used in commerce without prior written permission.
In general, DoW VI that are works of authorship prepared by U.S. Government employees as part of their official duties are not eligible for copyright protection in the United States. However, some VI on the site may be subject to copyright or other intellectual property rights owned by non-DoW parties. Any use of DoW VI other than as expressly authorized in this notice may subject the user to legal liability.
Non-Endorsement Requirements and Disclaimer. DoW VI may not be used in a manner that could imply endorsement of an individual, for-profit business, nonprofit organization, any other non-federal entity (including DoW contractors), product, or service, or any political party or candidate for partisan political office. All users of DoW VI must display this non-DoW endorsement disclaimer except that commercial items are not required to use the full disclaimer when it is impracticable:
"The appearance of U.S. Department of War (DoW) visual information does not imply or constitute DoW endorsement."
Commercial Use Defined: use of VI for advertisements, marketing, promotion, solicitation, or fundraising purposes. Commercial Use Authorized: to the maximum extent practicable, all commercial uses are required to display the non-DoW endorsement disclaimer above. Commercial users are also requested to obscure all distinctive U.S. military markings (e.g., tail or hull number, unit insignia, Service name) and other indicia that could connote DoW endorsement from DoW aircraft, missiles, ships, and other hardware or uniforms used in any marketing or advertising campaign, including collateral products.
================================================================REDISTRIBUTION ASSESSMENT FOR THE PROPOSED USE:The proposed use is inclusion of this clip as a media asset inside acomputer-use task package (which may itself be shared/redistributed as part oftask-distribution work). This file's DVIDS video page marks it PUBLIC DOMAIN asa U.S. government work, so use — including commercial use — is authorizedsubject to the notice above: display the non-DoW endorsement disclaimer("The appearance of U.S. Department of War (DoW) visual information does notimply or constitute DoW endorsement."), do not imply DoW endorsement, obscuredistinctive U.S. military markings in any marketing/advertising use, and notethat publicity/privacy rights of portrayed individuals are retained andmilitary marks may be trademarked. The DVIDS notice also warns that some VImay carry non-DoW IP; this file is page-marked as a DoW-authored public-domainwork, which is the basis relied on here.12345678910111213141516171819202122232425262728293031323334# Provenance record: basketball-conditioning-fort-belvoir.mp4
## TitleArmy Reserve Soldiers conduct basketball conditioning at Fort Belvoir
## Source- Source page: https://www.dvidshub.net/video/1025016/army-reserve-soldiers-conduct-basketball-conditioning-fort-belvoir- Direct download URL (as retrieved): https://d34w7g4gy10iej.cloudfront.net/video/2609/DOD_112019696/DOD_112019696.mp4
## CreatorCPT David Reyes (as stated on the DVIDS video page)
## License- Public domain (per DVIDS video-page statement)- License evidence: `basketball-conditioning-fort-belvoir.LICENSE.txt` (saved copy of the source-page license statement and API license fields, retrieved 2026-10-13)- License URL: not stated on source page
## Format / Version- Container: mp4- Video codec: h264- Audio codec: aac- Dimensions: 3840x2160- Frame rate: 24.0 fps- Duration: 15.54 s- Format/version note: ffprobe was run against the local copy on 2026-10-13.
## RestrictionsDVIDS marks these items PUBLIC DOMAIN because, per the DVIDS copyright notice (https://www.dvidshub.net/about/copyright), visual information prepared by U.S. Government employees as part of their official duties is generally not eligible for copyright protection in the United States. The notice adds limits: use of the material is at the user's sole risk (no warranties of any kind); posting does not waive the publicity or privacy rights of any individuals portrayed; military department names, insignia, seals, and symbols may be protected as trademarks and may not be used in commerce without prior written permission; some items on DVIDS may be subject to copyright owned by non-DoW parties even when not marked as such, and unauthorized use may create legal liability; and the material must not be used in a way that implies Department of War endorsement. All users must display the disclaimer: "The appearance of U.S. Department of War (DoW) visual information does not imply or constitute DoW endorsement." Commercial users are also requested to obscure distinctive U.S. military markings (tail/hull numbers, unit insignia, service names) in marketing or advertising uses.
## AdaptationsNone. The file was downloaded verbatim from the direct download URL above; only the local filename was assigned. No re-encoding, trimming, editing, or other modification was performed.
## Embedded footage / musicnone identified in the page description (no background music or third-party footage mentioned)1234567891011121314151617181920212223242526272829303132333435LICENSE EVIDENCE — saved copy (retrieved 2026-10-13)File: superbowl-lv-flyover.webmSource page: https://commons.wikimedia.org/wiki/File:Super_Bowl_LV_Flyover_(782884).webm
Exact license statement from the source:Commons API LicenseShortName: 'Public domain'; UsageTerms: 'Public domain'; Copyrighted: false; Artist: 'Tech. Sgt. Jensen Stidham'.
License URL: not stated on source page
Additional evidence notes:Source type: Wikimedia Commons file page (U.S. Air Force video, also posted on DVIDS). Commons API verified 2026-10-13.
---This file is a saved copy of the licensing evidence as it appeared on the sourcepage on the retrieval date above. It is kept for provenance records and is notlegal advice.
================================================================FULL LICENSE TERMS (basis captured 2026-10-19):
This file is marked Public domain on its Wikimedia Commons file page as a work of the U.S. federal government. Under 17 U.S.C. section 105, copyright protection is not available for any work of the United States Government — i.e., a work prepared by an officer or employee of the U.S. Government as part of that person's official duties. Such works are in the public domain in the United States.
================================================================REDISTRIBUTION ASSESSMENT FOR THE PROPOSED USE:The proposed use is inclusion of this clip as a media asset inside acomputer-use task package (which may itself be shared/redistributed as part oftask-distribution work). As a U.S. federal government work in the publicdomain, there are no copyright restrictions on use, modification, orredistribution. Standard practice: do not imply endorsement by the agency.12345678910111213141516171819202122232425262728293031323334# Provenance record: superbowl-lv-flyover.webm
## TitleSuper Bowl LV Flyover (782884)
## Source- Source page: https://commons.wikimedia.org/wiki/File:Super_Bowl_LV_Flyover_(782884).webm- Direct download URL (as retrieved): https://upload.wikimedia.org/wikipedia/commons/7/7a/Super_Bowl_LV_Flyover_%28782884%29.webm
## CreatorTech. Sgt. Jensen Stidham, U.S. Air Force (Commons 'Artist' field); credit links the DVIDS video https://www.dvidshub.net/video/782884/super-bowl-lv-flyover. Uploaded by Commons user Elisfkc. File description: Air Force Global Strike Command bombers perform the Super Bowl LV flyover at Raymond James Stadium in Tampa, Fla., Feb. 7, 2021 (B-1B Lancer, B-2 Spirit, B-52H Stratofortress).
## License- Public domain (Commons LicenseShortName / UsageTerms: 'Public domain')- License evidence: `superbowl-lv-flyover.LICENSE.txt` (saved copy of the source-page license statement and API license fields, retrieved 2026-10-13)- License URL: not stated on source page
## Format / Version- Container: webm (Matroska)- Video codec: vp9- Audio codec: opus- Dimensions: 1920x1080- Frame rate: 29.97 fps- Duration: 129.37 s- Format/version note: ffprobe was run against the local copy on 2026-10-13.
## RestrictionsU.S. government work, public domain (as stated on the source page).
## AdaptationsNone. The file was downloaded verbatim from the direct download URL above; only the local filename was assigned. No re-encoding, trimming, editing, or other modification was performed.
## Embedded footage / musicnone identified in the file description (no background music or third-party footage mentioned)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869LICENSE EVIDENCE -- saved copy (retrieved 2026-10-20)File: vibrant-techno-delight.mp3Source page: https://stocktune.com/free-music/vibrant-techno-delight-154541-101686
Exact license statement from the source:The track page displays the label "Public Domain" (alongside an"AI Generated" label), and the page's download description states"No attribution required." The site-wide licensing terms are theStockTune Terms of Service, quoted in full in the FULL LICENSE TERMSsection below.
License URL: https://stocktune.com/info/terms
---This file is a saved copy of the licensing evidence as it appeared on the sourcepage on the retrieval date above. It is kept for provenance records and is notlegal advice.
================================================================FULL LICENSE TERMS (captured 2026-10-20 from https://stocktune.com/info/terms):
StockTune Terms of Service (https://stocktune.com/info/terms) -- the sections that state the licensing basis, quoted verbatim:
Introduction: "Our website offers AI-generated music that are in the public domain."
1. Use License: "StockTune provides public domain content. This means you are free to use, share, and adapt our music without restrictions for personal and commercial purposes. However, we ask that you: - Use the content responsibly and ethically. - Do not imply endorsement by StockTune or the creators of the content without permission. - Acknowledge that StockTune may not own or have created the content provided."
2. Disclaimer: "The materials on StockTune's website are provided "as is". StockTune makes no warranties regarding the accuracy, reliability, or legality of the content. Since the content is in the public domain, StockTune disclaims all liability for any use of the content."
8. Public Domain Content: "We emphasize that content provided by StockTune is in the public domain and is freely available for use by anyone. We encourage creative and diverse uses of our content."
Nature of this dedication: this is the hosting site's own public-domain statement for its AI-generated catalogue. It is NOT a CC0 1.0 deed and no individual artist dedication exists for this track.
================================================================REDISTRIBUTION ASSESSMENT FOR THE PROPOSED USE:The proposed use is inclusion of this track as a media asset inside acomputer-use task package (which may itself be shared/redistributed aspart of task-distribution work). On the face of the hosting site's terms,that use is permitted: StockTune states the content is in the publicdomain and that users are "free to use, share, and adapt our musicwithout restrictions for personal and commercial purposes", and thetrack page states no attribution is required. Redistribution inside atask package is a form of sharing/adapting, so it falls within thestated grant. Caveats that remain on the record: (1) the dedication isStockTune's own statement, not a CC0 1.0 instrument; (2) StockTuneexpressly disclaims warranties about the content and notes it "may notown or have created the content provided", so the dedication is only asstrong as StockTune's own position; (3) the track is AI-generated, andthe copyright status of AI-generated music is unsettled in somejurisdictions; (4) no endorsement by StockTune or the content's creatorsmay be implied.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647# Provenance record: vibrant-techno-delight.mp3
## TitleVibrant Techno Delight
## Categorymusic -- techno beat (120-130 BPM, bass-forward)
## Source- Source page: https://stocktune.com/free-music/vibrant-techno-delight-154541-101686- Direct download URL (as retrieved): https://tunes.stocktune.com/public/8/7/8/8788650d-5a2f-4593-a26c-cfecc85b97ba/vibrant-techno-delight-stocktune.mp3
## CreatorStockTune (AI-generated track, per the track page's "AI Generated" label; no individual artist is credited on the track page -- not stated)
## Description (from the source page)High Energy Techno, Pulsating Beats, Vibrant Rhythmic Textures (track-page description).
## Genre / tempo (from the source page)- Genre: Techno (page tags include: vibrant techno, ecstatic, synthesizer)- Tempo stated on the track page: 125 BPM- Tempo cross-check: onset-autocorrelation analysis of the downloaded file estimated ~125 BPM (analysis performed 2026-10-20; the page-stated value above is the source of record)- Key stated on the track page: C minor- Bass weight (analysis of the downloaded file): 84.8% of spectral energy below 150 Hz; 46.6% below 60 Hz (analysis of the downloaded file)
## License- Public domain as stated by the hosting site: the track page carries a "Public Domain" label, and the StockTune Terms of Service state the catalogue is public domain and free to use, share and adapt without restrictions. This is a site-stated public-domain dedication of AI-generated content; it is NOT a CC0 1.0 deed.- License evidence: `vibrant-techno-delight.LICENSE.txt` (saved copy of the track-page license label and the full StockTune Terms of Service licensing sections, retrieved 2026-10-20)- License URL: https://stocktune.com/info/terms
## Format / Version- Container: mp3- Audio codec: mp3- Sample rate: 48000 Hz- Channels: 2 (stereo)- Bit rate: ~192 kb/s (ffprobe reported 192104 b/s)- Duration: 106.48 s- Format/version note: ffprobe was run against the local copy on 2026-10-20. MP3 was the only format offered for this track without login (no WAV/FLAC download was present on the track page).
## RestrictionsPer the StockTune Terms of Service: no restrictions on use, sharing or adaptation for personal or commercial purposes; no attribution required (track page). The site asks that users not imply endorsement by StockTune or the creators, and states it may not own or have created the content; it disclaims all warranties. See the license evidence file for the full text and the redistribution assessment.
## AdaptationsNone. The file was downloaded verbatim from the direct download URL above; only the local filename was assigned. No re-encoding, trimming, editing, or other modification was performed.
## Embedded footage / musicnone identified in the file description (AI-generated track per the hosting site; no samples or third-party material credited on the track page -- not stated)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS123456789101112131415161718192021MIT License
Copyright (c) 2026 ArtCraft Team and the FilmCraft contributors
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.123456789101112131415161718#!/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)"fi# Activate and verify the restricted desktop-launch service before XFCE starts.thunar --daemon >/tmp/task01-filemanager-preflight.log 2>&1 &startxfce4 >/tmp/task01-xfce.log 2>&1 &sleep 2/usr/local/bin/filmcraft --empty --no-recover --graphics software >/tmp/task01-filmcraft.log 2>&1 &# Keep the desktop alive when the editor closes so the GUI launcher can reopen it.wait123456789I want to make a TikTok-style edit using the three supplied videos and music. Find the correct video and audio files and import them into FilmCraft. Use the screenshot as a visual reference.
Create a 1920×1080 sequence at 24 fps. Use perfectly rectangular masks, with basketball on the left, the Super Bowl flyover in the middle, and the hands picking up the cup on the right. None of the masked clips should have black borders at the top or bottom.
For the basketball clip, start the video from the beginning. For the flyover, there is a part where they film the planes up close. Include that part so the planes are visible throughout the masked shot. Use footage within 01:39–01:58. For the mug clip, use footage before 00:03 and keep the mug handle visible throughout the masked shot.
Bring the clips in one by one on the beat, keeping each visible as the next appears.
Use graphical interfaces only. Do not use a terminal, shell, scripts, code, or CLI.12345678910111213141516171819202122232425schema_version = "1.4"artifacts = ["/root/Desktop", "/logs/artifacts"][task]name = "sid/FC-L1-masking-three-panels"version = "1.0.0"[agent]timeout_sec = 10800network_mode = "no-network"[environment]network_mode = "no-network"build_timeout_sec = 3600cpus = 4memory_mb = 16384storage_mb = 51200os = "linux"[verifier]timeout_sec = 3600environment_mode = "separate"[verifier.environment]network_mode = "no-network"build_timeout_sec = 3600cpus = 4memory_mb = 8192storage_mb = 51200os = "linux"12345678910111213141516171819202122232425262728293031FROM 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 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/masking-task/output /logs/verifier /logs/artifacts \ && chmod +x /tests/test.shWORKDIR /rootCMD ["sleep", "infinity"]1234567891011121314151617181920212223242526272829303132333435363738394041{ "version": 1, "sources": { "basketball": { "path": "/tests/media/basketball-conditioning-fort-belvoir.mp4", "sha256": "4c66d01717b7592693d1d160aeea9494b2cb7647a125bb20d42ab4ccce27369a" }, "flyover": { "path": "/tests/media/superbowl-lv-flyover.mp4", "sha256": "ed841121abe691db7f95f0a708abfedc80377a7aa9d922e35f5428b752d3fad2" }, "cup": { "path": "/tests/media/hands-cup-pickup-4k.mp4", "sha256": "e9ba1185e7135cab1caa15ee156f2c168e83db04e78ecb54ea870181817fe88c" }, "music": { "path": "/tests/media/vibrant-techno-delight.mp3", "sha256": "5a37480c988ade77ffc919976e10f60977371b1ff0796cb9713d26c44e073866" } }, "planes": { "source_interval": [ 99, 118 ], "method": "dark connected components in upper sky, three distinct silhouettes" }, "handle": { "source_interval": [ 0, 3 ], "box": [ 790, 770, 1280, 1350 ] }, "beat_tolerance_seconds": 0.08}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188"""Private, renderer-backed FilmCraft masking verifier. Never mount /tests for the agent."""import argparse,copy,hashlib,json,math,subprocess,sys,os,shutilfrom pathlib import Pathfrom functools import lru_cacheimport numpy as npimport cv2TICKS=254016000000RUBRIC=[('files','Correct supplied video and audio files',10),('imports','Files imported into FilmCraft',10),('dimensions','1920×1080 sequence at 24 fps',10),('rectangles','Perfectly rectangular masks',20),('planes','Flyover 01:39–01:58; planes always visible',15),('mug_range','Mug before 00:03; handle always visible',15),('basketball_start','Basketball starts from source beginning',5),('borders','No black borders at top or bottom',10),('beats','Sequential entrances on beats; earlier clips stay',5)]class GradingError(RuntimeError):pass
def run(args): p=subprocess.run(args,capture_output=True,timeout=900) if p.returncode:raise GradingError('Command failed '+str(p.returncode)+' '+str(args[:3])+': '+p.stderr.decode(errors='replace')[-1500:]) return p.stdout
@lru_cache(maxsize=128)def digest(p): h=hashlib.sha256() with open(p,'rb') as f: for b in iter(lambda:f.read(1048576),b''):h.update(b) return h.hexdigest()
def val(p,default=None): if p.get('keyframes'):raise GradingError('Animated parameter requires an extended renderer adapter') v=p.get('value',{}) return next(iter(v.values()),default)
def frame(p,t,w,h): cache=os.environ.get('MASKING_FRAME_CACHE') key=hashlib.sha256(f'{digest(p)}:{max(0,t):.9f}:{w}:{h}'.encode()).hexdigest() f=Path(cache)/(key+'.npy') if cache else None if f and f.exists():return np.load(f) raw=run(['ffmpeg','-v','error','-ss',str(max(0,t)),'-i',str(p),'-frames:v','1','-vf',f'scale={w}:{h}','-pix_fmt','rgb24','-f','rawvideo','pipe:1']) if len(raw)!=w*h*3:raise GradingError('Unreadable source frame') im=np.frombuffer(raw,np.uint8).reshape(h,w,3) if f: f.parent.mkdir(parents=True,exist_ok=True);np.save(f,im) return im
def geom(c,m,W,H): motion=next((e for e in c['effects'] if e['effect']=='motion' and e.get('enabled',True)),None) if motion is None:raise GradingError('Missing motion data') ps=motion['params'];g=lambda k,d:val(ps.get(k,{}),d) sw,sh=m['info']['video']['width'],m['info']['video']['height'] if m.get('interpret',{}).get('par') or m.get('interpret',{}).get('frame_rate'):raise GradingError('Unsupported media reinterpretation') base=min(W/sw,H/sh) if c.get('scale_to_frame') else 1 sy=base*g('scale',100)/100;sx=sy if g('uniform_scale',True) else base*g('scale_width',100)/100 angle=math.radians(g('rotation',0));A=np.array([[sx*math.cos(angle),-sy*math.sin(angle)],[sx*math.sin(angle),sy*math.cos(angle)]]) a=g('anchor',{'x':sw/2,'y':sh/2});p=g('position',{'x':W/2,'y':H/2});b=np.array([p['x'],p['y']])-A@np.array([a['x'],a['y']]) return np.column_stack([A,b]),sw,sh
def rect(c,M): masks=[m for e in c.get('effects',[]) if e.get('enabled',True) and e['effect']=='opacity' for m in e.get('masks',[])] if len(masks)!=1:return False,None m=masks[0];p=val(m.get('path',{})); if not p or not p.get('closed') or len(p.get('vertices',[]))!=4:return False,None if any(any(k!='p' for k in v) for v in p['vertices']):return False,None pts=np.array([[v['p']['x'],v['p']['y']] for v in p['vertices']]);q=pts@M[:,:2].T+M[:,2];edge=np.roll(q,-1,axis=0)-q lengths=np.linalg.norm(edge,axis=1) perpendicular=all(abs(float(edge[i]@edge[(i+1)%4]))/(lengths[i]*lengths[(i+1)%4]+1e-12)<1e-6 for i in range(4)) axis=all(min(abs(v[0]),abs(v[1]))<.01 for v in edge) hard=val(m.get('feather',{}),0)==0 and val(m.get('opacity',{}),100)==100 and val(m.get('expansion',{}),0)==0 and not m.get('inverted') and m.get('mode','Add')=='Add' op=next(e for e in c['effects'] if e['effect']=='opacity');hard &= val(op['params'].get('opacity',{}),100)==100 and val(op['params'].get('blend',{}),0)==0 return bool(perpendicular and hard and min(lengths)>1),[float(q[:,0].min()),float(q[:,1].min()),float(q[:,0].max()),float(q[:,1].max())]
def audio_beats(p): raw=run(['ffmpeg','-v','error','-i',str(p),'-t','20','-ar','22050','-ac','1','-f','f32le','pipe:1']);x=np.frombuffer(raw,np.float32) hop=220;N=1024;spec=np.abs(np.fft.rfft(np.array([x[i:i+N]*np.hanning(N) for i in range(0,len(x)-N,hop)]))) # Bass kick energy and positive spectral flux; local maxima with minimum 180ms separation. bass=(spec[:,1:9]**2).sum(1);flux=np.maximum(np.diff(spec,axis=0,prepend=spec[:1]),0).sum(1) def peaks(v): smooth=np.convolve(v,np.ones(3)/3,'same');inds=[i for i in range(1,len(v)-1) if smooth[i]>=smooth[i-1] and smooth[i]>smooth[i+1] and smooth[i]>np.quantile(smooth,.65)] selected=[] for i in sorted(inds,key=lambda i:smooth[i],reverse=True): if all(abs(i-j)>18 for j in selected):selected.append(i) return [(i*hop+N/2)/22050 for i in selected] return sorted(set([0.]+peaks(flux)))
def grade(project,e,out): for tool in ['ffmpeg','filmcraft-cli']: if not shutil.which(tool):raise GradingError('Missing grading tool: '+tool) d=json.loads(Path(project).read_text()); if d.get('format')!='filmcraft.project':raise GradingError('Unreadable/unsupported project format') sid=str(d.get('view',{}).get('active_sequence','')) if sid not in d['project']['items']: ids=[k for k,v in d['project']['items'].items() if 'Sequence' in v['kind']] if len(ids)!=1:raise GradingError('Select one active sequence') sid=ids[0] s=d['project']['items'][sid]['kind'].get('Sequence') if not s:raise GradingError('Active item is not a sequence') W,H=s['settings']['width'],s['settings']['height'];fps=s['settings']['frame_rate']['num']/s['settings']['frame_rate']['den'] result={k:False for k,_,_ in RUBRIC};details={};result['dimensions']=(W,H)==(1920,1080) and abs(fps-24)<1e-9 for v in e['sources'].values(): if not Path(v['path']).is_file() or digest(v['path'])!=v['sha256']:raise GradingError('Private source evidence missing or changed') imported=set() for item in d['project']['items'].values(): m=item.get('kind',{}).get('Media');f=m.get('media',{}).get('File',{}).get('path') if m else None if f and Path(f).is_file():imported.add(digest(f)) result['files']=all(v['sha256'] in imported for v in e['sources'].values()) result['imports']=result['files'] and all(item.get('kind',{}).get('Media',{}).get('offline',False)==False for item in d['project']['items'].values()) cs=[c for t in s['video_tracks'] if t.get('enabled',True) and not t.get('muted') for c in t['items'] if c.get('enabled',True)] by={};roles={v['sha256']:k for k,v in e['sources'].items()} for c in cs: m=d['project']['items'][str(c['item'])]['kind'].get('Media') if m is None:raise GradingError('Nested sequences require adapter') f=m['media'].get('File',{}).get('path');role=roles.get(digest(f)) if f and Path(f).is_file() else None if role in ['basketball','flyover','cup'] and role not in by:by[role]=(c,m) sources_ok=len(cs)==3 and len(by)==3 if not sources_ok:return result,{'reason':'Expected three distinct supplied source clips'},None boxes={};maps={};rectangle=[] for role,(c,m) in by.items(): if c.get('reverse') or c.get('frame_hold') is not None or c.get('speed',1)!=1:raise GradingError('Retime adapter required') for fx in c['effects']: if fx.get('enabled',True) and fx['effect'] not in ['motion','opacity','time_remap']:raise GradingError('Unsupported effect: '+fx['effect']) if fx['effect']=='time_remap' and val(fx['params'].get('speed',{}),100)!=100:raise GradingError('Time remap adapter required') M,sw,sh=geom(c,m,W,H);maps[role]=(M,sw,sh);ok,b=rect(c,M);rectangle.append(ok);boxes[role]=b result['rectangles']=all(rectangle) and all(boxes[r] is not None for r in by) and boxes['basketball'][0]<W/3 and W/3<=(boxes['flyover'][0]+boxes['flyover'][2])/2<=2*W/3 and boxes['cup'][2]>2*W/3 and boxes['basketball'][2]<=boxes['flyover'][0]+1 and boxes['flyover'][2]<=boxes['cup'][0]+1 if any(b is None for b in boxes.values()):return result,{'reason':'Missing four-point closed opacity mask'},None result['basketball_start']=by['basketball'][0]['source_in']==0 ranges={} for role in ['flyover','cup']: c=by[role][0];ranges[role]=[c['source_in']/TICKS,(c['source_in']+c['duration'])/TICKS] plane_range=ranges['flyover'][0]>=99 and ranges['flyover'][1]<=118 mug_range=ranges['cup'][0]>=0 and ranges['cup'][1]<=3 end=max((c['start']+c['duration'])/TICKS for c,_ in by.values());start=[by[r][0]['start']/TICKS for r in ['basketball','flyover','cup']] if end>30 or fps<=0 or fps>120:raise GradingError('Unsupported duration/frame rate for current adapter') music=[c for t in s['audio_tracks'] if t.get('enabled',True) and not t.get('muted') for c in t['items'] if c.get('enabled',True) and str(c['item']) in d['project']['items'] and d['project']['items'][str(c['item'])].get('kind',{}).get('Media',{}).get('media',{}).get('File',{}).get('path') and digest(d['project']['items'][str(c['item'])]['kind']['Media']['media']['File']['path'])==e['sources']['music']['sha256']] beats=audio_beats(e['sources']['music']['path']);beatdist=[] if len(music)==1: a=music[0];offset=(a['start']-a['source_in'])/TICKS beatdist=[min(abs(t-(b+offset)) for b in beats) for t in start] ordered=sorted(by.values(),key=lambda cm:cm[0]['start']);ordered_start=[cm[0]['start']/TICKS for cm in ordered] result['beats']=ordered_start[0]<ordered_start[1]<ordered_start[2] and max(beatdist)<=e['beat_tolerance_seconds'] and all((ordered[i][0]['start']+ordered[i][0]['duration'])/TICKS>ordered_start[i+1] for i in range(2)) and a['start']/TICKS<=min(start) and (a['start']+a['duration'])/TICKS>=end-1/fps # Render every frame with the actual FilmCraft renderer. Remove only audio from verifier copy. nd=copy.deepcopy(d);nd['project']['items'][sid]['kind']['Sequence']['audio_tracks']=[] if abs(fps-24)>1e-9: nd['project']['items'][sid]['kind']['Sequence']['settings']['frame_rate']={'num':24,'den':1};fps=24 p=out/'render-input.fcproj';p.write_text(json.dumps(nd));video=out/'native-render.mp4' run(['filmcraft-cli','--data-dir',str(out/'filmcraft-data'),'--project',str(p),'export',str(video),'--format','h264','--start','0','--end',str(end),'--gpu-rendering','off','--no-audio','--scale','0.25']) w,h=round(W*.25),round(H*.25);raw=run(['ffmpeg','-v','error','-i',str(video),'-f','rawvideo','-pix_fmt','rgb24','pipe:1']);frames=np.frombuffer(raw,np.uint8).reshape(-1,h,w,3) if abs(len(frames)-end*fps)>2:raise GradingError('Native frame count disagrees with timeline') errors=[];border=True;plane_count=0;handle_count=0;sample_count={};visible={};subject_total={};subject_pass={} for role,(c,m) in by.items(): M,sw,sh=maps[role];b=np.array(boxes[role]);x0,y0,x1,y1=b corners=np.array([[0,0],[sw,0],[sw,sh],[0,sh]])@M[:,:2].T+M[:,2] border &= y0<=.5 and y1>=H-.5 and corners[:,1].min()<=.5 and corners[:,1].max()>=H-.5 j0=max(0,int(math.ceil(c['start']/TICKS*fps-1e-6)));j1=min(len(frames),int(round((c['start']+c['duration'])/TICKS*fps))) l=max(0,int(math.ceil(x0/4))+2);r=min(w,int(math.floor(x1/4))-2);sample_count[role]=0;visible[role]=[];subject_total[role]=0;subject_pass[role]=0 if r<=l:border=False;continue for j in range(j0,j1): im=frames[j]; if np.mean(im[:2,l:r].max(axis=2)<12)>.98 or np.mean(im[-2:,l:r].max(axis=2)<12)>.98:border=False t=c['source_in']/TICKS+j/fps-c['start']/TICKS;src=frame(e['sources'][role]['path'],t,round(sw/4),round(sh/4));A=M.copy();A[:,2]/=4 ref=cv2.warpAffine(src,A,(w,h));op=next(e for e in c['effects'] if e['effect']=='opacity');ref=255*np.power(np.power(ref.astype(float)/255,2.2)*val(op['params'].get('opacity',{}),100)/100,1/2.2);mae=float(np.abs(ref[:,l:r].astype(float)-im[:,l:r].astype(float)).mean());errors.append(mae);sample_count[role]+=1 if role=='flyover': subject_total[role]+=1 gray=cv2.cvtColor(src,cv2.COLOR_RGB2GRAY);mask=(gray<40).astype(np.uint8);mask[int(mask.shape[0]*.83):]=0 n,labels,stats,_=cv2.connectedComponentsWithStats(mask) objs=[] for a in stats[1:]: x,y,bw,bh,area=map(int,a) if area>=8 and 8<=bw<=160 and 2<=bh<=40 and bw>bh*1.5 and 20<y<src.shape[0]*.8: q=np.array([[x,y],[x+bw,y+bh]])@A[:,:2].T+A[:,2];objs.append(q) contained=[q for q in objs if q[0,0]>=l+1 and q[1,0]<=r-1 and q[0,1]>=1 and q[1,1]<=h-1] if len(contained)>=1:plane_count+=1;subject_pass[role]+=1;visible[role].append(round(t,3)) if role=='cup': subject_total[role]+=1 bx=e['handle']['box'];q=np.array([[bx[0]/4,bx[1]/4],[bx[2]/4,bx[3]/4]])@A[:,:2].T+A[:,2] if q[0,0]>=l+1 and q[1,0]<=r-1 and q[0,1]>=1 and q[1,1]<=h-1:handle_count+=1;subject_pass[role]+=1;visible[role].append(round(t,3)) # Pixel agreement binds geometry/subject evidence to what the native renderer actually displays. if not errors or max(errors)>24 or np.quantile(errors,.95)>15:raise GradingError('Source-to-render mapping not validated: '+str(max(errors) if errors else None)) result['planes']=plane_range and subject_total['flyover']>0 and subject_pass['flyover']==subject_total['flyover'] result['mug_range']=mug_range and subject_total['cup']>0 and subject_pass['cup']==subject_total['cup'] result['borders']=bool(border) details={'source_ranges_seconds':ranges,'subject_frames_total':subject_total,'subject_frames_pass':subject_pass,'panel_boxes':boxes,'starts_seconds':start,'end_seconds':end,'beat_distances_seconds':beatdist,'music_beats_seconds':beats,'native_frames':len(frames),'max_mapping_mae':max(errors),'samples':sample_count,'subject_visible_source_seconds':visible,'limitations':['Flyover selected source range must be contained in 99–118 seconds; cup before 3 seconds; subject containment is checked in every active frame. File finding/import are verified as saved imported media outcomes, not inferred GUI actions.','Static mask/motion adapter; unsupported curves/effects yield verifier error, never a numeric score.','No export requirement: native render is operator grading evidence, not an agent deliverable.']} return result,details,video
def main(): a=argparse.ArgumentParser();a.add_argument('--project',required=True);a.add_argument('--evidence',required=True);a.add_argument('--report-dir',required=True);args=a.parse_args();out=Path(args.report_dir);out.mkdir(parents=True,exist_ok=True) for f in ['reward.txt','reward.json']:(out/f).unlink(missing_ok=True) try: e=json.loads(Path(args.evidence).read_text());r,details,video=grade(args.project,e,out);criteria=[{'id':k,'name':label,'weight':weight,'verdict':'pass' if r[k] else 'fail','score':weight if r[k] else 0,'explanation':label+(' passed' if r[k] else ' failed')} for k,label,weight in RUBRIC];score=sum(x['score'] for x in criteria)/100 report={'status':'graded','score':score,'criteria':criteria,'details':details,'project_sha256':digest(args.project)};(out/'reward.txt').write_text(str(score)+'\n');code=0 except Exception as ex: report={'status':'verifier_error','error':type(ex).__name__+': '+str(ex),'criteria':[],'score':None};code=2 (out/'rubric_report.json').write_text(json.dumps(report,indent=2));print(json.dumps({'status':report['status'],'score':report['score'],'error':report.get('error')}));return codeif __name__=='__main__':sys.exit(main())1234567891011# Dancing blob recreation — task-based RLVR v3
See [RUBRIC.md](RUBRIC.md) for reference viewing and the five recreation stages, criteria and tolerances, and [VERIFIER-VALIDATION.md](VERIFIER-VALIDATION.md) for actual tests and rollout limits.
The grader evaluates an editable native vector scene, vertical dance, sideways dance, synchronized colour and matching exported delivery. Exact reference-face pixels and silhouette overlap are no longer reward targets. Friction's native loader and independent renderer replace project file-size checks. Exceptions remain verifier errors with no reward. Historical v1 scores are preserved.
Run `python3 tools/selftest-v2.py` for synthetic regression assertions. Use `tools/calibrate-v2.py --help` for isolated native/project integration. The task image requires the pinned source-built Friction inspector; old snapshots must be rebuilt.
The packaged native calibration oracle under `solution/oracle/` scores **1.0000** through the full grading entrypoint. It uses repaired editable trajectory artwork and an independent Friction render; provenance and validation reports are retained.
Reference-viewing update (v3): five independent process points, 105 points total. Use “Watch Dance Blob Reference” from Desktop/Menu. See RUBRIC.md; rebuild the environment before grading v3. Historical v2 scores are preserved.1234567891011121314151617181920212223242526272829303132333435363738394041424344# Dancing blob v3 — reference viewing and staged RLVR rubric
The rendered reference supplies proportions and examples, not exact masks to imitate. Every point maps to an observable task requirement. Exact rest/squash silhouette IoU, facial-stroke similarity and ink-area matching are removed. Native keyframes and in-app expressions are both allowed. Historical v1 sources are archived in `tests/legacy_v1/`; old scores remain unchanged.
| Stage | Points | Verification ||---|---:|---|| Reference viewing | 5 | Instrumented viewer records ≥3 seconds of focused viewing, ≥10 distinct frames spanning ≥15 frames (0.5 seconds). || Scene | 34 | Rounded dome (5), two eyes and smile (5), face in lower half (2), proportions (4), even row (4), common floor (2), full white background (3), loaded vector scene (5), native animation (4). || Vertical dance | 25 | Cadence (5), squash depth (5), pinned feet (4), stable width (3), smooth movement with slower squash/faster spring (8). || Sideways dance | 20 | Half-spacing rightward hops (10), movement during spring (6), smooth sideways movement (4). || Colour | 10 | Shared pastel palette (4), continuous forward colour-wheel cycle once per hop (6). || Delivery | 11 | Export matches independently rendered project (4), dimensions (2), FPS (1), duration (2), H.264 (1), no audio (1). |
Each check earns its listed points independently; stages do not require completing earlier stages, except that creative credit requires verifiable native vector artwork. Failed checks emit actionable feedback, such as “move the row half a spacing during spring-back.” The same criteria serve final grading and stage feedback; neither exposes exact reference pixels as a target.
## Measurements
Decode all six seconds at 200×200 and 30fps. Detect filled characters with a broad pastel colour threshold, and inspect dark face geometry separately. Dome geometry checks rounded shoulders, a narrow top, broad lower body and flatter feet. Faces can be drawn as connected strokes; exact eye/smile shapes and layer counts do not matter. At least 85% of full-character observations must show a valid face. Lower-half placement allows 5% drawing tolerance. Layout bands: body width 165–212px, rest height 137–177px, spacing 176–224px, common floor y=455–487. Spacing CV ≤8%. At least 90% of frames show the repeated row.
Measure individual complete hops, not only a clip average. At least eight hops must cover 80% of the clip; at least 90% must satisfy each motion criterion. Period 0.4–0.6s; minimum height 60–76% of resting height; pinned floor SD ≤4px; width ratio ≤1.08. Squash lasts longer than spring. Height must have smaller endpoint slopes and no jump exceeding 30% of amplitude plus one decoded-pixel quantization allowance. Sideways displacement is 40–60% of spacing per hop, with ≤10% backward movement; ≥75% occurs during spring; no frame jump exceeds 20% spacing. Hue makes 0.75–1.25 forward turns per hop, with no frame jump over 20% of a turn and coverage of at least six hue bins. Shared hue holds on ≥95% frames. Broad saturation 0.25–0.80 and brightness 0.75–1.0 permit alternate pastels.
The white-background check examines the entire region outside detected characters: at least 99.5% white pixels on 95% of frames. Native/render correspondence compares the union of foreground pixels at every frame; maximum mean absolute RGB error ≤0.08 accommodates normal compression. Export duration must be within one frame of six seconds and decode to 179–181 frames. Resolution, codec, FPS and audio are graded separately.
## Native and action verification
A pinned source build of Friction rc.3 loads a frozen project without saving it, exports its object/property tree, evaluates scene 0, and independently renders every frame. Creative credit requires editable built-in vector artwork, resolved assets, one scene and no image/video/linked-media objects. Native animation can use keys or valid in-app expressions. A matching MP4 earns delivery credit. An unrelated MP4 cannot earn creative credit for a project: the grader uses the project's independent render to preserve genuine native progress instead.
Explicit terminal requests or recorded shell execution violate the GUI-only requirement and gate final reward to zero; earned diagnostic progress remains. Denied application launchers do not count as terminal use. Missing or ambiguous action evidence is ungraded pending review. The new environment records structured events, including a log-initialization marker, and avoids modal popup dialogs.
Missing tools/native runtime, timeout, interrupted inspection, unsupported state or unexpected exceptions produce `verifier_error` and **no reward file**. Missing/invalid learner deliverables lose applicable points. Never substitute a zero for an infrastructure failure. The harness must stop learner activity before copying final files; the verifier does not globally kill editors or renderers.
## Validation and deployment
Run `python3 tools/selftest-v2.py`. Controls must include acceptable alternate faces/domes, no face, static output, wrong direction, wrong cadence, jumping movement, misplaced face, nonwhite interior background, corrupt/missing native files and reference-copy submissions. A native project with a mismatching export must retain project-derived progress and lose correspondence credit.
Build the pinned `friction-audit-runtime:rc3-sidecar` image before building the task image. `tests/native/runtime-lock.json` records runtime identity. Existing remote snapshots require rebuilding: v2 must fail explicitly if installed without its native inspector. The task Dockerfile installs its missing runtime dependencies and has been built locally as `t23-verifier-v2:validation`. The former reference-copy “oracle” is ineligible; `solution/solve.sh` copies the packaged `solution/oracle/` native project and matching render. This calibration oracle repairs the retained trajectory’s editable artwork; it is supplied only to oracle runs, outside the learner environment. Its provenance is recorded alongside the project.
Remaining limitations: low-resolution segmentation cannot classify every artistic variation; subtle internal background marks and disconnected/overlapping faces need additional controls. Modulo-spacing tracking assumes per-frame motion below half a spacing. These are bounded implementation assumptions, not proof of universal robustness; human-approved alternate drawings should expand calibration before large-scale training.
## Reference viewing (v3)
Total: 105 points; reward is earned points / 105. Existing checks retain their points. Reference viewing earns five points independently, even without a completed native project; the GUI-only gate still applies. Use the Desktop/Menu “Watch Dance Blob Reference” player. Shotcut/Friction remain available for additional inspection but do not emit viewing evidence. Merely opening the viewer, leaving it hidden, watching one static frame, or claiming to have watched earns no points.
The player logs focused, displayed frame indices and dwell times to `/logs/artifacts/reference-viewing.jsonl`. One session must show ≥3 seconds, ≥10 distinct frames and a span ≥15 frames. Missing/uninitialized or malformed recording is an infrastructure error, not a learner zero. The harness must preserve and freeze this log with deliverables. This measures an opportunity to observe, not comprehension. The GUI-only harness must prevent learner shell/file tampering; the local JSONL recorder is not cryptographic evidence. Existing snapshots need rebuilding. Historical scores and the v2 calibration oracle are unchanged; the offline oracle has no viewing evidence and therefore earns at most 100/105 under v3.12345678910111213141516You are a motion designer. One clip is in /root/media: reference.mp4 (800x800, 30 fps, 6 seconds, no sound). It is a finished looping animation of a row of smiling "blob" characters dancing across a white background. Your job is to recreate this animation from scratch in Friction (already open; relaunch it from the Applications menu or the Desktop icon if needed). The reference viewer opens in front of Friction at startup. Press Play/Pause or Space to watch, then close the viewer to return to Friction. Watch the reference first using the “Watch Dance Blob Reference” Desktop icon or Applications menu entry (Play/Pause, Left/Right to step). This earns 5 points for at least 3 seconds of focused viewing and 10 distinct frames spanning at least half a second. You can also inspect it further — import it into a scratch Friction scene, or open it in Shotcut from the Applications menu, and step through it frame by frame — then rebuild it. There is no terminal in this environment; use the applications' GUIs.
What to build, as one Friction scene, 800x800, 30 fps, 6 seconds long, on a plain white background:
1. The characters: a row of identical blobs, all the same colour at any moment, evenly spaced so that about four whole blobs are visible with partial blobs cut off at the left and right edges. Each blob is a soft dome shape — flat-ish at the bottom, rounded on top, a little wider than it is tall — with a simple dark face: two eyes and a smile in its lower half. All blobs stand on the same invisible floor line, a little below the middle of the frame.
2. The dance, a short loop that repeats about twice a second (one hop every \~0.5 s):
- the blob squashes straight down, keeping its feet on the floor and its width about the same, to roughly two-thirds of its resting height; - then it springs back up to full height and, while doing so, the whole row hops half a blob-spacing to the right. Because the blobs are identical and evenly spaced, the row looks continuous — after two hops it has moved exactly one spacing and the pattern lines up again; - the motion is smooth and eased (slow in, slow out), not a jump cut; the squash takes a little longer than the spring-back. 3. The colour: all blobs share one fill colour, and that colour cycles around the colour wheel — red, yellow, green, cyan, blue, magenta and back — once per hop, changing continuously through the loop.
Match the reference as closely as you can in shape, proportions, timing and colour behaviour; the exact drawing does not have to be pixel-identical. Everything must be drawn yourself with Friction's shape and path tools and animated using timeline keyframes or Friction's in-app expressions — do not place the reference video or frames from it inside your scene. Save the project as /root/edit/blob.friction and render the scene to /root/Desktop/final.mp4 (800x800, 30 fps, H.264, 6 seconds). The render must be your recreation, not the reference.
The final scene must contain your own native vector artwork, with no imported images, video or reference frames. You may use normal application launchers. Explicit terminal requests or shell execution violate the GUI-only requirement.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354schema_version = "1.4"# Pull the agent's actual outputs back to the host after every trial: the# render the verifier scored, the Friction project (binary — only a human# opening it in Friction can review the keyframes) and the verifier copies.artifacts = [ "/root/Desktop/final.mp4", "/root/edit", "/logs/artifacts",]
[task]name = "sid/t23-dance-blob"version = "0.4.0"description = "Recreate the dancing blob loop in Friction. v2 staged task-based RLVR: native vector scene, squash/spring, half-spacing rightward hops, shared continuous colour cycle and matching six-second export. Native loader and independent renderer verify project structure; no exact face or silhouette mask matching."authors = []keywords = ["video-editing", "friction", "motion-graphics", "gui", "gui-only", "character-animation", "squash-and-stretch", "recreate-from-reference", "keyframe-animation", "after-effects-port"]
[metadata]surface = "video-editing"app = "friction"media_dir = "/root/media"export_path = "/root/Desktop/final.mp4"project_paths = ["/root/edit/*.friction"]source = "https://github.com/nanCreate/AE_Dance-Blob (TikTok_Center render, first 6 s)"
[verifier]# One 30 fps / 200x200 decode of the render + pure-python blob measurement over# 180 frames (~20 s on the host); sized up for a thrashed sandbox (t10 lesson).timeout_sec = 900.0
[verifier.env]
[agent]# Smoke baseline (standing rule): real scoring runs come from# suite/run_until_reward.sh --agent-timeout-multiplier 16 / launch_detached.py.timeout_sec = 1800.0network_mode = "public"
[environment]network_mode = "public"build_timeout_sec = 1800.0
# LOCAL RUNS use environment/Dockerfile (`FROM vedit-task:base` + Friction +# the reference clip, GUI-only). REMOTE RUNS must use the Daytona snapshot# recorded as current_t23 in environments/vedit/env.toml [snapshots]; when# docker_image is set harbor SKIPS the Dockerfile.os = "linux"mcp_servers = []
[environment.env]# Friction autostarts; no terminal exists (GUI-only standing rule, t16 v1.1).APP = "friction"
[solution.env]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359# GENERATED by suite refresh from packages/verifier/vedit_verifier.py# — do not edit here; edit the source and re-run ./suite/suite.sh refresh"""Shared verifier library for the video-editing task suite.
Single source of truth for the grading primitives every task verifier uses.Task verifiers own their rubric (weights, checkpoints, calibrated thresholds);this module owns the mechanics. `suite refresh` copies this file into eachtask's tests/ dir as `_vedit_verifier.py` (a generated file — edit it HERE,never in a task dir), so the tests/ dir stays self-contained the way Harborexpects.
Grading philosophy (see fcpx.md and the task READMEs): - FRACTIONAL, artifact-only (exported MP4 + saved project, never UI state). - reward.txt gets the weighted fraction; pytest pass/fail means "fully solved" and is only the trajectory-readable signal of which dimension fell short.
GRADER CHANGE 2026-08-21 (deliberate, affects score comparability):extract_project_edl previously graded the single best MLT playlist, so asame-track mix or a V1/V2-overlap dissolve split the clips across playlistsand dropped project_structure points (the t07 opus5 run lost 0.19 to this —the on-screen timeline held both clips; the save was correct; the parserwas not). It now also considers per-tractor merges (Kdenlive models onetimeline track as TWO sub-playlists so same-track mixes can overlap) and amerge of all non-audio playlists ordered by timeline position (forcross-track dissolves). Scores from before this date under-grade multi-clipprojects that used a mix; do not compare across the boundary."""
import jsonimport osimport subprocessimport tempfileimport xml.etree.ElementTree as ET
# ------------------------------------------------------------------ rubric
class Section: """One named sub-verifier: its own checks, weights, and fraction."""
def __init__(self, name): self.name = name self.earned = 0.0 self.total = 0.0 self.lines = []
def check(self, weight, label, ok): self.total += weight try: ok = bool(ok) except Exception: ok = False if ok: self.earned += weight self.lines.append(" [%s] %.3f %s" % ("x" if ok else " ", weight, label)) return ok
def fraction(self): return (self.earned / self.total) if self.total else 1.0
class Rubric(Section): """Single-section variant for simple tasks: report() writes reward.txt."""
def __init__(self, name, reward_path="/logs/verifier/reward.txt"): super().__init__(name) self.reward_path = reward_path
def report(self): score = self.fraction() if self.total else 0.0 print("\n%s -- rubric" % self.name) print("\n".join(self.lines)) print(" score: %.4f (%.2f / %.2f)" % (score, self.earned, self.total)) write_reward(score, self.reward_path) return score
def write_reward(score, reward_path="/logs/verifier/reward.txt"): os.makedirs(os.path.dirname(reward_path), exist_ok=True) with open(reward_path, "w") as fh: fh.write("%.4f\n" % score)
def write_breakdown(breakdown, breakdown_path): os.makedirs(os.path.dirname(breakdown_path), exist_ok=True) with open(breakdown_path, "w") as fh: json.dump(breakdown, fh, indent=2)
# ----------------------------------------------------------------- ffprobe
def probe(path): """ffprobe the file; None if it does not exist or is unreadable.""" if not os.path.isfile(path): return None try: out = subprocess.run( ["ffprobe", "-v", "error", "-print_format", "json", "-show_format", "-show_streams", path], capture_output=True, check=True).stdout return json.loads(out) except Exception: return None
def duration(meta): try: return float(meta["format"]["duration"]) except Exception: return None
def has_audio(meta): return meta and any(s.get("codec_type") == "audio" for s in meta.get("streams", []))
def video_size(meta): if not meta: return None for s in meta.get("streams", []): if s.get("codec_type") == "video": return (s.get("width"), s.get("height")) return None
# ---------------------------------------------------------- frame sampling
def frame_rgb(path, t): """Mean (r, g, b) of the frame at time t; None if extraction fails.
The synthetic seed footage is solid colors with burned-in slates, so "is this the right segment" is a mean-RGB classification — deterministic, no reference render needed.""" try: out = subprocess.run( ["ffmpeg", "-v", "error", "-ss", str(t), "-i", path, "-frames:v", "1", "-f", "rawvideo", "-pix_fmt", "rgb24", "-"], capture_output=True, check=True).stdout n = len(out) // 3 if n == 0: return None return (sum(out[0::3]) / n, sum(out[1::3]) / n, sum(out[2::3]) / n) except Exception: return None
def gray_thumb(path, t, w, h): """Grayscale w*h pixel bytes at time t; None on failure.""" try: out = subprocess.run( ["ffmpeg", "-v", "error", "-ss", str(t), "-i", path, "-frames:v", "1", "-vf", "scale=%d:%d" % (w, h), "-f", "rawvideo", "-pix_fmt", "gray", "-"], capture_output=True, check=True).stdout if len(out) < w * h: return None return out[:w * h] except Exception: return None
def mad(a, b, w, h, rows=None, skip_rows=None): """Mean abs diff of two thumbs over `rows` (or all rows minus `skip_rows`). rows/skip_rows are (lo, hi) half-open row ranges.""" total = n = 0 for row in range(h): if skip_rows and skip_rows[0] <= row < skip_rows[1]: continue if rows and not (rows[0] <= row < rows[1]): continue base = row * w for i in range(base, base + w): total += abs(a[i] - b[i]) n += 1 return total / n if n else 255.0
def ocr_frame(path, t): """Uppercased tesseract OCR of the frame at t; '' on any failure.""" try: with tempfile.TemporaryDirectory() as td: png = os.path.join(td, "frame.png") subprocess.run( ["ffmpeg", "-v", "error", "-ss", str(t), "-i", path, "-frames:v", "1", png], capture_output=True, check=True) out = subprocess.run( ["tesseract", png, "stdout"], capture_output=True, check=True).stdout return out.decode("utf-8", errors="replace").upper() except Exception: return ""
# --------------------------------------------------- project (MLT XML) EDL
def project_references(path, needle): """Saved project parses as XML and references the source clip.""" if not os.path.isfile(path): return False try: ET.parse(path) except Exception: return False with open(path, "r", errors="replace") as fh: return needle in fh.read()
def parse_clock(v, fps): """MLT in/out value -> seconds. Frames int, float seconds, or hh:mm:ss.ms.""" if v is None: return None v = v.strip() try: return int(v) / fps except ValueError: pass if ":" in v: parts = v.split(":") try: sec = float(parts[-1]) for i, p in enumerate(reversed(parts[:-1]), 1): sec += int(p) * (60 ** i) return sec except ValueError: return None try: return float(v) except ValueError: return None
def extract_project_edl(path, known_clips): """ Parse a .kdenlive (MLT XML) file into candidate clip sequences.
Returns (xml_ok, referenced_clips, best_seq) where best_seq is the per-playlist entry sequence [(clip, src_in, src_dur), ...] that references the most known clips (real projects duplicate entries across audio/video tracks; we grade the best-matching track).
See the module docstring for the known V1/V2-dissolve limitation. """ if not os.path.isfile(path): return False, set(), [] try: root = ET.parse(path).getroot() except Exception: return False, set(), []
prof = root.find("profile") fps = 30.0 if prof is not None: try: fps = float(prof.get("frame_rate_num", 30)) / float(prof.get("frame_rate_den", 1)) except Exception: pass
resources = {} for tag in ("producer", "chain"): for p in root.iter(tag): res = None for prop in p.findall("property"): if prop.get("name") in ("resource", "kdenlive:originalurl"): res = os.path.basename((prop.text or "").strip()) if res in known_clips: break if res: resources[p.get("id")] = res
referenced = set(r for r in resources.values() if r in known_clips)
def playlist_entries(pl): """[(timeline_pos, clip, src_in, dur)] for one playlist, blanks walked.""" pos = 0.0 out = [] for node in pl: if node.tag == "blank": pos += parse_clock(node.get("length"), fps) or 0.0 elif node.tag == "entry": src_in = parse_clock(node.get("in"), fps) or 0.0 src_out = parse_clock(node.get("out"), fps) dur = (src_out - src_in + 1.0 / fps) if src_out is not None else None clip = resources.get(node.get("producer")) if clip in known_clips: out.append((pos, clip, src_in, dur)) pos += dur or 0.0 return out
def is_audio(pl): return any( prop.get("name") == "kdenlive:audio_track" for prop in pl.findall("property") )
playlists = {} for pl in root.iter("playlist"): if pl.get("id") == "main_bin": continue playlists[pl.get("id")] = pl
# Candidate sequences, most-specific first: # a) each playlist alone (flat saves, and the pre-2026-08-21 behaviour); # b) each tractor's sub-playlists merged by timeline position — Kdenlive # stores one timeline track as two playlists so same-track mixes can # overlap, which is how a two-clip track reads as one clip per list; # c) all non-audio playlists merged by timeline position, for dissolves # that overlap clips across two video tracks. candidates = [] for pl in playlists.values(): candidates.append(sorted(playlist_entries(pl))) for tractor in root.iter("tractor"): merged = [] for track in tractor.findall("track"): pl = playlists.get(track.get("producer")) if pl is not None and not is_audio(pl): merged.extend(playlist_entries(pl)) if merged: candidates.append(sorted(merged)) video_merge = [] for pl in playlists.values(): if not is_audio(pl): video_merge.extend(playlist_entries(pl)) if video_merge: candidates.append(sorted(video_merge))
# Best = covers the most DISTINCT known clips; ties broken by fewer # entries (less cross-track duplication), then by earlier candidate # (single playlists first, preserving legacy behaviour on flat saves). best = [] best_score = None for seq in candidates: score = (len(set(c for _, c, _, _ in seq)), -len(seq)) if best_score is None or score > best_score: best, best_score = seq, score return True, referenced, [(clip, src_in, dur) for _, clip, src_in, dur in best]
def project_has_transition(path): """A deliberate video dissolve in the project.
luma/dissolve only: real Kdenlive saves ALWAYS contain internal "mix" (audio) and "composite"/"frei0r.cairoblend" (track compositing) transitions, so counting those passes a project with no dissolve at all. Kdenlive's same-track video mix and the oracle both use "luma".""" if not os.path.isfile(path): return False try: root = ET.parse(path).getroot() except Exception: return False services = set() for t in root.iter("transition"): for prop in t.findall("property"): if prop.get("name") == "mlt_service": services.add((prop.text or "").strip()) return bool(services & {"luma", "dissolve"})123456789101112131415161718{ "_comment": "Measured on the TikTok_Center render of nanCreate/AE_Dance-Blob (800x800, 60 fps) on 2026-09-09: one full loop = 57 frames (0.95 s) = two hops; per hop the blobs squash (top 314 -> 362 px, bottom fixed at 471, width ~188 constant) over ~16/60 s, then spring back while the whole row slides +100 px (half the 200 px spacing); the shared fill colour runs once round the hue wheel per hop. Rubric tolerances below.", "frame": {"w": 800, "h": 800, "fps": 30, "duration_s": 6.0}, "hop_s": 0.475, "hop_tol_s": [0.36, 0.60], "squash_ratio": 0.69, "squash_tol": [0.50, 0.88], "rest_aspect_w_over_h": 1.20, "aspect_tol": [0.85, 1.70], "spacing_px": 200, "step_per_hop_px": 100, "drift_spacing_per_s": 1.05, "drift_tol": [0.45, 1.70], "still_fraction_min": 0.25, "hue_bins_min": 6, "hue_changes_per_s_min": 4.0, "hue_spread_max_deg": 40}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320"""t23 rubric v0 — recreate the "Dance Blob" loop (Friction, GUI-only).
Source: github.com/nanCreate/AE_Dance-Blob (MIT), its TikTok_Center render.The agent watches /root/media/reference.mp4 (800x800, 30 fps, 6 s, bannerpainted out, muted) and rebuilds the loop from scratch in Friction:/root/edit/blob.friction + /root/Desktop/final.mp4 (800x800, 30 fps, ~6 s).
Everything is measured on the agent's RENDER (30 fps, 200x200 decode, purePython): saturated pixels = blob fill; dark pixels inside a blob = face;column runs = blobs. Tolerances in tests/beats.json (measured from the source).
A deliverable ................................................... 0.10 final.mp4 decodes 0.03 · 800x800 0.02 · 6 s ±1 0.03 · a *.friction ≥ 1 KB 0.02 B scene ........................................................ 0.25 white background 0.04 · 3-6 blobs in a row on ≥ 90 % of frames 0.06 · shared baseline (bottoms within 4 % of H per frame) 0.05 · rest aspect w/h 0.85-1.70 0.04 · faces: dark marks inside ≥ half the full blobs 0.06 C bounce ....................................................... 0.30 squash: min/max height 0.50-0.88 0.08 · bottom pinned (std < 2 % H) 0.06 · hop period 0.36-0.60 s (autocorrelation of height) 0.08 · width holds (max/min < 1.25) 0.04 · eased: no single-frame height step > 35 % of the amplitude 0.04 D side-step .................................................... 0.20 row drifts RIGHT 0.45-1.70 spacings / s 0.10 · pulsed: ≥ 25 % of frames still 0.05 · regular spacing (CV < 0.15) 0.05 E colour ....................................................... 0.15 ≥ 6 distinct 30° hue bins 0.06 · one shared hue per frame (spread < 40° on ≥ 80 % of frames) 0.04 · hue bin changes ≥ 4 / s 0.05 GUI-only gate: any logged terminal attempt → reward 0."""import colorsysimport globimport jsonimport osimport subprocess
from _vedit_verifier import Rubric, duration, probe, video_size, write_reward
HERE = os.path.dirname(os.path.abspath(__file__))HOME = os.environ.get("T23_HOME", "/root")FINAL = os.environ.get("T23_FINAL", os.path.join(HOME, "Desktop/final.mp4"))REWARD_PATH = os.environ.get("T23_REWARD", "/logs/verifier/reward.txt")TERMINAL_LOG = os.environ.get("T23_TERMINAL_LOG", "/logs/artifacts/terminal-attempts.log")WORK = os.environ.get("T23_WORK", "/tmp/t23-grade")BEATS = json.load(open(os.path.join(HERE, "beats.json")))
S = 200 # decode size (square)FPS = 30FRAME_W, FRAME_H = BEATS["frame"]["w"], BEATS["frame"]["h"]DUR, DUR_TOL = BEATS["frame"]["duration_s"], 1.0MIN_RUN = 8 # px at 200: a blob is ≥ 32 px wide in the 800 frameFULL_MARGIN = 2 # runs touching the frame edge are clipped blobs
def decode(path): try: raw = subprocess.run(["ffmpeg", "-nostdin", "-v", "error", "-i", path, "-vf", "fps=%d,scale=%d:%d" % (FPS, S, S), "-f", "rawvideo", "-pix_fmt", "rgb24", "-"], capture_output=True, check=True).stdout except Exception: return [] n = len(raw) // (S * S * 3) return [raw[i * S * S * 3:(i + 1) * S * S * 3] for i in range(n)]
def analyse(f): """Per frame: background whiteness, blob runs with top/bottom/width/hue/face.""" sat_col = [0] * S top = [S] * S bot = [-1] * S dark_col = [0] * S border = 0 border_n = 0 for y in range(S): row = y * S * 3 edge_row = y < 3 or y >= S - 3 for x in range(S): i = row + 3 * x r, g, b = f[i], f[i + 1], f[i + 2] mx, mn = max(r, g, b), min(r, g, b) if edge_row or x < 3 or x >= S - 3: border += (r + g + b); border_n += 3 if mx - mn > 50 and mx > 90: sat_col[x] += 1 if y < top[x]: top[x] = y if y > bot[x]: bot[x] = y elif mx < 110: dark_col[x] += 1 runs = [] s = None for x in range(S + 1): on = x < S and sat_col[x] >= 3 if on and s is None: s = x if not on and s is not None: if x - s >= MIN_RUN: runs.append((s, x - 1)) s = None blobs = [] for s, e in runs: t = min(top[s:e + 1]); b = max(bot[s:e + 1]) # hue from the mean colour of the run's saturated pixels (sample rows) rs = gs = bs = n = 0 for y in range(t, b + 1, 3): row = y * S * 3 for x in range(s, e + 1, 2): i = row + 3 * x r, g, bb = f[i], f[i + 1], f[i + 2] if max(r, g, bb) - min(r, g, bb) > 50: rs += r; gs += g; bs += bb; n += 1 hue = colorsys.rgb_to_hsv(rs / n / 255.0, gs / n / 255.0, bs / n / 255.0)[0] * 360 if n else None dark = sum(dark_col[s:e + 1]) full = s > FULL_MARGIN and e < S - 1 - FULL_MARGIN blobs.append({"x0": s, "x1": e, "w": e - s + 1, "top": t, "bot": b, "h": b - t + 1, "hue": hue, "dark": dark, "full": full}) return {"white": border / border_n if border_n else 0, "blobs": blobs}
def median(v): v = sorted(v) return v[len(v) // 2] if v else None
def circ_spread(hues): if len(hues) < 2: return 0.0 best = 360.0 hs = sorted(hues) for i in range(len(hs)): rot = [(h - hs[i]) % 360 for h in hs] best = min(best, max(rot)) return best
def first_ac_peak(sig, lo, hi): n = len(sig) m = sum(sig) / n v = [x - m for x in sig] den = sum(x * x for x in v) or 1.0 ac = [] for k in range(0, hi + 2): ac.append(sum(v[i] * v[i + k] for i in range(n - k)) / den) for k in range(max(1, lo), hi + 1): if ac[k] > ac[k - 1] and ac[k] >= ac[k + 1] and ac[k] > 0.2: return k, ac[k] return None, max(ac[lo:hi + 1]) if hi > lo else 0
def row_shift(a, b, maxs=20): """Horizontal shift (px, +right) of frame b's blob columns vs frame a, by 1-D correlation.""" ca = [1 if x else 0 for x in a] cb = [1 if x else 0 for x in b] best, bd = -1, 0 for d in range(-maxs, maxs + 1): sc = 0 for x in range(S): xx = x + d if 0 <= xx < S and ca[x] and cb[xx]: sc += 1 if sc > best: best, bd = sc, d return bd
def find_projects(): out = [] for p in glob.glob(os.path.join(HOME, "**", "*.friction"), recursive=True): try: if os.path.getsize(p) >= 1024: out.append(p) except OSError: pass return out
def terminal_attempts(): try: return [l for l in open(TERMINAL_LOG).read().splitlines() if l.strip()] except OSError: return []
def test_rubric(): os.makedirs(WORK, exist_ok=True) r = Rubric("t23-dance-blob v0", REWARD_PATH)
# --- A deliverable --------------------------------------------------- meta = probe(FINAL) r.check(0.03, "final.mp4 decodes: %s" % FINAL, meta is not None) size = video_size(meta) if meta else None r.check(0.02, "final.mp4 is %dx%d (got %s)" % (FRAME_W, FRAME_H, size), size == (FRAME_W, FRAME_H)) dur = duration(meta) if meta else None r.check(0.03, "duration %.2f s = %.1f ±%.1f" % (dur or -1, DUR, DUR_TOL), dur is not None and abs(dur - DUR) <= DUR_TOL) projects = find_projects() r.check(0.02, "a Friction project (*.friction ≥ 1 KB) under %s: %s" % (HOME, projects), bool(projects))
frames = decode(FINAL) if meta else [] A = [analyse(f) for f in frames] n = len(A) measured = {"frames": n}
# --- B scene ----------------------------------------------------------- white_ok = n > 0 and sum(1 for a in A if a["white"] > 225) >= 0.9 * n r.check(0.04, "white background (border mean > 225 on ≥ 90 %% of %d frames)" % n, white_ok) counts = [len(a["blobs"]) for a in A] row_ok = n > 0 and sum(1 for c in counts if 3 <= c <= 6) >= 0.9 * n r.check(0.06, "3-6 blobs per frame on ≥ 90 %% of frames (median %s)" % median(counts), row_ok) base_ok_frames = 0 for a in A: bs = [b["bot"] for b in a["blobs"] if b["full"]] if len(bs) >= 2 and max(bs) - min(bs) <= 0.04 * S: base_ok_frames += 1 r.check(0.05, "shared baseline: full blobs' bottoms within 4 %% of H (%d/%d frames)" % (base_ok_frames, n), n > 0 and base_ok_frames >= 0.8 * n) med_h = [median([b["h"] for b in a["blobs"] if b["full"]]) for a in A] med_w = [median([b["w"] for b in a["blobs"] if b["full"]]) for a in A] hs = [(h, i) for i, h in enumerate(med_h) if h] rest_i = max(hs)[1] if hs else None aspect = (med_w[rest_i] / med_h[rest_i]) if rest_i is not None and med_h[rest_i] else None lo, hi = BEATS["aspect_tol"] r.check(0.04, "rest aspect w/h %.2f in %.2f-%.2f" % (aspect or -1, lo, hi), aspect is not None and lo <= aspect <= hi) face_frames = 0 face_tot = 0 for a in A: full = [b for b in a["blobs"] if b["full"]] if full: face_tot += 1 if sum(1 for b in full if b["dark"] >= 6) >= (len(full) + 1) // 2: face_frames += 1 r.check(0.06, "faces: dark marks inside ≥ half the full blobs (%d/%d frames)" % (face_frames, face_tot), face_tot > 0 and face_frames >= 0.7 * face_tot)
# --- C bounce ---------------------------------------------------------- hsig = [h for h in med_h if h] hmin, hmax = (min(hsig), max(hsig)) if hsig else (0, 0) squash = hmin / hmax if hmax else None lo, hi = BEATS["squash_tol"] r.check(0.08, "squash: min/max blob height %.2f in %.2f-%.2f" % (squash or -1, lo, hi), squash is not None and lo <= squash <= hi) bots = [median([b["bot"] for b in a["blobs"] if b["full"]]) for a in A] bots = [b for b in bots if b is not None] if bots: mb = sum(bots) / len(bots) bstd = (sum((b - mb) ** 2 for b in bots) / len(bots)) ** 0.5 else: bstd = None r.check(0.06, "bottom pinned while bouncing: baseline std %.2f px (< %.1f)" % (bstd if bstd is not None else -1, 0.02 * S), bstd is not None and bstd < 0.02 * S and squash is not None and squash < 0.95) lo_s, hi_s = BEATS["hop_tol_s"] lag, acv = (first_ac_peak(hsig, int(0.25 * FPS), int(0.8 * FPS)) if len(hsig) > FPS * 2 else (None, 0)) period = lag / FPS if lag else None r.check(0.08, "hop period %.3f s in %.2f-%.2f (autocorr %.2f)" % (period or -1, lo_s, hi_s, acv or 0), period is not None and lo_s <= period <= hi_s) wsig = [w for w in med_w if w] wratio = (max(wsig) / min(wsig)) if wsig and min(wsig) else None r.check(0.04, "width holds: max/min median width %.2f (< 1.25)" % (wratio or -1), wratio is not None and wratio < 1.25) amp = hmax - hmin steps = [abs(hsig[i + 1] - hsig[i]) for i in range(len(hsig) - 1)] mstep = max(steps) if steps else 0 r.check(0.04, "eased: largest single-frame height step %d px ≤ 35 %% of amplitude %d" % (mstep, amp), amp > 0 and mstep <= 0.35 * amp + 1)
# --- D side-step ------------------------------------------------------- cols = [] for f in frames: c = [False] * S for x in range(S): for y in range(0, S, 4): i = 3 * (y * S + x) if max(f[i], f[i + 1], f[i + 2]) - min(f[i], f[i + 1], f[i + 2]) > 50: c[x] = True; break cols.append(c) shifts = [row_shift(cols[i], cols[i + 1]) for i in range(len(cols) - 1)] spacings = [] for a in A: xs = sorted(b["x0"] for b in a["blobs"] if b["full"]) spacings += [xs[i + 1] - xs[i] for i in range(len(xs) - 1)] sp = median(spacings) total = sum(shifts) drift = (total / (len(shifts) / FPS) / sp) if sp and shifts else None lo, hi = BEATS["drift_tol"] r.check(0.10, "row drifts right %.2f spacings/s in %.2f-%.2f (spacing %s px)" % (drift or 0, lo, hi, sp), drift is not None and lo <= drift <= hi) still = (sum(1 for s in shifts if abs(s) <= 1) / len(shifts)) if shifts else 0 r.check(0.05, "pulsed motion: %.0f %% of frames still (≥ %.0f %%)" % (still * 100, BEATS["still_fraction_min"] * 100), still >= BEATS["still_fraction_min"] and drift is not None and drift > 0.2) if spacings and sp: msp = sum(spacings) / len(spacings) cv = (sum((s - msp) ** 2 for s in spacings) / len(spacings)) ** 0.5 / msp else: cv = None r.check(0.05, "regular spacing: CV %.2f (< 0.15)" % (cv if cv is not None else -1), cv is not None and cv < 0.15)
# --- E colour ---------------------------------------------------------- hues = [median([b["hue"] for b in a["blobs"] if b["hue"] is not None]) for a in A] hues = [h for h in hues if h is not None] bins = set(int(h // 30) for h in hues) r.check(0.06, "colour cycles: %d distinct 30° hue bins (≥ %d)" % (len(bins), BEATS["hue_bins_min"]), len(bins) >= BEATS["hue_bins_min"]) shared = 0 for a in A: hh = [b["hue"] for b in a["blobs"] if b["hue"] is not None and b["full"]] if len(hh) >= 2 and circ_spread(hh) < BEATS["hue_spread_max_deg"]: shared += 1 r.check(0.04, "one shared hue per frame (%d/%d frames)" % (shared, n), n > 0 and shared >= 0.8 * n) changes = sum(1 for i in range(len(hues) - 1) if int(hues[i] // 30) != int(hues[i + 1] // 30)) rate = changes / (len(hues) / FPS) if hues else 0 r.check(0.05, "hue changes %.1f bins/s (≥ %.1f)" % (rate, BEATS["hue_changes_per_s_min"]), rate >= BEATS["hue_changes_per_s_min"])
measured.update({"squash": squash, "period_s": period, "aspect": aspect, "spacing_px": sp, "drift": drift, "still": still, "hue_bins": len(bins), "hue_rate": rate, "baseline_std": bstd, "max_step": mstep, "counts_median": median(counts), "heights": hsig[:200], "shifts": shifts[:200]}) json.dump(measured, open(os.path.join(WORK, "blob-measured.json"), "w"), indent=1)
attempts = terminal_attempts() score = r.report() if attempts: print(" GUI-ONLY GATE: %d terminal attempt(s) logged -> reward 0 (first: %s)" % (len(attempts), attempts[0][:120])) write_reward(0.0, REWARD_PATH) score = 0.0 assert score >= 0.999, "rubric fraction %.3f < 1.0" % score1234567891011121314You are a motion designer. One clip is in /root/media: reference.mp4 (800x800, 30 fps, 6 seconds, no sound). It is a finished looping animation of a row of smiling "blob" characters dancing across a white background. Your job is to recreate this animation from scratch in Friction (already open; relaunch it from the Applications menu or the Desktop icon if needed). Watch the reference first — import it into a scratch Friction scene, or open it in Shotcut from the Applications menu, and step through it frame by frame — then rebuild it. There is no terminal in this environment; use the applications' GUIs.
What to build, as one Friction scene, 800x800, 30 fps, 6 seconds long, on a plain white background:
1. The characters: a row of identical blobs, all the same colour at any moment, evenly spaced so that about four whole blobs are visible with partial blobs cut off at the left and right edges. Each blob is a soft dome shape — flat-ish at the bottom, rounded on top, a little wider than it is tall — with a simple dark face: two eyes and a smile in its lower half. All blobs stand on the same invisible floor line, a little below the middle of the frame.
2. The dance, a short loop that repeats about twice a second (one hop every ~0.5 s): - the blob squashes straight down, keeping its feet on the floor and its width about the same, to roughly two-thirds of its resting height; - then it springs back up to full height and, while doing so, the whole row hops half a blob-spacing to the right. Because the blobs are identical and evenly spaced, the row looks continuous — after two hops it has moved exactly one spacing and the pattern lines up again; - the motion is smooth and eased (slow in, slow out), not a jump cut; the squash takes a little longer than the spring-back.
3. The colour: all blobs share one fill colour, and that colour cycles around the colour wheel — red, yellow, green, cyan, blue, magenta and back — once per hop, changing continuously through the loop.
Match the reference as closely as you can in shape, proportions, timing and colour behaviour; the exact drawing does not have to be pixel-identical. Everything must be drawn yourself with Friction's shape and path tools and keyframed on the timeline — do not place the reference video or frames from it inside your scene. Save the project as /root/edit/blob.friction and render the scene to /root/Desktop/final.mp4 (800x800, 30 fps, H.264, 6 seconds). The render must be your recreation, not the reference.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305"""t23 v1: reference-conditioned, offline visual checklist (ALE-inspired).
Uses only stdlib + ffmpeg. Twenty equally weighted binary questions; exportrequirements and the existing GUI-only rule are gates, not appearance points.The immutable feature manifest is built from the exact clip shown to the agent."""import argparseimport colorsysimport hashlibimport jsonimport mathfrom pathlib import Pathimport statistics as st
import legacy_v0 as v0
VERSION = 't23-reference-v1'GRID = 64REFERENCE = Path(__file__).parent / 'reference' / 'visual-reference.json'
def mean(xs): return st.mean(xs) if xs else 0.0
def sha(path): return hashlib.sha256(Path(path).read_bytes()).hexdigest()
def period_fit(h): # Fit a repeated height trace over the whole clip. Multi-cycle lags avoid # rounding a 14.25-frame reference hop to 14 frames and accumulating drift. if len(h) < 60 or max(h) - min(h) < 2: return None best = (float('inf'), None) for k in range(480, 721): p = k / 40 # 12..18 frames, 0.4..0.6 seconds errors = [] for cycles in (1, 2, 4, 6): lag = cycles * p n = int(lag) frac = lag - n errors.extend((h[i] - ((1-frac)*h[i+n] + frac*h[i+n+1]))**2 for i in range(len(h)-n-1)) cost = mean(errors) if cost < best[0]: best = cost, p # A fit pegged to the search boundary is not evidence of the requested hop. return best[1] if best[1] not in (12.0, 18.0) else None
def profile(values, period): sums = [[] for _ in range(12)] for i, x in enumerate(values): sums[int((i / period % 1) * 12)].append(x) return [mean(x) for x in sums]
def rotate(x, n): return x[n:] + x[:n]
def template(frame, b): """Canonical body and face masks; no background contribution to overlap.""" body, face = [], [] for y in range(GRID): yy = b['top'] + min(b['h'] - 1, int((y + .5) * b['h'] / GRID)) for x in range(GRID): xx = b['x0'] + min(b['w'] - 1, int((x + .5) * b['w'] / GRID)) p = 3 * (yy * v0.S + xx) rgb = frame[p:p+3] dark = max(rgb) < 110 body.append(int(max(rgb) - min(rgb) > 50 or min(rgb) < 180)) face.append(int(dark)) return body, face
def pack(mask): return hex(sum(x<<i for i,x in enumerate(mask)))[2:]
def unpack(encoded): n=int(encoded,16) return [(n>>i)&1 for i in range(GRID*GRID)]
def pose_bank(poses): # Keep separate observed drawings: averaging masks would erase moving eyes # and tilted smiles. Uniform samples span the full video, including repeats. indices=sorted(set(round(i*(len(poses)-1)/31) for i in range(32))) if poses else [] return [{'body':pack(poses[i][0]),'face':pack(poses[i][1])} for i in indices]
def extract(path): frames = v0.decode(str(path)) if not frames: return {'valid': False, 'reason': 'video did not fully decode'} analyses = [v0.analyse(f) for f in frames] full = [[b for b in a['blobs'] if b['full']] for a in analyses] valid = [i for i, b in enumerate(full) if len(b) >= 2] if len(valid) < .9 * len(frames): return {'valid': False, 'reason': 'fewer than two complete coloured blobs on over 10% of frames'} h = [st.median(b['h'] for b in full[i]) if full[i] else 0 for i in range(len(frames))] w = [st.median(b['w'] for b in full[i]) if full[i] else 0 for i in range(len(frames))] bottom = [st.median(b['bot'] for b in full[i]) for i in valid] spacing = [bs[j+1]['x0'] - bs[j]['x0'] for bs in full for j in range(len(bs)-1)] p = period_fit(h) lo, hi = min(x for x in h if x), max(h) rest, squash = [], [] hues, saturation, value = [], [], [] for i, f in enumerate(frames): hh = [math.radians(b['hue']) for b in full[i] if b['hue'] is not None] hues.append(math.degrees(math.atan2(mean([math.sin(x) for x in hh]), mean([math.cos(x) for x in hh]))) % 360) if not full[i]: continue # Every full blob, across the entire clip, contributes to the pose masks. for b in full[i]: if h[i] >= hi - 2: rest.append(template(f, b)) if h[i] <= lo + 2: squash.append(template(f, b)) b = min(full[i], key=lambda b: abs((b['x0']+b['x1'])/2-v0.S/2)) pix = [] for y in range(b['top'], b['bot']+1, 2): for x in range(b['x0'], b['x1']+1, 2): at = 3*(y*v0.S+x) rgb = f[at:at+3] if max(rgb)-min(rgb)>50: pix.append(colorsys.rgb_to_hsv(*(c/255 for c in rgb))) saturation.append(mean([x[1] for x in pix])) value.append(mean([x[2] for x in pix])) # Track row centres modulo a spacing. Centring avoids the directional # tie bias of overlap-only column correlation as silhouettes change width. sp = st.median(spacing) locations = [] for bs in full: angles = [2*math.pi*((b['x0']+b['x1'])/2)/sp for b in bs] locations.append(math.atan2(mean([math.sin(x) for x in angles]), mean([math.cos(x) for x in angles]))*sp/(2*math.pi)) shifts = [(b-a+sp/2)%sp-sp/2 for a,b in zip(locations,locations[1:])] sp = st.median(spacing) height_profile = profile(h, p) if p else [0]*12 # Choose one phase from the height only; use it for BOTH height and motion. phase = height_profile.index(max(height_profile)) height_profile = rotate(height_profile, phase) move_profile = rotate(profile(shifts, p), phase) if p else [0]*12 angular = [(b-a+180)%360-180 for a,b in zip(hues,hues[1:])] spread = [v0.circ_spread([b['hue'] for b in bs if b['hue'] is not None]) for bs in full] return dict(valid=True, frames=len(frames), width=st.median(w)*4, rest_height=hi*4, baseline=st.median(bottom)*4, baseline_std=st.pstdev(bottom)*4, width_ratio=max(w)/max(1,min(w)), spacing=sp*4, spacing_cv=st.pstdev(spacing)/sp, white_fraction=mean([a['white']>225 for a in analyses]), squash_ratio=lo/hi if hi else 0, period_s=p/30 if p else None, height_profile=height_profile, drift=mean(shifts)*30/sp, move_profile=[x*30/sp for x in move_profile], saturation=st.median(saturation), value=st.median(value), hue_cycles_s=mean(angular)*30/360, hue_bins=len(set(int(x//30) for x in hues)), shared_fraction=mean([x<20 for x in spread]), masks={name: pose_bank(poses) for name,poses in [('rest',rest),('squash',squash)]})
def points(mask): return {(i%GRID, i//GRID) for i,x in enumerate(mask) if x}
def centroid(p): return (mean([x for x,y in p]), mean([y for x,y in p])) if p else (0,0)
def compare(a,r): checks=[] def check(id, category, question, got, threshold, passed): checks.append(dict(id=id, category=category, question=question, measured=got, tolerance=threshold, passed=bool(passed), weight=.05)) if not a.get('valid'): return checks pose_results={} for pose in ('rest','squash'): def describe(t): body=points(unpack(t['body'])) face=points(unpack(t['face'])) c=centroid(face) centred={(x-round(c[0]),y-round(c[1])) for x,y in face} dilated={(x+dx,y+dy) for x,y in centred for dx in (-1,0,1) for dy in (-1,0,1)} return body,face,c,centred,dilated ab=[describe(t) for t in a['masks'][pose]] rb=[describe(t) for t in r['masks'][pose]] metrics=[] for ap,af,ac,asc,ad in ab: choices=[] for rp,rf,rc,rsc,rd in rb: iou=len(ap&rp)/len(ap|rp) if ap|rp else 0 precision=len(asc&rd)/len(asc) if asc else 0 recall=len(rsc&ad)/len(rsc) if rsc else 0 f1=2*precision*recall/(precision+recall) if precision+recall else 0 dist=math.dist(ac,rc)/GRID if af and rf else 1 area=abs(len(af)/len(rf)-1) if rf else 1 # One reference drawing supplies every metric for this pair. choices.append((iou+.2*f1-.2*dist,iou,f1,dist,area)) metrics.append(max(choices)[1:]) vals=[mean([m[i] for m in metrics]) for i in range(4)] pose_results[pose]=vals iou,f1,_,_=vals check('silhouette_'+pose,'appearance','Does the foreground silhouette match at '+pose+'?',iou,'mean paired IoU >= 0.92',iou>=.92) check('face_drawing_'+pose,'appearance','Do the facial strokes match at '+pose+' after centring?',f1,'mean paired tolerant F1 >= 0.75',f1>=.75) distance=mean([v[2] for v in pose_results.values()]) check('face_placement','appearance','Is the face placed at the same relative position within the body?',distance,'mean centroid distance <= 0.04 body units',distance<=.04) density_error=mean([v[3] for v in pose_results.values()]) check('face_weight','appearance','Does the amount of dark facial ink match?',density_error,'mean relative area error <= 0.25',density_error<=.25) for field in ('width','rest_height'): error=abs(a[field]/r[field]-1) check(field,'appearance','Does the blob '+field+' match the reference?',error,'relative error <= 0.08',error<=.08) delta=abs(a['baseline']-r['baseline']) check('floor','layout','Is the row at the reference floor height?',delta,'difference <= 8 pixels at 800x800',delta<=8) check('background','layout','Does the plain white background match?',a['white_fraction'],'white border on >= 95% frames',a['white_fraction']>=.95) error=abs(a['spacing']/r['spacing']-1) check('spacing','layout','Does the repeated row spacing match?',dict(relative_error=error,cv=a['spacing_cv']),'error <= 0.08 and CV <= 0.08',error<=.08 and a['spacing_cv']<=.08) error=abs(a['period_s']/r['period_s']-1) if a['period_s'] and r['period_s'] else 1 check('hop_period','motion','Does the repeating hop cadence match?',error,'relative period error <= 0.10',error<=.10) error=abs(a['squash_ratio']-r['squash_ratio']) check('squash_depth','motion','Does the squash reach the reference relative height?',error,'ratio difference <= 0.05',error<=.05) check('pinned_floor','motion','Do the feet stay pinned as in the reference?',a['baseline_std'],'baseline std <= max(reference + 2, 4) pixels',a['baseline_std']<=max(r['baseline_std']+2,4)) check('stable_width','motion','Does width remain constant during the squash?',a['width_ratio'],'max/min <= max(reference + 0.02, 1.05)',a['width_ratio']<=max(r['width_ratio']+.02,1.05)) def norm(h): span=max(h)-min(h) return [(x-min(h))/span for x in h] if span else [0]*len(h) ah,rh=norm(a['height_profile']),norm(r['height_profile']) # At most one bin correction for quantized rest plateaus; never warp time. offsets=(-1,0,1) best=min(offsets,key=lambda o: mean([abs(x-y) for x,y in zip(rotate(ah,o),rh)])) error=mean([abs(x-y) for x,y in zip(rotate(ah,best),rh)]) check('squash_easing','motion','Does the normalized squash/spring timing curve match?',error,'12-phase mean absolute error <= 0.08',a['period_s'] is not None and error<=.08) error=abs(a['drift']/r['drift']-1) if r['drift'] else abs(a['drift']) check('rightward_travel','motion','Does the row advance right at the reference rate?',dict(relative_error=error,agent=a['drift'],reference=r['drift']),'positive travel; relative error <= 0.15',a['drift']>0 and error<=.15) amp=max(r['move_profile']) or 1 error=mean([abs(x-y)/amp for x,y in zip(rotate(a['move_profile'],best),r['move_profile'])]) check('hop_pulse','motion','Is rightward motion pulsed at the same stage of the squash?',error,'phase velocity error <= 0.15 and positive drift',a['drift']>0.2 and error<=.15) error=max(abs(a['saturation']-r['saturation']),abs(a['value']-r['value'])) check('palette','colour','Does the fill have the reference saturation and brightness?',error,'HSV saturation/value difference <= 0.08',error<=.08) error=abs(a['hue_cycles_s']/r['hue_cycles_s']-1) if r['hue_cycles_s'] else 1 check('colour_cycle','colour','Does the shared hue cycle follow the reference direction and rate?',dict(rate_error=error,bins=a['hue_bins'],shared=a['shared_fraction']),'rate error <= 0.15; reference hue coverage minus <= 1 bin; shared >= 95%',error<=.15 and a['hue_bins']>=max(6,r['hue_bins']-1) and a['shared_fraction']>=.95) assert len(checks)==20 return checks
def evaluate(video, project, terminal_log, reference=REFERENCE): manifest=json.loads(Path(reference).read_text()) # missing reference is evaluator error if manifest.get('version')!=VERSION: raise ValueError('reference manifest version mismatch') meta=v0.probe(str(video)) streams=meta.get('streams',[]) if meta else [] video_stream=next((x for x in streams if x.get('codec_type')=='video'),{}) gates=dict(decodable=bool(meta),size=v0.video_size(meta)==(800,800) if meta else False, duration=abs((v0.duration(meta) or 0)-6)<=1 if meta else False, codec=video_stream.get('codec_name')=='h264', no_audio=not any(x.get('codec_type')=='audio' for x in streams), fps=video_stream.get('avg_frame_rate') in ('30/1','60/2'), project=Path(project).is_file() and Path(project).stat().st_size>=1024, gui_only=not(Path(terminal_log).exists() and Path(terminal_log).read_text().strip())) a=extract(video) if meta else {'valid':False} gates['visible_blobs']=a.get('valid',False) gates['decoded_duration']=150<=a.get('frames',0)<=210 checks=compare(a,manifest['features']) quality=round(sum(x['weight'] for x in checks if x['passed']),4) result=dict(version=VERSION,method='deterministic reference-conditioned binary checklist', paper='https://arxiv.org/html/2606.05405v1#A3.SS3.SSS4', reference_sha256=manifest['source_sha256'], candidate_sha256=sha(video) if Path(video).exists() else None, reference_manifest_sha256=sha(reference),scorer_sha256=sha(__file__), gates=gates,checks=checks,visual_score=quality, reward=quality if all(gates.values()) else 0., features=a,reference_features=manifest['features']) return result
def main(): p=argparse.ArgumentParser() p.add_argument('--build-reference',type=Path) p.add_argument('--video',type=Path) p.add_argument('--project',type=Path) p.add_argument('--terminal-log',type=Path,default=Path('/nonexistent-terminal-log')) p.add_argument('--output',type=Path,required=True) args=p.parse_args() if args.build_reference: features=extract(args.build_reference) if not features.get('valid'): raise ValueError('reference extraction failed') result=dict(version=VERSION,source='Agent-visible environment/media/reference.mp4', source_sha256=sha(args.build_reference),features=features) else: if not args.video or not args.project: p.error('--video and --project are required to grade') result=evaluate(args.video,args.project,args.terminal_log) print(json.dumps({k:v for k,v in result.items() if k not in ('features','reference_features','checks')},indent=2)) for c in result['checks']: print(('PASS' if c['passed'] else 'FAIL'),c['id'],c['measured']) args.output.parent.mkdir(parents=True,exist_ok=True) args.output.write_text(json.dumps(result,indent=2)+'\n')
if __name__=='__main__': main()123456789101112131415161718192021222324252627282930"""t23 rubric v1: compare the final render with the supplied visual reference.
Twenty equally weighted, reference-conditioned checks. Export and GUI-onlyrequirements are gates. Historical feature-presence rubric: legacy_v0.py."""import jsonimport osfrom pathlib import Path
from _vedit_verifier import write_rewardfrom reference_score import evaluate
def test_rubric(): home=Path(os.environ.get('T23_HOME','/root')) final=Path(os.environ.get('T23_FINAL',str(home/'Desktop/final.mp4'))) project=Path(os.environ.get('T23_PROJECT',str(home/'edit/blob.friction'))) terminal=Path(os.environ.get('T23_TERMINAL_LOG','/logs/artifacts/terminal-attempts.log')) reward=os.environ.get('T23_REWARD','/logs/verifier/reward.txt') work=Path(os.environ.get('T23_WORK','/tmp/t23-grade')) work.mkdir(parents=True,exist_ok=True) result=evaluate(final,project,terminal) (work/'visual-score-v1.json').write_text(json.dumps(result,indent=2)+'\n') for name,passed in result['gates'].items(): print(('PASS' if passed else 'FAIL'),'gate:',name) for check in result['checks']: print(('PASS' if check['passed'] else 'FAIL'),check['id'],check['measured'],check['tolerance']) write_reward(result['reward'],reward) print('t23-reference-v1:',result['reward']) assert result['reward']>=.999, 'reference visual score %.2f < 1.0' % result['reward']1234567891011121314151617181920212223#!/bin/shset -euexport FRICTION_AUDIT_MODE=1export LD_LIBRARY_PATH=/opt/friction/libexport QT_QPA_PLATFORM=xcbexport QT_PLUGIN_PATH=/opt/friction/pluginsexport LIBGL_ALWAYS_SOFTWARE=1export XDG_RUNTIME_DIR=/tmp/xdg-friction-auditexport DISPLAY=:98mkdir -p "$XDG_RUNTIME_DIR" /root/.config /root/.cachechmod 700 "$XDG_RUNTIME_DIR"# A private container has no other display clients; bind only its local socket.# Avoid xvfb-run's parent USR1 readiness handshake when the shell is PID1.Xvfb "$DISPLAY" -screen 0 1920x1080x24 -nolisten tcp -ac >/tmp/xvfb-audit.log 2>&1 &TASK_XVFB_PID=$!trap 'kill "$TASK_XVFB_PID" 2>/dev/null || true' EXIT INT TERMTASK_READY=0while [ ! -S /tmp/.X11-unix/X98 ]; do TASK_READY=$((TASK_READY+1)) if [ "$TASK_READY" -gt 50 ]; then cat /tmp/xvfb-audit.log >&2; exit 5; fi sleep 0.1done/opt/friction-audit/bin/friction "$@"12345678910111213141516{ "source_commit": "a49cbb9cf6f687ebacbe7445b3b07e25ef73876c", "original_runtime_image": "sha256:8f4b36086fb20aa72e1dfc0038b24d9ea267164ecf0e6c97c499543b099024c2", "original_binary_sha256": "909071c8a49e1bb9899a4fbfb1f4d1de533fba7165f0d7c04469d3ccd9b01f30", "sdk_url": "https://github.com/friction2d/friction-sdk/releases/download/v1.0.0/friction-sdk-1.0.0r9-linux-x86_64.tar.xz", "sdk_sha256": "418f2e84ccd7b88873d9df83b605a3977a283797243a6605701a2432f962998c", "audit_runtime_status": "source_build_sidecar_t52_190_t47_302_and_negative_fixtures_validated", "audit_binary_sha256": "221bb2d6f69b38574db9b2f07df95fb0d9acc2951148a88d798bb179383391e9", "audit_runtime_image": "sha256:681aa3a10f9ce9a5c53f5aed9922be1395005a8db45508a20bcec260b7e36f9f", "validation": "validation/sidecar/results.json", "validation_frame_count": 190, "source_tree_modified": true, "source_patch_sha256": "c6519c25879bd40297aa1d685fed08d013a60fc1808a002ae09c42482beacc25", "frame_storage": "sidecar_json_v1", "multi_scene_validation": "validation/sidecar/results.json"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305"""t23 v1: reference-conditioned, offline visual checklist (ALE-inspired).
Uses only stdlib + ffmpeg. Twenty equally weighted binary questions; exportrequirements and the existing GUI-only rule are gates, not appearance points.The immutable feature manifest is built from the exact clip shown to the agent."""import argparseimport colorsysimport hashlibimport jsonimport mathfrom pathlib import Pathimport statistics as st
import legacy_v0 as v0
VERSION = 't23-reference-v1'GRID = 64REFERENCE = Path(__file__).parent / 'reference' / 'visual-reference.json'
def mean(xs): return st.mean(xs) if xs else 0.0
def sha(path): return hashlib.sha256(Path(path).read_bytes()).hexdigest()
def period_fit(h): # Fit a repeated height trace over the whole clip. Multi-cycle lags avoid # rounding a 14.25-frame reference hop to 14 frames and accumulating drift. if len(h) < 60 or max(h) - min(h) < 2: return None best = (float('inf'), None) for k in range(480, 721): p = k / 40 # 12..18 frames, 0.4..0.6 seconds errors = [] for cycles in (1, 2, 4, 6): lag = cycles * p n = int(lag) frac = lag - n errors.extend((h[i] - ((1-frac)*h[i+n] + frac*h[i+n+1]))**2 for i in range(len(h)-n-1)) cost = mean(errors) if cost < best[0]: best = cost, p # A fit pegged to the search boundary is not evidence of the requested hop. return best[1] if best[1] not in (12.0, 18.0) else None
def profile(values, period): sums = [[] for _ in range(12)] for i, x in enumerate(values): sums[int((i / period % 1) * 12)].append(x) return [mean(x) for x in sums]
def rotate(x, n): return x[n:] + x[:n]
def template(frame, b): """Canonical body and face masks; no background contribution to overlap.""" body, face = [], [] for y in range(GRID): yy = b['top'] + min(b['h'] - 1, int((y + .5) * b['h'] / GRID)) for x in range(GRID): xx = b['x0'] + min(b['w'] - 1, int((x + .5) * b['w'] / GRID)) p = 3 * (yy * v0.S + xx) rgb = frame[p:p+3] dark = max(rgb) < 110 body.append(int(max(rgb) - min(rgb) > 50 or min(rgb) < 180)) face.append(int(dark)) return body, face
def pack(mask): return hex(sum(x<<i for i,x in enumerate(mask)))[2:]
def unpack(encoded): n=int(encoded,16) return [(n>>i)&1 for i in range(GRID*GRID)]
def pose_bank(poses): # Keep separate observed drawings: averaging masks would erase moving eyes # and tilted smiles. Uniform samples span the full video, including repeats. indices=sorted(set(round(i*(len(poses)-1)/31) for i in range(32))) if poses else [] return [{'body':pack(poses[i][0]),'face':pack(poses[i][1])} for i in indices]
def extract(path): frames = v0.decode(str(path)) if not frames: return {'valid': False, 'reason': 'video did not fully decode'} analyses = [v0.analyse(f) for f in frames] full = [[b for b in a['blobs'] if b['full']] for a in analyses] valid = [i for i, b in enumerate(full) if len(b) >= 2] if len(valid) < .9 * len(frames): return {'valid': False, 'reason': 'fewer than two complete coloured blobs on over 10% of frames'} h = [st.median(b['h'] for b in full[i]) if full[i] else 0 for i in range(len(frames))] w = [st.median(b['w'] for b in full[i]) if full[i] else 0 for i in range(len(frames))] bottom = [st.median(b['bot'] for b in full[i]) for i in valid] spacing = [bs[j+1]['x0'] - bs[j]['x0'] for bs in full for j in range(len(bs)-1)] p = period_fit(h) lo, hi = min(x for x in h if x), max(h) rest, squash = [], [] hues, saturation, value = [], [], [] for i, f in enumerate(frames): hh = [math.radians(b['hue']) for b in full[i] if b['hue'] is not None] hues.append(math.degrees(math.atan2(mean([math.sin(x) for x in hh]), mean([math.cos(x) for x in hh]))) % 360) if not full[i]: continue # Every full blob, across the entire clip, contributes to the pose masks. for b in full[i]: if h[i] >= hi - 2: rest.append(template(f, b)) if h[i] <= lo + 2: squash.append(template(f, b)) b = min(full[i], key=lambda b: abs((b['x0']+b['x1'])/2-v0.S/2)) pix = [] for y in range(b['top'], b['bot']+1, 2): for x in range(b['x0'], b['x1']+1, 2): at = 3*(y*v0.S+x) rgb = f[at:at+3] if max(rgb)-min(rgb)>50: pix.append(colorsys.rgb_to_hsv(*(c/255 for c in rgb))) saturation.append(mean([x[1] for x in pix])) value.append(mean([x[2] for x in pix])) # Track row centres modulo a spacing. Centring avoids the directional # tie bias of overlap-only column correlation as silhouettes change width. sp = st.median(spacing) locations = [] for bs in full: angles = [2*math.pi*((b['x0']+b['x1'])/2)/sp for b in bs] locations.append(math.atan2(mean([math.sin(x) for x in angles]), mean([math.cos(x) for x in angles]))*sp/(2*math.pi)) shifts = [(b-a+sp/2)%sp-sp/2 for a,b in zip(locations,locations[1:])] sp = st.median(spacing) height_profile = profile(h, p) if p else [0]*12 # Choose one phase from the height only; use it for BOTH height and motion. phase = height_profile.index(max(height_profile)) height_profile = rotate(height_profile, phase) move_profile = rotate(profile(shifts, p), phase) if p else [0]*12 angular = [(b-a+180)%360-180 for a,b in zip(hues,hues[1:])] spread = [v0.circ_spread([b['hue'] for b in bs if b['hue'] is not None]) for bs in full] return dict(valid=True, frames=len(frames), width=st.median(w)*4, rest_height=hi*4, baseline=st.median(bottom)*4, baseline_std=st.pstdev(bottom)*4, width_ratio=max(w)/max(1,min(w)), spacing=sp*4, spacing_cv=st.pstdev(spacing)/sp, white_fraction=mean([a['white']>225 for a in analyses]), squash_ratio=lo/hi if hi else 0, period_s=p/30 if p else None, height_profile=height_profile, drift=mean(shifts)*30/sp, move_profile=[x*30/sp for x in move_profile], saturation=st.median(saturation), value=st.median(value), hue_cycles_s=mean(angular)*30/360, hue_bins=len(set(int(x//30) for x in hues)), shared_fraction=mean([x<20 for x in spread]), masks={name: pose_bank(poses) for name,poses in [('rest',rest),('squash',squash)]})
def points(mask): return {(i%GRID, i//GRID) for i,x in enumerate(mask) if x}
def centroid(p): return (mean([x for x,y in p]), mean([y for x,y in p])) if p else (0,0)
def compare(a,r): checks=[] def check(id, category, question, got, threshold, passed): checks.append(dict(id=id, category=category, question=question, measured=got, tolerance=threshold, passed=bool(passed), weight=.05)) if not a.get('valid'): return checks pose_results={} for pose in ('rest','squash'): def describe(t): body=points(unpack(t['body'])) face=points(unpack(t['face'])) c=centroid(face) centred={(x-round(c[0]),y-round(c[1])) for x,y in face} dilated={(x+dx,y+dy) for x,y in centred for dx in (-1,0,1) for dy in (-1,0,1)} return body,face,c,centred,dilated ab=[describe(t) for t in a['masks'][pose]] rb=[describe(t) for t in r['masks'][pose]] metrics=[] for ap,af,ac,asc,ad in ab: choices=[] for rp,rf,rc,rsc,rd in rb: iou=len(ap&rp)/len(ap|rp) if ap|rp else 0 precision=len(asc&rd)/len(asc) if asc else 0 recall=len(rsc&ad)/len(rsc) if rsc else 0 f1=2*precision*recall/(precision+recall) if precision+recall else 0 dist=math.dist(ac,rc)/GRID if af and rf else 1 area=abs(len(af)/len(rf)-1) if rf else 1 # One reference drawing supplies every metric for this pair. choices.append((iou+.2*f1-.2*dist,iou,f1,dist,area)) metrics.append(max(choices)[1:]) vals=[mean([m[i] for m in metrics]) for i in range(4)] pose_results[pose]=vals iou,f1,_,_=vals check('silhouette_'+pose,'appearance','Does the foreground silhouette match at '+pose+'?',iou,'mean paired IoU >= 0.92',iou>=.92) check('face_drawing_'+pose,'appearance','Do the facial strokes match at '+pose+' after centring?',f1,'mean paired tolerant F1 >= 0.75',f1>=.75) distance=mean([v[2] for v in pose_results.values()]) check('face_placement','appearance','Is the face placed at the same relative position within the body?',distance,'mean centroid distance <= 0.04 body units',distance<=.04) density_error=mean([v[3] for v in pose_results.values()]) check('face_weight','appearance','Does the amount of dark facial ink match?',density_error,'mean relative area error <= 0.25',density_error<=.25) for field in ('width','rest_height'): error=abs(a[field]/r[field]-1) check(field,'appearance','Does the blob '+field+' match the reference?',error,'relative error <= 0.08',error<=.08) delta=abs(a['baseline']-r['baseline']) check('floor','layout','Is the row at the reference floor height?',delta,'difference <= 8 pixels at 800x800',delta<=8) check('background','layout','Does the plain white background match?',a['white_fraction'],'white border on >= 95% frames',a['white_fraction']>=.95) error=abs(a['spacing']/r['spacing']-1) check('spacing','layout','Does the repeated row spacing match?',dict(relative_error=error,cv=a['spacing_cv']),'error <= 0.08 and CV <= 0.08',error<=.08 and a['spacing_cv']<=.08) error=abs(a['period_s']/r['period_s']-1) if a['period_s'] and r['period_s'] else 1 check('hop_period','motion','Does the repeating hop cadence match?',error,'relative period error <= 0.10',error<=.10) error=abs(a['squash_ratio']-r['squash_ratio']) check('squash_depth','motion','Does the squash reach the reference relative height?',error,'ratio difference <= 0.05',error<=.05) check('pinned_floor','motion','Do the feet stay pinned as in the reference?',a['baseline_std'],'baseline std <= max(reference + 2, 4) pixels',a['baseline_std']<=max(r['baseline_std']+2,4)) check('stable_width','motion','Does width remain constant during the squash?',a['width_ratio'],'max/min <= max(reference + 0.02, 1.05)',a['width_ratio']<=max(r['width_ratio']+.02,1.05)) def norm(h): span=max(h)-min(h) return [(x-min(h))/span for x in h] if span else [0]*len(h) ah,rh=norm(a['height_profile']),norm(r['height_profile']) # At most one bin correction for quantized rest plateaus; never warp time. offsets=(-1,0,1) best=min(offsets,key=lambda o: mean([abs(x-y) for x,y in zip(rotate(ah,o),rh)])) error=mean([abs(x-y) for x,y in zip(rotate(ah,best),rh)]) check('squash_easing','motion','Does the normalized squash/spring timing curve match?',error,'12-phase mean absolute error <= 0.08',a['period_s'] is not None and error<=.08) error=abs(a['drift']/r['drift']-1) if r['drift'] else abs(a['drift']) check('rightward_travel','motion','Does the row advance right at the reference rate?',dict(relative_error=error,agent=a['drift'],reference=r['drift']),'positive travel; relative error <= 0.15',a['drift']>0 and error<=.15) amp=max(r['move_profile']) or 1 error=mean([abs(x-y)/amp for x,y in zip(rotate(a['move_profile'],best),r['move_profile'])]) check('hop_pulse','motion','Is rightward motion pulsed at the same stage of the squash?',error,'phase velocity error <= 0.15 and positive drift',a['drift']>0.2 and error<=.15) error=max(abs(a['saturation']-r['saturation']),abs(a['value']-r['value'])) check('palette','colour','Does the fill have the reference saturation and brightness?',error,'HSV saturation/value difference <= 0.08',error<=.08) error=abs(a['hue_cycles_s']/r['hue_cycles_s']-1) if r['hue_cycles_s'] else 1 check('colour_cycle','colour','Does the shared hue cycle follow the reference direction and rate?',dict(rate_error=error,bins=a['hue_bins'],shared=a['shared_fraction']),'rate error <= 0.15; reference hue coverage minus <= 1 bin; shared >= 95%',error<=.15 and a['hue_bins']>=max(6,r['hue_bins']-1) and a['shared_fraction']>=.95) assert len(checks)==20 return checks
def evaluate(video, project, terminal_log, reference=REFERENCE): manifest=json.loads(Path(reference).read_text()) # missing reference is evaluator error if manifest.get('version')!=VERSION: raise ValueError('reference manifest version mismatch') meta=v0.probe(str(video)) streams=meta.get('streams',[]) if meta else [] video_stream=next((x for x in streams if x.get('codec_type')=='video'),{}) gates=dict(decodable=bool(meta),size=v0.video_size(meta)==(800,800) if meta else False, duration=abs((v0.duration(meta) or 0)-6)<=1 if meta else False, codec=video_stream.get('codec_name')=='h264', no_audio=not any(x.get('codec_type')=='audio' for x in streams), fps=video_stream.get('avg_frame_rate') in ('30/1','60/2'), project=Path(project).is_file() and Path(project).stat().st_size>=1024, gui_only=not(Path(terminal_log).exists() and Path(terminal_log).read_text().strip())) a=extract(video) if meta else {'valid':False} gates['visible_blobs']=a.get('valid',False) gates['decoded_duration']=150<=a.get('frames',0)<=210 checks=compare(a,manifest['features']) quality=round(sum(x['weight'] for x in checks if x['passed']),4) result=dict(version=VERSION,method='deterministic reference-conditioned binary checklist', paper='https://arxiv.org/html/2606.05405v1#A3.SS3.SSS4', reference_sha256=manifest['source_sha256'], candidate_sha256=sha(video) if Path(video).exists() else None, reference_manifest_sha256=sha(reference),scorer_sha256=sha(__file__), gates=gates,checks=checks,visual_score=quality, reward=quality if all(gates.values()) else 0., features=a,reference_features=manifest['features']) return result
def main(): p=argparse.ArgumentParser() p.add_argument('--build-reference',type=Path) p.add_argument('--video',type=Path) p.add_argument('--project',type=Path) p.add_argument('--terminal-log',type=Path,default=Path('/nonexistent-terminal-log')) p.add_argument('--output',type=Path,required=True) args=p.parse_args() if args.build_reference: features=extract(args.build_reference) if not features.get('valid'): raise ValueError('reference extraction failed') result=dict(version=VERSION,source='Agent-visible environment/media/reference.mp4', source_sha256=sha(args.build_reference),features=features) else: if not args.video or not args.project: p.error('--video and --project are required to grade') result=evaluate(args.video,args.project,args.terminal_log) print(json.dumps({k:v for k,v in result.items() if k not in ('features','reference_features','checks')},indent=2)) for c in result['checks']: print(('PASS' if c['passed'] else 'FAIL'),c['id'],c['measured']) args.output.parent.mkdir(parents=True,exist_ok=True) args.output.write_text(json.dumps(result,indent=2)+'\n')
if __name__=='__main__': main()12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152"""Reference-viewing credit from the environment's focused GUI player log."""import hashlibimport jsonfrom pathlib import Path
def verify_viewing(log, reference): reference = Path(reference) if not reference.is_file(): raise RuntimeError('Verifier reference asset missing') digest = hashlib.sha256(reference.read_bytes()).hexdigest() log = Path(log) if not log.is_file(): raise RuntimeError('Reference viewer recorder missing; rebuild task environment') sessions = {} ready = False for line in log.read_text().splitlines(): if not line.strip(): continue event = json.loads(line) if event.get('event') == 'viewer_error': raise RuntimeError('Reference viewer failed: ' + event.get('error', 'unknown')) if event.get('event') == 'recorder_ready': ready = True continue if event.get('reference_sha256') != digest: continue session = event.get('session') if event.get('event') == 'viewer_start': sessions[session] = {'seconds': 0, 'frames': set(), 'last_timestamp': event['timestamp']} elif event.get('event') == 'reference_frame' and session in sessions: state = sessions[session] frame, seconds, stamp = event['frame'], event['visible_seconds'], event['timestamp'] if not isinstance(frame, int) or not 0 <= frame < 180 or not 0 < seconds <= .25: raise RuntimeError('Invalid reference viewer evidence') if stamp <= state['last_timestamp']: raise RuntimeError('Reference viewer timestamps are not increasing') # Legacy recorder sampled monotonic time before focus/I/O, but wall # time afterward. Scheduling jitter can shorten adjacent wall deltas. # Cap credit to observed wall time; never award unsupported dwell. seconds = min(seconds, stamp - state['last_timestamp']) state['last_timestamp'] = stamp state['seconds'] += seconds state['frames'].add(frame) if not ready: raise RuntimeError('Reference recorder initialization missing') records = [{'visible_seconds': round(s['seconds'], 3), 'distinct_frames': len(s['frames']), 'frame_span': max(s['frames']) - min(s['frames']) if s['frames'] else 0} for s in sessions.values()] return {'passed': any(s['visible_seconds'] >= 3 and s['distinct_frames'] >= 10 and s['frame_span'] >= 15 for s in records), 'sessions': records, 'reference_sha256': digest}1a8ef4de8dc8609955e8bedfa7fac7b8448486993a6c6a93b2cce1685915f73e4 reference.mp4123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512"""T23 v2 task-based, staged RLVR checks. No facial/reference-mask matching.Only stdlib and ffmpeg; native inspection is performed by the real Friction loader."""import colorsysimport hashlibimport jsonimport mathimport osimport pathlibimport shutilimport statistics as stimport subprocessfrom reference_viewing import verify_viewing
VERSION = 't23-task-v3-reference-viewing'SIZE = 200FPS = 30HERE = pathlib.Path(__file__).resolve().parent
class VerifierError(RuntimeError): pass
def mean(values): values = list(values) return st.mean(values) if values else 0.0
def sha(path): return hashlib.sha256(pathlib.Path(path).read_bytes()).hexdigest()
def command(args, timeout=120): try: return subprocess.run(args, capture_output=True, timeout=timeout) except (OSError, subprocess.TimeoutExpired) as exc: raise VerifierError(f'Verifier dependency failed: {args[0]}: {exc}') from exc
def probe(video): if not pathlib.Path(video).is_file(): return None process = command(['ffprobe', '-v', 'error', '-show_streams', '-show_format', '-of', 'json', str(video)]) if process.returncode: return None # Invalid learner file; tool failures are checked by preflight. try: return json.loads(process.stdout) except ValueError as exc: raise VerifierError('ffprobe returned invalid JSON') from exc
def decode(video): process = command(['ffmpeg', '-nostdin', '-v', 'error', '-i', str(video), '-vf', f'fps={FPS},scale={SIZE}:{SIZE}', '-frames:v', '240', '-f', 'rawvideo', '-pix_fmt', 'rgb24', '-'], timeout=180) if process.returncode: return [] stride = SIZE * SIZE * 3 if len(process.stdout) % stride: raise VerifierError('Partial raw frame returned') return [process.stdout[i:i + stride] for i in range(0, len(process.stdout), stride)]
def components(points): """8-connected components; diagonal antialiasing does not split a smile.""" points = set(points) result = [] while points: seed = points.pop() component, pending = [seed], [seed] while pending: x, y = pending.pop() for dx in (-1, 0, 1): for dy in (-1, 0, 1): next_point = x + dx, y + dy if next_point in points: points.remove(next_point) pending.append(next_point) component.append(next_point) if len(component) >= 2: result.append(component) return result
def face_geometry(dark, box): x0, x1, top, bottom = box w, h = x1 - x0 + 1, bottom - top + 1 # Eyes may touch the smile in legitimate drawings. Split at the eye row # rather than requiring three disconnected dark components. if dark: min_y = min(y for _, y in dark) split = min_y + max(2, round(h * .12)) comps = components([(x, y) for x, y in dark if y < split]) + components([(x, y) for x, y in dark if y >= split]) else: comps = [] candidates = [] for part in comps: xs, ys = zip(*part) candidates.append({'x': mean(xs), 'y': mean(ys), 'w': max(xs) - min(xs) + 1, 'h': max(ys) - min(ys) + 1, 'area': len(part), 'points': part}) # Any valid eye pair/mouth combination can pass, independently of layer count. for mouth in candidates: if not .12 * w <= mouth['w'] <= .60 * w: continue eyes = [c for c in candidates if c is not mouth and .015 * w <= c['w'] <= .18 * w and c['y'] < mouth['y'] and abs(c['y'] - mouth['y']) < .40 * h] for left in eyes: for right in eyes: if not .12 * w <= right['x'] - left['x'] <= .65 * w or abs(left['y'] - right['y']) > .15 * h: continue # Smile centre is below its ends (image y grows down). pts = mouth['points'] minx, maxx = min(x for x, _ in pts), max(x for x, _ in pts) span = max(1, maxx - minx) middle = [y for x, y in pts if .3 <= (x - minx) / span <= .7] edges = [y for x, y in pts if (x - minx) / span < .2 or (x - minx) / span > .8] smile = bool(middle and edges and mean(middle) >= mean(edges) + .015 * h) lower = min(left['y'], right['y'], mouth['y']) >= top + .45 * h if smile: return True, lower return False, False
def analyse(frame): fills = [] cols = [0] * SIZE top, bottom = [SIZE] * SIZE, [-1] * SIZE for y in range(SIZE): for x in range(SIZE): offset = 3 * (y * SIZE + x) rgb = frame[offset:offset + 3] # Wide pastel tolerance; dark facial ink is measured separately. if max(rgb) - min(rgb) >= 30 and max(rgb) >= 100: fills.append((x, y)) cols[x] += 1 top[x] = min(top[x], y) bottom[x] = max(bottom[x], y) runs, start = [], None for x in range(SIZE + 1): on = x < SIZE and cols[x] >= 3 if on and start is None: start = x elif not on and start is not None: if x - start >= 8: runs.append((start, x - 1)) start = None blobs = [] for x0, x1 in runs: t, b = min(top[x0:x1 + 1]), max(bottom[x0:x1 + 1]) w, h = x1 - x0 + 1, b - t + 1 if h < 8: continue dark, widths, hue, saturation, value = [], [], [], [], [] nonwhite = [] for y in range(t, b + 1): row_ink = [] for x in range(x0, x1 + 1): i = 3 * (y * SIZE + x) rgb = frame[i:i + 3] if min(rgb) < 235: row_ink.append(x) nonwhite.append((x, y)) if max(rgb) < 130: dark.append((x, y)) if max(rgb) - min(rgb) >= 30: hh, ss, vv = colorsys.rgb_to_hsv(*(c / 255 for c in rgb)) hue.append(hh * 2 * math.pi) saturation.append(ss) value.append(vv) widths.append(max(row_ink) - min(row_ink) + 1 if row_ink else 0) facial, lower = face_geometry(dark, (x0, x1, t, b)) # Rounded shoulders, substantial lower body, narrow upper tip, flat feet. upper = mean(widths[:max(1, int(h * .12))]) / w shoulder = mean(widths[int(h * .3):int(h * .6)]) / w base = mean(widths[int(h * .7):max(int(h * .7) + 1, int(h * .9))]) / w central_bottoms = [bottom[x] for x in range(x0 + int(w * .2), x1 - int(w * .2) + 1)] dome = upper <= .70 and shoulder >= .55 and base >= .70 and st.pstdev(central_bottoms) <= max(1.5, .06 * h) blobs.append({'x': (x0 + x1) / 2, 'x0': x0, 'x1': x1, 'top': t, 'bottom': b, 'w': w, 'h': h, 'full': x0 > 1 and x1 < SIZE - 2, 'dome': dome, 'face': facial, 'lower_face': lower, 'hue': math.atan2(mean([math.sin(a) for a in hue]), mean([math.cos(a) for a in hue])), 'saturation': mean(saturation), 'brightness': mean(value)}) # Inspect every background pixel; foreground includes coloured fill and dark # marks inside a detected character. Stray dark objects elsewhere remain visible. offwhite = background = 0 for y in range(SIZE): for x in range(SIZE): if any(blob['x0'] <= x <= blob['x1'] and blob['top'] <= y <= blob['bottom'] for blob in blobs): continue background += 1 i = 3 * (y * SIZE + x) if min(frame[i:i + 3]) < 240: offwhite += 1 full = [b for b in blobs if b['full']] return {'blobs': blobs, 'full': full, 'background_white': 1 - offwhite / max(1, background), 'h': st.median(b['h'] for b in full) if full else None, 'w': st.median(b['w'] for b in full) if full else None, 'floor': st.median(b['bottom'] for b in full) if full else None}
def peaks(values): """Local maxima, with plateaus represented once; no fixed phase or exact curve.""" extrema = [] direction = 0 for i in range(1, len(values)): delta = values[i] - values[i - 1] new = 1 if delta > .25 else -1 if delta < -.25 else 0 if new and direction == 1 and new == -1: if not extrema or i - 1 - extrema[-1] >= 8: extrema.append(i - 1) if new: direction = new if values and values[0] >= max(values[:min(5, len(values))]) - .25: extrema.insert(0, 0) return extrema
def measure(frames): analysed = [analyse(frame) for frame in frames] valid = [a for a in analysed if len(a['full']) >= 2] if len(valid) < .90 * len(frames) or not frames: return {'visible': False, 'frame_count': len(frames), 'analysed': analysed} hs = [a['h'] if a['h'] is not None else 0 for a in analysed] full = [b for a in analysed for b in a['full']] spacings = [right['x'] - left['x'] for a in analysed for left, right in zip(a['full'], a['full'][1:])] spacing = st.median(spacings) locations = [] for a in analysed: angles = [2 * math.pi * b['x'] / spacing for b in a['full']] locations.append(math.atan2(mean([math.sin(x) for x in angles]), mean([math.cos(x) for x in angles])) * spacing / (2 * math.pi)) shifts = [(right - left + spacing / 2) % spacing - spacing / 2 for left, right in zip(locations, locations[1:])] hues = [] for a in analysed: angles = [b['hue'] for b in a['full']] hues.append(math.atan2(mean([math.sin(v) for v in angles]), mean([math.cos(v) for v in angles]))) hue_steps = [(b - a + math.pi) % (2 * math.pi) - math.pi for a, b in zip(hues, hues[1:])] rests = peaks(hs) hops = [] for start, end in zip(rests, rests[1:]): if not 9 <= end - start <= 21: continue minimum = min(hs[start:end + 1]) minima = [i for i in range(start, end + 1) if hs[i] == minimum] trough = round(mean(minima)) amplitude = max(hs[start], hs[end]) - hs[trough] if amplitude < 3: continue move = shifts[start:end] total = sum(move) spring_move = sum(shifts[trough:end]) height_steps = [abs(hs[i + 1] - hs[i]) for i in range(start, end)] down = [abs(hs[i + 1] - hs[i]) for i in range(start, trough)] up = [abs(hs[i + 1] - hs[i]) for i in range(trough, end)] def eased(slopes): return len(slopes) >= 3 and max(slopes) > 0 and min(slopes[0], slopes[-1]) <= .65 * max(slopes) hops.append({'eased_height': eased(down) and eased(up), 'start_frame' : start, 'minimum_frame': trough, 'end_frame': end, 'period': (end - start) / FPS, 'squash_ratio': hs[trough] / max(hs[start], hs[end]), 'squash_duration': trough - start, 'spring_duration': end - trough, 'step_spacing': total / spacing, 'spring_fraction': spring_move / total if total > 1 else 0, 'backward_fraction': sum(max(0, -v) for v in move) / max(1, sum(abs(v) for v in move)), 'largest_move_spacing': max(map(abs, move), default=0) / spacing, 'largest_height_step': max(height_steps, default=0) / amplitude, 'height_quantization': 1 / amplitude, 'hue_turns': sum(hue_steps[start:end]) / (2 * math.pi), 'largest_hue_step': max(map(abs, hue_steps[start:end]), default=0) / (2 * math.pi)}) shared = [] for a in analysed: angles = [b['hue'] for b in a['full']] shared.append(all(abs((v - hues[len(shared)] + math.pi) % (2 * math.pi) - math.pi) <= math.radians(20) for v in angles)) rest_height = max(hs) rest_blobs = [b for a in analysed if a['h'] >= rest_height - 1 for b in a['full']] return {'visible': True, 'frame_count': len(frames), 'analysed': analysed, 'hops': hops, 'width': st.median(b['w'] for b in full) * 4, 'rest_height': rest_height * 4, 'floor': st.median(a['floor'] for a in valid) * 4, 'floor_std': st.pstdev(a['floor'] for a in valid) * 4, 'width_ratio': max(b['w'] for b in full) / min(b['w'] for b in full), 'spacing': spacing * 4, 'spacing_cv': st.pstdev(spacings) / spacing, 'common_floor_fraction': mean(max(b['bottom'] for b in a['full']) - min(b['bottom'] for b in a['full']) <= 1 for a in valid), 'row_coverage': mean(3 <= len(a['blobs']) <= 6 and len(a['full']) >= 2 for a in analysed), 'dome_fraction': mean(b['dome'] for b in rest_blobs), 'face_fraction': mean(b['face'] for b in full), 'lower_face_fraction': mean(b['lower_face'] for b in full), 'background_fraction': mean(a['background_white'] >= .995 for a in analysed), 'shared_colour_fraction': mean(shared), 'saturation': st.median(b['saturation'] for b in full), 'brightness': st.median(b['brightness'] for b in full), 'hue_bins': len({int((h % (2 * math.pi)) / (math.pi / 6)) for h in hues})}
def assess(metrics): checks = [] def add(stage, name, weight, measured, passed, target, feedback): checks.append({'stage': stage, 'id': name, 'weight': weight, 'measured': measured, 'passed': bool(passed), 'target': target, 'feedback': None if passed else feedback}) visible = metrics.get('visible', False) def get(key): return metrics.get(key, 0) add('scene', 'dome_body', .05, get('dome_fraction'), visible and get('dome_fraction') >= .90, 'Rounded top, broad lower body, flatter feet on >=90% rest observations', 'Round the upper body and keep the bottom flatter.') add('scene', 'face_structure', .05, get('face_fraction'), visible and get('face_fraction') >= .85, 'Two separated eyes and an upward smile on >=85% full blobs', 'Give every blob two eyes and a curved smile.') add('scene', 'face_lower_half', .02, get('lower_face_fraction'), visible and get('lower_face_fraction') >= .85, 'Eye/mouth centres in lower half, with 5% drawing tolerance', 'Move the face into the lower half of the body.') add('scene', 'proportions', .04, [get('width'), get('rest_height')], visible and 165 <= get('width') <= 212 and 137 <= get('rest_height') <= 177 and 1.02 <= get('width') / max(1, get('rest_height')) <= 1.55, 'Reference proportions with broad +/-13% bands', 'Keep the body slightly wider than tall and close to reference size.') add('scene', 'row_layout', .04, [get('spacing'), get('spacing_cv'), get('row_coverage')], visible and 176 <= get('spacing') <= 224 and get('spacing_cv') <= .08 and get('row_coverage') >= .90, 'Even spacing near 200px; about four whole/partial characters', 'Space identical characters evenly across both edges.') add('scene', 'floor_layout', .02, get('floor'), visible and 455 <= get('floor') <= 487 and metrics.get('common_floor_fraction', 1) >= .95, 'Common floor near y=471, +/-16px', 'Align the feet slightly below the middle of the scene.') add('scene', 'white_background', .03, get('background_fraction'), visible and get('background_fraction') >= .95, '>=99.5% white background pixels on >=95% frames', 'Remove marks or coloured content from the full background.') hops = metrics.get('hops', []) coverage = sum(h['end_frame'] - h['start_frame'] for h in hops) / max(1, metrics.get('frame_count', 0) - 1) def hopcheck(name, weight, test, target, feedback, stage='vertical'): fraction = mean(test(h) for h in hops) add(stage, name, weight, {'fraction': fraction, 'observed_hops': len(hops), 'coverage': coverage}, visible and len(hops) >= 8 and coverage >= .80 and fraction >= .90 and (name != 'colour_per_hop' or metrics.get('hue_bins', 0) >= 6), target, feedback) hopcheck('hop_cadence', .05, lambda h: .40 <= h['period'] <= .60, 'Hop every 0.4-0.6s across >=90% hops', 'Repeat the squash and spring about twice a second.') hopcheck('squash_depth', .05, lambda h: .60 <= h['squash_ratio'] <= .76, 'Minimum height 60-76% of resting height', 'Squash to roughly two-thirds of resting height.') add('vertical', 'pinned_feet', .04, get('floor_std'), visible and get('floor_std') <= 4, 'Floor standard deviation <=4px', 'Keep the feet pinned while changing body height.') add('vertical', 'stable_width', .03, get('width_ratio'), visible and get('width_ratio') <= 1.08, 'Width max/min <=1.08', 'Squash vertically without widening the body significantly.') hopcheck('smooth_asymmetric_dance', .08, lambda h: h['squash_duration'] > h['spring_duration'] and h['largest_height_step'] <= .30 + h.get('height_quantization', 0) and h['eased_height'], 'Squash lasts longer than spring; smaller endpoint slopes; no height jump >30% amplitude', 'Make the squash slower than the spring and remove sudden height jumps.') hopcheck('half_spacing_right', .10, lambda h: .40 <= h['step_spacing'] <= .60 and h['backward_fraction'] <= .10, 'Each hop moves 40-60% spacing right, with <=10% backward movement', 'Move the entire row half a spacing to the right on each hop.', stage='sideways') hopcheck('move_during_spring', .06, lambda h: h['spring_fraction'] >= .75 and h['step_spacing'] > .1, '>=75% rightward displacement occurs during spring-back', 'Keep the row still while squashing; move it during spring-back.', stage='sideways') hopcheck('smooth_sideways', .04, lambda h: h['largest_move_spacing'] <= .20 and .40 <= h['step_spacing'] <= .60, 'No single-frame movement >20% spacing', 'Ease the sideways movement rather than jumping between positions.', stage='sideways') add('colour', 'shared_palette', .04, [get('shared_colour_fraction'), get('saturation'), get('brightness')], visible and get('shared_colour_fraction') >= .95 and .25 <= get('saturation') <= .80 and .75 <= get('brightness') <= 1, 'Shared hue >=95%; broad pastel saturation/brightness bands', 'Use the same clear pastel fill colour on every character.') hopcheck('colour_per_hop', .06, lambda h: .75 <= h['hue_turns'] <= 1.25 and h['largest_hue_step'] <= .20, 'One continuous forward hue turn per hop, +/-25%', 'Cycle continuously around the colour wheel once per hop.', stage='colour') return checks
def walk(node): if isinstance(node, dict): yield node for value in node.values(): yield from walk(value) elif isinstance(node, list): for value in node: yield from walk(value)
def native_check(project, work): if not pathlib.Path(project).is_file(): return {'status': 'missing', 'loaded': False}, None output = pathlib.Path(work) / 'native.json' output.unlink(missing_ok=True) override = os.environ.get('T23_NATIVE_COMMAND') args = json.loads(override) if override else ['bash', str(HERE / 'native/runtime-launch.sh')] if override: args += ['--project', str(project), '--output', str(output), '--max-frames', '180'] else: if not pathlib.Path('/opt/friction-audit/bin/friction').is_file(): raise VerifierError('Pinned native Friction inspector not installed; rebuild task image') binary = pathlib.Path('/opt/friction-audit/bin/friction') expected = json.loads((HERE / 'native/runtime-lock.json').read_text())['audit_binary_sha256'] if sha(binary) != expected: raise VerifierError('Native inspector binary hash does not match pinned runtime') args += [str(project), '--audit-output', str(output), '--audit-max-frames', '180'] process = command(args, timeout=300) if not output.is_file(): raise VerifierError('Native inspector produced no report: ' + process.stderr.decode(errors='replace')[-1000:]) data = json.loads(output.read_text()) if data.get('infrastructure_failure') or process.returncode not in (0, 4): raise VerifierError('Native inspection failed or timed out') if process.returncode == 4 or not data.get('loaded'): return {'status': 'invalid_project', 'loaded': False, 'error': data.get('error')}, None if not data.get('evaluation_completed') or not data.get('scenes'): raise VerifierError('Native inspection incomplete') # Inspector reports the whole object tree, including other scenes. No imported # images, footage, linked canvases or shaders are eligible for this vector task. objects = [n for scene in data['scenes'] for n in walk(scene.get('structure', {})) if 'objects' in n or 'type_id' in n] disallowed = [n for scene in data['scenes'] for n in walk(scene.get('structure', {})) if any(word in n.get('type', '').lower() for word in ('videobox', 'imagebox', 'imagepaint', 'shader', 'linkedbox', 'linkcanvas', 'internallink', 'animationbox'))] vector_types = ('SmartVectorPath', 'Circle', 'Rectangle', 'VectorPath', 'Ellipse') vectors = [n for scene in data['scenes'] for n in walk(scene.get('structure', {})) if n.get('type') in vector_types] keys = [n for scene in data['scenes'] for n in walk(scene.get('structure', {})) if n.get('keys') or n.get('has_expression') and n.get('expression_valid')] scene = data['scenes'][0] if not scene.get('frames_complete'): raise VerifierError('Independent render did not cover all native frames') frames = scene.get('frames', []) preview = pathlib.Path(work) / 'native-preview.mp4' if frames: # Filenames produced by native runner are a continuous zero-based sequence. first = pathlib.Path(frames[0]['image']) image_pattern = pathlib.Path(work) / first.parent / (first.name[:-10] + '%06d.png') process = command(['ffmpeg', '-nostdin', '-v', 'error', '-y', '-framerate', str(scene['fps']), '-i', str(image_pattern), '-c:v', 'libx264', '-crf', '10', '-pix_fmt', 'yuv420p', str(preview)], timeout=180) if process.returncode: raise VerifierError('Could not encode independent native render: ' + process.stderr.decode(errors='replace')[-500:]) else: raise VerifierError('Native renderer produced no frame index') summary = {'status': 'loaded', 'loaded': True, 'editable': data.get('editable'), 'assets_resolved': data.get('assets_resolved'), 'single_scene': len(data['scenes']) == 1, 'vector_objects': len(vectors), 'animated_properties': len(keys), 'forbidden_types': sorted({n.get('type') for n in disallowed}), 'metadata': {k: scene.get(k) for k in ('width', 'height', 'fps', 'frame_range')}, 'inspector': data.get('inspector'), 'runtime_image': data.get('runtime_image'), 'report_sha256': sha(output)} return summary, preview
def action_audit(log): if not pathlib.Path(log).is_file(): return {'status': 'unknown', 'violations': [], 'reason': 'Required action log missing'} violations, uncertain = [], [] initialized = False for line in pathlib.Path(log).read_text().splitlines(): if not line.strip(): continue try: event = json.loads(line) except ValueError: # Historical appfinder stubs do not establish shell intent. import re match = re.search(r'\b(xterm|uxterm|lxterm|xfce4-terminal|x-terminal-emulator)\b', line) if match: violations.append({'event': 'explicit_terminal_request', 'raw': line}) else: uncertain.append(line) continue if event.get('event') == 'audit_start': initialized = True elif event.get('event') in ('explicit_terminal_request', 'shell_execution'): violations.append(event) elif event.get('event') not in ('application_launcher', 'audit_start', 'denied_ambiguous_launcher'): uncertain.append(event) if not initialized: uncertain.append('Required audit_start marker missing') return {'status': 'unknown' if uncertain else 'complete', 'violations': violations, 'uncertain': uncertain}
def correspondence(candidate, native): if len(candidate) != len(native): return {'matched': False, 'reason': 'frame count mismatch'} errors = [] for a, b in zip(candidate, native): foreground = [i for i in range(0, len(a), 3) if min(a[i:i + 3]) < 230 or min(b[i:i + 3]) < 230] errors.append(mean(abs(a[i + c] - b[i + c]) / 255 for i in foreground for c in range(3))) return {'matched': bool(errors) and max(errors) <= .08, 'maximum_foreground_error': max(errors, default=1), 'mean_foreground_error': mean(errors)}
def evaluate(video, project, terminal_log, work, viewing_log=None, reference=None): work = pathlib.Path(work) work.mkdir(parents=True, exist_ok=True) for tool in ('ffmpeg', 'ffprobe'): if not shutil.which(tool): raise VerifierError(f'{tool} missing') if command([tool, '-version']).returncode: raise VerifierError(f'{tool} unavailable') meta = probe(video) frames = decode(video) if meta else [] metrics = measure(frames) if frames else {'visible': False} checks = assess(metrics) native, preview = native_check(project, work) if native.get('loaded') and native.get('assets_resolved') is None and not native.get('forbidden_types'): raise VerifierError('Native dependency scope unsupported; review rather than penalize learner') authored = native.get('loaded') and native.get('editable') and native.get('single_scene') and native.get('vector_objects', 0) >= 1 and not native.get('forbidden_types') and native.get('assets_resolved') is True native_frames = decode(preview) if preview else [] match = correspondence(frames, native_frames) if frames and native_frames else {'matched': False} actions = action_audit(terminal_log) if actions['status'] == 'unknown': raise VerifierError('Action audit is incomplete or ambiguous; review before training') if authored and not match['matched']: # A different export is a learner delivery failure; preserve separate native # progress by measuring the independent render, never the unrelated MP4. native_metrics = measure(native_frames) checks = assess(native_metrics) metrics = native_metrics for name, weight, passed, measured, feedback in [ ('native_vector_scene', .05, authored, native, 'Save one editable scene containing your own vector shapes; remove imported footage.'), ('native_animation', .04, authored and native.get('animated_properties', 0) > 0, native.get('animated_properties', 0), 'Animate the native scene using keyframes or in-app expressions.'), ('export_matches_project', .04, authored and match['matched'], match, 'Render the saved native scene and submit that render.')]: checks.append({'stage': 'delivery' if name == 'export_matches_project' else 'scene', 'id': name, 'weight': weight, 'passed': bool(passed), 'measured': measured, 'feedback': None if passed else feedback}) streams = meta.get('streams', []) if meta else [] stream = next((s for s in streams if s.get('codec_type') == 'video'), {}) duration = float(meta.get('format', {}).get('duration', 0)) if meta else 0 exports = [('dimensions', .02, stream.get('width') == 800 and stream.get('height') == 800), ('fps', .01, stream.get('avg_frame_rate') in ('30/1', '60/2')), ('duration', .02, abs(duration - 6) <= 1 / FPS + .001 and len(frames) in (179, 180, 181)), ('codec', .01, stream.get('codec_name') == 'h264'), ('no_audio', .01, bool(meta) and not any(s.get('codec_type') == 'audio' for s in streams))] for name, weight, passed in exports: checks.append({'stage': 'delivery', 'id': name, 'weight': weight, 'passed': bool(passed), 'measured': duration if name == 'duration' else stream.get(name), 'feedback': None if passed else f'Correct the exported {name}.'}) assert abs(sum(c['weight'] for c in checks) - 1) < 1e-8 # Native ownership/authorship failures invalidate render-derived creative credit. # Missing project earns only genuine format delivery credit; no spoofed visual progress. if not authored: for c in checks: if c['stage'] != 'delivery': c['passed'] = False c['feedback'] = 'Native scene must load and contain eligible vector artwork before creative reward can be verified.' viewing = verify_viewing(viewing_log or os.environ.get('T23_VIEWING_LOG', '/logs/artifacts/reference-viewing.jsonl'), reference or os.environ.get('T23_REFERENCE', '/root/media/reference.mp4')) # Preserve existing rubric points, adding five independent process points. for c in checks: c['weight'] *= 100 / 105 checks.append({'stage': 'reference', 'id': 'watched_reference', 'weight': 5 / 105, 'passed': viewing['passed'], 'measured': viewing, 'feedback': None if viewing['passed'] else 'Use Watch Dance Blob Reference; view for 3 seconds and inspect at least 10 frames spanning 0.5 seconds.'}) progress = round(sum(c['weight'] for c in checks if c['passed']), 4) reward = 0.0 if actions['violations'] else progress stages = {} for stage in ('reference', 'scene', 'vertical', 'sideways', 'colour', 'delivery'): subset = [c for c in checks if c['stage'] == stage] stages[stage] = {'earned': round(sum(c['weight'] for c in subset if c['passed']), 4), 'available': round(sum(c['weight'] for c in subset), 4), 'feedback': [c['feedback'] for c in subset if not c['passed']]} return {'version': VERSION, 'status': 'complete', 'reward': reward, 'progress_reward': progress, 'checks': checks, 'stages': stages, 'actions': actions, 'native': native, 'correspondence': match, 'hops': metrics.get('hops', []), 'provenance': {'video_sha256': sha(video) if pathlib.Path(video).is_file() else None, 'project_sha256': sha(project) if pathlib.Path(project).is_file() else None, 'scorer_sha256': sha(__file__), 'action_log_sha256': sha(terminal_log), 'viewing_log_sha256': sha(viewing_log or os.environ.get('T23_VIEWING_LOG', '/logs/artifacts/reference-viewing.jsonl'))}}12345678910111213141516171819202122#!/bin/bashset -uo pipefailmkdir -p /logs/verifier/artifactsrm -f /logs/verifier/reward.txt# Freeze delivered files before inspection; do not kill editors/renderers globally.submission=$(mktemp -d /tmp/t23-submission.XXXXXX) || exit 1trap 'rm -rf "$submission"' EXITmkdir -p "$submission/edit"cp -f /root/Desktop/final.mp4 "$submission/final.mp4" 2>/dev/null || truecp -a /root/edit/. "$submission/edit/" 2>/dev/null || truecp -f /logs/artifacts/reference-viewing.jsonl "$submission/reference-viewing.jsonl" 2>/dev/null || truecp -a "$submission/." /logs/verifier/artifacts/export T23_VIEWING_LOG="$submission/reference-viewing.jsonl"export T23_FINAL="$submission/final.mp4"export T23_PROJECT="$submission/edit/blob.friction"python3 -m pytest --ctrf /logs/verifier/ctrf.json /tests/test_outputs.py -rAstatus=$?cp -f /logs/artifacts/action-audit.jsonl /logs/verifier/artifacts/ 2>/dev/null || trueif [ "$status" -ne 0 ] || [ ! -s /logs/verifier/reward.txt ]; then echo 'T23 verifier error: no reward issued; retry or review infrastructure.' >&2 exit 1fitasks/FC-L1-masking-three-panels-gui/environment/DockerfileAdded+35
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/instruction.mdAdded+7
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/README-basketball-conditioning-fort-belvoir.mdAdded+34
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/README-superbowl-lv-flyover.mdAdded+34
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/basketball-conditioning-fort-belvoir.LICENSE.txtAdded+80
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/basketball-conditioning-fort-belvoir.PROVENANCE.mdAdded+34
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/superbowl-lv-flyover.LICENSE.txtAdded+35
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/superbowl-lv-flyover.PROVENANCE.mdAdded+34
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/vibrant-techno-delight.LICENSE.txtAdded+69
tasks/FC-L1-masking-three-panels-gui/environment/desktop/masking-task/media/vibrant-techno-delight.PROVENANCE.mdAdded+47
tasks/FC-L1-masking-three-panels-gui/environment/licenses/LICENSE-APACHEAdded+177
tasks/FC-L1-masking-three-panels-gui/environment/licenses/LICENSE-MITAdded+21
tasks/FC-L1-masking-three-panels-gui/environment/start-editor.shAdded+18
tasks/FC-L1-masking-three-panels-gui/instruction.mdAdded+9
tasks/FC-L1-masking-three-panels-gui/task.tomlAdded+25
tasks/FC-L1-masking-three-panels-gui/tests/DockerfileAdded+31
tasks/FC-L1-masking-three-panels-gui/tests/operator-evidence.jsonAdded+41
tasks/FC-L1-masking-three-panels-gui/tests/verify.pyAdded+188
tasks/golf-tracer-01/tests/reference/svg_frames/000040.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000041.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000042.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000054.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000055.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000068.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000069.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000081.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000083.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000095.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000097.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000108.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000120.svgAdded
tasks/golf-tracer-01/tests/reference/svg_frames/000122.svgAdded
tasks/t23-dance-blob/README.mdAdded+11
tasks/t23-dance-blob/RUBRIC.mdAdded+44
tasks/t23-dance-blob/instruction.mdAdded+16
tasks/t23-dance-blob/task.tomlAdded+54
tasks/t23-dance-blob/tests/_vedit_verifier.pyAdded+359
tasks/t23-dance-blob/tests/beats.jsonAdded+18
tasks/t23-dance-blob/tests/legacy_v0.pyAdded+320
tasks/t23-dance-blob/tests/legacy_v1/instruction.mdAdded+14
tasks/t23-dance-blob/tests/legacy_v1/reference_score.pyAdded+305
tasks/t23-dance-blob/tests/legacy_v1/test_outputs.pyAdded+30
tasks/t23-dance-blob/tests/legacy_v1/visual-reference.jsonAdded
tasks/t23-dance-blob/tests/native/runtime-launch.shAdded+23
tasks/t23-dance-blob/tests/native/runtime-lock.jsonAdded+16
tasks/t23-dance-blob/tests/reference_score.pyAdded+305
tasks/t23-dance-blob/tests/reference_viewing.pyAdded+52
tasks/t23-dance-blob/tests/source.sha256Added+1
tasks/t23-dance-blob/tests/task_score.pyAdded+512
tasks/t23-dance-blob/tests/test.shAdded+22