opensquilla: deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name chunk 2/25
Browse files- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/TOOLS.md +9 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/USER.md +17 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/memory/.raw_fallbacks/.migrated +0 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/build_episodes.py +150 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/build_log.txt +7 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep1_out_of_the_blue.png +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep2_every_spike.png +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep3_divided_loyalties.png +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep4_three_days_early.png +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep5_permission.png +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_series.png +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/ep_videos/ep01_prediction_is_not_permission.mp4 +3 -0
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/TOOLS.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOOLS.md
|
| 2 |
+
|
| 3 |
+
Use this file for workspace-specific local tool conventions: preferred command
|
| 4 |
+
patterns, project-specific paths, naming shortcuts, or reminders about how tools
|
| 5 |
+
should be used in this workspace.
|
| 6 |
+
|
| 7 |
+
This file is guidance only. It does not register tools, grant permissions, or change tool policy.
|
| 8 |
+
Do not store user profile facts, assistant persona, durable memory, or task
|
| 9 |
+
history here.
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/USER.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# USER.md
|
| 2 |
+
|
| 3 |
+
Use this file for stable user profile notes that are safe to include in private
|
| 4 |
+
agent context.
|
| 5 |
+
|
| 6 |
+
Put facts about the user here, not facts about the assistant or the current
|
| 7 |
+
task.
|
| 8 |
+
|
| 9 |
+
- Name:
|
| 10 |
+
- What to call them:
|
| 11 |
+
- Pronouns:
|
| 12 |
+
- Timezone:
|
| 13 |
+
- Notes:
|
| 14 |
+
|
| 15 |
+
## Context
|
| 16 |
+
|
| 17 |
+
Do not put secrets, credentials, or one-off task notes here.
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/memory/.raw_fallbacks/.migrated
ADDED
|
File without changes
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/build_episodes.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import os, subprocess, glob, multiprocessing
|
| 3 |
+
from PIL import Image, ImageDraw, ImageFont
|
| 4 |
+
import math
|
| 5 |
+
|
| 6 |
+
BASE = "/data2/handoff_runs/hd_sys01_open_deepseekv4flash073_08241758/scratch/osq_sample_karf39jk/workspace/prediction_is_not_permission"
|
| 7 |
+
OUT = os.path.join(BASE, "ep_videos"); os.makedirs(OUT, exist_ok=True)
|
| 8 |
+
TMP = os.path.join(BASE, "tmp"); os.makedirs(TMP, exist_ok=True)
|
| 9 |
+
|
| 10 |
+
W,H = 1080,1920
|
| 11 |
+
FPS = 25
|
| 12 |
+
DUR = 120
|
| 13 |
+
|
| 14 |
+
EPISODES = [
|
| 15 |
+
dict(num=1, scenes=[("frames/ep1_scene1_apartment_hook.png",5.5),
|
| 16 |
+
("covers/cover_ep1_out_of_the_blue.png",5.5),
|
| 17 |
+
("frames/ep1_scene3_office_moderation.png",9),
|
| 18 |
+
("frames/ep1_scene4_control_room_cliff.png",12),
|
| 19 |
+
("frames/ep1_scene1_apartment_hook.png",8)]),
|
| 20 |
+
dict(num=2, scenes=[("frames/ep2_scene1_eli_studio_hook.png",6),
|
| 21 |
+
("frames/ep2_scene3_hate_spike_wall.png",11),
|
| 22 |
+
("frames/ep2_scene1_eli_studio_hook.png",9),
|
| 23 |
+
("frames/ep2_scene3_hate_spike_wall.png",10),
|
| 24 |
+
("frames/ep2_scene4_leak_card.png",9)]),
|
| 25 |
+
dict(num=3, scenes=[("frames/ep3_scene1_stream_hook.png",6),
|
| 26 |
+
("covers/cover_ep3_divided_loyalties.png",7),
|
| 27 |
+
("frames/ep3_scene3_backup_logs.png",11),
|
| 28 |
+
("frames/ep3_scene4_launch_card.png",10),
|
| 29 |
+
("frames/ep3_scene1_stream_hook.png",8)]),
|
| 30 |
+
dict(num=4, scenes=[("frames/ep4_scene1_launch_stage_hook.png",6),
|
| 31 |
+
("frames/ep4_scene3_dead_screen.png",11),
|
| 32 |
+
("frames/ep4_scene1_launch_stage_hook.png",9),
|
| 33 |
+
("frames/ep4_scene4_audit_plan.png",11),
|
| 34 |
+
("frames/ep4_scene3_dead_screen.png",8)]),
|
| 35 |
+
dict(num=5, scenes=[("frames/ep5_scene1_audit_hook.png",6),
|
| 36 |
+
("frames/ep5_scene3_evidence_reveal.png",9),
|
| 37 |
+
("frames/ep5_scene1_audit_hook.png",9),
|
| 38 |
+
("frames/ep5_scene4_audit_project.png",11),
|
| 39 |
+
("frames/ep5_scene5_final_card.png",9)]),
|
| 40 |
+
]
|
| 41 |
+
|
| 42 |
+
def zoompan_vf(idx, nframes):
|
| 43 |
+
z = 1.0 + 0.14*(0.5 if idx%2==0 else 1.0)
|
| 44 |
+
zmin = 1.0; zmax = 1.12
|
| 45 |
+
if idx%2==0:
|
| 46 |
+
# zoom in
|
| 47 |
+
zexp = f"'{zmax}-({zmax}-{zmin})*on/{nframes}'"
|
| 48 |
+
else:
|
| 49 |
+
# zoom out
|
| 50 |
+
zexp = f"'{zmin}+({zmax}-{zmin})*on/{nframes}'"
|
| 51 |
+
return (f"scale=2160:3840:force_original_aspect_ratio=increase,crop=2160:3840,"
|
| 52 |
+
f"zoompan=z={zexp}:d={nframes}:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s={W}x{H}:fps={FPS}")
|
| 53 |
+
|
| 54 |
+
def make_segment(args):
|
| 55 |
+
img, secs, idx, epnum, outfile = args
|
| 56 |
+
nframes = int(round(secs*FPS))
|
| 57 |
+
vf = zoompan_vf(idx, nframes)
|
| 58 |
+
cmd = ["ffmpeg","-y","-loop","1","-i",os.path.join(BASE,img),
|
| 59 |
+
"-vf",vf,"-t",str(secs),
|
| 60 |
+
"-c:v","libx264","-preset","ultrafast","-crf","21","-pix_fmt","yuv420p",
|
| 61 |
+
"-an",outfile]
|
| 62 |
+
subprocess.run(cmd, check=True, stderr=subprocess.DEVNULL)
|
| 63 |
+
return outfile
|
| 64 |
+
|
| 65 |
+
def gen_teaser_card(num, outfile):
|
| 66 |
+
img = Image.new("RGB",(W,H))
|
| 67 |
+
px = img.load()
|
| 68 |
+
for y in range(H):
|
| 69 |
+
t=y/H
|
| 70 |
+
r=int(14+14*t); g=int(18+10*t); b=int(36+30*t)
|
| 71 |
+
for x in range(W):
|
| 72 |
+
px[x,y]=(r,g,b)
|
| 73 |
+
d = ImageDraw.Draw(img)
|
| 74 |
+
for y in range(H):
|
| 75 |
+
for x in range(W):
|
| 76 |
+
r,g,b = px[x,y]
|
| 77 |
+
l = max(0.05, 1.0 - math.hypot(x-W/2,y-H/2)/(max(W,H)*0.75))
|
| 78 |
+
px[x,y]=(int(r*l),int(g*l),int(b*l))
|
| 79 |
+
def font(sz):
|
| 80 |
+
for fp in ["/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"]:
|
| 81 |
+
if os.path.exists(fp): return ImageFont.truetype(fp, sz)
|
| 82 |
+
return ImageFont.load_default()
|
| 83 |
+
f1=font(58); f2=font(40)
|
| 84 |
+
d.text((int(W/2-640), 760), "PREDICTION IS NOT PERMISSION", font=f1, fill=(0,255,140,255))
|
| 85 |
+
if num<5:
|
| 86 |
+
teasers={1:"EPISODE 2 — EVERY SPIKE NEEDS A VILLAIN",
|
| 87 |
+
2:"EPISODE 3 — DIVIDED LOYALTIES",
|
| 88 |
+
3:"EPISODE 4 — THREE DAYS EARLY",
|
| 89 |
+
4:"EPISODE 5 — PERMISSION"}
|
| 90 |
+
d.text((int(W/2-640), 900), teasers[num], font=f2, fill=(255,255,255))
|
| 91 |
+
d.text((int(W/2-640), 1010), "up next", font=f2, fill=(150,170,190))
|
| 92 |
+
else:
|
| 93 |
+
d.text((int(W/2-640), 900), "A CONTINUING SERIES", font=f2, fill=(255,255,255))
|
| 94 |
+
d.text((int(W/2-640), 1010), "NOVA WILL KEEP PREDICTING. SO WILL WE.", font=f2, fill=(150,170,190))
|
| 95 |
+
img.save(outfile)
|
| 96 |
+
|
| 97 |
+
def build_audio(epnum):
|
| 98 |
+
a1=os.path.join(TMP,f"a{epnum}_1.m4a"); a2=os.path.join(TMP,f"a{epnum}_2.m4a")
|
| 99 |
+
amix=os.path.join(TMP,f"a{epnum}_mix.m4a")
|
| 100 |
+
subprocess.run(["ffmpeg","-y","-f","lavfi","-i",f"sine=frequency=55:duration={DUR}",
|
| 101 |
+
"-af","volume=0.10","-c:a","aac",a1],check=True,stderr=subprocess.DEVNULL)
|
| 102 |
+
subprocess.run(["ffmpeg","-y","-f","lavfi","-i",f"sine=frequency=220:duration={DUR}",
|
| 103 |
+
"-af","volume=0.035","-c:a","aac",a2],check=True,stderr=subprocess.DEVNULL)
|
| 104 |
+
subprocess.run(["ffmpeg","-y","-i",a1,"-i",a2,"-filter_complex",
|
| 105 |
+
"[0:a][1:a]amix=inputs=2:duration=first,afade=t=in:st=0:d=2,afade=t=out:st=116:d=4[a]",
|
| 106 |
+
"-map","[a]","-c:a","aac",amix],check=True,stderr=subprocess.DEVNULL)
|
| 107 |
+
|
| 108 |
+
def build_episode(ep):
|
| 109 |
+
n = ep["num"]
|
| 110 |
+
tasks=[]
|
| 111 |
+
total=0.0
|
| 112 |
+
for i,(img,secs) in enumerate(ep["scenes"]):
|
| 113 |
+
out=os.path.join(TMP,f"s{n}_{i}.mp4")
|
| 114 |
+
tasks.append((img,secs,i,n,out)); total+=secs
|
| 115 |
+
# teaser
|
| 116 |
+
teaser_img=os.path.join(BASE,"frames",f"teaser_{n}.png")
|
| 117 |
+
gen_teaser_card(n,teaser_img)
|
| 118 |
+
tsec=DUR-total
|
| 119 |
+
if tsec<4: tsec=4
|
| 120 |
+
tout=os.path.join(TMP,f"s{n}_teaser.mp4")
|
| 121 |
+
tasks.append((os.path.relpath(teaser_img,BASE),tsec,77,n,tout))
|
| 122 |
+
# render segments in parallel
|
| 123 |
+
pool=multiprocessing.Pool(8)
|
| 124 |
+
outs=pool.map(make_segment,tasks); pool.close(); pool.join()
|
| 125 |
+
# concat
|
| 126 |
+
lst=os.path.join(TMP,f"ep{n}_list.txt")
|
| 127 |
+
with open(lst,"w") as f:
|
| 128 |
+
for s in outs: f.write(f"file '{s}'\n")
|
| 129 |
+
silent=os.path.join(TMP,f"ep{n}_silent.mp4")
|
| 130 |
+
subprocess.run(["ffmpeg","-y","-f","concat","-safe","0","-i",lst,
|
| 131 |
+
"-c","copy",silent],check=True,stderr=subprocess.DEVNULL)
|
| 132 |
+
build_audio(n)
|
| 133 |
+
amix=os.path.join(TMP,f"a{n}_mix.m4a")
|
| 134 |
+
final=os.path.join(OUT,f"ep{n:02d}_prediction_is_not_permission.mp4")
|
| 135 |
+
# run from BASE; both inputs first, then -vf as an OUTPUT option to avoid
|
| 136 |
+
# ffmpeg treating it as an input option for the audio file.
|
| 137 |
+
subprocess.run(["ffmpeg","-y",
|
| 138 |
+
"-i",os.path.relpath(silent,BASE),"-i",os.path.relpath(amix,BASE),
|
| 139 |
+
"-map","0:v","-map","1:a",
|
| 140 |
+
"-vf",f"subtitles=subtitles/ep{n}.srt:force_style='FontName=DejaVu Sans,FontSize=17,PrimaryColour=&H00FFFFFF,OutlineColour=&H00222222,BorderStyle=1,Outline=3,Shadow=2,Alignment=2,MarginV=70'",
|
| 141 |
+
"-c:v","libx264","-preset","veryfast","-crf","20","-pix_fmt","yuv420p",
|
| 142 |
+
"-c:a","aac","-b:a","128k","-shortest",
|
| 143 |
+
os.path.relpath(final,BASE)],
|
| 144 |
+
check=True, stderr=subprocess.DEVNULL, cwd=BASE)
|
| 145 |
+
print("built", os.path.basename(final), os.path.getsize(final)//1024, "KB")
|
| 146 |
+
|
| 147 |
+
if __name__=="__main__":
|
| 148 |
+
for ep in EPISODES:
|
| 149 |
+
build_episode(ep)
|
| 150 |
+
print("DONE")
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/build_log.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
built ep01_prediction_is_not_permission.mp4 13407 KB
|
| 2 |
+
built ep02_prediction_is_not_permission.mp4 15878 KB
|
| 3 |
+
built ep03_prediction_is_not_permission.mp4 16445 KB
|
| 4 |
+
built ep04_prediction_is_not_permission.mp4 14247 KB
|
| 5 |
+
built ep05_prediction_is_not_permission.mp4 16431 KB
|
| 6 |
+
DONE
|
| 7 |
+
EXIT:0
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep1_out_of_the_blue.png
ADDED
|
Git LFS Details
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep2_every_spike.png
ADDED
|
Git LFS Details
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep3_divided_loyalties.png
ADDED
|
Git LFS Details
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep4_three_days_early.png
ADDED
|
Git LFS Details
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_ep5_permission.png
ADDED
|
Git LFS Details
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/covers/cover_series.png
ADDED
|
Git LFS Details
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_05_the_algorithm_knows_my_name/prediction_is_not_permission/ep_videos/ep01_prediction_is_not_permission.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9bf5a53a3f6008d46fefb2987624b5a0e1629848a8249e6130a09add2c10982
|
| 3 |
+
size 13729260
|