Compare commits

..
213 Commits
Author SHA1 Message Date
shinyobjectz b90ee0728c #82: the ARM64 build (it compiles: raea.exe is AA64 and runs) is packed and checked without drawing (release-check.sh RAEA_CHECK_NO_GPU=1 keeps plugins, guides, song map and bin\'s files; the windows-11-arm runner has only WARP, which segfaults in Bevy as on x64, and lavapipe has no ARM64 build), and it uses the release's compile cache 2026-11-26 13:59:45 -08:00
shinyobjectz 5eb8b1e40e windows-arm.yml runs on v* tags too, beside release.yml, and attaches raea-VERSION-windows-arm64.zip to that release (skills-passed from the tag, as release.yml reads it); an ARM64 failure never holds up the release 2026-11-26 13:43:27 -08:00
shinyobjectz bce27988ab windows-arm.yml: metis-sys alone on windows-latest's x64 MSVC too, which release.yml builds with 2026-11-26 11:42:54 -08:00
shinyobjectz c02a02d902 #82: metis-sys vendored with GKlib's stdint.h/inttypes.h stand-ins only before Visual Studio 2013 (Visual Studio 18's stdint.h types int_fast16_t differently, and the windows-11-arm build failed on every GKlib file); its graphs, manual and programs left out 2026-11-26 11:42:35 -08:00
shinyobjectz b26da1cc95 #82: a windows-arm64 zip: RAEA_WIN_ARCH=arm64 has onnxruntime.sh and win-bundle.sh take the ARM64 runtime, VC++ CRT, uv and DXC (FFmpeg stays x64, run emulated), release.sh names and packs raea-VERSION-windows-arm64.zip, and windows-arm.yml packs and checks it on WARP 2026-11-26 11:35:06 -08:00
shinyobjectz cf0282f550 #82: raea built natively for Windows on ARM in CI (windows-arm.yml on windows-11-arm: the release's four binaries, raea --version, a 2D still on WARP); rav1d's assembly off there, where MSVC skips its GNU .S files 2026-11-26 11:26:19 -08:00
shinyobjectz 561e7a569c An image larger than Vello's atlas is decoded at a size that fits it (#245: a 1080x18000 site capture drawn 880 wide was refused; fit to the atlas's side, 16384, not the device's 32768); a Snapdragon's Adreno runs on DX12 on Windows, where Vulkan drew Vello's 2D pages striped (#82) 2026-11-26 11:21:27 -08:00
shinyobjectz 0649788f7f MK25: a rotated CTA, cta.also
Dutch's and The Body Shop's briefs each rotate two host CTAs. The cut lands on any one of them. Each also line is held to the brief's text like any other quote. Test: a rotated Dutch line lands, and a line the brief doesn't have holds the job.
2026-11-26 10:36:58 -08:00
shinyobjectz 1a77da4980 box.sh latest: every box in raea cloud's list onto a release, and box.sh up takes the newest release by default
Shane, 11-26: "make sure that release pipeline automatically updates boxes for raea cloud to the latest". Both live boxes were still on 0.1.9, because box.sh's default was a pinned version. box.sh latest [VERSION] waits on the tag's release.yml run (gh run watch) until the Linux archive is attached, then rebuilds each listed box with raea at that version and sdk/cloud's server from the release's own commit. Each box goes only after its running agents finish, as box.sh up already does. A box that can't be rebuilt is named, and the others still go. RAEA_BOX_DRY=1 prints the plan: on 0.1.10 it named raea-2 and raea-3 onto 22834de9b1. tools/agents/release-go.sh (private) starts it after every publish.
2026-11-26 10:29:22 -08:00
shinyobjectz 1a913e6b06 raea frames check on raea cloud boxes: what a cut's pictures get wrong that a viewer sees at once, measured (11-25, Shane on StreetTalk's cuts: "it cuts out faces all the time and also does split frame shots when they make no sense", "it makes text too small on some things, we should have a text/glyph readability check and measurement").
Faces: the export's frames, two a second, go through the farm's new POST /v1/faces (OpenCV's YuNet, 232 KB on CPU, pinned by hash). A box has no vision backend (raea-perceive isn't in raea's Linux build), so raea frame and framing="face" refuse there. A face of someone in the shot touching the frame's edge or a split screen's seam for a second or more is an error; a split screen showing a face in only one half is a warning. Seams are lone lines where the picture jumps across 70% of the frame, held a second, in its middle 60% (a caption's box is two lines close together and doesn't count).

Text: every text's font size from the render's manifest, scaled to a 1080-wide frame: under 40 px is an error, under 48 px a warning.

offload.ts adds --manifest OUT.render.json to a video render that has none and runs the check after the words pass; an error fails the render. OUT.despite.txt says why a face at the edge is meant and turns its errors to warnings. image/raea.sh routes raea frames.

Checked on StreetTalk's delivered cuts: The Body Shop 5 and 6 and Dutch 2, 3 and 4 fail on faces cut at the edge (1 to 6.5 s each), and Dutch 4 on a face cut by a split's seam; a 28 px disclaimer fails a render on raea-2. test/units.ts covers the rules. Farm deployed; the three files copied onto raea-2.
2026-11-26 10:29:22 -08:00
shinyobjectz 7db0e7e149 raea cloud: a render's output outside the project goes back as .raea-cloud-out-N-NAME at the project's top, not inside a .raea-cloud-out folder. The folder is never sent to the farm, and a still's writer (unlike a video's encoder) doesn't make one, so every PNG made outside the project failed with "no frame was written" (11-25, StreetTalk's storyboards: raea render board.html -o out/board.png). Checked through the farm: an HTML storyboard to PNG, written and moved into place; test/units.ts updated. 2026-11-26 10:29:22 -08:00
shinyobjectz ab63120653 raea words: a dip in a word counts as a crossfade only when it comes back up inside the word (Whisper's spans take in the quiet after a word, so a sentence trailing off was flagged on raea-2's first real take); Whisper's joined words ("for $60") split before comparing; edge words flagged only when the sound is at speech level on the first or last 30 ms. Checked on raea-2 (box updated) and on the finished Dutch cut (passes, one warning), the crossfaded and mid-word cuts (still fail). 2026-11-26 10:29:22 -08:00
shinyobjectz 8938819947 raea words on raea cloud boxes: a take's or an export's words by Whisper large-v3 on the farm (POST /v1/words, the model raea cloud's library index transcribes with, OpenRouter's key in Modal secret raea-farm-words), as TAKE.words.json; raea words check VIDEO --expect LINES.txt holds an export to the lines its cut should say: a word missing or cut short is an error, a word heard differently, speech dipping under a crossfade or a word cut by the first or last frame a warning. A box had no transcriber (raea's is parakeet-mlx, Mac only), so agents cut on guessed frames and shipped words clipped by cuts and faded under crossfades (11-25, Shane: "before exporting the audio requires a transcription pass to be sure it matches"). Every video render (offload.ts) now runs the pass on its output, and fails the render when OUT.lines.txt is beside it and a word is missing or clipped. raea transcribe is the same command. Checked: test/words.ts; on StreetTalk's finished Dutch cut (passes), the same cut joined mid-word (fails: vaccines heard as exam, tests missing) and with a 1.5 s crossfade over speech (fails: five words lost). Farm deployed. 2026-11-26 10:29:22 -08:00
shinyobjectz 79cda1dc8c raea cloud boxes keep an agent's socket from going idle, and stop what a stopped agent left running. Between raea cloud and a box a socket is closed after about two minutes without traffic, and an agent waiting on a long render sends nothing: five of StreetTalk's seven "socket closed" ends on 11-25 came 114-125 s into a silence. The box sends a _raea/keepalive notification every 20 s (raea cloud skips notifications it doesn't know; the agent never sees it). An agent now runs in its own process group, stopped whole when its socket closes or it exits: a killed agent's background renders went on as orphans, 4 GB of them on raea-2. 2026-11-26 10:29:22 -08:00
shinyobjectz f0a266718e raea farm: a render that names its own --manifest renders. The probe ran it with two --manifest and raea wrote its own where the render's went, so frame 0 said no length and the job stopped with exit 1 and no reason (StreetTalk's four cuts, 11-25). The render's --manifest is kept from every GPU run and written from frame 0's at the end; a probe with no length says so. A video's sound run finishes before the reload that brings the GPUs' frames (its open files in the job's folder refused it). Farm deployed. 2026-11-26 10:29:22 -08:00
shinyobjectz c8af179033 raea cloud boxes stop a runaway before it takes the box down: StreetTalk's agent rendered two cuts of 4K interviews on raea-2's CPU and the 8 GB box stopped answering, every agent's socket with it (11-25). A box's processes share one cgroup that can't be split, so there's no kernel cap; server/memguard.ts, like earlyoom, looks at free memory each second and below 700 MB (or 8%) kills the largest process the server's agents started over 1 GB (never an agent or the server), and says so in the box's log and each agent's trace. RAEA_CLOUD_MEMGUARD=0 turns it off. Tested offline and on raea-2 (a real 1.5 GB runaway stopped). 2026-11-26 10:29:22 -08:00
shinyobjectz a0f6a95fe7 raea farm: a video's GPU runs find the footage, and two renders at once don't fail each other. The coordinator linked a job's media from the cache but committed only after rendering, so a still (on the coordinator) found the footage and every GPU run of a video said "No such file" (StreetTalk, 11-25: four full cuts refused). It commits right after linking. The web container serves many requests at once, and a volume reload there refused while another request had a file open (GET out: 500, losing a finished render) or took /farm away from one making a job's folder (POST jobs: 500); requests that touch the volume now share it and a reload waits until none is in it (Gate), and a reload that still won't go answers 503, which the box's jobFiles asks again on. A render that fails on a file under out/ says out/ isn't sent and where its inputs go. Farm deployed. 2026-11-26 10:29:22 -08:00
shinyobjectz afaeaa0a7a raea cloud renders know a project's footage by the file, not its path: a thread started again links the same files into a new folder (StreetTalk's restart hard-linked 1.9 GB of interviews), and keyed by path they were hashed again before its first render. media.ts keys its hash cache by device and inode, with size and time 2026-11-26 10:29:22 -08:00
shinyobjectz 65f2a6ae1e box.sh builds a box on raea 0.1.9 unless RAEA_VERSION says otherwise: its default was still 0.1.6, so a plain rebuild of raea-2 (11-25) took it from 0.1.9 back to 0.1.6 2026-11-26 10:29:22 -08:00
shinyobjectz 00deff035c raea cloud renders send a project's footage once: a project not in raea's LFS (every raea cloud project: its repo is on Cloudflare's Git) put all its media in every render's tar, so one frame of StreetTalk's Dutch edit packed and sent 1.9 GB of interviews, read whole into the box's memory (2-4 GB a render); with three agents rendering at once the 15 GB box ran out and every agent's socket dropped. The farm now keeps media by hash (POST /v1/blobs/have, PUT /v1/blobs/OID, streamed and checked against its hash, farm.py); offload.ts sends each footage or large file once (media.ts farmInputs: hashes kept by path, size and time) and names it in the job's .raea-cloud-media.json with no href, and farm_media links it into the job from the cache instead of copying it. Trial on raea-2: the first frame 144 s (hashing and sending 2 GB once), the next 17 s with nothing sent; it had timed out at 60 s. RAEA_CLOUD_GPU_BLOBS=0 puts the media back in the tar; a farm without the cache does too. Tests: test/farm-blobs.ts, test/farm_media.py. Farm deployed (raea-farm). (farm.py and offload.ts also carry the games lane's kits/ fixes that were already on the box.) 11-25, Shane: "if there's an issue with big files ... some kind of r2 streaming thing, I'm happy to have you own the changes" 2026-11-26 10:29:22 -08:00
shinyobjectz 7611a96e34 raea cloud's box sends each agent's stderr along its socket (_raea/stderr), so the run's trace keeps it instead of only the box's disk; box.sh up won't rebuild a box whose server can't say whether agents are running (11-25, Shane: "make sure for cloud runs we are getting all the session traces and logs ... all recoverable") 2026-11-26 10:29:22 -08:00
shinyobjectz 6fb27ef9e8 raea cloud's boxes are stamped and managed: box.sh up stamps every build (BUILD.json: an id from the packed files, the commit, whether the tree was dirty and which files; the tarball kept in ~/.config/raea-cloud/builds so RAEA_CLOUD_BUILD=ID makes another box from exactly it), waits for a box's running agents to finish before rebuilding it (RAEA_BOX_FORCE=1 to cut them off), and promote/list put a box into raea cloud's list (POST /v1/admin/boxes). The box's health says its build and how many agents run. setup.sh installs raea's skills by raea's own agent names (claude-acp had never matched: no box had them), and each client's socket links them into its own config folders. (box.sh's hunks also carry the games lane's raea-games tarball put, which sat beside them.) 11-25, Shane: "make sure this mix up of boxes and versions are all managed effectively" 2026-11-26 10:29:22 -08:00
shinyobjectz 0c0de9b3d6 raea cloud ingest: a fingerprint's model on the GPU: fingerprint_fit trains a linear head per modality on EmbeddingGemma 2's vectors with torch (good against bad and the workspace's files, k-fold AUC) into the volume raea-fingerprints, fingerprint_score scores a file's segments; POST /v1/fingerprints/fit, GET /v1/fingerprints/jobs/{id}, POST /v1/fingerprints/score 2026-11-26 10:29:22 -08:00
shinyobjectz 84f6c59dd0 raea cloud ingest: index jobs transcribe with Whisper large-v3 on OpenRouter when the raea-ingest secret has OPENROUTER_API_KEY (words.ts RAEA_LIBRARY_WORDS=openrouter), and have the secret 2026-11-26 10:29:22 -08:00
shinyobjectz 96adb3ecfb raea cloud ingest: index jobs on Modal (ingest.py index_job, POST/GET /v1/index-jobs) on an L4 (EmbeddingGemma 2 at fp16 on CUDA 13; build/Dockerfile.gpu), the search-words server on the CPU, gpu_probe to check the GPU; docs/cloud-ingest.feature IG8 now raea's indexer into turbopuffer, Enterprise only (raea cloud is Enterprise only, Shane 11-24), with IG6 and IG9 marked built 2026-11-26 10:29:22 -08:00
shinyobjectz 4e12541984 raea cloud ingest: docs/cloud-ingest.feature IG1-IG13 (a synced folder pictured, understood, embedded and organized; Shane 11-24), and raea-ingest on Modal (sdk/cloud/deploy/modal/ingest.py): POST /v1/frame makes a JPEG frame of a video at an address, for synced files with no picture in their tool (IG4). Deployed on profile raea; secret raea-ingest 2026-11-26 10:29:22 -08:00
shinyobjectz 4cc8f58e0a The Google sign-in's screen is handed out once Chrome's window is up (a fresh profile takes about 20 s on the box's CPU, and the viewer showed black till then), and a display left by an X server that's gone (a service restart leaves their sockets) is reclaimed. setup.sh adds xdotool for the window check 2026-11-26 10:29:22 -08:00
shinyobjectz 1873676251 The sign-in's Chrome shows no warning bar across Google's page (--test-type beside --no-sandbox) 2026-11-26 10:29:22 -08:00
shinyobjectz 374426411e raea cloud's Google sign-in can run in a browser on the box, which the person works from the dashboard: Chrome on a virtual display of its own (google-screen.ts), its profile in the sign-in's folder so the Google session goes with it, served over VNC on WS /v1/google-token/ID/screen. Google's last step lands on Antigravity's listener on the box, so the sign-in finishes with nothing pasted; POST /v1/google-token/ID with no address waits for it ({pending} after 25 s). A box without Chrome falls back to the pasted address. setup.sh installs Chrome, Xvfb and x11vnc 2026-11-26 10:29:22 -08:00
shinyobjectz e435bff43e raea cloud's box runs an agent only when it's named, by the request (?agent=) or the box's RAEA_AGENT: no default from whichever is installed first (it had made antigravity-acp the default on raea-1), so a run is never on a model nobody picked. With neither, the socket is refused and says which agents are installed 2026-11-26 10:29:22 -08:00
shinyobjectz 4b2b39edd3 raea cloud's box: with no agent named, Claude when it's installed (antigravity-acp sorts first and became the default on raea-1's refresh) 2026-11-26 10:29:22 -08:00
shinyobjectz 063ae93f30 raea cloud's box signs agents in to a Google AI subscription: Antigravity's Google sign-in runs on the box, the person pastes back the address Google sent them to, and the token file comes back once (POST /v1/google-token, google-token.ts); an agent socket given it (RAEA_GOOGLE_CREDENTIAL) has it written into its own GEMINI_HOME. With the box's Claude sign-in (claude-token.ts, per-socket keys and homes), live on raea-1 since 11-21 and committed here; antigravity-acp joins the box's default agents 2026-11-26 10:29:22 -08:00
shinyobjectz 2a63d75e1b Live sound follows the system's output: a changed default device (headphones, AirPods, a display) or a broken stream reopens the mixer's stream on the one in use 2026-11-26 10:29:12 -08:00
shinyobjectz 2a005e0e30 MK28-MK29: a goal as a fifth kind of make job, held by its commands and a fresh critic, never the agent's word
make: goal({ goal, rules }) on brief.ts: each rule a command that must exit 0 (run, with a timeout), a file that must exist (a deliverable) or words a fresh critic must find true (says). raea make status runs the commands at every status (the Stop hook's too); raea make judge [--by claude|kimi] asks a read-only critic and keeps its verdict in review/goal.judge.json, which clears a says rule only while it is no older than the work's newest file. Make also gets previews (what a job shows but never delivers: review/ and previews/ by default), and status lists files.deliverables and files.previews. runtime/goal-plan holds the gates (raea-app-make was at its size cap).

Test: goal-plan's six (a command passes or says why, a timeout, a stale and a fresh verdict, file rules left to deliverables, the doctor); end to end on a scratch brief, a curt greeting.txt was refused by the critic and a warm one passed, with both commands passing.
2026-11-26 09:41:28 -08:00
shinyobjectz 04098af5af README: the release note says releases are experimental and the app is unstable (Linux and Windows most), with no version or date to go stale 2026-11-26 09:26:36 -08:00
shinyobjectz 22834de9b1 0.1.10 notes: #215 measured fixed on Windows (WebView2, 160-turn chat at the display's rate with and without the GPU), floor3's held interior under Known (rc3 worse, not a regression), overscan is Mac only 2026-11-26 02:10:57 -08:00
shinyobjectz 300e094b9d skills pin: the files reference as 0.1.10's app finds its local cloud (raea-skills #132) 2026-11-26 00:57:47 -08:00
shinyobjectz 7e214fedbb 0.1.10's release notes; the AppImage packer (#226) promotes as a release tool; the contribution series' own checklist stays in its fork 2026-11-26 00:51:45 -08:00
shane 280437c111 Merge pull request #226 from Sarverott/development
release: package and attach a Linux x86_64 AppImage
2026-11-26 00:49:49 -08:00
shane 11f28ffc52 Merge pull request #228 from Sarverott/development-3
docs: propose a code of conduct and safe reporting guidance
2026-11-26 00:37:26 -08:00
shinyobjectz 107b591555 skills pin: bevy, blender and threejs, three engine skills by others beside raea's (raea-skills #118) 2026-11-25 21:33:29 -08:00
shinyobjectz b7cc2694aa skills pin: the CLI reference names raea scene lod (raea-skills #131) 2026-11-25 21:32:04 -08:00
shinyobjectz 2bd30c5fad CI tests raea-bundle in a cargo call of its own: Rolldown's serde_json arbitrary_precision unified into the other crates' test builds, where raea-core-brief's make dials (an untagged enum holding a number) can't be read; main's CI was red on it from 11-23 2026-11-25 21:27:57 -08:00
shinyobjectz d169848689 raea light check measures light whatever else a scene's render finds: its renders pass --despite all, so a contact sheet's cuts, read as a lurching camera since SG13 (11-21), no longer refuse gambit-street and leave every scene after it unmeasured 2026-11-25 21:24:49 -08:00
shinyobjectz 0d92089f7d Overscan's component lives in raea-sys-compose's passes, the facility framepass already reads PrepassRead from, so framepass doesn't depend on viewbox (viewbox re-exports it) 2026-11-25 21:03:10 -08:00
shinyobjectz 5885f86ff3 skills pin: the Solari guide's overscan and the pitch guide (raea-skills #130) 2026-11-25 20:48:37 -08:00
shinyobjectz e02151cf49 Solari overscan (RT40), off by default: <SolariLighting overscan={0.05}> traces the view a twentieth wider on every side and crops the middle back out, so the frame's border has neighbours and history to gather from (a held wall at the edge: jitter's worst square 16% to 5.6%; the same picture with it off). FramePass's depth() and normal() read where the main pass drew, which also corrects them under a render scale below 1, and a camera with a prepass pass keeps PrepassRead, so a raster video with one isn't refused at its third frame. By the Solari session 2026-11-25 20:47:04 -08:00
shinyobjectz 49c2c96a1a The z-fight check's two copies of a plane's frame folded into flat_in 2026-11-25 20:45:46 -08:00
shinyobjectz 346cacd71a The clipping check doesn't test a part in a solid whose cells are over twice its size: a glTF node spanning a whole building has cells over a metre and flagged every prop near its walls. The z-fight check measures the area two faces really share and says where (N cm2 shared, most at a point). By the Solari session 2026-11-25 20:43:32 -08:00
shinyobjectz ad766214e0 name_rows gathers the names in a loop, so it isn't a near copy of a line in systems/page 2026-11-25 20:41:16 -08:00
shinyobjectz 745c5f98c8 A FramePass's and a Compute's uniforms follow their row after a part is dropped: a video's 3D is made live, a dropped row moved the rows after it up while the frame's row names kept the opening order, so a pass read another row from then on and kept the uniforms it opened with (MALL RAT's exposure, lens and tape stood still; a 520-frame run now matches a held frame, ratio 1.04, was 12). name_rows renames the rows where one is dropped or added. Found and fixed by the Solari session 2026-11-25 20:37:45 -08:00
shinyobjectz d36b0604bc skills pin: raea-skills #129 (6afe7c1), the copies for make: cut
pitch.md's "A client's brief is a contract" section, and reference/sdk.md and files.md with raea/brief's cut. #129 merges when 0.1.10-rc4 is cut.
2026-11-25 20:35:59 -08:00
shinyobjectz 03c2e2ee15 MK25: under raea-app-make's 2000 lines and no new duplicate groups
Kind::name moves into core/brief, so apps/make's kind_name goes. The cut gates' small closures are restated; the duplicate check had matched them with code elsewhere.
2026-11-25 20:33:13 -08:00
shinyobjectz 21859a5a31 MK25: the cut gates as their own crate, runtime/cut-plan, reading shape through io/soft's probe
raea-app-make was at its 2000-line crate limit, so the gates now live beside MK24's lod-plan as raea-runtime-cut-plan. status.rs wraps the gates as it does lod-plan's.

A delivered file's size and length now come from io/soft's probe (ftyp and moov only, through re_mp4), not a third box reader. The tests use raea's 3 s 320x180 clip as the delivered file.

Folded the closures the duplicate check flagged: is_name is shared by cut ids and shot names, and quotes is built in loops.

The pitch guide names the cloud's report files, not `raea words` and `raea frames`, which local raea doesn't have. The SDK reference is regenerated for raea/brief.
2026-11-25 20:28:42 -08:00
shinyobjectz f02348c397 MK25-MK27: a client's brief as rules, make: cut({...}), held by raea make status
11-25, Shane, on StreetTalk's street interview ads: "you need to make the process of ingesting the brief more direct, or else it's just context that gets lost. It needs to be written as a brief typescript rule that is then enforced ... I need raea make to be the standard".

A fourth make kind, cut (core/brief cut.rs, typed into brief.gen.ts, `cut()` in raea/brief). It holds:
- the count, lengths and formats, and each cut (out/cuts/ID_WxH.mp4 per format);
- `say` phrases, `never` phrases and the exact CTA;
- `open` items: the brief's [TO CONFIRM] lines and its contradictions.

Every rule quotes the brief (`from`). apps/make cut.rs holds the job:
- quotes: each `from` is found in media/brief.txt;
- count, and open items: each needs the person's answer;
- per delivered file: shape and length from its own MP4 boxes (mp4.rs, no decoder);
- say, never and CTA from FILE.words.json and the render manifest's text. Compounds are joined ("wish list" = Wishlist), a say phrase's words may sit two apart in order, and the CTA needs 85% of its words in order in the last 8 s;
- the frames check, which must be newer than the file.
The Stop hook holds the agent through `raea make status` as for the other kinds.

Checked on Gemini's real Elfster deliveries against a contract written from the real brief. The gates found:
- "free, fun, and easy" missing from 3 of 4 solos;
- the CTA rewritten in one and absent from another;
- no frames check on any file;
- 4 of 10 cuts delivered.
Each finding was confirmed against the transcripts. cargo test -p raea-core-brief -p raea-app-make: 40 pass, 6 new.
2026-11-25 20:06:32 -08:00
shinyobjectz 64d97bac8f The lane's last house checks: two copies in apps/direction's check folded away, and the contact lint's feet, wall and face helpers live in core/scene parts.rs, so raea-sys-contact keeps room for LX7's plan 2026-11-25 16:30:14 -08:00
shinyobjectz b9d1beaa2f skills pin: the scenes guide with floating (raea-skills #128) 2026-11-25 16:15:52 -08:00
shinyobjectz b1a8d57616 A thing left in the air touching nothing is an error in raea scene lint, unless it is marked floating (typed on Mesh3d and Model, taught in the scenes guide) or its own material glows; the z-fight check tells doubled triangles and undersides resting on one floor from real fights. The lane's house checks: dunce for the project's path, the contact lint under its size (glows and unparked live in core/scene parts.rs), copies folded, the manual's pages for SolariLighting's new props and floating 2026-11-25 16:14:43 -08:00
shinyobjectz 9adc87dcd9 skills pin: the Solari guide as 0.1.10 has it (raea-skills #127) 2026-11-25 15:51:36 -08:00
shinyobjectz 3a1cff770b Solari for 0.1.10: raea light steady tells a held frame's movement by kind (settling, boiling, jitter, flicker; engine/light/src/kinds.rs, steady-kinds.png) and raea check reports the newest hold of a composition lit by Solari; SolariLighting gains knee, late (the denoiser after the sky and forward meshes) and firefly (a sample over N times its 8x8 mean cut back); reflected ReSTIR neighbours and a pixel permute at the frame's border; the eased emitter clamp is opt-in (emissiveClamp.stillHold, thin histories only), so the default is 0.1.9's (lightbench window-still-off-def +0.17 stops, inside RT32's 0.19). MALL RAT: 22 of 24 holds STEADY; t3-1320's border needs overscan (RT40, not built), t2-3686 passes on rerun. Work of the Solari session, committed at its stable point 2026-11-25 15:51:08 -08:00
shinyobjectz 09d87cfa1c SolariLighting paths: N initial paths a pixel, merged by RIS, cut the boiling in held sun-lit interiors (MALL RAT's court 3.0 to 1.6-1.9 on raea light steady, at 1.6-2.2x the frame; unbiased on the kitchen); a steady world cache whose query holds still with the camera, and a baked one, when a composition asks. All off by default: paths 1, sky share 0, spatial radius 30. It doesn't yet pass the 1.5 gate there: the world cache's own noise is what's left (docs/solari-efficiency.md). raea light steady says the light boils (the trade's word; the Solari guide says what it is and what to try first) 2026-11-25 15:51:08 -08:00
shinyobjectz afa6702c05 The refusal's reason is read in one place (raea-app-judge's why_refused, which raea make uses): two copies put raea-app-make over its size limit 2026-11-25 15:41:05 -08:00
shinyobjectz 38f49d623f raea make status and raea judge say why a brief was refused: raea spec prints its refusal on stdout and they read only stderr, so a brief with one wrong value gave an empty reason. MK21-MK24 are done: proven on a job (the render's lod-closer from the brief's level, raea scene lod's table, the make gate open then clear when answered in NOTES.md or replanned, the blockout's boxes named with their level) 2026-11-25 15:37:38 -08:00
shinyobjectz 7ded6a7612 raea voice --over: the manual says what a real room gave (never sure of the echo, so it behaved as without the flag); experimental, not used by raea.app 2026-11-25 15:35:37 -08:00
shinyobjectz 6416e4ec1b The release check reads the song's tempo without jq: a person's PC has none, and the check stopped there on the Windows PC 2026-11-25 15:33:33 -08:00
shinyobjectz 2556f42366 The engine's release check on real machines (tools/release-machines.sh): a candidate's archives checked on the Windows PC's own GPU and the Linux box with a hard pass (RAEA_CHECK_HARD=1: a folder with a space and letters outside ASCII, 3D, an MP4, one render forty times with every exit read, two at once). And raea's own Windows programs signed in the release once the repository names its Azure signing identity (tools/release/win-sign.sh, RAEA_WIN_SIGN=1; off and unsigned until then, #221) 2026-11-25 15:33:33 -08:00
shinyobjectz f2351359c8 The repeated-error helper lives once, in io/trace (once.rs): the mixer and raea voice each carried a copy, which put raea-sys-mix over its size limit and added three duplicate groups 2026-11-25 15:32:18 -08:00
shinyobjectz 7595c81782 A failing audio device's error is said once, then only how often it came back: the mixer's and raea voice's stream error callbacks printed a line for every call, and on Linux an ALSA device answering POLLERR filled app.log with 40 GB of one line in two days (#239) 2026-11-25 15:22:17 -08:00
shinyobjectz 1926af81a5 Opus reads back off the Mac's own reader (#242): the software backend's decoders are made from Symphonia's registry with a libopus decoder added (io/soft/src/opusdec.rs). Symphonia's MP4 reader found an Opus track and had no decoder for it, so the MP4s raea writes itself on Windows and Linux (H.264 + Opus) read as silent: raea media probe listed no audio and raea media share wrote a copy without its sound 2026-11-25 15:20:20 -08:00
shinyobjectz 5d5da4f3d8 Two paint bugs, each held to what Chrome draws (bench/paint-order/check.sh). #241: a stacking context's z-index: -1 children go under its own content, so a box behind a word no longer covers it: the element's text was drawn before every child, the negative ones included. #240: a miter join between tangents within a quarter of a degree of one line is a bevel: after an arc, a long line's tangent passed the join's absolute test, and the miter point, taken from two points a fraction of a pixel apart, landed across the page as a bar from x=0 (a rounded rect's stroke under a negative viewBox origin, at some widths) 2026-11-25 13:22:34 -08:00
shinyobjectz 760d8e53c1 skills pin: the LOD plan's copies (raea-skills #124: scenes.md, the file reference, channel_create taught in collaborate.md) 2026-11-25 13:18:16 -08:00
shinyobjectz 40757526f8 plan::composition reads the words in a loop (no closure copied from elsewhere) 2026-11-25 13:18:08 -08:00
shinyobjectz 50a7e94f5e The planned detail's end check finds the render's composition from the command line (plan::composition), so the export crate carries none of it and stays inside its planned size 2026-11-25 13:18:08 -08:00
shinyobjectz 6735bd940f MK21: planned detail held to the frame: lod 0 (the hero) to 4 (far) on a make object and on parts (Mesh3d, Model, a parent Entity or Group), measured as how much of the frame a part's box spans; a render's end checks, raea scene stage and raea check --quick say lod-closer when a shot shows a part finer than planned (a warning one level finer, an error two or more), raea scene lod lists every part's plan beside what the frames show, and raea make status holds a job at it (MK22-MK24; raea-runtime-lod-plan) 2026-11-25 13:18:08 -08:00
shinyobjectz 505103dacb Two plugin descriptions say raealism, the light's name, where they said raea GI 2026-11-25 08:08:29 -08:00
shinyobjectz 8cbf438488 raea render ends on an error when a pipeline's shader didn't compile: the frame came out without that pass (Solari's light) under "0 errors"; said once a pipeline, as the check "shader" 2026-11-25 07:46:24 -08:00
shinyobjectz 4447ff2425 raea light steady refuses a held run whose shaders didn't compile: a Solari pipeline that fails leaves the frame to what's left, and its light was scored as the path's (11-25, a reserved word in a shader made three runs read alike) 2026-11-25 07:44:07 -08:00
shinyobjectz 53f9cba215 raea check's contrast reads a moving text where it is on its middle frame, not where it ends (#236): a run's box on that frame is its last box moved back by how far its letters travel 2026-11-25 04:52:45 -08:00
shinyobjectz 86f9aa310f raea voice say: Pocket's stock voice (alba) when none is named, as a session's, never the clip in the person's voice folder 2026-11-25 01:37:19 -08:00
shinyobjectz 388285cc7d skills pin: raea-skills 2acd362 (#126, reference/cli.md for 0.1.10) 2026-11-25 00:24:02 -08:00
shinyobjectz 5c6f2fd63b Stale frame roots dropped in a loop (the retain's closure was another crate's shape, the dupes check) 2026-11-25 00:22:11 -08:00
shinyobjectz 7e09ad474a A stale frame root is dropped by a comparison of its own (a closure of raea gen's shape, the dupes check) 2026-11-25 00:15:13 -08:00
shinyobjectz 420e753583 A closed iframe's frame root goes with its JS, its document and its entity: a page that opened and closed artifacts kept each one's engine running, and a stale root swapped its document into the next iframe given the same id 2026-11-25 00:12:05 -08:00
shinyobjectz 9471ceb76b raea-page-host drops stylo, which moved with the page's accessibility; a blank text node is told by its element 2026-11-25 00:12:05 -08:00
shinyobjectz 2ff6676cb1 A page's accessibility in a crate of its own (raea-page-ax), one reading of its elements for both its trees; the window's scheme and rest in raea-page-window 2026-11-25 00:12:05 -08:00
shinyobjectz a1c8492e8f sdk/ui: a field's placeholder and the other writable properties can be set; markup read back has no end tag on an input or a break 2026-11-25 00:12:05 -08:00
shinyobjectz 6b12b58ca5 A held pointer leaves the window on its release, so a press isn't dropped when the mouse is outside 2026-11-25 00:12:05 -08:00
shinyobjectz fb19fa48a6 raea's window is light, dark or the system's; a page's elements can be replaced by outerHTML
window.scheme picks the scheme (the system's until then), prefers-color-scheme and matchMedia follow it.
2026-11-25 00:12:05 -08:00
shinyobjectz f321704e77 A stylesheet added during a press, a hover or a focus no longer crashes the page
stylo's stylesheet invalidation asked a state-only snapshot for the class and id it had, and Servo's panicked.
2026-11-25 00:12:05 -08:00
shinyobjectz efac2ad5e0 A name spaces what's laid out as blocks, and a press from an assistive client scrolls to its element and never lands on what covers it 2026-11-25 00:12:05 -08:00
shinyobjectz 3081ab72c6 The page's dialogs open in raea's window, and macOS lists overlays and takes typed values
sdk/ui had no <dialog> API: showModal threw, so raea cloud's sheets (the rail's +, every flow on sheet.js) never
opened in raea.app. Now open, show, showModal (focusing its autofocus or first control), close (returnValue, close
after as a task), requestClose, and Escape's cancel on the topmost modal one.

The window's tree leaves hidden nodes out: AccessKit's filtered walk (accesskit_consumer 0.38) stops at a hidden node
that follows an empty container, and raea cloud's body has one (an empty layer, then the closed side panel), so
macOS listed nothing after them: the welcome and every sheet were reachable only by hit test. A test reproduces the
walk's stop and fails once AccessKit fixes it. Editable fields declare SetValue (macOS sends setAccessibilityValue
only to a node that has it). The idle gate is as it was: Bevy's low-power mode already wakes for user events.
2026-11-25 00:12:05 -08:00
shinyobjectz 13cc0d7eb5 raea's window publishes the page's accessibility tree to the OS
VoiceOver and macOS accessibility clients read every element of the page through Bevy's winit AccessKit adapter:
the Blitz document walked from its root (markup set as HTML included, which has no wire ids), each node's role, name
and states by raea-sys-a11y's computation, with its box in physical pixels. Bevy's own tree is turned off while a
client listens; the tree is sent at most every 250 ms, on frames that drew. A press from a client (AXPress, Click) is
a pointer down and up at the element's middle, and SetValue types over the field; controls declare Click so macOS
sends it. A window behind others at rest wakes for a client's actions. A text node is never asked for its box (Blitz
panics on it), and white-space-only text is no node.
2026-11-25 00:12:05 -08:00
shinyobjectz fb37428ddf sdk/ui: a root mounted on another element takes its clicks, and a link's press follows its href
A React root mounted at an element other than the host's root (raea.app's welcome and pages over raea cloud's
dashboard) drew and took no press: its container never got React's listeners, as a portal's does. And a link's
default action wasn't there: a press on <a href="#/projects"> dispatched click and moved nowhere, so the dashboard's
rail went to none of its pages with a pointer. Now its fragment becomes location's hash (hashchange follows), another
page of the origin is assigned, and a target or another origin opens a window, unless a listener prevents it.
2026-11-25 00:12:05 -08:00
shinyobjectz 3b24037ceb raea cloud's box on Windows: the shell's own cat, ls and grep are on its PATH 2026-11-25 00:09:02 -08:00
shinyobjectz 13092a5cfc raea cloud's box: its shell on Windows (RAEA_CLOUD_BASH, taskkill), for raea.app's local cloud
/v1/shell ran bash and stopped its process group, and RAEA_AGENT_CMD ran in /bin/sh:
neither is there on Windows, where raea.app runs this server as a person's own local
cloud. shell-os.ts: the bash is RAEA_CLOUD_BASH (the app names the one beside Git),
else bash on PATH; an agent's command line runs in /bin/sh, or that bash on Windows; a
run is stopped with what it started by taskkill /T there, by its process group
elsewhere (and isn't detached on Windows, where that opens a console). Linux and macOS
run exactly as before.
2026-11-25 00:09:02 -08:00
shinyobjectz b491a27771 The meshes folder's error without a closure (the dupes check's near copy) 2026-11-25 00:06:53 -08:00
shinyobjectz 38bd094357 The meshes folder named once where it's made (a closure of the game export's shape, the dupes check) 2026-11-25 00:06:53 -08:00
shinyobjectz 8c868f23c5 raea scene export / blender open: make meshes/ where the first mesh is written (it was emptied and never remade)
export() removed DIR/meshes and recreated only DIR, so every solid in a fresh export failed to write; the atelier
agent worked around it by locking a meshes/.keep with chflags uchg. shape() now makes meshes/ itself, and its test no
longer makes the folder beforehand, which is why it passed. Not yet tested: waits for disk (parked on its branch).
2026-11-25 00:06:53 -08:00
shinyobjectz 8f4f3648c8 The window's clipboard stub without a window isn't the shape of another crate's stub (the dupes check) 2026-11-25 00:06:53 -08:00
shinyobjectz fdf58ffa16 The window's open on Linux and Windows is raea_io_os's open_url itself, and its stub the clipboard's (two functions of one shape, the dupes check) 2026-11-25 00:04:58 -08:00
shinyobjectz 1f17872816 Linux and Windows window: links and Copy reach the system (sign-in opened nothing)
raea's window answered app.open and clipboard.write with AppKit on the Mac and with stubs everywhere
else, which answered true. So in the Linux and Windows apps, signing in (Google, Apple, GitHub's
device page), Continue on raea.io and every other link opened nothing, and Copy (the GitHub code
among them) copied nothing, with no error. Reported from Ubuntu 26.

Off the Mac the window now opens links and uses the clipboard through raea-io-os (opener: xdg-open,
or opener's own copy where the system has none, Windows' shell; arboard), which the page host
already links for paste. app.open and clipboard.write answer an error when the system refuses, on
the Mac too (NSWorkspace openURL's answer), so the page can say so. The off-Mac calls move to
other.rs (native.rs at the 500-line limit). tools/linux-check.sh also checks raea-page-window
--features window, the window the Linux app ships.
2026-11-25 00:04:58 -08:00
shinyobjectz ea96626433 The export crate back at its 2000 lines: the note on a missing sound file beside its line 2026-11-25 00:04:58 -08:00
shinyobjectz f95b9072e7 raea-runtime-sound exports there(), which the render calls: the lane did not compile without it 2026-11-25 00:02:04 -08:00
shinyobjectz 28cc2eb72b staticFile from compositions/ finds the project's assets/: an edit in one of the layout's folders (compositions/, components/, artifacts/) or under a .raea/project had only its own folder searched, so a picture failed as missing and an <Audio> was dropped without a word and the render refused as silent ("the edit has <Audio> but no sound reached the render", "makes no sound"; reported three times on 0.1.8 and 0.1.9 as a Windows bug, the same on the Mac). A sound file that isn't there is now named, once 2026-11-25 00:02:04 -08:00
shinyobjectzandSarverott 8152c9cfb7 Issue forms for a bug and a feature request, and a pull request template: what was run, what happened, what was expected (from #230 and #232, shortened)
Co-authored-by: Sarverott <[email protected]>
2026-11-25 00:00:58 -08:00
shinyobjectz cefb0e36a8 docs/components.md: an item says which wgpu backends its fixture was drawn on 2026-11-24 23:57:12 -08:00
shinyobjectz d55a74c472 Components first: raea guide components, and the registry design
sdk/guides/craft/components.md (raea guide components): the component-first order of work, what a
raea component is (frame-pure, JSON props, its name on what it draws) and the contracts it keeps for
time, space, look and sound, who owns what in a composition, where each kind gets made (TSX, solids,
sdf/grow, a generator, Blender through a saved script, Godot, Rust rows) and why Godot and Blender are
workshops rather than runtimes, materials and shaders as components, a fixture and checks per kind,
shadcn's components on screens and panels, and promotion from a project to shared/ to a registry.
tools/skills.sh copies it to the skill's root; raea guide lists it; the router, scenes, godot,
materials and parts guides link it.

docs/components.md: raea's registry as shadcn's format (every item a valid registry-item.json, raea's
kinds and assets, contracts, fixture, checks, stills and engine range in meta.raea), components.json
namespaces, the theme and story bridges, and the build order CP1-CP10.
2026-11-24 23:57:12 -08:00
shinyobjectz 2c3bcfa0eb raea light steady --run M: the frame cold against the same frame after M frames played up to it (a cache gaining or losing energy over minutes), the render's output kept in render.log, and a failure names the three things on Solari that build light over frames, not the world cache alone 2026-11-24 23:57:12 -08:00
shinyobjectz ba65d342a5 raea light steady's picture is drawn at the frame's size, so it lays over the frame 2026-11-24 23:53:45 -08:00
shinyobjectz d0d283ecaf skills pin: raea-skills d50dd83 (#119 components and raea fix, #122 projects by client, #123 denoisers, #125 raea media share and the 0.1.10 references) 2026-11-24 23:50:47 -08:00
shinyobjectz 487e62c97b raea light check holds each scene's first still on the traced paths (solari, gi), reports it under steady and fails when the light moved; steady's hold, report and line as functions the check calls 2026-11-24 23:50:46 -08:00
shinyobjectz a22b940a97 raea light steady also fails a light whose level drifts over the held frames (a world cache gaining or losing energy the longer it runs), raea light check renders despite a set's clips (found uncommitted in the shared tree, 11-24, FLOOR3's check), and the mix's slope written without a copied closure 2026-11-24 23:46:55 -08:00
shinyobjectz 12f8521003 raea light steady: a frame held (raea render --hold FRAME:FRAMES) and whether its light holds still. Blotches tens of pixels wide that drift over lit floors and reflections, Solari's world cache lit by too few rays, are told from grain by size, and a run over --max fails with a picture of where 2026-11-24 23:46:55 -08:00
shinyobjectz 95d8236e71 A material or a shape whose props say the same thing isn't rebuilt: memo compares their values, so an array or a colour written inline no longer reads as a change every frame, and usePlace3d keeps its matrix while its numbers are the same (3000 parts: 103 to 78 ms a frame, the same pixels; #160) 2026-11-24 23:46:55 -08:00
shinyobjectz 675aa18daf raea-runtime-pid: the process check out of raea-runtime-bundle into a crate of its own (the bundle crate was at its 2000 lines), the manifest reads GIVEN where it called given(), and two lines the dupes check counted as copies written their own way 2026-11-24 23:46:55 -08:00
shinyobjectz b034e31a61 A song's bars are the same on every decoder: a downbeat or two the model marks mid-bar, between downbeats whole bars apart, are counted from the beats, so a 12 ms decoder offset no longer gives the Mac 78 bars and the rest 75 (#49) 2026-11-24 23:46:55 -08:00
shinyobjectz c0417d91ab raea render --props and --scale, getInputProps() and a composition's calculateMetadata: input props over defaultProps, a size or length worked out from them, and a render at S times the composition's size (#176, #175) 2026-11-24 23:46:55 -08:00
shinyobjectz c0d94f8f0c raea media share FILE -o OUT.mp4: a copy to send, held to a bitrate (2600 kbps unless --kbps), and raea ffmpeg reads the skill's -maxrate line as it (#219) 2026-11-24 23:46:55 -08:00
shinyobjectz 8345d76223 The mix reaches its loudness: make-up gain is found by a secant over up to 8 passes, so a dense beat the leveller holds back lands on the target and not 2 LU under it (#220) 2026-11-24 23:46:55 -08:00
shinyobjectz e9a7b9fd16 An <R3F> in a box of the page shows what the page paints under it: the camera clears to nothing there, where it took the nearest ancestor's colour and cut a sibling layer out (#235) 2026-11-24 23:46:55 -08:00
shinyobjectz 477b14a0ae A VP9 WebM keeps its alpha after ffmpeg -c copy: the muxer writes the tag as ALPHA_MODE, and only alpha_mode was read (#224) 2026-11-24 23:46:55 -08:00
shinyobjectz 407dbc5bec raea sounds get -o DIR: a folder that already holds another instrument keeps it, and this one goes in DIR/PACK-INSTRUMENT (two instruments share note names, so the second replaced the first and its licence, #217) 2026-11-24 23:46:55 -08:00
shinyobjectz c1eaaa37f1 raea media: one argument holding several file names is those files, so a shell that does not split a variable gets its sheet instead of "File name too long" (#218) 2026-11-24 23:46:55 -08:00
shinyobjectz 538bc30f37 A project's client in its own file (apps/workspace client.rs): workspace.rs was 512 lines, over the 500 a file may be 2026-11-24 23:46:50 -08:00
shinyobjectz 5d411345ef The manual's raea project page: --client and --no-client described, and its usage as the binary gives it 2026-11-24 23:46:50 -08:00
shinyobjectz 16abfb08b7 A project names its client, raea cloud's tag, instead of sitting inside another project: raea project new NAME --client C, raea project tag [NAME] --client C | --no-client; raea project and raea workspace --json say it (and the workspace's clients). raea.app files every card raea show makes from the folder under it 2026-11-24 23:46:50 -08:00
shinyobjectz 27b70f7366 raea voice: the trace reads the echo's delay and gain as fields (a method for it copied another, the dupes check), and the skills coverage check knows raea voice is run by raea.app's Ideate, never by an agent 2026-11-24 23:46:49 -08:00
shinyobjectz 8b774295e1 raea voice: Pocket's own voice by default (never a clip from the person's voice folder), a help line and a manual page, a silent microphone said as an error, and --over: its own voice taken out of the microphone's sound so the person can talk over it through speakers (echo.rs: an adaptive filter, a second one behind it that always learns; opt-in, checked in a simulated room with --room GAIN, not yet across real rooms) 2026-11-24 23:46:49 -08:00
shinyobjectz 04cd051788 raea voice: speech to speech on this computer, for raea.app's Ideate. A session of JSON lines (say, end, stop, mute in; ready, speech began/ended, heard, saying, word, said out): Silero VAD finds the person's turns, Parakeet TDT 0.6b v3 writes their words, Pocket TTS speaks the agent's as they stream, all on ONNX Runtime with cpal for the microphone and speakers, so it runs on any OS with no cloud voice. While it speaks it doesn't listen unless --duplex (a laptop hears its own speakers); words begun before it started are still heard. raea voice hear FILE.wav and raea voice say "WORDS" -o OUT.wav do one of each; --from/--to put a recording and a file in place of the microphone and speakers for checks. Measured on an M5 Pro: 8.9 s heard in 266 ms, first sound 44 to 81 ms after the words (crate raea-app-voice, bin raea-voice; the raea CLI's voice arm is not yet compiled into a release binary) 2026-11-24 23:46:49 -08:00
shinyobjectz ce46f5151f DN12: done; raea-skills #123 carries the skill copy for the landing to merge with the pin bump 2026-11-24 15:43:42 -08:00
shinyobjectz 1386761981 DN0: raea bench denoise draws each case on each denoiser (off, MetalFX; raea's own and DLSS-RR say why they can't run yet) and scores it against the same frames path-traced: LDR-FLIP written from the paper, RMSE, bias in stops, blotches (a mid band's error), flicker as the error's second difference against the truth's shot, a whole-frame spike, lag after a disocclusion or a light going out, a still's and a live frame's cost, and how many of MetalFX's numbers each meets
It runs on raea light check's runner, which gains pub render_with, live_with, frames_with, list_flag, spp, cell and Scene::shot_frames with light check unchanged. The cases are bench/denoise: nine small rooms (a dark room under gain, a waxed floor, a door opening, a whip pan, neon, leaves, a sunbeam in fog, a mirror, a light going out), a full-HD cost case, and a real take's doorway. The manual gets raea bench's page, in the Check group.
2026-11-24 15:42:56 -08:00
shinyobjectz 898a7f8b0e DN12: the Bevy guide's Solari page says which denoisers, upscalers and neural passes raea has, where each runs and what each can't do or isn't allowed (MetalFX, none, raea's own, DLSS-RR, OIDN, steady AA, motion blur, FSR Ray Regeneration, NRD, mlxdlss), and to measure a denoiser with raea bench denoise rather than by eye 2026-11-24 15:42:49 -08:00
shinyobjectz 6f6362040b DN0: docs/denoise.feature (DN0-DN12) and docs/denoise-upscale-research.md: raea's own WGSL denoiser and upscaler on every OS, MetalFX and DLSS-RR as optional backends held to one bench 2026-11-24 09:31:23 -08:00
shinyobjectz 66eb15448f skills: pin raea-skills 0e01a14 (#121, instruments cast from the free libraries) 2026-11-23 18:22:23 -08:00
shinyobjectz 153fbc6267 motion guides: cast each part's instrument from the thousands of free libraries, not the same four packs
Shane, 11-23: "when i say midi it just picks the same ones there thousands of insturments out there to go use".
Every worked example and the first routing line sent agents to raea sounds' four packs (Salamander, FluidR3 GM,
tonejs-instruments, VCSL), so every score sounded alike. music.md gains "Cast the instruments for this piece"
(a casting line per part, search the libraries, MIDI means notes not General MIDI, the cast in the notes) and reads
SFZ/Decent Sampler maps into a Sampler. sources.md routes instruments to casting and adds Karoryfer (all CC0 now),
Pianobook, Decent Samples, Versilian's other free libraries, hilbricht.net's list and musical-artifacts, with their
licences checked 11-23, plus a rule for samples that can't be passed on (gitignored, with a SOURCE.txt).
2026-11-23 18:17:35 -08:00
shinyobjectz 0575660417 BK3: the trace on the GPU (sky, emission, bounces), and BK2's origins off their triangles' edges
raea-sys-lightbake's trace: cosine-weighted paths through a BLAS and TLAS the bake builds from the meshes it bakes, by
wgpu ray queries on raea-gpu-device, with no Bevy render world (docs/bake.feature BK3 says why). wgsl/diffuse.wgsl
is a module systems/rt can include as it is. A device without ray queries is refused with the reason; a GPU error is
the bake's error, never a black map. In progress: not the <Environment>, baked lights, the sun's first hit, textures
or the drawn albedo of procmat, wear and sdk/wear. Only Metal has run it.

Tests with known answers: a white furnace at all 2834 open texels, a black wall's form factor within 0.002, a closed box
glowing 1 with albedo a half reading 2.004 for 2, a red wall's bleed, the same bytes twice. Breaking the cosine, the
bounce offset, the roulette, its weight, the emission or their order each fails one of them. The trace alone at 512
samples: table 0.8 s, Cornell 0.3 s, window room 0.9 s (grey 0.7, white sky), linear in samples.

It found a leak BK2 landed with: origins in a chart's edge band sat in the neighbouring wall's plane, and half their
rays left a closed room (1.16 for 2.0 on the box's edges). They're now four offsets in from their triangle's edges,
half a texel at most. raea_sys_atlas::laid returns the ray mesh numbered as the texels number it, so the layout's
model isn't read back. BK2's table is measured again (the atelier's row is from before).
2026-11-23 18:14:54 -08:00
shinyobjectz 0b8ec429cb BK2: one lay() for both bakes, so the same request gives the same atlas by construction
raea_sys_atlas::lay lays a request's model out (its triangles, their ray mesh, the atlas); layout() and
raea-sys-weathering's bake both start from it, where the split had left two near copies. The light bake's
triangle-mode filter is a plain check, not a closure shaped like another crate's. Weathering's 11 tests and the
light bake's 4 pass.
2026-11-23 18:01:40 -08:00
shinyobjectz 0bdc8714a6 BK2: done: each texel's place in the world, and the atlas split out as raea-sys-atlas
docs/bake.feature BK2 @done. raea-sys-lightbake starts: texels(glb, request) lays the model out over the atlas
raea/wear's cause maps share (BK1's layout, no second raster), reads the layout's model back as world triangles
into a parry3d BVH, moves each point off its surface by 1e-5 of the model's size (at least 10 microns), and marks
the texels inside other geometry: 16 cosine-weighted rays each, inside when at least half meet a back face and more
meet back than front. Tests: a slab with a block sunk 10 cm in and a box set by its node's translation (points on
the world surface, the sunk part and the floor under the block marked, the open not); the same texels twice; a
worn model's request gives its wear atlas.

Measured at 64 texels a metre, debug build: table 1.55 M texels, 0.67% inside, 3.4 s with its layout; Cornell
232 k, 7.5%; window room 980 k, 9.8% (the bands where each wall box runs into the next wall and the slabs, the floor
under the furniture's feet, the walls behind the window's piers); atelier 4.1 M, 4.9%, 70 s (41 s of it the layout,
which a release raea does in 1.6 s).

raea-sys-atlas (a facility) holds the atlas now: scene.rs, charts.rs and merge.rs moved from raea-sys-weathering
as they were, its hidden-triangle step and shared samples from rays.rs, and Ask, the env fields an atlas is laid out
for, parsed once for both. The light bake builds on it instead of sideways on another system, and weathering, at
1999 of 2000 lines, has room again. Weathering's bakes are the same: the table and window sets baked before and
after the move gave the same keys and the same 12 files byte for byte, so no cached wear bake rebakes. Its 11 tests
and raea-runtime-wear's pass; docs/wear.feature WR1's crate table says where each file is now.
2026-11-23 17:57:24 -08:00
shinyobjectz ac009cb5c5 BK1: done: one second UV set for the lightmap and the cause maps, weathering's charts measured against xatlas
docs/bake.feature BK1 @done. raea_sys_weathering::layout(glb, request) returns charts.rs's atlas alone (the model
with TEXCOORD_1, the atlas's size and density, every texel's world point, normal and triangle), with no causes
traced; given a wear bake's request it is that bake's atlas byte for byte (the test says so), so a lightmap and
raea/wear's cause maps read one TEXCOORD_1 instead of colliding. bake() now starts from the same lay() step;
its outputs and keys are unchanged.

Measured at 64 texels a metre over each set's world triangles, weathering's charts against xatlas (vendored and
built, then dropped): atelier (655k triangles) 1.6 s against 255 s, 15.6k islands against 28.9k, 546k seam texels
against 708k, stretch 0.021 against 0.042, both 51% used. xatlas is a little better on the small sets (table:
54 islands against 196; window: 85% used against 75%), but 255 s for UVs alone spends the bar's 60 s four times.

BK2's plan reads the layout's texels instead of a second raster; BK3 bounces the albedo raea draws, procedural
and wear extensions included, from one shared WGSL module; BK5's test set gains a worn set. docs/wear.feature
WR1 says its atlas is shared.
2026-11-23 17:40:42 -08:00
shinyobjectz 0cd00209bf BK0: done: the test set's Cycles references at 1024 samples and the numbers before any bake
docs/bake.feature BK0 @done, with its table. Table set: raea unbaked 0.0964 RMSE (0.355 stops) against the Cycles still,
raea with Cycles' maps 0.0445 (0.090); lightbake.py 242 s and 851 MB, so the bar's time is 60 s. Cornell box: black in
raster raea (0.708), 0.0758 with the maps. Window room: 0.188 unbaked, 0.145 even with Cycles' own maps (the maps are
cooler than the still's light; not the environment, not the clamp), so its frame numbers wait on that.

The manual's raea bake page; the verb skipped in the skills' coverage until BK5 teaches <LightBake>.
2026-11-23 17:14:09 -08:00
shinyobjectz 356dacd53f BK0: raea bake light --compare, and the bake's test set
apps/lightbake (raea-app-lightbake): `raea bake light --compare DIR [--sets FILE] [--set NAME] [--samples N] [--fresh]`
runs each set in apps/lightbake/sets.json through Cycles (blender/look.py's still, blender/lightbake.py's bake, both
at --samples, 1024 by default, kept in DIR/NAME until the set's .tsx files, flags or samples change) and through raea
(the set unbaked, the set with Cycles' maps), and writes DIR/report.json and a table: each frame's RMSE and stops
against the Cycles still, lightbake.py's time and peak memory (wait4's rusage on unix), the bar's verdict on the
table set. map_stops compares two lightmaps on the same UVs in stops, for BK5's per-mesh numbers. `raea bake light
EDIT.tsx` says the bake itself is BK1-BK5.

bench/bake: the table set (bevy/realism's example), a Cornell box lit only by an emissive panel, a room lit through
one window; each has a raea composition and a -cycles one that draws lightbake.py's maps (media/baked/, ignored).
The atelier is listed, reference false with why: its Manifold solids stop `raea blender open`.
2026-11-23 16:22:50 -08:00
shinyobjectz 3532c93e4c docs/bake.feature: light baked by raea on its own ray tracer, no Blender (BK0-BK5) 2026-11-23 16:02:05 -08:00
shinyobjectz 5f252f9c13 MK20: done: retry-safe projects by their inputs, and Chats' live view with a heartbeat (platform #40) 2026-11-23 14:18:29 -08:00
shinyobjectz 7fe204fe0e MK19: done: three make skills on raea cloud (platform #40) 2026-11-23 14:18:28 -08:00
shinyobjectz b8a78ece86 MK18: done: raea make plan draws the floor plan, grey box and comparison 2026-11-23 14:18:27 -08:00
shinyobjectz 0be19d9c5e MK17: done: shots from words and from a floor plan path 2026-11-23 14:18:27 -08:00
shinyobjectz ee9400fcfd MK16: done: clearance on every frame (raea scene stage --clearance) 2026-11-23 14:18:26 -08:00
shinyobjectz 0a73d6f72f MK15: done: framing sheets and a lens chart 2026-11-23 14:18:26 -08:00
shinyobjectz fa705757ed MK14: done: camera moves, focus and the handheld walk in raea/camera 2026-11-23 14:18:25 -08:00
shinyobjectz e3d681b645 MK13: done: a kit lands as a component set with a lineup and kit.json 2026-11-23 14:18:25 -08:00
shinyobjectz 0735b03adc MK12: done: prep fits, licenses and makes LOD1 2026-11-23 14:18:24 -08:00
shinyobjectz fc8b2198a1 MK11: done: Tripo and Meshy, picked on a clay sheet 2026-11-23 14:18:23 -08:00
shinyobjectz 9f5b00f0b5 MK10: done: references in one style on one sheet 2026-11-23 14:18:23 -08:00
shinyobjectz 16687e6d8b MK9: done: a clip fix that moves sideways re-drops onto what is under it 2026-11-23 14:18:22 -08:00
shinyobjectz ec0e9f0c37 MK8: done: z-fighting found between parts and inside one model 2026-11-23 14:18:22 -08:00
shinyobjectz 735b11054e MK7: done: grounding at contact points, from feet rays 2026-11-23 14:18:21 -08:00
shinyobjectz 2da197a2f7 MK6: done: the critic's score gates only once raea judge calibrate --kind agrees 2026-11-23 14:18:21 -08:00
shinyobjectz 9b3ad124f8 MK5: done: a rubric per kind for the fresh critic 2026-11-23 14:18:20 -08:00
shinyobjectz 02cd40eb5f MK4: done: the make questions in raea ask, advice until calibrated 2026-11-23 14:18:20 -08:00
shinyobjectz 15bd90ff62 MK3: done: gates as check lines in plan.org 2026-11-23 14:18:19 -08:00
shinyobjectz 2b36c21264 MK2: done: the Stop hook blocks until raea make status is done, with the loop guard 2026-11-23 14:18:19 -08:00
shinyobjectz 20f07dd93f MK1: done: raea make status decides missing, gates and done in code 2026-11-23 14:18:14 -08:00
shinyobjectz 05decaa4c9 MK0: done: make on brief.ts (scene, kit, shot), resolved and doctored 2026-11-23 14:18:03 -08:00
shinyobjectz 7450537a46 raea make: plan.org replaced through one helper; modelbox's forget reads its cache as contact's doesn't (copied code) 2026-11-23 14:15:07 -08:00
shinyobjectz 02a1050580 raea-core-modelbox: a glTF model's triangles, box and seat facing, out of raea-sys-contact
raea-sys-contact was 1923 lines and LX7's plan (docs/linux.feature) adds 163; at 1801 it has room. The cache of
each file's triangles moves with them; contact's forget lets both go, as before.
2026-11-23 14:11:21 -08:00
shinyobjectz ab5f4cd138 skills pin: raea-skills #120 (kits and shots guides, scenes and references for raea make) 2026-11-23 14:05:39 -08:00
shinyobjectz cf369a45aa Manual: raea make in the CLI reference index (the pages after it move down one) 2026-11-23 14:01:27 -08:00
shinyobjectz 66a190ff46 raea make: L1 fixes (crate sizes, copied code, layers)
- z-fighting moves into its own crate, raea-core-zfight (raea-sys-contact was over 2000 lines).
- Camera clearance moves into raea scene (apps/scene), with raea-sys-stage's boxes and part names public
  (raea-sys-stage was over 2000 lines).
- The bundle's .glb import test is one assert in the sources test (raea-runtime-bundle stays at 2000).
- Copied code folded: status lists in one loop, --only through one helper, the lens's field of view from
  core/review, and helpers rewritten where they matched other crates'.
- raea-app-make and raea-app-check-make get their layer.
2026-11-23 14:01:00 -08:00
shinyobjectz 0deac6fe0a MK3-MK18: raea make's gates, kits, shots and plan (docs/make.feature), checked end to end
- Gates: the make question set in raea ask (core/ask library make.json), advice until calibrated;
  raea judge --kind scene|kit|shot with per-kind rubrics; the critic's score gates only once
  `raea judge calibrate --kind` agrees (MK6); gates as check lines in plan.org (--plan).
- Placement: z-fighting in scene lint (raea-sys-contact), feet-ray grounding, clip fixes that re-drop.
- Kits: raea make refs (style images, one sheet), gen (Tripo H3.1 + Meshy, each capped at its quote,
  resumable, progress streamed), pick-sheet (fitted by height, turned so the long side lies front to
  back, colour + clay), pick, prep (gen check fit, licence sidecar, LOD1), kit (components importing
  their .glb, lineup with a scale bar, thumbs, kit.json). Bundles import .glb/.gltf as a path.
- Shots: walkPath and gradeLook in raea/camera and raea/post_process; raea make framing and lenschart;
  raea scene stage --clearance M.
- Plan: raea make plan draws the floor plan, the blockout from the entrance and comparison.png.
- core/review: a thin slab at the bottom of a scene is a ground slab, left out of the views' framing.
- Guides: bevy/scenes (the job, gates, stopping), bevy/kits, bevy/shots; MIT credit in bevy/NOTICE.

Checked on a three-piece kit (refs, both generators, picks, prep, landed, two critic rounds; status
done and the Stop hook blocking until it was), a walkthrough (framing, lens chart, clearance caught a
path through a pillar) and a scene plan.
2026-11-23 13:30:56 -08:00
shinyobjectz cedf2607c6 MK0-MK2: raea make, the review loop the agent can't skip (AnyScene/AnyKit/AnyShot, docs/make.feature)
A scene, kit or shot is now a job made to a frozen plan and held to it in code:

- core/brief make.rs: `make` on brief.ts (scene(), kit(), shot() from raea/brief): kind, references, one
  style paragraph, dials with value/source/means per kind, objects with real size, route, reference or
  invented and crop, shots, compositions, deliverables, a round cap. doctor() names what the plan lacks.
  TS types generated as Make* (brief.gen.ts).
- apps/make: `raea make status [DIR] [--json]`: the kind's deliverables, NOTES.md's "What the skill got
  wrong", each composition's last render or check newer than it and clean (the record), a critic round
  newer than the newest deliverable with each blocking defect fixed or answered in NOTES, and once the
  judge is calibrated two passes in a row. Done also at the round cap or AnyKit's stall, delivered short.
- apps/check/make: the Stop hook blocks a turn's end while the job isn't done, three times at most on the
  same open items; a project without `make` is never held. Claude's Stop hook timeout 10 s -> 30 s.
- docs/make.feature MK0-MK20: the whole adoption plan (gate tiers through raea ask, grounding, kits, shots,
  plan drawing, raea cloud).

Tested: raea-core-brief 11, raea-app-make 8, raea-app-check-make 3. Not built here (disk at 13 GB):
apps/solid, apps/check and engine/cli's one-line wiring; L1 builds them.
2026-11-23 11:39:18 -08:00
shinyobjectz bfd69cc2eb raea fix: domain words as a match (a find over a pair table was a copy of weathering's Class::of) 2026-11-23 10:27:38 -08:00
shinyobjectz 0af5da5879 raea fix: raea-cli back under its 2000-line budget; raea-sys-fixes in the systems layer
The fix verb's dispatch and usage lines, and the next and doctor dispatches beside them, each on one
line, as check and notes already are.
2026-11-23 10:24:00 -08:00
shinyobjectz cb8b06ff7b raea fix: a problem looked up before it's guessed at
raea fix SYMPTOM... searches raea's own fixes (sdk/guides/fixes/raea.tsv: 31 problems found and fixed
in raea work, each with where and when) and a library of ~46,500 problem -> fix entries from community
skills and docs whose licences allow it (MIT, Apache-2.0, BSD, CC0, ClawHub's MIT-0), ranked by BM25
over problem and error text. systems/fixes (raea-sys-fixes) holds it; about 50 ms a lookup, offline.

The library is a read-only SQLite FTS5 file pinned in tools/release/models.tsv (models-1 asset
fixes-library-202b3fec.db) and packed by tools/release.sh into share/raea/models/fixes; its sources and
licences are in its meta notice (raea fix --notice). The manual's CLI reference gains raea fix.
2026-11-23 10:15:20 -08:00
Sett Sarverott b250367b6c docs(devlog): synchronize all seven contribution PRs and evidence
Carry the same completed helperboard across independent branches, linking upstream PRs 226 through 232, their source proposals, validation limits and verified reporting routes. This records publication, not upstream adoption.
2026-11-23 16:59:36 +01:00
Sett Sarverott 813bc24097 docs(devlog): synchronize all seven contribution PRs and evidence
Carry the same completed helperboard across independent branches, linking upstream PRs 226 through 232, their source proposals, validation limits and verified reporting routes. This records publication, not upstream adoption.
2026-11-23 16:59:31 +01:00
Sett Sarverott 2127b369d3 docs(community): propose respectful participation and moderation guidance
According to the conduct-policy suggestion in upstream PR 226, define behavior, proportionate moderation and safe reporting without inventing an inbox, confidentiality promise or enforcement deadline. Document GitHub reporting availability and its limits.
2026-11-23 16:57:07 +01:00
Sett Sarverott 5650d65c65 docs(devlog): carry the contribution helperboard into development-3
Start this independent proposal from original main, preserving completed AppImage and agent-guide PR references and the phased plan shared by the contribution series.
2026-11-23 16:57:07 +01:00
Sett Sarverott 974148442e docs(devlog): record AppImage PR 226 and its validation
Link the published contribution and record completed branch, commit and publication steps so subsequent independent PRs can refer to their source proposal.
2026-11-23 16:50:15 +01:00
Sett Sarverott 89fd926258 docs(install): introduce the Linux AppImage distribution
Point users to the engine AppImage command, checksum and detailed release recipe without hardcoding a fork-only download path.
2026-11-23 16:48:55 +01:00
Sett Sarverott dd9be82976 ci(release): attach checked Linux AppImages to GitHub releases
Package the Linux archive in source and candidate-promotion runs, attest and upload the image and checksum, retain failure logs, and preserve dry-run artifacts without publishing.
2026-11-23 16:48:55 +01:00
Sett Sarverott 784e156895 docs(release): explain AppImage builds and runtime requirements
Document local packaging, offline tool overrides, release attachment behavior and host requirements. Distinguish the engine distribution from the separately distributed desktop editor.
2026-11-23 16:48:55 +01:00
Sett Sarverott 2161fa0ba0 feat(release): package the checked Linux archive as an AppImage
Reuse the verified release archive, preserve runtime resources and the dlopen bundler, and pin linuxdeploy and the AppImage runtime by version and checksum. Run the release checks before producing the image checksum.
2026-11-23 16:48:55 +01:00
Sett Sarverott e745f91ae4 test(release): check AppImage payloads through AppRun
Extract an AppImage without FUSE and run the existing SDK, render and host checks through its launcher so packaging cannot rely on the build checkout.
2026-11-23 16:48:55 +01:00
Sett Sarverott a0f685b043 feat(appimage): describe the engine terminal launcher
Provide the desktop metadata and icon name needed by linuxdeploy. Terminal=true reflects the public CLI packaged here; the desktop editor source is absent.
2026-11-23 16:48:55 +01:00
Sett Sarverott 5c4ddb6989 feat(appimage): add a launcher for the packaged engine
Resolve the SDK, bundler and companion executables within the AppImage while preserving the caller working directory and arguments.
2026-11-23 16:48:55 +01:00
Sett Sarverott 17518a3ac1 docs(devlog): plan the AppImage and repository guidance series
Record phases and verifiable steps before publishing. Carry this helperboard in each independent PR and distinguish existing policies from proposed improvements.
2026-11-23 16:48:55 +01:00
shinyobjectz a4898b764f L2: a refused build stops at once, the plugin build goes last and needs 45 GB free, and a resumed run reuses its binaries
11-22 on 6d6e81d7: lane refused the host build under its 8 GB floor and L2 retried eight times in a second, each
reported as "lane hold ended". Once disk was freed, the plugin build started with 8 GB free and filled the disk
(120 MB left, other sessions' jobs running), and its failure stopped L2 before ui-parity, conformance and the
bench checks.

- a "lane build: refused" line is reported as REFUSED and not retried
- the plugin build and its P26 rows run after the bench checks; a failed or skipped plugin build says how many
  compositions weren't compared and holds up nothing
- the plugin build runs only with 45 GB free (it compiles every crate again with the plugins' features)
- a resumed run whose binaries are already in $OUT/bin for this commit doesn't build them again
2026-11-22 20:18:01 -08:00
shinyobjectz 6d6e81d7f4 SG17: a CSS animation in a frame rendered alone is where the render has it; L2 holds the frame-order benches
A frame alone (`render --frame N`, or `--at` that doesn't start at 0) mounts every element in one pass. The page
resolved them all at the earliest <Sequence> start, so an animation outside any Sequence began there
(sdk/react/bench/css/anim.tsx: A at x 100, not 300, at frame 15 alone, on 0.1.9 too), and on a page with no
<Sequence> every animation began on the frame itself (frame 15 alone: x 0, not 300). engine/page motion.rs now
resolves at the earliest start, an element outside any Sequence starting at the composition's 0, and moves each later
element's animations to its own start (blitz-dom BaseDocument::delay_animations). A render of every frame, and P26's
`--at` from frame 0, mount each element on its own frame and are unchanged.

P26 couldn't see it: it compares with 0.1.9's baseline. tools/l2.sh now runs the benches in bench/l2-checks.txt, which
check what is right (at-0, at-time, at-3d, compute-frames, css), each with the candidate's raea: 5/5 on this build.
css/check.sh takes RAEA_BIN as the other benches do.
2026-11-22 19:20:30 -08:00
shinyobjectz 6cd3a2f29f A comment that says "import" no longer takes the edit's real import
The rewriter skipped a match that started in a comment, but went on searching after the match's end. A header line
such as "its @import and nesting" therefore swallowed the `import { ... } from "raea"` below it, which stayed
unrewritten and threw "Can't find variable: raea" before the first frame (sdk/react/bench/css/edit.tsx on 0.1.9,
P26's one failure). It now looks again right after the comment or string the match began in.

Test: an_import_written_in_a_string_template_or_comment_is_left_as_text gains the case (it fails without the fix). sdk/react/bench/css/check.sh's CSS part passes; its
CSS-animation part (a frame rendered alone, A at x 100 not 300) fails the same on 0.1.9 and is separate.

check.sh finds the repo's target/release/raea by default (it looked under sdk/react, where it cds first) and takes a relative RAEA path.
2026-11-22 18:31:19 -08:00
shinyobjectz a616f42b7c UI conformance runs again: 0/19 to 18 pass + 1 slow on 0.1.9's page. Each world starts the app's own host (host/node.ts, or an installed app's host.mjs) beside raea-page-host and points the page's /host/* at it (RAEA_PAGE_HOST), as raea.app does; without it the page waited on "raea is starting" and every case failed at its first step. The app is built with its demo world (RAEA_FIXTURES=1, since 11-14 a plain build has none) into blitz/out-conformance. --app takes an installed raea.app's feed folder. Three cases follow 0.1.9's UI: the feed opens on i-set then i-ideas, the card menu's hide is menu-feed-item-hide, and the rail's project rows replace the feed rows (rail-project-select). 2026-11-22 18:17:12 -08:00
shinyobjectz 2aabccbda3 ST7a, ST8a, ST9a, ST10a, ST10b @done (rask listed them at the stack's land; ST9b stays open: its claims wait on the paused story models) 2026-11-22 18:09:52 -08:00
shinyobjectz 873179a540 ST10b: measured against plain prompts. Eight prompts written five ways by one writer, judged blind by two models of other families: raea/story as the editor of a draft (read back into story data, checked, fixed by beat) ties a hard editing prompt and beats plain 26 of 32 votes (p = 0.001); a script drafted straight into story data reads worst (7 of 32 over plain). docs/story.md 'Measured' has the numbers and the caveats; the write and score guides lead with draft, read back, check, fix by beat (raea-skills #117, pin to 9e535c8). bench: the extractor's mechanical slips tidied, every arm reusable, the fuzzer counts a clear RangeError as a refusal. 2026-11-22 18:03:23 -08:00
shinyobjectz 69c631b662 ST10a: raea/story under edge cases, fuzzing and an A/B against plain prompts. Fixes what they found: fromData holds a story to storySchema() (shapeErrors), so a wrong-typed field or one in the wrong place is refused with where (a beat's turns, believes as text: 270 of 1,572 corpus stories carried one, silently dropped before) instead of crashing a reader (21 crash sites fuzzed to 0); unsets takes a fact back from those in the event and from the audience, and a claim can't rest on an undone fact; two beats with one id are an error (fromData and checks); seconds can't be negative; a telling that shows nothing is a finding; asker says when a beat isn't there. bench/: edges.ts (29 cases), fuzz.ts, ab.ts + ab-report.ts. direction: file_index without the closure cargo-dupes matched (293 exact again). 2026-11-22 18:03:23 -08:00
shinyobjectz a572288148 ST8a: the skill carries craft/story (raea-skills #115, pin to 4a77a0b): the launch page, typed questions and the launch lens in score, meant in check, any length and story lines in write. The story models are paused (Shane, 11-22); docs say where things stand. 2026-11-22 18:03:23 -08:00
shinyobjectz 5879f67686 ST7b: the launch lens: trouble in the viewer's words, the name, the product doing its job, a named proof, how to start; LAUNCH_PRIORS measured on 156 pairs (length by bucket, a voice), said as notes, never as causes 2026-11-22 18:03:23 -08:00
shinyobjectz fcbdd55282 ST7a: the launch findings: 156 pairs, length the one feature that holds (104/155, p < 0.001), a voice and a weaker beat don't survive correction, nothing in the cut separates; the blind read 23/30 (p = 0.003) but the longer film alone gets 25/30. Craft doesn't show here; the size of the news does. 2026-11-22 18:03:23 -08:00
shinyobjectz 23220fa002 ST6c: story as decisions. src/questions.ts: a beat's window (story lines or a plain script) as a decision model's state and typed questions about it in the Jev / Clef format (11 checks as noul, the event shown, the turn, continues, learns, opens, tension, three lens stages), each answered exactly by the checks, systems and lenses. models/decide-rows.ts (corpus, cuts, swaps and mutants: 15,154 train windows), models/clef.ts (Clef and Clef-flash zero-shot), models/decide.py (Qwen3-0.6B frozen, LoRA, an option head, one prefill pass, cross-entropy plus Brier), models/decide-score.ts. scriptOf moves into raea/story; split into models/lib.ts. 2026-11-22 18:03:23 -08:00
shinyobjectz aa9dc07369 ST9: docs: any length (state, story lines, windowed generator and extractor, hierarchy next) and its plan rows 2026-11-22 18:03:23 -08:00
shinyobjectz db596714ab ST9b: any length. src/state.ts: stateAt (what the systems hold just before a beat: knows, open, suspense, levels, tension, unpaid setups, unsettled wants, events ahead) and windowAt (that state, the events still usable and the beats around one, as story lines). The generator now writes a beat from its window; the extractor reads a script six beats at a time with what earlier steps found (models/lib.ts chunkSteps, merge exact on all 1,571 corpus stories), chained end to end by story_models.py chain through models/known.ts. 2026-11-22 18:03:23 -08:00
shinyobjectz 16c9932b2a ST9a: story lines (src/lines.ts): a story as one keyword-led line per value, fact, agent, event and beat, reading back exactly (every valid corpus story round-trips); what people skim and models stream a line at a time. A beat's scene groups shots; fromData refuses lenses that aren't names. 2026-11-22 18:03:23 -08:00
shinyobjectz b8eee1249d ST6a: the corpus's --long slice: films told a beat a shot (20 to 40 beats over 12 to 30 events, an event across several shots), the length held as a checked rule, reasoning off so the answer fits 2026-11-22 18:03:23 -08:00
shinyobjectz 212186d907 ST6b: models/validate.ts: a held-out story (another author's, for a film of their own) through the checks, every lens, and rows in the models' format for predict, frontier, onnx and score. ST3b: a beat's meant: [checks] takes those findings about it out of what checks and lenses report (a breather the journey wants, where McKee would flag it); models/lib.ts holds what rows.ts and validate.ts share. 2026-11-22 18:03:23 -08:00
shinyobjectz caabca1d90 ST3b: field-tested on a 55-shot film. A beat's stage label pins its lens's stage before the lens reads (and any lens's inciting or climax label pins the anchors every lens reads); stages nobody labelled are held between the labelled ones; the inciting incident is the first shown, non-routine event that changes anything; the crisis is the last dilemma after it; a refusal can be a dilemma; shots that continue the beat before's event count its turn once (no false rhythm or no-turn findings); McKee doesn't call danger rising on another value easing off; resolution events aren't dead ends. ST6b: speech-only extractor rows, scored apart; ONNX int4 export and prediction under the same schema. 2026-11-22 18:03:23 -08:00
shinyobjectz 0fec51f6d9 ST8a: craft/story, stories as data in the guides: a router (which page, which lens), how to write, check, sample and score a story with raea/story, and a page per framework in our own words with its sources (McKee, the story spine, Storynomics, PAS, Campbell, Vogler, Harmon, Save the Cat, Kishotenketsu, Propp, Bernays). raea guide lists them as story/NAME; tools/skills.sh copies them into the skill's craft/story/. 2026-11-22 18:03:23 -08:00
shinyobjectz f6af08fd69 ST3b: the rest of the frameworks as lenses: Campbell (call, aid, threshold, the ordeal as the lowest point before the boon, the boon lifting above it), Vogler (twelve stages; masks checked by what they do: a herald brings the call, a shadow acts against the hero), Harmon (the price after the getting, the change), Save the Cat (positions as shares of the telling, so an ad and a feature hold the same shape), Kishotenketsu (a late turn, no conflict asked for), Propp (lack, the donor's test, struggle, the lack made good) and Bernays (proof the audience has seen by the claim, a witness besides the brand, the customer's want; invented proof is an error). Read over 619 corpus stories with none failing to read. 2026-11-22 18:03:23 -08:00
shinyobjectz dcb0cf8f49 ST5a: one helper finds or adds a check file for both runs (no copied block); the manual's brief and check pages for Scene.beat and over 2026-11-22 18:03:23 -08:00
shinyobjectz f0372580bb ST0c, ST5a: raea check reads stories. brief({ story }) is kept as written (Brief.story, opaque to Rust); a script's scene names its beat (Scene.beat, compileScript writes it); a .ts check declares over: "frames" | "story" | "both", and raea check NAME.story.ts runs the story checks once with no frames, before anything is drawn. raea/story/raea/checks gives storyCheck (the story's exact and lens findings, then every beat on screen in order with its lines spoken inside its shot) and raea/story/raea/compose gives beatTimes and <Beat>. Beats take an optional id. data.ts reads a story from JSON with every bad reference named, and gives the schemas the story models decode under (a beat's schema holds the story's own keys). models/: the corpus writer, the training rows, MLX training with constrained decoding, and the scorer.
Skills: SKILL.md section 3 names core/brief/src: checked, still true (two optional fields, nothing a reader does changes).
2026-11-22 18:03:23 -08:00
shinyobjectz 79e8ac7af9 ST3a: lenses (McKee, the Pixar spine, Storynomics, PAS), seeded sampling with a theme matrix, and compilers to Script, storylets, Ink and Yarn
ST4a, ST5b. A lens maps its stages onto beats from the shared structure (hero, brand, inciting event, crisis, climax),
checks its framework and proposes beats for missing stages; readThrough reads one telling through many. A telling may
hold choice points over beats (null drops one) and whole tellings; sample() walks seeds until a story passes the exact
checks and every lens given, samples() gives several different ones, and matrix() runs one pattern across premises.
compileScript gives raea/brief's Script, compileStorylets and dramaManager play the world in causal order toward a
target curve, toInk and toYarn write the lines. Mutation now works on resolved stories (RStory).
2026-11-22 18:03:23 -08:00
shinyobjectz 22dffb4170 ST0a: raea/story: stories as typed data in an ECS, with derived curves, exact checks and labelled mutation
A new TypeScript package, sdk/story (@raea/story, "raea/story"). A story is a world of facts and caused events, and
tellings of it as beats. story() infers each key where it's declared and checks it where it's used, so tsc refuses an
unknown agent, fact, value, cause, shown event or payoff (test/types.ts). load() puts one telling into a small ECS.
Systems derive value curves and their shapes, the audience's and agents' knowledge (suspense, open questions,
unearned surprise, belief breaks), the cause graph (uncaused events, 'and then' beats) and tension. checkStory() reads
only what's derived. mutants() breaks a valid story in nine labelled ways; every break with an expected check is
found by it (test/mutate.test.ts). Plan: docs/story.md; tasks: docs/story.feature (ST0-ST8).
2026-11-22 18:03:23 -08:00
shinyobjectz b6dd19a649 P26a: the baseline is the published 0.1.9's (212 frames, 69 compositions)
The last Blitz build and its frames were lost after 11-16, so P26 had nothing to compare against. The baseline is
re-taken from the 0.1.9 release tarball (unpacked at ~/Library/Caches/raea/p26-baseline/bin-v0.1.9, sha256 in
binary.json), in L2's v0.1.9 checkout as l2.sh renders. capture.sh lets the checks through as compare.sh does: three
scenes that clip (broll, bevy/lights, arena3d) had kept no frames. sdk/react/bench/css/edit.tsx throws on 0.1.9 before
its first frame (failures.txt). 0.1.9 held to it: 212 of 212 at SSIM >= 0.98.
2026-11-22 18:03:23 -08:00
shinyobjectz 0d853cff8e SG10: Text3D in its own file (sdk/render/src/3d/text3d.tsx, re-exported from shapes.tsx, which was 515 lines); the stage checks' two new one-line copies folded (a part's opacity is a named fn, a Label's points parse through serde) 2026-11-22 18:03:23 -08:00
shinyobjectz cab9f4bb28 SG10, SG14: 3D type behind a part and Text3D are checked; a part a Label names is the shot's subject
SG10. A Text3D is held to the type checks a RichText meets (its words and em read from its mesh's text3d shape; read={false}
on the Text3D or its mesh makes it scenery). New, cover.rs: words more than half hidden behind another part for half a
second are a type-hidden error naming the part (a 3x3 grid through the letters, each point's line to the eye against
the part's own box; words, see-through parts, a part round the camera and models never hide words). Measured with raea
scene stage: no finding added or lost on the 48 clean scenes; on 14 scenes with 3D type only the heros game's moving
26 px caption words; on the essay film 26 type-hidden errors, three of them looked at and real.

SG14. A Label writes its point (data-points), the manifest carries it on its words, and the named part nearest it is the
shot's subject: cut by the frame's edge for more than 10 frames, an error (the guessed subject stays a warning).

SG11: raea scene stage lays out no page, so a frame it reads empty is a warning there and it says the page's checks
run in raea render. SG1: the 48-box Ribbon repro (frame-pure, and 7.5% over the whole curve). SG16: floor.md refuses a
3D film rendered a shot at a time; solari.md drops its 0.1.2 cautions, none of which 0.1.9 shows. Spec: SG1, SG2, SG8,
SG9-SG14, SG16 done.
2026-11-22 17:41:50 -08:00
shinyobjectz 7e2df514de SG9: a part a scene leaves leaves Solari's traced scene, so a film rendered whole matches each frame alone
A part a frame leaves out is hidden, not despawned: a render's rows are every part any of its frames has. Solari traced
hidden parts unless <SolariLighting dynamic> (RT5's trial) was on, so every place's parts, gone and still to come, stayed
in the traced scene unseen and shaded what was on screen: Stay rendered whole drew its later shots far darker than each
rendered alone (12 frame-pure errors). raea-render-raytrace solari.rs `hidden` now runs on every traced render, on the
parts whose visibility changed or that were just traced; the skinned twin stays the trial. And a reset (a cut) empties
Solari's world cache whole, as a render's first frame finds it: it reset only the cells it picked to update that frame.

Repros (engine/render/tests/diag): kept-scenes.tsx (a black open, a yard, a room) 0.923-0.933 SSIM to the frame alone on
0.1.9, 0.996-0.997 with hidden parts untraced; kept-light.tsx solari-gone (a box unmounted at frame 15) 0.987, 0.998; every
single change of a light or the look follows the frame. tools/frame-pure-3d.sh checks each composition a repro names at
the bar it names (Solari's noise: 0.99).
2026-11-22 16:53:20 -08:00
629 changed files with 76248 additions and 1407 deletions

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
name: Bug report
description: Something raea did wrong, with a way to see it happen.
body:
- type: markdown
attributes:
value: |
For a security problem, use the Security tab, not a public issue. Leave out keys and anything private.
- type: input
id: version
attributes:
label: Version
description: What `raea --version` prints, or the app's version from its About screen.
validations:
required: true
- type: dropdown
id: where
attributes:
label: Where
options:
- raea CLI (render, play, check, media, ...)
- SDK (TypeScript, React)
- raea app (desktop)
- Install or update
- Not sure
validations:
required: true
- type: input
id: machine
attributes:
label: Machine
description: OS and version, CPU, and for a picture problem the GPU.
placeholder: macOS 27.2, Apple Silicon
validations:
required: true
- type: textarea
id: ran
attributes:
label: What you ran
description: The command, and the smallest composition that shows it (paste the TSX).
validations:
required: true
- type: textarea
id: happened
attributes:
label: What happened
description: The output as printed. For a picture or sound problem, the frame or time and a screenshot.
validations:
required: true
- type: textarea
id: expected
attributes:
label: What you expected
validations:
required: true
+8
View File
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Security problem
url: https://github.com/shinyobjectz/raea/security/advisories/new
about: Report it privately, not in an issue.
- name: Documentation
url: https://raea.io/docs
about: The CLI and SDK reference and the guides.
@@ -0,0 +1,23 @@
name: Feature request
description: Something you want to make that raea can't do yet, or makes hard.
body:
- type: textarea
id: making
attributes:
label: What you're trying to make
validations:
required: true
- type: textarea
id: today
attributes:
label: What you do today
description: The command, SDK part or app screen you use now, and where it falls short.
validations:
required: true
- type: textarea
id: want
attributes:
label: What you'd like
description: An example of how you'd use it helps most.
validations:
required: true
+11
View File
@@ -0,0 +1,11 @@
## What changes
<!-- What triggered it, what raea did before, and what it does now. Link the issue. -->
## How it was checked
<!-- The commands you ran and what they printed. For a picture or sound change: the composition, the frame, your OS and GPU. -->
## What wasn't checked
<!-- Platforms or paths you couldn't try, and anything a reviewer should look at closely. -->
+6 -1
View File
@@ -118,7 +118,12 @@ jobs:
# debug info off: with it the test binaries of the app crates filled 27 GB of a runner's disk (#90)
env:
CARGO_PROFILE_TEST_DEBUG: "0"
run: cargo test --locked -p raea-runtime-plugins -p raea-io-media -p raea-core-fonts -p raea-native -p raea-core-brief -p raea-core-k -p raea-bundle -p raea-app-check -p raea-app-check-flash -p raea-io-ffmpeg -p raea-app-workspace -p raea-app-tools -p raea-app-targets
# raea-bundle in a call of its own: Rolldown's crates turn on serde_json's arbitrary_precision, features unify
# across one cargo call, and with it on an untagged enum can't read a number (raea-core-brief's make dials failed
# here from 11-23 while passing alone). raea itself never links Rolldown: it loads it as a library at run time
run: |
cargo test --locked -p raea-runtime-plugins -p raea-io-media -p raea-core-fonts -p raea-native -p raea-core-brief -p raea-core-k -p raea-app-check -p raea-app-check-flash -p raea-io-ffmpeg -p raea-app-workspace -p raea-app-tools -p raea-app-targets
cargo test --locked -p raea-bundle
- name: Windows' and Linux's own (#169)
# what a Windows or Linux user meets that no other step ran: QuickJS's Intl (raea-runtime-jsengine's
# quickjs_formats_as_javascriptcore_does, on Linux), openh264 at --quality master (raea-io-soft), git found or
+36 -1
View File
@@ -2,6 +2,7 @@
# Apple Silicon, Linux on x86_64 and Windows on x86_64 are built from the tag on GitHub's runners, packed by
# tools/release.sh, checked by tools/release-check.sh, attested (anyone can check a download with
# `gh attestation verify raea-VERSION-macos-arm64.tar.gz -R shinyobjectz/raea`) and attached to the tag's release.
# Linux also packages and checks an AppImage from the same verified archive (tools/release-appimage.sh).
# The skills gate reads the feed app, which is private, so it runs in a maintainer's checkout first
# (tools/skills.sh check), and the tag names the commit it passed on; tools/release.sh checks the gate's inputs haven't
# changed since (tools/release/skills-passed.sh):
@@ -181,6 +182,11 @@ jobs:
v=${TAG#v}
if [ "$RUNNER_OS" = Linux ]; then xvfb-run -a -s "-screen 0 1280x1024x24" bash tools/release.sh "$v" ship HEAD
else bash tools/release.sh "$v" ship HEAD; fi
- name: Package and check the Linux AppImage
if: runner.os == 'Linux'
env:
RAEA_CHECK_DIR: ${{ runner.temp }}/appimage-check
run: xvfb-run -a -s "-screen 0 1280x1024x24" bash tools/release-appimage.sh "${TAG#v}" "dist/raea-${TAG#v}-linux-x86_64.tar.gz"
# a failed check's own files (the app check's frames, every step's log), not the unpacked release
- uses: actions/upload-artifact@v4
if: failure()
@@ -189,6 +195,8 @@ jobs:
path: |
${{ runner.temp }}/release-check/app
${{ runner.temp }}/release-check/**/*.log
${{ runner.temp }}/appimage-check/app
${{ runner.temp }}/appimage-check/**/*.log
retention-days: 7
if-no-files-found: ignore
# the stripped binaries' symbols (#88), for symbolicating a crash report from this release; never published
@@ -202,6 +210,10 @@ jobs:
if: ${{ !inputs.dry_run }}
with:
subject-path: dist/raea-*.tar.gz
- uses: actions/attest-build-provenance@v2
if: ${{ runner.os == 'Linux' && !inputs.dry_run }}
with:
subject-path: dist/raea-*.AppImage
- name: Attach to the release
if: ${{ !inputs.dry_run }}
env:
@@ -209,11 +221,16 @@ jobs:
run: |
gh release view "$TAG" >/dev/null 2>&1 || gh release create "$TAG" ${{ contains(env.TAG, '-') && '--prerelease' || '' }} --title "raea ${TAG#v}" --notes "Built by .github/workflows/release.yml; notes follow."
gh release upload "$TAG" dist/raea-*.tar.gz dist/raea-*.tar.gz.sha256 --clobber
if [ "$RUNNER_OS" = Linux ]; then
gh release upload "$TAG" dist/raea-*.AppImage dist/raea-*.AppImage.sha256 --clobber
fi
- uses: actions/upload-artifact@v4
if: ${{ inputs.dry_run }}
with:
name: dry-run-${{ runner.os }}
path: dist/raea-*.tar.gz*
path: |
dist/raea-*.tar.gz*
dist/raea-*.AppImage*
retention-days: 3
compression-level: 0
@@ -223,6 +240,9 @@ jobs:
# (tools/release/win-bundle.sh), as Microsoft documents for app-local deployment.
windows:
runs-on: ${{ (vars.RELEASE_WINDOWS_RUNNER && fromJSON(vars.RELEASE_WINDOWS_RUNNER)) || 'windows-latest' }}
# the signing identity's federated credential trusts this repository's environment "signing" and nothing else
# (Azure app raea-release-signing); with no identity set there is no environment, and the zip is unsigned
environment: ${{ vars.AZURE_SIGN_CLIENT_ID != '' && 'signing' || '' }}
timeout-minutes: 350
env:
# the compile cache, as build's
@@ -352,9 +372,24 @@ jobs:
run: bash tools/release/lavapipe.sh
- name: Where the skills gate passed
run: bash tools/release/skills-passed.sh "$TAG" "${{ inputs.skills_passed }}"
# raea's own Windows programs signed (#221), once the repository has the signing identity: the variables
# AZURE_SIGN_CLIENT_ID, AZURE_SIGN_TENANT_ID and AZURE_SIGN_SUBSCRIPTION_ID name an Azure app whose federated
# credential trusts this workflow and which holds the Artifact Signing Certificate Profile Signer role on the
# account (no secret is stored: the job's own token is exchanged). Without them the zip is unsigned, as before
- name: Sign in to Azure for signing
if: ${{ vars.AZURE_SIGN_CLIENT_ID != '' }}
uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_SIGN_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_SIGN_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SIGN_SUBSCRIPTION_ID }}
- name: jsign (signs raea's programs)
if: ${{ vars.AZURE_SIGN_CLIENT_ID != '' }}
run: choco install jsign -y --no-progress
- name: Pack and check (tools/release.sh)
env:
RAEA_CHECK_DIR: ${{ runner.temp }}/release-check
RAEA_WIN_SIGN: ${{ vars.AZURE_SIGN_CLIENT_ID != '' && '1' || '' }}
run: bash tools/release.sh "${TAG#v}" target/dist HEAD
# live play on Windows (PT20 left it unproven): bevy-ts's play cases, `play --offscreen` with an input script and
# a snapshot's pixels probed, run by the raea just built; check.sh reads the pixels with ImageMagick, which the
+175
View File
@@ -0,0 +1,175 @@
# raea built natively for Windows on ARM (#82: a Snapdragon X runs the x64 build under emulation, and asked for its
# own). GitHub's windows-11-arm runner builds what release.yml's windows job builds, for aarch64-pc-windows-msvc, runs
# `raea --version`, packs and checks raea-VERSION-windows-arm64.zip with tools/release.sh (RAEA_WIN_ARCH=arm64)
# without drawing (RAEA_CHECK_NO_GPU=1: WARP segfaults in Bevy's compute shaders here as on x64, and Mesa's lavapipe has
# no ARM64 build; a Snapdragon PC is what draws, #82), and on a v* tag attaches it to that
# release. It runs beside release.yml, not in it, so a release never waits on or fails with the ARM64 build; a
# promoted release (release-go.sh) builds it again from the tag. install.ps1 takes it on an ARM64 PC when it's there.
name: windows-arm
on:
workflow_dispatch:
inputs:
ref:
description: "commit, branch or tag to build"
required: false
version:
description: "the version the zip is named for (raea-VERSION-windows-arm64.zip)"
required: false
push:
branches: [windows-arm64]
tags: ["v*"]
permissions:
contents: write
jobs:
build:
runs-on: windows-11-arm
timeout-minutes: 350
env:
# the release builds' compile cache (tools/release/compile-cache.sh), under this OS and architecture's own prefix
RELEASE_CACHE_ENDPOINT: ${{ secrets.RELEASE_CACHE_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.RELEASE_CACHE_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.RELEASE_CACHE_SECRET }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
submodules: true
lfs: false
- name: Toolchain (rust-toolchain.toml's pin)
run: |
if ! command -v rustup >/dev/null; then
curl -fsSL --retry 3 -o "$RUNNER_TEMP/rustup-init.exe" https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe
"$RUNNER_TEMP/rustup-init.exe" -y --default-toolchain none --profile minimal
echo "$USERPROFILE/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$USERPROFILE/.cargo/bin:$PATH"
fi
rustup show active-toolchain || rustup toolchain install
rustc -vV
# ring builds its aarch64 assembly with clang (and only clang) on Windows
- name: clang (ring's assembly)
run: |
if ! command -v clang >/dev/null; then
for d in "/c/Program Files/LLVM/bin" "/c/Program Files/Microsoft Visual Studio"/*/*/VC/Tools/Llvm/ARM64/bin; do
[ -x "$d/clang.exe" ] && { echo "$d" >> "$GITHUB_PATH"; export PATH="$d:$PATH"; break; }
done
fi
command -v clang >/dev/null || { winget install -e --id LLVM.LLVM --accept-source-agreements --accept-package-agreements --silent; echo "/c/Program Files/LLVM/bin" >> "$GITHUB_PATH"; export PATH="/c/Program Files/LLVM/bin:$PATH"; }
clang --version
- name: jq that writes LF
run: |
mkdir -p "$RUNNER_TEMP/jq"
printf '#!/bin/bash\nexec "%s" -b "$@"\n' "$(command -v jq)" > "$RUNNER_TEMP/jq/jq"
chmod +x "$RUNNER_TEMP/jq/jq"
echo "$RUNNER_TEMP/jq" >> "$GITHUB_PATH"
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- name: The runtime's packages
run: for d in sdk/react/js sdk/react/tw; do (cd "$d" && bun install --frozen-lockfile); done
# (an sccache the action can't fetch for ARM64 Windows leaves the build uncached, as compile-cache.sh does)
- name: Compile cache (sccache, as release.yml's)
if: env.AWS_ACCESS_KEY_ID != ''
continue-on-error: true
uses: mozilla-actions/[email protected]
- name: Use the compile cache
if: env.AWS_ACCESS_KEY_ID != ''
run: bash tools/release/compile-cache.sh
- name: Build
run: |
feat=$(bash tools/bevy-plugins.sh features sdk/raea/bench/bevy-plugins)
t() { s=$SECONDS; "$@"; echo "::notice::Windows ARM64 $(( (SECONDS - s) / 60 )) min: ${*:7}"; }
t cargo build --profile dist --locked -p raea-cli --bin raea --no-default-features --features "$feat"
t cargo build --profile dist --locked -p raea-rune-host
t cargo build --profile dist --locked -p raea-page-host --features window
t cargo build --profile dist --locked -p raea-perceive
- name: What raea.exe is and imports
run: |
file target/dist/raea.exe || true
dumpbin=$(ls "/c/Program Files/Microsoft Visual Studio"/*/*/VC/Tools/MSVC/*/bin/Hostarm64/arm64/dumpbin.exe 2>/dev/null | head -1)
[ -n "$dumpbin" ] && "$dumpbin" -nologo -headers -dependents target/dist/raea.exe | grep -iE 'machine|\.dll$' | sed 's/^ *//' | tee -a "$GITHUB_STEP_SUMMARY" || true
target/dist/raea.exe --version | tee -a "$GITHUB_STEP_SUMMARY"
- name: Models (pinned by URL and sha256 in tools/release/models.tsv)
run: |
while IFS=$'\t' read -r path url sha; do
case $path in ''|'#'*) continue ;; esac
mkdir -p "$HOME/.local/share/raea-models/$(dirname "$path")"
curl -fsSL "$url" -o "$HOME/.local/share/raea-models/$path"
echo "$sha $HOME/.local/share/raea-models/$path" | sha256sum -c -
done < <(tr -d '\r' < tools/release/models.tsv)
# bin\ as release.yml's windows job fills it, with the ARM64 runtime, uv and DXC (RAEA_WIN_ARCH=arm64), then the
# zip packed and checked by tools/release.sh as raea-VERSION-windows-arm64.zip. The skills gate is this commit's
# (public raea has no feed app; cli.md is still checked against this build's help); nothing is drawn
- name: Pack and check (tools/release.sh)
env:
RAEA_WIN_ARCH: arm64
RAEA_CHECK_DIR: ${{ runner.temp }}/release-check
RAEA_CHECK_NO_GPU: "1"
run: |
bash tools/release/onnxruntime.sh target/dist
bash tools/release/win-bundle.sh target/dist
v="${{ inputs.version }}"
case $GITHUB_REF in
refs/tags/v*)
v=${v:-${GITHUB_REF_NAME#v}}
# where the skills gate passed, as release.yml reads it (the tag's skills-passed line)
eval "$(GITHUB_ENV= bash tools/release/skills-passed.sh "$GITHUB_REF_NAME" | grep '^RAEA_SKILLS_PASSED=')" ;;
*) RAEA_SKILLS_PASSED=$(git rev-parse HEAD) ;;
esac
export RAEA_SKILLS_PASSED
bash tools/release.sh "${v:-0.0.0-arm64}" target/dist HEAD
# on a v* tag, beside release.yml's archives (the release made here if release.yml hasn't yet)
- name: Attach to the release
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ github.token }}
run: |
pre=; case $GITHUB_REF_NAME in *-*) pre=--prerelease ;; esac
gh release view "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1 ||
gh release create "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" $pre --title "raea ${GITHUB_REF_NAME#v}" --notes "Built by .github/workflows/release.yml; notes follow." ||
gh release view "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" >/dev/null
gh release upload "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" dist/raea-*-windows-arm64.zip dist/raea-*-windows-arm64.zip.sha256 --clobber
- uses: actions/upload-artifact@v4
if: always()
with:
name: windows-arm64-zip
path: dist/raea-*-windows-arm64.zip*
retention-days: 7
compression-level: 0
if-no-files-found: ignore
- uses: actions/upload-artifact@v4
if: always()
with:
name: windows-arm64-bins
path: |
target/dist/raea.exe
target/dist/raea_bundle.dll
target/dist/raea-rune-host.exe
target/dist/raea-page-host.exe
target/dist/raea-perceive.exe
retention-days: 7
if-no-files-found: ignore
# vendor/metis-sys's header change reaches release.yml's x64 build too (windows-latest's Visual Studio): metis-sys
# alone, in a scratch crate, compiled there
metis-x64:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
sparse-checkout: vendor/metis-sys
- name: metis-sys on x64 MSVC
run: |
c="$RUNNER_TEMP/metis-x64"; mkdir -p "$c/src" && : > "$c/src/lib.rs"
printf '[package]\nname = "metis-x64"\nversion = "0.0.0"\nedition = "2021"\n[dependencies]\nmetis-sys = { path = "%s" }\n[workspace]\n' "$(cygpath -m "$GITHUB_WORKSPACE/vendor/metis-sys")" > "$c/Cargo.toml"
cl 2>&1 | head -1 || true
cd "$c" && cargo build
+55
View File
@@ -0,0 +1,55 @@
# Code of conduct
raea's issues, pull requests, reviews and other project-managed community spaces
should let people discuss and improve the work without harassment. This applies
to maintainers, contributors and people using automated or AI-assisted tools.
Participants remain responsible for the material they submit through those tools.
## Expected behavior
- Discuss the code, evidence and ideas respectfully. Technical disagreement is
welcome; personal attacks and assumptions about another person's motives are not.
- Give actionable feedback, accept corrections and respect requests to stop a
conversation or move it out of a thread.
- Make room for different experience levels, backgrounds and communication styles.
- Respect privacy. Share only logs, screenshots and other information you have
permission to publish, with credentials and personal information removed.
Harassment, discriminatory insults, threats, sexual harassment, unwanted repeated
contact, disclosure of private information, deliberate disruption and retaliation
against someone raising a concern are unacceptable.
## Reporting a concern
For content on GitHub, use the content menu's **Report content** action where it
is available. Choose **Report to repository admins** if GitHub offers it.
Maintainer reporting depends on repository settings and the reporter's access.
For abuse covered by GitHub's rules, use **Report abuse to GitHub Support** or
[GitHub's abuse-reporting route](https://docs.github.com/en/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam).
GitHub handles those reports under its own policies; it is not the project's
appeal body for every technical or moderation disagreement.
A separate private maintainer inbox for conduct reports has not been designated
in this repository. If GitHub's maintainer-reporting option is unavailable, ask
for a private contact without posting the incident, personal information or
accusations in a public issue. Maintainers can document an additional contact
after confirming who will handle it. Use [the security policy](SECURITY.md) for vulnerabilities,
not as a general conduct-report channel.
Include links, the relevant context and your preferred way to be contacted when
reporting privately. Do not retaliate, publicly investigate the reporter or
pressure someone to disclose an incident.
## Moderation
Repository maintainers may clarify expectations, ask participants to change
behavior, close or remove disruptive content, restrict interactions, or block
continued participation as appropriate to severity and repetition. A technical
disagreement or a rejected contribution alone is not misconduct.
Maintainers should consider context and available evidence, protect sensitive
information, explain decisions when doing so does not compromise privacy, and
allow a participant to provide relevant additional context privately through the
same reporting route. A maintainer involved in a concern should seek an uninvolved
reviewer where one is available. This policy does not promise a response deadline
or confidentiality beyond what the chosen reporting service and process provide.
Generated
+191 -7
View File
@@ -10263,8 +10263,6 @@ dependencies = [
[[package]]
name = "metis-sys"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "769ee6be814b21c52afcc631f07051f578487d642f3e89a45f2a086fd94fffa9"
dependencies = [
"cc",
]
@@ -13669,6 +13667,7 @@ dependencies = [
"raea-app-check-cause",
"raea-app-check-flash",
"raea-app-check-inbox",
"raea-app-check-make",
"raea-app-check-read",
"raea-app-check-text",
"raea-core-brief",
@@ -13701,6 +13700,16 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-app-check-make"
version = "0.1.0"
dependencies = [
"dunce",
"raea-core-facts",
"raea-io-home",
"serde_json",
]
[[package]]
name = "raea-app-check-read"
version = "0.1.0"
@@ -13860,6 +13869,38 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-app-lightbake"
version = "0.1.0"
dependencies = [
"image",
"libc",
"raea-io-home",
"raea-light",
"raea-runtime-bundle",
"serde_json",
"sha2 0.10.9",
]
[[package]]
name = "raea-app-make"
version = "0.1.0"
dependencies = [
"dunce",
"image",
"raea-app-judge",
"raea-core-ask",
"raea-core-brief",
"raea-core-facts",
"raea-core-review",
"raea-io-home",
"raea-runtime-cut-plan",
"raea-runtime-goal-plan",
"raea-runtime-lod-plan",
"resvg 0.48.1",
"serde_json",
]
[[package]]
name = "raea-app-media"
version = "0.1.0"
@@ -13930,10 +13971,13 @@ dependencies = [
name = "raea-app-scene"
version = "0.1.0"
dependencies = [
"bevy",
"dunce",
"raea-core-facts",
"raea-core-scene",
"raea-runtime-bundle",
"raea-runtime-export",
"raea-runtime-lod-plan",
"raea-sys-contact",
"raea-sys-light-meter",
"raea-sys-stage",
@@ -13947,6 +13991,7 @@ dependencies = [
"dunce",
"raea-app-ask",
"raea-app-judge",
"raea-app-make",
"raea-core-facts",
"raea-core-meshcheck",
"raea-core-shape",
@@ -13992,6 +14037,19 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-app-voice"
version = "0.1.0"
dependencies = [
"anyhow",
"cpal 0.15.3",
"ort",
"raea-io-trace",
"raea-sys-ml",
"raea-sys-speech",
"serde_json",
]
[[package]]
name = "raea-app-workspace"
version = "0.1.0"
@@ -14229,6 +14287,8 @@ dependencies = [
"raea-app-game",
"raea-app-judge",
"raea-app-layers",
"raea-app-lightbake",
"raea-app-make",
"raea-app-media",
"raea-app-notes",
"raea-app-play",
@@ -14237,12 +14297,14 @@ dependencies = [
"raea-app-sound",
"raea-app-targets",
"raea-app-tools",
"raea-app-voice",
"raea-app-workspace",
"raea-bevy-plugins",
"raea-core-alloc",
"raea-core-animate",
"raea-core-brief",
"raea-core-program",
"raea-denoise-bench",
"raea-io-home",
"raea-io-media",
"raea-io-npm",
@@ -14258,6 +14320,7 @@ dependencies = [
"raea-runtime-react",
"raea-runtime-sound",
"raea-runtime-wear",
"raea-sys-fixes",
"raea-sys-index",
"regex",
"serde",
@@ -14285,6 +14348,7 @@ version = "0.1.0"
dependencies = [
"serde",
"serde_json",
"sha2 0.10.9",
"ts-rs",
]
@@ -14345,6 +14409,15 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-core-modelbox"
version = "0.1.0"
dependencies = [
"bevy",
"raea-core-scene",
"serde_json",
]
[[package]]
name = "raea-core-place"
version = "0.1.0"
@@ -14408,6 +14481,23 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-core-zfight"
version = "0.1.0"
dependencies = [
"bevy",
]
[[package]]
name = "raea-denoise-bench"
version = "0.1.0"
dependencies = [
"image",
"raea-light",
"raea-runtime-bundle",
"serde_json",
]
[[package]]
name = "raea-gpu-device"
version = "0.1.0"
@@ -14717,7 +14807,9 @@ name = "raea-light"
version = "0.1.0"
dependencies = [
"image",
"raea-core-facts",
"raea-io-home",
"raea-io-trace",
"raea-runtime-bundle",
"serde_json",
]
@@ -14798,6 +14890,20 @@ dependencies = [
"wgpu",
]
[[package]]
name = "raea-page-ax"
version = "0.1.0"
dependencies = [
"accesskit 0.24.1",
"bevy",
"blitz-dom",
"raea-runtime-dom",
"raea-sys-a11y",
"raea-sys-page",
"serde_json",
"stylo",
]
[[package]]
name = "raea-page-host"
version = "0.1.0"
@@ -14815,6 +14921,7 @@ dependencies = [
"raea-io-os",
"raea-io-trace",
"raea-page",
"raea-page-ax",
"raea-page-sound",
"raea-page-stage",
"raea-page-window",
@@ -14824,11 +14931,9 @@ dependencies = [
"raea-runtime-js",
"raea-runtime-plugins",
"raea-runtime-view",
"raea-sys-a11y",
"raea-sys-fonts",
"raea-sys-page",
"serde_json",
"stylo",
"tiny_http",
]
@@ -14868,11 +14973,14 @@ name = "raea-page-window"
version = "0.1.0"
dependencies = [
"bevy",
"blitz-traits",
"block2 0.6.2",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
"raea-io-os",
"raea-runtime-js",
"raea-sys-page",
"raw-window-handle",
"serde_json",
"windows 0.62.2",
@@ -14900,6 +15008,7 @@ dependencies = [
"bytemuck",
"dunce",
"image",
"raea-core-facts",
"raea-core-program",
"raea-core-shape",
"raea-gpu-device",
@@ -14959,6 +15068,7 @@ dependencies = [
"raea-sys-engine-shaders",
"raea-sys-post",
"raea-sys-rt",
"raea-sys-viewbox",
"serde_json",
"wgpu",
]
@@ -15117,7 +15227,6 @@ version = "0.1.0"
dependencies = [
"dunce",
"junction",
"libc",
"raea-core-scene",
"raea-io-home",
"raea-io-media",
@@ -15125,10 +15234,10 @@ dependencies = [
"raea-native",
"raea-runtime-bundle-lib",
"raea-runtime-cssurls",
"raea-runtime-pid",
"raea-sys-layers",
"regex",
"serde_json",
"windows-sys 0.61.2",
]
[[package]]
@@ -15186,6 +15295,15 @@ dependencies = [
"raea-io-home",
]
[[package]]
name = "raea-runtime-cut-plan"
version = "0.1.0"
dependencies = [
"raea-core-brief",
"raea-io-soft",
"serde_json",
]
[[package]]
name = "raea-runtime-dom"
version = "0.1.0"
@@ -15261,6 +15379,7 @@ version = "0.1.0"
dependencies = [
"raea-core-facts",
"raea-core-scene",
"raea-runtime-lod-plan",
"raea-sys-contact",
"raea-sys-stage",
"serde_json",
@@ -15307,6 +15426,14 @@ dependencies = [
"wgpu",
]
[[package]]
name = "raea-runtime-goal-plan"
version = "0.1.0"
dependencies = [
"raea-core-brief",
"serde_json",
]
[[package]]
name = "raea-runtime-gpuframe"
version = "0.1.0"
@@ -15401,6 +15528,18 @@ dependencies = [
"winit",
]
[[package]]
name = "raea-runtime-lod-plan"
version = "0.1.0"
dependencies = [
"bevy",
"dunce",
"raea-core-facts",
"raea-core-scene",
"raea-sys-stage",
"serde_json",
]
[[package]]
name = "raea-runtime-look"
version = "0.1.0"
@@ -15449,6 +15588,14 @@ dependencies = [
"twox-hash",
]
[[package]]
name = "raea-runtime-pid"
version = "0.1.0"
dependencies = [
"libc",
"windows-sys 0.61.2",
]
[[package]]
name = "raea-runtime-plugins"
version = "0.1.0"
@@ -15730,6 +15877,17 @@ dependencies = [
"raea-core-animate",
]
[[package]]
name = "raea-sys-atlas"
version = "0.1.0"
dependencies = [
"parry3d",
"raea-core-meshcheck",
"raea-sys-glb",
"rayon",
"serde_json",
]
[[package]]
name = "raea-sys-bake"
version = "0.1.0"
@@ -15819,8 +15977,10 @@ dependencies = [
"bevy",
"raea-core-facts",
"raea-core-meshcheck",
"raea-core-modelbox",
"raea-core-scene",
"raea-core-shape",
"raea-core-zfight",
"raea-io-trace",
"serde_json",
]
@@ -15924,6 +16084,14 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-sys-fixes"
version = "0.1.0"
dependencies = [
"raea-io-home",
"rusqlite",
]
[[package]]
name = "raea-sys-fog"
version = "0.1.0"
@@ -16013,6 +16181,7 @@ name = "raea-sys-framepass"
version = "0.1.0"
dependencies = [
"bevy",
"raea-sys-compose",
"raea-sys-frame",
"raea-sys-material",
"raea-sys-sampler",
@@ -16170,6 +16339,20 @@ dependencies = [
"serde_json",
]
[[package]]
name = "raea-sys-lightbake"
version = "0.1.0"
dependencies = [
"bytemuck",
"parry3d",
"pollster 0.4.0",
"raea-gpu-device",
"raea-sys-atlas",
"rayon",
"serde_json",
"wgpu",
]
[[package]]
name = "raea-sys-lod"
version = "0.1.0"
@@ -16590,6 +16773,7 @@ name = "raea-sys-viewbox"
version = "0.1.0"
dependencies = [
"bevy",
"raea-sys-compose",
"raea-sys-frame",
]
@@ -16629,7 +16813,7 @@ version = "0.1.0"
dependencies = [
"image",
"parry3d",
"raea-core-meshcheck",
"raea-sys-atlas",
"raea-sys-damage",
"raea-sys-exposure",
"raea-sys-glb",
+19
View File
@@ -6,6 +6,8 @@ members = [
"core/animate",
"core/ask",
"core/brief",
"core/zfight",
"core/modelbox",
"core/facts",
"core/ease",
"core/fonts",
@@ -45,6 +47,7 @@ members = [
"engine/native",
"io/npm",
"engine/page",
"engine/page/ax",
"engine/page/host",
"engine/rune",
"engine/rune/page",
@@ -91,6 +94,7 @@ members = [
"systems/vision",
"systems/columns",
"systems/index",
"systems/fixes",
"systems/fingerprint",
"systems/fingerprint-use",
"systems/fingerprint-things",
@@ -165,12 +169,14 @@ members = [
"tools/perceive",
"engine/render",
"engine/render/raytrace",
"engine/render/denoise/bench",
"engine/seedling",
"engine/web",
"runtime/react",
"runtime/track",
"runtime/pagestore",
"runtime/cssurls",
"runtime/pid",
"bench/bridge",
"bench/bevy-parity",
"bench/lightbench",
@@ -187,6 +193,9 @@ members = [
"runtime/canvas",
"runtime/export",
"runtime/endchecks",
"runtime/lod-plan",
"runtime/cut-plan",
"runtime/goal-plan",
"runtime/live",
"runtime/page",
"runtime/appscreen",
@@ -196,11 +205,15 @@ members = [
"runtime/scene2d",
"runtime/shared",
"apps/ask",
"apps/lightbake",
"systems/lightbake",
"systems/atlas",
"apps/double",
"apps/check",
"apps/check/cause",
"apps/check/flash",
"apps/check/inbox",
"apps/check/make",
"apps/check/read",
"apps/check/text",
"apps/direction",
@@ -215,8 +228,10 @@ members = [
"apps/engines",
"apps/interchange",
"apps/judge",
"apps/make",
"apps/solid",
"apps/scene",
"apps/voice",
"apps/media",
"apps/targets",
"apps/game",
@@ -331,6 +346,10 @@ split-debuginfo = "packed"
[patch.crates-io]
# the MP4 muxer, vendored
muxide = { path = "vendor/muxide" }
# metis-sys 0.3.2 (bevy_pbr's meshlets) with GKlib's own stdint.h and inttypes.h stand-ins used only before Visual
# Studio 2013: Visual Studio 18's stdint.h types int_fast16_t differently, and every C file failed (raea#82; the change
# is marked "raea:" in vendor/GKlib/gk_arch.h). Its test graphs, manual and programs are left out
metis-sys = { path = "vendor/metis-sys" }
# usvg 0.48.1 spacing a chunk's last letter as Chrome does (changes marked "raea:", docs/layout-reads.feature LR10)
usvg = { path = "vendor/usvg" }
# bevy_seedling 0.8.0 without its cpal 0.18 paths, ported to Bevy 0.20 (changes marked "raea:")
+11 -4
View File
@@ -32,10 +32,10 @@
---
> **0.1.6** (17 November 2026) is the latest release: the engine and the desktop app on macOS (Apple Silicon), Linux
> (x86_64) and, newest and least tested, Windows 10 and 11 (x86_64). raea is young and moves fast, with a release most
> days since 0.1.1 on 11 November: expect rough edges, and tell us what you hit in an
> [issue](https://github.com/shinyobjectz/raea/issues), or from your agent with `raea bug`.
> raea releases experimentally and often, so the newest release is always on
> [Releases](https://github.com/shinyobjectz/raea/releases). The app is unstable for now, especially on Linux and
> Windows: expect rough edges, and tell us what you hit in an [issue](https://github.com/shinyobjectz/raea/issues), or
> from your agent with `raea bug`.
## The app
@@ -80,6 +80,13 @@ The installer puts the `raea` command under `~/.raea`, links it into `~/.local/b
work. Run it again to update. The engine is free and needs no account. Tarballs and checksums are on the
[releases page](https://github.com/shinyobjectz/raea/releases).
Linux release builds also package an x86_64 AppImage of the engine command and
attach it and its SHA256 checksum beside the release archives.
Make it executable with `chmod +x raea-*.AppImage`, then run
`./raea-VERSION-linux-x86_64.AppImage --help` or pass the usual `raea` arguments.
See [the AppImage release recipe](tools/release/README.md#linux-appimage) for build
instructions, runtime requirements and running without FUSE.
On Windows 10 or 11, in PowerShell:
```powershell
+2 -23
View File
@@ -6,7 +6,6 @@
//! question, so a verdict reads in its terms and `raea ask try` can reword it.
use std::io::Write as _;
use std::io::{Read as _, Seek as _, SeekFrom};
use std::path::{Path, PathBuf};
use raea_core_ask::{Question, Reading};
@@ -50,28 +49,8 @@ fn hex(digest: &[u8]) -> String {
digest.iter().take(16).map(|b| format!("{b:02x}")).collect()
}
/// What a file is, cheaply: its size and a hash of its first and last MB. A render is known again by its copy in the
/// feed, and a later render to the same path isn't taken for it.
pub fn ident(path: &Path) -> Option<String> {
const MB: u64 = 1 << 20;
let mut f = std::fs::File::open(path).ok()?;
let len = f.metadata().ok()?.len();
let mut h = Sha256::new();
let mut part = vec![0u8; len.min(MB) as usize];
f.read_exact(&mut part).ok()?;
h.update(&part);
if len > 2 * MB {
f.seek(SeekFrom::Start(len - MB)).ok()?;
f.read_exact(&mut part).ok()?;
h.update(&part);
}
Some(format!("{len}-{}", hex(&h.finalize())))
}
/// The size an ident names, to pass over files that can't be it without reading them.
pub fn ident_len(ident: &str) -> Option<u64> {
ident.split_once('-')?.0.parse().ok()
}
/// What a file is, cheaply, and the size an ident names (raea-core-ask, so `raea make status` reads the same).
pub use raea_core_ask::ident::{ident, ident_len};
/// One of the record's files written whole, through a temporary file, so a reader never sees half of it.
pub fn write_whole(file: &str, text: &str) -> Result<(), String> {
+1 -1
View File
@@ -18,7 +18,7 @@ use crate::prepare::{self, Piece};
use crate::runner::{self, Entry, Event, Opts};
use crate::{calibrate, record};
pub const USAGE: &str = "raea ask FILE [QUESTION...] [--choose A,B,C] [--grade] [--rate N] [--flag ANSWERS] [--set NAME] [--std ID] [--from S] [--to S] [--at S] [--with FILE2] [--brief brief.ts|none] [--words words.json] [--voice yes|no] [--state TEXT] [--dry] [--json] [--gate [any]] [--jobs N] | ask --batch FILE [--dry] [--json] [--gate [any]] [--jobs N] | ask list [SET] [--json] | ask verdict ANSWER WORD [--eye NAME] | ask calibrate [ID] [--json] | ask try WORDS --like ID [--dry] [--json] [--jobs N] (questions about a piece's picture and sound, answered by clef-omni and paid from your raea plan's pool when the app is signed in, else RAEA_AGENT_KEY's, else your own Cloudflare keys: your own words, or the standard sets (rubric, av, defects, platform, decide); every question about one clip goes in one call, --batch (a JSON list or JSON lines, - for stdin) asks many clips in parallel; --dry says what would be sent and spends nothing; answers are advice until a question is calibrated: verdict labels an answer, calibrate holds each question to your verdicts, notes and approvals, try asks new words of its labelled clips)";
pub const USAGE: &str = "raea ask FILE [QUESTION...] [--choose A,B,C] [--grade] [--rate N] [--flag ANSWERS] [--set NAME] [--std ID] [--from S] [--to S] [--at S] [--with FILE2] [--brief brief.ts|none] [--words words.json] [--voice yes|no] [--state TEXT] [--dry] [--json] [--gate [any]] [--jobs N] | ask --batch FILE [--dry] [--json] [--gate [any]] [--jobs N] | ask list [SET] [--json] | ask verdict ANSWER WORD [--eye NAME] | ask calibrate [ID] [--json] | ask try WORDS --like ID [--dry] [--json] [--jobs N] (questions about a piece's picture and sound, answered by clef-omni and paid from your raea plan's pool when the app is signed in, else RAEA_AGENT_KEY's, else your own Cloudflare keys: your own words, or the standard sets (rubric, av, defects, platform, decide, make); every question about one clip goes in one call, --batch (a JSON list or JSON lines, - for stdin) asks many clips in parallel; --dry says what would be sent and spends nothing; answers are advice until a question is calibrated: verdict labels an answer, calibrate holds each question to your verdicts, notes and approvals, try asks new words of its labelled clips)";
const VALUED: [&str; 17] = ["--choose", "--rate", "--flag", "--set", "--std", "--from", "--to", "--at", "--with", "--brief", "--words", "--voice", "--state", "--jobs", "--batch", "--eye", "--like"];
const BARE: [&str; 4] = ["--grade", "--dry", "--json", "--gate"];
+2
View File
@@ -28,4 +28,6 @@ raea-app-check-text = { path = "text" }
raea-app-check-flash = { path = "flash" }
# what the person sent from the raea app, handed to the agent (split out to keep this crate small)
raea-app-check-inbox = { path = "inbox" }
# the Stop gate for a `make` job (docs/make.feature MK2; split out to keep this crate small)
raea-app-check-make = { path = "make" }
serde_json = "1"
+16
View File
@@ -0,0 +1,16 @@
[package]
name = "raea-app-check-make"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "`raea hook`'s Stop gate for a `make` job (docs/make.feature MK2): an agent can't end its turn until `raea make status` says the job is done"
[dependencies]
serde_json = "1"
# brief.ts found as raea finds a project (plain paths on Windows)
dunce = "1"
# the project's folder (record.rs `up`)
raea-core-facts = { path = "../../../core/facts" }
# the guard's counts, under the home folder
raea-io-home = { path = "../../../io/home" }
+119
View File
@@ -0,0 +1,119 @@
//! raea-app-check-make: the Stop hook's half of `raea make` (docs/make.feature MK2): an agent working in a project whose brief.ts has a
//! `make` job can't end its turn until `raea make status` says the job is done. Cheap when there's no job: the brief's
//! words are read, and only a brief with `make:` is evaluated (by `raea make status`, a child process, so this crate
//! doesn't carry the judge). A session blocked three times with the same open items goes through: it's going in
//! circles, and the person is better told than the agent looped (PL7's keeper stops the same way).
use std::hash::{DefaultHasher, Hash, Hasher};
use std::path::{Path, PathBuf};
use serde_json::Value;
/// How many times the same open items may block one session before the stop goes through.
pub const SAME_BLOCKS: u32 = 3;
/// The brief.ts with a job, at or above `cwd` inside its raea project.
pub fn brief_with_job(cwd: &Path) -> Option<PathBuf> {
let project = raea_core_facts::record::up(cwd, ".raea/project");
for d in dunce::canonicalize(cwd).ok()?.ancestors() {
let p = d.join("brief.ts");
if p.is_file() {
return std::fs::read_to_string(&p).is_ok_and(|t| t.contains("make:") || t.contains("make :")).then_some(p);
}
if project.as_deref() == Some(d) {
return None;
}
}
None
}
fn hash(parts: &[&str]) -> u64 {
let mut h = DefaultHasher::new();
parts.hash(&mut h);
h.finish()
}
/// Counts this session's blocks on the same open items in `guard` ("<items hash> <count>"); true while it may block.
pub fn may_block(guard: &Path, items: &str) -> bool {
let key = hash(&[items]).to_string();
let count = std::fs::read_to_string(guard).ok().and_then(|t| {
let (k, n) = t.trim().split_once(' ')?;
(k == key).then(|| n.parse::<u32>().ok()).flatten()
});
let next = count.unwrap_or(0) + 1;
let _ = std::fs::create_dir_all(guard.parent().unwrap_or(Path::new(".")));
let _ = std::fs::write(guard, format!("{key} {next}"));
next <= SAME_BLOCKS
}
/// What the agent is told when its turn may not end, or None to let it end: no job here, the job is done, the job
/// didn't load (never block on raea's own failure), or the same items have blocked it three times already.
/// Each turn's status also brings the job's task in plan.org up to date (`--plan`, docs/make.feature MK3).
pub fn stop(v: &Value) -> Option<String> {
let cwd = PathBuf::from(v["cwd"].as_str()?);
let brief = brief_with_job(&cwd)?;
let exe = std::env::current_exe().ok()?;
let out = std::process::Command::new(exe).args(["make", "status"]).arg(brief.parent()?).args(["--json", "--plan"]).env("RAEA_RECORD", "off").output().ok()?;
let s: Value = serde_json::from_slice(&out.stdout).ok()?;
let home = raea_io_home::user_home()?;
let session = v["session_id"].as_str().unwrap_or("");
let guard = home.join(".raea/hooks/make").join(format!("{:x}", hash(&[session, &brief.display().to_string()])));
if s["done"] == true {
let _ = std::fs::remove_file(&guard);
return None;
}
let items = open_items(&s);
if !may_block(&guard, &items) {
return None;
}
Some(format!(
"Not done ({} job, {}): {items}. Keep going: `raea make status` lists what's open; a defect you judge wrong is answered in NOTES.md by its name.",
s["kind"].as_str().unwrap_or("make"),
brief.display()
))
}
/// The open items, one line each: what's missing, then each gate that isn't clear.
pub fn open_items(s: &Value) -> String {
let mut items: Vec<String> = s["missing"].as_array().into_iter().flatten().filter_map(|m| m.as_str().map(String::from)).collect();
items.extend(s["gates"].as_array().into_iter().flatten().filter(|g| g["clear"] != true).map(|g| format!("{}{}: {}", g["gate"].as_str().unwrap_or(""), g["of"].as_str().map(|o| format!(" {o}")).unwrap_or_default(), g["says"].as_str().unwrap_or(""))));
items.join("; ")
}
#[cfg(test)]
mod tests {
use super::*;
use serde_json::json;
fn tmp(name: &str) -> PathBuf {
let d = std::env::temp_dir().join(format!("raea-make-gate-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&d);
std::fs::create_dir_all(d.join("compositions")).unwrap();
d
}
#[test]
fn only_a_brief_with_a_job_is_held() {
let d = tmp("job");
std::fs::write(d.join("brief.ts"), "export default brief({ title: \"x\" })").unwrap();
assert_eq!(brief_with_job(&d.join("compositions")), None, "a brief without make is never held");
std::fs::write(d.join("brief.ts"), "export default brief({ title: \"x\", make: kit({ objects: [] }) })").unwrap();
assert_eq!(brief_with_job(&d.join("compositions")).map(|p| p.file_name().unwrap().to_owned()), Some("brief.ts".into()));
}
#[test]
fn the_same_open_items_block_three_times_then_go_through() {
let g = tmp("guard").join("g");
assert!(may_block(&g, "a") && may_block(&g, "a") && may_block(&g, "a"));
assert!(!may_block(&g, "a"), "a fourth stop on the same items goes through");
assert!(may_block(&g, "a; b"), "new items start the count again");
}
#[test]
fn open_items_list_what_is_missing_then_the_gates_that_are_not_clear() {
let s = json!({"missing": ["out/kit/lineup.png"], "gates": [
{"gate": "checks", "of": "scene.tsx", "clear": false, "says": "never rendered"},
{"gate": "critic", "clear": true, "says": "ok"}]});
assert_eq!(open_items(&s), "out/kit/lineup.png; checks scene.tsx: never rendered");
}
}
+3 -1
View File
@@ -150,7 +150,9 @@ pub fn hook(args: &[String]) -> R<String> {
// to end goes on to take it up
let sent = if matches!(event, "PostToolUse" | "AfterTool" | "Stop") { crate::inbox::told(agent, &v) } else { None };
if event == "Stop" {
return Ok(sent.map(|s| json!({"decision": "block", "reason": s}).to_string()).unwrap_or_default());
// what the person sent, and a `make` job that isn't done (docs/make.feature MK2): either keeps the turn going
let reasons: Vec<String> = [sent, raea_app_check_make::stop(&v)].into_iter().flatten().collect();
return Ok(if reasons.is_empty() { String::new() } else { json!({"decision": "block", "reason": reasons.join("\n\n")}).to_string() });
}
let after_tool = matches!(event, "PostToolUse" | "AfterTool");
if let Some(cmd) = shell_command(&v).filter(|_| !after_tool) {
+3 -3
View File
@@ -199,19 +199,19 @@ pub(crate) fn blotching_from(video: &str, probe: &Probe, scores: &[Option<f64>],
}
}
/// Caption contrast: at each text's middle frame, the pixels behind it against its colour, at least 3:1. The pixels
/// Caption contrast: at each text's middle frame, the pixels behind it where it is on that frame against its colour, at
/// least 3:1. The pixels
/// behind are the half of the box least like the text.
pub(crate) fn contrast(video: &str, runs: &[Run], w: f64, h: f64, probe: &Probe, issues: &mut Vec<Issue>, passed: &mut Vec<String>) {
let (sx, sy) = (probe.w / w, probe.h / h);
let mut low = 0;
let mut measured = 0;
for r in runs.iter().filter(|r| r.size >= 20.0).take(80) {
let [x, y, bw, bh] = r.box_;
let (t, [x, y, bw, bh]) = r.middle(probe.fps);
let crop = [(x * sx).max(0.0) as u32, (y * sy).max(0.0) as u32, (bw * sx) as u32, (bh * sy) as u32];
if crop[0] + crop[2] > probe.w as u32 || crop[1] + crop[3] > probe.h as u32 {
continue;
}
let t = (r.from + r.to) / 2.0;
// the same measure `raea world` joins to a text from its render (raea-sys-measure, DR2)
let ratio = if crate::read::native() { crate::read::contrast(video, t, crop, &r.color) } else { raea_sys_measure::contrast(std::path::Path::new(video), t, crop, &r.color) };
let Some(ratio) = ratio else { continue };
+12
View File
@@ -420,3 +420,15 @@ fn things_found_are_findings_and_an_unknown_rule_is_not() {
let _ = std::fs::remove_file(&p);
assert_eq!(passed.len(), 1, "nothing found is a pass");
}
/// #236: a text that moves is read where it is on its middle frame, not where it ends.
#[test]
fn a_moving_text_is_read_where_it_is() {
let ink = |f: usize| [56.7 + 4.0 * f as f64, 1000.0, 26.7, 40.0];
let run = Run { text: "E".into(), from: 0.0, to: 8.0, box_: [996.0, 1000.0, 60.0, 40.0], boxes: (0..240).map(ink).collect(), color: String::new(), size: 40.0 };
let (t, b) = run.middle(30.0);
assert_eq!(t, 4.0);
assert!((b[0] - 520.0).abs() < 1e-9 && b[1..] == [1000.0, 60.0, 40.0], "{b:?}");
let still = Run { boxes: vec![ink(0); 240], box_: [40.0, 1000.0, 60.0, 40.0], ..run };
assert_eq!(still.middle(30.0), (4.0, [40.0, 1000.0, 60.0, 40.0]));
}
+12
View File
@@ -47,6 +47,18 @@ pub struct Run {
pub size: f64,
}
impl Run {
/// The frame midway through those that show its whole text, and its box on that frame: `box_` (the last frame's)
/// moved back by how far its letters travel from there to where they end. A text that moves was read at its last
/// place on its middle frame (#236).
pub fn middle(&self, fps: f64) -> (f64, [f64; 4]) {
let n = self.boxes.len();
let (Some(last), true) = (self.boxes.last(), fps > 0.0 && n > 1) else { return ((self.from + self.to) / 2.0, self.box_) };
let (at, [x, y, w, h]) = (self.boxes[n / 2], self.box_);
(self.to - (n - n / 2) as f64 / fps, [x + at[0] - last[0], y + at[1] - last[1], w, h])
}
}
/// The brand kit the cut was styled from (brand/ at or above the manifest's or the video's folder, as render finds
/// brand.css): a kit `raea brand` read from a thin fetch that nobody corrected by hand is a placeholder, P1; a brand.css
/// with no brand.json beside it wasn't read from the brand at all, P2
+97 -4
View File
@@ -240,6 +240,16 @@ fn check_one(tsx: &Path, id: Option<String>, rules: &[Rule], args: &[String], wh
None => hows.iter().filter(|(_, h)| matches!(h, How::Named(n) if n.render && n.name != "text-read")).for_each(|(r, _)| needs(&mut waits, r)),
}
}
// traced light held still (raea light steady): with the floor, a composition lit by Solari carries what its newest
// hold of each frame found, kept in the project's record; with none yet, it waits for one
if floor && traced(tsx) {
let held = light_held(tsx, id.as_deref());
if held.is_empty() {
let c = id.as_ref().map(|i| format!(" --composition {i}")).unwrap_or_default();
waits.push(("light-steady".into(), format!("a held frame of its traced light (raea light steady {}{c} --frame N -o DIR)", tsx.display())));
}
found.extend(held.into_iter().filter(|f| f.level != Level::Note));
}
// the project's own checks, in one run
let mut files: Vec<PathBuf> = Vec::new();
let mut plan = Vec::new();
@@ -249,10 +259,7 @@ fn check_one(tsx: &Path, id: Option<String>, rules: &[Rule], args: &[String], wh
needs(&mut waits, r);
continue;
}
let k = files.iter().position(|f| *f == m.file).unwrap_or_else(|| {
files.push(m.file.clone());
files.len() - 1
});
let k = file_index(&mut files, &m.file);
let mut on = m.frames.pick(&worlds);
if let (true, Some(j)) = (m.render, &join_on_of(&worlds)) {
on.retain(|f| j.contains(f));
@@ -272,6 +279,55 @@ fn check_one(tsx: &Path, id: Option<String>, rules: &[Rule], args: &[String], wh
Ok(Checked { file: tsx.to_path_buf(), id, found: finding::ranked(found), waits, render, shots, fps })
}
/// Whether a composition is lit by traced light: its file, or a .tsx beside it or a folder down, names SolariLighting.
fn traced(tsx: &Path) -> bool {
let mut files = vec![tsx.to_path_buf()];
let tsxs = |d: &Path| -> Vec<PathBuf> { std::fs::read_dir(d).into_iter().flatten().flatten().map(|e| e.path()).collect() };
if let Some(dir) = tsx.parent() {
files.extend(tsxs(dir).into_iter().flat_map(|p| if p.is_dir() { tsxs(&p) } else { vec![p] }).filter(|p| p.extension().is_some_and(|x| x == "tsx")));
}
for f in files {
if let Ok(text) = std::fs::read_to_string(&f) {
if text.contains("SolariLighting") {
return true;
}
}
}
false
}
/// The findings of the newest hold of each frame of a composition (`raea light steady`), from its project's record.
fn light_held(tsx: &Path, id: Option<&str>) -> Vec<Finding> {
let Some(project) = dunce::canonicalize(tsx).ok().and_then(|t| record::up(t.parent()?, ".raea/project")) else { return Vec::new() };
let of = record::rel(&project, tsx);
let mut newest: std::collections::BTreeMap<i64, Vec<Finding>> = std::collections::BTreeMap::new();
for e in record::read(&project) {
if e.by != "raea light steady" || e.of != of {
continue;
}
let mut mine = Vec::new();
for f in e.findings {
let mut about = f.about.iter().map(|a| a.name.as_str());
if id.is_none_or(|id| about.any(|n| n == id)) {
mine.push(f);
}
}
if let Some(frame) = mine.first().and_then(|f| f.frames) {
newest.insert(frame[0], mine);
}
}
newest.into_values().flatten().collect()
}
/// Where `f` is in `files`, added at the end when it isn't yet: the one run's checks, each file once.
fn file_index(files: &mut Vec<PathBuf>, f: &Path) -> usize {
if let Some(at) = files.iter().position(|x| x == f) {
return at;
}
files.push(f.to_path_buf());
files.len() - 1
}
/// Whether `r` runs on the composition `tsx` (`id` where its file registers several) of `project`: a rule a note's ask
/// scopes to one (`of`) runs there alone.
fn applies(r: &Rule, project: &Path, tsx: &Path, id: Option<&str>) -> bool {
@@ -325,6 +381,9 @@ pub fn check(args: &[String], host: &Host) -> R<(String, bool)> {
return Err(format!("--only {only}: no rule here has that id"));
}
}
if target.is_file() && target.to_string_lossy().ends_with(".story.ts") {
return check_story(&target, &rules, unread, args, host);
}
let mut all = Vec::new();
for (tsx, id) in compositions(&target, args)? {
let mine: Vec<Rule> = rules.iter().filter(|r| applies(r, &project, &tsx, id.as_deref())).cloned().collect();
@@ -363,6 +422,40 @@ pub fn check(args: &[String], host: &Host) -> R<(String, bool)> {
Ok((out.join("\n"), bad))
}
/// `raea check NAME.story.ts` (docs/story.feature ST5a): a story checked before anything is drawn. Every rule whose .ts
/// check reads stories (`over: "story"` or `"both"`) runs once with no frames, so only its `after` speaks; the check
/// imports the story it holds (raea/story's storyCheck), and the file named says which project and that no composition
/// is wanted.
fn check_story(file: &Path, rules: &[Rule], unread: Vec<Finding>, args: &[String], host: &Host) -> R<(String, bool)> {
let (mut found, mut files, mut plan) = (Vec::new(), Vec::<PathBuf>::new(), Vec::new());
for r in rules {
let Some(f) = r.file() else { continue };
match ts::meta(f, &host.ts) {
Ok(m) if m.story => {
let k = file_index(&mut files, &m.file);
plan.push(ts::Planned { check: k, frames: Vec::new(), values: r.values.clone(), level: r.level, by: r.by.clone() });
}
Ok(_) => {}
Err(e) => found.push(Finding::new(&r.id, Level::Error, e, &r.by)),
}
}
if plan.is_empty() {
found.push(Finding::new("story", Level::Note, "no check here reads a story: a .ts check over \"story\" or \"both\" (raea/story's storyCheck is one) named in taste.ts", "raea check"));
}
found.extend(ts::run(&files, &plan, &[], &host.ts)?);
let found = finding::ranked(found);
let bad = unread.iter().chain(&found).any(|f| f.level == Level::Error);
if args.iter().any(|a| a == "--json") {
return Ok((serde_json::to_string_pretty(&json!({"unread": unread, "story": file, "findings": found})).unwrap_or_default(), bad));
}
let mut out: Vec<String> = unread.iter().map(Finding::line).collect();
out.push(format!("raea check {} (a story: no frames)", file.display()));
out.extend(found.iter().map(Finding::line));
let every: Vec<Finding> = unread.into_iter().chain(found).collect();
out.push(format!("raea check: {}", finding::count(&every)));
Ok((out.join("\n"), bad))
}
/// `raea check ...`: its exit code (1 on an error found, 2 when it couldn't check).
pub fn cli(args: &[String], host: &Host) -> i32 {
raea_app_check::said(check(args, host), "raea check: ")
+1 -1
View File
@@ -28,7 +28,7 @@ const LEVELS: f32 = 96.0;
const SHARE: f64 = 1e-4;
const LEAST: usize = 64;
/// The flags of the render the stills repeat (each takes a value, then the bare ones): what it draws and at what size
const KEEP: [&str; 9] = ["--composition", "--w", "--h", "--fps", "--frames", "--words", "--perception", "--input", "--stage"];
const KEEP: [&str; 12] = ["--composition", "--w", "--h", "--fps", "--frames", "--words", "--perception", "--input", "--stage", "--props", "--scale", "--hold"];
const KEEP_BARE: [&str; 2] = ["--clay", "--lite"];
const BY: &str = "raea render (frame-pure)";
+8 -1
View File
@@ -27,6 +27,8 @@ pub struct Meta {
pub render: bool,
pub level: Level,
pub frames: Frames,
/// it runs on a story with no frames (`over: "story" | "both"`): what `raea check NAME.story.ts` runs
pub story: bool,
}
/// The declaration of the check `file`'s default export is.
@@ -46,7 +48,12 @@ pub fn meta(file: &Path, host: &Host) -> R<Meta> {
Some(o) => return Err(format!("{name}: a check's level is error, warn or note, not \"{o}\"")),
};
let frames = Frames::of(&v["frames"]).map_err(|e| format!("{name}: {e}"))?;
Ok(Meta { file: file.to_path_buf(), id, text: s("text").unwrap_or_default(), render, level, frames })
let story = match s("over").as_deref() {
None | Some("frames") => false,
Some("story" | "both") => true,
Some(o) => return Err(format!("{name}: a check is over \"frames\", \"story\" or \"both\", not \"{o}\"")),
};
Ok(Meta { file: file.to_path_buf(), id, text: s("text").unwrap_or_default(), render, level, frames, story })
}
/// One planned run: the check (its index in `files`), its frames, and its rule's values, level (None: the check's
+7 -1
View File
@@ -99,6 +99,11 @@ fn shape(expr: &str, out: &Path, meshes: &mut BTreeMap<String, String>) -> R<Val
Some(f) => f.clone(),
None => {
let f = format!("meshes/mesh{k}.glb");
// export() empties meshes/ before the parts are walked, so the folder is made here, where a file first needs it
let dir = out.join("meshes");
if let Err(e) = std::fs::create_dir_all(&dir) {
return Err(format!("{}: {e}", dir.display()));
}
// and as an .obj, which Godot imports as a mesh of its own (a .glb comes in as a scene)
let (glb, obj) = (out.join(&f).to_string_lossy().into_owned(), out.join(f.replace(".glb", ".obj")).to_string_lossy().into_owned());
match expr.strip_prefix("buffer:") {
@@ -312,7 +317,8 @@ mod tests {
#[test]
fn primitives_cross_as_themselves_and_the_rest_as_a_mesh() {
let out = std::env::temp_dir().join(format!("raea-interchange-shape-{}", std::process::id()));
std::fs::create_dir_all(out.join("meshes")).unwrap();
// no meshes/ beforehand, as export() leaves it: shape() makes it (it once failed every solid in a fresh export)
std::fs::create_dir_all(&out).unwrap();
let mut m = BTreeMap::new();
assert_eq!(shape("box(1, 2, 3)", &out, &mut m).unwrap(), json!({ "type": "cuboid", "size": [1.0, 2.0, 3.0] }));
assert_eq!(shape("sphere(0.5)", &out, &mut m).unwrap()["type"], "sphere");
+57 -12
View File
@@ -9,13 +9,58 @@ use std::path::Path;
use serde_json::{Map, Value, json};
use crate::rubric::SCORES;
use crate::rubric::{BAR, scores};
pub const BY: [&str; 2] = ["kimi", "claude"];
/// The judge prompt: the sheets by name, the brief's words, and the JSON to answer.
pub fn prompt(dir: &Path, brief: &Value, target: Option<&Path>) -> String {
let words = ["look", "logline", "notDoing"].iter().filter_map(|k| brief.get(*k).map(|v| format!("{k}: {}", v.as_str().map(str::to_string).unwrap_or_else(|| v.to_string())))).collect::<Vec<_>>().join("; ");
/// The judge prompt: the sheets by name, the brief's words, and the JSON to answer. A `raea make` job's kind asks its
/// own categories and the bar (docs/make.feature MK5); none asks the rubric raea judge has always asked.
pub fn prompt(kind: Option<&str>, dir: &Path, brief: &Value, target: Option<&Path>) -> String {
match kind {
None => prompt_default(dir, brief, target),
Some(k) => prompt_kind(k, dir, brief, target),
}
}
fn brief_words(brief: &Value) -> String {
["look", "logline", "notDoing"].iter().filter_map(|k| brief.get(*k).map(|v| format!("{k}: {}", v.as_str().map(str::to_string).unwrap_or_else(|| v.to_string())))).collect::<Vec<_>>().join("; ")
}
fn prompt_kind(kind: &str, dir: &Path, brief: &Value, target: Option<&Path>) -> String {
let words = brief_words(brief);
let target = target.map(|t| format!(" The reference, what it must read as, is {}.", t.display())).unwrap_or_default();
let d = dir.display();
let sheets = match kind {
"shot" => format!("This round's sheet: {d}/framing.png. Each row is one shot: its first, middle and last frame, left to right, each stamped with its name and time. Open it."),
_ => format!(
"This round's sheets: {d}/colour.png and {d}/clay.png, each six tiles, left to right, top to bottom: hero, front, right, top, iso, low (0.3 m off the floor). Clay is every surface light grey and matte. Open both{}.",
if kind == "kit" { "; the scene is the kit's lineup, its props side by side with a scale bar" } else { "" }
),
};
let blind = if kind == "shot" {
String::new()
} else {
format!("PART 1, BLIND: open {d}/hero-colour.png first, one frame. In one sentence: what is this, what era? List five objects you can name. Is it a photograph or a render, and which three tells decided it?\n\n")
};
let cats: String = scores(Some(kind)).iter().map(|(k, on, ask)| format!("- {k}{}: {}\n", if *on == "clay" { " (judged on CLAY)" } else { "" }, ask.split_once(": ").map(|(_, r)| r).unwrap_or(ask))).collect();
let json_scores = scores(Some(kind)).iter().map(|(k, _, _)| format!("\"{k}\": 0")).collect::<Vec<_>>().join(", ");
format!(
"You review a {kind} from images only, as the person who will use it would. You have never seen how it was built and you never will. \
Judge what is in the pixels; do not guess at intentions. Only look at images; change no file.\n\n{blind}\
PART 2, SCORED. The brief: \"{words}\".{target} {sheets}\n\n\
Score each 0-10 (5 = a believable draft; 7 = a production base an artist would accept; 9 = indistinguishable from real). Halves are allowed.\n{cats}\n\
{BAR} Each defect field is one short sentence; \"blocking\" means someone using this would notice it where it will be seen. \
Name exactly what gives it away (not \"the phone looks fake\" but \"the handset is fused to the cradle with no gap\").\n\n\
End your answer with only this JSON, nothing after it:\n\
{{\"blind\": {{\"place\": \"\", \"objects\": [], \"photo\": \"yes|no\", \"tells\": []}}, \
\"scores\": {{{json_scores}}}, \
\"defects\": [{{\"tile\": \"\", \"where\": \"\", \"wrong\": \"\", \"real\": \"\", \"fix\": \"\", \"level\": \"blocking|detail\"}}], \
\"show_as_is\": \"\"}}"
)
}
fn prompt_default(dir: &Path, brief: &Value, target: Option<&Path>) -> String {
let words = brief_words(brief);
let target = target.map(|t| format!(" The target picture, what it must read as, is {}.", t.display())).unwrap_or_default();
format!(
"You review a 3D scene from images only, as the person who will use it would. You have never seen how it was built and you never will. \
@@ -57,13 +102,13 @@ pub fn last_verdict(text: &str) -> Option<Value> {
None
}
/// The verdict read into the judge's own shape: scores (0-10, the seven categories), defects (present, level, named
/// The verdict read into the judge's own shape: scores (0-10, the kind's categories), defects (present, level, named
/// by what is wrong), the blind read's photo (1 a photo, 0 a render) and the agent's own words.
pub fn read(v: &Value) -> (Map<String, Value>, Vec<Value>, Value) {
let mut scores = Map::new();
for (k, _, _) in SCORES {
pub fn read(kind: Option<&str>, v: &Value) -> (Map<String, Value>, Vec<Value>, Value) {
let mut out = Map::new();
for &(k, _, _) in scores(kind) {
if let Some(x) = v["scores"][k].as_f64().filter(|x| (0.0..=10.0).contains(x)) {
scores.insert(k.into(), json!(x));
out.insert(k.into(), json!(x));
}
}
let defects = v["defects"].as_array().into_iter().flatten().filter(|d| d["wrong"].as_str().is_some_and(|w| !w.trim().is_empty())).map(|d| {
@@ -77,15 +122,15 @@ pub fn read(v: &Value) -> (Map<String, Value>, Vec<Value>, Value) {
Some(p) if p.starts_with('n') => json!(0.0),
_ => Value::Null,
};
(scores, defects, photo)
(out, defects, photo)
}
/// One fresh judging session by `by` over DIR's sheets: its verdict JSON. Its steps stream (kimi's stream-json), each
/// said on stderr as it comes, so a watcher sees it working through a judgement that can take minutes.
pub fn ask(by: &str, dir: &Path, brief: &Value, target: Option<&Path>) -> Result<Value, String> {
pub fn ask(kind: Option<&str>, by: &str, dir: &Path, brief: &Value, target: Option<&Path>) -> Result<Value, String> {
use std::io::BufRead as _;
let dir = dunce::canonicalize(&dir).map_err(|e| format!("judge: {}: {e}", dir.display()))?;
let p = prompt(&dir, brief, target);
let p = prompt(kind, &dir, brief, target);
let mut cmd = match by {
"kimi" => {
let mut c = std::process::Command::new("kimi");
+40 -22
View File
@@ -10,15 +10,26 @@ use std::path::PathBuf;
use serde_json::{Map, Value, json};
use crate::rubric::{SCORES, pass};
use crate::rubric::{pass_for, scores};
fn home() -> PathBuf {
raea_io_home::env_path("RAEA_JUDGE_DIR", ".raea/judge")
}
/// The calibration in force, if one was made.
pub fn calibration() -> Option<Value> {
serde_json::from_str(&std::fs::read_to_string(home().join("calibration.json")).ok()?).ok()
/// A kind's calibration file: calibration.json for the default rubric, calibration.KIND.json for a `raea make` kind's
/// (docs/make.feature MK6), each fitted on that kind's rounds alone.
fn file_of(kind: Option<&str>) -> PathBuf {
home().join(kind.map_or_else(|| "calibration.json".to_string(), |k| format!("calibration.{k}.json")))
}
/// The calibration in force for a kind, if one was made.
pub fn calibration(kind: Option<&str>) -> Option<Value> {
serde_json::from_str(&std::fs::read_to_string(file_of(kind)).ok()?).ok()
}
/// A row's or a verdict's kind: none for the default rubric.
fn kind_in(v: &Value) -> Option<&str> {
v["kind"].as_str()
}
/// The judge's scores mapped through the calibration's lines, kept to 0-10.
@@ -33,15 +44,17 @@ pub fn apply(c: &Value, scores: &mut Map<String, Value>) {
pub fn record(args: &[String]) -> Result<String, String> {
let dir = args.get(2).map(PathBuf::from).ok_or("raea judge eye DIR CATEGORY=SCORE... [--pass yes|no]")?;
let verdict: Value = serde_json::from_str(&std::fs::read_to_string(dir.join("judge.json")).map_err(|_| format!("judge eye: no {}: judge the round first (raea judge {})", dir.join("judge.json").display(), dir.display()))?).map_err(|e| e.to_string())?;
let kind = kind_in(&verdict);
let cats = scores(kind);
// an agent's reading as the eye (`--by kimi`): a fresh session's scores, and its pass by the same rule in code
if let Some(by) = args.iter().position(|a| a == "--by").and_then(|i| args.get(i + 1)) {
let v = crate::agent::ask(by, &dir, &json!({}), None)?;
let (eye, defects, _) = crate::agent::read(&v);
if eye.len() < SCORES.len() {
return Err(format!("judge eye: {by} scored only {} of {} categories", eye.len(), SCORES.len()));
let v = crate::agent::ask(kind, by, &dir, &json!({}), None)?;
let (eye, defects, _) = crate::agent::read(kind, &v);
if eye.len() < cats.len() {
return Err(format!("judge eye: {by} scored only {} of {} categories", eye.len(), cats.len()));
}
let eye_pass = pass(&eye, &defects).0;
let row = json!({"dir": verdict["dir"], "by": by, "judge": verdict["raw"], "judge_pass": verdict["pass"], "defects": verdict["defects"], "eye": eye, "eye_pass": eye_pass, "eye_defects": defects});
let eye_pass = pass_for(kind, &eye, &defects).0;
let row = json!({"dir": verdict["dir"], "kind": kind, "by": by, "judge": verdict["raw"], "judge_pass": verdict["pass"], "defects": verdict["defects"], "eye": eye, "eye_pass": eye_pass, "eye_defects": defects});
append(&row)?;
let shown: Vec<String> = eye.iter().map(|(k, v)| format!("{k} {v}")).collect();
return Ok(format!("APPLIED {by}'s eye on {} recorded ({}): {}; raea judge calibrate fits clef to it", dir.display(), if eye_pass { "a pass" } else { "not yet" }, shown.join(", ")));
@@ -56,8 +69,8 @@ pub fn record(args: &[String]) -> Result<String, String> {
continue;
}
let (k, v) = args[i].split_once('=').ok_or_else(|| format!("judge eye: {:?} isn't CATEGORY=SCORE", args[i]))?;
if !SCORES.iter().any(|s| s.0 == k) {
return Err(format!("judge eye: no category {k}: {}", SCORES.iter().map(|s| s.0).collect::<Vec<_>>().join(", ")));
if !cats.iter().any(|s| s.0 == k) {
return Err(format!("judge eye: no category {k}: {}", cats.iter().map(|s| s.0).collect::<Vec<_>>().join(", ")));
}
let x: f64 = v.parse().ok().filter(|x| (0.0..=10.0).contains(x)).ok_or_else(|| format!("judge eye: {k} is a score 0-10, got {v:?}"))?;
eye.insert(k.into(), json!(x));
@@ -67,8 +80,8 @@ pub fn record(args: &[String]) -> Result<String, String> {
return Err("judge eye: give your scores, e.g. composition=6 form=5 assembly=7 materials=4 light=6 detail=5 world=6".into());
}
// his pass: as he says it, else the same rule on his scores with the judge's defects
let eye_pass = said_pass.unwrap_or_else(|| pass(&eye, verdict["defects"].as_array().map(Vec::as_slice).unwrap_or(&[])).0);
let row = json!({"dir": verdict["dir"], "by": "shane", "judge": verdict["raw"], "judge_pass": verdict["pass"], "defects": verdict["defects"], "eye": eye, "eye_pass": eye_pass});
let eye_pass = said_pass.unwrap_or_else(|| pass_for(kind, &eye, verdict["defects"].as_array().map(Vec::as_slice).unwrap_or(&[])).0);
let row = json!({"dir": verdict["dir"], "kind": kind, "by": "shane", "judge": verdict["raw"], "judge_pass": verdict["pass"], "defects": verdict["defects"], "eye": eye, "eye_pass": eye_pass});
append(&row)?;
Ok(format!("APPLIED your eye on {} recorded ({}): raea judge calibrate fits the judge to it", dir.display(), if eye_pass { "a pass" } else { "not yet" }))
}
@@ -94,10 +107,11 @@ fn fit(xy: &[(f64, f64)]) -> (f64, f64) {
(a, my - a * mx)
}
/// The fit over rows of {judge, eye, defects, eye_pass}: per-category maps and errors, and the pass agreement.
pub fn fit_rows(rows: &[Value]) -> Value {
/// The fit over a kind's rows of {judge, eye, defects, eye_pass} (none: the default rubric's): per-category maps and
/// errors, and the pass agreement.
pub fn fit_rows_for(kind: Option<&str>, rows: &[Value]) -> Value {
let mut maps = Map::new();
for (k, _, _) in SCORES {
for &(k, _, _) in scores(kind) {
let xy: Vec<(f64, f64)> = rows.iter().filter_map(|r| Some((r["judge"][k].as_f64()?, r["eye"][k].as_f64()?))).collect();
if xy.len() < 2 {
continue;
@@ -112,7 +126,7 @@ pub fn fit_rows(rows: &[Value]) -> Value {
for r in rows {
let mut s = r["judge"].as_object().cloned().unwrap_or_default();
apply(&cal, &mut s);
let p = pass(&s, r["defects"].as_array().map(Vec::as_slice).unwrap_or(&[])).0;
let p = pass_for(kind, &s, r["defects"].as_array().map(Vec::as_slice).unwrap_or(&[])).0;
if Value::Bool(p) == r["eye_pass"] {
agree += 1;
}
@@ -126,16 +140,20 @@ pub fn fit_rows(rows: &[Value]) -> Value {
}
pub fn calibrate(args: &[String]) -> Result<String, String> {
let rows: Vec<Value> = std::fs::read_to_string(home().join("eye.jsonl")).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).collect();
let kind = crate::kind_of(args)?;
let kind = kind.as_deref();
let rows: Vec<Value> = std::fs::read_to_string(home().join("eye.jsonl")).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).filter(|r: &Value| kind_in(r) == kind).collect();
if rows.is_empty() {
return Err("judge calibrate: no rounds with your eye yet (raea judge eye DIR form=5 ...)".into());
let k = kind.map(|k| format!(" of a {k}")).unwrap_or_default();
return Err(format!("judge calibrate: no rounds{k} with your eye yet (raea judge eye DIR form=5 ...)"));
}
let mut cal = fit_rows(&rows);
let mut cal = fit_rows_for(kind, &rows);
cal["kind"] = json!(kind);
let mut eyes: Vec<String> = rows.iter().map(whose).map(str::to_string).collect();
eyes.sort();
eyes.dedup();
cal["eyes"] = json!(eyes);
std::fs::write(home().join("calibration.json"), serde_json::to_string_pretty(&cal).unwrap_or_default()).map_err(|e| e.to_string())?;
std::fs::write(file_of(kind), serde_json::to_string_pretty(&cal).unwrap_or_default()).map_err(|e| e.to_string())?;
if args.iter().any(|a| a == "--json") {
return Ok(serde_json::to_string_pretty(&cal).unwrap_or_default());
}
+51 -22
View File
@@ -2,15 +2,24 @@
//! fresh every round and blind to the code, with the pass decided here in code. Until it is calibrated against Shane's
//! eye (`raea judge eye`, `raea judge calibrate`, eye.rs) its verdict is advice: `gating` says which.
//!
//! raea judge DIR [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry]
//! raea judge DIR [--kind scene|kit|shot] [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry]
//! raea judge eye DIR composition=6 form=5 ... [--pass yes|no] (or --by kimi: an agent's reading as the eye)
//! raea judge calibrate [--json]
//! raea judge calibrate [--kind scene|kit|shot] [--json]
//!
//! `--kind` asks a `raea make` job's own rubric (docs/make.feature MK5): a scene's, a kit's or a shot list's categories,
//! with the bar AnyKit's critic is given; each kind is calibrated on its own rounds (MK6).
//!
//! DIR/judge.json is the verdict; DIR's parent's judge.log.jsonl holds every round's, so "done" (two passes in a row,
//! each a fresh call) and the stall (the mean up by less than a point over two rounds) are read from it.
mod agent;
mod eye;
/// Whether the judge's score gates a `raea make` kind's jobs: its calibration (`raea judge calibrate --kind KIND`)
/// agreed with the person's eye (docs/make.feature MK6).
pub fn kind_gates(kind: &str) -> bool {
eye::calibration(Some(kind)).is_some_and(|c| c["gate"] == true)
}
pub mod rubric;
pub use agent::BY;
@@ -21,7 +30,16 @@ use raea_core_facts::{Finding, Level, finding};
use raea_runtime_bundle::flag;
use serde_json::{Value, json};
pub const USAGE: &str = "raea judge DIR [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry] | judge eye DIR (CATEGORY=SCORE ... [--pass yes|no] | --by kimi|claude) | judge calibrate [--json] (a --review folder's sheets judged blind: clef-omni on the frozen rubric, or a fresh kimi or claude session on the judge prompt; the pass decided in code; clef advises until calibrated against your eye or an agent's)";
pub const USAGE: &str = "raea judge DIR [--kind scene|kit|shot] [--by clef|kimi|claude] [--brief brief.ts] [--target T.png] [--json] [--dry] | judge eye DIR (CATEGORY=SCORE ... [--pass yes|no] | --by kimi|claude) | judge calibrate [--kind scene|kit|shot] [--json] (a --review folder's sheets judged blind: clef-omni on the frozen rubric, or a fresh kimi or claude session on the judge prompt; --kind asks a raea make job's own rubric (a shot list's framing.png); the pass decided in code; clef advises until calibrated against your eye or an agent's, each kind on its own)";
/// `--kind`, checked: one of the rubric's kinds, or none (the default rubric).
pub fn kind_of(args: &[String]) -> Result<Option<String>, String> {
match flag(args, "--kind") {
None => Ok(None),
Some(k) if rubric::KINDS.contains(&k.as_str()) => Ok(Some(k)),
Some(k) => Err(format!("judge: --kind {k}: the kinds are {}", rubric::KINDS.join(", "))),
}
}
/// One call through raea's one clef client (raea-io-clef: the person's plan first, then their own Cloudflare keys),
/// with the rubric's questions as written and each sheet as a JPEG still.
@@ -40,7 +58,7 @@ fn brief_of(path: Option<&str>) -> Result<Value, String> {
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let out = std::process::Command::new(exe).args(["spec", p, "--as", "brief"]).output().map_err(|e| e.to_string())?;
let text = String::from_utf8_lossy(&out.stdout);
let start = text.find('{').ok_or_else(|| format!("judge: {p} didn't read as a brief: {}", String::from_utf8_lossy(&out.stderr).lines().last().unwrap_or("")))?;
let start = text.find('{').ok_or_else(|| format!("judge: {p} didn't read as a brief: {}", why_refused(&out)))?;
let v: Value = serde_json::from_str(&text[start..]).map_err(|e| format!("judge: {p}: {e}"))?;
Ok(v.get("brief").cloned().unwrap_or(v))
}
@@ -76,10 +94,14 @@ pub fn cli(args: &[String]) -> Result<String, String> {
None => return Err(USAGE.into()),
}
let dir = PathBuf::from(&args[1]);
let (colour, clay, hero) = (dir.join("colour.png"), dir.join("clay.png"), dir.join("hero-colour.png"));
for f in [&colour, &clay] {
let kind = kind_of(args)?;
let kind = kind.as_deref();
let hero = dir.join("hero-colour.png");
let sheets: Vec<(&str, PathBuf)> = rubric::sheets(kind).iter().map(|(s, f)| (*s, dir.join(f))).collect();
for (_, f) in &sheets {
if !f.is_file() {
return Err(format!("judge: no {} (make the sheets with raea render EDIT.tsx --review {})", f.display(), dir.display()));
let make = if kind == Some("shot") { format!("raea make framing --out {}", dir.display()) } else { format!("raea render EDIT.tsx --review {}", dir.display()) };
return Err(format!("judge: no {} (make the sheets with {make})", f.display()));
}
}
let brief = brief_of(flag(args, "--brief").as_deref())?;
@@ -88,21 +110,21 @@ pub fn cli(args: &[String]) -> Result<String, String> {
let by = flag(args, "--by").unwrap_or_else(|| "clef".into());
if by != "clef" {
if dry {
return Ok(agent::prompt(&dir, &brief, target.as_deref()));
return Ok(agent::prompt(kind, &dir, &brief, target.as_deref()));
}
let v = agent::ask(&by, &dir, &brief, target.as_deref())?;
let (scores, defects, photo) = agent::read(&v);
return finish(args, &dir, scores.clone(), scores, defects, photo, 0.0, &by, false, json!({"blind": v["blind"], "show_as_is": v["show_as_is"]}));
let v = agent::ask(kind, &by, &dir, &brief, target.as_deref())?;
let (scores, defects, photo) = agent::read(kind, &v);
return finish(args, kind, &dir, scores.clone(), scores, defects, photo, 0.0, &by, false, json!({"blind": v["blind"], "show_as_is": v["show_as_is"]}));
}
let mut calls = Vec::new();
for (sheet, img) in [("colour", &colour), ("clay", &clay)] {
for (sheet, img) in &sheets {
let mut images = vec![img.clone()];
if sheet == "colour" {
if *sheet == "colour" {
images.extend(target.clone());
}
calls.push((sheet, rubric::state(sheet, &brief), rubric::questions(sheet), images));
calls.push((*sheet, rubric::state_for(kind, sheet, &brief), rubric::questions_for(kind, sheet), images));
}
if hero.is_file() {
if hero.is_file() && kind != Some("shot") {
calls.push(("blind", "One frame. Judge only what is in the pixels.".into(), rubric::blind(), vec![hero.clone()]));
}
if dry {
@@ -120,7 +142,7 @@ pub fn cli(args: &[String]) -> Result<String, String> {
photo = json!(answers["photo"]["noul"].as_f64().map(|p| (p * 1000.0).round() / 1000.0));
continue;
}
let (s, d) = rubric::read(&answers);
let (s, d) = rubric::read_for(kind, &answers);
scores.extend(s);
defects.extend(d.into_iter().map(|mut x| {
x["sheet"] = json!(sheet);
@@ -128,12 +150,12 @@ pub fn cli(args: &[String]) -> Result<String, String> {
}));
}
let raw = scores.clone();
let cal = eye::calibration();
let cal = eye::calibration(kind);
if let Some(c) = &cal {
eye::apply(c, &mut scores);
}
let gating = cal.as_ref().is_some_and(|c| c["gate"] == true);
finish(args, &dir, scores, raw, defects, photo, cost, "clef", !gating, json!({"calibrated": cal.is_some()}))
finish(args, kind, &dir, scores, raw, defects, photo, cost, "clef", !gating, json!({"calibrated": cal.is_some()}))
}
/// The defects a judge saw, as raea's one Finding (docs/direction.feature DR3): a blocking one an error and a detail a
@@ -164,13 +186,13 @@ pub fn findings(defects: &[Value], by: &str, advice: bool) -> Vec<Finding> {
/// The verdict decided in code, written (DIR/judge.json for clef, DIR/judge.BY.json for an agent; every round in the
/// log), and said. `advice` marks a judge not yet trusted to gate (clef before calibration).
#[allow(clippy::too_many_arguments)]
fn finish(args: &[String], dir: &Path, scores: serde_json::Map<String, Value>, raw: serde_json::Map<String, Value>, defects: Vec<Value>, photo: Value, cost: f64, by: &str, advice: bool, extra: Value) -> Result<String, String> {
let (pass, why) = rubric::pass(&scores, &defects);
fn finish(args: &[String], kind: Option<&str>, dir: &Path, scores: serde_json::Map<String, Value>, raw: serde_json::Map<String, Value>, defects: Vec<Value>, photo: Value, cost: f64, by: &str, advice: bool, extra: Value) -> Result<String, String> {
let (pass, why) = rubric::pass_for(kind, &scores, &defects);
let vals: Vec<f64> = scores.values().filter_map(Value::as_f64).collect();
let mean = if vals.is_empty() { 0.0 } else { (vals.iter().sum::<f64>() / vals.len() as f64 * 100.0).round() / 100.0 };
let model = if by == "clef" { "@cf/cloudflare/clef-omni".to_string() } else { format!("{by} cli") };
let found = findings(&defects, by, advice);
let mut verdict = json!({"dir": dir.display().to_string(), "by": by, "scores": scores, "raw": raw, "mean": mean, "defects": defects, "photo": photo,
let mut verdict = json!({"dir": dir.display().to_string(), "kind": kind, "by": by, "scores": scores, "raw": raw, "mean": mean, "defects": defects, "photo": photo,
"pass": pass, "why": why, "gating": !advice, "cost": cost, "model": model, "findings": found, "count": finding::count(&found)});
if let (Some(v), Some(e)) = (verdict.as_object_mut(), extra.as_object()) {
v.extend(e.clone());
@@ -181,7 +203,7 @@ fn finish(args: &[String], dir: &Path, scores: serde_json::Map<String, Value>, r
verdict["progress"] = progress(&rounds);
let file = if by == "clef" { "judge.json".to_string() } else { format!("judge.{by}.json") };
std::fs::write(dir.join(file), serde_json::to_string_pretty(&verdict).unwrap_or_default()).map_err(|e| e.to_string())?;
let lines: Vec<String> = rounds.iter().map(|r| serde_json::to_string(&json!({"dir": r["dir"], "pass": r["pass"], "mean": r["mean"], "defects": r["defects"]})).unwrap_or_default()).collect();
let lines: Vec<String> = rounds.iter().map(|r| serde_json::to_string(&json!({"dir": r["dir"], "kind": r["kind"], "by": r["by"], "pass": r["pass"], "mean": r["mean"], "defects": r["defects"]})).unwrap_or_default()).collect();
std::fs::write(&log, lines.join("\n") + "\n").map_err(|e| e.to_string())?;
if cost > 0.0 {
let _ = std::process::Command::new("antsy").args(["spend", &format!("{cost:.6}"), "raea judge (clef-omni)"]).output();
@@ -204,3 +226,10 @@ fn finish(args: &[String], dir: &Path, scores: serde_json::Map<String, Value>, r
#[cfg(test)]
mod tests;
/// Why `raea spec` refused a brief, in its own words: its refusal is the last line it printed, on whichever stream
/// (a REFUSED line goes to stdout, a thrown module's error to stderr). Reading stderr alone left the reason empty.
pub fn why_refused(out: &std::process::Output) -> String {
let last = |b: &[u8]| String::from_utf8_lossy(b).lines().rev().find(|l| !l.trim().is_empty()).map(|l| l.trim().trim_start_matches("REFUSED").trim().to_string());
last(&out.stderr).or_else(|| last(&out.stdout)).unwrap_or_else(|| "raea spec printed nothing".into())
}
+107 -11
View File
@@ -18,8 +18,11 @@ fn levels(what: &str) -> Value {
])
}
/// (id, the sheet it is judged on, the question)
pub const SCORES: [(&str, &str, &str); 7] = [
/// A category: (id, the sheet it is judged on, the question).
pub type Score = (&'static str, &'static str, &'static str);
/// (id, the sheet it is judged on, the question): the rubric raea judge has always asked, when no `--kind` is given.
pub const SCORES: [Score; 7] = [
("composition", "colour", "Composition: the camera, framing and layout; every major object's position and scale against the brief's space."),
("form", "clay", "Form, judged on these grey clay tiles: silhouettes read at a glance, parts have real thickness, nothing blobby or melted, no primitive standing in for a thing, repeated things vary."),
("assembly", "clay", "Assembly, judged on these grey clay tiles: nothing floats, sinks, pokes through or rests on the wrong thing; joints touch; the low tile shows the feet resting."),
@@ -29,6 +32,64 @@ pub const SCORES: [(&str, &str, &str); 7] = [
("world", "colour", "World: one coherent real place matching the brief; nothing off-era, no real brands, nothing invented beyond the brief."),
];
/// The job kinds with a rubric of their own (docs/make.feature MK5): `raea judge DIR --kind scene|kit|shot`.
pub const KINDS: [&str; 3] = ["scene", "kit", "shot"];
/// A scene made to a plan (AnyScene's categories): judged on the six-camera sheets.
pub const SCENE: [Score; 8] = [
("layout", "clay", "Layout, judged on these grey clay tiles: every major object where the plan and the reference put it, at its real size, with room to move between them."),
("props", "clay", "Props, judged on these grey clay tiles: each object's form reads at a glance, with real thickness; nothing blobby or a primitive standing in; nothing floats, sinks or pokes through."),
("signage", "colour", "Screens and signage: every screen, sign, label and printed thing reads, belongs to one invented world, and shows no real brand."),
("materials", "colour", "Materials: every surface reads as its real material with wear where use puts it; nothing a flat default colour; glass is glass."),
("light", "colour", "Light: motivated by the place's own sources; exposure and contrast believable; emissive things glow without lighting the room wrong."),
("atmosphere", "colour", "Atmosphere: the air, haze, dust or weather the place would have, matching the plan's dials; not empty and clinical."),
("plausibility", "colour", "Plausibility: one coherent real place a person could stand in; nothing off-era, nothing that couldn't be there."),
("composition", "colour", "Composition: the hero camera's framing and the place's layout read as the reference's."),
];
/// A kit (AnyKit's categories): judged on the six-camera sheets of its lineup.
pub const KIT: [Score; 8] = [
("cohesion", "colour", "Cohesion: every prop belongs to one set: the same era, palette, materials, wear and maker; none is an outlier."),
("fidelity", "colour", "Reference fidelity: the props read as the style references' world, at normal viewing distance."),
("brief", "colour", "Brief: the kit holds the props the brief asked for, each recognisable as what it is meant to be."),
("mesh", "clay", "Mesh, judged on these grey clay tiles: crisp silhouettes, real thickness, no melted or blobby forms, no holes or spikes."),
("texture", "colour", "Texture: real materials with wear where use puts it; no smeared, stretched or flat default surfaces; glass is glass."),
("assembly", "clay", "Assembly, judged on these grey clay tiles: every part of each prop is connected to its body; handles, legs and lids attached."),
("scale", "clay", "Scale, judged on these grey clay tiles: each prop's size is right beside the others and the scale bar."),
("labels", "colour", "Labels: printed text and logos read, belong to the one invented maker, and no real brand shows."),
];
/// A shot list (AnyShot's categories): judged on the framing sheet, each shot's first, middle and last frame.
pub const SHOT: [Score; 6] = [
("framing", "colour", "Framing: each shot frames its subject as its description says, at every one of its frames."),
("move", "colour", "Move: the camera's change from first to last frame is the move the description names, at a believable size."),
("focus", "colour", "Focus: what the description says is sharp is sharp; nothing important lost in blur."),
("clearance", "colour", "Clearance: the camera is never inside or against a wall or object; nothing blocks the frame."),
("continuity", "colour", "Continuity: the shots read as one place at one time: the same light, weather and dressing across them."),
("grade", "colour", "Grade: the look matches the plan's look dial, with believable exposure and colour."),
];
/// The categories asked for a kind: its own rubric, or the default one.
pub fn scores(kind: Option<&str>) -> &'static [Score] {
match kind {
Some("scene") => &SCENE,
Some("kit") => &KIT,
Some("shot") => &SHOT,
_ => &SCORES,
}
}
/// What a kind's critic is told the bar is (AnyKit's own words, docs/make.feature MK5).
pub const BAR: &str = "The bar is a production base an artist then refines, judged at normal viewing distance: take no points off for choices that differ from the reference, don't nitpick, and name at most five fixes, most damaging first.";
/// The sheets a kind is judged on: the six-camera colour and clay sheets, or a shot list's framing sheet alone.
pub fn sheets(kind: Option<&str>) -> &'static [(&'static str, &'static str)] {
match kind {
Some("shot") => &[("colour", "framing.png")],
_ => &[("colour", "colour.png"), ("clay", "clay.png")],
}
}
/// (id, sheet, the yes/no question, blocking when yes)
pub const DEFECTS: [(&str, &str, &str, bool); 12] = [
("floating", "clay", "Does any object float above the surface it should rest on, with a visible gap under it?", true),
@@ -47,26 +108,50 @@ pub const DEFECTS: [(&str, &str, &str, bool); 12] = [
/// The paragraph clef reads before the sheet: what it is looking at, and the brief's words (no code, no log, no line).
pub fn state(sheet: &str, brief: &Value) -> String {
state_for(None, sheet, brief)
}
/// state, for a kind: a kind's critic also reads what it is looking at in its terms, and the bar.
pub fn state_for(kind: Option<&str>, sheet: &str, brief: &Value) -> String {
let what = match kind {
Some("shot") => "The image is a framing sheet: each row is one shot, its first, middle and last frame left to right, each stamped with the shot's name and time. Judge each shot as its description would.".to_string(),
_ => {
let tiles = "six tiles of one 3D scene, left to right and top to bottom: hero (the shot's own camera), front, right, top, iso, and low (a camera 0.3 m off the floor)";
let what = if sheet == "clay" { format!("The image is {tiles}, rendered in clay: every surface plain grey, so only form and assembly show.") } else { format!("The image is {tiles}, in full colour.") };
let target = if sheet == "colour" { " A second image, when given, is the target picture the scene should read as." } else { "" };
let kit = if kind == Some("kit") { " The scene is a kit: a lineup of props made to belong together, with a scale bar." } else { "" };
format!("{what}{target}{kit}")
}
};
// the default rubric's words stay as calibrated: "the scene"
let it = match kind { None | Some("scene") => "the scene", Some("kit") => "the kit", _ => "the shots" };
let mut s = format!("{what} Judge only what is in the pixels, as the person who will use {it} would.");
let look = brief["look"].as_str().unwrap_or("");
let logline = brief["logline"].as_str().unwrap_or("");
let not: Vec<&str> = brief["notDoing"].as_array().into_iter().flatten().filter_map(Value::as_str).collect();
let tiles = "six tiles of one 3D scene, left to right and top to bottom: hero (the shot's own camera), front, right, top, iso, and low (a camera 0.3 m off the floor)";
let what = if sheet == "clay" { format!("The image is {tiles}, rendered in clay: every surface plain grey, so only form and assembly show.") } else { format!("The image is {tiles}, in full colour.") };
let target = if sheet == "colour" { " A second image, when given, is the target picture the scene should read as." } else { "" };
let mut s = format!("{what}{target} Judge only what is in the pixels, as the person who will use the scene would.");
if !logline.is_empty() || !look.is_empty() {
s.push_str(&format!(" The brief: {logline} Look: {look}."));
}
if !not.is_empty() {
s.push_str(&format!(" The scene must not contain: {}.", not.join("; ")));
let it = it[..1].to_uppercase() + &it[1..];
s.push_str(&format!(" {it} must not contain: {}.", not.join("; ")));
}
if kind.is_some() {
s.push(' ');
s.push_str(BAR);
}
s
}
/// The questions for one sheet, by id.
pub fn questions(sheet: &str) -> Value {
questions_for(None, sheet)
}
/// questions, for a kind's rubric.
pub fn questions_for(kind: Option<&str>, sheet: &str) -> Value {
let mut q = serde_json::Map::new();
for (id, on, ask) in SCORES {
for &(id, on, ask) in scores(kind) {
if on == sheet {
q.insert(format!("score_{id}"), json!({"type": "score", "instructions": ask, "criteria": levels(id)}));
}
@@ -86,9 +171,14 @@ pub fn blind() -> Value {
/// clef's answers read into scores (0-10) and defects (probability of yes, blocking ones flagged).
pub fn read(answers: &Value) -> (serde_json::Map<String, Value>, Vec<Value>) {
read_for(None, answers)
}
/// read, for a kind's rubric.
pub fn read_for(kind: Option<&str>, answers: &Value) -> (serde_json::Map<String, Value>, Vec<Value>) {
let mut scores = serde_json::Map::new();
let mut defects = Vec::new();
for (id, _, _) in SCORES {
for &(id, _, _) in self::scores(kind) {
if let Some(a) = answers.get(format!("score_{id}")) {
let level = a["score"].as_f64().unwrap_or(0.0);
scores.insert(id.into(), json!((level * 2.0 * 100.0).round() / 100.0));
@@ -106,6 +196,12 @@ pub fn read(answers: &Value) -> (serde_json::Map<String, Value>, Vec<Value>) {
/// The loop's pass, in code: no blocking defect present, the lowest score 6 or more and the mean 7 or more (raea's
/// 0-10 scale; the prompt pack's line). Scores mapped by a calibration first, when there is one.
pub fn pass(scores: &serde_json::Map<String, Value>, defects: &[Value]) -> (bool, Vec<String>) {
pass_for(None, scores, defects)
}
/// pass, for a kind's rubric: every one of its categories scored.
pub fn pass_for(kind: Option<&str>, scores: &serde_json::Map<String, Value>, defects: &[Value]) -> (bool, Vec<String>) {
let want = self::scores(kind).len();
let vals: Vec<f64> = scores.values().filter_map(Value::as_f64).collect();
let mut why = Vec::new();
let blocking = blocking(defects);
@@ -114,8 +210,8 @@ pub fn pass(scores: &serde_json::Map<String, Value>, defects: &[Value]) -> (bool
}
let min = vals.iter().cloned().fold(f64::INFINITY, f64::min);
let mean = if vals.is_empty() { 0.0 } else { vals.iter().sum::<f64>() / vals.len() as f64 };
if vals.len() < SCORES.len() {
why.push(format!("only {} of {} categories scored", vals.len(), SCORES.len()));
if vals.len() < want {
why.push(format!("only {} of {want} categories scored", vals.len()));
}
if min < 6.0 {
let low: Vec<String> = scores.iter().filter(|(_, v)| v.as_f64().is_some_and(|x| x < 6.0)).map(|(k, _)| k.clone()).collect();
+53 -4
View File
@@ -37,15 +37,15 @@ fn calibration_maps_a_lenient_judge_onto_the_eye() {
// the judge says 8 to everything the eye gives 5, and 9 to what the eye gives 8
let row = |j: f64, e: f64, p: bool| json!({"judge": scores(j), "eye": scores(e), "eye_pass": p, "defects": []});
let rows: Vec<Value> = (0..12).map(|i| if i % 2 == 0 { row(8.0, 5.0, false) } else { row(9.0, 8.0, true) }).collect();
let cal = eye::fit_rows(&rows);
let cal = eye::fit_rows_for(None, &rows);
assert_eq!(cal["agreement"], 1.0);
assert_eq!(cal["gate"], true);
assert!((cal["maps"]["form"]["a"].as_f64().unwrap() - 3.0).abs() < 1e-6);
let few = eye::fit_rows(&rows[..4]);
let few = eye::fit_rows_for(None, &rows[..4]);
assert_eq!(few["gate"], false, "too few rounds to gate");
// an eye that failed everything agrees with a judge that fails everything, which proves nothing
let fails: Vec<Value> = (0..12).map(|_| row(3.0, 2.0, false)).collect();
let all_fail = eye::fit_rows(&fails);
let all_fail = eye::fit_rows_for(None, &fails);
assert_eq!(all_fail["agreement"], 1.0);
assert_eq!(all_fail["gate"], false, "no pass among the eye's rounds");
}
@@ -60,7 +60,7 @@ fn an_agent_verdict_is_read_from_the_end_of_its_thinking() {
{"tile": "low", "wrong": "", "level": "detail"}],
"show_as_is": "no"}"#;
let v = crate::agent::last_verdict(text).unwrap();
let (scores, defects, photo) = crate::agent::read(&v);
let (scores, defects, photo) = crate::agent::read(None, &v);
assert_eq!(scores.len(), 7, "only the seven categories, each 0-10");
assert_eq!(scores["form"], serde_json::json!(5.5));
assert_eq!(defects.len(), 1, "a defect with nothing wrong named is dropped");
@@ -75,3 +75,52 @@ fn an_agent_verdict_is_read_from_the_end_of_its_thinking() {
assert!(f.says.starts_with("iso sheet: "), "{}", f.says);
assert_eq!(crate::findings(&defects, "kimi", true)[0].level, raea_core_facts::Level::Warn);
}
#[test]
fn each_make_kind_has_its_own_rubric_and_the_default_is_unchanged() {
// docs/make.feature MK5: a kit's categories, a shot list's on the framing sheet alone, the bar said to each
let kit = rubric::questions_for(Some("kit"), "clay");
for k in ["score_mesh", "score_assembly", "score_scale"] {
assert!(kit.get(k).is_some(), "{k} in {kit}");
}
assert!(kit.get("score_cohesion").is_none(), "cohesion is judged in colour");
assert_eq!(rubric::sheets(Some("shot")), &[("colour", "framing.png")]);
assert_eq!(rubric::sheets(None).len(), 2);
let shot = rubric::questions_for(Some("shot"), "colour");
assert!(shot.get("score_clearance").is_some() && shot.get("score_composition").is_none());
assert!(rubric::state_for(Some("kit"), "colour", &json!({})).contains(rubric::BAR));
assert!(rubric::state_for(Some("shot"), "colour", &json!({})).contains("framing sheet"));
// the default's words are what it was calibrated on
let d = rubric::state("clay", &json!({"notDoing": ["cats"]}));
assert!(d.contains("as the person who will use the scene would") && d.contains("The scene must not contain: cats.") && !d.contains(rubric::BAR), "{d}");
// every kind scored in full to pass
let all = |k: Option<&str>, v: f64| -> serde_json::Map<String, Value> { rubric::scores(k).iter().map(|s| (s.0.to_string(), json!(v))).collect() };
assert!(rubric::pass_for(Some("kit"), &all(Some("kit"), 8.0), &[]).0);
let (ok, why) = rubric::pass_for(Some("kit"), &all(None, 8.0), &[]);
assert!(!ok && why.iter().any(|w| w.contains("of 8 categories")), "{why:?}");
assert!(kind_of(&["judge".into(), "d".into(), "--kind".into(), "film".into()]).is_err());
assert_eq!(kind_of(&["judge".into(), "d".into(), "--kind".into(), "shot".into()]).unwrap().as_deref(), Some("shot"));
}
#[test]
fn an_agent_critic_is_asked_its_kinds_categories() {
let p = crate::agent::prompt(Some("shot"), std::path::Path::new("/r/r1"), &json!({"look": "dusk"}), None);
assert!(p.contains("/r/r1/framing.png") && p.contains("\"clearance\": 0") && p.contains(rubric::BAR) && !p.contains("PART 1, BLIND"), "{p}");
let k = crate::agent::prompt(Some("kit"), std::path::Path::new("/r/r1"), &json!({}), None);
assert!(k.contains("\"cohesion\": 0") && k.contains("scale bar") && k.contains("(judged on CLAY)"));
let d = crate::agent::prompt(None, std::path::Path::new("/r/r1"), &json!({}), None);
assert!(d.contains("\"composition\": 0") && !d.contains(rubric::BAR));
let v = json!({"scores": {"cohesion": 7, "fidelity": 8, "composition": 9}});
let (s, _, _) = crate::agent::read(Some("kit"), &v);
assert_eq!(s.len(), 2, "only the kit's categories");
}
#[test]
fn a_kind_is_calibrated_on_its_own_categories() {
// docs/make.feature MK6
let s = |j: f64| -> serde_json::Map<String, Value> { rubric::KIT.iter().map(|c| (c.0.to_string(), json!(j))).collect() };
let rows: Vec<Value> = (0..12).map(|i| if i % 2 == 0 { json!({"kind": "kit", "judge": s(8.0), "eye": s(5.0), "eye_pass": false, "defects": []}) } else { json!({"kind": "kit", "judge": s(9.0), "eye": s(8.0), "eye_pass": true, "defects": []}) }).collect();
let cal = eye::fit_rows_for(Some("kit"), &rows);
assert_eq!(cal["gate"], true);
assert!(cal["maps"]["cohesion"].is_object() && cal["maps"]["form"].is_null());
}
+22
View File
@@ -0,0 +1,22 @@
[package]
name = "raea-app-lightbake"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea bake light: bounce light baked into lightmaps on raea's own ray tracer, and the bar it is held to against Cycles (docs/bake.feature)"
[dependencies]
# the frames' distance in stops, as raea light check measures it (LT1)
raea-light = { path = "../../engine/light" }
# the CLI's flag reader and result type
raea-runtime-bundle = { path = "../../runtime/bundle" }
# raea's own files (the test set, the Blender library scripts) and the home folder
raea-io-home = { path = "../../io/home" }
image = { version = "0.25", default-features = false, features = ["png"] }
serde_json = "1"
sha2 = "0.10"
[target.'cfg(unix)'.dependencies]
# wait4: a step's peak memory
libc = "0.2"
+13
View File
@@ -0,0 +1,13 @@
{
"about": "the bake's test set (docs/bake.feature BK0), for `raea bake light --compare DIR`: each set's Cycles still (blender/look.py, given the composition's own sky, tone and lens) and Cycles bake (blender/lightbake.py), and raea's frames beside them",
"sets": [
{ "name": "table", "dir": "bench/bake", "file": "table.tsx", "composition": "table", "cycles": ["table-cycles.tsx", "table-cycles"], "bar": true, "texels": 128,
"look": ["--hdri", "media/kloofendal_48d_partly_cloudy_puresky_1k.hdr", "--strength", "0.25", "--rotation", "0.6", "--tone", "agx", "--exposure", "-0.8", "--focus", "2.5", "--fstop", "2.8", "--size", "1280x720"] },
{ "name": "cornell", "dir": "bench/bake", "file": "cornell.tsx", "composition": "cornell", "cycles": ["cornell-cycles.tsx", "cornell-cycles"], "texels": 128,
"look": ["--tone", "agx", "--exposure", "0", "--size", "1280x720"] },
{ "name": "window", "dir": "bench/bake", "file": "window.tsx", "composition": "window", "cycles": ["window-cycles.tsx", "window-cycles"], "texels": 64,
"look": ["--hdri", "media/kloofendal_48d_partly_cloudy_puresky_1k.hdr", "--strength", "0.25", "--rotation", "0.6", "--tone", "agx", "--exposure", "1.5", "--size", "1280x720"] },
{ "name": "atelier", "dir": "~/Studio/raea/projects/atelier", "file": "compositions/atelier.tsx", "composition": "set", "texels": 64, "reference": false,
"why": "a test agent's project, still being built; its Manifold solids stop `raea blender open` (filed with raea bug), so its Blender bake runs through its own tools/bake.sh. It joins at BK5, with that bake as the comparison" }
]
}
+200
View File
@@ -0,0 +1,200 @@
//! One set against Cycles (docs/bake.feature BK0): its Cycles still (blender/look.py) and Cycles bake
//! (blender/lightbake.py), kept in DIR/NAME until the set or the samples change, then raea's frames beside them: the set
//! unbaked, the set with Cycles' maps, and the set with raea's own bake. A frame is measured against the Cycles still by
//! its RMSE (sRGB 0..1 over every pixel and channel, as docs/blender-research.md's table) and in stops (raea light
//! check's distance); a lightmap against Cycles' in stops, texel by texel on the same UVs (map_stops).
use crate::{key, library, run, Ran, Set};
use raea_runtime_bundle::R;
use serde_json::{json, Value};
use std::path::{Path, PathBuf};
/// The bar (BK0): the frame with raea's bake within this RMSE of the Cycles still on the table set (lightbake.py's gives
/// 0.040), no mesh's map off by more than a third of a stop on average, in under a quarter of lightbake.py's time.
pub const BAR_RMSE: f64 = 0.045;
pub const BAR_STOPS: f64 = 1.0 / 3.0;
pub const BAR_TIME: f64 = 0.25;
/// The set's Cycles references, made: the export, look.py's still at `samples` (OUT/cycles.png), lightbake.py's bake at
/// `samples` into the set's media/baked/NAME/, which the set's `cycles` composition reads.
fn reference(set: &Set, samples: u32, out: &Path, baked: &Path) -> R<Value> {
let bl = out.join("bl");
let _ = std::fs::remove_dir_all(&bl);
let _ = std::fs::remove_dir_all(baked);
let stem = Path::new(&set.file).file_stem().map(|x| x.to_string_lossy().to_string()).unwrap_or_default();
let open = run(&set.dir, &["blender".into(), "open".into(), set.file.clone(), "--no-window".into(), "-o".into(), format!("{}", bl.display())], &out.join("open.log"))?;
let (blend, look) = (bl.join(format!("{stem}.blend")), bl.join("look.blend"));
let mut a = vec!["blender".into(), "run".into(), format!("{}", library("look.py")?.display()), format!("{}", blend.display()), format!("{}", look.display())];
a.extend(set.look.iter().cloned());
a.extend(["--engine".into(), "cycles".into(), "--samples".into(), samples.to_string(), "--still".into(), format!("{}", out.join("cycles.png").display())]);
let still = run(&set.dir, &a, &out.join("look.log"))?;
let a = vec!["blender".into(), "run".into(), format!("{}", library("lightbake.py")?.display()), format!("{}", look.display()), format!("{}", baked.join("set.glb").display()), "--samples".into(), samples.to_string(), "--texels".into(), set.texels.to_string()];
let bake = run(&set.dir, &a, &out.join("lightbake.log"))?;
Ok(json!({ "export": open.json(), "still": still.json(), "lightbake": bake.json() }))
}
/// Frame 0 of `composition` in `file`, drawn by raea into OUT/LABEL/: the picture and what it cost.
fn frame(set: &Set, file: &str, composition: &str, out: &Path, label: &str) -> R<(PathBuf, Ran)> {
let dir = out.join(label);
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).map_err(|e| e.to_string())?;
let a = ["render", file, "--composition", composition, "--at", "0", "-o", &format!("{}/", dir.display())].map(String::from);
let ran = run(&set.dir, &a, &out.join(format!("{label}.log")))?;
Ok((dir.join("frame-00000.png"), ran))
}
fn round(x: f64) -> f64 {
(x * 10000.0).round() / 10000.0
}
/// RMSE of two pictures the same size, sRGB 0..1 over every pixel and channel.
pub fn rmse(a: &Path, b: &Path) -> R<f64> {
let load = |p: &Path| image::open(p).map(|i| i.to_rgb8()).map_err(|e| format!("{}: {e}", p.display()));
let (a, b) = (load(a)?, load(b)?);
if a.dimensions() != b.dimensions() {
return Err(format!("sizes differ: {:?} against {:?}", a.dimensions(), b.dimensions()));
}
let sum: f64 = a.as_raw().iter().zip(b.as_raw()).map(|(x, y)| ((*x as f64 - *y as f64) / 255.0).powi(2)).sum();
Ok((sum / a.as_raw().len().max(1) as f64).sqrt())
}
/// A raea frame against the Cycles still: RMSE, and the mean and worst tile in stops.
fn measure(got: &(PathBuf, Ran), cycles: &Path) -> R<Value> {
let d = raea_light::metric::distance(&raea_light::metric::load(&got.0)?, &raea_light::metric::load(cycles)?)?;
Ok(json!({ "rmse": round(rmse(&got.0, cycles)?), "mean_stops": round(d.mean as f64), "worst_stops": round(d.worst as f64), "render": got.1.json() }))
}
/// A lightmap against another on the same UVs, each scaled by its lightmap_exposure: over the texels both cover, the
/// mean distance in stops, the mean signed (brighter is positive), and the worst 8 x 8 tile's mean distance.
pub fn map_stops(a: &Path, a_exposure: f64, b: &Path, b_exposure: f64) -> R<Value> {
let lum = |p: &Path, k: f64| -> R<(u32, u32, Vec<f64>)> {
let i = image::open(p).map_err(|e| format!("{}: {e}", p.display()))?.to_rgb32f();
Ok((i.width(), i.height(), i.pixels().map(|q| k * (0.2126 * q[0] as f64 + 0.7152 * q[1] as f64 + 0.0722 * q[2] as f64)).collect()))
};
let ((w, h, a), (bw, bh, b)) = (lum(a, a_exposure)?, lum(b, b_exposure)?);
if (w, h) != (bw, bh) {
return Err(format!("map sizes differ: {w}x{h} against {bw}x{bh}"));
}
let (mut sum, mut signed, mut n) = (0.0, 0.0, 0usize);
let mut tiles = vec![(0.0, 0usize); w.div_ceil(8) as usize * h.div_ceil(8) as usize];
for (i, (x, y)) in a.iter().zip(&b).enumerate() {
if *x <= 0.0 || *y <= 0.0 {
continue;
}
let st = (x / y).log2();
(sum, signed, n) = (sum + st.abs(), signed + st, n + 1);
let t = &mut tiles[(i / w as usize / 8) * w.div_ceil(8) as usize + (i % w as usize) / 8];
*t = (t.0 + st.abs(), t.1 + 1);
}
let worst = tiles.iter().filter(|t| t.1 >= 32).map(|t| t.0 / t.1 as f64).fold(0.0, f64::max);
let k = n.max(1) as f64;
Ok(json!({ "texels": n, "mean_stops": round(sum / k), "bias_stops": round(signed / k), "worst_tile_stops": round(worst) }))
}
/// Whether a set's numbers meet the bar, and why not.
fn bar(r: &Value) -> Value {
let f = &r["frames"]["raea-bake"];
if f["made"] == json!(false) {
return json!({ "met": false, "why": f["why"] });
}
let rmse = f["rmse"].as_f64().is_some_and(|x| x <= BAR_RMSE);
let meshes = r["meshes"].as_array().is_some_and(|m| m.iter().all(|m| m["raea"]["mean_stops"].as_f64().is_some_and(|x| x <= BAR_STOPS)));
let time = match (f["bake"]["seconds"].as_f64(), r["reference"]["lightbake"]["seconds"].as_f64()) {
(Some(a), Some(b)) => a < b * BAR_TIME,
_ => false,
};
json!({ "met": rmse && meshes && time, "rmse": rmse, "meshes": meshes, "time": time })
}
pub fn set(set: &Set, samples: u32, out: &Path, fresh: bool) -> R<Value> {
std::fs::create_dir_all(out).map_err(|e| format!("{}: {e}", out.display()))?;
let mut r = json!({ "name": set.name, "samples": samples });
if let Err(why) = &set.reference {
r["reference"] = json!({ "made": false, "why": why });
return Ok(r);
}
let (baked, cycles, made) = (set.dir.join("media/baked").join(&set.name), out.join("cycles.png"), out.join("made.json"));
let key = key(set, samples);
let kept = std::fs::read_to_string(&made).ok().and_then(|t| serde_json::from_str::<Value>(&t).ok());
r["reference"] = match kept.filter(|k| !fresh && k["key"] == json!(key) && cycles.is_file() && baked.join("set.lightmaps.json").is_file()) {
Some(k) => {
let mut v = k["reference"].clone();
v["kept"] = json!(true);
v
}
None => {
let v = reference(set, samples, out, &baked)?;
std::fs::write(&made, json!({ "key": key, "reference": v }).to_string()).map_err(|e| e.to_string())?;
v
}
};
r["frames"]["raea"] = measure(&frame(set, &set.file, &set.composition, out, "raea")?, &cycles)?;
if let Some((file, comp)) = &set.cycles {
r["frames"]["cycles-bake"] = measure(&frame(set, file, comp, out, "cycles-bake")?, &cycles)?;
}
// rask: BK5 raea's own bake of the set (<LightBake>): its frame against the Cycles still, its time and memory, and each mesh's map against Cycles' by map_stops on lightbake.py's UVs
r["frames"]["raea-bake"] = json!({ "made": false, "why": "raea's bake isn't built yet (BK1-BK5)" });
let maps: Value = std::fs::read_to_string(baked.join("set.lightmaps.json")).ok().and_then(|t| serde_json::from_str(&t).ok()).unwrap_or_default();
r["meshes"] = json!(maps["meshes"].as_array().into_iter().flatten().map(|m| json!({ "mesh": m["mesh"], "size": m["size"], "cycles_exposure": m["lightmap_exposure"] })).collect::<Vec<_>>());
if set.bar {
r["bar"] = bar(&r);
}
Ok(r)
}
/// The table a person reads: a line a set and frame, then the Cycles bake's cost and the bar.
pub fn table(reports: &[Value]) -> String {
let mut t = format!("{:<10} {:<12} {:>7} {:>7} {:>7}\n", "set", "frame", "rmse", "stops", "worst");
for r in reports {
let name = r["name"].as_str().unwrap_or("");
if r["reference"]["made"] == json!(false) {
t += &format!("{name:<10} (no reference: {})\n", r["reference"]["why"].as_str().unwrap_or(""));
continue;
}
for (label, f) in r["frames"].as_object().into_iter().flatten() {
let n = |k: &str| match f[k].as_f64() {
Some(x) => format!("{x:.4}"),
None => "-".into(),
};
let why = f["why"].as_str().map(|w| format!(" ({w})")).unwrap_or_default();
t += &format!("{name:<10} {label:<12} {:>7} {:>7} {:>7}{why}\n", n("rmse"), n("mean_stops"), n("worst_stops"));
}
let (lb, st) = (&r["reference"]["lightbake"], &r["reference"]["still"]);
t += &format!("{name:<10} Cycles at {} samples: lightbake.py {}s (peak {} MB) for {} meshes, the still {}s\n", r["samples"], lb["seconds"], lb["peak_mb"], r["meshes"].as_array().map_or(0, Vec::len), st["seconds"]);
if let Some(b) = r.get("bar") {
t += &format!("{name:<10} bar: {}\n", if b["met"] == json!(true) { "met".to_string() } else { format!("not met: {}", b["why"].as_str().unwrap_or("see report.json")) });
}
}
t
}
#[cfg(test)]
mod tests {
use super::*;
fn png16(path: &Path, w: u32, h: u32, v: u16) {
image::ImageBuffer::<image::Rgb<u16>, _>::from_pixel(w, h, image::Rgb([v, v, v])).save(path).unwrap();
}
#[test]
fn a_map_twice_as_bright_is_one_stop_off_and_its_exposure_brings_it_back() {
let d = std::env::temp_dir().join(format!("raea-lightbake-{}", std::process::id()));
std::fs::create_dir_all(&d).unwrap();
let (a, b) = (d.join("a.png"), d.join("b.png"));
png16(&a, 16, 16, 40000);
png16(&b, 16, 16, 20000);
let off = map_stops(&a, 1.0, &b, 1.0).unwrap();
assert_eq!((off["mean_stops"].as_f64(), off["bias_stops"].as_f64(), off["texels"].as_u64()), (Some(1.0), Some(1.0), Some(256)));
assert_eq!(map_stops(&a, 1.0, &b, 2.0).unwrap()["mean_stops"].as_f64(), Some(0.0));
assert!(rmse(&a, &b).unwrap() > 0.3 && rmse(&a, &a).unwrap() == 0.0);
let _ = std::fs::remove_dir_all(&d);
}
#[test]
fn the_bar_is_unmet_until_raeas_bake_exists() {
let r = json!({ "frames": { "raea-bake": { "made": false, "why": "not yet" } } });
assert_eq!(bar(&r)["met"], json!(false));
let r = json!({ "frames": { "raea-bake": { "rmse": 0.04, "bake": { "seconds": 4.0 } } }, "meshes": [{ "raea": { "mean_stops": 0.2 } }], "reference": { "lightbake": { "seconds": 20.0 } } });
assert_eq!(bar(&r)["met"], json!(true));
}
}
+158
View File
@@ -0,0 +1,158 @@
//! `raea bake light EDIT.tsx [--composition ID] [--samples N] [--compare DIR]` (docs/bake.feature): raea's own bake of a
//! composition's static parts (BK1-BK5), and the bar it is held to (BK0). `--compare DIR` runs the test set (sets.json)
//! through Cycles (blender/look.py's still and blender/lightbake.py's bake, both at --samples, 1024 by default) and
//! through raea, then writes DIR/report.json and a table: each frame's RMSE and stops against the Cycles still, each
//! mesh's lightmap against Cycles', and each bake's time and peak memory.
//!
//! A set in sets.json: { "name", "dir" (under raea's home, or ~/...), "file", "composition", "cycles": [file,
//! composition] (the set drawn with lightbake.py's maps), "look": [look.py's flags, the composition's own values],
//! "texels" (lightbake.py's texels a metre), "bar": true (the set the bar is read on), "reference": false and "why" (a
//! set whose references can't be made yet) }.
pub mod compare;
use raea_runtime_bundle::{flag, R};
use serde_json::{json, Value};
use sha2::{Digest, Sha256};
use std::path::{Path, PathBuf};
pub const USAGE: &str = "raea bake light EDIT.tsx [--composition ID] [--samples N] | raea bake light --compare DIR [--sets FILE] [--set NAME] [--samples N] [--fresh] (bounce light baked into lightmaps on raea's ray tracer; --compare measures the test set against Cycles' bake and still, docs/bake.feature)";
/// One set of the test set, as sets.json lists it.
pub struct Set {
pub name: String,
pub dir: PathBuf,
pub file: String,
pub composition: String,
pub cycles: Option<(String, String)>,
pub look: Vec<String>,
pub texels: u32,
pub bar: bool,
pub reference: Result<(), String>,
}
fn home_path(p: &str) -> PathBuf {
match (p.strip_prefix("~/"), raea_io_home::user_home()) {
(Some(rest), Some(h)) => h.join(rest),
_ if Path::new(p).is_absolute() => PathBuf::from(p),
_ => raea_io_home::home().join(p),
}
}
pub fn sets(path: &Path) -> R<Vec<Set>> {
let text = std::fs::read_to_string(path).map_err(|e| format!("{}: {e}", path.display()))?;
let v: Value = serde_json::from_str(&text).map_err(|e| format!("{}: {e}", path.display()))?;
let list = v["sets"].as_array().ok_or(format!("{}: no \"sets\" list", path.display()))?;
let strs = |x: &Value| x.as_array().map(|a| a.iter().filter_map(|s| s.as_str().map(String::from)).collect::<Vec<_>>()).unwrap_or_default();
list.iter()
.map(|s| {
let text = |k: &str| match &s[k] {
Value::String(v) => Ok(v.clone()),
_ => Err(format!("{}: a set without \"{k}\"", path.display())),
};
let cycles = match strs(&s["cycles"]).as_slice() {
[file, comp] => Some((file.clone(), comp.clone())),
_ => None,
};
let reference = if s["reference"] == json!(false) { Err(s["why"].as_str().unwrap_or("not yet").to_string()) } else { Ok(()) };
Ok(Set { name: text("name")?, dir: home_path(&text("dir")?), file: text("file")?, composition: text("composition")?, cycles, look: strs(&s["look"]), texels: s["texels"].as_u64().unwrap_or(128) as u32, bar: s["bar"] == json!(true), reference })
})
.collect()
}
/// What a step cost: its seconds, and its peak memory in MB where the OS reports it (a child's and its children's).
#[derive(Debug, Clone, Copy)]
pub struct Ran {
pub seconds: f64,
pub peak_mb: Option<u64>,
}
impl Ran {
pub fn json(&self) -> Value {
json!({ "seconds": (self.seconds * 10.0).round() / 10.0, "peak_mb": self.peak_mb })
}
}
#[cfg(unix)]
fn wait(child: std::process::Child) -> R<(bool, Option<u64>)> {
let (mut status, pid) = (0, child.id() as libc::pid_t);
// SAFETY: rusage is plain data, zeroed is a valid value; wait4 reaps the child std spawned and never waited on
let mut ru: libc::rusage = unsafe { std::mem::zeroed() };
if unsafe { libc::wait4(pid, &mut status, 0, &mut ru) } < 0 {
return Err(format!("waiting for {pid}: {}", std::io::Error::last_os_error()));
}
// ru_maxrss is bytes on macOS, kilobytes elsewhere
let kb = if cfg!(target_os = "macos") { ru.ru_maxrss as u64 / 1024 } else { ru.ru_maxrss as u64 };
Ok((libc::WIFEXITED(status) && libc::WEXITSTATUS(status) == 0, Some(kb / 1024)))
}
#[cfg(not(unix))]
fn wait(mut child: std::process::Child) -> R<(bool, Option<u64>)> {
Ok((child.wait().map_err(|e| e.to_string())?.success(), None))
}
/// This raea with `args` in `dir`, its output into `log`: what it cost, or the log's last lines.
pub fn run(dir: &Path, args: &[String], log: &Path) -> R<Ran> {
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let out = std::fs::File::create(log).map_err(|e| format!("{}: {e}", log.display()))?;
let err = out.try_clone().map_err(|e| e.to_string())?;
let t = std::time::Instant::now();
let child = std::process::Command::new(exe).current_dir(dir).args(args).stdout(out).stderr(err).spawn().map_err(|e| e.to_string())?;
let (ok, peak_mb) = wait(child)?;
let ran = Ran { seconds: t.elapsed().as_secs_f64(), peak_mb };
if ok {
return Ok(ran);
}
let text = std::fs::read_to_string(log).unwrap_or_default();
let last: Vec<&str> = text.lines().filter(|l| !l.starts_with("Fra:") && l.chars().any(|c| !c.is_whitespace())).rev().take(4).collect();
Err(format!("raea {} failed ({}): {}", args.first().map_or("", String::as_str), log.display(), last.into_iter().rev().collect::<Vec<_>>().join(" | ")))
}
/// A set's identity for its kept references: every .tsx in its folder and its parts/, the flags look.py and lightbake.py
/// get, and the samples.
pub fn key(s: &Set, samples: u32) -> String {
let mut h = Sha256::new();
for d in [s.dir.clone(), s.dir.join("parts")] {
let mut fs: Vec<PathBuf> = std::fs::read_dir(&d).into_iter().flatten().flatten().map(|e| e.path()).filter(|p| p.extension().is_some_and(|x| x == "tsx")).collect();
fs.sort();
for f in fs {
h.update(f.file_name().unwrap_or_default().as_encoded_bytes());
h.update(std::fs::read(&f).unwrap_or_default());
}
}
h.update(format!("{:?} {} {samples}", s.look, s.texels));
h.finalize().iter().map(|b| format!("{b:02x}")).collect()
}
/// Where the Blender library scripts are (sdk/guides/craft/bevy/blender), with `name` there, or why not.
pub fn library(name: &str) -> R<PathBuf> {
let p = raea_io_home::home().join("sdk/guides/craft/bevy/blender").join(name);
if p.is_file() { Ok(p) } else { Err(format!("no {} (the Blender library script the Cycles reference is made with)", p.display())) }
}
pub fn cli(args: &[String]) -> R<String> {
if args.get(1).map(String::as_str) != Some("light") {
return Err(format!("usage: {USAGE}"));
}
let samples: u32 = flag(args, "--samples").map(|v| v.parse().map_err(|_| format!("--samples {v}: a count of samples a texel"))).transpose()?.unwrap_or(1024);
let Some(out) = flag(args, "--compare").map(PathBuf::from) else {
// rask: BK5 `raea bake light EDIT.tsx` bakes a composition's <LightBake> ahead of a render and says what it baked
return Err("raea's own bake isn't built yet (docs/bake.feature BK1-BK5); `raea bake light --compare DIR` measures the test set against Cycles".into());
};
let list = sets(&flag(args, "--sets").map_or_else(|| raea_io_home::home().join("apps/lightbake/sets.json"), PathBuf::from))?;
let only = flag(args, "--set");
let fresh = args.iter().any(|a| a == "--fresh");
std::fs::create_dir_all(&out).map_err(|e| format!("{}: {e}", out.display()))?;
let mut reports = Vec::new();
for s in list.iter().filter(|s| only.is_none() || only.as_deref() == Some(s.name.as_str())) {
eprintln!("raea bake light: {} ...", s.name);
reports.push(compare::set(s, samples, &out.join(&s.name), fresh)?);
}
if reports.is_empty() {
return Err(format!("no set named {}", only.unwrap_or_default()));
}
let report = json!({ "samples": samples, "sets": reports });
let path = out.join("report.json");
std::fs::write(&path, serde_json::to_string_pretty(&report).unwrap_or_default()).map_err(|e| e.to_string())?;
Ok(format!("{}raea bake light: wrote {}", compare::table(&reports), path.display()))
}
+33
View File
@@ -0,0 +1,33 @@
[package]
name = "raea-app-make"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea make: a scene, kit or shot held to its frozen plan; what's missing and whether it's done, decided in code (docs/make.feature)"
[dependencies]
# the plan: `make` on brief.ts
raea-core-brief = { path = "../../core/brief" }
# the project's record of renders and checks, and the folder it lives in
raea-core-facts = { path = "../../core/facts" }
# the parts a render showed closer than their planned detail (MK24)
raea-runtime-lod-plan = { path = "../../runtime/lod-plan" }
# a cut job's gates: its client's brief as rules, held over the delivered files (MK25-MK27)
raea-runtime-cut-plan = { path = "../../runtime/cut-plan" }
# a goal job's gates: its commands and a fresh critic's verdict on its words (/goal)
raea-runtime-goal-plan = { path = "../../runtime/goal-plan" }
# the judge's rounds, passes and blocking defects, read as it keeps them
raea-app-judge = { path = "../judge" }
# the make questions, their calibrations and a sheet's ident, as raea ask keeps them (MK4)
raea-core-ask = { path = "../../core/ask" }
# a lens's field of view (MK15's lens chart), as the review sheets work it out
raea-core-review = { path = "../../core/review" }
# raea ask's ledger folder
raea-io-home = { path = "../../io/home" }
# the contact sheets: tiles composited, labels drawn in the system's fonts
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
resvg = { version = "=0.48.1", default-features = false, features = ["text", "system-fonts"] }
dunce = "1"
serde_json = "1"
+114
View File
@@ -0,0 +1,114 @@
//! The second tier of the gate (docs/make.feature MK4): the `make` set of `raea ask` questions (core/ask
//! library/make.json), asked of the job's newest sheets. A question gates once it is calibrated on the person's labels
//! (`raea ask calibrate`: 16 problem, 16 clean, an AUC of 0.8); until then what it says is advice in the status. An
//! answer counts for a sheet only when its call was about exactly that sheet's bytes (the ledger's `ident`), so a sheet
//! rendered again must be asked again.
use std::collections::{BTreeMap, HashMap};
use std::path::{Path, PathBuf};
use raea_core_ask::{Calibration, Question};
use serde_json::{Value, json};
/// The ledger as status reads it: every call's ident by id, every answer, and the person's calibrations.
#[derive(Default)]
pub struct Ledger {
pub idents: HashMap<String, String>,
pub answers: Vec<Value>,
pub calibrations: BTreeMap<String, Calibration>,
}
impl Ledger {
/// `raea ask`'s record (RAEA_ASK_DIR, else ~/.raea/ask), read once.
pub fn read() -> Ledger {
let dir = raea_io_home::env_path("RAEA_ASK_DIR", ".raea/ask");
let rows = |f: &str| -> Vec<Value> { std::fs::read_to_string(dir.join(f)).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).collect() };
let idents = rows("calls.jsonl").into_iter().filter_map(|c| Some((c["id"].as_str()?.to_string(), c["ident"].as_str()?.to_string()))).collect();
let answers = rows("answers.jsonl").into_iter().filter(|a| a["question"].as_str().is_some_and(|q| q.starts_with("make."))).collect();
let calibrations = std::fs::read_to_string(dir.join("calibration.json")).ok().and_then(|t| serde_json::from_str(&t).ok()).unwrap_or_default();
Ledger { idents, answers, calibrations }
}
}
/// The `make` set's questions with the person's calibrations in place of raea's (as `raea ask` applies them).
pub fn questions(ledger: &Ledger) -> Vec<Question> {
let mut qs = raea_core_ask::library::set("make", None).unwrap_or_default();
for q in &mut qs {
if let Some(c) = ledger.calibrations.get(&q.version()) {
q.calibration = Some(c.clone());
}
}
qs
}
/// The sheet a question is asked of: its id's second word (make.clay.floating is asked of a clay sheet).
pub fn sheet_of(q: &Question) -> &str {
match q.id.split('.').nth(1) {
Some(sheet) => sheet,
None => "",
}
}
/// The command that asks a sheet its questions.
pub fn command(sheet: &Path, qs: &[&Question]) -> String {
let std: Vec<String> = qs.iter().map(|q| format!("--std {}", q.id)).collect();
format!("raea ask {} {}", sheet.display(), std.join(" "))
}
/// Each sheet's gate, and the advice: what uncalibrated questions flagged. `sheets` are (kind, file): clay, colour,
/// refs, framing. `notes` is NOTES.md: a flagged question answered there by its id holds nothing.
pub fn gates(sheets: &[(&str, PathBuf)], ledger: &Ledger, notes: &str) -> (Vec<Value>, Vec<String>) {
let qs = questions(ledger);
let mut gates = Vec::new();
let mut advice = Vec::new();
for (kind, file) in sheets {
let mine: Vec<&Question> = qs.iter().filter(|q| sheet_of(q) == *kind).collect();
if mine.is_empty() {
continue;
}
let rel = file.file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_default();
let Some(ident) = raea_core_ask::ident::ident(file) else { continue };
// the newest answer to each question about these exact bytes
let mut latest: BTreeMap<&str, &Value> = BTreeMap::new();
for a in &ledger.answers {
let about = a["call"].as_str().and_then(|c| ledger.idents.get(c)).is_some_and(|i| *i == ident);
let Some(q) = a["question"].as_str() else { continue };
if about && latest.get(q).is_none_or(|b| at(a) >= at(b)) {
latest.insert(q, a);
}
}
let mut open = Vec::new();
let mut unasked = Vec::new();
for q in &mine {
let a = latest.get(q.id.as_str());
let flagged = a.is_some_and(|a| a["flagged"] == true);
let p = a.and_then(|a| a["problem"].as_f64()).map(|p| format!(" (p {p:.2})")).unwrap_or_default();
if q.calibrated() {
match a {
None => unasked.push(*q),
Some(_) if flagged && !notes.contains(&q.id) => open.push(format!("{} flagged{p}: {}", q.id, q.fix.as_deref().unwrap_or("fix it, or answer it in NOTES.md by its id"))),
_ => {}
}
} else if flagged {
advice.push(format!("{rel}: {} says yes{p}, advice until calibrated: {}", q.id, q.fix.as_deref().unwrap_or("")));
}
}
if !unasked.is_empty() {
open.push(format!("not asked of this {kind} sheet yet: {}", command(file, &unasked)));
}
let calibrated = mine.iter().filter(|q| q.calibrated()).count();
let says = match (open.is_empty(), calibrated) {
(true, 0) => format!("advice only: none of its {} questions is calibrated yet (raea ask calibrate)", mine.len()),
(true, n) => format!("{n} calibrated question{} clear", if n == 1 { "" } else { "s" }),
(false, _) => open.join("; "),
};
let mut g = json!({"gate": "ask", "of": rel, "clear": open.is_empty(), "says": says});
g["ask"] = json!(command(file, &mine));
gates.push(g);
}
(gates, advice)
}
fn at(a: &Value) -> u64 {
a["at"].as_str().and_then(|s| s.parse().ok()).or_else(|| a["at"].as_u64()).unwrap_or(0)
}
+157
View File
@@ -0,0 +1,157 @@
//! The plan stop (docs/make.feature MK18, from AnyScene's endpoint/floorplan.py, MIT): before anything is generated,
//! the plan drawn so a person can approve it. A floor plan from above (every object's footprint at its `at`, turned by
//! its `rot`, labelled; invented ones dashed, so what came from the reference and what was added are told apart), a
//! grey-box blockout of the same plan rendered from the entrance and through `raea render --review`, and the
//! reference beside the blockout on one comparison sheet.
//!
//! raea make plan [DIR] -> review/plan/floor-plan.png, blockout.tsx, blockout.png, comparison.png, colour/clay sheets
use std::path::{Path, PathBuf};
use raea_core_brief::make::{Make, Object, Origin};
use crate::sheet::{Tile, esc, sheet, svg_png};
use crate::shots::raea;
/// An object's footprint, metres: [width, depth] (its box, else a square about as wide as it's tall).
pub fn footprint(o: &Object) -> [f64; 2] {
if let Some([w, d, _]) = o.dims {
return [w, d];
}
let s = o.max.unwrap_or_else(|| o.h.unwrap_or(0.5) * 0.6).max(0.05);
[s, s]
}
fn height(o: &Object) -> f64 {
o.dims.map(|d| d[2]).or(o.h).unwrap_or(0.05).max(0.01)
}
/// The placed objects and the floor they span: (objects with an `at`, [x0, z0, x1, z1] with half a metre around).
pub fn extent(m: &Make) -> (Vec<&Object>, [f64; 4]) {
let placed: Vec<&Object> = m.objects.iter().filter(|o| o.at.is_some()).collect();
let mut b = [0.0f64, 0.0, 1.0, 1.0];
for o in &placed {
let at = o.at.unwrap();
let [w, d] = footprint(o);
let r = 0.5 * (w * w + d * d).sqrt();
b = [b[0].min(at[0] - r), b[1].min(at[2] - r), b[2].max(at[0] + r), b[3].max(at[2] + r)];
}
(placed, [b[0] - 0.5, b[1] - 0.5, b[2] + 0.5, b[3] + 0.5])
}
/// The floor plan as SVG: the entrance (z = 0) at the bottom, a metre grid, each footprint turned and labelled.
pub fn floor_svg(m: &Make) -> Result<String, String> {
let (placed, [x0, z0, x1, z1]) = extent(m);
if placed.is_empty() {
return Err("raea make plan: no object has an `at` (where it stands, in metres: x right, z away from the entrance)".into());
}
let px = (1400.0 / (x1 - x0).max(z1 - z0)).min(260.0);
let (w, h) = (((x1 - x0) * px).ceil() as u32 + 40, ((z1 - z0) * px).ceil() as u32 + 130);
// text sized to the plan, so it still reads once the plan is a third of a comparison sheet
let t = (w as f64 * 0.02).max(16.0);
// plan x right, z away from the entrance: up the page
let sx = |x: f64| (x - x0).mul_add(px, 20.0);
let sy = |z: f64| 70.0 + (z1 - z) * px;
let mut s = format!("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{w}\" height=\"{h}\"><rect width=\"100%\" height=\"100%\" fill=\"#f4f2ee\"/>");
s += &format!("<text x=\"20\" y=\"{:.0}\" font-size=\"{:.0}\" font-weight=\"bold\" fill=\"#222\">Floor plan: {} objects (solid: from the reference; dashed: invented)</text>", t * 1.6, t * 1.1, placed.len());
let mut g = x0.ceil();
while g <= x1 {
s += &format!("<line x1=\"{0:.1}\" y1=\"{1:.1}\" x2=\"{0:.1}\" y2=\"{2:.1}\" stroke=\"#dedad2\" stroke-width=\"1\"/>", sx(g), sy(z1), sy(z0));
g += 1.0;
}
let mut g = z0.ceil();
while g <= z1 {
s += &format!("<line x1=\"{1:.1}\" y1=\"{0:.1}\" x2=\"{2:.1}\" y2=\"{0:.1}\" stroke=\"#dedad2\" stroke-width=\"1\"/>", sy(g), sx(x0), sx(x1));
g += 1.0;
}
// the entrance: the front edge, and where the camera looks in from
s += &format!("<line x1=\"{0:.1}\" y1=\"{1:.1}\" x2=\"{2:.1}\" y2=\"{1:.1}\" stroke=\"#3a7bd5\" stroke-width=\"4\"/>", sx(x0), sy(z0), sx(x1));
s += &format!("<text x=\"{:.1}\" y=\"{:.1}\" font-size=\"{:.0}\" fill=\"#3a7bd5\" text-anchor=\"middle\">entrance: the camera looks in from here</text>", (sx(x0) + sx(x1)) / 2.0, sy(z0) + t * 1.3, t * 0.9);
for o in &placed {
let at = o.at.unwrap();
let [fw, fd] = footprint(o);
let invented = o.source == Some(Origin::Invented);
let dash = if invented { " stroke-dasharray=\"8 5\"" } else { "" };
let fill = if o.hero == Some(true) { "#f2c46d" } else if invented { "#ece8f4" } else { "#d9e4d2" };
s += &format!(
"<g transform=\"translate({:.1} {:.1}) rotate({:.1})\"><rect x=\"{:.1}\" y=\"{:.1}\" width=\"{:.1}\" height=\"{:.1}\" fill=\"{fill}\" stroke=\"#333\" stroke-width=\"2\"{dash}/><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"{:.1}\" stroke=\"#333\" stroke-width=\"2\"/></g>",
sx(at[0]),
sy(at[2]),
-o.rot.unwrap_or(0.0),
-fw * px / 2.0,
-fd * px / 2.0,
fw * px,
fd * px,
fd * px / 2.0
);
s += &format!("<text x=\"{:.1}\" y=\"{:.1}\" font-size=\"{:.0}\" fill=\"#111\" text-anchor=\"middle\">{}</text>", sx(at[0]), sy(at[2]) - t * 0.25, t, esc(&o.label));
s += &format!("<text x=\"{:.1}\" y=\"{:.1}\" font-size=\"{:.0}\" fill=\"#555\" text-anchor=\"middle\">{:.2} m{}</text>", sx(at[0]), sy(at[2]) + t * 0.9, t * 0.8, height(o), o.lod.map(|l| format!(", LOD {l}")).unwrap_or_default());
}
s += &format!("<line x1=\"20\" y1=\"{0}\" x2=\"{1:.1}\" y2=\"{0}\" stroke=\"#111\" stroke-width=\"5\"/><text x=\"20\" y=\"{2:.0}\" font-size=\"{3:.0}\" fill=\"#111\">1 m</text>", h - 18, 20.0 + px, h as f64 - 26.0, t * 0.9);
s += "</svg>";
Ok(s)
}
/// The blockout: a grey box for each placed object at its place and turn on a floor, seen from the entrance.
pub fn blockout_tsx(m: &Make) -> String {
let (placed, [x0, z0, x1, z1]) = extent(m);
let mut boxes = String::new();
for o in &placed {
let at = o.at.unwrap();
let [w, d] = footprint(o);
let h = height(o);
let colour = if o.source == Some(Origin::Invented) { "#b4b0bd" } else { "#bdbdb8" };
let a = -o.rot.unwrap_or(0.0).to_radians() / 2.0;
let lod = o.lod.map(|l| format!(" lod={{{l}}}")).unwrap_or_default();
boxes += &format!(
" <Mesh3d name=\"{}\"{lod} transform={{Transform.fromXyz({:.3}, {:.3}, {:.3}).withRotation([0, {:.5}, 0, {:.5}])}}>\n <Cuboid half_size={{[{:.3}, {:.3}, {:.3}]}} />\n <StandardMaterial base_color=\"{colour}\" perceptual_roughness={{0.9}} />\n </Mesh3d>\n",
o.id,
at[0],
at[1] + h / 2.0,
at[2],
a.sin(),
a.cos(),
w / 2.0,
h / 2.0,
d / 2.0
);
}
let (cx, cz) = ((x0 + x1) / 2.0, (z0 + z1) / 2.0);
let (fw, fd) = ((x1 - x0) / 2.0, (z1 - z0) / 2.0);
format!(
"// written by raea make plan: the plan as grey boxes, seen from the entrance (approve it before anything is made)\nimport {{ AbsoluteFill, Composition, registerRoot }} from \"raea\";\nimport {{ StandardMaterial }} from \"raea/pbr\";\nimport {{ Cuboid, Mesh3d }} from \"raea/mesh\";\nimport {{ AmbientLight, DirectionalLight }} from \"raea/light\";\nimport {{ Transform }} from \"raea/transform\";\nimport {{ Camera3d }} from \"raea/camera\";\n\nfunction Blockout() {{\n return (\n <AbsoluteFill style={{{{ background: \"#cfd3d6\" }}}}>\n <Camera3d transform={{Transform.fromXyz({cx:.3}, 1.6, {ez:.3}).lookingAt([{cx:.3}, 0.9, {cz:.3}])}} projection={{{{ Perspective: {{ fov: (50 * Math.PI) / 180 }} }}}} />\n <AmbientLight brightness={{350}} />\n <DirectionalLight transform={{Transform.fromXyz({lx:.3}, 6, -2).lookingAt([{cx:.3}, 0, {cz:.3}])}} illuminance={{8000}} shadow_maps_enabled />\n <Mesh3d transform={{Transform.fromXyz({cx:.3}, -0.01, {cz:.3})}}>\n <Cuboid half_size={{[{fw:.3}, 0.01, {fd:.3}]}} />\n <StandardMaterial base_color=\"#e6e3dc\" perceptual_roughness={{0.95}} />\n </Mesh3d>\n{boxes} </AbsoluteFill>\n );\n}}\n\nregisterRoot(() => <Composition id=\"blockout\" component={{Blockout}} width={{1280}} height={{720}} fps={{30}} durationInFrames={{1}} />);\n",
ez = z0 - 0.4,
lx = cx + 2.0,
)
}
pub fn plan_dir(dir: &Path) -> PathBuf {
dir.join("review/plan")
}
/// The plan stop's pictures: floor plan, blockout (and its review sheets), and the comparison with reference 0.
pub fn draw_plan(dir: &Path, m: &Make, review: bool) -> Result<String, String> {
let out = plan_dir(dir);
std::fs::create_dir_all(&out).map_err(|e| format!("{}: {e}", out.display()))?;
let floor = out.join("floor-plan.png");
svg_png(&floor_svg(m)?)?.save(&floor).map_err(|e| format!("{}: {e}", floor.display()))?;
let tsx = out.join("blockout.tsx");
std::fs::write(&tsx, blockout_tsx(m)).map_err(|e| format!("{}: {e}", tsx.display()))?;
let shot = out.join("blockout.png");
raea(&["render".into(), tsx.display().to_string(), "-o".into(), shot.display().to_string(), "--frame".into(), "0".into()], &[])?;
let mut said = vec![format!("wrote {}", floor.display()), format!("wrote {}", shot.display())];
if review {
raea(&["render".into(), tsx.display().to_string(), "--review".into(), out.display().to_string()], &[])?;
said.push(format!("review sheets of the blockout in {}", out.display()));
}
let mut row = Vec::new();
if let Some(r) = m.references.first() {
row.push(Tile { img: dir.join(r), label: "reference".into() });
}
row.push(Tile { img: shot, label: "blockout from the entrance".into() });
row.push(Tile { img: floor, label: "floor plan".into() });
let cmp = out.join("comparison.png");
sheet("Plan: the reference, the blockout from the entrance, the floor plan", &[row], 640, &cmp)?;
said.push(format!("wrote {}: approve the plan (positions, sizes, what's invented) before any generation", cmp.display()));
Ok(said.join("\n"))
}
+300
View File
@@ -0,0 +1,300 @@
//! A kit's steps (docs/make.feature MK10-MK12, from AnyKit): every object's reference made in one style from the
//! style images, checked on one sheet before any 3D; each reference to both generators (Tripo H3.1 and Meshy, on fal)
//! and the pick made on clay renders (kitout.rs draws the pick sheets); the pick fitted to its real size with a
//! quarter-triangle LOD beside it, each with a sidecar saying how it was made.
//!
//! raea make refs [DIR] [--only ID,...] [--model M] [--dry]
//! raea make sheet refs [DIR]
//! raea make gen [DIR] [--only ID,...] [--tripo M] [--meshy M] [--dry]
//! raea make pick ID GENERATOR "why"
//! raea make prep [DIR] [--only ID,...]
use std::path::{Path, PathBuf};
use raea_core_brief::make::{Make, Object};
use serde_json::{Value, json};
use crate::sheet::{Tile, sheet};
use crate::shots::raea;
/// What every reference prompt ends with: one object, whole, on a plain ground, in even light (the scan template).
pub const SCAN: &str = "One object only, whole and centred, on a plain light grey background, soft even studio light, a three-quarter view from slightly above. Its own printed labels only, from the one maker named; no real brands, no text overlays.";
/// The two generators every reference goes to (MK11).
pub const TRIPO: &str = "tripo:H3.1";
pub const MESHY: &str = "fal:meshy/v7.1/image-to-3d";
/// Face limits: a hero, a small prop.
const HERO_FACES: u32 = 150_000;
const PROP_FACES: u32 = 60_000;
/// The objects named in `--only` (all when it's empty).
pub fn objects<'a>(m: &'a Make, only: &[String]) -> Vec<&'a Object> {
crate::only(&m.objects, only, |o| o.id.as_str())
}
/// The prompt a reference is made from: the plan's style paragraph, the object's own words, the scan template.
pub fn ref_prompt(m: &Make, o: &Object) -> String {
let style = m.style.as_deref().unwrap_or("").trim().trim_end_matches('.');
let what = o.prompt.as_deref().unwrap_or(&o.label).trim().trim_end_matches('.');
format!("{style}. {what}. {SCAN}")
}
/// `--h`, `--dims` or nothing: how gen check fits an object to its real size.
pub fn size_args(o: &Object) -> Vec<String> {
if let Some([w, d, h]) = o.dims {
return vec!["--dims".into(), format!("{w},{d},{h}")];
}
if let Some(h) = o.h {
return vec!["--h".into(), h.to_string()];
}
Vec::new()
}
/// How `raea gen check -o` fits one generator's model to the object's size: its height (`--h`, which is what scales;
/// a boxy object's is the third of its dims) and, for a boxy one, a quarter turn when the model's long side lies
/// across (x) where the plan's lies front to back (z), or the other way: generators don't agree on which way is front.
/// `measured` is the raw model's [w, h, d] (`raea gen check --json`'s measured.size).
pub fn fit_args(o: &Object, measured: Option<[f64; 3]>) -> Vec<String> {
let mut a = size_args(o);
if let Some([w, d, h]) = o.dims {
a.extend(["--h".into(), h.to_string()]);
if let Some([mw, _, md]) = measured {
let long = |x: f64, z: f64| if x > z * 1.2 { Some(true) } else if z > x * 1.2 { Some(false) } else { None };
if let (Some(want), Some(got)) = (long(w, d), long(mw, md)) {
if want != got {
a.extend(["--turn".into(), "90".into()]);
}
}
}
}
a
}
/// The raw model's size [w, h, d], measured by `raea gen check --json`.
pub fn measured_size(model: &Path) -> Option<[f64; 3]> {
let out = raea(&["gen".into(), "check".into(), model.display().to_string(), "--json".into()], &[]).ok()?;
let v = json_of(&out)?;
let s = v["measured"]["size"].as_array()?;
Some([s.first()?.as_f64()?, s.get(1)?.as_f64()?, s.get(2)?.as_f64()?])
}
/// The file a single-shot `raea gen` wrote: its JSON's `out.out`, a path or the first of a list.
pub fn gen_file(out: &str) -> Option<PathBuf> {
let v: Value = serde_json::from_str(out.trim()).ok()?;
let o = &v["out"]["out"];
o.as_str().or_else(|| o.as_array()?.first()?.as_str()).map(PathBuf::from)
}
fn cents(out: &str) -> f64 {
json_of(out).and_then(|v| v["cents"].as_f64()).unwrap_or(0.0)
}
/// raea gen's JSON from its output (anything printed before it skipped).
fn json_of(out: &str) -> Option<Value> {
serde_json::from_str(out[out.find('{')?..].trim()).ok()
}
/// A `--plan` or `gen plan` quote in a line: what each paid step runs on, and the total.
pub fn quote(out: &str) -> String {
let Some(v) = json_of(out) else { return out.split_whitespace().collect::<Vec<_>>().join(" ") };
let on: Vec<&str> = v["steps"].as_array().into_iter().flatten().filter_map(|s| s["runs_on"].as_str()).filter(|r| *r != "load").collect();
format!("{} (about {}¢)", if on.is_empty() { "nothing paid".to_string() } else { on.join(" + ") }, v["cents"].as_f64().unwrap_or(0.0))
}
pub fn refs_dir(dir: &Path) -> PathBuf {
dir.join("out/kit/refs")
}
/// Every object's reference, made from the style images (`references`) in the plan's style; then the sheet.
pub fn refs(dir: &Path, m: &Make, only: &[String], model: Option<&str>, dry: bool) -> Result<String, String> {
if m.references.is_empty() {
return Err("raea make refs: the plan has no `references` (the style images every reference is made from)".into());
}
let mut said = Vec::new();
let mut spent = 0.0;
for o in objects(m, only) {
let work = refs_dir(dir).join("gen").join(&o.id);
let mut args: Vec<String> = vec!["gen".into(), "image".into(), ref_prompt(m, o)];
for r in &m.references {
args.extend(["--image".into(), dir.join(r).display().to_string()]);
}
args.extend(["--aspect".into(), "1:1".into(), "-o".into(), work.display().to_string()]);
if let Some(md) = model {
args.extend(["--model".into(), md.to_string()]);
}
if dry {
args.push("--plan".into());
let out = raea(&args, &[])?;
spent += cents(&out);
said.push(format!("{}: {}", o.id, quote(&out)));
continue;
}
eprintln!("raea make refs: {}", o.id);
let out = raea(&args, &[])?;
spent += cents(&out);
let made = gen_file(&out).ok_or_else(|| format!("{}: raea gen image wrote no file: {}", o.id, out.trim()))?;
let to = refs_dir(dir).join(format!("{}.png", o.id));
std::fs::copy(&made, &to).map_err(|e| format!("{}: {e}", to.display()))?;
said.push(format!("{}: {}", o.id, to.display()));
}
if dry {
return Ok(format!("would make {} reference{} for about ${:.2} (nothing spent):\n{}", said.len(), if said.len() == 1 { "" } else { "s" }, spent / 100.0, said.join("\n")));
}
let sheet = sheet_refs(dir, m)?;
Ok(format!("{}\n{sheet}\nspent about ${:.2}", said.join("\n"), spent / 100.0))
}
/// The reference sheet: the style images first, then every object's reference, labelled with its id and size.
pub fn sheet_refs(dir: &Path, m: &Make) -> Result<String, String> {
let style: Vec<Tile> = m.references.iter().enumerate().map(|(i, r)| Tile { img: dir.join(r), label: format!("style {}", i + 1) }).collect();
let refs: Vec<Tile> = m
.objects
.iter()
.map(|o| {
let size = o.h.map(|h| format!("{h} m tall")).or(o.dims.map(|d| format!("{} x {} x {} m", d[0], d[1], d[2]))).or(o.max.map(|x| format!("{x} m long"))).unwrap_or_default();
Tile { img: refs_dir(dir).join(format!("{}.png", o.id)), label: format!("{} {size}", o.id) }
})
.collect();
let mut rows = vec![style];
rows.extend(refs.chunks(4).map(|c| c.iter().map(|t| Tile { img: t.img.clone(), label: t.label.clone() }).collect()));
let file = dir.join("review/refs.png");
sheet("Reference sheet: the style, then every object's reference", &rows, 320, &file)?;
Ok(format!("wrote {}: regenerate an outlier before any 3D (raea make refs --only ID); ask it: raea ask {} --std make.refs.outlier --std make.refs.two_objects --std make.refs.brands", file.display(), file.display()))
}
/// The flow that sends one reference to both generators, each at its face limit.
pub fn gen_flow(m: &Make, o: &Object, reference: &Path, tripo: &str, meshy: &str) -> Value {
let faces = if o.hero == Some(true) { HERO_FACES } else { PROP_FACES };
let prompt = o.prompt.clone().unwrap_or_else(|| o.label.clone());
let _ = m;
json!({"flow": 1, "steps": {
"ref": {"op": "media.load", "in": {"path": reference.display().to_string()}},
"tripo": {"op": "mesh.generate", "model": tripo, "in": {"prompt": prompt, "image": "@ref", "x_face_limit": faces}},
"meshy": {"op": "mesh.generate", "model": meshy, "in": {"prompt": prompt, "image": "@ref"}}
}, "out": ["tripo", "meshy"]})
}
pub fn gen_dir(dir: &Path, id: &str) -> PathBuf {
dir.join("out/kit/gen").join(id)
}
/// Every reference to both generators: out/kit/gen/ID/tripo.glb and meshy.glb.
pub fn generate(dir: &Path, m: &Make, only: &[String], tripo: &str, meshy: &str, dry: bool) -> Result<String, String> {
let mut said = Vec::new();
let mut spent = 0.0;
for o in objects(m, only) {
let reference = refs_dir(dir).join(format!("{}.png", o.id));
if !reference.is_file() {
return Err(format!("raea make gen: no reference for {} ({}): raea make refs --only {}", o.id, reference.display(), o.id));
}
let to = gen_dir(dir, &o.id);
// both models already there: a rerun (after a stop, or for the pieces still missing) doesn't pay twice
if !dry && to.join("tripo.glb").is_file() && to.join("meshy.glb").is_file() {
said.push(format!("{}: already made ({})", o.id, to.display()));
continue;
}
std::fs::create_dir_all(&to).map_err(|e| format!("{}: {e}", to.display()))?;
if !dry {
eprintln!("raea make gen: {} on {tripo} and {meshy} (a few minutes each)", o.id);
}
let flow = to.join("flow.json");
std::fs::write(&flow, serde_json::to_string_pretty(&gen_flow(m, o, &reference, tripo, meshy)).unwrap_or_default()).map_err(|e| e.to_string())?;
// quoted first: the run is capped at its own quote (a little over, for rounding), never gen's default cap
let plan = raea(&["gen".into(), "plan".into(), flow.display().to_string()], &[])?;
let out = if dry {
plan
} else {
let cap = (cents(&plan) * 1.1).ceil().max(1.0) as u64;
raea(&["gen".into(), "run".into(), flow.display().to_string(), "-o".into(), to.display().to_string(), "--max-cents".into(), cap.to_string()], &[])?
};
spent += cents(&out);
said.push(if dry { format!("{}: {}", o.id, quote(&out)) } else { format!("{}: {}", o.id, to.display()) });
}
let tail = if dry { format!("about ${:.2} in all; nothing spent", spent / 100.0) } else { format!("spent about ${:.2}; next: raea make pick-sheet", spent / 100.0) };
Ok(format!("{}\n{tail}", said.join("\n")))
}
/// The model a pick's generator ran (from its flow.json), for the sidecar.
fn pick_model(dir: &Path, id: &str, generator: &str) -> String {
let flow: Option<Value> = std::fs::read_to_string(gen_dir(dir, id).join("flow.json")).ok().and_then(|t| serde_json::from_str(&t).ok());
flow.and_then(|f| f["steps"][generator]["model"].as_str().map(String::from)).unwrap_or_else(|| generator.to_string())
}
pub fn picks_file(dir: &Path) -> PathBuf {
dir.join("out/kit/picks.json")
}
/// The picks so far, by object id: {generator, why}.
pub fn picks(dir: &Path) -> serde_json::Map<String, Value> {
std::fs::read_to_string(picks_file(dir)).ok().and_then(|t| serde_json::from_str(&t).ok()).unwrap_or_default()
}
/// One object's pick and why, recorded (MK11).
pub fn choose(dir: &Path, m: &Make, id: &str, generator: &str, why: &str) -> Result<String, String> {
if !m.objects.iter().any(|o| o.id == id) {
return Err(format!("raea make pick: no object `{id}` in the plan"));
}
let glb = gen_dir(dir, id).join(format!("{generator}.glb"));
if !glb.is_file() {
return Err(format!("raea make pick: no {} (the generators are tripo and meshy: raea make gen --only {id})", glb.display()));
}
if why.trim().is_empty() {
return Err("raea make pick: say why in one line (\"sharper dial numerals; Tripo fused the handset to the cradle\")".into());
}
let mut p = picks(dir);
p.insert(id.into(), json!({"generator": generator, "why": why.trim()}));
let f = picks_file(dir);
std::fs::write(&f, serde_json::to_string_pretty(&p).unwrap_or_default()).map_err(|e| format!("{}: {e}", f.display()))?;
Ok(format!("picked {generator} for {id}: {}", why.trim()))
}
/// The triangles gen check measured.
fn triangles(glb: &Path) -> Result<u64, String> {
let out = raea(&["gen".into(), "check".into(), glb.display().to_string(), "--json".into()], &[]).or_else(|e| if e.contains('{') { Ok(e) } else { Err(e) })?;
let v: Value = serde_json::from_str(out.trim()).map_err(|e| format!("gen check {}: {e}", glb.display()))?;
v["measured"]["triangles"].as_u64().ok_or_else(|| format!("gen check couldn't read {}", glb.display()))
}
/// Each pick fitted to its real size (front -Y, bottom-centre, metres) and a quarter-triangle LOD1 beside it, each
/// with a sidecar saying how it was made (MK12).
pub fn prep(dir: &Path, m: &Make, only: &[String]) -> Result<String, String> {
let p = picks(dir);
let mut said = Vec::new();
for o in objects(m, only) {
let Some(pick) = p.get(&o.id) else {
said.push(format!("{}: no pick yet (raea make pick {} tripo|meshy \"why\")", o.id, o.id));
continue;
};
let generator = pick["generator"].as_str().unwrap_or("tripo");
let src = gen_dir(dir, &o.id).join(format!("{generator}.glb"));
let to = dir.join("out/kit").join(&o.id);
std::fs::create_dir_all(&to).map_err(|e| format!("{}: {e}", to.display()))?;
let full = to.join(format!("{}.glb", o.id));
let mut args = vec!["gen".into(), "check".into(), src.display().to_string()];
args.extend(fit_args(o, measured_size(&src)));
args.extend(["-o".into(), full.display().to_string()]);
// gen check exits non-zero on a finding it can't fix; the fitted copy is still written, and its findings said
let _ = raea(&args, &[]);
if !full.is_file() {
return Err(format!("{}: gen check wrote no fitted copy of {}", o.id, src.display()));
}
let tris = triangles(&full)?;
let lod = to.join(format!("{}_lod1.glb", o.id));
let quarter = (tris / 4).max(500);
let model = pick_model(dir, &o.id, generator);
// the sidecar the Blender scripts carry along (source, licence, credit) and how it was made: ours, generated
let made = |what: &str, tris: u64| {
json!({"source": format!("generated by raea make: {model} from out/kit/refs/{}.png", o.id), "license": "ours (generated for this project)", "credit": "",
"made": {"by": "raea make (docs/make.feature)", "route": "gen", "generator": generator, "model": model, "why": pick["why"], "prompt": o.prompt, "reference": format!("out/kit/refs/{}.png", o.id),
"style": m.style, "what": what, "triangles": tris, "source": if o.source.is_some() { json!(o.source) } else { Value::Null }}})
};
std::fs::write(full.with_extension("glb.json"), serde_json::to_string_pretty(&made("fitted to its real size", tris)).unwrap_or_default()).map_err(|e| e.to_string())?;
raea(&["blender".into(), "run".into(), "blender/decimate.py".into(), full.display().to_string(), lod.display().to_string(), quarter.to_string()], &[])?;
// decimate.py wrote the LOD's sidecar from the model's, with its step; it says what it is, over the copy
let side = lod.with_extension("glb.json");
let mut v: Value = std::fs::read_to_string(&side).ok().and_then(|t| serde_json::from_str(&t).ok()).unwrap_or_else(|| made("", 0));
v["made"] = made("LOD1: a quarter of the fitted model's triangles", quarter)["made"].clone();
std::fs::write(&side, serde_json::to_string_pretty(&v).unwrap_or_default()).map_err(|e| e.to_string())?;
said.push(format!("{}: {} ({tris} triangles) and its LOD1 ({quarter})", o.id, full.display()));
}
Ok(said.join("\n"))
}
+224
View File
@@ -0,0 +1,224 @@
//! The kit's sheets and its landing (docs/make.feature MK11, MK13): the pick sheet (each object's reference beside
//! both generators' models, each in colour and in clay, drawn in raea), and the kit landed as a component set (one
//! component per object, its model and LOD imported beside it, so it travels as one folder), a `<Lineup>` of them all
//! with a scale bar, a thumb each, and kit.json.
//!
//! raea make pick-sheet [DIR] [--only ID,...]
//! raea make kit [DIR] [--name KIT] [--to FOLDER]
use std::path::{Path, PathBuf};
use raea_core_brief::make::{Make, Object};
use serde_json::{Value, json};
use crate::kit::{gen_dir, objects, picks};
use crate::sheet::{Tile, sheet};
use crate::shots::raea;
/// The tallest side an object will have once fitted, metres (for framing it): its height, its box, or its longest side.
pub fn tall(o: &Object) -> f64 {
o.h.or(o.dims.map(|d| d[2])).or(o.max).unwrap_or(0.5).max(0.02)
}
/// The size a model is framed to: its biggest side (a stapler is framed by its length, not its height).
pub fn frame_size(o: &Object) -> f64 {
o.dims.map(|[w, d, h]| w.max(d).max(h)).unwrap_or_else(|| tall(o))
}
/// A composition showing one model alone, fitted (bottom-centred at the origin, metres), on a pale floor in a
/// three-quarter view from slightly above, framed to its height.
pub fn viewer(model: &Path, h: f64) -> String {
let d = h * 3.2 + 0.06;
let m = model.file_name().map(|f| f.to_string_lossy().to_string()).unwrap_or_default();
format!(
"// written by raea make (pick sheet, kit thumbs): one model, framed to its height\nimport {{ AbsoluteFill, Composition, registerRoot }} from \"raea\";\nimport {{ Model }} from \"raea/3d\";\nimport {{ StandardMaterial }} from \"raea/pbr\";\nimport {{ Cuboid, Mesh3d }} from \"raea/mesh\";\nimport {{ AmbientLight, DirectionalLight }} from \"raea/light\";\nimport {{ Transform }} from \"raea/transform\";\nimport {{ Camera3d }} from \"raea/camera\";\nimport model from \"./{m}\";\n\nfunction View() {{\n return (\n <AbsoluteFill style={{{{ background: \"#d9d6d0\" }}}}>\n <Camera3d transform={{Transform.fromXyz({x:.3}, {y:.3}, {z:.3}).lookingAt([0, {cy:.3}, 0])}} projection={{{{ Perspective: {{ fov: (30 * Math.PI) / 180 }} }}}} />\n <AmbientLight brightness={{300}} />\n <DirectionalLight transform={{Transform.fromXyz(2, 5, 3).lookingAt([0, 0, 0])}} illuminance={{9000}} shadow_maps_enabled />\n <Mesh3d transform={{Transform.fromXyz(0, -0.005, 0)}}>\n <Cuboid half_size={{[{g:.2}, 0.005, {g:.2}]}} />\n <StandardMaterial base_color=\"#cfccc6\" perceptual_roughness={{0.95}} />\n </Mesh3d>\n <Model src={{model}} />\n </AbsoluteFill>\n );\n}}\n\nregisterRoot(() => <Composition id=\"view\" component={{View}} width={{768}} height={{768}} fps={{30}} durationInFrames={{1}} />);\n",
x = d * 0.62,
y = h * 0.55 + d * 0.32,
z = d * 0.78,
cy = h * 0.45,
g = (h * 4.0).max(1.0),
)
}
/// One model drawn in colour and in clay: (colour.png, clay.png) beside it.
pub fn draw(model: &Path, h: f64) -> Result<(PathBuf, PathBuf), String> {
let dir = model.parent().ok_or("a model's folder")?;
let stem = model.file_stem().map(|f| f.to_string_lossy().to_string()).unwrap_or_default();
let tsx = dir.join(format!("{stem}.view.tsx"));
std::fs::write(&tsx, viewer(model, h)).map_err(|e| format!("{}: {e}", tsx.display()))?;
let (colour, clay) = (dir.join(format!("{stem}.colour.png")), dir.join(format!("{stem}.clay.png")));
raea(&["render".into(), tsx.display().to_string(), "-o".into(), colour.display().to_string(), "--frame".into(), "0".into()], &[])?;
raea(&["render".into(), tsx.display().to_string(), "-o".into(), clay.display().to_string(), "--frame".into(), "0".into(), "--clay".into()], &[])?;
Ok((colour, clay))
}
/// The pick sheet: a row an object, its reference, then each generator's model fitted to size, in colour and in clay.
pub fn pick_sheet(dir: &Path, m: &Make, only: &[String]) -> Result<String, String> {
let mut rows = Vec::new();
for o in objects(m, only) {
let g = gen_dir(dir, &o.id);
let mut row = vec![Tile { img: crate::kit::refs_dir(dir).join(format!("{}.png", o.id)), label: format!("{} reference", o.id) }];
for generator in ["tripo", "meshy"] {
let raw = g.join(format!("{generator}.glb"));
if !raw.is_file() {
row.push(Tile { img: g.join("none.png"), label: format!("{generator}: not made") });
continue;
}
// fitted to its real size first, so both are framed alike
let fit = g.join(format!("{generator}.fit.glb"));
let mut args = vec!["gen".into(), "check".into(), raw.display().to_string()];
args.extend(crate::kit::fit_args(o, crate::kit::measured_size(&raw)));
args.extend(["-o".into(), fit.display().to_string()]);
let _ = raea(&args, &[]);
let shown = if fit.is_file() { fit } else { raw };
let (colour, clay) = draw(&shown, frame_size(o))?;
row.push(Tile { img: colour, label: generator.to_string() });
row.push(Tile { img: clay, label: format!("{generator} clay") });
}
rows.push(row);
}
if rows.is_empty() {
return Err("raea make pick-sheet: no objects in the plan (or none named)".into());
}
let file = dir.join("review/picks.png");
sheet("Pick sheet: reference | Tripo | Tripo clay | Meshy | Meshy clay", &rows, 300, &file)?;
Ok(format!("wrote {}: judge each on its clay (fused parts, blobs, fidelity to the reference), then: raea make pick ID tripo|meshy \"why\"", file.display()))
}
/// A component's name from an object id: rotary_phone -> RotaryPhone.
pub fn component_name(id: &str) -> String {
let mut out = String::new();
for w in id.split(['_', '-']) {
let mut c = w.chars();
out.extend(c.next().into_iter().flat_map(char::to_uppercase).chain(c));
}
out
}
/// One object's component: its model imported beside it, its LOD for far away, placed by the props a composition gives.
pub fn component(o: &Object, why: &str) -> String {
let n = component_name(&o.id);
format!(
"// raea component add: {label}, {h} m, from the kit's style (raea make kit; {why})\nimport {{ Model }} from \"raea/3d\";\nimport full from \"./{id}.glb\";\nimport far from \"./{id}_lod1.glb\";\n\ntype Props = {{\n position?: [number, number, number];\n rotation?: [number, number, number];\n /** the quarter-triangle model, for when it's small on screen */\n lod?: boolean;\n}};\n\n/** {label}: fitted to its real size, its bottom at the origin, its front toward +z. */\nexport default function {n}({{ position = [0, 0, 0], rotation = [0, 0, 0], lod = false }}: Props) {{\n return <Model src={{lod ? far : full}} position={{position}} rotation={{rotation}} />;\n}}\n",
label = o.label,
h = tall(o),
id = o.id,
why = why.replace('\n', " "),
)
}
/// The lineup: every component side by side in the plan's order, gaps between, a label each lying in front of the pieces and a
/// scale bar (the longest round length the set covers), seen from a little right of centre and above.
pub fn lineup(m: &Make, kit: &str) -> String {
let mut imports = String::new();
let mut parts = String::new();
let mut x = 0.0;
let foot = |o: &Object| o.dims.map(|d| (d[0], d[1])).unwrap_or((tall(o) * 0.8, tall(o) * 0.8));
let widths: Vec<f64> = m.objects.iter().map(|o| foot(o).0).collect();
let gap = (widths.iter().cloned().fold(0.0, f64::max) * 0.6).clamp(0.03, 0.3);
let total: f64 = widths.iter().sum::<f64>() + gap * (m.objects.len().saturating_sub(1)) as f64;
let highest = m.objects.iter().map(tall).fold(0.02, f64::max);
let deepest = m.objects.iter().map(|o| foot(o).1).fold(0.02, f64::max);
// labels lie on the floor in front of every piece, so none hides one; the bar in front of them
let fs = (total * 0.035).clamp(0.01, 0.06);
let lz = deepest / 2.0 + fs * 1.9;
let (bar, bar_label) = scale_bar(total);
let bz = lz + fs * 2.8;
for (o, w) in m.objects.iter().zip(&widths) {
let n = component_name(&o.id);
imports.push_str(&format!("import {n} from \"./{n}\";\n"));
let cx = x + w / 2.0 - total / 2.0;
parts.push_str(&format!(" <{n} position={{[{cx:.3}, 0, 0]}} />\n <Mesh3d transform={{Transform.fromXyz({cx:.3}, 0.002, {lz:.3}).withRotation(FLAT)}}>\n <Text3D size={{{fs:.3}}} depth={{0.001}} read={{false}}>{{{label:?}}}</Text3D>\n <StandardMaterial base_color=\"#2a2a2a\" />\n </Mesh3d>\n", label = o.label));
x += w + gap;
}
// framed to the set: wide enough for every piece, tall enough for the highest and the bar in front, from a little
// to the right and above, so a long piece shows its length
let d = (total * 1.45).max(highest * 4.2).max(bz * 3.0).max(0.35);
let (cx, cy, cz) = (d * 0.34, highest * 0.5 + d * 0.36, d * 0.88 + bz * 0.5);
format!(
"// raea make kit: the {kit} kit's lineup, every piece at its real size beside a {bar_label} bar (the kit's cover)\nimport {{ AbsoluteFill, Composition, registerRoot }} from \"raea\";\nimport {{ Text3D }} from \"raea/3d\";\nimport {{ StandardMaterial }} from \"raea/pbr\";\nimport {{ Cuboid, Mesh3d }} from \"raea/mesh\";\nimport {{ AmbientLight, DirectionalLight }} from \"raea/light\";\nimport {{ Transform }} from \"raea/transform\";\nimport {{ Camera3d }} from \"raea/camera\";\n{imports}\n// lying flat on the floor, reading toward the camera\nconst FLAT: [number, number, number, number] = [-0.7071068, 0, 0, 0.7071068];\n\nexport function Lineup() {{\n return (\n <AbsoluteFill style={{{{ background: \"#d6d2ca\" }}}}>\n <Camera3d transform={{Transform.fromXyz({cx:.3}, {cy:.3}, {cz:.3}).lookingAt([0, {ty:.3}, {tz:.3}])}} projection={{{{ Perspective: {{ fov: (30 * Math.PI) / 180 }} }}}} />\n <AmbientLight brightness={{300}} />\n <DirectionalLight transform={{Transform.fromXyz(2, 6, 4).lookingAt([0, 0, 0])}} illuminance={{9000}} shadow_maps_enabled />\n <Mesh3d transform={{Transform.fromXyz(0, -0.005, 0)}}>\n <Cuboid half_size={{[{g:.2}, 0.005, {g:.2}]}} />\n <StandardMaterial base_color=\"#d6d2ca\" perceptual_roughness={{0.95}} />\n </Mesh3d>\n <Mesh3d transform={{Transform.fromXyz({bx:.3}, 0.002, {bz:.3})}}>\n <Cuboid half_size={{[{bh:.3}, 0.002, {bt:.4}]}} />\n <StandardMaterial base_color=\"#202020\" />\n </Mesh3d>\n <Mesh3d transform={{Transform.fromXyz({bx:.3}, 0.002, {blz:.3}).withRotation(FLAT)}}>\n <Text3D size={{{fs:.3}}} depth={{0.001}} read={{false}}>{bar_label}</Text3D>\n <StandardMaterial base_color=\"#202020\" />\n </Mesh3d>\n{parts} </AbsoluteFill>\n );\n}}\n\nregisterRoot(() => <Composition id=\"lineup\" component={{Lineup}} width={{1920}} height={{1080}} fps={{30}} durationInFrames={{1}} />);\n",
ty = highest * 0.35,
tz = bz * 0.45,
// a floor past every edge of the frame (the review's views leave a ground slab out of their framing)
g = (total * 3.0).max(2.0),
bh = bar / 2.0,
bt = fs * 0.25,
bx = -total / 2.0 + bar / 2.0,
blz = bz + fs * 1.3,
)
}
/// The scale bar for a set this wide: the longest round length that fits under it, and its label.
pub fn scale_bar(width: f64) -> (f64, &'static str) {
[(1.0, "1 m"), (0.5, "50 cm"), (0.25, "25 cm"), (0.1, "10 cm"), (0.05, "5 cm")].into_iter().find(|(l, _)| *l <= width.max(0.05)).unwrap_or((0.05, "5 cm"))
}
/// Where a kit lands: `--to`, else the workspace's shared/components/KIT (every project imports it as
/// @shared/components/KIT), else the project's components/KIT.
pub fn kit_dir(dir: &Path, kit: &str, to: Option<&str>) -> PathBuf {
if let Some(t) = to {
return PathBuf::from(t);
}
if let Some(ws) = raea_core_facts::record::up(dir, ".raea/workspace") {
let shared = if !ws.join("shared").is_dir() && ws.join("components").is_dir() { ws.join("components") } else { ws.join("shared/components") };
return shared.join(kit);
}
let project = raea_core_facts::record::up(dir, ".raea/project").unwrap_or_else(|| dir.to_path_buf());
project.join("components").join(kit)
}
fn copy(a: &Path, b: &Path) -> Result<(), String> {
match std::fs::copy(a, b) {
Ok(_) => Ok(()),
Err(e) => Err(format!("{} -> {}: {e}", a.display(), b.display())),
}
}
/// The kit landed: each prepped object's model, LOD and sidecars, its component and thumb; the lineup and its cover
/// render; kit.json. Objects not prepped yet are named, not skipped silently.
pub fn land(dir: &Path, m: &Make, name: Option<&str>, to: Option<&str>) -> Result<String, String> {
let kit = name.map(str::to_string).unwrap_or_else(|| dir.file_name().map(|f| f.to_string_lossy().to_string()).unwrap_or("kit".into()));
let dest = kit_dir(dir, &kit, to);
std::fs::create_dir_all(dest.join("thumbs")).map_err(|e| format!("{}: {e}", dest.display()))?;
let p = picks(dir);
let (mut items, mut missing) = (Vec::new(), Vec::new());
for o in &m.objects {
let from = dir.join("out/kit").join(&o.id);
let (full, lod) = (from.join(format!("{}.glb", o.id)), from.join(format!("{}_lod1.glb", o.id)));
if !full.is_file() || !lod.is_file() {
missing.push(o.id.clone());
continue;
}
for f in [&full, &lod] {
let name = f.file_name().unwrap();
copy(f, &dest.join(name))?;
let side = f.with_extension("glb.json");
if side.is_file() {
copy(&side, &dest.join(format!("{}.json", name.to_string_lossy())))?;
}
}
let why = p.get(&o.id).and_then(|v| v["why"].as_str()).unwrap_or("");
let n = component_name(&o.id);
std::fs::write(dest.join(format!("{n}.tsx")), component(o, why)).map_err(|e| e.to_string())?;
let (colour, _) = draw(&full, frame_size(o))?;
copy(&colour, &dest.join("thumbs").join(format!("{}.png", o.id)))?;
std::fs::create_dir_all(dir.join("out/kit/thumbs")).map_err(|e| e.to_string())?;
copy(&colour, &dir.join("out/kit/thumbs").join(format!("{}.png", o.id)))?;
items.push(json!({"id": o.id, "label": o.label, "component": format!("{n}.tsx"), "model": format!("{}.glb", o.id), "lod1": format!("{}_lod1.glb", o.id),
"thumb": format!("thumbs/{}.png", o.id), "h": tall(o), "pick": p.get(&o.id).cloned().unwrap_or(Value::Null)}));
}
if !missing.is_empty() {
return Err(format!("raea make kit: not prepped yet: {} (raea make prep --only {})", missing.join(", "), missing.join(",")));
}
let lineup_tsx = dest.join("lineup.tsx");
std::fs::write(&lineup_tsx, lineup(m, &kit)).map_err(|e| e.to_string())?;
let cover = dest.join("cover.png");
raea(&["render".into(), lineup_tsx.display().to_string(), "-o".into(), cover.display().to_string(), "--frame".into(), "0".into()], &[])?;
let doc = json!({"kit": kit, "style": m.style, "references": m.references, "items": items, "lineup": "lineup.tsx", "cover": "cover.png", "landed": dest.display().to_string(), "made": {"by": "raea make kit (docs/make.feature MK13)"}});
let text = serde_json::to_string_pretty(&doc).unwrap_or_default();
std::fs::write(dest.join("kit.json"), &text).map_err(|e| e.to_string())?;
// the job's own record of it, what `raea make status` counts (core/brief deliverables)
std::fs::write(dir.join("out/kit/kit.json"), &text).map_err(|e| e.to_string())?;
copy(&cover, &dir.join("out/kit/lineup.png"))?;
Ok(format!("landed the {kit} kit ({} pieces) in {}: components, lineup.tsx, cover.png, thumbs/, kit.json", items.len(), dest.display()))
}
+216
View File
@@ -0,0 +1,216 @@
//! `raea make`: a scene, kit or shot made to its frozen plan (`make` on brief.ts, core/brief make.rs) and held to the
//! review loop (docs/make.feature). `status` decides, in code, what's missing and whether the agent may stop; the Stop
//! hook (apps/check hook.rs) asks it at the end of every turn.
//!
//! raea make status [DIR] [--json] [--plan] (--plan: the gates as check lines in plan.org, MK3)
//! raea make plan|refs|sheet refs|gen|pick-sheet|pick|prep|kit|framing|lenschart ... (the steps, USAGE)
pub mod asked;
pub mod floor;
pub mod kit;
pub mod kitout;
pub mod plan;
pub mod sheet;
pub mod shots;
pub mod status;
use std::path::{Path, PathBuf};
use raea_core_brief::make::Make;
use serde_json::Value;
pub const USAGE: &str = "raea make status [DIR] [--json] [--plan] (a scene, kit, shot, cut or goal held to its plan, `make` on brief.ts: what's missing, each gate (renders and checks, raea ask's calibrated questions, the critic on the kind's rubric), the judge's rounds, and whether it's done, decided in code; --plan writes the gates as check lines under the job's task in plan.org; the agent's Stop hook holds it there)
raea make judge [DIR] [--by claude|kimi] (a goal job: a fresh critic, which only reads, judges each `says` rule; review/goal.judge.json)
raea make plan [DIR] [--no-review] (the plan stop: review/plan/floor-plan.png, a grey-box blockout from the entrance and its review sheets, comparison.png beside reference 0)
raea make refs [DIR] [--only ID,...] [--model M] [--dry] (a kit: every object's reference from the style images, in the plan's style, then review/refs.png; --dry quotes it)
raea make sheet refs [DIR] (review/refs.png again: the style images, then every reference)
raea make gen [DIR] [--only ID,...] [--tripo M] [--meshy M] [--dry] (each reference to both generators, Tripo H3.1 and Meshy on fal: out/kit/gen/ID/)
raea make pick-sheet [DIR] [--only ID,...] (review/picks.png: reference | Tripo | Tripo clay | Meshy | Meshy clay, fitted to size)
raea make pick ID tripo|meshy \"why\" [DIR] (the pick and its reason, out/kit/picks.json)
raea make prep [DIR] [--only ID,...] (each pick fitted to its real size, a quarter-triangle _lod1 beside it, .glb.json sidecars)
raea make kit [DIR] [--name KIT] [--to FOLDER] (the kit as a component set: shared/components/KIT, lineup.tsx, cover.png, thumbs, kit.json)
raea make framing [DIR] [--only NAME,...] [--out DIR] (a shot list: each shot's first, middle and last frame on framing.png, stamped)
raea make lenschart SHOT [DIR] [--out DIR] (a shot's first frame at 18, 24, 35, 50, 85 and 135 mm on lens-SHOT.png)";
/// The brief.ts the job is read from: DIR's own, else the nearest above it inside its raea project.
pub fn brief_path(dir: &Path) -> Option<PathBuf> {
let dir = dunce::canonicalize(dir).ok()?;
let project = raea_core_facts::record::up(&dir, ".raea/project");
for d in dir.ancestors() {
let p = d.join("brief.ts");
if p.is_file() {
return Some(p);
}
if project.as_deref() == Some(d) {
break;
}
}
None
}
/// Whether a brief.ts has a job at all, read from its words: cheap enough for a hook at every turn's end, so the
/// module is only evaluated when it can matter.
pub fn has_make(brief: &Path) -> bool {
std::fs::read_to_string(brief).is_ok_and(|t| t.contains("make:") || t.contains("make :"))
}
/// The plan from brief.ts, evaluated by `raea spec FILE --as brief` (the module runs; Rust checks it against core/brief).
pub fn read_make(brief: &Path) -> Result<Option<Make>, String> {
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let out = std::process::Command::new(exe).arg("spec").arg(brief).args(["--as", "brief"]).env("RAEA_RECORD", "off").output().map_err(|e| e.to_string())?;
let text = String::from_utf8_lossy(&out.stdout);
let start = text.find('{').ok_or_else(|| format!("{} didn't read as a brief: {}", brief.display(), raea_app_judge::why_refused(&out)))?;
let v: Value = serde_json::from_str(&text[start..]).map_err(|e| format!("{}: {e}", brief.display()))?;
let b = v.get("brief").cloned().unwrap_or(v);
match b.get("make") {
None | Some(Value::Null) => Ok(None),
Some(m) => serde_json::from_value(m.clone()).map(Some).map_err(|e| format!("{}: make: {e}", brief.display())),
}
}
/// The judge's rounds beside the brief (review/judge.log.jsonl, as `raea judge` keeps them), the newest round's
/// verdict (judge.json, or judge.BY.json for an agent critic), and when the log was last written.
fn judged(dir: &Path) -> (Vec<Value>, Option<Value>, Option<std::time::SystemTime>) {
let log = dir.join("review").join("judge.log.jsonl");
let rounds: Vec<Value> = std::fs::read_to_string(&log).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).collect();
let verdict = rounds.last().and_then(|r| {
let d = status::round_dir(dir, r)?;
let file = r["by"].as_str().filter(|b| *b != "clef").map_or_else(|| "judge.json".to_string(), |b| format!("judge.{b}.json"));
serde_json::from_str(&std::fs::read_to_string(d.join(file)).ok()?).ok()
});
let at = std::fs::metadata(&log).and_then(|m| m.modified()).ok();
(rounds, verdict, at)
}
/// The status of the job whose brief is at `brief`, with its plan already read.
pub fn status_of(brief: &Path, make: &Make) -> Value {
let dir = brief.parent().unwrap_or(Path::new("."));
let project = raea_core_facts::record::up(dir, ".raea/project");
let record = project.as_deref().map(raea_core_facts::record::read).unwrap_or_default();
let (rounds, verdict, judged_at) = judged(dir);
let ledger = asked::Ledger::read();
let job = status::Job { make, dir, project: project.as_deref(), record: &record, rounds: &rounds, verdict: verdict.as_ref(), judged_at, ledger: &ledger, score_gates: raea_app_judge::kind_gates(make.kind.name()) };
let mut s = status::status(&job);
s["brief"] = Value::String(brief.display().to_string());
s
}
/// For the hook: the job's status from a folder, None when there's no job there (no brief.ts, or no `make` on it).
pub fn status_in(dir: &Path) -> Result<Option<Value>, String> {
let Some(brief) = brief_path(dir).filter(|b| has_make(b)) else { return Ok(None) };
let Some(make) = read_make(&brief)? else { return Ok(None) };
Ok(Some(status_of(&brief, &make)))
}
/// The flags that take a value: what follows them isn't a positional argument.
const VALUED: [&str; 8] = ["--only", "--model", "--tripo", "--meshy", "--name", "--to", "--out", "--by"];
fn flag<'a>(args: &'a [String], k: &str) -> Option<&'a str> {
args.iter().position(|a| a == k).and_then(|i| args.get(i + 1)).map(String::as_str)
}
/// The positional arguments after the verb (words), flags and their values left out.
pub fn positional(args: &[String], skip: usize) -> Vec<String> {
let mut out = Vec::new();
let mut i = skip;
while i < args.len() {
if VALUED.contains(&args[i].as_str()) {
i += 2;
continue;
}
if !args[i].starts_with("--") {
out.push(args[i].clone());
}
i += 1;
}
out
}
/// A flag's comma list (`--only a,b`), empty when it isn't given.
fn list(args: &[String], k: &str) -> Vec<String> {
let Some(v) = flag(args, k) else { return vec![] };
v.split(',').map(str::trim).filter(|s| !s.is_empty()).map(String::from).collect()
}
/// What `--only` names of a list (all of it when it names nothing), each item known by `name`.
pub(crate) fn only<'a, T>(all: &'a [T], only: &[String], name: impl Fn(&T) -> &str) -> Vec<&'a T> {
all.iter().filter(|t| only.is_empty() || only.iter().any(|n| n.as_str() == name(t))).collect()
}
/// The job's brief and plan from a folder.
fn job(dir: &Path) -> Result<(PathBuf, Make), String> {
let brief = brief_path(dir).ok_or_else(|| format!("raea make: no brief.ts at or above {} in its project", dir.display()))?;
let make = read_make(&brief)?.ok_or_else(|| format!("raea make: {} has no `make` (scene(), kit() or shot() from raea/brief)", brief.display()))?;
Ok((brief, make))
}
/// The steps: each reads the plan from DIR's brief.ts and works beside it.
fn step(verb: &str, args: &[String]) -> Result<String, String> {
let skip = if verb == "sheet" { 3 } else { 2 };
let pos = positional(args, skip);
let (words, dir_at) = match verb {
"pick" => (3, 3),
"lenschart" => (1, 1),
_ => (0, 0),
};
if pos.len() < words {
return Err(USAGE.into());
}
let dir = pos.get(dir_at).map(PathBuf::from).unwrap_or_else(|| PathBuf::from("."));
let (brief, m) = job(&dir)?;
let here = brief.parent().unwrap_or(Path::new(".")).to_path_buf();
let only = list(args, "--only");
let dry = args.iter().any(|a| a == "--dry");
let out_or = |d: PathBuf| flag(args, "--out").map(PathBuf::from).unwrap_or(d);
match verb {
"plan" => floor::draw_plan(&here, &m, !args.iter().any(|a| a == "--no-review")),
"refs" => kit::refs(&here, &m, &only, flag(args, "--model"), dry),
"sheet" => match args.get(2).map(String::as_str) {
Some("refs") => kit::sheet_refs(&here, &m),
Some("picks") => kitout::pick_sheet(&here, &m, &only),
Some("framing") => shots::framing(&here, &m, &only, &out_or(here.join("review"))),
_ => Err("raea make sheet refs|picks|framing [DIR]".into()),
},
"gen" => kit::generate(&here, &m, &only, flag(args, "--tripo").unwrap_or(kit::TRIPO), flag(args, "--meshy").unwrap_or(kit::MESHY), dry),
"pick-sheet" => kitout::pick_sheet(&here, &m, &only),
"pick" => kit::choose(&here, &m, &pos[0], &pos[1], &pos[2]),
"prep" => kit::prep(&here, &m, &only),
"kit" => kitout::land(&here, &m, flag(args, "--name"), flag(args, "--to")),
"framing" => shots::framing(&here, &m, &only, &out_or(here.join("review"))),
"lenschart" => shots::lenschart(&here, &m, &pos[0], &out_or(here.join("review"))),
_ => Err(USAGE.into()),
}
}
pub fn cli(args: &[String]) -> Result<String, String> {
match args.get(1).map(String::as_str) {
Some("status") => {}
Some("judge") => return job(&PathBuf::from(positional(args, 2).first().map_or(".", String::as_str))).and_then(|(b, m)| raea_runtime_goal_plan::judge(m.goal.as_ref().ok_or("raea make judge: the job isn't a goal({...})")?, b.parent().unwrap_or(Path::new(".")), flag(args, "--by").unwrap_or("claude")).map(|v| serde_json::to_string_pretty(&v).unwrap_or_default())),
Some(v @ ("plan" | "refs" | "sheet" | "gen" | "pick-sheet" | "pick" | "prep" | "kit" | "framing" | "lenschart")) => return step(v, args),
_ => return Err(USAGE.into()),
}
let dir = positional(args, 2).first().map(PathBuf::from).unwrap_or_else(|| PathBuf::from("."));
let (brief, make) = job(&dir)?;
let mut s = status_of(&brief, &make);
if args.iter().any(|a| a == "--plan") {
let dir = brief.parent().unwrap_or(Path::new("."));
let root = raea_core_facts::record::up(dir, ".raea/project").unwrap_or_else(|| dir.to_path_buf());
let kind = s["kind"].as_str().unwrap_or("make").to_string();
let (file, task) = plan::write(&root, &brief, &kind, &s)?;
s["planOrg"] = Value::String(file.display().to_string());
s["planTask"] = Value::String(task);
}
if args.iter().any(|a| a == "--json") {
return Ok(serde_json::to_string_pretty(&s).unwrap_or_default());
}
let mut t = status::text(&s);
if let (Some(p), Some(task)) = (s["planOrg"].as_str(), s["planTask"].as_str()) {
t.push_str(&format!("\nplan.org: the gates are check lines under task {task} in {p}"));
}
Ok(t)
}
#[cfg(test)]
mod tests;
#[cfg(test)]
mod tests_steps;
+95
View File
@@ -0,0 +1,95 @@
//! The job's gates in the project's plan.org (docs/make.feature MK3; docs/plan.feature PL1): one task, its :ID: from the
//! brief's path, each gate and each missing thing a check line under it with a progress cookie, so the person, the app
//! and raea cloud read the same list the Stop hook holds the agent to. MAKING while it isn't done, REVIEW once it is
//! (the person closes it); a task the person marked DONE or DROPPED keeps their mark, and their own lines under it stay.
use std::path::Path;
use serde_json::Value;
/// The task's id: t- and eight letters and digits (PL1b), the same for the same brief.
pub fn task_id(brief_rel: &str) -> String {
let h = brief_rel.bytes().fold(0xcbf2_9ce4_8422_2325u64, |h, b| (h ^ b as u64).wrapping_mul(0x0100_0000_01b3));
format!("t-mk{:06x}", h & 0xff_ffff)
}
fn is_check(line: &str) -> bool {
let t = line.trim_start();
let rest = t.strip_prefix("- ").or_else(|| t.strip_prefix("+ "));
rest.is_some_and(|r| r.starts_with("[ ]") || r.starts_with("[X]") || r.starts_with("[x]") || r.starts_with("[-]"))
}
fn short(s: &str) -> String {
let s = s.replace('\n', " ");
if s.chars().count() > 140 { format!("{}…", s.chars().take(139).collect::<String>()) } else { s }
}
/// The check lines for a status: what's missing, then each gate.
pub fn checks(status: &Value) -> Vec<(bool, String)> {
let mut out: Vec<(bool, String)> = Vec::new();
for m in status["missing"].as_array().into_iter().flatten().filter_map(Value::as_str) {
out.push((false, format!("missing: {}", short(m))));
}
for g in status["gates"].as_array().into_iter().flatten() {
let of = g["of"].as_str().map(|o| format!(" {o}")).unwrap_or_default();
out.push((g["clear"] == true, format!("{}{of}: {}", g["gate"].as_str().unwrap_or("gate"), short(g["says"].as_str().unwrap_or("")))));
}
out
}
/// plan.org's text with the job's task brought up to date (made at the end when it isn't there).
pub fn update(text: &str, title: &str, brief_rel: &str, kind: &str, status: &Value) -> String {
let id = task_id(brief_rel);
let lines: Vec<&str> = text.lines().collect();
let done = status["done"] == true;
let cs = checks(status);
let cookie = format!("[{}/{}]", cs.iter().filter(|c| c.0).count(), cs.len());
let check_lines: Vec<String> = cs.iter().map(|(d, t)| format!("- [{}] {t}", if *d { "X" } else { " " })).collect();
let id_line = lines.iter().position(|l| l.trim() == format!(":ID: {id}") || l.trim() == format!(":ID: {id}"));
let Some(id_at) = id_line else {
let mut out = if text.trim().is_empty() { format!("#+TITLE: {title}\n#+TODO: TODO MAKING REVIEW | DONE DROPPED\n") } else { text.trim_end().to_string() + "\n" };
out.push_str(&format!("\n* {} make: {kind} ({brief_rel}) {cookie}\n:PROPERTIES:\n:ID: {id}\n:KIND: make\n:VERB: {kind}\n:END:\n", if done { "REVIEW" } else { "MAKING" }));
out.push_str(&(check_lines.join("\n") + "\n"));
return out;
};
let head = (0..id_at).rev().find(|&i| lines[i].starts_with('*')).unwrap_or(0);
let stars = lines[head].chars().take_while(|c| *c == '*').count();
let end = (id_at + 1..lines.len()).find(|&i| lines[i].starts_with('*') && lines[i].chars().take_while(|c| *c == '*').count() <= stars).unwrap_or(lines.len());
let drawer_end = (id_at..end).find(|&i| lines[i].trim() == ":END:").unwrap_or(id_at);
// the headline: its keyword brought up to date unless the person closed it, its cookie replaced
let words: Vec<&str> = lines[head][stars..].split_whitespace().collect();
let kw = words.first().copied().unwrap_or("");
let closed = kw == "DONE" || kw == "DROPPED";
let rest: Vec<&str> = words.iter().skip(if ["TODO", "MAKING", "REVIEW", "DONE", "DROPPED"].contains(&kw) { 1 } else { 0 }).copied().filter(|w| !(w.starts_with('[') && w.ends_with(']') && w.contains('/'))).collect();
let kw = if closed { kw } else if done { "REVIEW" } else { "MAKING" };
let headline = format!("{} {kw} {} {cookie}", "*".repeat(stars), rest.join(" "));
let theirs: Vec<&str> = lines[drawer_end + 1..end].iter().copied().filter(|l| !is_check(l)).collect();
let mut out: Vec<String> = lines[..head].iter().map(|l| l.to_string()).collect();
out.push(headline);
out.extend(lines[head + 1..=drawer_end].iter().map(|l| l.to_string()));
out.extend(check_lines);
out.extend(theirs.iter().map(|l| l.to_string()));
out.extend(lines[end..].iter().map(|l| l.to_string()));
out.join("\n") + "\n"
}
/// Writes the job's task into plan.org at the top of `root` (the project's folder, else the brief's): the file and the
/// task's id.
pub fn write(root: &Path, brief: &Path, kind: &str, status: &Value) -> Result<(std::path::PathBuf, String), String> {
let file = root.join("plan.org");
let rel = brief.strip_prefix(root).unwrap_or(brief).to_string_lossy().replace('\\', "/");
let title = root.file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "plan".into());
let text = std::fs::read_to_string(&file).unwrap_or_default();
let next = update(&text, &title, &rel, kind, status);
if next != text {
replace(&file, &next).map_err(|e| format!("{}: {e}", file.display()))?;
}
Ok((file, task_id(&rel)))
}
/// A file's text replaced: written beside it, then moved over it, so a reader never sees half a plan.
fn replace(file: &Path, text: &str) -> std::io::Result<()> {
let tmp = file.with_extension("org.tmp");
std::fs::write(&tmp, text)?;
std::fs::rename(&tmp, file)
}
+96
View File
@@ -0,0 +1,96 @@
//! The contact sheets a gate looks at (docs/make.feature MK10, MK11, MK15): pictures in rows, each labelled under it,
//! a title over them, on one PNG a person, `raea ask` and the critic read at once. Labels are drawn by resvg in the
//! system's own fonts; an SVG drawn whole (the floor plan, MK18) goes through `svg_png`.
use std::path::{Path, PathBuf};
use std::sync::{Arc, OnceLock};
use image::{Rgba, RgbaImage, imageops};
use resvg::{tiny_skia, usvg};
/// One picture on a sheet and what it is.
pub struct Tile {
pub img: PathBuf,
pub label: String,
}
const LABEL_H: u32 = 30;
const TITLE_H: u32 = 44;
const GAP: u32 = 6;
fn options() -> usvg::Options<'static> {
static DB: OnceLock<Arc<usvg::fontdb::Database>> = OnceLock::new();
let db = DB.get_or_init(|| {
let mut db = usvg::fontdb::Database::new();
db.load_system_fonts();
Arc::new(db)
});
usvg::Options { fontdb: db.clone(), font_family: "Helvetica".into(), ..usvg::Options::default() }
}
/// SVG text escaped.
pub fn esc(s: &str) -> String {
let mut out = String::with_capacity(s.len());
for c in s.chars() {
match c {
'&' => out.push_str("&amp;"),
'<' => out.push_str("&lt;"),
'>' => out.push_str("&gt;"),
'"' => out.push_str("&quot;"),
c => out.push(c),
}
}
out
}
/// An SVG document drawn at its own size.
pub fn svg_png(svg: &str) -> Result<RgbaImage, String> {
let tree = usvg::Tree::from_str(svg, &options()).map_err(|e| format!("svg: {e}"))?;
let size = tree.size().to_int_size();
let mut pix = tiny_skia::Pixmap::new(size.width(), size.height()).ok_or("svg: empty size")?;
resvg::render(&tree, tiny_skia::Transform::default(), &mut pix.as_mut());
// tiny-skia keeps premultiplied alpha; image wants it straight
let mut img = RgbaImage::new(size.width(), size.height());
for (p, c) in img.pixels_mut().zip(pix.pixels()) {
let d = c.demultiply();
*p = Rgba([d.red(), d.green(), d.blue(), d.alpha()]);
}
Ok(img)
}
/// Rows of tiles, each `tile_w` wide (its height from the first picture's shape; any other shape fitted inside it), a label under each and the title
/// over them all, written to `out`. A tile whose picture won't open is drawn grey, its label saying so.
pub fn sheet(title: &str, rows: &[Vec<Tile>], tile_w: u32, out: &Path) -> Result<(), String> {
let first = rows.iter().flatten().find_map(|t| image::open(&t.img).ok()).ok_or_else(|| format!("{title}: no picture to put on the sheet"))?;
let th = ((tile_w as f64) * first.height() as f64 / first.width().max(1) as f64).round().max(1.0) as u32;
let cols = rows.iter().map(Vec::len).max().unwrap_or(1).max(1) as u32;
let (w, h) = (GAP + cols * (tile_w + GAP), TITLE_H + rows.len() as u32 * (th + LABEL_H + GAP));
let mut img = RgbaImage::from_pixel(w, h, Rgba([18, 18, 20, 255]));
let mut text = format!("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{w}\" height=\"{h}\"><text x=\"{GAP}\" y=\"30\" font-size=\"22\" font-weight=\"bold\" fill=\"#ffffff\">{}</text>", esc(title));
for (r, row) in rows.iter().enumerate() {
for (c, t) in row.iter().enumerate() {
let (x, y) = (GAP + c as u32 * (tile_w + GAP), TITLE_H + r as u32 * (th + LABEL_H + GAP));
let label = match image::open(&t.img) {
Ok(p) => {
// fitted inside the tile, its own shape kept, centred
let k = (tile_w as f64 / p.width().max(1) as f64).min(th as f64 / p.height().max(1) as f64);
let (pw, ph) = (((p.width() as f64 * k).round() as u32).max(1), ((p.height() as f64 * k).round() as u32).max(1));
let small = imageops::resize(&p.to_rgba8(), pw, ph, imageops::FilterType::Triangle);
imageops::overlay(&mut img, &small, (x + (tile_w - pw.min(tile_w)) / 2) as i64, (y + (th - ph.min(th)) / 2) as i64);
t.label.clone()
}
Err(_) => {
imageops::overlay(&mut img, &RgbaImage::from_pixel(tile_w, th, Rgba([70, 70, 70, 255])), x as i64, y as i64);
format!("{} (missing)", t.label)
}
};
text.push_str(&format!("<text x=\"{}\" y=\"{}\" font-size=\"17\" fill=\"#e8e8e8\">{}</text>", x + 4, y + th + 21, esc(&label)));
}
}
text.push_str("</svg>");
imageops::overlay(&mut img, &svg_png(&text)?, 0, 0);
if let Some(d) = out.parent() {
std::fs::create_dir_all(d).map_err(|e| format!("{}: {e}", d.display()))?;
}
img.save(out).map_err(|e| format!("{}: {e}", out.display()))
}
+108
View File
@@ -0,0 +1,108 @@
//! Blocking a shot list (docs/make.feature MK15): `raea make framing` renders each shot's first, middle and last
//! frame and puts them on one sheet, a row a shot, each stamped with its name and time, so the person, `raea ask`
//! (make.framing.*) and the critic (`raea judge --kind shot`) see every shot's start and end at once; `raea make
//! lenschart SHOT` renders a shot's first frame at 18, 24, 35, 50, 85 and 135 mm (RAEA_LENS, core/review) to choose its
//! lens before it's moved.
use std::path::{Path, PathBuf};
use raea_core_brief::make::{Make, Shot};
use crate::sheet::{Tile, sheet};
/// The focal lengths a lens chart shows.
pub const LENSES: [u32; 6] = [18, 24, 35, 50, 85, 135];
/// raea itself, run on `args` with `env`: its output, or what it said when it failed.
pub fn raea(args: &[String], env: &[(&str, String)]) -> Result<String, String> {
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let mut c = std::process::Command::new(exe);
c.args(args);
for (k, v) in env {
c.env(k, v);
}
// stderr passes through as it comes (a generation's progress, a render's frames), so whoever watches sees it
// working, and is kept for the error
let mut child = c.stdout(std::process::Stdio::piped()).stderr(std::process::Stdio::piped()).spawn().map_err(|e| e.to_string())?;
let err = child.stderr.take().map(|e| {
std::thread::spawn(move || {
use std::io::BufRead;
let mut kept = Vec::new();
for line in std::io::BufReader::new(e).lines().map_while(Result::ok) {
eprintln!(" {line}");
kept.push(line);
}
kept
})
});
let out = child.wait_with_output().map_err(|e| e.to_string())?;
let err = err.and_then(|t| t.join().ok()).unwrap_or_default();
let text = String::from_utf8_lossy(&out.stdout).to_string();
if out.status.success() {
Ok(text)
} else {
Err(format!("raea {}: {}", args.first().map(String::as_str).unwrap_or(""), err.iter().rev().find(|l| !l.trim().is_empty()).map_or(text.trim(), String::as_str)))
}
}
/// A shot's frames: its first, middle and last, from its seconds at its frame rate.
pub fn frames_of(s: &Shot) -> Vec<i64> {
let n = ((s.seconds.unwrap_or(0.0) * s.fps.unwrap_or(30.0)).round() as i64).max(1);
if s.still == Some(true) || n == 1 {
return vec![0];
}
let mut v = vec![0, (n - 1) / 2, n - 1];
v.dedup();
v
}
fn composition(dir: &Path, s: &Shot) -> Result<PathBuf, String> {
let c = s.composition.as_deref().ok_or_else(|| format!("shot `{}` has no composition (the .tsx that renders it)", s.name))?;
Ok(dir.join(c))
}
/// The framing sheet of the plan's shots (or those named in `only`), written to `out` (OUT/framing.png).
pub fn framing(dir: &Path, m: &Make, only: &[String], out: &Path) -> Result<String, String> {
let shots: Vec<&Shot> = crate::only(&m.shots, only, |s| s.name.as_str());
if shots.is_empty() {
return Err("raea make framing: no shots in the plan (or none named)".into());
}
let work = out.join("framing-frames");
let mut rows = Vec::new();
for s in &shots {
let tsx = composition(dir, s)?;
let fr = frames_of(s);
let to = work.join(&s.name);
let _ = std::fs::remove_dir_all(&to);
std::fs::create_dir_all(&to).map_err(|e| format!("{}: {e}", to.display()))?;
let at = fr.iter().map(|f| f.to_string()).collect::<Vec<_>>().join(",");
raea(&["render".into(), tsx.display().to_string(), "-o".into(), to.display().to_string(), "--at".into(), at], &[])?;
let fps = s.fps.unwrap_or(30.0);
rows.push(fr.iter().enumerate().map(|(i, f)| Tile { img: to.join(format!("frame-{i:05}.png")), label: format!("{} t={:.1}s (frame {f})", s.name, *f as f64 / fps) }).collect());
}
let file = out.join("framing.png");
sheet("Framing: each shot's first, middle and last frame", &rows, 480, &file)?;
Ok(format!("wrote {} ({} shot{}); ask it: raea ask {} --set make (the framing questions apply); judge it: raea judge {} --kind shot", file.display(), shots.len(), if shots.len() == 1 { "" } else { "s" }, file.display(), out.display()))
}
/// One shot's first frame at every lens of the chart, on one sheet (OUT/lens-SHOT.png).
pub fn lenschart(dir: &Path, m: &Make, name: &str, out: &Path) -> Result<String, String> {
let s = m.shots.iter().find(|s| s.name == name).ok_or_else(|| format!("raea make lenschart: no shot `{name}` in the plan"))?;
let tsx = composition(dir, s)?;
let work = out.join("lens-frames").join(name);
std::fs::create_dir_all(&work).map_err(|e| format!("{}: {e}", work.display()))?;
let mut tiles = Vec::new();
for mm in LENSES {
let png = work.join(format!("{mm}mm.png"));
raea(&["render".into(), tsx.display().to_string(), "-o".into(), png.display().to_string(), "--frame".into(), "0".into()], &[("RAEA_LENS", mm.to_string())])?;
tiles.push(Tile { img: png, label: format!("{mm} mm ({:.0}° vertical)", raea_core_review::fov_of_lens(mm as f64)) });
}
let rows: Vec<Vec<Tile>> = {
let mut it = tiles.into_iter();
vec![it.by_ref().take(3).collect(), it.collect()]
};
let file = out.join(format!("lens-{name}.png"));
sheet(&format!("Lens chart: {name}, its first frame"), &rows, 480, &file)?;
Ok(format!("wrote {}: pick the lens, then set the shot's `lens` (raea/camera lens(mm) for its fov)", file.display()))
}
+246
View File
@@ -0,0 +1,246 @@
//! Whether a job is done (docs/make.feature MK1), from what's on disk and nothing the agent says: the deliverables, the
//! notes, the record of renders and checks, and the judge's rounds. Pure over a `Job` so it is tested on fixtures.
use std::path::{Path, PathBuf};
use std::time::SystemTime;
use raea_core_brief::make::{self, Make};
use raea_core_facts::{Level, record::Entry};
use serde_json::{Value, json};
/// The heading the notes end with, so the next job (and the skill) learns from this one.
pub const SKILL_HEADING: &str = "What the skill got wrong";
/// Everything status reads, gathered by `lib.rs` (or a test).
pub struct Job<'a> {
pub make: &'a Make,
/// the brief's folder: deliverables, NOTES.md and review/ are relative to it
pub dir: &'a Path,
/// the project's folder (record paths are relative to it), when it is a raea project
pub project: Option<&'a Path>,
pub record: &'a [Entry],
/// review/judge.log.jsonl's rounds, oldest first
pub rounds: &'a [Value],
/// the latest round's judge.json, when there is one
pub verdict: Option<&'a Value>,
/// when the judge last wrote its log
pub judged_at: Option<SystemTime>,
/// `raea ask`'s ledger, for the make questions' gate (asked.rs)
pub ledger: &'a crate::asked::Ledger,
/// `raea judge calibrate --kind KIND` agreed with the person's eye for this kind: its score gates too (MK6)
pub score_gates: bool,
}
/// A round's folder: as the judge wrote it when absolute, else the folder of that name beside the log (review/), since
/// `raea judge DIR` keeps its log in DIR's parent and DIR was written relative to wherever it ran.
pub fn round_dir(dir: &Path, round: &Value) -> Option<PathBuf> {
let d = Path::new(round["dir"].as_str()?);
if d.is_absolute() {
return Some(d.to_path_buf());
}
Some(dir.join("review").join(d.file_name()?))
}
/// The sheets the make questions are asked of: the newest round's (its framing sheet for a shot list, its colour and
/// clay sheets otherwise) and a kit's reference sheet.
pub fn sheets(job: &Job) -> Vec<(&'static str, PathBuf)> {
let mut out = Vec::new();
if let Some(r) = job.rounds.last().and_then(|r| round_dir(job.dir, r)) {
if job.make.kind == make::Kind::Shot {
out.push(("framing", r.join("framing.png")));
} else {
out.push(("clay", r.join("clay.png")));
out.push(("colour", r.join("colour.png")));
}
}
if job.make.kind == make::Kind::Kit {
out.push(("refs", job.dir.join("review/refs.png")));
}
out.into_iter().filter(|(_, f)| f.is_file()).collect()
}
/// When a file last changed, and that as seconds since 1970 (a record entry's clock).
fn mtime(p: &Path) -> Option<SystemTime> {
std::fs::metadata(p).ok()?.modified().ok()
}
fn mtime_secs(p: &Path) -> Option<u64> {
Some(mtime(p)?.duration_since(SystemTime::UNIX_EPOCH).ok()?.as_secs())
}
fn is_picture(p: &Path) -> bool {
matches!(p.extension().and_then(|e| e.to_str()).map(str::to_ascii_lowercase).as_deref(), Some("png" | "jpg" | "jpeg" | "exr"))
}
/// One deliverable: a file, `a|b` (either), or `dir/` (three or more pictures in it). Returns the files that answer it.
fn answered(dir: &Path, want: &str) -> Result<Vec<PathBuf>, String> {
if let Some(folder) = want.strip_suffix('/') {
let pics: Vec<PathBuf> = std::fs::read_dir(dir.join(folder)).into_iter().flatten().flatten().map(|e| e.path()).filter(|p| is_picture(p)).collect();
return if pics.len() >= 3 { Ok(pics) } else { Err(format!("{want} holds {} picture{}; three or more", pics.len(), if pics.len() == 1 { "" } else { "s" })) };
}
let found: Vec<PathBuf> = want.split('|').map(|w| dir.join(w)).filter(|p| p.is_file()).collect();
if found.is_empty() { Err(want.replace('|', " or ")) } else { Ok(found) }
}
fn notes_text(dir: &Path) -> Option<String> {
std::fs::read_to_string(dir.join("NOTES.md")).ok()
}
/// AnyKit's stall: three rounds in a row without beating the best mean before them. Not the judge's own `stall`
/// (the same defect twice: change the approach), which is advice to the agent, not a reason to let it stop.
pub fn stalled(rounds: &[Value]) -> bool {
let means: Vec<f64> = rounds.iter().filter_map(|r| r["mean"].as_f64()).collect();
means.len() >= 4 && {
let (before, last) = means.split_at(means.len() - 3);
last.iter().cloned().fold(f64::MIN, f64::max) <= before.iter().cloned().fold(f64::MIN, f64::max)
}
}
fn gate(name: &str, of: Option<&str>, clear: bool, says: String) -> Value {
let mut g = json!({"gate": name, "clear": clear, "says": says});
if let Some(of) = of {
g["of"] = json!(of);
}
g
}
/// Tier 1: each composition the plan names has a render or check newer than it that found no error.
fn checks(job: &Job) -> Vec<Value> {
job.make
.compositions
.iter()
.map(|c| {
let file = job.dir.join(c);
let rel = job.project.map(|p| raea_core_facts::record::rel(p, &file)).unwrap_or_else(|| c.clone());
let Some(last) = job.record.iter().rev().find(|e| e.of == rel) else {
return gate("checks", Some(c), false, format!("never rendered or checked: raea render {c} (or raea scene lint {c})"));
};
let changed = mtime_secs(&file);
if changed.is_some_and(|t| t > last.at) {
return gate("checks", Some(c), false, format!("changed since its last {} ({}): run it again", last.by, last.id));
}
let errors: Vec<&str> = last.findings.iter().filter(|f| f.level == Level::Error).map(|f| f.says.as_str()).collect();
match errors.as_slice() {
[] => gate("checks", Some(c), true, format!("clean at {} ({})", last.id, last.by)),
[one] => gate("checks", Some(c), false, format!("{} found: {one}", last.id)),
many => gate("checks", Some(c), false, format!("{} found {} errors, first: {}", last.id, many.len(), many[0])),
}
})
.collect()
}
/// MK24: parts a composition's last render showed closer than planned, held until replanned or answered (raea-runtime-lod-plan)
fn lods(job: &Job, notes: &str) -> Vec<Value> {
let plans = job.make.objects.iter().any(|o| o.lod.is_some());
let last = |c: &String| job.record.iter().rev().find(|e| e.of == job.project.map(|p| raea_core_facts::record::rel(p, &job.dir.join(c))).unwrap_or_else(|| c.clone()));
job.make.compositions.iter().filter_map(|c| last(c).and_then(|l| raea_runtime_lod_plan::gate(c, &l.id, &l.findings, notes, plans)).map(|(clear, says)| gate("lod", Some(c), clear, says))).collect()
}
/// Tier 3: a fresh critic has judged a round newer than the newest deliverable, and each blocking defect it named is
/// fixed (the round passed) or answered in NOTES.md by its name. Its score gates once the judge is calibrated.
fn critic(job: &Job, newest: Option<SystemTime>, notes: &str) -> Vec<Value> {
let Some(last) = job.rounds.last() else {
let kind = job.make.kind.name();
let what = match job.make.kind {
make::Kind::Kit => "raea render shared/components/KIT/lineup.tsx --review review/r1",
make::Kind::Shot => "raea make framing --out review/r1",
make::Kind::Scene | make::Kind::Cut | make::Kind::Goal => "raea render EDIT.tsx --review review/r1",
};
return vec![gate("critic", None, false, format!("no round yet: {what}, then raea judge review/r1 --kind {kind} --by claude --brief brief.ts"))];
};
let mut out = Vec::new();
let fresh = match (job.judged_at, newest) {
(Some(j), Some(n)) => j >= n,
(Some(_), None) => true,
_ => false,
};
out.push(gate("critic", None, fresh, if fresh { format!("round {} judged after the newest deliverable", job.rounds.len()) } else { "the newest deliverable came after the last round: review and judge it again".into() }));
// the kind's own rubric (MK5): a round judged on another's doesn't count
let kind = job.make.kind.name();
if last["kind"].as_str() != Some(kind) {
let dir = last["dir"].as_str().unwrap_or("review/rN");
out.push(gate("rubric", None, false, format!("the last round wasn't judged on the {kind} rubric: raea judge {dir} --kind {kind} --by claude")));
}
let blocking: Vec<&str> = raea_app_judge::rubric::blocking(last["defects"].as_array().map(Vec::as_slice).unwrap_or_default());
let open: Vec<&str> = if last["pass"] == true { Vec::new() } else { blocking.into_iter().filter(|d| !notes.contains(d)).collect() };
out.push(gate("defects", None, open.is_empty(), if open.is_empty() { "no blocking defect left unanswered".into() } else { format!("blocking, neither fixed nor answered in NOTES.md: {}", open.join(", ")) }));
// the score gates once the judge is calibrated for this kind; before that, fixed-or-answered is enough (MK6)
if job.score_gates {
let p = raea_app_judge::progress(job.rounds);
let done = p["done"] == true;
out.push(gate("score", None, done, format!("the calibrated judge: {} passes in a row, two needed", p["passesInARow"])));
}
out
}
/// The job's status: what's missing, each gate, the judge's rounds, and whether the agent may stop.
pub fn status(job: &Job) -> Value {
let mut missing = Vec::new();
let mut newest: Option<SystemTime> = None;
for want in make::deliverables(job.make) {
match answered(job.dir, &want) {
Ok(files) => newest = files.iter().filter_map(|f| mtime(f)).chain(newest).max(),
Err(why) => missing.push(why),
}
}
let notes = notes_text(job.dir).unwrap_or_default();
if job.make.kind != make::Kind::Goal && !notes.to_lowercase().contains(&SKILL_HEADING.to_lowercase()) {
missing.push(format!("NOTES.md with a \"{SKILL_HEADING}\" section (one line per thing that cost time; what the guide got wrong for this job)"));
}
let mut gates = checks(job);
gates.extend(lods(job, &notes));
match (&job.make.cut, job.make.kind) {
// a cut job: its brief's rules over every delivered file (MK25-MK27), and the person's review its critic
(Some(c), make::Kind::Cut) => gates.extend(raea_runtime_cut_plan::gates(c, job.dir).into_iter().map(|g| gate(g.name, g.of.as_deref(), g.clear, g.says))),
(_, make::Kind::Goal) => gates.extend(job.make.goal.iter().flat_map(|g| raea_runtime_goal_plan::gates(g, job.dir)).map(|g| gate(g.name, g.of.as_deref(), g.clear, g.says))),
_ => gates.extend(critic(job, newest, &notes)),
}
let (asks, said) = crate::asked::gates(&sheets(job), job.ledger, &notes);
gates.extend(asks);
let cap = job.make.rounds.unwrap_or(make::ROUNDS) as usize;
let capped = job.rounds.len() >= cap;
let stalled = stalled(job.rounds);
let clear = missing.is_empty() && gates.iter().all(|g| g["clear"] == true);
let mut why = Vec::new();
if capped && !clear {
why.push(format!("capped: {} critic rounds, the most this job gets; delivered with what's still missing", job.rounds.len()));
}
if stalled && !clear {
why.push("stalled: three rounds without beating the best before them; delivered with what's still missing".into());
}
let advice = raea_app_judge::progress(job.rounds);
json!({
"kind": job.make.kind,
"done": clear || capped || stalled,
"short": !clear && (capped || stalled),
"missing": missing,
"gates": gates,
"judge": {"rounds": job.rounds.len(), "cap": cap, "passesInARow": advice["passesInARow"], "changeApproach": advice["stall"], "again": advice["again"]},
"plan": make::doctor(job.make),
"files": {"deliverables": make::deliverables(job.make), "previews": make::previews(job.make)},
"advice": said,
"why": why,
})
}
/// The status for a person or an agent to read.
pub fn text(s: &Value) -> String {
let mut t = vec![format!("make: {} {}", s["kind"].as_str().unwrap_or("?"), if s["done"] == true { if s["short"] == true { "delivered short" } else { "done" } } else { "not done" })];
for w in s["why"].as_array().into_iter().flatten() {
t.push(format!(" {}", w.as_str().unwrap_or("")));
}
for (key, head) in [("plan", "plan:"), ("missing", "missing:"), ("advice", "advice (raea ask, not calibrated yet):")] {
let items: Vec<&str> = s[key].as_array().into_iter().flatten().filter_map(Value::as_str).collect();
if !items.is_empty() {
t.push(head.into());
t.extend(items.iter().map(|i| format!(" {i}")));
}
}
t.push("gates:".into());
for g in s["gates"].as_array().into_iter().flatten() {
let of = g["of"].as_str().map(|o| format!(" {o}")).unwrap_or_default();
t.push(format!(" {} {}{of}: {}", if g["clear"] == true { "ok " } else { "open" }, g["gate"].as_str().unwrap_or(""), g["says"].as_str().unwrap_or("")));
}
let j = &s["judge"];
if s["kind"] != "goal" { t.push(format!("judge: {} of {} rounds, {} passes in a row{}", j["rounds"], j["cap"], j["passesInARow"], if j["changeApproach"] == true { "; the same defect keeps coming back: change the approach for that part, not the dose" } else { "" })); }
t.join("\n")
}
+238
View File
@@ -0,0 +1,238 @@
use std::path::PathBuf;
use std::time::{Duration, SystemTime};
use raea_core_brief::{make::Make, read};
use raea_core_facts::record::Entry;
use serde_json::{Value, json};
use crate::asked::Ledger;
use crate::status::{Job, status, stalled};
fn dir(name: &str) -> PathBuf {
let d = std::env::temp_dir().join(format!("raea-make-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&d);
std::fs::create_dir_all(&d).unwrap();
d
}
fn put(d: &PathBuf, rel: &str, text: &str) {
let p = d.join(rel);
std::fs::create_dir_all(p.parent().unwrap()).unwrap();
std::fs::write(p, text).unwrap();
}
fn kit() -> Make {
read("make", r#"{"kind": "kit", "style": "1970s desk, maker Aurora", "objects": [{"id": "phone", "label": "Phone", "h": 0.12, "prompt": "a rotary phone"}]}"#).unwrap()
}
fn delivered(d: &PathBuf) {
for f in ["out/kit/phone/phone.glb", "out/kit/phone/phone_lod1.glb", "out/kit/thumbs/phone.png", "out/kit/lineup.png", "out/kit/kit.json", "review/refs.png"] {
put(d, f, "x");
}
put(d, "NOTES.md", "# Notes\n\n## What the skill got wrong\n- nothing yet\n");
}
fn round(pass: bool, mean: f64, defects: Value) -> Value {
json!({"dir": "review/r1", "kind": "kit", "pass": pass, "mean": mean, "defects": defects})
}
fn run(make: &Make, d: &PathBuf, record: &[Entry], rounds: &[Value], judged_at: Option<SystemTime>) -> Value {
run_with(make, d, record, rounds, judged_at, &Ledger::default())
}
fn run_with(make: &Make, d: &PathBuf, record: &[Entry], rounds: &[Value], judged_at: Option<SystemTime>, ledger: &Ledger) -> Value {
status(&Job { make, dir: d, project: None, record, rounds, verdict: None, judged_at, ledger, score_gates: false })
}
fn later() -> Option<SystemTime> {
Some(SystemTime::now() + Duration::from_secs(5))
}
#[test]
fn nothing_made_is_not_done_and_says_what_is_missing() {
let d = dir("empty");
let s = run(&kit(), &d, &[], &[], None);
assert_eq!(s["done"], false);
let missing = s["missing"].to_string();
assert!(missing.contains("out/kit/phone/phone_lod1.glb") && missing.contains("NOTES.md"), "{missing}");
assert!(s["gates"].as_array().unwrap().iter().any(|g| g["gate"] == "critic" && g["clear"] == false));
}
#[test]
fn delivered_and_judged_after_is_done() {
let d = dir("done");
delivered(&d);
let s = run(&kit(), &d, &[], &[round(true, 7.5, json!([]))], later());
assert_eq!(s["done"], true, "{s:#}");
assert_eq!(s["short"], false);
}
#[test]
fn a_round_older_than_the_newest_deliverable_is_stale() {
let d = dir("stale");
delivered(&d);
let s = run(&kit(), &d, &[], &[round(true, 7.5, json!([]))], Some(SystemTime::UNIX_EPOCH));
assert_eq!(s["done"], false);
assert!(s["gates"].to_string().contains("came after the last round"), "{s:#}");
}
#[test]
fn a_blocking_defect_must_be_fixed_or_answered_in_the_notes() {
let d = dir("defect");
delivered(&d);
let defects = json!([{"defect": "floating", "present": true, "level": "blocking"}]);
let s = run(&kit(), &d, &[], &[round(false, 6.0, defects.clone())], later());
assert_eq!(s["done"], false);
assert!(s["gates"].to_string().contains("floating"));
put(&d, "NOTES.md", "## What the skill got wrong\n- floating: the handset rests in its cradle; the judge read its shadow as a gap\n");
let s = run(&kit(), &d, &[], &[round(false, 6.0, defects.clone())], later());
assert_eq!(s["done"], true, "{s:#}");
// once the judge is calibrated for kits, its score gates too: two passes in a row (MK6)
let (rounds, ledger) = ([round(false, 6.0, defects)], Ledger::default());
let s = status(&Job { make: &kit(), dir: &d, project: None, record: &[], rounds: &rounds, verdict: None, judged_at: later(), ledger: &ledger, score_gates: true });
assert_eq!(s["done"], false, "{s:#}");
assert!(s["gates"].to_string().contains("two needed"), "{s:#}");
}
#[test]
fn at_the_cap_it_is_delivered_short() {
let d = dir("cap");
let rounds: Vec<Value> = (0..8).map(|i| round(false, 5.0 + i as f64 * 0.5, json!([]))).collect();
let s = run(&kit(), &d, &[], &rounds, later());
assert_eq!((s["done"].clone(), s["short"].clone()), (json!(true), json!(true)), "{s:#}");
assert!(s["why"].to_string().contains("capped"));
}
#[test]
fn three_rounds_without_beating_the_best_is_a_stall() {
let r = |m: f64| json!({"mean": m});
assert!(stalled(&[r(5.0), r(6.5), r(6.0), r(6.4), r(6.5)]));
assert!(!stalled(&[r(5.0), r(6.0), r(6.2), r(6.4), r(6.6)]));
assert!(!stalled(&[r(5.0), r(5.0), r(5.0)]), "too few rounds to call it");
}
#[test]
fn a_composition_needs_a_clean_check_newer_than_it() {
let d = dir("checks");
delivered(&d);
put(&d, "scene.tsx", "x");
let mut make = kit();
make.compositions = vec!["scene.tsx".into()];
let rounds = [round(true, 7.5, json!([]))];
let s = run(&make, &d, &[], &rounds, later());
assert!(s["gates"].to_string().contains("never rendered"), "{s:#}");
let entry = |at: u64, level: &str| -> Entry {
serde_json::from_value(json!({"id": "20261123-x", "at": at, "by": "raea render", "of": "scene.tsx",
"findings": [{"check": "float", "level": level, "says": "the mug floats 2 cm", "by": "raea scene lint"}]})).unwrap()
};
let future = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs() + 60;
let s = run(&make, &d, &[entry(future, "error")], &rounds, later());
assert!(s["gates"].to_string().contains("the mug floats"), "{s:#}");
let s = run(&make, &d, &[entry(future, "warn")], &rounds, later());
assert_eq!(s["done"], true, "a warn doesn't block: {s:#}");
let s = run(&make, &d, &[entry(1, "warn")], &rounds, later());
assert!(s["gates"].to_string().contains("changed since"), "{s:#}");
}
// MK24: a part a render showed closer than planned holds the job until it's replanned or answered in the notes
#[test]
fn a_part_seen_closer_than_planned_holds_the_job() {
let d = dir("lod");
delivered(&d);
put(&d, "scene.tsx", "x");
let mut make = kit();
make.compositions = vec!["scene.tsx".into()];
let future = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs() + 60;
let entry: Entry = serde_json::from_value(json!({"id": "r1", "at": future, "by": "raea render", "of": "scene.tsx", "findings": [{"check": "lod-closer", "level": "warn", "about": [{"name": "kiosk"}], "says": "'kiosk' is planned at LOD 3", "by": "raea render"}]})).unwrap();
let s = run(&make, &d, &[entry.clone()], &[round(true, 7.5, json!([]))], later());
assert!(s["done"] == false && s["gates"].to_string().contains("seen closer than planned at r1: kiosk"), "{s:#}");
put(&d, "NOTES.md", "- lod kiosk: one frame at the cut, left as a box\n## What the skill got wrong\n- nothing\n");
assert_eq!(run(&make, &d, &[entry], &[round(true, 7.5, json!([]))], later())["done"], true);
}
#[test]
fn a_scene_wants_three_stills() {
let d = dir("scene");
let make: Make = read("make", r#"{"kind": "scene", "objects": [{"id": "stool", "label": "Stool", "h": 0.45, "route": "gen", "prompt": "a red stool"}]}"#).unwrap();
put(&d, "out/stills/a.png", "x");
let s = run(&make, &d, &[], &[], None);
assert!(s["missing"].to_string().contains("holds 1 picture"), "{s:#}");
}
#[test]
fn a_round_judged_on_another_kinds_rubric_does_not_count() {
// docs/make.feature MK5: a kit is judged on the kit's rubric
let d = dir("rubric");
delivered(&d);
let old = json!({"dir": "review/r1", "pass": true, "mean": 8.0, "defects": []});
let s = run(&kit(), &d, &[], &[old], later());
assert_eq!(s["done"], false);
assert!(s["gates"].to_string().contains("--kind kit"), "{s:#}");
}
#[test]
fn a_calibrated_ask_question_gates_and_an_uncalibrated_one_advises() {
// docs/make.feature MK4
let d = dir("ask");
delivered(&d);
put(&d, "review/r1/clay.png", "clay sheet bytes");
put(&d, "review/r1/colour.png", "colour sheet bytes");
let rounds = [round(true, 7.5, json!([]))];
let floating = raea_core_ask::library::find("make.clay.floating", None).unwrap();
let mut ledger = Ledger::default();
// nothing calibrated: every question is advice, and the job is done
let s = run_with(&kit(), &d, &[], &rounds, later(), &ledger);
assert_eq!(s["done"], true, "{s:#}");
assert!(s["gates"].to_string().contains("advice only"), "{s:#}");
// floating calibrated on the person's labels: it must be asked of this exact clay sheet
ledger.calibrations.insert(floating.version(), serde_json::from_value(json!({"auc": 0.9, "n": 40, "positives": 16, "threshold": 0.4, "date": "2026-11-23", "by": "you"})).unwrap());
let s = run_with(&kit(), &d, &[], &rounds, later(), &ledger);
assert_eq!(s["done"], false);
let gates = s["gates"].to_string();
assert!(gates.contains("not asked of this clay sheet") && gates.contains("--std make.clay.floating"), "{gates}");
// asked, and it flagged: open until fixed or answered by its id in NOTES.md
let ident = raea_core_ask::ident::ident(&d.join("review/r1/clay.png")).unwrap();
ledger.idents.insert("c-1".into(), ident);
ledger.answers.push(json!({"id": "a-1", "at": "100", "call": "c-1", "question": "make.clay.floating", "flagged": true, "problem": 0.8}));
let s = run_with(&kit(), &d, &[], &rounds, later(), &ledger);
assert_eq!(s["done"], false);
assert!(s["gates"].to_string().contains("make.clay.floating flagged (p 0.80)"), "{s:#}");
put(&d, "NOTES.md", "## What the skill got wrong\n- make.clay.floating: the handset's shadow, not a gap; checked on the low tile\n");
let s = run_with(&kit(), &d, &[], &rounds, later(), &ledger);
assert_eq!(s["done"], true, "{s:#}");
// the sheet rendered again: the old answer was about other bytes, so it's asked again
put(&d, "review/r1/clay.png", "a new clay sheet");
let s = run_with(&kit(), &d, &[], &rounds, later(), &ledger);
assert!(s["gates"].to_string().contains("not asked of this clay sheet"), "{s:#}");
// an uncalibrated question that flags is said as advice, holding nothing
let ident = raea_core_ask::ident::ident(&d.join("review/r1/colour.png")).unwrap();
ledger.idents.insert("c-2".into(), ident);
ledger.answers.push(json!({"id": "a-2", "at": "101", "call": "c-2", "question": "make.colour.plastic", "flagged": true, "problem": 0.7}));
let s = run_with(&kit(), &d, &[], &rounds, later(), &ledger);
assert!(s["advice"].to_string().contains("make.colour.plastic says yes"), "{s:#}");
}
#[test]
fn the_gates_are_check_lines_under_the_jobs_task_in_plan_org() {
// docs/make.feature MK3
let not_done = json!({"done": false, "missing": ["out/kit/lineup.png"], "gates": [{"gate": "critic", "clear": false, "says": "no round yet"}, {"gate": "checks", "of": "kit.tsx", "clear": true, "says": "clean"}]});
let t = crate::plan::update("", "desk", "brief.ts", "kit", &not_done);
let id = crate::plan::task_id("brief.ts");
assert!(id.len() == 10 && id.starts_with("t-") && id[2..].chars().all(|c| c.is_ascii_alphanumeric()), "{id}");
assert!(t.starts_with("#+TITLE: desk\n#+TODO: TODO MAKING REVIEW | DONE DROPPED\n"), "{t}");
assert!(t.contains("* MAKING make: kit (brief.ts) [1/3]") && t.contains(&format!(":ID: {id}")), "{t}");
assert!(t.contains("- [ ] missing: out/kit/lineup.png") && t.contains("- [X] checks kit.tsx: clean"), "{t}");
// the person's own line under it stays; the checks are brought up to date; done is REVIEW
let mut mine = t.replace("- [X] checks kit.tsx: clean\n", "- [X] checks kit.tsx: clean\nShane: keep the phone's cord\n");
mine = format!("{mine}* TODO another task\n");
let done = json!({"done": true, "missing": [], "gates": [{"gate": "critic", "clear": true, "says": "round 2 judged"}]});
let t2 = crate::plan::update(&mine, "desk", "brief.ts", "kit", &done);
assert!(t2.contains("* REVIEW make: kit (brief.ts) [1/1]") && t2.contains("Shane: keep the phone's cord") && t2.contains("* TODO another task"), "{t2}");
assert!(!t2.contains("missing:"), "{t2}");
assert_eq!(t2.matches(":ID: ").count(), 1);
// a task the person closed keeps their mark
let closed = t2.replace("* REVIEW make", "* DONE make");
assert!(crate::plan::update(&closed, "desk", "brief.ts", "kit", &not_done).contains("* DONE make: kit (brief.ts) [1/3]"));
// once written, writing the same again changes nothing
assert_eq!(crate::plan::update(&t2, "desk", "brief.ts", "kit", &done), t2);
}
+206
View File
@@ -0,0 +1,206 @@
//! The steps' own work, without a render or a paid call: sheets, prompts, flows, picks, components, the floor plan.
use std::path::PathBuf;
use image::{Rgba, RgbaImage};
use raea_core_brief::{make::Make, read};
use crate::sheet::{Tile, sheet};
fn dir(name: &str) -> PathBuf {
let d = std::env::temp_dir().join(format!("raea-make-steps-{name}-{}", std::process::id()));
std::fs::remove_dir_all(&d).ok();
std::fs::create_dir_all(&d).expect("a scratch folder");
d
}
fn png(p: &PathBuf, w: u32, h: u32, c: [u8; 3]) {
std::fs::create_dir_all(p.parent().unwrap()).unwrap();
RgbaImage::from_pixel(w, h, Rgba([c[0], c[1], c[2], 255])).save(p).unwrap();
}
fn kit() -> Make {
read("make", r#"{"kind": "kit", "references": ["media/style.png"], "style": "1970s flight desk, cream enamel, maker Aurora Instruments.", "objects": [
{"id": "rotary_phone", "label": "Rotary phone", "h": 0.12, "prompt": "a rotary desk phone, worn bakelite", "hero": true},
{"id": "clock", "label": "Wall clock", "dims": [0.3, 0.05, 0.3]}]}"#)
.unwrap()
}
// MK10, MK11, MK15: a sheet is its tiles in rows, labelled, any shape fitted without stretching, a missing one grey
#[test]
fn a_sheet_holds_its_tiles_in_rows_with_labels() {
let d = dir("sheet");
let (a, b, wide) = (d.join("a.png"), d.join("b.png"), d.join("wide.png"));
png(&a, 200, 100, [200, 30, 30]);
png(&b, 200, 100, [30, 200, 30]);
png(&wide, 400, 100, [30, 30, 200]);
let out = d.join("review/sheet.png");
let rows = vec![
vec![Tile { img: a.clone(), label: "red <a&b>".into() }, Tile { img: b, label: "green".into() }],
vec![Tile { img: wide, label: "wide".into() }, Tile { img: d.join("gone.png"), label: "gone".into() }],
];
sheet("Test sheet", &rows, 300, &out).unwrap();
let img = image::open(&out).unwrap().to_rgba8();
// two columns of 300 and three gaps of 6; the tile is 150 tall (from the first's 2:1), title 44, label 30, gap 6
assert_eq!((img.width(), img.height()), (618, 44 + 2 * (150 + 30 + 6)));
// the first tile is red in its middle; the wide one is letterboxed (fitted 300x75, centred), not stretched
assert_eq!(img.get_pixel(6 + 150, 44 + 75).0[..3], [200, 30, 30]);
let row2 = 44 + 150 + 30 + 6;
assert_eq!(img.get_pixel(6 + 150, row2 + 75).0[..3], [30, 30, 200]);
assert_ne!(img.get_pixel(6 + 150, row2 + 10).0[..3], [30, 30, 200]);
// the missing one is grey
assert_eq!(img.get_pixel(6 + 300 + 6 + 150, row2 + 75).0[..3], [70, 70, 70]);
// a label was drawn under the first tile (light pixels on the dark ground)
let lit = (0..300).flat_map(|x| (0..30).map(move |y| (x, y))).filter(|&(x, y)| img.get_pixel(6 + x, 44 + 150 + y).0[0] > 150).count();
assert!(lit > 40, "no label drawn ({lit} lit pixels)");
assert!(sheet("empty", &[vec![Tile { img: d.join("none.png"), label: "x".into() }]], 100, &d.join("e.png")).is_err());
}
// MK10: a reference prompt is the plan's style, the object's words and the scan template, never a brand
#[test]
fn a_reference_prompt_is_style_object_and_scan() {
let m = kit();
let p = crate::kit::ref_prompt(&m, &m.objects[0]);
assert!(p.starts_with("1970s flight desk, cream enamel, maker Aurora Instruments. a rotary desk phone, worn bakelite. One object only"), "{p}");
assert!(p.contains("no real brands"));
// an object with no prompt is described by its label
assert!(crate::kit::ref_prompt(&m, &m.objects[1]).contains(". Wall clock. "));
assert_eq!(crate::kit::size_args(&m.objects[0]), ["--h", "0.12"]);
assert_eq!(crate::kit::size_args(&m.objects[1]), ["--dims", "0.3,0.05,0.3"]);
}
// MK11: one reference to both generators, the hero at 150k faces; the single-shot gen's file read from its JSON
#[test]
fn both_generators_get_each_reference() {
let m = kit();
let f = crate::kit::gen_flow(&m, &m.objects[0], std::path::Path::new("/r/rotary_phone.png"), crate::kit::TRIPO, crate::kit::MESHY);
assert_eq!(f["out"], serde_json::json!(["tripo", "meshy"]));
assert_eq!(f["steps"]["tripo"]["model"], "tripo:H3.1");
assert_eq!(f["steps"]["tripo"]["in"]["x_face_limit"], 150000);
assert_eq!(f["steps"]["meshy"]["model"], "fal:meshy/v7.1/image-to-3d");
assert_eq!(f["steps"]["meshy"]["in"]["image"], "@ref");
let small = crate::kit::gen_flow(&m, &m.objects[1], std::path::Path::new("/r/clock.png"), crate::kit::TRIPO, crate::kit::MESHY);
assert_eq!(small["steps"]["tripo"]["in"]["x_face_limit"], 60000);
assert_eq!(crate::kit::gen_file(r#"{"out": {"out": "/g/out.png"}, "cents": 4}"#), Some(PathBuf::from("/g/out.png")));
assert_eq!(crate::kit::gen_file(r#"{"out": {"out": ["/g/a.png", "/g/b.png"]}}"#), Some(PathBuf::from("/g/a.png")));
assert_eq!(crate::kit::gen_file("not json"), None);
}
// MK11: a pick names a model that exists and says why; it's kept by object
#[test]
fn a_pick_needs_its_model_and_a_reason() {
let d = dir("pick");
let m = kit();
assert!(crate::kit::choose(&d, &m, "rotary_phone", "tripo", "sharper").unwrap_err().contains("raea make gen --only rotary_phone"));
std::fs::create_dir_all(crate::kit::gen_dir(&d, "rotary_phone")).unwrap();
std::fs::write(crate::kit::gen_dir(&d, "rotary_phone").join("meshy.glb"), "x").unwrap();
assert!(crate::kit::choose(&d, &m, "rotary_phone", "meshy", " ").unwrap_err().contains("say why"));
assert!(crate::kit::choose(&d, &m, "lamp", "meshy", "x").unwrap_err().contains("no object `lamp`"));
crate::kit::choose(&d, &m, "rotary_phone", "meshy", "Tripo fused the handset to the cradle").unwrap();
assert_eq!(crate::kit::picks(&d)["rotary_phone"]["generator"], "meshy");
// prep names what isn't picked yet rather than skipping it
let said = crate::kit::prep(&d, &m, &["clock".to_string()]).unwrap();
assert!(said.contains("clock: no pick yet"), "{said}");
}
// MK13: each object a component importing its own model and LOD beside it; the lineup imports them all with a 1 m bar
#[test]
fn the_kit_lands_as_components_and_a_lineup() {
let m = kit();
assert_eq!(crate::kitout::component_name("rotary_phone"), "RotaryPhone");
let c = crate::kitout::component(&m.objects[0], "sharper numerals");
assert!(c.starts_with("// raea component add: Rotary phone, 0.12 m"), "{c}");
assert!(c.contains("import full from \"./rotary_phone.glb\";") && c.contains("import far from \"./rotary_phone_lod1.glb\";"));
assert!(c.contains("export default function RotaryPhone("));
let l = crate::kitout::lineup(&m, "desk");
assert!(l.contains("import RotaryPhone from \"./RotaryPhone\";") && l.contains("import Clock from \"./Clock\";"));
assert!(l.contains("</Text3D>") && l.contains("registerRoot("));
// the bar is the longest round length the set covers
assert_eq!(crate::kitout::scale_bar(0.52), (0.5, "50 cm"));
assert_eq!(crate::kitout::scale_bar(1.7), (1.0, "1 m"));
assert_eq!(crate::kitout::scale_bar(0.02), (0.05, "5 cm"));
// the viewer frames a model by its height
let v = crate::kitout::viewer(std::path::Path::new("/k/tripo.fit.glb"), 0.12);
assert!(v.contains("import model from \"./tripo.fit.glb\";") && v.contains("<Model src={model} />"));
// where it lands: the workspace's shared/components, else the project's components
let d = dir("land");
let job = d.join("projects/p/kit");
std::fs::create_dir_all(&job).unwrap();
std::fs::create_dir_all(d.join("projects/p/.raea")).unwrap();
std::fs::write(d.join("projects/p/.raea/project"), "{}").unwrap();
let real = dunce::canonicalize(&d).unwrap();
assert_eq!(crate::kitout::kit_dir(&job, "desk", None), real.join("projects/p/components/desk"));
std::fs::create_dir_all(d.join(".raea")).unwrap();
std::fs::write(d.join(".raea/workspace"), "{}").unwrap();
std::fs::create_dir_all(d.join("shared")).unwrap();
assert_eq!(crate::kitout::kit_dir(&job, "desk", None), real.join("shared/components/desk"));
assert_eq!(crate::kitout::kit_dir(&job, "desk", Some("/x")), PathBuf::from("/x"));
}
// MK15: a shot's frames are its first, middle and last (a still: its first); the lens chart's angles
#[test]
fn a_shot_frames_its_start_middle_and_end() {
let m: Make = read("make", r#"{"kind": "shot", "shots": [{"name": "push", "seconds": 4, "composition": "push.tsx"}, {"name": "hold", "still": true}, {"name": "fast", "seconds": 2, "fps": 24}]}"#).unwrap();
assert_eq!(crate::shots::frames_of(&m.shots[0]), vec![0, 59, 119]);
assert_eq!(crate::shots::frames_of(&m.shots[1]), vec![0]);
assert_eq!(crate::shots::frames_of(&m.shots[2]), vec![0, 23, 47]);
assert!((raea_core_review::fov_of_lens(50.0) - 26.99).abs() < 0.01);
// a shot with no composition can't be framed, and says what's needed
let d = dir("framing");
assert!(crate::shots::framing(&d, &m, &["hold".to_string()], &d).unwrap_err().contains("no composition"));
assert!(raea_core_brief::make::doctor(&m).iter().any(|w| w.contains("shot `hold` has no composition")));
}
// MK18: the floor plan draws every placed footprint (invented ones dashed); the blockout boxes them from the entrance
#[test]
fn the_plan_draws_a_floor_plan_and_a_blockout() {
let m: Make = read("make", r#"{"kind": "scene", "references": ["media/ref.png"], "objects": [
{"id": "desk", "label": "Desk", "dims": [1.6, 0.8, 0.75], "at": [2, 0, 3], "rot": 90, "source": "reference", "hero": true},
{"id": "plant", "label": "Plant", "h": 1.2, "at": [0.5, 0, 4], "source": "invented", "lod": 3},
{"id": "pen", "label": "Pen", "max": 0.14}]}"#)
.unwrap();
let (placed, b) = crate::floor::extent(&m);
assert_eq!(placed.len(), 2);
assert!(b[0] < 0.0 && b[3] > 4.5, "{b:?}");
let svg = crate::floor::floor_svg(&m).unwrap();
assert_eq!(svg.matches("stroke-dasharray").count(), 1);
assert!(svg.contains(">Desk<") && svg.contains(">Plant<") && !svg.contains(">Pen<"));
// the entrance runs along the front edge (the plan's nearest z), where the blockout's camera stands
assert!(svg.contains("entrance: the camera looks in from here"));
let img = crate::sheet::svg_png(&svg).unwrap();
assert!(img.width() > 400 && img.height() > 400);
let t = crate::floor::blockout_tsx(&m);
assert_eq!(t.matches("<Cuboid").count(), 3, "the floor and two boxes");
assert!(t.contains("half_size={[0.800, 0.375, 0.400]}"), "{t}");
assert!(t.contains("<Mesh3d name=\"plant\" lod={3} transform=") && svg.contains("1.20 m, LOD 3<"), "MK22, each box named with its planned detail: {t}");
let none: Make = read("make", r#"{"kind": "scene", "objects": [{"id": "pen", "label": "Pen"}]}"#).unwrap();
assert!(crate::floor::floor_svg(&none).unwrap_err().contains("no object has an `at`"));
}
// the CLI's positional words skip flags and their values
#[test]
fn positional_words_skip_flags() {
let a: Vec<String> = ["make", "pick", "phone", "--only", "a,b", "tripo", "--dry", "why not", "proj"].iter().map(|s| s.to_string()).collect();
assert_eq!(crate::positional(&a, 2), ["phone", "tripo", "why not", "proj"]);
}
#[test]
fn a_quote_reads_as_one_line() {
let out = "raea: planning\n{\"steps\":[{\"op\":\"media.load\",\"runs_on\":\"load\",\"cents\":0},{\"op\":\"image\",\"runs_on\":\"made:nano_banana_2\",\"cents\":6}],\"cents\":6,\"cap_cents\":100}";
assert_eq!(crate::kit::quote(out), "made:nano_banana_2 (about 6¢)");
assert_eq!(crate::kit::quote("not json at all"), "not json at all");
}
#[test]
fn a_boxy_model_is_fitted_by_its_height_and_turned_to_lie_front_to_back() {
use raea_core_brief::make::Object;
let stapler: Object = serde_json::from_value(serde_json::json!({"id": "stapler", "label": "Stapler", "dims": [0.05, 0.17, 0.07]})).unwrap();
// long across (x) where the plan's is front to back (z): a quarter turn
assert_eq!(crate::kit::fit_args(&stapler, Some([1.9, 0.72, 0.58])), ["--dims", "0.05,0.17,0.07", "--h", "0.07", "--turn", "90"]);
// already front to back, or about square: no turn
assert_eq!(crate::kit::fit_args(&stapler, Some([0.27, 0.12, 0.84])), ["--dims", "0.05,0.17,0.07", "--h", "0.07"]);
assert_eq!(crate::kit::fit_args(&stapler, None), ["--dims", "0.05,0.17,0.07", "--h", "0.07"]);
let clock: Object = serde_json::from_value(serde_json::json!({"id": "clock", "label": "Clock", "h": 0.14})).unwrap();
assert_eq!(crate::kit::fit_args(&clock, Some([1.0, 1.0, 0.5])), ["--h", "0.14"]);
assert!((crate::kitout::frame_size(&stapler) - 0.17).abs() < 1e-9);
}
+10
View File
@@ -85,4 +85,14 @@ pub fn encode(srcs: &[(PathBuf, Option<f64>, Option<f64>)], height: Option<u32>,
Ok(json!({"wrote": out, "frames": frames, "seconds": round3(frames as f64 / fps), "width": w, "height": h, "fps": round3(fps), "kbps": kbps, "bytes": stats.bytes, "sound": any_sound}))
}
/// `media share`: a copy any phone, chat and upload form takes (H.264 and AAC in an MP4, its index first), held to
/// `cap` kbit/s (2600: a 1080p minute in about 20 MB) and never given more than a full-size copy would get (#219).
pub fn share(file: &Path, height: Option<u32>, out: &Path, cap: u32) -> R<Value> {
std::fs::metadata(file).map_err(|e| format!("{}: {e}", file.display()))?; // the platform's decoder panics on no path
let i = backend()?.open_video(file).map_err(|e| format!("{}: {e}", file.display()))?.info().clone();
let k = height.map_or(1.0, |h| (h as f64 / i.height as f64).min(1.0));
let full = (i.width as f64 * k * i.height as f64 * k * standard_fps(i.fps) * 0.1 / 1000.0).max(300.0) as u32;
encode(&[(file.to_path_buf(), None, None)], height, out, Some(cap.min(full)))
}
// ---- ffmpeg and ffprobe, read
+15 -2
View File
@@ -38,6 +38,8 @@ pub(crate) fn ffmpeg(args: &[String]) -> R<()> {
let mut pending = FfInput::default();
let (mut ss, mut t, mut to) = (None, None, None);
let (mut vf, mut af): (Option<String>, Option<String>) = (None, None);
// -maxrate: the rate the copy is held to, the one quality choice read (the skill's share copy, #219)
let mut cap = None::<u32>;
let (mut ar, mut ac, mut fmt, mut one_frame, mut outp) = (None, None, None, false, None::<String>);
let mut i = 0;
let next = |i: &mut usize| -> R<String> {
@@ -76,11 +78,19 @@ pub(crate) fn ffmpeg(args: &[String]) -> R<()> {
"-ar" => ar = Some(next(&mut i)?.parse::<u32>().map_err(|_| "-ar takes a rate")?),
"-ac" => ac = Some(next(&mut i)?.parse::<u32>().map_err(|_| "-ac takes a channel count")?),
"-frames:v" | "-vframes" => one_frame = next(&mut i)? == "1",
"-maxrate" => {
let v = next(&mut i)?.to_lowercase();
let (n, k) = match v.strip_suffix('k').map(|n| (n, 1.0)).or(v.strip_suffix('m').map(|n| (n, 1000.0))) {
Some(nk) => nk,
None => (v.as_str(), 0.001),
};
cap = Some((n.parse::<f64>().map_err(|_| "-maxrate takes a rate (2600k)")? * k).round().max(1.0) as u32);
}
"-filter_complex" | "-lavfi" => {
return Err(format!("-filter_complex isn't read here: overlays, wipes and layouts are a composition, rendered with raea render. Or {VERBS_HINT}"));
}
// codec, quality and container choices: the platform encoder decides (H.264 + AAC in MP4)
"-c" | "-c:v" | "-c:a" | "-codec" | "-vcodec" | "-acodec" | "-crf" | "-preset" | "-b:v" | "-b:a" | "-q:v" | "-qscale:v" | "-pix_fmt" | "-movflags" | "-v" | "-loglevel" | "-r" | "-safe" | "-map" | "-tune" | "-profile:v" | "-g" | "-threads" => {
"-c" | "-c:v" | "-c:a" | "-codec" | "-vcodec" | "-acodec" | "-crf" | "-preset" | "-b:v" | "-b:a" | "-q:v" | "-qscale:v" | "-pix_fmt" | "-movflags" | "-v" | "-loglevel" | "-r" | "-safe" | "-map" | "-tune" | "-profile:v" | "-g" | "-threads" | "-bufsize" => {
next(&mut i)?;
}
"-y" | "-n" | "-hide_banner" | "-nostats" | "-nostdin" | "-an" | "-vn" | "-sn" | "-shortest" | "-accurate_seek" => {}
@@ -194,7 +204,10 @@ pub(crate) fn ffmpeg(args: &[String]) -> R<()> {
} else {
vec![(path.clone(), from, until)]
};
encode(&srcs, height, Path::new(&out), None)?;
match (cap, srcs.as_slice()) {
(Some(cap), [(one, None, None)]) => share(one, height, Path::new(&out), cap)?,
(cap, _) => encode(&srcs, height, Path::new(&out), cap)?,
};
Ok(())
}
+20 -4
View File
@@ -11,6 +11,7 @@
//! raea media cuts FILE [--threshold 0.08] shot changes (ffmpeg's scene score)
//! raea media freezes FILE [--noise 0.001] [--min 2] held pictures (ffmpeg's freezedetect)
//! raea media proxy FILE [--height 720] -o OUT.mp4 a smaller copy
//! raea media share FILE [--kbps 2600] [--height H] -o OUT.mp4 a copy to send: any player takes it, held to a bitrate
//! raea media lod MODEL.glb [--level 1] [--texture 1024] -o OUT.glb a model at a lower level of detail (triangles halved a level)
//! raea media trim FILE --from S --to S -o OUT.mp4 a stretch, frame-exact (re-encoded)
//! raea media concat A B ... -o OUT.mp4 one after another (same aspect)
@@ -80,6 +81,17 @@ fn ext(p: &Path) -> String {
p.extension().map(|e| e.to_string_lossy().to_lowercase()).unwrap_or_default()
}
/// One argument as the files it names. A shell that doesn't split a variable (zsh's `$FILES`) hands every name over as
/// one argument, which read as a single path fails as "No such file", or past 255 bytes as "File name too long" (#218):
/// an argument that isn't a file, but whose words each are, is those files.
fn names(a: &str) -> Vec<String> {
let words: Vec<&str> = a.split_whitespace().collect();
if words.len() > 1 && !Path::new(a).exists() && words.iter().all(|w| Path::new(w).exists()) {
return words.into_iter().map(String::from).collect();
}
vec![a.to_string()]
}
/// `--name value` flags (and `-o`), switches, and positional arguments.
fn parse(args: &[String]) -> (Vec<String>, BTreeMap<String, String>) {
let (mut pos, mut fl) = (Vec::new(), BTreeMap::new());
@@ -95,7 +107,7 @@ fn parse(args: &[String]) -> (Vec<String>, BTreeMap<String, String>) {
i += 1;
}
} else {
pos.push(a.clone());
pos.extend(names(a));
}
i += 1;
}
@@ -107,11 +119,11 @@ fn num(fl: &BTreeMap<String, String>, k: &str) -> R<Option<f64>> {
}
/// The verbs `raea media` answers here.
pub const VERBS: &[&str] = &["probe", "still", "sheet", "audio", "loudness", "motion", "cuts", "freezes", "proxy", "lod", "trim", "concat", "encode", "help"];
pub const VERBS: &[&str] = &["probe", "still", "sheet", "audio", "loudness", "motion", "cuts", "freezes", "proxy", "share", "lod", "trim", "concat", "encode", "help"];
pub fn cli(args: &[String]) -> i32 {
let Some(verb) = args.first() else {
println!("usage: raea media <probe|still|sheet|audio|loudness|motion|cuts|proxy|lod|trim|concat|encode> FILE ... (raea media help)");
println!("usage: raea media <probe|still|sheet|audio|loudness|motion|cuts|proxy|share|lod|trim|concat|encode> FILE ... (raea media help)");
return 2;
};
let (pos, fl) = parse(&args[1..]);
@@ -187,6 +199,10 @@ fn run(verb: &str, pos: &[String], fl: &BTreeMap<String, String>) -> R<Option<Va
let h = fl.get("height").and_then(|h| h.parse().ok()).unwrap_or(720);
encode(&[(file()?, None, None)], Some(h), &out()?, fl.get("kbps").and_then(|k| k.parse().ok())).map(Some)
}
"share" => {
let cap = fl.get("kbps").and_then(|k| k.parse().ok()).unwrap_or(2600);
share(&file()?, fl.get("height").and_then(|h| h.parse().ok()), &out()?, cap).map(Some)
}
"trim" => {
let (from, to) = range()?;
if from.is_none() && to.is_none() {
@@ -210,6 +226,6 @@ fn run(verb: &str, pos: &[String], fl: &BTreeMap<String, String>) -> R<Option<Va
println!("{}", include_str!("lib.rs").lines().take_while(|l| l.starts_with("//!")).map(|l| l.trim_start_matches("//!").strip_prefix(' ').unwrap_or("")).collect::<Vec<_>>().join("\n"));
Ok(None)
}
v => Err(format!("no media verb {v:?}: probe, still, sheet, audio, loudness, motion, cuts, freezes, proxy, trim, concat, encode")),
v => Err(format!("no media verb {v:?}: probe, still, sheet, audio, loudness, motion, cuts, freezes, proxy, share, trim, concat, encode")),
}
}
+6 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea scene lint|explain|light|stage: a composition's frames stepped without drawing and held to the contact, light and stage checks"
description = "raea scene lint|explain|light|stage|lod: a composition's frames stepped without drawing and held to the contact, light and stage checks"
[dependencies]
raea-runtime-bundle = { path = "../../runtime/bundle" }
@@ -12,7 +12,12 @@ raea-runtime-export = { path = "../../runtime/export" }
raea-sys-contact = { path = "../../systems/contact" }
raea-sys-light-meter = { path = "../../systems/light-meter" }
raea-sys-stage = { path = "../../systems/stage" }
# each part's planned detail beside how large the frames show it (MK21, MK23)
raea-runtime-lod-plan = { path = "../../runtime/lod-plan" }
# its results as Findings (docs/direction.feature DR3)
raea-core-facts = { path = "../../core/facts" }
# camera clearance (MK16): the parts, their models' triangles, and the camera's point in space
raea-core-scene = { path = "../../core/scene" }
bevy = { version = "=0.20.0", default-features = false, features = ["std"] }
dunce = "1"
serde_json = "1"
+226
View File
@@ -0,0 +1,226 @@
//! Camera clearance (docs/make.feature MK16, from AnyShot's clearance pass): every frame, how near the camera passes to
//! each solid part, and where it comes closer than a person carrying it could (0.45 m by default). A camera that
//! grazes a door frame or pushes into a desk draws the inside of the part, or a wall filling the frame; the boxes the
//! stage keeps say it without drawing. Only solids count: volumes, decals, footage, 2D, see-through parts (glass) and
//! anything under 5 cm across are passed over. A part's box answers first; a model whose box comes close is measured
//! on its triangles (a room model round the camera, a tree's box that's mostly air).
use std::collections::HashMap;
use bevy::math::{Mat4, Vec3};
use raea_core_facts::{Finding, Level};
use raea_core_scene::Item;
use serde_json::Value;
use raea_sys_stage::{View, called, model_box, own_box};
/// Parts smaller than this across (metres) are passed over: a pen the camera brushes isn't a collision.
const SMALL: f32 = 0.05;
/// Clearance the shot language asks of a carried camera, metres.
pub const DEFAULT: f32 = 0.45;
fn see_through(it: &Item) -> bool {
let props = it.material.as_ref().map(|m| &m.props);
let n = |k: &str| props.and_then(|p| p.get(k)).or(it.props.get(k)).and_then(Value::as_f64);
n("specular_transmission").or(n("transmission")).is_some_and(|t| t > 0.3) || n("opacity").is_some_and(|o| o < 0.5)
}
/// The nearest distance from `p` (world) to a box [lo, hi] in a part's own space under `world`, in world metres.
pub fn to_box(world: &Mat4, lo: Vec3, hi: Vec3, p: Vec3) -> f32 {
let local = world.inverse().transform_point3(p);
let near = local.clamp(lo, hi);
world.transform_point3(near).distance(p)
}
/// The nearest distance from `p` to a triangle.
pub fn to_tri(p: Vec3, t: &[Vec3; 3]) -> f32 {
let (a, b, c) = (t[0], t[1], t[2]);
let (ab, ac, ap) = (b - a, c - a, p - a);
let (d1, d2) = (ab.dot(ap), ac.dot(ap));
if d1 <= 0.0 && d2 <= 0.0 {
return p.distance(a);
}
let bp = p - b;
let (d3, d4) = (ab.dot(bp), ac.dot(bp));
if d3 >= 0.0 && d4 <= d3 {
return p.distance(b);
}
let vc = d1 * d4 - d3 * d2;
if vc <= 0.0 && d1 >= 0.0 && d3 <= 0.0 {
return p.distance(a + ab * (d1 / (d1 - d3)));
}
let cp = p - c;
let (d5, d6) = (ab.dot(cp), ac.dot(cp));
if d6 >= 0.0 && d5 <= d6 {
return p.distance(c);
}
let vb = d5 * d2 - d1 * d6;
if vb <= 0.0 && d2 >= 0.0 && d6 <= 0.0 {
return p.distance(a + ac * (d2 / (d2 - d6)));
}
let va = d3 * d6 - d5 * d4;
if va <= 0.0 && (d4 - d3) >= 0.0 && (d5 - d6) >= 0.0 {
return p.distance(b + (c - b) * ((d4 - d3) / ((d4 - d3) + (d5 - d6))));
}
let denom = 1.0 / (va + vb + vc);
p.distance(a + ab * (vb * denom) + ac * (vc * denom))
}
/// A frame's nearest solid parts to its camera: (part, distance) for each closer than `min`.
pub fn near_parts(its: &[Item], eye: Vec3, min: f32, boxes: &mut HashMap<String, Option<(Vec3, Vec3)>>, tris: &mut HashMap<String, Option<Vec<[Vec3; 3]>>>) -> Vec<(String, f32)> {
let mut out = Vec::new();
for it in its {
if !matches!(it.kind, "mesh" | "model") || it.at.is_some() || see_through(it) {
continue;
}
let bx = if it.kind == "mesh" { own_box(it, boxes) } else { model_box(it, boxes) };
let Some((lo, hi)) = bx else { continue };
let ext = (hi - lo) * it.world.to_scale_rotation_translation().0.abs();
if ext.max_element() < SMALL {
continue;
}
let mut d = to_box(&it.world, lo, hi, eye);
if d >= min {
continue;
}
if it.kind == "model" {
let Some(src) = it.props.get("src").and_then(Value::as_str).map(raea_core_scene::src_path) else { continue };
let t = tris.entry(src.clone()).or_insert_with(|| raea_core_scene::gltf_tris(&src).ok().map(|(g, _)| g.into_iter().flat_map(|(_, t)| t).collect()));
if let Some(t) = t {
let local = it.world.inverse().transform_point3(eye);
// nearest in the model's own space, then measured in the world's (a scaled model's metres)
if let Some(best) = t.iter().min_by(|a, b| to_tri(local, a).total_cmp(&to_tri(local, b))) {
let near = nearest_on(local, best);
d = it.world.transform_point3(near).distance(eye);
}
}
}
if d < min {
out.push((called(it), d));
}
}
out
}
/// The point on a triangle nearest `p` (by projecting and clamping through `to_tri`'s regions, sampled finely enough
/// to measure a clearance to the millimetre).
fn nearest_on(p: Vec3, t: &[Vec3; 3]) -> Vec3 {
let (a, b, c) = (t[0], t[1], t[2]);
let n = (b - a).cross(c - a);
let l2 = n.length_squared();
if l2 > 1e-14 {
let q = p - n * ((p - a).dot(n) / l2);
// barycentric: inside, the projection is the nearest point
let (v0, v1, v2) = (b - a, c - a, q - a);
let (d00, d01, d11, d20, d21) = (v0.dot(v0), v0.dot(v1), v1.dot(v1), v2.dot(v0), v2.dot(v1));
let den = d00 * d11 - d01 * d01;
if den.abs() > 1e-14 {
let v = (d11 * d20 - d01 * d21) / den;
let w = (d00 * d21 - d01 * d20) / den;
if v >= 0.0 && w >= 0.0 && v + w <= 1.0 {
return q;
}
}
}
// outside: the nearest point of the three edges
let seg = |x: Vec3, y: Vec3| {
let d = y - x;
x + d * ((p - x).dot(d) / d.length_squared().max(1e-14)).clamp(0.0, 1.0)
};
[seg(a, b), seg(b, c), seg(c, a)].into_iter().min_by(|u, v| u.distance(p).total_cmp(&v.distance(p))).unwrap_or(a)
}
/// Every frame's camera held `min` metres off every solid part: a finding for each part and run of frames it comes
/// closer, with the nearest it gets.
pub fn clearance(all: &[Vec<Item>], frames: &[i64], w: u32, h: u32, fps: f64, min: f32, by: &str) -> Vec<Finding> {
let (mut boxes, mut tris) = (HashMap::new(), HashMap::new());
// part -> runs of (first frame index, last, nearest)
let mut runs: Vec<(String, usize, usize, f32)> = Vec::new();
let mut open: HashMap<String, usize> = HashMap::new();
for (k, its) in all.iter().enumerate() {
let Some(v) = View::of(its, w, h) else { continue };
let near = near_parts(its, v.eye, min, &mut boxes, &mut tris);
let names: Vec<&String> = near.iter().map(|n| &n.0).collect();
open.retain(|name, _| names.contains(&name));
for (name, d) in near {
match open.get(&name).copied() {
Some(r) if runs[r].2 + 1 == k && frames[k] == frames[runs[r].2] + 1 => {
runs[r].2 = k;
runs[r].3 = runs[r].3.min(d);
}
_ => {
runs.push((name.clone(), k, k, d));
open.insert(name, runs.len() - 1);
}
}
}
}
runs.into_iter()
.map(|(name, a, b, d)| {
let (fa, fb) = (frames[a], frames[b]);
let when = if a == b { format!("at frame {fa} ({:.2} s)", fa as f64 / fps) } else { format!("over frames {fa}-{fb} ({:.2}-{:.2} s)", fa as f64 / fps, fb as f64 / fps) };
let says = if d < 1e-3 {
format!("the camera is inside `{name}` {when}: move the path out of it, or the part")
} else {
format!("the camera passes {d:.2} m from `{name}` {when}, under the {min:.2} m a carried camera keeps: move the path or the part, or pass a smaller --clearance for a camera on a rig")
};
Finding::new("camera-clearance", Level::Error, says, by).frames(fa, fb + 1)
})
.collect()
}
#[cfg(test)]
mod tests {
use super::*;
use serde_json::{Value, json};
use std::sync::Arc;
fn item(kind: &'static str, props: Value, world: Mat4) -> Item {
Item { kind, props: Arc::new(props.as_object().cloned().unwrap_or_default()), shape: None, at: None, material: None, world }
}
/// A camera at `eye` looking at `at`, 50 degrees.
fn cam(eye: [f32; 3], at: [f32; 3]) -> Item {
item("camera", json!({"position": eye, "lookAt": at, "fov": 50}), Mat4::IDENTITY)
}
#[test]
fn distances_to_a_box_and_a_triangle() {
let w = Mat4::from_translation(Vec3::new(0.0, 0.5, 0.0));
let (lo, hi) = (Vec3::splat(-0.5), Vec3::splat(0.5));
assert!((to_box(&w, lo, hi, Vec3::new(0.0, 0.5, 1.5)) - 1.0).abs() < 1e-5);
assert_eq!(to_box(&w, lo, hi, Vec3::new(0.0, 0.5, 0.0)), 0.0);
let t = [Vec3::ZERO, Vec3::X, Vec3::Z];
assert!((to_tri(Vec3::new(0.25, 0.3, 0.25), &t) - 0.3).abs() < 1e-5);
assert!((to_tri(Vec3::new(-1.0, 0.0, 0.0), &t) - 1.0).abs() < 1e-5);
assert!((nearest_on(Vec3::new(0.25, 0.3, 0.25), &t) - Vec3::new(0.25, 0.0, 0.25)).length() < 1e-5);
}
fn solid(name: &str, size: [f32; 3], at: [f32; 3]) -> Item {
let mut it = item("mesh", json!({"name": name}), Mat4::from_translation(Vec3::from(at)));
it.shape = Some(format!("box({}, {}, {})", size[0], size[1], size[2]).into());
it
}
#[test]
fn a_camera_pushing_into_a_desk_is_found_and_a_small_or_glass_part_is_not() {
// a desk 1.6 x 0.75 x 0.8 m standing at the origin; the camera pushes in from 2 m to 0.1 m off its front face
let desk = solid("desk", [1.6, 0.75, 0.8], [0.0, 0.375, 0.0]);
let pen = solid("pen", [0.04, 0.01, 0.01], [0.0, 1.0, 0.45]);
let mut glass = solid("pane", [1.0, 1.0, 0.01], [0.0, 1.0, 0.3]);
glass.props = Arc::new(json!({"name": "pane", "specular_transmission": 0.9}).as_object().cloned().unwrap());
let zs = [2.4, 1.6, 1.0, 0.7, 0.5, 2.4];
let all: Vec<Vec<Item>> = zs.iter().map(|z| vec![cam([0.0, 0.6, *z], [0.0, 0.4, 0.0]), desk.clone(), pen.clone(), glass.clone()]).collect();
let frames: Vec<i64> = (0..zs.len() as i64).collect();
let f = clearance(&all, &frames, 640, 360, 30.0, DEFAULT, "t");
// the desk's face is at z 0.4: frames 3 and 4 come within 0.3 and 0.1 m; one run, its nearest said
assert_eq!(f.len(), 1, "{f:?}");
assert!(f[0].says.contains("0.10 m from `desk` over frames 3-4"), "{}", f[0].says);
assert_eq!(f[0].level, Level::Error);
// a rig's camera may come closer
assert!(clearance(&all, &frames, 640, 360, 30.0, 0.05, "t").is_empty());
// inside it, said so
let inside = vec![vec![cam([0.0, 0.3, 0.0], [0.0, 0.3, -1.0]), desk.clone()]];
assert!(clearance(&inside, &[0], 640, 360, 30.0, DEFAULT, "t")[0].says.contains("inside `desk`"));
}
}
+9 -3
View File
@@ -1,16 +1,21 @@
//! `raea scene lint|explain|light|stage`: a composition's frames stepped without drawing and handed to raea-sys-contact
//! `raea scene lint|explain|light|stage|lod`: a composition's frames stepped without drawing and handed to raea-sys-contact
//! (what each part rests on, and parts that clip), raea-sys-light-meter (the light on a subject) and raea-sys-stage (3D
//! type that can't be read, parts that snap, a camera that lurches, empty frames: docs/stage-guards.feature).
//! type that can't be read, parts that snap, a camera that lurches, empty frames: docs/stage-guards.feature). `lod` is
//! each part's planned detail beside how large the frames show it (docs/make.feature MK23).
use serde_json::json;
use raea_runtime_bundle::{bundle_composition, comp_opts};
use raea_runtime_export::{frame_of, items};
// how near the camera passes to each solid part, every frame (`--clearance M`, MK16)
pub mod clearance;
mod light;
// each part's planned detail beside how large the frames show it (MK23)
pub mod lod;
mod stage;
pub const USAGE: &str = "raea scene lint|explain|light|stage EDIT.tsx [--composition ID] [--frame N] [--part NAME] [--from N] [--to N] [--json]";
pub const USAGE: &str = "raea scene lint|explain|light|stage|lod EDIT.tsx [--composition ID] [--frame N] [--part NAME] [--from N] [--to N] [--clearance M] [--json]";
/// `raea scene lint|explain EDIT.tsx [--composition ID] [--frame N] [--json]`: the frame's parts measured
/// (frame 0 by default). `lint` says the faults (errors fail it: floating, sunk, clipping; warnings: in the air,
@@ -22,6 +27,7 @@ pub fn cli(args: &[String]) -> Result<String, String> {
match mode {
"light" => return light::cli(args),
"stage" => return stage::cli(args),
"lod" => return lod::cli(args),
"lint" | "explain" => {}
_ => return Err(usage.into()),
}
+37
View File
@@ -0,0 +1,37 @@
//! `raea scene lod EDIT.tsx [--composition ID] [--from N] [--to N] [--json]` (docs/make.feature MK23): every part's
//! planned detail beside how large the frames show it. A part's plan is its own `lod` (0 the hero to 4 far), else its
//! name's on the job's plan (`lod` on brief.ts's make objects); what a frame shows is how much of it the part's box
//! spans (raea-runtime-lod-plan). The table lists the planned parts first, the ones seen closer than planned on top,
//! then the parts nobody planned by how large they get, so a part forgotten since the plan was written is found by
//! reading down it. A part seen two or more levels finer than planned fails it, as it fails a render.
use raea_core_facts::{Finding, Level, finding};
use raea_runtime_lod_plan::{ordered, table};
use serde_json::json;
pub(crate) fn cli(args: &[String]) -> Result<String, String> {
let crate::stage::Stepped { items, nums, size: (w, h, fps), dir } = crate::stage::stepped(args, "raea scene lod EDIT.tsx [--composition ID] [--from N] [--to N] [--json]")?;
let (first, last) = (nums[0], nums[nums.len() - 1]);
let plan = raea_runtime_lod_plan::plan::lods(&dir);
let mut unseen: Vec<String> = plan.keys().cloned().collect();
let (seen, fs) = raea_runtime_lod_plan::lods(&items, &nums, w, h, fps, "raea scene lod", plan);
let seen = ordered(seen);
// a level the plan gives a name no part in these frames goes by holds nothing: said, so the part gets its name
unseen.retain(|n| !seen.iter().any(|s| s.planned.is_some() && (s.name == *n || s.name.starts_with(&format!("{n} (lod ")))));
unseen.sort();
let text = if args.iter().any(|a| a == "--json") {
let parts: Vec<_> = seen.iter().map(|s| json!({"part": s.name, "planned": s.planned, "seen": s.level(), "largest": s.finest.map(|f| f.1), "at": s.finest.map(|f| f.0), "frames": s.frames, "closer": s.closer})).collect();
serde_json::to_string_pretty(&json!({"frames": [first, last], "parts": parts, "unseen": unseen, "findings": fs})).unwrap_or_default()
} else {
let levels = "levels, by how much of the frame a part spans: 0 hero 50%+, 1 featured 20%+, 2 dressing 8%+, 3 background 2%+, 4 far";
let none = seen.iter().filter(|s| s.planned.is_none()).count();
let missing = (!unseen.is_empty()).then(|| format!("planned in brief.ts, but no part of that name is in these frames (name the part as its object's id, or its plan holds nothing): {}", unseen.join(", ")));
let sum = format!("frames {first} to {last}: {} parts, {none} with no plan; {}", seen.len(), finding::count(&fs));
table(&seen).into_iter().chain(fs.iter().map(Finding::line)).chain(missing).chain([levels.to_string(), sum]).collect::<Vec<_>>().join("\n")
};
if fs.iter().any(|f| f.level == Level::Error) {
println!("{text}");
std::process::exit(1);
}
Ok(text)
}
+40 -7
View File
@@ -1,7 +1,10 @@
//! `raea scene stage EDIT.tsx [--composition ID] [--from N] [--to N] [--json]`: every frame's scene stepped without
//! drawing and held to the stage checks a render runs at its end (raea-sys-stage, docs/stage-guards.feature SG10-SG14):
//! 3D type that can't be read, parts that snap, a camera that lurches or reverses, frames with nothing composed in
//! them. Errors fail it, as they fail a render, so it's the cheap look before one.
//! them, a part shown closer than its planned detail (MK21). Errors fail it, as they fail a render, so it's the cheap look before one. It lays out no page, so what the
//! page holds waits for a render: its words over the parts (type-over-part), a Label's part as the shot's subject, and
//! a frame its words or pictures fill, which reads empty here and is said as a warning, not failed (SG11).
//! `--clearance M` holds the camera M metres off every solid part on every frame (0.45 for a carried camera, MK16).
use serde_json::json;
@@ -9,8 +12,16 @@ use raea_core_facts::{Level, finding};
use raea_runtime_bundle::{bundle_composition, comp_opts, flag};
use raea_runtime_export::{all_items, scene_frames_to};
pub(crate) fn cli(args: &[String]) -> Result<String, String> {
let usage = "raea scene stage EDIT.tsx [--composition ID] [--from N] [--to N] [--json]";
/// A composition's frames stepped without drawing, for `stage` and `lod`: each frame's parts from --from to --to (every
/// frame before is still stepped), their numbers, the frame's size and rate, and the composition's folder.
pub(crate) struct Stepped {
pub items: Vec<Vec<raea_core_scene::Item>>,
pub nums: Vec<i64>,
pub size: (u32, u32, f64),
pub dir: std::path::PathBuf,
}
pub(crate) fn stepped(args: &[String], usage: &str) -> Result<Stepped, String> {
let Some(edit) = args.get(2) else { return Err(usage.into()) };
let tsx = dunce::canonicalize(&std::path::PathBuf::from(edit)).map_err(|e| format!("{edit}: {e}"))?;
let dir = tsx.parent().unwrap().to_path_buf();
@@ -22,13 +33,35 @@ pub(crate) fn cli(args: &[String]) -> Result<String, String> {
let _ = std::fs::remove_file(&js);
let (frames, w, h, fps) = got?.ok_or("the composition has no 3D")?;
let frames: Vec<_> = frames.into_iter().filter(|(f, _)| *f >= from && to.is_none_or(|t| *f <= t)).collect();
let (Some(first), Some(last)) = (frames.first().map(|f| f.0), frames.last().map(|f| f.0)) else { return Err(format!("no frames from {from}")) };
let nums: Vec<i64> = frames.iter().map(|(f, _)| *f).collect();
let fs = raea_sys_stage::check(&all_items(&frames), &nums, w, h, fps, "raea scene stage");
if frames.is_empty() {
return Err(format!("no frames from {from}"));
}
Ok(Stepped { nums: frames.iter().map(|(f, _)| *f).collect(), items: all_items(&frames), size: (w, h, fps), dir })
}
pub(crate) fn cli(args: &[String]) -> Result<String, String> {
let Stepped { items, nums, size: (w, h, fps), dir } = stepped(args, "raea scene stage EDIT.tsx [--composition ID] [--from N] [--to N] [--clearance M] [--json]")?;
let (first, last) = (nums[0], nums[nums.len() - 1]);
let mut fs = raea_sys_stage::check(&items, &nums, w, h, fps, "raea scene stage");
// and each part held to its planned detail (its own `lod`, or its name's on the plan above it: MK21), as a render does
fs.extend(raea_runtime_lod_plan::lods(&items, &nums, w, h, fps, "raea scene stage", raea_runtime_lod_plan::plan::lods(&dir)).1.into_iter().filter(|f| f.check == "lod-closer"));
fs = raea_core_facts::finding::ranked(fs);
// the camera held off every solid part, when asked: the number after the flag, else a carried camera's 0.45 m
if let Some(v) = flag(args, "--clearance") {
let min = v.parse::<f32>().ok().filter(|m| *m >= 0.0).ok_or_else(|| format!("--clearance takes metres (0.45 for a carried camera), got {v:?}"))?;
let mut c = crate::clearance::clearance(&items, &nums, w, h, fps, min, "raea scene stage");
c.append(&mut fs);
fs = c;
}
for f in fs.iter_mut().filter(|f| f.check == "frame-empty" && f.level == Level::Error) {
f.level = Level::Warn;
f.says.push_str(" (no page is laid out here: if its words or pictures fill these frames, a render passes them)");
}
let text = if args.iter().any(|a| a == "--json") {
serde_json::to_string_pretty(&json!({"frames": [first, last], "findings": fs})).unwrap_or_default()
} else {
fs.iter().map(raea_core_facts::Finding::line).chain([format!("frames {first} to {last}: {}", finding::count(&fs))]).collect::<Vec<_>>().join("\n")
let note = "the page's checks (its words over parts, a Label's subject) run in raea render";
fs.iter().map(raea_core_facts::Finding::line).chain([format!("frames {first} to {last}: {} ({note})", finding::count(&fs))]).collect::<Vec<_>>().join("\n")
};
if fs.iter().any(|f| f.level == Level::Error) {
println!("{text}");
+2
View File
@@ -17,6 +17,8 @@ raea-runtime-bundle = { path = "../../runtime/bundle" }
# `raea judge`, dispatched with `raea solid` (verb())
raea-app-judge = { path = "../judge" }
raea-app-ask = { path = "../ask" }
# a scene, kit or shot held to its plan (docs/make.feature)
raea-app-make = { path = "../make" }
# `raea solid export`: the solid built, written as .glb and read back (core/shape), named and coloured (core/meshcheck)
raea-core-shape = { path = "../../core/shape" }
raea-core-meshcheck = { path = "../../core/meshcheck" }
+2 -1
View File
@@ -91,13 +91,14 @@ fn parse_set(s: &str) -> Result<Map<String, Value>, String> {
Ok(m)
}
/// `raea solid ...`, `raea judge ...` and `raea ask ...` (docs/ask.feature AK3, which prints as it goes and exits with
/// `raea solid ...`, `raea judge ...`, `raea make ...` (docs/make.feature) and `raea ask ...` (docs/ask.feature AK3, which prints as it goes and exits with
/// its own code), the verbs that build and judge a piece (engine/cli hands them over), or None for another verb.
pub fn verb(args: &[String]) -> Option<Result<String, String>> {
match args.first().map(String::as_str) {
Some("solid") => Some(cli(args)),
Some("judge") => Some(raea_app_judge::cli(args)),
Some("ask") => std::process::exit(raea_app_ask::cli(&args[1..])),
Some("make") => Some(raea_app_make::cli(args)),
_ => None,
}
}
+1 -1
View File
@@ -21,7 +21,7 @@ struct Hook {
fn hooks(agent: &str) -> R<Vec<Hook>> {
let h = |event, matcher, secs| Hook { event, matcher, secs };
Ok(match agent {
"claude" => vec![h("PreToolUse", "Bash", 30), h("PostToolUse", "*", 60), h("Stop", "", 10)],
"claude" => vec![h("PreToolUse", "Bash", 30), h("PostToolUse", "*", 60), h("Stop", "", 30)],
"codex" => vec![h("PreToolUse", "^(Bash|shell|shell_command|exec_command)$", 30), h("PostToolUse", "^(apply_patch|Edit|Write)$", 60)],
"gemini" => vec![h("BeforeTool", "run_shell_command", 30), h("AfterTool", "write_file|replace", 60)],
"kimi" => vec![h("PreToolUse", "Bash|Shell", 30), h("PostToolUse", "Write|Edit|WriteFile|StrReplaceFile", 60)],
+15 -9
View File
@@ -185,7 +185,21 @@ pub(crate) fn sounds_get(args: &[String]) -> R<String> {
}
}
let base = PathBuf::from(flag(args, "--dir").unwrap_or_else(|| ".".into()));
let out = flag(args, "-o").map(PathBuf::from).unwrap_or_else(|| base.join("media/sounds").join(format!("{pid}-{iid}")));
let mut out = flag(args, "-o").map(PathBuf::from).unwrap_or_else(|| base.join("media/sounds").join(format!("{pid}-{iid}")));
let licence = format!(
"{}\n{}\nlicence: {}\nsource: {}\n{}\n",
pack["name"].as_str().unwrap_or_default(),
inst["name"].as_str().unwrap_or_default(),
pack["licence"].as_str().unwrap_or_default(),
pack["source"].as_str().unwrap_or_default(),
pack["attribution"].as_str().unwrap_or_default()
);
// a folder that already holds another instrument keeps it: two instruments' notes share names (C4.mp3), and the
// second one's replaced the first's and its licence (#217). This one goes in a folder of its own inside it
if std::fs::read_to_string(out.join("LICENCE.txt")).is_ok_and(|held| held != licence) {
out = out.join(format!("{pid}-{iid}"));
said.push(format!("the folder given already holds another instrument, so this one is in {}", out.display()));
}
std::fs::create_dir_all(&out).map_err(|e| format!("{}: {e}", out.display()))?;
let cache = raea_io_home::user_home().unwrap_or_default().join(".cache/raea-sounds").join(pid).join(iid);
let template = pack["url"].as_str().unwrap_or_default();
@@ -201,14 +215,6 @@ pub(crate) fn sounds_get(args: &[String]) -> R<String> {
std::fs::copy(&cached, &to).map_err(|e| format!("{}: {e}", to.display()))?;
bytes += std::fs::metadata(&to).map(|m| m.len()).unwrap_or(0);
}
let licence = format!(
"{}\n{}\nlicence: {}\nsource: {}\n{}\n",
pack["name"].as_str().unwrap_or_default(),
inst["name"].as_str().unwrap_or_default(),
pack["licence"].as_str().unwrap_or_default(),
pack["source"].as_str().unwrap_or_default(),
pack["attribution"].as_str().unwrap_or_default()
);
std::fs::write(out.join("LICENCE.txt"), &licence).map_err(|e| e.to_string())?;
let var = iid.replace(|c: char| !c.is_ascii_alphanumeric(), "_");
let tsx = if pitched {
+26
View File
@@ -0,0 +1,26 @@
[package]
name = "raea-app-voice"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea voice: speech to speech on this computer (Silero's turns, Parakeet's words, Pocket TTS's voice) as lines of JSON, for an agent that talks"
[[bin]]
name = "raea-voice"
path = "src/main.rs"
[dependencies]
# Pocket TTS and its word clock
raea-io-trace = { path = "../../io/trace" }
raea-sys-speech = { path = "../../systems/speech" }
# ort sessions the way raea builds them, and the model cache
raea-sys-ml = { path = "../../systems/ml" }
ort = { version = "=2.0.0-rc.13", features = ["half"] }
# the microphone and the speakers: the cpal the mixer uses
cpal = "0.15"
anyhow = "1"
serde_json = "1"
[target.'cfg(all(windows, target_arch = "x86_64"))'.dependencies]
ort = { version = "=2.0.0-rc.13", features = ["load-dynamic"] }
+118
View File
@@ -0,0 +1,118 @@
//! Parakeet TDT 0.6b v3 (NVIDIA, CC-BY-4.0) on ONNX: what was said. The export is istupakov/parakeet-tdt-0.6b-v3-onnx
//! (int8 encoder and decoder, NeMo's 128-bin front end as a model of its own), decoded as onnx-asr's
//! NemoConformerTdt decodes it: greedy, each step's token and how many encoder frames to skip.
use std::path::Path;
use anyhow::{anyhow, Context};
use ort::session::Session;
use ort::value::Tensor;
use raea_sys_ml::models::Spec;
const REPO: &str = "istupakov/parakeet-tdt-0.6b-v3-onnx";
pub const SPEC: Spec = Spec {
name: "parakeet-tdt-0.6b-v3",
files: &[
(REPO, "nemo128.onnx", "nemo128.onnx"),
(REPO, "encoder-model.int8.onnx", "encoder-model.int8.onnx"),
(REPO, "decoder_joint-model.int8.onnx", "decoder_joint-model.int8.onnx"),
(REPO, "vocab.txt", "vocab.txt"),
],
};
/// The prediction network's state: two layers of 640.
const STATE: usize = 2 * 640;
/// Tokens one encoder frame may give before the decoder moves on (onnx-asr's max_tokens_per_step).
const PER_STEP: usize = 10;
pub struct Asr {
front: Session,
encoder: Session,
decoder: Session,
vocab: Vec<String>,
}
fn err(e: ort::Error) -> anyhow::Error {
anyhow!("parakeet: {e}")
}
impl Asr {
pub fn load(dir: &Path) -> anyhow::Result<Asr> {
let vocab = std::fs::read_to_string(dir.join("vocab.txt")).context("parakeet's vocab.txt")?;
// "token id" a line; the token itself can hold a space's mark but never a plain space
let vocab: Vec<String> = vocab.lines().filter_map(|l| l.rsplit_once(' ').map(|(t, _)| t.to_string())).collect();
anyhow::ensure!(vocab.last().map(String::as_str) == Some("<blk>"), "parakeet's vocab.txt doesn't end in its blank");
Ok(Asr {
front: raea_sys_ml::session(&dir.join("nemo128.onnx"))?,
encoder: raea_sys_ml::session(&dir.join("encoder-model.int8.onnx"))?,
decoder: raea_sys_ml::session(&dir.join("decoder_joint-model.int8.onnx"))?,
vocab,
})
}
/// The words in `x` (16 kHz mono), as one line.
pub fn hear(&mut self, x: &[f32]) -> anyhow::Result<String> {
if x.len() < 1600 {
return Ok(String::new());
}
let wave = Tensor::from_array(([1usize, x.len()], x.to_vec())).map_err(err)?;
let len = Tensor::from_array(([1usize], vec![x.len() as i64])).map_err(err)?;
let (shape, feats, flen) = {
let o = self.front.run(ort::inputs!["waveforms" => wave, "waveforms_lens" => len]).map_err(err)?;
let (shape, f) = o["features"].try_extract_tensor::<f32>().map_err(err)?;
let (_, l) = o["features_lens"].try_extract_tensor::<i64>().map_err(err)?;
(shape.iter().map(|d| *d as usize).collect::<Vec<_>>(), f.to_vec(), l[0])
};
let feats = Tensor::from_array((shape, feats)).map_err(err)?;
let flen = Tensor::from_array(([1usize], vec![flen])).map_err(err)?;
let (dim, frames, enc) = {
let o = self.encoder.run(ort::inputs!["audio_signal" => feats, "length" => flen]).map_err(err)?;
let (shape, e) = o["outputs"].try_extract_tensor::<f32>().map_err(err)?;
let (_, l) = o["encoded_lengths"].try_extract_tensor::<i64>().map_err(err)?;
(shape[1] as usize, (shape[2] as usize, l[0] as usize), e.to_vec())
};
let (width, frames) = frames;
let blank = self.vocab.len() - 1;
let (mut s1, mut s2) = (vec![0f32; STATE], vec![0f32; STATE]);
let mut tokens: Vec<usize> = Vec::new();
let (mut t, mut emitted) = (0usize, 0usize);
while t < frames.min(width) {
let frame: Vec<f32> = (0..dim).map(|d| enc[d * width + t]).collect();
let last = tokens.last().copied().unwrap_or(blank) as i32;
let o = self
.decoder
.run(ort::inputs![
"encoder_outputs" => Tensor::from_array(([1usize, dim, 1], frame)).map_err(err)?,
"targets" => Tensor::from_array(([1usize, 1], vec![last])).map_err(err)?,
"target_length" => Tensor::from_array(([1usize], vec![1i32])).map_err(err)?,
"input_states_1" => Tensor::from_array(([2usize, 1, 640], s1.clone())).map_err(err)?,
"input_states_2" => Tensor::from_array(([2usize, 1, 640], s2.clone())).map_err(err)?,
])
.map_err(err)?;
let (_, logits) = o["outputs"].try_extract_tensor::<f32>().map_err(err)?;
let best = |v: &[f32]| v.iter().enumerate().fold((0usize, f32::NEG_INFINITY), |b, (i, x)| if *x > b.1 { (i, *x) } else { b }).0;
let token = best(&logits[..self.vocab.len()]);
let skip = best(&logits[self.vocab.len()..]);
if token != blank {
s1.copy_from_slice(&o["output_states_1"].try_extract_tensor::<f32>().map_err(err)?.1[..STATE]);
s2.copy_from_slice(&o["output_states_2"].try_extract_tensor::<f32>().map_err(err)?.1[..STATE]);
tokens.push(token);
emitted += 1;
}
if skip > 0 {
t += skip;
emitted = 0;
} else if token == blank || emitted == PER_STEP {
t += 1;
emitted = 0;
}
}
Ok(self.text(&tokens))
}
/// Tokens as a line: a token's leading mark is the space before a word.
fn text(&self, tokens: &[usize]) -> String {
let joined: String = tokens.iter().map(|t| self.vocab[*t].as_str()).filter(|t| !t.starts_with("<|")).collect();
joined.replace('\u{2581}', " ").split_whitespace().collect::<Vec<_>>().join(" ")
}
}
+288
View File
@@ -0,0 +1,288 @@
//! The microphone and the speakers (cpal), or files in their place (`--from`, `--to`: a session with no devices, for
//! checks and for measuring).
use std::collections::VecDeque;
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use std::sync::mpsc::Sender;
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
use anyhow::{anyhow, bail, Context};
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
/// A stream's rate changed as it comes, by linear interpolation: speech in, and Pocket's 24 kHz out.
pub struct Resample {
/// input samples per output sample
step: f64,
/// where the next output sample falls, in input samples from the start of the next piece (-1 is `last`)
pos: f64,
last: f32,
}
impl Resample {
pub fn new(from: u32, to: u32) -> Resample {
Resample { step: from as f64 / to as f64, pos: 0.0, last: 0.0 }
}
pub fn push(&mut self, x: &[f32], out: &mut Vec<f32>) {
let Some(&end) = x.last() else { return };
while self.pos + 1.0 < x.len() as f64 {
let i = self.pos.floor();
let a = if i < 0.0 { self.last } else { x[i as usize] };
let b = x[(i + 1.0) as usize];
out.push(a + (b - a) * (self.pos - i) as f32);
self.pos += self.step;
}
self.pos -= x.len() as f64;
self.last = end;
}
}
/// Interleaved channels as one: each frame's mean.
fn mono(x: &[f32], ch: usize) -> Vec<f32> {
let mut out = Vec::with_capacity(x.len() / ch + 1);
for frame in x.chunks(ch) {
let mut sum = 0.0;
for s in frame {
sum += s;
}
out.push(sum / frame.len() as f32);
}
out
}
/// A WAV's sound as mono samples and its rate: 16-bit PCM or 32-bit float, any channels.
pub fn read_wav(path: &Path) -> anyhow::Result<(Vec<f32>, u32)> {
let b = std::fs::read(path).with_context(|| format!("{}", path.display()))?;
anyhow::ensure!(b.len() > 12 && &b[..4] == b"RIFF" && &b[8..12] == b"WAVE", "{}: not a WAV file", path.display());
let u16_at = |i: usize| u16::from_le_bytes([b[i], b[i + 1]]);
let u32_at = |i: usize| u32::from_le_bytes([b[i], b[i + 1], b[i + 2], b[i + 3]]);
let (mut at, mut fmt) = (12usize, None);
while at + 8 <= b.len() {
let (id, len) = (&b[at..at + 4], u32_at(at + 4) as usize);
let body = at + 8;
if id == b"fmt " && body + 16 <= b.len() {
fmt = Some((u16_at(body), u16_at(body + 2) as usize, u32_at(body + 4), u16_at(body + 14)));
} else if id == b"data" {
let (kind, ch, rate, bits) = fmt.ok_or_else(|| anyhow!("{}: its sound comes before its format", path.display()))?;
let data = &b[body..(body + len).min(b.len())];
let one: Vec<f32> = match (kind, bits) {
(1, 16) => data.chunks_exact(2).map(|s| i16::from_le_bytes([s[0], s[1]]) as f32 / 32768.0).collect(),
(3, 32) => data.chunks_exact(4).map(|s| f32::from_le_bytes([s[0], s[1], s[2], s[3]])).collect(),
_ => bail!("{}: a {bits}-bit WAV of kind {kind}; 16-bit PCM and 32-bit float are read", path.display()),
};
return Ok((mono(&one, ch.max(1)), rate));
}
at = body + len + (len & 1);
}
bail!("{}: a WAV with no sound in it", path.display())
}
/// Mono samples as a 16-bit WAV.
pub fn write_wav(path: &Path, x: &[f32], rate: u32) -> anyhow::Result<()> {
let mut b = Vec::with_capacity(44 + x.len() * 2);
let len = (x.len() * 2) as u32;
b.extend_from_slice(b"RIFF");
b.extend_from_slice(&(36 + len).to_le_bytes());
b.extend_from_slice(b"WAVEfmt ");
for v in [16u32, 1 | (1 << 16), rate, rate * 2, 2 | (16 << 16)] {
b.extend_from_slice(&v.to_le_bytes());
}
b.extend_from_slice(b"data");
b.extend_from_slice(&len.to_le_bytes());
for s in x {
b.extend_from_slice(&((s.clamp(-1.0, 1.0) * 32767.0) as i16).to_le_bytes());
}
std::fs::write(path, b).with_context(|| format!("{}", path.display()))
}
/// The microphone: 16 kHz mono in pieces down `tx` for as long as the stream it returns is kept.
pub fn microphone(tx: Sender<Vec<f32>>) -> anyhow::Result<cpal::Stream> {
let dev = cpal::default_host().default_input_device().ok_or_else(|| anyhow!("this computer has no microphone to listen on"))?;
let cfg = dev.default_input_config().map_err(|e| anyhow!("the microphone: {e}"))?;
let ch = cfg.channels().max(1) as usize;
let mut rs = Resample::new(cfg.sample_rate().0, crate::turns::RATE as u32);
let mut take = move |mono: Vec<f32>| {
let mut out = Vec::with_capacity(mono.len());
rs.push(&mono, &mut out);
let _ = tx.send(out);
};
let bad = raea_io_trace::once::said_once::<cpal::StreamError>("raea voice: the microphone");
let stream = match cfg.sample_format() {
cpal::SampleFormat::F32 => {
dev.build_input_stream(&cfg.config(), move |d: &[f32], _: &cpal::InputCallbackInfo| take(mono(d, ch)), bad, None)
}
cpal::SampleFormat::I16 => dev.build_input_stream(
&cfg.config(),
move |d: &[i16], _: &cpal::InputCallbackInfo| {
let x: Vec<f32> = d.iter().map(|s| *s as f32 / 32768.0).collect();
take(mono(&x, ch))
},
bad,
None,
),
f => bail!("the microphone gives {f:?} samples, which raea voice doesn't read"),
}
.map_err(|e| anyhow!("the microphone didn't open (is raea allowed to use it? System Settings > Privacy & Security > Microphone): {e}"))?;
stream.play().map_err(|e| anyhow!("the microphone didn't start: {e}"))?;
Ok(stream)
}
/// A WAV in the microphone's place: its sound at the pace it was recorded (at once with `fast`), a second and a half
/// of quiet after it so its last turn ends, and then the channel closes.
pub fn microphone_file(path: &Path, fast: bool, tx: Sender<Vec<f32>>) -> anyhow::Result<()> {
let (x, rate) = read_wav(path)?;
let mut heard = Vec::with_capacity(x.len());
Resample::new(rate, crate::turns::RATE as u32).push(&x, &mut heard);
heard.extend(std::iter::repeat_n(0.0, crate::turns::RATE * 3 / 2));
std::thread::spawn(move || {
// by the clock from its start, so a late wake-up is made up and it keeps a microphone's pace
let (began, mut sent) = (Instant::now(), 0u64);
for piece in heard.chunks(crate::turns::WIN) {
if tx.send(piece.to_vec()).is_err() {
return;
}
sent += piece.len() as u64;
if !fast {
std::thread::sleep((began + Duration::from_micros(1_000_000 * sent / crate::turns::RATE as u64)).saturating_duration_since(Instant::now()));
}
}
});
Ok(())
}
/// What is waiting to be played, shared with whoever makes the sound.
pub struct Line {
pub queue: Mutex<VecDeque<f32>>,
/// samples played so far, at the voice's rate
pub played: AtomicU64,
/// everything played, when it goes to a file
kept: Mutex<Vec<f32>>,
keep: AtomicBool,
/// what went to the speakers, quiet included, for the echo to be taken out of the microphone (echo.rs): kept
/// while `tap` is on, and taken by the session
pub far: Mutex<Vec<f32>>,
pub tap: AtomicBool,
}
impl Line {
/// Drops what hasn't been played yet (the person spoke over it, or it was stopped).
pub fn clear(&self) {
self.queue.lock().unwrap().clear();
}
/// (samples played so far, samples still waiting to be)
pub fn at(&self) -> (u64, usize) {
(self.played.load(Ordering::Relaxed), self.queue.lock().unwrap().len())
}
/// The next `n` samples (fewer when the queue runs out), counted as played.
fn take(&self, want: usize) -> Vec<f32> {
let mut q = self.queue.lock().unwrap();
let n = want.min(q.len());
let got: Vec<f32> = q.drain(..n).collect();
self.played.fetch_add(n as u64, Ordering::Relaxed);
if self.keep.load(Ordering::Relaxed) {
self.kept.lock().unwrap().extend(&got);
}
if self.tap.load(Ordering::Relaxed) && want < 1 << 20 {
let mut far = self.far.lock().unwrap();
far.extend(&got);
far.extend(std::iter::repeat_n(0.0, want - n));
}
got
}
}
/// A file in the speakers' place: what is waiting is taken at the pace it would play (all of it at once with `fast`).
fn drain(line: Arc<Line>, each: usize) {
std::thread::spawn(move || {
let (began, mut ticks) = (Instant::now(), 0u32);
while Arc::strong_count(&line) > 1 {
ticks += 1;
std::thread::sleep((began + Duration::from_millis(20) * ticks).saturating_duration_since(Instant::now()));
line.take(each);
}
});
}
/// The speakers, or a file in their place.
pub struct Speaker {
pub line: Arc<Line>,
rate: u32,
to: Option<PathBuf>,
_stream: Option<cpal::Stream>,
}
impl Speaker {
/// `rate`: the voice's. With `to`, nothing sounds: what would have played is written there when the session ends.
pub fn open(rate: u32, to: Option<PathBuf>, fast: bool) -> anyhow::Result<Speaker> {
let line = Arc::new(Line { queue: Mutex::new(VecDeque::new()), played: AtomicU64::new(0), kept: Mutex::new(Vec::new()), keep: AtomicBool::new(to.is_some()), far: Mutex::new(Vec::new()), tap: AtomicBool::new(false) });
if to.is_some() {
drain(line.clone(), if fast { usize::MAX } else { rate as usize / 50 });
return Ok(Speaker { line, rate, to, _stream: None });
}
let dev = cpal::default_host().default_output_device().ok_or_else(|| anyhow!("this computer has nothing to play sound on"))?;
let cfg = dev.default_output_config().map_err(|e| anyhow!("the speakers: {e}"))?;
anyhow::ensure!(cfg.sample_format() == cpal::SampleFormat::F32, "the speakers take {:?} samples, which raea voice doesn't write", cfg.sample_format());
let ch = cfg.channels().max(1) as usize;
let mut rs = Resample::new(rate, cfg.sample_rate().0);
let need = rate as f64 / cfg.sample_rate().0 as f64;
let l = line.clone();
let mut ready: VecDeque<f32> = VecDeque::new();
let play = move |out: &mut [f32], _: &cpal::OutputCallbackInfo| {
let frames = out.len() / ch;
if ready.len() < frames {
let mut made = Vec::new();
rs.push(&l.take(((frames - ready.len()) as f64 * need).ceil() as usize + 2), &mut made);
ready.extend(made);
}
for f in out.chunks_mut(ch) {
f.fill(ready.pop_front().unwrap_or(0.0));
}
};
let stream = dev.build_output_stream(&cfg.config(), play, raea_io_trace::once::said_once::<cpal::StreamError>("raea voice: the speakers"), None).map_err(|e| anyhow!("the speakers didn't open: {e}"))?;
stream.play().map_err(|e| anyhow!("the speakers didn't start: {e}"))?;
Ok(Speaker { line, rate, to, _stream: Some(stream) })
}
/// Writes the file, when the session's sound went to one.
pub fn close(&self) -> anyhow::Result<()> {
match &self.to {
Some(p) => write_wav(p, &self.line.kept.lock().unwrap(), self.rate),
None => Ok(()),
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn a_rate_changes_piece_by_piece_as_it_would_whole() {
let x: Vec<f32> = (0..4800).map(|i| (i as f32 * 0.01).sin()).collect();
let mut whole = Vec::new();
Resample::new(48_000, 16_000).push(&x, &mut whole);
let mut pieces = Vec::new();
let mut rs = Resample::new(48_000, 16_000);
for p in x.chunks(477) {
rs.push(p, &mut pieces);
}
assert!((whole.len() as i64 - 1600).abs() <= 1, "a third as many samples: {}", whole.len());
assert_eq!(whole.len(), pieces.len());
assert!(whole.iter().zip(&pieces).all(|(a, b)| (a - b).abs() < 1e-5));
}
#[test]
fn a_wav_written_reads_back() {
let f = std::env::temp_dir().join(format!("raea-voice-{}.wav", std::process::id()));
let x: Vec<f32> = (0..2400).map(|i| (i as f32 * 0.05).sin() * 0.5).collect();
write_wav(&f, &x, 24_000).unwrap();
let (y, rate) = read_wav(&f).unwrap();
std::fs::remove_file(&f).unwrap();
assert_eq!((rate, y.len()), (24_000, x.len()));
assert!(x.iter().zip(&y).all(|(a, b)| (a - b).abs() < 1e-3));
}
}
+374
View File
@@ -0,0 +1,374 @@
//! raea's own voice taken out of what the microphone hears, so the person can talk over it.
//!
//! A computer's microphone hears its speakers. While raea speaks, what was sent to the speakers (the far side) is
//! passed through a filter that learns the way from speaker to microphone (an NLMS adaptive filter, 128 ms long, at
//! the hearing rate), and what the filter makes of it is taken from the microphone's sound. What is left is the
//! person, when they speak. Where in time the echo sits (the sound card's and the room's delay) is found first, by
//! lining up the two sides' loudness over the last second.
//!
//! Until the filter has learned the room (`sure`: a second of its voice, the echo down by 10 dB or more) nothing
//! left over counts as the person, so raea is never stopped by its own voice. Once it has, sound that stands clear
//! of the echo is the person (`near`). Two filters do it (the two-path way): the one in use never learns, the one
//! behind it always does and replaces it when it leaves less, so the person's voice is never learned as echo.
use std::collections::VecDeque;
use std::time::{Duration, Instant};
use crate::audio::Resample;
use crate::turns::WIN;
/// The filter's length: 128 ms of the way from speaker to microphone.
const TAPS: usize = 2048;
/// Loudness is compared in blocks of 4 ms.
const BLOCK: usize = 64;
/// The echo is looked for up to 480 ms late.
const LAGS: usize = 120;
/// A second of loudness is lined up.
const ENV: usize = 250;
/// How much of the far side is kept: the latest echo the filter can be asked about.
const HIST: usize = LAGS * BLOCK + TAPS + WIN;
/// The far side counts as sounding above this mean square (about -60 dBFS).
const SOUNDING: f32 = 1e-6;
/// How fast the filter learns.
const MU: f32 = 0.3;
/// What a window turned out to hold.
#[derive(Clone, Copy, Debug, Default)]
pub struct Heard {
/// raea's own voice was sounding in it
pub far: bool,
/// something stands clear of raea's own voice (always, when raea is quiet)
pub near: bool,
/// the filter has learned the room: what's left can be trusted
pub sure: bool,
}
pub struct Echo {
far: Vec<f32>,
w: Vec<f32>,
/// the filter behind it, always learning; and for how many windows it has done better, or worse
behind: Vec<f32>,
better: usize,
worse: usize,
pub delay: usize,
mic_env: Vec<f32>,
far_env: Vec<f32>,
/// a delay seen, and how many times in a row
vote: (usize, usize),
/// how much quieter the echo leaves than it came, smoothed
pub erle: f32,
/// windows learned on since the delay was last set
learned: usize,
sure: bool,
windows: usize,
}
impl Default for Echo {
fn default() -> Echo {
Echo { far: vec![0.0; HIST], w: vec![0.0; TAPS], behind: vec![0.0; TAPS], better: 0, worse: 0, delay: 0, mic_env: Vec::new(), far_env: Vec::new(), vote: (0, 0), erle: 1.0, learned: 0, sure: false, windows: 0 }
}
}
fn power(x: &[f32]) -> f32 {
let mut p = 0.0;
for s in x {
p += s * s;
}
p
}
impl Echo {
/// The filter starts over (the echo moved in time, or the room changed).
fn forget(&mut self) {
self.w.fill(0.0);
self.behind.fill(0.0);
(self.erle, self.learned, self.sure, self.better, self.worse) = (1.0, 0, false, 0, 0);
}
/// Where the echo sits: the lag (in blocks) at which the microphone's loudness follows the far side's best.
fn lag(&self) -> Option<usize> {
if self.mic_env.len() < ENV || self.far_env.len() < ENV + LAGS {
return None;
}
let mic = &self.mic_env[self.mic_env.len() - ENV..];
let mean = |x: &[f32]| x.iter().sum::<f32>() / x.len() as f32;
let (mm, mut best) = (mean(mic), (0.6, None));
let mv: f32 = mic.iter().map(|a| (a - mm) * (a - mm)).sum();
for l in 0..=LAGS {
let at = self.far_env.len() - ENV - l;
let far = &self.far_env[at..at + ENV];
let fm = mean(far);
let (mut c, mut fv) = (0.0, 0.0);
for (a, b) in mic.iter().zip(far) {
c += (a - mm) * (b - fm);
fv += (b - fm) * (b - fm);
}
let r = c / (mv * fv).sqrt().max(1e-12);
if r > best.0 {
best = (r, Some(l));
}
}
best.1
}
/// One pass of a filter over a window: what's left of `mic` goes to `out`; returns (left, echo made) as power,
/// each sample's judged before the filter learns from it.
fn pass(far: &[f32], delay: usize, w: &mut [f32], mic: &[f32], learn: bool, out: &mut [f32]) -> (f32, f32) {
let (mut left, mut made) = (0.0, 0.0);
let first = far.len() - mic.len() - delay;
let mut norm = power(&far[first + 1 - TAPS..=first]);
for (n, d) in mic.iter().enumerate() {
let at = first + n;
if n > 0 {
norm += far[at] * far[at] - far[at - TAPS] * far[at - TAPS];
}
let x = &far[at + 1 - TAPS..=at];
let mut y = 0.0;
for (a, b) in w.iter().zip(x) {
y += a * b;
}
let e = d - y;
if learn && norm > SOUNDING {
let g = MU * e / (norm + 1e-3);
for (a, b) in w.iter_mut().zip(x) {
*a += g * b;
}
}
out[n] = e;
left += e * e;
made += y * y;
}
(left, made)
}
/// A window of the microphone and the window of the far side played with it. What's left of the microphone's
/// goes to `out`.
pub fn push(&mut self, mic: &[f32], far: &[f32], out: &mut Vec<f32>) -> Heard {
self.far.drain(..far.len());
self.far.extend_from_slice(far);
for (m, f) in mic.chunks(BLOCK).zip(far.chunks(BLOCK)) {
self.mic_env.push(power(m));
self.far_env.push(power(f));
}
let (m, f) = (self.mic_env.len().saturating_sub(ENV), self.far_env.len().saturating_sub(ENV + LAGS));
self.mic_env.drain(..m);
self.far_env.drain(..f);
self.windows += 1;
out.clear();
out.resize(mic.len(), 0.0);
// is raea's voice in what the filter is asked about, and has the echo moved?
let span = &self.far[self.far.len() - mic.len() - self.delay - TAPS..self.far.len() - self.delay];
let sounding = power(span) / span.len() as f32 > SOUNDING;
let loud = self.far_env[self.far_env.len().saturating_sub(ENV)..].iter().sum::<f32>() / (ENV * BLOCK) as f32 > SOUNDING;
if loud && self.windows % 4 == 0 {
if let Some(l) = self.lag() {
self.vote = if l == self.vote.0 { (l, self.vote.1 + 1) } else { (l, 1) };
// the filter starts 8 ms before where the echo is loudest
let to = l.saturating_sub(2) * BLOCK;
if self.vote.1 >= 3 && to.abs_diff(self.delay) > 2 * BLOCK {
self.delay = to;
self.forget();
}
}
}
if !sounding {
out.copy_from_slice(mic);
return Heard { far: false, near: true, sure: self.sure };
}
// The filter that is used only takes out; a second one behind it never stops learning. When the second
// leaves less (the first hadn't met this sound yet, or the room changed), it becomes the first. The person's
// voice can't be learned as echo that way: it makes the second worse, not better, and the first is untouched.
let (left, made) = Echo::pass(&self.far, self.delay, &mut self.w, mic, false, out);
let mut scratch = vec![0.0; mic.len()];
// (the one behind is judged as it stood before this window, then learns from it: judged while it learns, it
// seems to take out some of any voice, since each sample's correction carries into the next)
let (behind, _) = Echo::pass(&self.far, self.delay, &mut self.behind, mic, false, &mut scratch);
Echo::pass(&self.far, self.delay, &mut self.behind, mic, true, &mut scratch);
// (better only when it also takes most of the sound out: with the person talking nothing can, so a filter
// that chased their voice is never taken up)
let came = power(mic);
self.better = if behind < 0.7 * left && behind < 0.5 * came { self.better + 1 } else { 0 };
self.worse = if behind > 2.0 * left { self.worse + 1 } else { 0 };
// (the person's voice leaves the one behind no better off; a sound the filter hadn't met does, at once)
let misfit = behind < 0.85 * left;
if self.better >= 2 {
self.w.copy_from_slice(&self.behind);
self.better = 0;
} else if self.worse >= 3 {
self.behind.copy_from_slice(&self.w);
self.worse = 0;
}
// clear of the echo: well above what the filter usually leaves of it (four times, and never under a sixteenth),
// and not something the filter behind could have taken out
// (what is louder than the whole echo can't be the echo misjudged, whatever the filter behind makes of it)
let near = (!misfit || left > 2.0 * made) && left > made * (4.0 / self.erle).max(0.06) && left / mic.len() as f32 > SOUNDING;
if !(self.sure && near) {
self.erle = 0.9 * self.erle + 0.1 * (came / left.max(1e-12)).min(1000.0);
}
// a filter gone wrong adds sound: then the microphone's own is what's left
if left > came {
out.copy_from_slice(mic);
}
self.learned += 1;
// a second of its own voice learned, and the echo down by 10 dB (7 dB keeps it, once reached)
self.sure = self.learned >= 32 && self.erle >= if self.sure { 5.0 } else { 10.0 };
Heard { far: true, near, sure: self.sure }
}
}
/// The far side lined up with the microphone, window by window. Both come at their own pace in pieces, so a
/// microphone window waits (a few milliseconds) until the far side that played with it, and the two windows after,
/// have arrived: the echo then always comes after the sound that made it, never before.
pub struct Sides {
rs: Resample,
far: Vec<f32>,
/// how many far samples came before `far[0]`
base: u64,
/// the far sample that plays as the microphone's first is heard
offset: Option<u64>,
mic: u64,
held: VecDeque<(Vec<f32>, Instant)>,
room: Option<f32>,
}
impl Sides {
/// `rate`: the far side's. `room`: a simulated room's gain (checks), in place of a real one.
pub fn new(rate: u32, room: Option<f32>) -> Sides {
Sides { rs: Resample::new(rate, crate::turns::RATE as u32), far: vec![0.0; SPAN + WIN], base: 0, offset: None, mic: 0, held: VecDeque::new(), room }
}
/// More of what went to the speakers.
pub fn far(&mut self, x: &[f32]) {
self.rs.push(x, &mut self.far);
}
/// A window from the microphone.
pub fn mic(&mut self, win: Vec<f32>) {
self.held.push_back((win, Instant::now()));
}
/// The next microphone window whose far side has come, and that far side.
pub fn next(&mut self) -> Option<(Vec<f32>, Vec<f32>)> {
let waited = self.held.front()?.1.elapsed();
let total = self.base + self.far.len() as u64;
let offset = *self.offset.get_or_insert(total);
// where the far side stands as this window ends, and the two windows more the filter is given
let now = offset + self.mic + WIN as u64;
let end = now + 2 * WIN as u64;
if total < end {
// the speakers aren't being fed (they stopped, or never started): quiet stands in
if waited < Duration::from_millis(300) {
return None;
}
self.far.resize(self.far.len() + (end - total) as usize, 0.0);
}
let (mut mic, _) = self.held.pop_front()?;
let at = |i: u64| (i - self.base) as usize;
if let Some(gain) = self.room {
room(&self.far[at(now) - WIN - SPAN..at(now)], gain, &mut mic);
}
let far = self.far[at(end) - WIN..at(end)].to_vec();
self.mic += WIN as u64;
// the far side behind what any later window can ask for goes
let old = at(now).saturating_sub(WIN + SPAN);
if old > 16_000 {
self.far.drain(..old);
self.base += old as u64;
}
Some((mic, far))
}
}
/// A room, for checks with no microphone: what the far side sounds like to a microphone 40 ms and a few surfaces
/// away, at `gain`, added to `mic`. `far` ends where `mic` does and is `SPAN` longer.
pub fn room(far: &[f32], gain: f32, mic: &mut [f32]) {
const WAYS: [(usize, f32); 6] = [(640, 1.0), (688, -0.45), (816, 0.3), (1008, -0.2), (1360, 0.12), (1840, -0.07)];
let first = far.len() - mic.len();
for (n, m) in mic.iter_mut().enumerate() {
let mut e = 0.0;
for (late, by) in WAYS {
e += by * far[first + n - late];
}
*m += gain * e;
}
}
/// How much more of the far side `room` needs than the window it fills.
pub const SPAN: usize = 1840;
#[cfg(test)]
mod tests {
use super::*;
/// Something like speech: noise that swells and falls a few times a second.
fn babble(n: usize, seed: u32) -> Vec<f32> {
let mut s = seed;
(0..n)
.map(|i| {
s = s.wrapping_mul(1_664_525).wrapping_add(1_013_904_223);
let noise = (s >> 8) as f32 / (1u32 << 24) as f32 - 0.5;
noise * 0.4 * (0.55 + 0.45 * (i as f32 * 0.0021).sin()) * if (i / 4000) % 3 == 2 { 0.05 } else { 1.0 }
})
.collect()
}
/// Runs `secs` of raea talking in the simulated room, the person talking over it from `over` (a window) on.
fn run(secs: usize, over: Option<usize>) -> (Echo, Vec<Heard>, Vec<f32>) {
let n = secs * 16_000 / WIN;
let far = babble(n * WIN + SPAN, 7);
let person = babble(n * WIN, 99);
let (mut echo, mut heard, mut ratio, mut out) = (Echo::default(), Vec::new(), Vec::new(), Vec::new());
for k in 0..n {
let mut mic = vec![0.0; WIN];
room(&far[k * WIN..(k + 1) * WIN + SPAN], 0.8, &mut mic);
if over.is_some_and(|o| k >= o) {
for (m, p) in mic.iter_mut().zip(&person[k * WIN..]) {
*m += p * 0.8;
}
}
let came = power(&mic);
heard.push(echo.push(&mic, &far[SPAN + k * WIN..SPAN + (k + 1) * WIN], &mut out));
ratio.push(power(&out) / came.max(1e-12));
}
(echo, heard, ratio)
}
#[test]
fn its_own_voice_is_learned_and_taken_out() {
let (echo, heard, ratio) = run(6, None);
// the echo's direct sound is 640 samples late: the filter starts just before it
assert!(echo.delay <= 640 && echo.delay + 256 >= 640, "delay {}", echo.delay);
let sure = heard.iter().position(|h| h.sure).expect("never sure");
assert!(sure < 3 * 16_000 / WIN, "sure only after {sure} windows");
// once sure, nothing is taken for the person, and the echo is down to a twentieth or less in most windows
let after = sure + 16;
// (some windows stand out while the filter in use waits for the one behind; the session also wants them to
// sound like speech, which noise doesn't)
let own = heard[after..].iter().filter(|h| h.far && h.near).count();
assert!(own * 5 <= heard.len() - after, "its own voice taken for the person in {own} of {} windows", heard.len() - after);
let mut late: Vec<f32> = heard[after..].iter().zip(&ratio[after..]).filter(|(h, _)| h.far).map(|(_, r)| *r).collect();
late.sort_by(f32::total_cmp);
assert!(late[late.len() / 2] < 0.05, "half the windows keep more than a twentieth: {}", late[late.len() / 2]);
}
#[test]
fn the_person_talking_over_it_stands_clear() {
let at = 5 * 16_000 / WIN;
let (_, heard, ratio) = run(6, Some(at));
assert!(heard[at - 1].sure);
let over = &heard[at..];
let clear = over.iter().filter(|h| h.near).count();
assert!(clear * 10 >= over.len() * 6, "clear in {clear} of {} windows", over.len());
// (their voice has pauses) and it is left in: most of what came is still there
assert!(ratio[at..].iter().sum::<f32>() / over.len() as f32 > 0.3);
}
#[test]
fn quiet_passes_through() {
let (mut echo, mut out) = (Echo::default(), Vec::new());
let mic: Vec<f32> = (0..WIN).map(|i| (i as f32 * 0.1).sin() * 0.2).collect();
let h = echo.push(&mic, &[0.0; WIN], &mut out);
assert!(!h.far && h.near && out == mic);
}
}
+110
View File
@@ -0,0 +1,110 @@
//! `raea voice`: speech to speech on this computer, for an agent that talks (the app's ideation session). Silero VAD
//! says when the person starts and stops speaking, Parakeet says what they said, and Pocket TTS says the agent's
//! words as they arrive, sentence by sentence. Nothing leaves the computer and nothing is paid for; the models are
//! fetched the first time (about 800 MB) into raea's model folder.
//!
//! `raea voice` is a session over lines of JSON (session.rs has them). `raea voice hear FILE.wav` and
//! `raea voice say "WORDS" -o OUT.wav` are one hearing and one saying, with how long each took.
use std::path::PathBuf;
use std::time::Instant;
use serde_json::json;
pub mod asr;
pub mod audio;
pub mod echo;
pub mod session;
pub mod speak;
pub mod turns;
pub const USAGE: &str = "raea voice [--voice NAME] [--duplex] [--over] [--pause MS] [--from IN.wav] [--to OUT.wav] [--room GAIN] [--fast] | raea voice hear FILE.wav | raea voice say \"WORDS\" -o OUT.wav [--voice NAME]";
pub const ABOUT: &str = "speech in and out on this computer, as lines of JSON on stdin and stdout: what raea.app's Ideate hears and speaks with. While it speaks it doesn't listen, unless --duplex (headphones: it listens all the time) or --over (speakers: its own voice is taken out of the microphone's sound, new and not yet tried across real rooms); --room GAIN is a simulated room for checking --over with files; hear writes a recording's words, say speaks words to a file";
/// A model's download told as it goes, once every 20 MB of each file.
pub fn fetching(emit: fn(serde_json::Value)) -> impl FnMut(&str, u64) {
let mut last = (String::new(), 0u64);
move |file: &str, bytes: u64| {
let mb = bytes / 20_000_000 * 20;
if last.0 != file || last.1 != mb {
last = (file.to_string(), mb);
emit(json!({ "fetch": { "file": file, "mb": mb } }));
}
}
}
/// The word after `name` on the command line.
fn flag(args: &[String], name: &str) -> Option<String> {
args.windows(2).find(|w| w[0] == name).map(|w| w[1].clone())
}
fn quiet(_: serde_json::Value) {}
/// `raea voice hear FILE.wav`: what the file says, with how long loading and hearing took.
fn hear(file: &str) -> anyhow::Result<String> {
let (x, rate) = audio::read_wav(std::path::Path::new(file))?;
let mut heard = Vec::with_capacity(x.len());
audio::Resample::new(rate, turns::RATE as u32).push(&x, &mut heard);
let t = Instant::now();
let mut asr = asr::Asr::load(&raea_sys_ml::models::ensure(&asr::SPEC, &mut fetching(quiet))?)?;
let load_ms = t.elapsed().as_millis() as u64;
let t = Instant::now();
let text = asr.hear(&heard)?;
Ok(json!({ "text": text, "seconds": heard.len() as f64 / turns::RATE as f64, "load_ms": load_ms, "ms": t.elapsed().as_millis() as u64 }).to_string())
}
/// `raea voice say "WORDS" -o OUT.wav`: the words said into a file, with how long the first sound and the whole took.
fn say(text: &str, out: &str, voice: Option<String>) -> anyhow::Result<String> {
use raea_sys_speech::pocket::{Out, Pocket};
let t = Instant::now();
let mut pocket = Pocket::load(&raea_sys_ml::models::ensure(&Pocket::SPEC, &mut fetching(quiet))?)?;
// Pocket's stock voice, as a session's: never the clip the library's own default takes from the person's voice folder
let voice = voice.unwrap_or_else(|| Pocket::VOICES[0].to_string());
pocket.begin("", &voice, 1, 0.7)?;
let load_ms = t.elapsed().as_millis() as u64;
let t = Instant::now();
let (mut sound, mut first_ms) = (Vec::new(), None);
let mut g = pocket.begin(text, &voice, 7, 0.7)?;
while let Some(o) = pocket.step(&mut g)? {
if let Out::Audio(a) = o {
first_ms.get_or_insert(t.elapsed().as_millis() as u64);
sound.extend(a);
}
}
let ms = t.elapsed().as_millis() as u64;
audio::write_wav(std::path::Path::new(out), &sound, speak::RATE)?;
Ok(json!({ "voice": voice, "seconds": sound.len() as f64 / speak::RATE as f64, "load_ms": load_ms, "first_ms": first_ms, "ms": ms }).to_string())
}
pub fn cli(args: &[String]) -> Result<String, String> {
let said = |e: anyhow::Error| format!("raea voice: {e:#}");
match args.get(1).map(String::as_str) {
Some("hear") => hear(args.get(2).ok_or(USAGE)?).map_err(said),
Some("say") => say(args.get(2).ok_or(USAGE)?, &flag(args, "-o").ok_or(USAGE)?, flag(args, "--voice")).map_err(said),
Some("help" | "--help" | "-h") => Ok(format!("usage: {USAGE}\n({ABOUT})")),
Some(a) if !a.starts_with("--") => Err(USAGE.into()),
_ => {
let pause_ms = match flag(args, "--pause") {
Some(p) => p.parse().map_err(|_| "--pause takes milliseconds".to_string())?,
None => 700,
};
let o = session::Opts {
from: flag(args, "--from").map(PathBuf::from),
to: flag(args, "--to").map(PathBuf::from),
voice: flag(args, "--voice"),
duplex: args.iter().any(|a| a == "--duplex"),
over: args.iter().any(|a| a == "--over"),
room: match flag(args, "--room") {
Some(g) => Some(g.parse().map_err(|_| "--room takes a gain, like 0.5".to_string())?),
None => None,
},
fast: args.iter().any(|a| a == "--fast"),
pause_ms,
};
session::run(o).map(|_| String::new()).map_err(|e| {
session::emit(json!({ "error": format!("{e:#}") }));
said(e)
})
}
}
}
+12
View File
@@ -0,0 +1,12 @@
//! `raea-voice`: raea voice on its own (what `raea voice` runs), for a build that needs none of the engine.
fn main() {
let args: Vec<String> = std::iter::once("voice".to_string()).chain(std::env::args().skip(1)).collect();
match raea_app_voice::cli(&args) {
Ok(s) if s.is_empty() => {}
Ok(s) => println!("{s}"),
Err(e) => {
eprintln!("{e}");
std::process::exit(1);
}
}
}
+295
View File
@@ -0,0 +1,295 @@
//! A voice session: lines of JSON in (what to say), lines of JSON out (what was heard, and how the saying goes).
//!
//! in {"say":{"id":"u1","text":"Got it. "}} more of utterance u1's words (send as a model streams them)
//! {"end":"u1"} u1 has all its words
//! {"stop":true} stop talking now
//! {"mute":true|false} stop or start listening
//! {"quit":true} (or the input closing) say what's left, then end
//! out {"fetch":{"file","mb"}} a model downloading, the first time
//! {"ready":{"voice","hears","rate"}} it can hear and speak
//! {"level":-37.5} the microphone's loudness (dBFS), a few times a second
//! {"speech":"began"|"ended"} the person started or stopped speaking
//! {"heard":{"text","seconds","ms"}} what they said, how long they spoke and how long hearing it took
//! {"saying":{"id","first_ms"}} u1's first sound, and how long after its first words came
//! {"word":{"id","i","text"}} a word of u1 starting to sound
//! {"said":{"id"}} u1 was said to its end
//! {"stopped":{"id"}} u1 was cut off (a stop, or the person spoke over it)
//! {"error":"..."}
//!
//! While raea speaks it doesn't listen: a computer's microphone hears its own speakers, and raea would take its own
//! voice for the person interrupting. Words begun before it started are still heard. Two ways to talk over it:
//! `duplex` listens all the time with nothing taken out (headphones), and `over` takes raea's own voice out of what
//! the microphone hears (echo.rs) so speakers work too: what stands clear of it stops raea. `over` is new: it has
//! been checked in a simulated room (`room`), not yet across real rooms, so it isn't the default.
use std::collections::VecDeque;
use std::io::{BufRead, Write};
use std::path::PathBuf;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::mpsc::{channel, RecvTimeoutError};
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
use serde_json::{json, Value};
use crate::audio::{microphone, microphone_file, Speaker};
use crate::echo::{Echo, Heard, Sides};
use crate::speak::{Say, Words, RATE};
use crate::turns::{Turn, Turns, Vad, WIN};
pub struct Opts {
pub from: Option<PathBuf>,
pub to: Option<PathBuf>,
pub voice: Option<String>,
pub duplex: bool,
/// listen while speaking, with raea's own voice taken out of the microphone's sound
pub over: bool,
/// a simulated room's gain, in place of a real one (checks)
pub room: Option<f32>,
pub fast: bool,
pub pause_ms: usize,
}
pub fn emit(v: Value) {
let mut o = std::io::stdout().lock();
let _ = writeln!(o, "{v}");
let _ = o.flush();
}
/// What a line of input asks for; None for a line that asks nothing known.
pub enum Ask {
Say(Say),
Mute(bool),
Quit,
}
pub fn ask(line: &str) -> Option<Ask> {
let v: Value = serde_json::from_str(line).ok()?;
if let Some(s) = v.get("say") {
return Some(Ask::Say(Say::Text { id: s.get("id")?.as_str()?.to_string(), text: s.get("text")?.as_str()?.to_string() }));
}
if let Some(id) = v.get("end").and_then(Value::as_str) {
return Some(Ask::Say(Say::End(id.to_string())));
}
if v.get("stop").is_some() {
return Some(Ask::Say(Say::Stop));
}
if let Some(m) = v.get("mute").and_then(Value::as_bool) {
return Some(Ask::Mute(m));
}
v.get("quit").map(|_| Ask::Quit)
}
/// dBFS of a window, one decimal.
fn level(win: &[f32]) -> f64 {
let rms = (win.iter().map(|s| s * s).sum::<f32>() / win.len().max(1) as f32).sqrt();
((20.0 * rms.max(1e-6).log10()) as f64 * 10.0).round() / 10.0
}
pub fn run(o: Opts) -> anyhow::Result<()> {
let speaker = Speaker::open(RATE, o.to.clone(), o.fast)?;
let words = Arc::new(Mutex::new(Words::default()));
let talking = Arc::new(AtomicBool::new(false));
let muted = Arc::new(AtomicBool::new(false));
let closing = Arc::new(AtomicBool::new(false));
let hearing = Arc::new(AtomicUsize::new(0));
// the voice
let (say_tx, say_rx) = channel::<Say>();
let (voice_ready, voice_is) = channel();
let (line, w, t, name) = (speaker.line.clone(), words.clone(), talking.clone(), o.voice.clone());
let voice = std::thread::spawn(move || crate::speak::worker(say_rx, line, w, name, t, voice_ready, emit));
// the ears: each turn's sound heard on its own thread, so the microphone is never kept waiting
let (heard_tx, heard_rx) = channel::<Vec<f32>>();
let (ears_ready, ears_are) = channel();
let pending = hearing.clone();
std::thread::spawn(move || {
let loaded = raea_sys_ml::models::ensure(&crate::asr::SPEC, &mut crate::fetching(emit)).and_then(|d| crate::asr::Asr::load(&d));
let mut asr = match loaded {
Ok(a) => {
let _ = ears_ready.send(Ok(()));
a
}
Err(e) => {
let _ = ears_ready.send(Err(e));
return;
}
};
for said in heard_rx {
let t = Instant::now();
match asr.hear(&said) {
Ok(text) => emit(json!({ "heard": { "text": text, "seconds": (said.len() as f64 / crate::turns::RATE as f64 * 100.0).round() / 100.0, "ms": t.elapsed().as_millis() as u64 } })),
Err(e) => emit(json!({ "error": format!("{e:#}") })),
}
pending.fetch_sub(1, Ordering::Relaxed);
}
});
let mut vad = Vad::load(&crate::turns::model(&mut crate::fetching(emit))?)?;
let name = voice_is.recv().map_err(|_| anyhow::anyhow!("the voice stopped before it could speak"))??;
ears_are.recv().map_err(|_| anyhow::anyhow!("the ears stopped before they could hear"))??;
// what's asked, line by line
let (tx, m, c) = (say_tx.clone(), muted.clone(), closing.clone());
std::thread::spawn(move || {
for line in std::io::stdin().lock().lines() {
let Ok(line) = line else { break };
match ask(&line) {
Some(Ask::Say(s)) => drop(tx.send(s)),
Some(Ask::Mute(on)) => m.store(on, Ordering::Relaxed),
Some(Ask::Quit) => break,
None if line.trim().is_empty() => {}
None => emit(json!({ "error": format!("not a line raea voice knows: {}", line.chars().take(120).collect::<String>()) })),
}
}
let _ = tx.send(Say::Close);
c.store(true, Ordering::Relaxed);
});
let (mic_tx, mic_rx) = channel::<Vec<f32>>();
let _mic = match &o.from {
Some(f) => {
microphone_file(f, o.fast, mic_tx)?;
None
}
None => Some(microphone(mic_tx)?),
};
emit(json!({ "ready": { "voice": name, "hears": "parakeet-tdt-0.6b-v3", "rate": RATE } }));
let mut turns = Turns::new(o.pause_ms);
let (mut buf, mut windows, mut mic_done) = (Vec::<f32>::new(), 0usize, false);
let mut quiet_since = Instant::now();
// its own voice taken out of the microphone's sound, unless that's not wanted or there's no clock to line up by
let mut sides = (o.over && !o.duplex && !o.fast).then(|| (Sides::new(RATE, o.room), Echo::default()));
speaker.line.tap.store(sides.is_some(), Ordering::Relaxed);
let mut ready = VecDeque::<(Vec<f32>, Option<Heard>, f64)>::new();
// RAEA_VOICE_TRACE=1: the echo's state every window, for finding out why it was or wasn't stopped
let trace = std::env::var_os("RAEA_VOICE_TRACE").is_some();
// windows in a row that stood clear of its own voice; windows of nothing at all from a real microphone
let (mut over, mut dead) = (0usize, if o.from.is_none() { Some(0usize) } else { None });
loop {
match mic_rx.recv_timeout(Duration::from_millis(10)) {
Ok(piece) => buf.extend(piece),
Err(RecvTimeoutError::Timeout) => {}
Err(RecvTimeoutError::Disconnected) => mic_done = true,
}
while buf.len() >= WIN {
let win: Vec<f32> = buf.drain(..WIN).collect();
let loud = level(&win);
// a microphone raea isn't allowed to use gives nothing at all, with no error: say so, once
if let Some(n) = dead {
dead = win.iter().all(|s| *s == 0.0).then_some(n + 1);
if n + 1 == 3 * crate::turns::RATE / WIN {
emit(json!({ "error": "the microphone is giving no sound at all: allow raea to use it (System Settings > Privacy & Security > Microphone on a Mac), or pick another input" }));
dead = None;
}
}
match &mut sides {
Some((s, _)) => s.mic(win),
None => ready.push_back((win, None, loud)),
}
}
if let Some((s, echo)) = &mut sides {
s.far(&std::mem::take(&mut *speaker.line.far.lock().unwrap()));
while let Some((mic, far)) = s.next() {
let (loud, mut left) = (level(&mic), Vec::new());
let heard = echo.push(&mic, &far, &mut left);
if trace {
let (delay, erle) = (echo.delay, echo.erle);
emit(json!({ "echo": { "delay": delay, "erle": (erle * 10.0).round() / 10.0, "far": heard.far, "near": heard.near, "sure": heard.sure, "left": level(&left), "mic": loud } }));
}
ready.push_back((left, Some(heard), loud));
}
}
while let Some((win, cancelled, loud)) = ready.pop_front() {
windows += 1;
let speaking = talking.load(Ordering::Relaxed);
if speaking {
quiet_since = Instant::now();
}
// its own voice dies away in the room for a moment after the last sample
let own = speaking || quiet_since.elapsed() < Duration::from_millis(250);
let through = o.duplex || cancelled.is_some_and(|h| h.sure);
if muted.load(Ordering::Relaxed) || (own && !through) {
over = 0;
if turns.speaking() {
emit(json!({ "speech": "ended" }));
}
// muted, their words are dropped; talked over by raea, what they had said so far is still heard
if muted.load(Ordering::Relaxed) {
turns.clear();
} else if let Some(said) = turns.cut() {
hearing.fetch_add(1, Ordering::Relaxed);
let _ = heard_tx.send(said);
}
vad.reset();
continue;
}
if windows % 4 == 0 {
emit(json!({ "level": loud }));
}
let mut p = vad.speech(&win)?;
if own && !o.duplex {
// a trace of its own voice can be left, and their voice dips under it between words: windows that
// stand clear of it and sound like speech count up, the others count down, and six up is them
over = if cancelled.is_some_and(|h| h.near) && p >= 0.5 { over + 1 } else { over.saturating_sub(1) };
if trace {
emit(json!({ "own": { "p": (p * 100.0).round() / 100.0, "over": over, "near": cancelled.is_some_and(|h| h.near) } }));
}
if !turns.speaking() && over < 6 {
p = 0.0;
}
}
match turns.push(&win, p) {
Some(Turn::Began) => {
emit(json!({ "speech": "began" }));
if speaking {
let _ = say_tx.send(Say::Stop);
}
}
Some(Turn::Ended(said)) => {
emit(json!({ "speech": "ended" }));
hearing.fetch_add(1, Ordering::Relaxed);
let _ = heard_tx.send(said);
}
None => {}
}
}
// the words whose sound has started
{
let mut w = words.lock().unwrap();
let played = speaker.line.at().0;
while w.told < w.starts.len() && w.told < w.words.len() && played >= w.start_at + (w.starts[w.told] * RATE as f64) as u64 {
emit(json!({ "word": { "id": w.id, "i": w.told, "text": w.words[w.told] } }));
w.told += 1;
}
}
let idle = voice.is_finished() && hearing.load(Ordering::Relaxed) == 0;
if closing.load(Ordering::Relaxed) && idle && (o.from.is_none() || mic_done) {
break;
}
}
speaker.close()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn the_lines_a_session_takes() {
assert!(matches!(ask(r#"{"say":{"id":"u1","text":"Hello. "}}"#), Some(Ask::Say(Say::Text { id, text })) if id == "u1" && text == "Hello. "));
assert!(matches!(ask(r#"{"end":"u1"}"#), Some(Ask::Say(Say::End(id))) if id == "u1"));
assert!(matches!(ask(r#"{"stop":true}"#), Some(Ask::Say(Say::Stop))));
assert!(matches!(ask(r#"{"mute":true}"#), Some(Ask::Mute(true))));
assert!(matches!(ask(r#"{"quit":true}"#), Some(Ask::Quit)));
assert!(ask(r#"{"sing":"la"}"#).is_none() && ask("not json").is_none());
}
#[test]
fn quiet_and_loud_in_dbfs() {
assert_eq!(level(&[0.0; 512]), -120.0);
assert_eq!(level(&[1.0; 512]), 0.0);
assert_eq!(level(&[0.1; 512]), -20.0);
}
}
+250
View File
@@ -0,0 +1,250 @@
//! The voice: what the agent says, said by Pocket TTS as its words arrive. Text comes in pieces (a model's stream);
//! each whole sentence is said as soon as it's there, so the first sound doesn't wait for the last word. The word
//! clock says when each word starts, for a caption that follows the voice.
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc::{Receiver, TryRecvError};
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
use raea_sys_speech::pocket::{Out, Pocket};
use raea_sys_speech::words::Clock;
use serde_json::json;
use crate::audio::Line;
/// Pocket's rate.
pub const RATE: u32 = 24_000;
const TEMPERATURE: f32 = 0.7;
pub enum Say {
/// more of what `id` says
Text { id: String, text: String },
/// `id` has all its words
End(String),
/// stop talking now
Stop,
/// say what's left, then finish
Close,
}
/// The words being said and when each starts, for whoever follows the playback.
#[derive(Default)]
pub struct Words {
pub id: String,
pub words: Vec<String>,
/// seconds into the utterance, for the words whose start is decided
pub starts: Vec<f64>,
/// how many have been told
pub told: usize,
/// the playback position (samples played) its first sample has
pub start_at: u64,
}
/// The sentences `buf` holds whole, taken out of it: up to its last full stop, question or exclamation mark that a
/// space or a line end follows. With `all`, everything.
pub fn whole(buf: &mut String, all: bool) -> Option<String> {
let cut = if all {
buf.len()
} else {
let b = buf.as_bytes();
let ends = |i: usize| matches!(b[i], b'.' | b'!' | b'?') && b.get(i + 1).is_some_and(|c| c.is_ascii_whitespace());
(0..b.len()).rev().find(|i| ends(*i) || b[*i] == b'\n').map(|i| i + 1)?
};
let said: String = buf.drain(..cut).collect();
(!said.trim().is_empty()).then(|| said.trim().to_string())
}
struct Utter {
id: String,
buf: String,
ended: bool,
line: Vec<f32>,
clock: Clock,
asked: Instant,
sounded: bool,
}
struct Voice {
pocket: Pocket,
name: String,
out: Arc<Line>,
words: Arc<Mutex<Words>>,
emit: fn(serde_json::Value),
now: Option<Utter>,
closing: bool,
seed: u64,
}
impl Voice {
fn take(&mut self, m: Say) {
match m {
Say::Text { id, text } => {
if self.now.as_ref().is_none_or(|u| u.id != id) {
*self.words.lock().unwrap() = Words { id: id.clone(), ..Words::default() };
self.now = Some(Utter { id, buf: String::new(), ended: false, line: Vec::new(), clock: Clock::new(RATE), asked: Instant::now(), sounded: false });
}
self.now.as_mut().unwrap().buf.push_str(&text);
}
Say::End(id) => {
if let Some(u) = self.now.as_mut().filter(|u| u.id == id) {
u.ended = true;
}
}
Say::Stop => {
self.out.clear();
if let Some(u) = self.now.take() {
self.words.lock().unwrap().id.clear();
(self.emit)(json!({ "stopped": { "id": u.id } }));
}
}
Say::Close => {
self.closing = true;
if let Some(u) = self.now.as_mut() {
u.ended = true;
}
}
}
}
/// Everything waiting on the channel; false once the other end is gone.
fn drain(&mut self, rx: &Receiver<Say>) -> bool {
loop {
match rx.try_recv() {
Ok(m) => self.take(m),
Err(TryRecvError::Empty) => return true,
Err(TryRecvError::Disconnected) => {
self.take(Say::Close);
return false;
}
}
}
}
/// Says `text` for the utterance `id`; stops early when that utterance is stopped or replaced.
fn say(&mut self, id: &str, text: &str, rx: &Receiver<Say>) -> anyhow::Result<()> {
self.seed = self.seed.wrapping_mul(6364136223846793005).wrapping_add(1442695040888963407);
let mut g = self.pocket.begin(text, &self.name, self.seed, TEMPERATURE)?;
while let Some(out) = self.pocket.step(&mut g)? {
let Some(u) = self.now.as_mut().filter(|u| u.id == id) else { return Ok(()) };
match out {
Out::Begin(sentence) => u.clock.begin_sentence(&sentence, u.line.len()),
Out::End => u.clock.end_sentence(u.line.len()),
Out::Audio(a) => {
if !u.sounded {
u.sounded = true;
let (played, waiting) = self.out.at();
self.words.lock().unwrap().start_at = played + waiting as u64;
(self.emit)(json!({ "saying": { "id": id, "first_ms": u.asked.elapsed().as_millis() as u64 } }));
}
self.out.queue.lock().unwrap().extend(&a);
u.line.extend_from_slice(&a);
u.clock.advance(&u.line, false);
self.publish();
}
}
self.drain(rx);
}
Ok(())
}
fn publish(&mut self) {
let Some(u) = &self.now else { return };
let mut w = self.words.lock().unwrap();
if w.id == u.id && (w.words.len() != u.clock.words.len() || w.starts.len() != u.clock.starts.len()) {
w.words.clone_from(&u.clock.words);
w.starts.clone_from(&u.clock.starts);
}
}
}
/// The voice's thread: loads Pocket, says `ready` once it can speak, then says what comes down `rx` until it closes.
/// `busy` is up while an utterance is being made or played.
pub fn worker(rx: Receiver<Say>, out: Arc<Line>, words: Arc<Mutex<Words>>, name: Option<String>, busy: Arc<AtomicBool>, ready: std::sync::mpsc::Sender<anyhow::Result<String>>, emit: fn(serde_json::Value)) {
let loaded = (|| {
let dir = raea_sys_ml::models::ensure(&Pocket::SPEC, &mut crate::fetching(emit))?;
let mut pocket = Pocket::load(&dir)?;
anyhow::ensure!(pocket.sample_rate() == RATE, "Pocket TTS speaks at {} Hz, not {RATE}", pocket.sample_rate());
// Pocket TTS's own first voice, never a clip of somebody found on this computer (the library's default
// takes one when it's there): a session speaks in a voice of someone's only when asked to by name
let name = name.unwrap_or_else(|| Pocket::VOICES[0].to_string());
// the voice's state loaded now, not under the first words
pocket.begin("", &name, 1, TEMPERATURE)?;
Ok((pocket, name))
})();
let (pocket, name) = match loaded {
Ok(p) => p,
Err(e) => {
let _ = ready.send(Err(e));
return;
}
};
let _ = ready.send(Ok(name.clone()));
let seed = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map(|d| d.as_nanos() as u64).unwrap_or(7) | 1;
let mut v = Voice { pocket, name, out, words, emit, now: None, closing: false, seed };
loop {
busy.store(v.now.is_some() || v.out.at().1 > 0, Ordering::Relaxed);
let Some(u) = v.now.as_mut() else {
if v.closing {
return;
}
match rx.recv() {
Ok(m) => v.take(m),
Err(_) => return,
}
continue;
};
let ended = u.ended;
if let Some(text) = whole(&mut u.buf, ended) {
let id = u.id.clone();
if let Err(e) = v.say(&id, &text, &rx) {
emit(json!({ "error": format!("Pocket TTS: {e:#}") }));
v.take(Say::Stop);
}
continue;
}
if ended {
// every word made: the clock decides the last starts, and the utterance is said once it has all played
u.clock.advance(&u.line, true);
let id = u.id.clone();
v.publish();
while v.out.at().1 > 0 && v.now.as_ref().is_some_and(|u| u.id == id) {
std::thread::sleep(Duration::from_millis(15));
v.drain(&rx);
}
if v.now.as_ref().is_some_and(|u| u.id == id) {
v.now = None;
emit(json!({ "said": { "id": id } }));
}
continue;
}
// waiting for the rest of a sentence
match rx.recv_timeout(Duration::from_millis(50)) {
Ok(m) => v.take(m),
Err(std::sync::mpsc::RecvTimeoutError::Timeout) => {}
Err(_) => v.take(Say::Close),
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn whole_sentences_are_said_as_they_arrive() {
let mut buf = String::from("Got it. A launch film for the Ridge 2");
assert_eq!(whole(&mut buf, false).as_deref(), Some("Got it."));
assert_eq!(whole(&mut buf, false), None, "half a sentence waits for its end");
buf.push_str(", gritty. Who is it for");
assert_eq!(whole(&mut buf, false).as_deref(), Some("A launch film for the Ridge 2, gritty."));
assert_eq!(whole(&mut buf, true).as_deref(), Some("Who is it for"), "with everything in, what's left is said");
assert_eq!(whole(&mut buf, true), None);
}
#[test]
fn a_number_with_a_point_is_not_a_sentence_end() {
let mut buf = String::from("It costs 2.5 times more");
assert_eq!(whole(&mut buf, false), None);
}
}
+189
View File
@@ -0,0 +1,189 @@
//! Whose turn it is: Silero VAD v5 (MIT) window by window as the microphone comes in, and from it when the person
//! starts speaking and when they've stopped (a pause long enough to be the end of what they were saying).
use std::path::PathBuf;
use anyhow::anyhow;
use ort::session::Session;
use ort::value::Tensor;
pub const RATE: usize = 16_000;
/// Silero's window: 32 ms.
pub const WIN: usize = 512;
const CTX: usize = 64;
/// The silero-vad 5.1.2 package's model.
const URL: &str = "https://github.com/snakers4/silero-vad/raw/v5.1.2/src/silero_vad/data/silero_vad.onnx";
pub fn model(progress: &mut dyn FnMut(&str, u64)) -> anyhow::Result<PathBuf> {
raea_sys_ml::models::ensure_url("silero-vad", "silero_vad.onnx", URL, progress)
}
pub struct Vad {
session: Session,
state: Vec<f32>,
ctx: Vec<f32>,
}
impl Vad {
pub fn load(file: &std::path::Path) -> anyhow::Result<Vad> {
Ok(Vad { session: raea_sys_ml::session(file)?, state: vec![0.0; 2 * 128], ctx: vec![0.0; CTX] })
}
/// How likely this window (WIN samples at 16 kHz) is speech; the state carries on from the last one.
pub fn speech(&mut self, win: &[f32]) -> anyhow::Result<f32> {
let e = |e: ort::Error| anyhow!("silero vad: {e}");
let mut input = self.ctx.clone();
input.extend_from_slice(win);
self.ctx.copy_from_slice(&input[input.len() - CTX..]);
let o = self
.session
.run(ort::inputs![
"input" => Tensor::from_array(([1usize, CTX + WIN], input)).map_err(e)?,
"state" => Tensor::from_array(([2usize, 1, 128], self.state.clone())).map_err(e)?,
"sr" => Tensor::from_array(((), vec![RATE as i64])).map_err(e)?,
])
.map_err(e)?;
let p = o["output"].try_extract_tensor::<f32>().map_err(e)?.1[0];
self.state.copy_from_slice(&o["stateN"].try_extract_tensor::<f32>().map_err(e)?.1[..256]);
Ok(p)
}
pub fn reset(&mut self) {
self.state.fill(0.0);
self.ctx.fill(0.0);
}
}
/// What a window of sound changed.
#[derive(Debug, PartialEq)]
pub enum Turn {
/// the person started speaking
Began,
/// they stopped: everything they said, with a little quiet on either side
Ended(Vec<f32>),
}
/// The turn-taking over window probabilities: speech begins after `ON` windows in a row at 0.5 or more, and ends
/// after `quiet` windows in a row under 0.35 (Silero's own two thresholds).
pub struct Turns {
/// windows of quiet that end a turn
pub quiet: usize,
speaking: bool,
run: usize,
silent: usize,
/// the sound kept: the last PRE windows while nobody speaks, the whole turn while someone does
kept: Vec<f32>,
}
/// Windows of speech in a row that begin a turn (96 ms: a click or a cough is shorter).
const ON: usize = 3;
/// Windows kept from before a turn began (its first sound comes before Silero is sure).
const PRE: usize = 10;
/// A turn is cut off here (a minute), so one never grows without end under steady noise.
const LONGEST: usize = RATE * 60;
impl Turns {
/// `pause_ms`: how long a pause ends the turn.
pub fn new(pause_ms: usize) -> Turns {
Turns { quiet: (pause_ms * RATE / 1000 / WIN).max(1), speaking: false, run: 0, silent: 0, kept: Vec::new() }
}
pub fn speaking(&self) -> bool {
self.speaking
}
/// Forgets a turn under way (the microphone was muted, or raea itself was talking).
pub fn clear(&mut self) {
(self.speaking, self.run, self.silent) = (false, 0, 0);
self.kept.clear();
}
/// The turn under way, as far as it got, when raea itself starts talking over it: half a second or more of it is
/// still the person's words (they began before the agent's greeting reached them), anything shorter is forgotten.
pub fn cut(&mut self) -> Option<Vec<f32>> {
let said = (self.speaking && self.kept.len() >= RATE / 2).then(|| std::mem::take(&mut self.kept));
self.clear();
said
}
/// One more window and how likely it is speech.
pub fn push(&mut self, win: &[f32], p: f32) -> Option<Turn> {
self.kept.extend_from_slice(win);
if !self.speaking {
self.run = if p >= 0.5 { self.run + 1 } else { 0 };
if self.run >= ON {
(self.speaking, self.silent) = (true, 0);
return Some(Turn::Began);
}
let keep = (PRE + self.run) * WIN;
if self.kept.len() > keep {
self.kept.drain(..self.kept.len() - keep);
}
return None;
}
self.silent = if p < 0.35 { self.silent + 1 } else { 0 };
if self.silent < self.quiet && self.kept.len() < LONGEST {
return None;
}
// the closing quiet but for a few windows goes: it's the pause, not the turn
let cut = self.silent.saturating_sub(4) * WIN;
let mut said = std::mem::take(&mut self.kept);
said.truncate(said.len() - cut.min(said.len()));
self.clear();
Some(Turn::Ended(said))
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn a_turn_cut_short_keeps_what_was_said() {
let mut t = Turns::new(700);
assert!(t.cut().is_none());
for _ in 0..40 {
t.push(&[0.1; WIN], 0.9);
}
assert!(t.speaking());
assert!(t.cut().is_some_and(|said| said.len() >= RATE / 2));
assert!(!t.speaking() && t.cut().is_none());
// a moment of it isn't a turn
for _ in 0..ON + 1 {
t.push(&[0.1; WIN], 0.9);
}
assert!(t.speaking() && t.cut().is_none());
}
fn feed(t: &mut Turns, probs: &[(f32, usize)]) -> Vec<Turn> {
let mut out = Vec::new();
for (p, n) in probs {
for _ in 0..*n {
out.extend(t.push(&[0.1; WIN], *p));
}
}
out
}
#[test]
fn a_turn_begins_on_steady_speech_and_ends_on_a_long_pause() {
let mut t = Turns::new(640);
// a click (one window), then half a second of speech, a short pause mid-sentence, more speech, then quiet
let got = feed(&mut t, &[(0.1, 20), (0.9, 1), (0.1, 5), (0.9, 16), (0.1, 8), (0.9, 16), (0.1, 30)]);
assert_eq!(got.len(), 2, "one turn: the click begins nothing, the short pause ends nothing: {got:?}");
assert_eq!(got[0], Turn::Began);
let Turn::Ended(said) = &got[1] else { panic!("{got:?}") };
// what was said: the quiet kept from before, both runs of speech and the pause between, a little closing quiet
let windows = said.len() / WIN;
assert!((16 + 8 + 16 + 4..=16 + 8 + 16 + 4 + PRE + ON).contains(&windows), "{windows} windows");
assert!(!t.speaking());
}
#[test]
fn clearing_forgets_a_turn_under_way() {
let mut t = Turns::new(640);
assert_eq!(feed(&mut t, &[(0.9, 10)]), vec![Turn::Began]);
t.clear();
assert!(feed(&mut t, &[(0.1, 40)]).is_empty(), "nothing ends: nothing was under way");
}
}
+62
View File
@@ -0,0 +1,62 @@
//! A project's client (docs/projects.feature): `raea project tag`, and what a project is filed under.
use super::workspace::*;
use super::*;
/// What a project is filed under in raea cloud (Shane 11-24: raea cloud's tags, not folders inside folders): its
/// client, `project.<name>.client` in .raea/workspace. raea.app files every card `raea show` makes from the folder under
/// it, with a board showing it; a folder naming none is its own client, named for it. Projects don't nest: an old
/// workspace's `parent` is read as "the same client as the parent" and nothing writes it.
pub fn client_of(ws: &Path, name: &str) -> Option<String> {
get(&ws.join(".raea/workspace"), &format!("project.{name}.client")).filter(|c| !c.trim().is_empty())
}
/// `raea project tag [NAME] [--client C | --no-client]`: a project's client set, cleared, or said (NAME: the project
/// this folder is in when left out)
pub(crate) fn tag(name: Option<&str>, client: Option<&str>, clear: bool, json_out: bool) -> R<String> {
let here = std::env::current_dir().map_err(|e| e.to_string())?;
let ws = up(&here, ".raea/workspace").ok_or("not in a workspace: raea workspace init NAME makes one")?;
tag_in(&ws, &here, name, client, clear, json_out)
}
/// `tag` in the workspace at `ws`, from the folder `here`
pub(crate) fn tag_in(ws: &Path, here: &Path, name: Option<&str>, client: Option<&str>, clear: bool, json_out: bool) -> R<String> {
// (both resolved: a folder reached through a link, /var for /private/var, is still the workspace's)
let real = |p: &Path| dunce::canonicalize(p).unwrap_or_else(|_| p.to_path_buf());
let ws = real(ws);
let name = match name {
Some(n) => {
let s = slug(n);
if projects(&ws).iter().any(|p| p.0 == s) { s } else if projects(&ws).iter().any(|p| p.0 == n) { n.to_string() } else { return Err(format!("no project {n} in this workspace: raea workspace lists them")) }
}
None => {
let dir = up(here, ".raea/project").map(|d| real(&d)).filter(|d| *d != ws).ok_or("not in a project: name one (raea project tag NAME --client C)")?;
let rel = relative(&ws, &dir);
projects(&ws).into_iter().find(|p| p.1 == rel).map(|p| p.0).ok_or_else(|| format!("{} isn't one of this workspace's projects", dir.display()))?
}
};
let file = ws.join(".raea/workspace");
let key = format!("project.{name}.client");
if clear {
if client_of(&ws, &name).is_some() {
config(Some(&file), &["--unset", &key])?;
commit(&ws, &[".raea/workspace"], &format!("project {name}: no client"))?;
}
} else if let Some(c) = client {
let c = c.trim();
if c.is_empty() {
return Err("a client has a name: --client NAME (--no-client clears it)".into());
}
if client_of(&ws, &name).as_deref() != Some(c) {
set(&file, &key, c)?;
commit(&ws, &[".raea/workspace"], &format!("project {name}: client {c}"))?;
}
}
let now = client_of(&ws, &name);
if json_out {
return Ok(json!({"project": name, "client": now}).to_string());
}
Ok(match now {
Some(c) => format!("{name}: client {c} (raea show files its work under {c}, on {c}'s board)"),
None => format!("{name}: no client named, so its work is filed under one named for it (raea project tag {name} --client NAME names one)"),
})
}
+1
View File
@@ -4,6 +4,7 @@ use std::path::{Path, PathBuf};
use serde_json::json;
mod client;
pub mod doctor;
mod repair;
pub mod next;
+28
View File
@@ -229,3 +229,31 @@ fn a_workspace_0_1_6_broke_is_repaired() {
assert!(status().status.success(), "git status after the repair: {}", String::from_utf8_lossy(&status().stderr));
let _ = std::fs::remove_dir_all(&ws);
}
#[test]
fn a_project_names_its_client() {
// Shane 11-24: projects relate by raea cloud's tags (a client), not by nesting; raea.app files `raea show`'s cards
// under the client the folder names (host/local-cloud/clients.ts)
use crate::client::tag_in;
use crate::workspace::{client_of, new_project_in};
let ws = scratch("client");
crate::workspace::make_workspace(&ws, "Clients", "monorepo").unwrap();
new_project_in(&ws, "Launch", None).unwrap();
new_project_in(&ws, "Teaser", None).unwrap();
assert_eq!(client_of(&ws, "launch"), None);
// named, from inside the project; then by name; cleared
let inside = ws.join("projects/launch/compositions");
assert!(tag_in(&ws, &inside, None, Some("Acme"), false, false).unwrap().contains("client Acme"));
assert_eq!(client_of(&ws, "launch").as_deref(), Some("Acme"));
let j: serde_json::Value = serde_json::from_str(&tag_in(&ws, &ws, Some("Teaser"), Some(" Acme "), false, true).unwrap()).unwrap();
assert_eq!(j, serde_json::json!({"project": "teaser", "client": "Acme"}));
assert!(tag_in(&ws, &ws, Some("nope"), Some("Acme"), false, false).is_err());
assert!(tag_in(&ws, &ws, Some("launch"), Some(" "), false, false).is_err());
tag_in(&ws, &ws, Some("launch"), None, true, false).unwrap();
assert_eq!(client_of(&ws, "launch"), None);
// committed, so the workspace's history has it
let log = std::process::Command::new("git").args(["log", "--format=%s"]).current_dir(&ws).output().unwrap();
let log = String::from_utf8_lossy(&log.stdout);
assert!(log.contains("project teaser: client Acme") && log.contains("project launch: no client"), "{log}");
let _ = std::fs::remove_dir_all(&ws);
}
+24 -7
View File
@@ -5,7 +5,7 @@
use super::*;
use std::process::Command;
const USAGE: &str = "usage: raea workspace [--json] | raea workspace init [NAME] [--layout monorepo|submodules] | raea workspace adopt DIR [--name NAME] [--layout monorepo|submodules]\n raea project [--json] | raea project new NAME [--storage inline|submodule] | raea project split NAME [--remote URL] | raea project join NAME | raea project scan [DIR] [--json]";
const USAGE: &str = "usage: raea workspace [--json] | raea workspace init [NAME] [--layout monorepo|submodules] | raea workspace adopt DIR [--name NAME] [--layout monorepo|submodules]\n raea project [--json] | raea project new NAME [--storage inline|submodule] [--client NAME] | raea project tag [NAME] [--client NAME | --no-client] [--json] | raea project split NAME [--remote URL] | raea project join NAME | raea project scan [DIR] [--json]";
/// git for raea's own commits. A new Mac has no user.email and a hostname git can't make one from, so every commit
/// failed with "Author identity unknown" and the person's first project was never made. git reads $EMAIL only when
@@ -95,7 +95,7 @@ pub(crate) fn flag<'a>(args: &'a [String], name: &str) -> Option<&'a str> {
/// The words of a command that aren't flags or a flag's value.
fn words(args: &[String]) -> Vec<&str> {
raea_app_check::words(args, &["--layout", "--storage", "--name", "--remote"])
raea_app_check::words(args, &["--layout", "--storage", "--name", "--remote", "--client"])
}
// a name as a folder (slug), and the nearest folder holding a marker (up): the registry's, which reads projects with
@@ -344,12 +344,17 @@ fn show_workspace(json_out: bool) -> R<String> {
let file = ws.join(".raea/workspace");
let ps = projects(&ws);
if json_out {
let projects: Vec<_> = ps.iter().map(|(n, p, s)| json!({"name": n, "path": p, "storage": s, "id": get(&file, &format!("project.{n}.id"))})).collect();
return Ok(json!({"path": ws, "id": get(&file, "workspace.id"), "name": get(&file, "workspace.name"), "layout": get(&file, "workspace.layout"), "projects": projects}).to_string());
let projects: Vec<_> = ps.iter().map(|(n, p, s)| json!({"name": n, "path": p, "storage": s, "id": get(&file, &format!("project.{n}.id")), "client": client_of(&ws, n)})).collect();
// the clients its projects name, so a new one joins an existing client rather than a near-twin of it
let mut clients: Vec<String> = ps.iter().filter_map(|(n, _, _)| client_of(&ws, n)).collect();
clients.sort_by_key(|c| c.to_lowercase());
clients.dedup_by(|a, b| a.eq_ignore_ascii_case(b));
return Ok(json!({"path": ws, "id": get(&file, "workspace.id"), "name": get(&file, "workspace.name"), "layout": get(&file, "workspace.layout"), "clients": clients, "projects": projects}).to_string());
}
let mut out = format!("{} ({}, {})\n{}\n", get(&file, "workspace.name").unwrap_or_default(), get(&file, "workspace.id").unwrap_or_default(), get(&file, "workspace.layout").unwrap_or_default(), ws.display());
for (n, p, s) in &ps {
out.push_str(&format!(" {n} {p} {s}\n"));
let c = client_of(&ws, n).map(|c| format!(" client {c}")).unwrap_or_default();
out.push_str(&format!(" {n} {p} {s}{c}\n"));
}
Ok(out.trim_end().to_string())
}
@@ -359,7 +364,15 @@ pub fn project(args: &[String]) -> R<String> {
let w = words(args);
match w.first().copied() {
None => show_project(args.iter().any(|a| a == "--json")),
Some("new") => new_project(w.get(1).ok_or(USAGE)?, flag(args, "--storage")),
Some("new") => {
let name = *w.get(1).ok_or(USAGE)?;
let said = new_project(name, flag(args, "--storage"))?;
match flag(args, "--client") {
Some(c) => Ok(format!("{said}\n{}", tag(Some(name), Some(c), false, false)?)),
None => Ok(said),
}
}
Some("tag") => tag(w.get(1).copied(), flag(args, "--client"), args.iter().any(|a| a == "--no-client"), args.iter().any(|a| a == "--json")),
Some("split") => storage::split(w.get(1).ok_or(USAGE)?, flag(args, "--remote")),
Some("join") => storage::join(w.get(1).ok_or(USAGE)?),
// PJ8: the folder's compositions and components, and what isn't connected
@@ -372,6 +385,9 @@ pub fn project(args: &[String]) -> R<String> {
}
}
pub use super::client::client_of;
pub(crate) use super::client::tag;
fn new_project(name: &str, storage: Option<&str>) -> R<String> {
let here = std::env::current_dir().map_err(|e| e.to_string())?;
let ws = up(&here, ".raea/workspace").ok_or("not in a workspace: raea workspace init NAME makes one")?;
@@ -429,7 +445,8 @@ fn show_project(json_out: bool) -> R<String> {
let file = dir.join(".raea/project");
let ws = up(&dir, ".raea/workspace").filter(|w| *w != dir);
if json_out {
return Ok(json!({"path": dir, "id": get(&file, "project.id"), "name": get(&file, "project.name"), "workspace": ws}).to_string());
let client = ws.as_ref().and_then(|w| projects(w).into_iter().find(|p| p.1 == relative(w, &dir)).and_then(|p| client_of(w, &p.0)));
return Ok(json!({"path": dir, "id": get(&file, "project.id"), "name": get(&file, "project.name"), "workspace": ws, "client": client}).to_string());
}
let mut out = format!("{} ({})\n{}\n", get(&file, "project.name").unwrap_or_default(), get(&file, "project.id").unwrap_or_default(), dir.display());
if let Some(ws) = &ws {
+19
View File
@@ -0,0 +1,19 @@
// A set as blender/lightbake.py left it (docs/bake.feature BK0): one <Model> of its meshes, each with its Cycles
// lightmap and the exposure that puts the bake at raea's brightness, from the .lightmaps.json lightbake.py wrote. A
// mesh lightbake.py left unbaked (a metal) is drawn as raea draws it. `raea bake light --compare` makes media/baked/.
import { staticFile } from "raea";
import { Model } from "raea/3d";
import { Lightmap, StandardMaterial } from "raea/pbr";
export type BakeInfo = { meshes: { mesh: string; material: string[]; map: string; lightmap_exposure: number }[] };
export function Baked({ dir, info }: { dir: string; info: BakeInfo }) {
return (
<Model src={staticFile(`${dir}/set.glb`)}>
{info.meshes.map((m) => (
<Lightmap key={`l-${m.mesh}`} mesh={m.mesh} image={staticFile(`${dir}/lightmaps/${m.map.split("/").pop()}`)} />
))}
{info.meshes.flatMap((m) => m.material.map((mat) => <StandardMaterial key={`m-${mat}`} material={mat} lightmap_exposure={m.lightmap_exposure} />))}
</Model>
);
}
+17
View File
@@ -0,0 +1,17 @@
// The cornell set with Cycles' bounce light baked into its lightmaps by blender/lightbake.py, any sun left live: what raea's
// own bake is measured against (docs/bake.feature BK0). `raea bake light --compare` makes media/baked/cornell/.
import { AbsoluteFill, Composition, registerRoot } from "raea";
import { Baked } from "./baked";
import { Look } from "./parts/cornell";
import info from "./media/baked/cornell/set.lightmaps.json";
function Shot() {
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Look />
<Baked dir="baked/cornell" info={info} />
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="cornell-cycles" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
+14
View File
@@ -0,0 +1,14 @@
// The cornell set drawn by raea with nothing baked: the "before" frame (docs/bake.feature BK0, apps/lightbake/sets.json).
import { AbsoluteFill, Composition, registerRoot } from "raea";
import { Look, Parts } from "./parts/cornell";
function Shot() {
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Look />
<Parts />
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="cornell" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
+1
View File
@@ -0,0 +1 @@
baked/
@@ -0,0 +1 @@
{"source":"https://polyhaven.com/a/kloofendal_48d_partly_cloudy_puresky","license":"CC0","credit":"Poly Haven"}
+50
View File
@@ -0,0 +1,50 @@
// A Cornell box (docs/bake.feature BK0): white floor, ceiling and back, a red left wall and a green right one, two
// white blocks, lit only by an emissive panel in the ceiling. Nothing here is lit live: every bit of light on its
// walls is the panel's, directly or bounced, so it measures a bake's emissives and colour bleeding with no sun or sky.
import { LinearRgba } from "raea/color";
import { ToneMapping } from "raea/3d";
import { AmbientLight } from "raea/light";
import { StandardMaterial } from "raea/pbr";
import { Cuboid, Mesh3d } from "raea/mesh";
import { Quat, Transform } from "raea/transform";
import { Camera3d } from "raea/camera";
export function Look() {
return (
<>
<Camera3d transform={Transform.fromXyz(0, 1, 3.4).lookingAt([0, 1, 0])} projection={{ Perspective: { fov: (40 * Math.PI) / 180 } }} />
<AmbientLight brightness={0} />
<ToneMapping mode="agx" exposure={0} />
</>
);
}
const WHITE = "#bdbdb6";
type Box = [string, [number, number, number], [number, number, number], string, number?];
// name, centre, half size, colour, turn about y; the walls 0.1 thick and overlapping at the corners, so no light leaks
const BOXES: Box[] = [
["floor", [0, -0.05, 0], [1.1, 0.05, 1.1], WHITE],
["ceiling", [0, 2.05, 0], [1.1, 0.05, 1.1], WHITE],
["back", [0, 1, -1.05], [1.1, 1.1, 0.05], WHITE],
["left", [-1.05, 1, 0], [0.05, 1.1, 1.1], "#a3261c"],
["right", [1.05, 1, 0], [0.05, 1.1, 1.1], "#2f8a2a"],
["tall", [-0.35, 0.6, -0.3], [0.3, 0.6, 0.3], WHITE, 0.3],
["short", [0.38, 0.3, 0.32], [0.3, 0.3, 0.3], WHITE, -0.3],
];
export function Parts() {
return (
<>
{BOXES.map(([name, [x, y, z], half, color, turn]) => (
<Mesh3d key={name} name={name} transform={Transform.fromXyz(x, y, z).withRotation(Quat.fromRotationY(turn ?? 0))}>
<Cuboid half_size={half} />
<StandardMaterial base_color={color} perceptual_roughness={1} />
</Mesh3d>
))}
<Mesh3d name="panel" transform={Transform.fromXyz(0, 1.995, 0)}>
<Cuboid half_size={[0.25, 0.004, 0.25]} />
<StandardMaterial base_color="#ffffff" emissive={new LinearRgba(4200, 3000, 1000, 1)} />
</Mesh3d>
</>
);
}
+65
View File
@@ -0,0 +1,65 @@
// The table set (docs/bake.feature BK0): sdk/guides/craft/bevy/realism.md's example, flat colours, where
// docs/blender-research.md measured 0.154 / 0.074 / 0.040 against Cycles. Look is everything the bake leaves live (the
// camera, sky, sun and finish); Parts is the static set a bake covers, every part named so its lightmap finds it.
import { staticFile } from "raea";
import { Environment, Sphere, ToneMapping, Bloom, Grade, AmbientOcclusion, Shadows, DepthOfField } from "raea/3d";
import { StandardMaterial } from "raea/pbr";
import { Cuboid, Cylinder, Mesh3d } from "raea/mesh";
import { DirectionalLight } from "raea/light";
import { Transform } from "raea/transform";
import { Camera3d } from "raea/camera";
// what look.py is given for the Cycles reference: these same values (apps/lightbake/sets.json)
export const SKY = "kloofendal_48d_partly_cloudy_puresky_1k.hdr";
export function Look() {
return (
<>
<Camera3d transform={Transform.fromXyz(0.9, 1.35, 2.3).lookingAt([0, 0.85, 0])} projection={{ Perspective: { fov: (38 * Math.PI) / 180 } }}>
<DepthOfField focal_distance={2.5} aperture_f_stops={2.8} />
</Camera3d>
<Environment src={staticFile(SKY)} intensity={0.25} rotation={0.6} background />
<DirectionalLight transform={Transform.fromXyz(4, 5, 3).lookingAt([0, 0, 0])} illuminance={45000} color="#fff1e0" shadow_maps_enabled />
<Shadows distance={8} firstCascade={3} mapSize={4096} />
<AmbientOcclusion quality="high" />
<ToneMapping mode="agx" exposure={-0.8} />
<Bloom intensity={0.08} />
<Grade saturation={1.05} vignette={{ intensity: 0.35, radius: 0.8, smoothness: 3 }} aberration={0.003} />
</>
);
}
const LEGS: [number, number][] = [[-0.74, -0.4], [0.74, -0.4], [-0.74, 0.4], [0.74, 0.4]];
export function Parts() {
return (
<>
<Mesh3d name="floor" transform={Transform.fromXyz(0, -0.05, 0)}>
<Cuboid half_size={[6, 0.05, 6]} />
<StandardMaterial base_color="#9a958c" perceptual_roughness={1} />
</Mesh3d>
<Mesh3d name="wall" transform={Transform.fromXyz(0, 1.5, -1.6)}>
<Cuboid half_size={[6, 1.5, 0.08]} />
<StandardMaterial base_color="#9a958c" perceptual_roughness={1} />
</Mesh3d>
<Mesh3d name="top" transform={Transform.fromXyz(0, 0.74, 0)}>
<Cuboid half_size={[0.8, 0.025, 0.45]} />
<StandardMaterial base_color="#7a3e22" perceptual_roughness={0.45} />
</Mesh3d>
{LEGS.map(([x, z], i) => (
<Mesh3d key={`leg${i}`} name={`leg${i}`} transform={Transform.fromXyz(x, 0.36, z)}>
<Cuboid half_size={[0.03, 0.36, 0.03]} />
<StandardMaterial base_color="#7a3e22" perceptual_roughness={0.55} />
</Mesh3d>
))}
<Mesh3d name="ball" transform={Transform.fromXyz(-0.35, 0.925, 0.05)}>
<Sphere radius={0.16} />
<StandardMaterial base_color="#ffffff" perceptual_roughness={0.06} metallic={1} />
</Mesh3d>
<Mesh3d name="vase" transform={Transform.fromXyz(0.3, 0.965, -0.1)}>
<Cylinder radius={0.09} half_height={0.2} />
<StandardMaterial base_color="#c9b9a3" perceptual_roughness={0.3} />
</Mesh3d>
</>
);
}
+57
View File
@@ -0,0 +1,57 @@
// A room lit through one window (docs/bake.feature BK0): a closed 4 x 3 x 5 m room, the window in its right wall, the
// sun through it in a patch on the floor and the sky through it, a sofa and a low table. Almost all of what the camera
// sees is bounce light, the case lightmaps exist for. The wall is four boxes around the opening, not a boolean.
import { staticFile } from "raea";
import { Environment, ToneMapping, AmbientOcclusion, Shadows } from "raea/3d";
import { StandardMaterial } from "raea/pbr";
import { Cuboid, Mesh3d } from "raea/mesh";
import { DirectionalLight } from "raea/light";
import { Transform } from "raea/transform";
import { Camera3d } from "raea/camera";
export const SKY = "kloofendal_48d_partly_cloudy_puresky_1k.hdr";
export function Look() {
return (
<>
<Camera3d transform={Transform.fromXyz(-1.6, 1.5, 2.2).lookingAt([1.2, 0.9, -1.2])} projection={{ Perspective: { fov: (60 * Math.PI) / 180 } }} />
<Environment src={staticFile(SKY)} intensity={0.25} rotation={0.6} background />
<DirectionalLight transform={Transform.fromXyz(8, 6, -1).lookingAt([1, 0, -0.5])} illuminance={45000} color="#fff1e0" shadow_maps_enabled />
<Shadows distance={12} firstCascade={4} mapSize={4096} />
<AmbientOcclusion quality="high" />
<ToneMapping mode="agx" exposure={1.5} />
</>
);
}
const WALL = "#c8c2b6";
type Box = [string, [number, number, number], [number, number, number], string, number];
// name, centre, half size, colour, roughness. The room's inside is x -2..2, y 0..3, z -2.5..2.5; the window in the
// x = 2 wall, 1.6 wide (z -1.6..0) and 1.6 high (y 0.9..2.5)
const BOXES: Box[] = [
["floor", [0, -0.1, 0], [2.2, 0.1, 2.7], "#8a6a4a", 0.8],
["ceiling", [0, 3.1, 0], [2.2, 0.1, 2.7], "#e0ddd6", 1],
["left", [-2.1, 1.5, 0], [0.1, 1.6, 2.7], WALL, 1],
["back", [0, 1.5, -2.6], [2.2, 1.6, 0.1], WALL, 1],
["front", [0, 1.5, 2.6], [2.2, 1.6, 0.1], WALL, 1],
["sill", [2.1, 0.45, 0], [0.1, 0.45, 2.7], WALL, 1],
["lintel", [2.1, 2.75, 0], [0.1, 0.25, 2.7], WALL, 1],
["pier-back", [2.1, 1.7, -2.05], [0.1, 0.8, 0.45], WALL, 1],
["pier-front", [2.1, 1.7, 1.3], [0.1, 0.8, 1.3], WALL, 1],
["sofa", [-1.5, 0.35, -0.6], [0.45, 0.35, 1.1], "#3d5a73", 0.9],
["sofa-back", [-1.85, 0.75, -0.6], [0.12, 0.35, 1.1], "#3d5a73", 0.9],
["table", [0, 0.2, -0.5], [0.5, 0.2, 0.35], "#6b4a30", 0.6],
];
export function Parts() {
return (
<>
{BOXES.map(([name, [x, y, z], half, color, rough]) => (
<Mesh3d key={name} name={name} transform={Transform.fromXyz(x, y, z)}>
<Cuboid half_size={half} />
<StandardMaterial base_color={color} perceptual_roughness={rough} />
</Mesh3d>
))}
</>
);
}
+17
View File
@@ -0,0 +1,17 @@
// The table set with Cycles' bounce light baked into its lightmaps by blender/lightbake.py, any sun left live: what raea's
// own bake is measured against (docs/bake.feature BK0). `raea bake light --compare` makes media/baked/table/.
import { AbsoluteFill, Composition, registerRoot } from "raea";
import { Baked } from "./baked";
import { Look } from "./parts/table";
import info from "./media/baked/table/set.lightmaps.json";
function Shot() {
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Look />
<Baked dir="baked/table" info={info} />
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="table-cycles" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
+14
View File
@@ -0,0 +1,14 @@
// The table set drawn by raea with nothing baked: the "before" frame (docs/bake.feature BK0, apps/lightbake/sets.json).
import { AbsoluteFill, Composition, registerRoot } from "raea";
import { Look, Parts } from "./parts/table";
function Shot() {
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Look />
<Parts />
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="table" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
+17
View File
@@ -0,0 +1,17 @@
// The window set with Cycles' bounce light baked into its lightmaps by blender/lightbake.py, any sun left live: what raea's
// own bake is measured against (docs/bake.feature BK0). `raea bake light --compare` makes media/baked/window/.
import { AbsoluteFill, Composition, registerRoot } from "raea";
import { Baked } from "./baked";
import { Look } from "./parts/window";
import info from "./media/baked/window/set.lightmaps.json";
function Shot() {
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Look />
<Baked dir="baked/window" info={info} />
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="window-cycles" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
+14
View File
@@ -0,0 +1,14 @@
// The window set drawn by raea with nothing baked: the "before" frame (docs/bake.feature BK0, apps/lightbake/sets.json).
import { AbsoluteFill, Composition, registerRoot } from "raea";
import { Look, Parts } from "./parts/window";
function Shot() {
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Look />
<Parts />
</AbsoluteFill>
);
}
registerRoot(() => <Composition id="window" component={Shot} width={1280} height={720} fps={30} durationInFrames={1} />);
+1
View File
@@ -0,0 +1 @@
runs/
+166
View File
@@ -0,0 +1,166 @@
{
"about": "raea bench denoise's cases (docs/denoise.feature DN0). The small ones are cases/cases.tsx at 960x540; doorway-mall is MALL RAT's take t1 (Raea/anchor-tenant, the exposed view: the take's exposure and white balance after the denoiser, no lens or tape, 1440x1080 at 60 fps; the clean view delivers means of 2-12 of 255, too few levels to measure), through the dead wing's doorway onto a wet floor lit through roof holes, 15.5-20.5 s, where MetalFX shimmered at 32/16 spp. Events are frames inside each shot where its history breaks on purpose; the lag counts the frames to settle after each.",
"scenes": [
{
"name": "dark-gain",
"dir": "cases",
"file": "cases.tsx",
"composition": "dark-gain",
"stills": [
30
],
"shot": [
20,
31
]
},
{
"name": "waxed-floor",
"dir": "cases",
"file": "cases.tsx",
"composition": "waxed-floor",
"stills": [
30
],
"shot": [
20,
31
]
},
{
"name": "doorway",
"dir": "cases",
"file": "cases.tsx",
"composition": "doorway",
"stills": [
30
],
"shot": [
10,
27
],
"events": [
{
"at": 15,
"what": "disocclusion"
}
]
},
{
"name": "whip-pan",
"dir": "cases",
"file": "cases.tsx",
"composition": "whip-pan",
"stills": [
30
],
"shot": [
10,
29
],
"events": [
{
"at": 18,
"what": "disocclusion"
}
]
},
{
"name": "neon",
"dir": "cases",
"file": "cases.tsx",
"composition": "neon",
"stills": [
30
],
"shot": [
20,
31
]
},
{
"name": "foliage",
"dir": "cases",
"file": "cases.tsx",
"composition": "foliage",
"stills": [
30
],
"shot": [
20,
31
]
},
{
"name": "fog",
"dir": "cases",
"file": "cases.tsx",
"composition": "fog",
"stills": [
30
],
"shot": [
20,
31
]
},
{
"name": "mirror",
"dir": "cases",
"file": "cases.tsx",
"composition": "mirror",
"stills": [
30
],
"shot": [
20,
31
]
},
{
"name": "light-off",
"dir": "cases",
"file": "cases.tsx",
"composition": "light-off",
"stills": [
30
],
"shot": [
10,
27
],
"events": [
{
"at": 15,
"what": "light"
}
]
},
{
"name": "cost",
"dir": "cases",
"file": "cases.tsx",
"composition": "cost",
"stills": [],
"reference": false,
"why": "the frame's cost at 1920x1080 only: its picture is waxed-floor's",
"live": true
},
{
"name": "doorway-mall",
"dir": "~/Documents/raea/raea/projects/anchor-tenant",
"file": "compositions/shots.tsx",
"composition": "t1-view",
"stills": [
1020,
1140
],
"shot": [
1080,
1091
],
"live_why": "a film's take; the cost is the cost case's",
"about": "t1's own SolariLighting draws it (32/16 spp, raised 11-24 for the doorway): RAEA_LIGHT=solari leaves a camera's SolariLighting as the composition has it. Frames count from the trimmed take; the doorway stretch is 930-1230"
}
]
}
+131
View File
@@ -0,0 +1,131 @@
// raea bench denoise's small cases (docs/denoise.feature DN0): one closed room, 8 m wide, 3 high and 12 deep, with a
// door to a second room behind its far wall, each composition a thing denoisers get wrong. Every case is Solari-lit,
// so the bench's truth (RAEA_LIGHT=pathtracer) draws the same scene converged. 960x540 at 30 fps; "cost" is the same
// hall at 1920x1080, played live for a frame's cost.
import { AbsoluteFill, Composition, registerRoot, useCurrentFrame } from "raea";
import { ToneMapping } from "raea/3d";
import { Grade } from "raea/post_process";
import { StandardMaterial, VolumetricFog, FogVolume } from "raea/pbr";
import { Cuboid, Mesh3d } from "raea/mesh";
import { DirectionalLight, SolariLighting } from "raea/light";
import { LinearRgba } from "raea/color";
import { Transform } from "raea/transform";
import { Camera3d } from "raea/camera";
type V3 = [number, number, number];
type Box = { name: string; min: V3; max: V3; color?: string; rough?: number; metal?: number; glow?: V3 };
// the room's shell: 20 cm boxes, the far wall (z -12) with a door 1.2 m wide and 2.2 high into the back room
const SHELL: Box[] = [
{ name: "floor", min: [-4.2, -0.2, -20.2], max: [4.2, 0, 0.2], color: "#8a8276" },
{ name: "ceiling", min: [-4.2, 3, -20.2], max: [4.2, 3.2, 0.2] },
{ name: "wall-l", min: [-4.2, 0, -20.2], max: [-4, 3, 0.2] },
{ name: "wall-near", min: [-4.2, 0, 0], max: [4.2, 3, 0.2] },
{ name: "wall-back", min: [-4.2, 0, -20.2], max: [4.2, 3, -20] },
{ name: "mid-l", min: [-4, 0, -12.2], max: [-0.6, 3, -12] },
{ name: "mid-r", min: [0.6, 0, -12.2], max: [4, 3, -12] },
{ name: "mid-top", min: [-0.6, 2.2, -12.2], max: [0.6, 3, -12] },
// the right wall with a window from z -9 to -5, 1 to 2.2 m up
{ name: "wall-r-low", min: [4, 0, -20.2], max: [4.2, 1, 0.2] },
{ name: "wall-r-high", min: [4, 2.2, -20.2], max: [4.2, 3, 0.2] },
{ name: "wall-r-back", min: [4, 1, -20.2], max: [4.2, 2.2, -9] },
{ name: "wall-r-front", min: [4, 1, -5], max: [4.2, 2.2, 0.2] },
];
// things to light and reflect: crates, a column, a coloured panel
const PROPS: Box[] = [
{ name: "crate-a", min: [-3, 0, -8], max: [-2, 1, -7], color: "#b04a32" },
{ name: "crate-b", min: [1.5, 0, -10], max: [2.7, 0.8, -8.8], color: "#3a6ea8" },
{ name: "column", min: [-0.3, 0, -5.3], max: [0.3, 3, -4.7] },
{ name: "panel", min: [-3.95, 0.6, -4], max: [-3.9, 1.8, -2], color: "#d8b13a" },
];
// the back room's light: a ceiling panel seen through the door
const BACK_LAMP: Box = { name: "back-lamp", min: [-1, 2.95, -17], max: [1, 3, -15], color: "#ffffff", glow: [900, 860, 780] };
// the hall's ceiling tubes
const TUBES: Box[] = [-2, 2].flatMap((x) => [-3, -8].map((z) => ({ name: `tube-${x}-${z}`, min: [x - 0.06, 2.96, z - 1] as V3, max: [x + 0.06, 3, z + 1] as V3, color: "#ffffff", glow: [2600, 2700, 2500] as V3 })));
function Part({ b, k = 1 }: { b: Box; k?: number }) {
const c: V3 = [(b.min[0] + b.max[0]) / 2, (b.min[1] + b.max[1]) / 2, (b.min[2] + b.max[2]) / 2];
const half: V3 = [(b.max[0] - b.min[0]) / 2, (b.max[1] - b.min[1]) / 2, (b.max[2] - b.min[2]) / 2];
const g = b.glow ? new LinearRgba(b.glow[0] * k, b.glow[1] * k, b.glow[2] * k, 1) : undefined;
return (
<Mesh3d name={b.name} castShadow={!b.glow} transform={Transform.fromXyz(...c)}>
<Cuboid half_size={half} />
<StandardMaterial base_color={b.color ?? "#d6d0c2"} perceptual_roughness={b.rough ?? 0.75} metallic={b.metal ?? 0} {...(g ? { emissive: g } : {})} />
</Mesh3d>
);
}
type Case = {
cam: (f: number) => Transform;
extra?: Box[];
floor?: Partial<Box>;
tubes?: (f: number) => number;
sun?: boolean;
fog?: boolean;
gain?: number;
hide?: (f: number) => string[];
};
// a slow dolly down the hall, looking at the door
const dolly = (f: number) => Transform.fromXyz(1.5, 1.6, -1 - f * 0.03).lookingAt([0, 1.2, -16]);
const still = () => Transform.fromXyz(2.8, 1.6, -1.5).lookingAt([-1, 1, -11]);
// leaves: thin blades in a grid in front of the window, each turned by its place
const LEAVES: Box[] = Array.from({ length: 120 }, (_, i) => {
const x = 3.2 + (i % 4) * 0.18, y = 0.9 + Math.floor(i / 4) % 10 * 0.13, z = -8.8 + Math.floor(i / 40) * 1.3 + ((i * 7) % 11) * 0.09;
return { name: `leaf-${i}`, min: [x, y, z] as V3, max: [x + 0.12, y + 0.015, z + 0.05] as V3, color: "#3f6b2a", rough: 0.6 };
});
const CASES: Record<string, Case> = {
// a dark room lifted 3 stops (18 dB) in the grade, as a camcorder's gain lifts it: only the back room's lamp, dimmed
"dark-gain": { cam: still, tubes: () => 0, gain: 3 },
// a waxed floor reflecting the tubes, the crates and the door
"waxed-floor": { cam: dolly, floor: { color: "#5a544c", rough: 0.08 } },
// still camera; at frame 15 the door's slab is gone, and the back room is seen at once (a disocclusion)
doorway: { cam: still, extra: [{ name: "door", min: [-0.6, 0, -12.15], max: [0.6, 2.2, -12.05], color: "#5b4a3a" }], hide: (f) => (f >= 15 ? ["door"] : []) },
// a whip pan: 100 degrees in 6 frames (12-17), then held
"whip-pan": { cam: (f) => { const t = Math.min(1, Math.max(0, (f - 12) / 6)); const a = -0.5 + t * 1.75; return Transform.fromXyz(0, 1.6, -6).lookingAt([Math.sin(a) * 5, 1.4, -6 - Math.cos(a) * 5]); } },
// neon: the tubes off, three thin saturated signs in a dark hall
neon: { cam: dolly, tubes: () => 0, extra: [
{ name: "sign-r", min: [-3.95, 1.9, -9], max: [-3.9, 1.95, -6], color: "#ffffff", glow: [1800, 120, 260] },
{ name: "sign-g", min: [-3.95, 1.5, -9], max: [-3.9, 1.55, -6], color: "#ffffff", glow: [100, 1600, 400] },
{ name: "sign-b", min: [3.9, 2.3, -11], max: [3.95, 2.35, -7], color: "#ffffff", glow: [160, 300, 2200] },
] },
// foliage: 120 leaves in front of a sunlit window
foliage: { cam: (f) => Transform.fromXyz(1, 1.5, -3 - f * 0.02).lookingAt([4, 1.5, -7.5]), extra: LEAVES, sun: true, tubes: () => 0.2 },
// a sunbeam through the window in dusty air
fog: { cam: still, sun: true, fog: true, tubes: () => 0.2 },
// a mirror on the left wall, the camera moving past it
mirror: { cam: (f) => Transform.fromXyz(1.5, 1.6, -2 - f * 0.04).lookingAt([-4, 1.4, -7]), extra: [{ name: "mirror", min: [-3.95, 0.5, -9], max: [-3.9, 2.5, -5], color: "#ffffff", rough: 0, metal: 1 }] },
// the tubes switched off at frame 15; the back room's lamp stays on
"light-off": { cam: still, tubes: (f) => (f >= 15 ? 0 : 1) },
};
function Room({ c }: { c: Case }) {
const f = useCurrentFrame();
const hidden = c.hide?.(f) ?? [];
const k = c.tubes?.(f) ?? 1;
const shell = SHELL.map((b) => (b.name === "floor" ? { ...b, ...c.floor } : b));
return (
<AbsoluteFill style={{ background: "#000000" }}>
<Camera3d transform={c.cam(f)} projection={{ Perspective: { fov: (60 * Math.PI) / 180 } }}>
<SolariLighting bounces={3} />
</Camera3d>
<ToneMapping mode="agx" />
{c.gain ? <Grade exposure={c.gain} /> : null}
{c.sun ? <DirectionalLight illuminance={50000} shadow_maps_enabled volumetric={!!c.fog} transform={Transform.fromXyz(20, 8, -4).lookingAt([0, 0, -7])} /> : null}
{c.fog ? <VolumetricFog /> : null}
{c.fog ? <FogVolume name="dust" position={[0, 1.5, -6]} scale={[8, 3, 12]} density={0.08} /> : null}
{[...shell, ...PROPS, ...(c.extra ?? [])].filter((b) => !hidden.includes(b.name)).map((b) => <Part key={b.name} b={b} />)}
{k > 0 ? TUBES.map((b) => <Part key={b.name} b={b} k={k} />) : null}
<Part b={BACK_LAMP} k={c.tubes && k === 0 && !c.gain ? 1 : c.gain ? 0.05 : 1} />
</AbsoluteFill>
);
}
registerRoot(() => (
<>
{Object.entries(CASES).map(([id, c]) => <Composition key={id} id={id} component={() => <Room c={c} />} width={960} height={540} fps={30} durationInFrames={40} />)}
<Composition id="cost" component={() => <Room c={CASES["waxed-floor"]} />} width={1920} height={1080} fps={30} durationInFrames={240} />
</>
));
+11
View File
@@ -0,0 +1,11 @@
# The bench checks L2 runs on every release candidate (tools/l2.sh), each with that commit's raea as RAEA_BIN; each
# must exit 0. They hold what P26 can't: P26 compares with a baseline, and a baseline drawn by a raea with a fault
# carries the fault. These say what is right.
#
# A frame drawn alone or out of order (--at, --frame) agrees with the render of every frame (docs/stage-guards.feature
# SG17). 0.1.9 drew a CSS animation in a frame alone from the earliest <Sequence>'s start, or from the frame itself.
bench/at-0/check.sh
bench/at-time/check.sh
bench/at-3d/check.sh
bench/compute-frames/check.sh
sdk/react/bench/css/check.sh
+1 -1
View File
@@ -1 +1 @@
{"binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","head":"8b812636","date":"2026-10-23T00:43:53Z","dylib_sha256":"cd2ef7c1f26ad10be8d76744520b9ada98f8b7738370c53537e8eaf100351623","dylib_note":"rebuilt 10-22 with the run bundler fixes (exports subpaths, media imports); it resolves imports only, the first capture used libraea_bundle.capture1.dylib"}
{"binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","dylib_sha256":"82323814c30022636dd84e2f6050b154dcd2dfe6e2b2fec7afab66cbac141c76","head":"a18b7c75","date":"2026-11-23T00:55:24Z"}
+10 -8
View File
@@ -1,9 +1,10 @@
#!/bin/bash
# P26's baseline (docs/ts-native.feature P26): frames of every composition in list.txt rendered by the Blitz page, the
# reference the bevy_ui page must match (SSIM >= 0.98 per frame, fonts and brand styles included).
# P26's baseline (docs/ts-native.feature P26a): frames of every composition in list.txt rendered by the published raea
# 0.1.9, the reference every later page must match (SSIM >= 0.98 per frame, fonts and brand styles included). It was
# the last Blitz build's until that build and its frames were lost (after 11-16); re-taken from 0.1.9 on 11-22.
#
# bench/p26-baseline/capture.sh [RAEA_BIN] (default: the Blitz build kept at
# ~/Library/Caches/raea/p26-baseline/bin, P26_STORE to move it)
# bench/p26-baseline/capture.sh [RAEA_BIN] (default: 0.1.9's raea, unpacked at
# ~/Library/Caches/raea/p26-baseline/bin-v0.1.9, P26_STORE to move it)
#
# For each composition: its length probed (getCompositions, through `raea run`), nine frames rendered with
# --manifest (0 to the last, evenly), and four kept: the first, the middle, the last and the one with the most text in
@@ -16,10 +17,10 @@ set -uo pipefail
HERE=$(cd "$(dirname "$0")" && pwd)
. "$HERE/lib.sh"
ROOT=$(cd "$HERE/../.." && pwd)
# the baseline's home outside the checkout and /tmp (Blitz is deleted at P27, so it can't be made again): the Blitz
# binary and its libraea_bundle.dylib under bin/, the frames under frames/
# the baseline's home outside the checkout and /tmp: 0.1.9's raea under bin-v0.1.9/ (its release tarball, unpacked),
# the frames under frames/
STORE=${P26_STORE:-$HOME/Library/Caches/raea/p26-baseline}
BIN=${1:-$STORE/bin/raea-motion}
BIN=${1:-$STORE/bin-v0.1.9/raea/bin/raea}
[ -x "$BIN" ] || { echo "capture.sh: no raea at $BIN" >&2; exit 2; }
SHA=$(shasum -a 256 "$BIN" | cut -d' ' -f1)
BIN_SHOWN="~${BIN#"$HOME"}"; [ "${BIN#"$HOME"}" = "$BIN" ] && BIN_SHOWN=$BIN
@@ -78,7 +79,8 @@ EOF
last=$((total - 1))
cands=$({ for i in 0 1 2 3 4 5 6 7 8; do echo $((last * i / 8)); done; echo "$asked" | tr ',' '\n' | grep . | awk -v l=$last '$1 <= l'; } | sort -n | awk '!seen[$0]++' | paste -sd, -)
rm -rf "$WORK/r" && mkdir -p "$WORK/r"
if ! (cd "$dir" && "$BIN" render "$src" ${copt[@]+"${copt[@]}"} --at "$cands" -o "$WORK/r/" --manifest "$WORK/r/m.json") > "$WORK/log" 2>&1; then
# the checks let through, as compare.sh does: a row is its pixels, and a scene that clips is still a frame to match
if ! (cd "$dir" && RAEA_DESPITE="all: the P26 baseline keeps a row's pixels; what its scene clips is in the log" "$BIN" render "$src" ${copt[@]+"${copt[@]}"} --at "$cands" -o "$WORK/r/" --manifest "$WORK/r/m.json") > "$WORK/log" 2>&1; then
echo "$rel: $(grep -E 'REFUSED|error|Error' "$WORK/log" | head -2 | tr '\n' ' ')" >> "$HERE/failures.txt"
echo "MISS $rel"
continue
+1
View File
@@ -1 +1,2 @@
examples/games/animated-character.tsx: EXCLUDED a 3D game (no page) whose model, media/RobotExpressive.glb, is not in the checkout; P26 is the page
sdk/react/bench/css/edit.tsx: [js] bundle.js threw before its first commit: ReferenceError: Can't find variable: raea REFUSED the composition threw before its first frame: ReferenceError: Can't find variable: raea
+212 -215
View File
@@ -1,215 +1,212 @@
{"composition":"bench/p26-baseline/fixtures/broll.tsx","id":"turn","frame":0,"why":"first","frames":150,"probed":true,"file":"frames/bench__p26-baseline__fixtures__broll/0.png","png_sha256":"38dcf4a2057186dca4b5ee70f8372b28f4c85daa2f40f4ee2e7aea95df5f556b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/p26-baseline/fixtures/broll.tsx","id":"turn","frame":74,"why":"middle","frames":150,"probed":true,"file":"frames/bench__p26-baseline__fixtures__broll/74.png","png_sha256":"00e6db4729934766adedbda90ae9adb0b32408b94dbbdc560b7ace3e6c18eed1","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/p26-baseline/fixtures/broll.tsx","id":"turn","frame":149,"why":"last","frames":150,"probed":true,"file":"frames/bench__p26-baseline__fixtures__broll/149.png","png_sha256":"980e5ffd8880ee666e2c7cca4ec3fafd32a65968217deaecd871f9e54f73188b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":0,"why":"first","frames":600,"probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/0.png","png_sha256":"19a772ab65cc744ee80eea4a761d3aa2fc3db24a0a411e7d08b4a77879ea46dc","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":299,"why":"middle","frames":600,"probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/299.png","png_sha256":"60f79e7103d85b35261929c5323304e847b5920bd0270d6212d194017aed83e7","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":599,"why":"last","frames":600,"probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/599.png","png_sha256":"ac6b188ecbd98365570d9194ef28596b941341e68a1c55b2f85ffc09eea52541","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":224,"why":"text","frames":600,"probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/224.png","png_sha256":"578803dcbf0da509cc92d93b02f05fb914cd62eec7b210b4f4f0d61eb626d192","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/colour/edit.tsx","id":"colour","frame":0,"why":"first","frames":30,"probed":true,"file":"frames/bench__lightspeed__colour__edit/0.png","png_sha256":"c36efff78cbd0c2b80a27783ac0c2d45e65f0de6d80e88ddc00b09710e8cf2b0","sha256":"3c2dfa83f5f4ad9fd9df9989968acae4c1bc3e674ffccd632fb41c4accb57a44","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-3c2dfa83f5f4/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: its reference was read back through NV12 (pure red 255,1,0; grey 192,192,190); now RGBA as raea reads frames since 3c7d15cf, every swatch the exact colour the composition names, as Chrome draws it"}
{"composition":"bench/lightspeed/colour/edit.tsx","id":"colour","frame":14,"why":"middle","frames":30,"probed":true,"file":"frames/bench__lightspeed__colour__edit/14.png","png_sha256":"c36efff78cbd0c2b80a27783ac0c2d45e65f0de6d80e88ddc00b09710e8cf2b0","sha256":"3c2dfa83f5f4ad9fd9df9989968acae4c1bc3e674ffccd632fb41c4accb57a44","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-3c2dfa83f5f4/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: its reference was read back through NV12 (pure red 255,1,0; grey 192,192,190); now RGBA as raea reads frames since 3c7d15cf, every swatch the exact colour the composition names, as Chrome draws it"}
{"composition":"bench/lightspeed/colour/edit.tsx","id":"colour","frame":29,"why":"last","frames":30,"probed":true,"file":"frames/bench__lightspeed__colour__edit/29.png","png_sha256":"c36efff78cbd0c2b80a27783ac0c2d45e65f0de6d80e88ddc00b09710e8cf2b0","sha256":"3c2dfa83f5f4ad9fd9df9989968acae4c1bc3e674ffccd632fb41c4accb57a44","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-3c2dfa83f5f4/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: its reference was read back through NV12 (pure red 255,1,0; grey 192,192,190); now RGBA as raea reads frames since 3c7d15cf, every swatch the exact colour the composition names, as Chrome draws it"}
{"composition":"bench/lightspeed/t3d600/edit.tsx","id":"t3d600","frame":0,"why":"first","frames":600,"probed":true,"file":"frames/bench__lightspeed__t3d600__edit/0.png","png_sha256":"c7f101d59f260503ac5214a7b4bc4f93ebce4b993e1470d9aac152f445986d0d","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/t3d600/edit.tsx","id":"t3d600","frame":299,"why":"middle","frames":600,"probed":true,"file":"frames/bench__lightspeed__t3d600__edit/299.png","png_sha256":"dd6cb5e9cb9c42ec44439da294ae70e909801b4fb4f5ba3a7c116f2088ba5fcd","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"bench/lightspeed/t3d600/edit.tsx","id":"t3d600","frame":599,"why":"last","frames":600,"probed":true,"file":"frames/bench__lightspeed__t3d600__edit/599.png","png_sha256":"89bf7e3f0b6345aef90f89dbdd25276613ab17453e749a3141152491503877dd","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/animate3d/edit.tsx","id":"animate3d","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__animate3d__edit/0.png","png_sha256":"7b0ff2f78056ee0ecd7ad41f54fcf54c1b20af13d54bb8dde9c10ef551d59415","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/animate3d/edit.tsx","id":"animate3d","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__animate3d__edit/29.png","png_sha256":"3f497b4b42fe738e237e9bc9a527a636d0edd8a4861c483d29737e4de5953201","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/animate3d/edit.tsx","id":"animate3d","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__animate3d__edit/59.png","png_sha256":"5780e8445a4935df8616cba268c2067ebc688214f9f9761dee6be67ccc3e0b14","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/character/edit.tsx","id":"character","frame":0,"why":"first","frames":90,"probed":true,"file":"frames/sdk__motion__bench__bevy__character__edit/0.png","png_sha256":"bab3fe74dd8555c98b96c14b0bce61d1473e61f7f6f28024354f10f99b422393","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/character/edit.tsx","id":"character","frame":44,"why":"middle","frames":90,"probed":true,"file":"frames/sdk__motion__bench__bevy__character__edit/44.png","png_sha256":"9968f48e5c5a9e8ff2475949ec660a5e4c3cc6673bb554e4eeeab1c595d15a6a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/character/edit.tsx","id":"character","frame":89,"why":"last","frames":90,"probed":true,"file":"frames/sdk__motion__bench__bevy__character__edit/89.png","png_sha256":"044cc20a46eba6170da1c688ec74f7e45c8e7c4bf8831bff874cd4d4873d4558","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/cinema/edit.tsx","id":"cinema","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__cinema__edit/0.png","png_sha256":"555d669fc5fc1143829ee6960c7ad6958df6894351d57bda2d2612ea8500918d","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/cinema/edit.tsx","id":"cinema","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__cinema__edit/29.png","png_sha256":"cd327de0924b972adafab401a15151487b33410c5aaeea503dc58cdd28bdb8cc","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/cinema/edit.tsx","id":"cinema","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__cinema__edit/59.png","png_sha256":"b4cccd0fca0b475c1b234b536fae0ce95aec332bbf21e63c8bcc007de0aae3d9","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/classbg/edit.tsx","id":"classbg","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__classbg__edit/0.png","png_sha256":"3ca0f47abd5b600e06e711db5f2ca747afa52b4d872662f3f4697d21b018e6e6","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/classbg/edit.tsx","id":"classbg","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__classbg__edit/29.png","png_sha256":"fcf8d5f3023c56e4dfb96e9261ee9935f3919398ea0a8c98999e1d14cb6dc223","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/classbg/edit.tsx","id":"classbg","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__classbg__edit/59.png","png_sha256":"a01e331ba7d511d57f78f5f2475f7a23cbf0d66a5835855033ca21e68eccc98d","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/datamaps/edit.tsx","id":"datamaps","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__datamaps__edit/0.png","png_sha256":"81c6cea57952f2b23e6c5c98a368ee99e275676991ef6d5b219646f7c0de780c","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/datamaps/edit.tsx","id":"datamaps","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__datamaps__edit/29.png","png_sha256":"330d2905b86c51fad5f4b2a0b34cd9d0d537b23b586c3f31cd6481383acd4695","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/datamaps/edit.tsx","id":"datamaps","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__datamaps__edit/59.png","png_sha256":"44092b6b63d5f5468f05ea2efa8b7943567937847460876edbed659e5b1a1f05","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/environment/edit.tsx","id":"environment","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__environment__edit/0.png","png_sha256":"cf6cfebf3f169868b06718173f941cef743582024a778f3e99be6430ca577f33","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/environment/edit.tsx","id":"environment","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__environment__edit/29.png","png_sha256":"d77b904c1c266418c3fb426efe1b0278e1686098f0f6260d2b48bb8ff0bf53d3","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/environment/edit.tsx","id":"environment","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__environment__edit/59.png","png_sha256":"71010f2c6654f1d9bf8725d99962a9ab1359756a80cc80018221121b86c64890","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"sdk/raea/bench/bevy/fire/edit.tsx","id":"fire","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__fire__edit/0.png","png_sha256":"c15dad5ac0780250dd3623a7e7a109df38155ec2fa09eb851e3c63747bf91a72","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/fire/edit.tsx","id":"fire","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__fire__edit/29.png","png_sha256":"c9cd433508a817a36e86b83ab95aeda379347d343a0f9728a64e83f646b26f8a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/fire/edit.tsx","id":"fire","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__fire__edit/59.png","png_sha256":"83fa86e1b07e9865bafdc591bf9bc6d834664a92359423fbf3c45758fa4716e6","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/lens/edit.tsx","id":"lens","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__lens__edit/0.png","png_sha256":"a77adcf18b31a63ad45f67c277f6b4ab11f7323782cd1ab825f3686ea10f8717","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/lens/edit.tsx","id":"lens","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__lens__edit/29.png","png_sha256":"d75258e5db22e981c905bc922347af964aad5c48eb2e7f073de249f70be5463d","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/lens/edit.tsx","id":"lens","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__lens__edit/59.png","png_sha256":"d3f871d75e020ef06e389b19d1355f888cc1bcbc5f9f5eef54d7496243d0c61e","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/lights/edit.tsx","id":"lights","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__lights__edit/0.png","png_sha256":"77ffaae6a6e3c33303ef473d26c5a312743ba46cc8f48915e9543269e7ff905b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/lights/edit.tsx","id":"lights","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__lights__edit/29.png","png_sha256":"6aee7939691120aa018f1cdd0e4ddbb6caf99b9e4ff78011343f2b031af023d9","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/lights/edit.tsx","id":"lights","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__lights__edit/59.png","png_sha256":"561204e738afda1dbb346287e1b6c2a9b03d3bcf8cce8d8fa2d2d2cf1ce7652f","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/model/edit.tsx","id":"model","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__model__edit/0.png","png_sha256":"e7b3ee282a9c4203b31715c857f3a733ce86221442db3f9986b2e18544503bf1","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/model/edit.tsx","id":"model","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__model__edit/29.png","png_sha256":"ba1589390b6721f96e16208ac6da1ba55f5b166924f31e777f8a0c9c4d840856","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/model/edit.tsx","id":"model","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__model__edit/59.png","png_sha256":"ba1589390b6721f96e16208ac6da1ba55f5b166924f31e777f8a0c9c4d840856","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/paint/edit.tsx","id":"paint","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__paint__edit/0.png","png_sha256":"52285a60052e2fcf247b3fdf774686857d86785df7510d712867266371ed1941","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/paint/edit.tsx","id":"paint","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__paint__edit/29.png","png_sha256":"6a3235238712f96cdc92121fd19f0d2b882b6fc7cf9746c5d95b2b5ecf53f0af","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/paint/edit.tsx","id":"paint","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__paint__edit/59.png","png_sha256":"7658ef1911268f1bcc8145684e8978f5b2a3284cbb69ff278753300a3c7ce7c1","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/planes/edit.tsx","id":"planes","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__planes__edit/0.png","png_sha256":"042ed10066e27d4984d934d698f8999c9696ea8283f3156ee00886577796cde2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/planes/edit.tsx","id":"planes","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__planes__edit/29.png","png_sha256":"71b4507ac5c597a577193ed80cd376a663c0f3d86cae96c5a1f49ad80ac7e02d","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"sdk/raea/bench/bevy/planes/edit.tsx","id":"planes","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__planes__edit/59.png","png_sha256":"90cbb2dc28965fc343d75d6842ac565765fb95b1873bbed28fc1988cb29336f1","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"sdk/raea/bench/bevy/shadows/edit.tsx","id":"shadows","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__shadows__edit/0.png","png_sha256":"e214966b5dc19d5d349022601cd62ca08fd60a7aada32f9ab5e72d016b770ac2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/shadows/edit.tsx","id":"shadows","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__shadows__edit/29.png","png_sha256":"ebe03d2f275361ff70c095e97b3efd752b01d11c50a6d022362f06a013aa2c44","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/shadows/edit.tsx","id":"shadows","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__shadows__edit/59.png","png_sha256":"378a53880f704ff2de4420e94a27de28143a17225aab2bc839c8e5c7878dd931","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/splat/edit.tsx","id":"splat","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__splat__edit/0.png","png_sha256":"d03fcd3098c02e63230dd04ebec16b64d13379abbf0362d21e64068ebd6fa6a3","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/splat/edit.tsx","id":"splat","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__splat__edit/29.png","png_sha256":"f6d79e3bccead9ca80a20dea15f99c74bce092d3f4b91a93f61e476158288fdc","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/splat/edit.tsx","id":"splat","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__splat__edit/59.png","png_sha256":"2780a95e114f21d70f1e361e3719c7e13c6397475ae3d611a308a3b2527d3121","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/ssao/edit.tsx","id":"ssao","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__ssao__edit/0.png","png_sha256":"97684e13237dfcf096f874bfef4aad76c2f419bb1ba467a261f31f8378a780ec","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/ssao/edit.tsx","id":"ssao","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__ssao__edit/29.png","png_sha256":"ab6d6a1c917789784a185b089fc429ddca8fa132cb4364caa7d9e06caece07f1","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/ssao/edit.tsx","id":"ssao","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__ssao__edit/59.png","png_sha256":"f5dedb498598e72def24cbf48a8bd7fd45bf4ec52f32159dff2be141b5091dee","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/studio/edit.tsx","id":"studio","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__studio__edit/0.png","png_sha256":"27d78ef9d8c0578fa4e295db47750c00552c56a6bdd91661355dc09287cf5aac","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/studio/edit.tsx","id":"studio","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__studio__edit/29.png","png_sha256":"bdfd12292020c500ad1110a75b55fd308efdb9815c4596146b998c16212ea62a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/studio/edit.tsx","id":"studio","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__studio__edit/59.png","png_sha256":"166dd02398054c25a695feb292d32572e61a5cd7b7141421117f525fd2c88308","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/texmaps/edit.tsx","id":"texmaps","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__texmaps__edit/0.png","png_sha256":"647216f3c8a8dafe3c0eb15b2727952eedc7c06ab257db49917114f47d97e684","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/texmaps/edit.tsx","id":"texmaps","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__texmaps__edit/29.png","png_sha256":"9ab29bf979e918d851c6289e916117d1b7319722fdc560cd5940d2be1dc8e6f8","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/texmaps/edit.tsx","id":"texmaps","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__texmaps__edit/59.png","png_sha256":"befc9bb63bb65ca2dcb097361d9177cbce23c453fbf807396a79be519a29008f","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/toon/edit.tsx","id":"toon","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__toon__edit/0.png","png_sha256":"85ef5bf580ecb38a139878e49005e3bffd5979d1cee2d648e8fb91b2e43278d2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/toon/edit.tsx","id":"toon","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__toon__edit/29.png","png_sha256":"f8157aac160daa015c0c213c76a876339859ff5a9de3e3d05531734870a805e5","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/toon/edit.tsx","id":"toon","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__toon__edit/59.png","png_sha256":"243e64fd4770dc911b2a6f314f6444dfd39372c5f63e8f70913687df0fc6517a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volume-light/edit.tsx","id":"volume-light","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volume-light__edit/0.png","png_sha256":"ac8bb1b5de321890b7c78198641356ede531cee841b28a0e6ecf305e650858c5","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volume-light/edit.tsx","id":"volume-light","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volume-light__edit/29.png","png_sha256":"6a605cfffebea0db7537b24babf3e283cf5336c5e2afb9bdc545d0c4db14471e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volume-light/edit.tsx","id":"volume-light","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volume-light__edit/59.png","png_sha256":"f05fa49bc62431a72dc1ac30ad90121ccd2a74d0e909ba8122fb867413b690d2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-dither/edit.tsx","id":"volumetric","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-dither__edit/0.png","png_sha256":"f320465dda1530a1cd9919ce2c5300b7c367aa84e0e1ce5c741264cfa6133220","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"sdk/raea/bench/bevy/volumetric-dither/edit.tsx","id":"volumetric","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-dither__edit/29.png","png_sha256":"4d4daccab093e4a9a968d7ff8515e8487825675588d8f212c3782ba7c1c41609","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/volumetric-dither/edit.tsx","id":"volumetric","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-dither__edit/59.png","png_sha256":"0a194c3df0e03df9256d6abc09699da779fa39fe24ec5fb044cd071bdda669a4","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/volumetric-glass/edit.tsx","id":"volumetric-glass","frame":0,"why":"first","frames":90,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-glass__edit/0.png","png_sha256":"964b7a4aa26ecc3db98ce226434a475d93a0bc8c82a5bbad206fc556ae6d2a76","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-glass/edit.tsx","id":"volumetric-glass","frame":44,"why":"middle","frames":90,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-glass__edit/44.png","png_sha256":"0e21b7993c2c57cd71a0e5bd7ccfa2c32447add07be6da879c9f3a08f61af8a0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-glass/edit.tsx","id":"volumetric-glass","frame":89,"why":"last","frames":90,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-glass__edit/89.png","png_sha256":"d3ea60e9681b616421c7b77f1bd26f17d6de5dd4a55636cf1b02cf2bfc62beb0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-half/edit.tsx","id":"volumetric-half","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-half__edit/0.png","png_sha256":"e4e03c775487db3be69735b7996b9e3ba739ee3edfaaa04599e3cca18086976a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-half/edit.tsx","id":"volumetric-half","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-half__edit/29.png","png_sha256":"4260b31e098199cf3d5df3ffccdf955a05bf7bd7cd69ccc5d5a79842079e3ba1","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-half/edit.tsx","id":"volumetric-half","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-half__edit/59.png","png_sha256":"9d9a6e62c89f5427c757ed8e07b4b024b1aa16d9f2f4385ec733e8a3463243e3","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/bench/bevy/volumetric/edit.tsx","id":"volumetric","frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric__edit/0.png","png_sha256":"fad198686fed3ccb726b0040aa7ae0a80838c2fb106c8788dde64d4a44ca2efc","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric/edit.tsx","id":"volumetric","frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric__edit/29.png","png_sha256":"d643944fd2d377d2565f0b7d811f4765da2c9fa5d4dbd74ca8e58f3f242a423b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric/edit.tsx","id":"volumetric","frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric__edit/59.png","png_sha256":"64b1dec787139144bd34703eeffe5f983999a758b39de5d830bb7b39f9bf37cb","sha256":"feae904cc626e5d62d54e89ac1aab5f2d0c751be248cf7e2e19c253046b8e479","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-feae904cc626/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: 2cd3dc9f (B3 H10): the 3D drawn at the frame's true w x h view (was 0.14% larger and half a pixel low); A/B in one binary, every one of these rows passes with the sub view off"}
{"composition":"sdk/raea/conformance/golden/01-card-fade/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__01-card-fade__edit/0.png","png_sha256":"e96950295c59987a3cea1a0b05490b4a06a97d6c9979863752d866974d121ae3","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/01-card-fade/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__01-card-fade__edit/29.png","png_sha256":"4940997a8d98489f91163a3315921be61edf9456c826829ab648c11528a79693","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/01-card-fade/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__01-card-fade__edit/59.png","png_sha256":"4940997a8d98489f91163a3315921be61edf9456c826829ab648c11528a79693","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__02-sequence-timing__edit/0.png","png_sha256":"d58500a0788a02d273ce8a28b21ea801573a38d4faeaea968f92fd2e8fe0b96b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__02-sequence-timing__edit/29.png","png_sha256":"d58500a0788a02d273ce8a28b21ea801573a38d4faeaea968f92fd2e8fe0b96b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__02-sequence-timing__edit/59.png","png_sha256":"bb16673e654fee61f00764bec619f10c3bdb569d9ad232a62a17f54546913062","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":36,"why":"text","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__02-sequence-timing__edit/36.png","png_sha256":"79141928ff2841dffe279411bfeb95c6c212e570d275f368ee5594f269b19f98","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/04-mesh-sign/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__04-mesh-sign__edit/0.png","png_sha256":"61cc3830411881ca2b201ee2b1a7167f84320b60598471da0fe2f6e102a00b6e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/04-mesh-sign/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__04-mesh-sign__edit/29.png","png_sha256":"b75d9087508593bc48787dd34dbdf54737c64bf18b3a58e296c5dcbb7e610d76","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/04-mesh-sign/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__04-mesh-sign__edit/59.png","png_sha256":"5cda21fa812f719ce956c0f319ccd00a093b9a6bf1880a9f39e33577cd71d20f","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/05-world-solid/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__05-world-solid__edit/0.png","png_sha256":"61cc3830411881ca2b201ee2b1a7167f84320b60598471da0fe2f6e102a00b6e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/05-world-solid/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__05-world-solid__edit/29.png","png_sha256":"b75d9087508593bc48787dd34dbdf54737c64bf18b3a58e296c5dcbb7e610d76","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/05-world-solid/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__05-world-solid__edit/59.png","png_sha256":"5cda21fa812f719ce956c0f319ccd00a093b9a6bf1880a9f39e33577cd71d20f","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/06-world-entities/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__06-world-entities__edit/0.png","png_sha256":"3c6302a16f9348b6ab9a69e09d607d274c065cb9b345ec65da4c91cc73b1edb8","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/06-world-entities/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__06-world-entities__edit/29.png","png_sha256":"29d8e4fe76b7881b0b71f591a87b4d32a9be4d4f316b11a0a62e522f177d9aac","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/conformance/golden/06-world-entities/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"probed":true,"file":"frames/sdk__motion__conformance__golden__06-world-entities__edit/59.png","png_sha256":"b7b305836c3b22f00b2de1658d69b807b7e81c47e629fb72e835f4b258b1e7ed","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/breakout.tsx","id":"breakout3d","frame":0,"why":"first","frames":240,"probed":true,"file":"frames/examples__games__breakout/0.png","png_sha256":"4d2db9aaec1d62c088f5d8dd06ace217f852bcf3c0278fe3c9eddcbfeb4702ae","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/breakout.tsx","id":"breakout3d","frame":119,"why":"middle","frames":240,"probed":true,"file":"frames/examples__games__breakout/119.png","png_sha256":"36b1be167d9a5d89ff44d4eeb13a1d693400e9af9a03f5c45c2cfb4226e855c4","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/breakout.tsx","id":"breakout3d","frame":239,"why":"last","frames":240,"probed":true,"file":"frames/examples__games__breakout/239.png","png_sha256":"2e4d47841c4abe67c402b055292a1d7e02cbe211bc4a043c76bc077e013864a0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/camera-orbit.tsx","id":"orbit","frame":0,"why":"first","frames":150,"probed":true,"file":"frames/examples__games__camera-orbit/0.png","png_sha256":"60f5f3a4ef6e6759fed295f55463537cbfbd6697a9be6c67470ab68845c7d1a5","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/camera-orbit.tsx","id":"orbit","frame":74,"why":"middle","frames":150,"probed":true,"file":"frames/examples__games__camera-orbit/74.png","png_sha256":"0397787377ff8bc7b6aafeb676de241226fff861fbcd53fdcbddc80a6e19dc4e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/camera-orbit.tsx","id":"orbit","frame":149,"why":"last","frames":150,"probed":true,"file":"frames/examples__games__camera-orbit/149.png","png_sha256":"3a1c362b18adaa503be6f079bf46d6f5cceec28d7624e2dad6495af65ed4a124","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/fog-bloom.tsx","id":"fogbloom","frame":0,"why":"first","frames":120,"probed":true,"file":"frames/examples__games__fog-bloom/0.png","png_sha256":"5d284683f39442fd58a080deab07d16c1877948ebd2e62dfbcd9c8c62a58aa96","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/fog-bloom.tsx","id":"fogbloom","frame":59,"why":"middle","frames":120,"probed":true,"file":"frames/examples__games__fog-bloom/59.png","png_sha256":"39c1a07be6af7f3d1407634eddf5d1cf30575bd3a745e84725b11031f1b84910","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/fog-bloom.tsx","id":"fogbloom","frame":119,"why":"last","frames":120,"probed":true,"file":"frames/examples__games__fog-bloom/119.png","png_sha256":"543bd5d758126c3d44f7cdd80356e044e22380b499478d095aa2043950dde0d0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/lighting.tsx","id":"lighting","frame":0,"why":"first","frames":120,"probed":true,"file":"frames/examples__games__lighting/0.png","png_sha256":"c02de9096f1a197db2cb3af53f13a7a2a961ed1de2512552dc96211f2598d7aa","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"examples/games/lighting.tsx","id":"lighting","frame":59,"why":"middle","frames":120,"probed":true,"file":"frames/examples__games__lighting/59.png","png_sha256":"9a6702da6c962dc3d4b4afc4d0de28342f33733385c1097973b5d6cf568eaace","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"examples/games/lighting.tsx","id":"lighting","frame":119,"why":"last","frames":120,"probed":true,"file":"frames/examples__games__lighting/119.png","png_sha256":"ab751db5af3376bf6dcca34cf173400c6e86fb05acb11ea0dde0149db2a3c051","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference was read back through NV12 (BT.709 4:2:0, a level or so off in each channel); now RGBA, as raea reads frames since 3c7d15cf (the Blitz frame through the same NV12 trip already passed)"}
{"composition":"examples/games/pbr.tsx","id":"pbr","frame":0,"why":"first","frames":30,"probed":true,"file":"frames/examples__games__pbr/0.png","png_sha256":"8388410a376ed5b052612dd8afde207db5b838e643a15ce6c6a82f21d8ca90b2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/pbr.tsx","id":"pbr","frame":14,"why":"middle","frames":30,"probed":true,"file":"frames/examples__games__pbr/14.png","png_sha256":"8388410a376ed5b052612dd8afde207db5b838e643a15ce6c6a82f21d8ca90b2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/pbr.tsx","id":"pbr","frame":29,"why":"last","frames":30,"probed":true,"file":"frames/examples__games__pbr/29.png","png_sha256":"8388410a376ed5b052612dd8afde207db5b838e643a15ce6c6a82f21d8ca90b2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/platformer-feel.tsx","id":"platformer","frame":0,"why":"first","frames":300,"probed":true,"file":"frames/examples__games__platformer-feel/0.png","png_sha256":"8c04dd69067887da380ae728cd3355842619bc35f74f5fea620e124429cd2270","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/platformer-feel.tsx","id":"platformer","frame":149,"why":"middle","frames":300,"probed":true,"file":"frames/examples__games__platformer-feel/149.png","png_sha256":"74fc7bca6d3cd63c8fa6e5d8791f705301041603d9c5d875fecfc9aeceeff342","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/platformer-feel.tsx","id":"platformer","frame":299,"why":"last","frames":300,"probed":true,"file":"frames/examples__games__platformer-feel/299.png","png_sha256":"510c98aa6a734fa5315832c99b4ff4811c7c80691a70a8fad9eb8ab464a453ef","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/screenshake.tsx","id":"screenshake","frame":0,"why":"first","frames":150,"probed":true,"file":"frames/examples__games__screenshake/0.png","png_sha256":"8ad6213e934134e51725f147d590a465cef69e8a794e2d89f77c116d71c6e88f","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/screenshake.tsx","id":"screenshake","frame":74,"why":"middle","frames":150,"probed":true,"file":"frames/examples__games__screenshake/74.png","png_sha256":"1a53a7088812966e11ad58d46b15d479bdeaf47ee6670f728f159b9457fa0a62","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/screenshake.tsx","id":"screenshake","frame":149,"why":"last","frames":150,"probed":true,"file":"frames/examples__games__screenshake/149.png","png_sha256":"8ad6213e934134e51725f147d590a465cef69e8a794e2d89f77c116d71c6e88f","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/shapes.tsx","id":"shapes","frame":0,"why":"first","frames":90,"probed":true,"file":"frames/examples__games__shapes/0.png","png_sha256":"c90b2f90f447d36aa2e984d72e198d77a177ef610e663b255bf5191c1053014e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/shapes.tsx","id":"shapes","frame":44,"why":"middle","frames":90,"probed":true,"file":"frames/examples__games__shapes/44.png","png_sha256":"2f3b67238e845a0f2fadbe1a1cff7bb95a1ad2f351185344f26549b32f68722e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"examples/games/shapes.tsx","id":"shapes","frame":89,"why":"last","frames":90,"probed":true,"file":"frames/examples__games__shapes/89.png","png_sha256":"09c8de18e9139383bc813ccd90e520ca2f378f006b8791527185de2aebd8a32b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/box3d/edit.tsx","id":"box3d","frame":0,"why":"first","frames":120,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__box3d__edit/0.png","png_sha256":"0698a4a1eddc402388fc0c2bfb3f115b01217f168e0562e4da8cf701a2d5dd3e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/box3d/edit.tsx","id":"box3d","frame":59,"why":"middle","frames":120,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__box3d__edit/59.png","png_sha256":"5079fa7a9d701e496b0c23d0505ffd495955135002058eec0dba047b09ded437","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/box3d/edit.tsx","id":"box3d","frame":119,"why":"last","frames":120,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__box3d__edit/119.png","png_sha256":"b12a30cbaad1f9ec83770fe89ae314978a0260b257bfd1aacdc7ca0b255fbebe","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":0,"why":"first","frames":270,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/0.png","png_sha256":"89465a0f7430f20d9efd23653a7b60876478f1af8559331c547956fd4f9e9245","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":134,"why":"middle","frames":270,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/134.png","png_sha256":"69867e147c8c07a8e62c38ea24f56f8ddceb73b0b2b3686f247b985f501242d4","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":269,"why":"last","frames":270,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/269.png","png_sha256":"e584064f3547cf0a1ede7e5f658f30b838037d6eebed6607878e689994cde8be","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":168,"why":"text","frames":270,"probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/168.png","png_sha256":"0a1e5e77f1b2b1fc4b1a44f28a444026d4c2a005de7778d2e47a1b083709b013","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/css/anim.tsx","id":"css","frame":0,"why":"first","frames":40,"probed":true,"file":"frames/sdk__react__bench__css__anim/0.png","png_sha256":"d9e0ac155070b6ed48bfbb183bddf1181d0c285f59e261390a39a4b5256ea408","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/css/anim.tsx","id":"css","frame":19,"why":"middle","frames":40,"probed":true,"file":"frames/sdk__react__bench__css__anim/19.png","png_sha256":"564cfd0b90618cfba6e7f84d361bedb29bc7d840fb73b3da02c25162a41a81ce","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/css/anim.tsx","id":"css","frame":39,"why":"last","frames":40,"probed":true,"file":"frames/sdk__react__bench__css__anim/39.png","png_sha256":"4a41cc8e76062c44967fe3cf9a7e4bf30f51d5b6bd52e8e031165933f6f83731","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/css/edit.tsx","id":"edit","frame":0,"why":"first","frames":30,"probed":true,"file":"frames/sdk__react__bench__css__edit/0.png","png_sha256":"4bdf7657b8092ca7d6edb7cd353e8cd1449671adc47fb8d658e78e2d5a0b9b69","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference drew #FF0000 as (255, 1, 0) (read back through NV12); now RGBA, as raea reads frames since 3c7d15cf, and pure red as Chrome draws it"}
{"composition":"sdk/react/bench/css/edit.tsx","id":"edit","frame":14,"why":"middle","frames":30,"probed":true,"file":"frames/sdk__react__bench__css__edit/14.png","png_sha256":"4bdf7657b8092ca7d6edb7cd353e8cd1449671adc47fb8d658e78e2d5a0b9b69","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference drew #FF0000 as (255, 1, 0) (read back through NV12); now RGBA, as raea reads frames since 3c7d15cf, and pure red as Chrome draws it"}
{"composition":"sdk/react/bench/css/edit.tsx","id":"edit","frame":29,"why":"last","frames":30,"probed":true,"file":"frames/sdk__react__bench__css__edit/29.png","png_sha256":"4bdf7657b8092ca7d6edb7cd353e8cd1449671adc47fb8d658e78e2d5a0b9b69","sha256":"fc46797b29c04d1b85fe2b4cbaedc86851b049a9e0c37a990ea3b22cbff4b506","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-fc46797b29c0/raea-motion","page":"bevy","recaptured":"10-24 bevy_ui page: its reference drew #FF0000 as (255, 1, 0) (read back through NV12); now RGBA, as raea reads frames since 3c7d15cf, and pure red as Chrome draws it"}
{"composition":"sdk/react/bench/css/svg.tsx","id":"svg","frame":0,"why":"first","frames":1,"probed":true,"file":"frames/sdk__react__bench__css__svg/0.png","png_sha256":"fea2d59d3f60164eb0558866e8c1cb96bba8ae0d05e264adf840d1eedfae4260","sha256":"ec93ea774e5e9122e0ed0c1ab526731c1b30966a4fe919001db105853f68e3a9","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-ec93ea774e5e/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: NV12-era reference: the Blitz page read back through NV12 (RAEA_READBACK=nv12, as it was taken) scores >= 0.98 against it; stills are RGBA since 3c7d15cf"}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":0,"why":"first","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/0.png","png_sha256":"785995ea68bf25024de6192abba9446e37d591a27420baa2961bc1365d789bdc","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":3599,"why":"middle","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/3599.png","png_sha256":"82c8de64f5292d1290b23fb21b853e64cdc8671e3c6c59ad14c19edfeb0cbb7e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":7199,"why":"last","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/7199.png","png_sha256":"51c2a167d1ceb130960cfd9b3056de8eac005ec292c9d4fbed260da2efc441bd","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":5399,"why":"text","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/5399.png","png_sha256":"2f7fbcc6a687700923aa7b547dfe2029fb834b718ccc5f7860fafc93650cee9b","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":0,"why":"first","frames":36000,"probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/0.png","png_sha256":"7d39b50865a72604ca2ae443c61d2bbf2a9d9e686c7dc4ce213b16643e86898c","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":17999,"why":"middle","frames":36000,"probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/17999.png","png_sha256":"c9566bf1bc694173eda9919d798b59cebe56c4b24824a2a9bfd1f86675ec3d37","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":35999,"why":"last","frames":36000,"probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/35999.png","png_sha256":"68280512c5e3fe5c1f442d0537dd372a3ecc7e657154935918576be60ebeff49","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":26999,"why":"text","frames":36000,"probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/26999.png","png_sha256":"a70c93795d45437e0402dbafa33373c10fdf3d35a781db83c50b6a91fc3487b3","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/games/pong/edit.stepfold.tsx","id":"edit","frame":0,"why":"first","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit.stepfold/0.png","png_sha256":"564fe64317b8abae9bc593ee47aca81a6790fc8fea2e1fbfdb34e093f6a10add","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.stepfold.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit.stepfold/2333.png","png_sha256":"564fe64317b8abae9bc593ee47aca81a6790fc8fea2e1fbfdb34e093f6a10add","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.stepfold.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit.stepfold/4667.png","png_sha256":"564fe64317b8abae9bc593ee47aca81a6790fc8fea2e1fbfdb34e093f6a10add","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.tsx","id":"edit","frame":0,"why":"first","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit/0.png","png_sha256":"ce53a84b1b9976516c61e056bfe8ed9b3248a9c960af399d60f1512cda032caf","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit/2333.png","png_sha256":"ec07c6aa52b4f5c3283731d95c71653d88f59be3f558019e0caf01f7c9c596ba","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit/4667.png","png_sha256":"ec07c6aa52b4f5c3283731d95c71653d88f59be3f558019e0caf01f7c9c596ba","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.view.tsx","id":"edit","frame":0,"why":"first","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit.view/0.png","png_sha256":"b3e09c685d8e0037d031127d97f9db03f7642338d0572157d2161cd655f6fa66","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.view.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit.view/2333.png","png_sha256":"cf64790df03e800779c72ae52e1d594bba8fab7d89e1382cdda308ceb2279925","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/pong/edit.view.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__pong__edit.view/4667.png","png_sha256":"cf64790df03e800779c72ae52e1d594bba8fab7d89e1382cdda308ceb2279925","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/tones/edit.tsx","id":"tones","frame":0,"why":"first","frames":300,"probed":true,"file":"frames/sdk__react__bench__games__tones__edit/0.png","png_sha256":"5e49c881191abfa64f4d49ce7f871307a87e8e7b2cb0512318d6b7e33ce054e3","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/tones/edit.tsx","id":"tones","frame":149,"why":"middle","frames":300,"probed":true,"file":"frames/sdk__react__bench__games__tones__edit/149.png","png_sha256":"5e49c881191abfa64f4d49ce7f871307a87e8e7b2cb0512318d6b7e33ce054e3","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/tones/edit.tsx","id":"tones","frame":299,"why":"last","frames":300,"probed":true,"file":"frames/sdk__react__bench__games__tones__edit/299.png","png_sha256":"5e49c881191abfa64f4d49ce7f871307a87e8e7b2cb0512318d6b7e33ce054e3","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/edit.tsx","id":"chaser","frame":0,"why":"first","frames":3600,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__edit/0.png","png_sha256":"2623f97ca8dcb9ce219c169007ce837d7fe85f4011d5418ada18799d98f1bbec","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/edit.tsx","id":"chaser","frame":1799,"why":"middle","frames":3600,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__edit/1799.png","png_sha256":"36c50b421d6711456d66a0b0d5eddbeffb8a5e6404d70bde4ff5abd10d6f6c2c","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/edit.tsx","id":"chaser","frame":3599,"why":"last","frames":3600,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__edit/3599.png","png_sha256":"36c50b421d6711456d66a0b0d5eddbeffb8a5e6404d70bde4ff5abd10d6f6c2c","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":0,"why":"first","frames":360,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/0.png","png_sha256":"2623f97ca8dcb9ce219c169007ce837d7fe85f4011d5418ada18799d98f1bbec","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":179,"why":"middle","frames":360,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/179.png","png_sha256":"f4f3b8ae158fb5e2e7b769b3da0b6c351348a42c99b0b7d05123cef7735f088e","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":359,"why":"last","frames":360,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/359.png","png_sha256":"3fefd7b761c72440fb55214e0a44e6c793d09b384561db12601f504c01daf2bb","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":134,"why":"text","frames":360,"probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/134.png","png_sha256":"24226e2655192bab8b46a43020d53179b88dc3137873c5c6cf558901332c2335","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/playtest/fixtures/ledge-fixed/edit.tsx","id":"edit","frame":0,"why":"first","frames":36000,"probed":true,"file":"frames/sdk__react__bench__playtest__fixtures__ledge-fixed__edit/0.png","png_sha256":"ca0cbe45ab6436a3190ab79e79a2b514be2eb8bfd13fddd327d286a26de3ffbc","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/playtest/fixtures/ledge-fixed/edit.tsx","id":"edit","frame":17999,"why":"middle","frames":36000,"probed":true,"file":"frames/sdk__react__bench__playtest__fixtures__ledge-fixed__edit/17999.png","png_sha256":"8a8e067208fa5c0e3b51c61356323aecc049299d415c1d3bf68e63bce261cfea","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/playtest/fixtures/ledge-fixed/edit.tsx","id":"edit","frame":35999,"why":"last","frames":36000,"probed":true,"file":"frames/sdk__react__bench__playtest__fixtures__ledge-fixed__edit/35999.png","png_sha256":"52c9b0d385421b6d4a5283f5e62dbde6396879a1acb01f4cea4b04c05e89f465","sha256":"bcdfa860b9e3b725ebe2ee0cb04285637aa8e3a4f76c6b94547a0f923a69a634","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-bcdfa860b9e3/raea-motion","page":"bevy","recaptured":"10-23 bevy_ui page: Chrome draws border-radius 450px 450px 0 0 on a 900 px box as a dome (the radii sum to the width, no scaling); Blitz flattened the tops"}
{"composition":"sdk/react/bench/speech/game/edit.tsx","id":"narrator","frame":0,"why":"first","frames":2400,"probed":true,"file":"frames/sdk__react__bench__speech__game__edit/0.png","png_sha256":"c29772453737f35be4191bf1765dd6e64c3f7cbdaebf6c5c4b9f12cf68c8b62a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/speech/game/edit.tsx","id":"narrator","frame":1199,"why":"middle","frames":2400,"probed":true,"file":"frames/sdk__react__bench__speech__game__edit/1199.png","png_sha256":"d1247d12ba7c368a7abc34dd42e145e052d1bc8fb72f5745fb8d645e30ca8e0c","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/speech/game/edit.tsx","id":"narrator","frame":2399,"why":"last","frames":2400,"probed":true,"file":"frames/sdk__react__bench__speech__game__edit/2399.png","png_sha256":"7ee5dad7c28bec7d8067ef5f5c8b16e36c6175cf9bf42cacee7e19f393050d09","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/speech/game/quiet.tsx","id":"quiet","frame":0,"why":"first","frames":2400,"probed":true,"file":"frames/sdk__react__bench__speech__game__quiet/0.png","png_sha256":"c29772453737f35be4191bf1765dd6e64c3f7cbdaebf6c5c4b9f12cf68c8b62a","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/speech/game/quiet.tsx","id":"quiet","frame":1199,"why":"middle","frames":2400,"probed":true,"file":"frames/sdk__react__bench__speech__game__quiet/1199.png","png_sha256":"bae8e02090a7a0307edbb90593a1a7a1499bcb264a66a1f7a036ab58c8d89c95","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/speech/game/quiet.tsx","id":"quiet","frame":2399,"why":"last","frames":2400,"probed":true,"file":"frames/sdk__react__bench__speech__game__quiet/2399.png","png_sha256":"7ee5dad7c28bec7d8067ef5f5c8b16e36c6175cf9bf42cacee7e19f393050d09","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":0,"why":"first","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/0.png","png_sha256":"19a772ab65cc744ee80eea4a761d3aa2fc3db24a0a411e7d08b4a77879ea46dc","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":299,"why":"middle","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/299.png","png_sha256":"60f79e7103d85b35261929c5323304e847b5920bd0270d6212d194017aed83e7","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":599,"why":"last","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/599.png","png_sha256":"ac6b188ecbd98365570d9194ef28596b941341e68a1c55b2f85ffc09eea52541","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":224,"why":"text","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/224.png","png_sha256":"578803dcbf0da509cc92d93b02f05fb914cd62eec7b210b4f4f0d61eb626d192","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/solids/edit.tsx","id":"edit","frame":0,"why":"first","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__solids__edit/0.png","png_sha256":"2c44b625431a13bcc56ed047fa94755e0c2520e46a42dcd164ed8683249a04ff","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/solids/edit.tsx","id":"edit","frame":299,"why":"middle","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__solids__edit/299.png","png_sha256":"67868806ee3984ad0cb952291dcc2b5f7a2f4c6f3e7d2792686000a954bd222c","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/solids/edit.tsx","id":"edit","frame":599,"why":"last","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__solids__edit/599.png","png_sha256":"d301f07881996c7c382f447aa3a3982691f8c71e64da66478a8954106028f4d0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/titles/edit.tsx","id":"edit","frame":0,"why":"first","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__titles__edit/0.png","png_sha256":"0402dc02c726875eac23b650e06c7d37a03dbae9f88e99d12cdd627553c42081","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/titles/edit.tsx","id":"edit","frame":299,"why":"middle","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__titles__edit/299.png","png_sha256":"3d1f33dbaab66ce9771517acfb7b65322a8193a74c44e4324b8be2c5ca040547","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/timelines/titles/edit.tsx","id":"edit","frame":599,"why":"last","frames":600,"probed":true,"file":"frames/sdk__react__bench__timelines__titles__edit/599.png","png_sha256":"eef2532499ef56e0ea5e4b68e1093cfb82d8c3ac7c9d660496d6e417751fd716","sha256":"ec93ea774e5e9122e0ed0c1ab526731c1b30966a4fe919001db105853f68e3a9","binary":"~/Library/Caches/raea/p26-baseline/bin-bevy-ec93ea774e5e/raea-motion","page":"blitz","recaptured":"10-24 Blitz page: NV12-era reference: the Blitz page read back through NV12 (RAEA_READBACK=nv12, as it was taken) scores >= 0.98 against it; stills are RGBA since 3c7d15cf"}
{"composition":"sdk/react/bench/games/music/edit.tsx","id":"music","frame":0,"why":"first","frames":240,"probed":true,"file":"frames/sdk__react__bench__games__music__edit/0.png","png_sha256":"d42bd7553602f1b3b5ca8b39f0d8da431891ef2b6cf1e1bf042e94cf6bd795a0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/music/edit.tsx","id":"music","frame":119,"why":"middle","frames":240,"probed":true,"file":"frames/sdk__react__bench__games__music__edit/119.png","png_sha256":"d42bd7553602f1b3b5ca8b39f0d8da431891ef2b6cf1e1bf042e94cf6bd795a0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/music/edit.tsx","id":"music","frame":239,"why":"last","frames":240,"probed":true,"file":"frames/sdk__react__bench__games__music__edit/239.png","png_sha256":"d42bd7553602f1b3b5ca8b39f0d8da431891ef2b6cf1e1bf042e94cf6bd795a0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/room3d/edit.tsx","id":"edit","frame":0,"why":"first","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__room3d__edit/0.png","png_sha256":"6b7d880059a56f8f4b048295d863ae219eeaad366d5040f9dc4b3299892caa07","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/room3d/edit.tsx","id":"edit","frame":3599,"why":"middle","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__room3d__edit/3599.png","png_sha256":"3f6b89fe9f6c393053403f11b4598068f6f7597a4c551b0bf1a555cbc76fddb0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/room3d/edit.tsx","id":"edit","frame":7199,"why":"last","frames":7200,"probed":true,"file":"frames/sdk__react__bench__games__room3d__edit/7199.png","png_sha256":"b3943831a1766d741a8f8abe4bb942ccde80ea4213fe871b0c5523f5dfd66cf8","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/seedling/edit.tsx","id":"edit","frame":0,"why":"first","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__seedling__edit/0.png","png_sha256":"ce53a84b1b9976516c61e056bfe8ed9b3248a9c960af399d60f1512cda032caf","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/seedling/edit.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__seedling__edit/2333.png","png_sha256":"ec07c6aa52b4f5c3283731d95c71653d88f59be3f558019e0caf01f7c9c596ba","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/games/seedling/edit.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"probed":true,"file":"frames/sdk__react__bench__games__seedling__edit/4667.png","png_sha256":"ec07c6aa52b4f5c3283731d95c71653d88f59be3f558019e0caf01f7c9c596ba","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/game/edit.tsx","id":"game","frame":0,"why":"first","frames":300,"probed":true,"file":"frames/sdk__react__bench__tone__game__edit/0.png","png_sha256":"a3637c03bcb12caa119c270b828e2b672277c11d15b195b22787a1cb11551b34","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/game/edit.tsx","id":"game","frame":149,"why":"middle","frames":300,"probed":true,"file":"frames/sdk__react__bench__tone__game__edit/149.png","png_sha256":"67d431098e50189ab90bc711670af37cd741028d845f246ce68867cfb2ce2a32","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/game/edit.tsx","id":"game","frame":299,"why":"last","frames":300,"probed":true,"file":"frames/sdk__react__bench__tone__game__edit/299.png","png_sha256":"d2b280eae5a62c0ab11d3c94d7ba7acab3a95e0f4ec1fd9c89e5c9b95e8f6687","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/gaps/edit.tsx","id":"gaps","frame":0,"why":"first","frames":240,"probed":true,"file":"frames/sdk__react__bench__tone__gaps__edit/0.png","png_sha256":"d6575a94e3e89f717769ecf10515e40fe950cbaca2dc8ed0b2928e62a5e417f5","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/gaps/edit.tsx","id":"gaps","frame":119,"why":"middle","frames":240,"probed":true,"file":"frames/sdk__react__bench__tone__gaps__edit/119.png","png_sha256":"a2a85a1891ddf2c424ee8b3538a9389cb6958d361b796aca97ae32164bc4d3e4","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/gaps/edit.tsx","id":"gaps","frame":239,"why":"last","frames":240,"probed":true,"file":"frames/sdk__react__bench__tone__gaps__edit/239.png","png_sha256":"88cd73071d5d234d35fa6ed43c5d70f1712febd6ec257d450d8aac33fcecfd8f","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/song/edit.tsx","id":"song","frame":0,"why":"first","frames":480,"probed":true,"file":"frames/sdk__react__bench__tone__song__edit/0.png","png_sha256":"b9ffaf213bf21fdd2d393a6057bc44283b6b47e993ac6392e8976a4ec7b9bbf0","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/song/edit.tsx","id":"song","frame":239,"why":"middle","frames":480,"probed":true,"file":"frames/sdk__react__bench__tone__song__edit/239.png","png_sha256":"628d6c367b8aef7b0768e515cba4bf2425486b5a1ee944f3021c9862e1c624b2","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/song/edit.tsx","id":"song","frame":479,"why":"last","frames":480,"probed":true,"file":"frames/sdk__react__bench__tone__song__edit/479.png","png_sha256":"75537b0ee0a351dba23908a10beb4ca5ef534bfb09dd7e122133d203da598fac","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/tokensynth/edit.tsx","id":"tokensynth","frame":0,"why":"first","frames":330,"probed":true,"file":"frames/sdk__react__bench__tone__tokensynth__edit/0.png","png_sha256":"144e07ff1de22a93de7c129924a01d5ef832b2a79d904dc1205ed277f34f32ea","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/tokensynth/edit.tsx","id":"tokensynth","frame":164,"why":"middle","frames":330,"probed":true,"file":"frames/sdk__react__bench__tone__tokensynth__edit/164.png","png_sha256":"144e07ff1de22a93de7c129924a01d5ef832b2a79d904dc1205ed277f34f32ea","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/react/bench/tone/tokensynth/edit.tsx","id":"tokensynth","frame":329,"why":"last","frames":330,"probed":true,"file":"frames/sdk__react__bench__tone__tokensynth__edit/329.png","png_sha256":"144e07ff1de22a93de7c129924a01d5ef832b2a79d904dc1205ed277f34f32ea","sha256":"db30cf97dca8f78486df47c6fb042372ecb4d920d577227d14eb3aea35dc581c","binary":"~/Library/Caches/raea/p26-baseline/bin/raea-motion","page":""}
{"composition":"sdk/raea/bench/bevy/materials/edit.tsx","id":"materials","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__materials__edit/0.png","png_sha256":"1a68e466945d1c859ed3b5d06e3012680493c0d7a45c3f75ed9e5bbbec228d2d","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/materials/edit.tsx","id":"materials","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__materials__edit/29.png","png_sha256":"3297cf517b6fe62df98f5c50faa353c9a58e9f57fa11dd300641bb6aacdd3f45","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/materials/edit.tsx","id":"materials","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__materials__edit/59.png","png_sha256":"ca22af5da18b44664643624e8b84c616c25be864d174384e5e2febcd28b6e512","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/volumetric-grid/edit.tsx","id":"volumetric-grid","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-grid__edit/0.png","png_sha256":"a6b80976e0afe78e76e225d06b5a63406a5eef783d643b71188089b4cd2dbd04","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/volumetric-grid/edit.tsx","id":"volumetric-grid","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-grid__edit/29.png","png_sha256":"90ce5ad82bf2b2645aede9779dc4602365fe91c60286ccad18abc94d864a59f1","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/volumetric-grid/edit.tsx","id":"volumetric-grid","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-grid__edit/59.png","png_sha256":"096c8c161b972da6929a3fc459635d6cced503a431a59ffaaac777bf409faf4c","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/volumetric-froxel/edit.tsx","id":"volumetric-froxel","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-froxel__edit/0.png","png_sha256":"6c51c3b19104c9fb61c6381ecd84e9a66d1d8fad1e2ba9218beffe6c60a7520b","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/volumetric-froxel/edit.tsx","id":"volumetric-froxel","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-froxel__edit/29.png","png_sha256":"5b51378955fc5084b4246ae9095b7afaf6a4ea26ad54727a1e140cfc2d4c95bb","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/volumetric-froxel/edit.tsx","id":"volumetric-froxel","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__volumetric-froxel__edit/59.png","png_sha256":"9a44050a6a654ccfd35fd4c7ace47740fe9479a3d07b0db968412281e87cca9c","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/layers/edit.tsx","id":"layers","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__layers__edit/0.png","png_sha256":"56a6221520a67416024d5c3c805cd8bb0cfa2f3d20d645e1271f970f55df3360","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/layers/edit.tsx","id":"layers","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__layers__edit/29.png","png_sha256":"9c7043d6757bb644a9f47e5ca0980090d4a28c00a6640030dc6539d0ff13bf74","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"sdk/raea/bench/bevy/layers/edit.tsx","id":"layers","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__motion__bench__bevy__layers__edit/59.png","png_sha256":"219f8fab56dad44f7aadaa9c08b4ed94939a0b084d3bb6f66f1fd968edca2744","sha256":"04500a2b764266729c922911d78b175d723d30a615919fa343bcb32f49d37e9d","binary":"~/Library/Caches/raea/p26-baseline/bin-tree/raea-motion","page":"","recaptured":"pin took page-file stills, fed path is the reference (RAEA_MOTION_3D=files today = pin at 1.000000; pin frames in ~/Library/Caches/raea/p26-baseline/frames-pin)"}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":0,"why":"first","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/0.png","png_sha256":"21c8ebe14e8fb54b7a38d24d8862f26370de8b99148ff280af089a0bf0db1b92","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":299,"why":"middle","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/299.png","png_sha256":"8e74b2c9effadfea3790b1ba8f0889cfe56f86e2620ee1f55d230e86dda63cf0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":599,"why":"last","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/599.png","png_sha256":"e81115dd41ba9b95ca3a96753aec73755d237c3029e8503aa16ed6c554fa2d7d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/animate-twin/edit.tsx","id":"twin","frame":224,"why":"text","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__animate-twin__edit/224.png","png_sha256":"82e6ba49853bb92b68f5978f135712e11180618968b052afff8934e9066ec7e2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/colour/edit.tsx","id":"colour","frame":0,"why":"first","frames":30,"cands":"0,3,7,10,14,18,21,25,29","probed":true,"file":"frames/bench__lightspeed__colour__edit/0.png","png_sha256":"c36efff78cbd0c2b80a27783ac0c2d45e65f0de6d80e88ddc00b09710e8cf2b0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/colour/edit.tsx","id":"colour","frame":14,"why":"middle","frames":30,"cands":"0,3,7,10,14,18,21,25,29","probed":true,"file":"frames/bench__lightspeed__colour__edit/14.png","png_sha256":"c36efff78cbd0c2b80a27783ac0c2d45e65f0de6d80e88ddc00b09710e8cf2b0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/colour/edit.tsx","id":"colour","frame":29,"why":"last","frames":30,"cands":"0,3,7,10,14,18,21,25,29","probed":true,"file":"frames/bench__lightspeed__colour__edit/29.png","png_sha256":"c36efff78cbd0c2b80a27783ac0c2d45e65f0de6d80e88ddc00b09710e8cf2b0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/t3d600/edit.tsx","id":"t3d600","frame":0,"why":"first","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__t3d600__edit/0.png","png_sha256":"2fea9943677409ab9c0dcae88a76ae76c34465cd1e743610c9d7d97b1547ec90","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/t3d600/edit.tsx","id":"t3d600","frame":299,"why":"middle","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__t3d600__edit/299.png","png_sha256":"0e79280e37e4d233dc5a131681a3430fc40d55ae0d23c9986f6a4f072cc0c217","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/lightspeed/t3d600/edit.tsx","id":"t3d600","frame":599,"why":"last","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/bench__lightspeed__t3d600__edit/599.png","png_sha256":"7bbe82404616e849e000b6fe929fc260c1288212c4c18f58a99d75ef92817ae0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/animate3d/edit.tsx","id":"animate3d","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__animate3d__edit/0.png","png_sha256":"a9602f48aa682b3e4ea562121cb069f4df26952ea59bd4e0f19aa03afd03b88b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/animate3d/edit.tsx","id":"animate3d","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__animate3d__edit/29.png","png_sha256":"db02ae2efdac0d783ab99c1ef910c6e9d0f5dd697bf38dd8adea6f988866a3b2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/animate3d/edit.tsx","id":"animate3d","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__animate3d__edit/59.png","png_sha256":"40a2b1e14fe48a4b984ebc1ab2bf6c46cdecb62be767d79fbec4c51df0c8a797","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/character/edit.tsx","id":"character","frame":0,"why":"first","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/sdk__raea__bench__bevy__character__edit/0.png","png_sha256":"e3ac26487017e215f1244960f0d21ed8bc9da48e64c934c2f5777ae7dc608026","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/character/edit.tsx","id":"character","frame":44,"why":"middle","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/sdk__raea__bench__bevy__character__edit/44.png","png_sha256":"edf1930766954b5b22932cd02ad9a51dbec56d9704f1a5e19ffb73f2731ae4cc","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/character/edit.tsx","id":"character","frame":89,"why":"last","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/sdk__raea__bench__bevy__character__edit/89.png","png_sha256":"41803e92745e7828e9b0deab2c46a1720899e77b93e74b7228f901cf4eca4725","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/cinema/edit.tsx","id":"cinema","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__cinema__edit/0.png","png_sha256":"f41e17f38cccdfdd52402db06ed4c51e0b5f315b2fda49d2551bbfd7ad66aa7b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/cinema/edit.tsx","id":"cinema","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__cinema__edit/29.png","png_sha256":"4406e9689b7cd47b8f74c7c08c41d24f255e044b2f41dae3fafeb8dc63f52f20","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/cinema/edit.tsx","id":"cinema","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__cinema__edit/59.png","png_sha256":"ad5c31cf97f745b30fa2e041fb0b73a706ccdd25dd244be0f07d13306edc8d8b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/classbg/edit.tsx","id":"classbg","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__classbg__edit/0.png","png_sha256":"84b65cd613a9dc8f46a67167ed66955659f137d1e66d8dd03d16f6e7ab3ff547","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/classbg/edit.tsx","id":"classbg","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__classbg__edit/29.png","png_sha256":"a822247f2affc388677f05427c8bc1296a8536f54c2cabb2b8c76e774c47a5c5","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/classbg/edit.tsx","id":"classbg","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__classbg__edit/59.png","png_sha256":"5d0e2bd610e9df5fbbffcf3de594392e02a7353bcf572c7a48022bd6c224edb7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/datamaps/edit.tsx","id":"datamaps","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__datamaps__edit/0.png","png_sha256":"39c7d80256c8e2700b83db1982d24d77bcc2e17c80602edc6ce4be48051d3585","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/datamaps/edit.tsx","id":"datamaps","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__datamaps__edit/29.png","png_sha256":"a3403ceef52b4438a949cf6bd80ef08d43f48bc2ef492b81ce22dd5fa292fe94","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/datamaps/edit.tsx","id":"datamaps","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__datamaps__edit/59.png","png_sha256":"2dc8451235c81e24c181d3004acd85c4d78104580a30bc66d539e89d20122fcb","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/environment/edit.tsx","id":"environment","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__environment__edit/0.png","png_sha256":"1554ed5163753d80500d3e692628d329c1ba8e7cca3a1c78a209e6eeec98ac92","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/environment/edit.tsx","id":"environment","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__environment__edit/29.png","png_sha256":"fefc8d37ae45850b3e14b096bc2c1da74012fed3c722fbc10e80af2a07b8813e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/environment/edit.tsx","id":"environment","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__environment__edit/59.png","png_sha256":"153b4062d2271d22ae57dcfe590597149075877b117ef1f882a04a3a7669b3e0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/fire/edit.tsx","id":"fire","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__fire__edit/0.png","png_sha256":"ad3ac6feb11448a91083d157d188c09ec1fe9891f393ba8490f387e8ecfa1fe3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/fire/edit.tsx","id":"fire","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__fire__edit/29.png","png_sha256":"d34ae6ab3385e7fbec418aa885b038d9817b1a322bb825caf87517ca60b55056","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/fire/edit.tsx","id":"fire","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__fire__edit/59.png","png_sha256":"fc611a4823864030a6e590b59d4f3e725c66394aeab9ce7c9c092602b55cda17","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/layers/edit.tsx","id":"layers","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__layers__edit/0.png","png_sha256":"2a80a70d8549ae91f268c2226ab352f6a2e6cc2ac0db33f1dbfd3dab0f772b1e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/layers/edit.tsx","id":"layers","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__layers__edit/29.png","png_sha256":"a9793878b026833a5e4516da92c5598b18747e1feaa7fcb88d5d15f34cf4040c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/layers/edit.tsx","id":"layers","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__layers__edit/59.png","png_sha256":"143535ea620c7381c55f3a7fb832777f2fa863cf5d4d2019d5a299947ac40e7c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/lens/edit.tsx","id":"lens","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__lens__edit/0.png","png_sha256":"a77adcf18b31a63ad45f67c277f6b4ab11f7323782cd1ab825f3686ea10f8717","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/lens/edit.tsx","id":"lens","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__lens__edit/29.png","png_sha256":"d75258e5db22e981c905bc922347af964aad5c48eb2e7f073de249f70be5463d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/lens/edit.tsx","id":"lens","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__lens__edit/59.png","png_sha256":"d3f871d75e020ef06e389b19d1355f888cc1bcbc5f9f5eef54d7496243d0c61e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/materials/edit.tsx","id":"materials","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__materials__edit/0.png","png_sha256":"c6358b9a625b0ff46953d8c62eb88d122fe08074c4db886e1a3a4f410ae5fee9","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/materials/edit.tsx","id":"materials","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__materials__edit/29.png","png_sha256":"07a12d99285a0a784b86dcd0ecb378c8c0ab41327eb3a784583107bbc8d7ce6d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/materials/edit.tsx","id":"materials","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__materials__edit/59.png","png_sha256":"ba65f41fa1f107bd533cea4291e8a48a4cced7e326b8b36c478e140b011a29d9","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/model/edit.tsx","id":"model","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__model__edit/0.png","png_sha256":"d5834687d8768cf98ed9be6129a607518cacc68fda5a8f3b8aca4917e88db4db","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/model/edit.tsx","id":"model","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__model__edit/29.png","png_sha256":"32e86e4a58b7914517b686d9f2af039fb9500b0140ee374f4a140766ab894601","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/model/edit.tsx","id":"model","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__model__edit/59.png","png_sha256":"32e86e4a58b7914517b686d9f2af039fb9500b0140ee374f4a140766ab894601","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/paint/edit.tsx","id":"paint","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__paint__edit/0.png","png_sha256":"59d7c48bcccf4f6dd3e6c05bd4717b1c9cfc362a4400a04593fd760afa21e2fe","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/paint/edit.tsx","id":"paint","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__paint__edit/29.png","png_sha256":"2c4e165ccbca7d6b98aba85382f781a8d1933e94906b2ff47ccbff3f59f67212","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/paint/edit.tsx","id":"paint","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__paint__edit/59.png","png_sha256":"a90693253684b6118d470487fa00e1f0a418535e5416e2557132f6e3aa34e4af","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/planes/edit.tsx","id":"planes","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__planes__edit/0.png","png_sha256":"c8200c024a93118b6585df527ecf11d297783480a342da5c461c6ca0b886d6de","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/planes/edit.tsx","id":"planes","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__planes__edit/29.png","png_sha256":"7c8309d8f3bdf487523ada4a9e8e464ad7f9dadcd0edfea6972866f24050b0aa","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/planes/edit.tsx","id":"planes","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__planes__edit/59.png","png_sha256":"901c3afd7712dc6b7b322cda69139d0e7de203e7b965cade836e89e4fe16fca7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/shadows/edit.tsx","id":"shadows","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__shadows__edit/0.png","png_sha256":"c5a34abb07c3f470b05368a52408a92d83155b5419c684ac4f31d1a0c8002dc4","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/shadows/edit.tsx","id":"shadows","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__shadows__edit/29.png","png_sha256":"ce61a6525e6ac54a0feabfe83e58e085e5a6736693edbbabcc045c95161678d0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/shadows/edit.tsx","id":"shadows","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__shadows__edit/59.png","png_sha256":"87ce274cd80abed6b60ca99800c6abe61937fe47d9e87e70054d5c4c9eb36845","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/splat/edit.tsx","id":"splat","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__splat__edit/0.png","png_sha256":"85dd10404a8b1c76d9abc2f2645cb2b66d14a76abcfbfce56d4e0b5333335b02","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/splat/edit.tsx","id":"splat","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__splat__edit/29.png","png_sha256":"0b527bb75fd78fd4ce05d6b17494963205bae9eb8df3bf4dd1057fc4c1803427","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/splat/edit.tsx","id":"splat","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__splat__edit/59.png","png_sha256":"bc411c5745cc0b3c461ac7fec8b4fccd76cdfc1002903dd72bb4fd7c55ce3edb","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/ssao/edit.tsx","id":"ssao","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__ssao__edit/0.png","png_sha256":"9a3621bde00b337f2edbf7b29d8f17fb5d6a5c16c4c9d0a6d7f10c0ce0a09453","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/ssao/edit.tsx","id":"ssao","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__ssao__edit/29.png","png_sha256":"3dabe899cf19dd7ba0291b4007926efe99c39dc09cd18b1ed43827477538207b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/ssao/edit.tsx","id":"ssao","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__ssao__edit/59.png","png_sha256":"e3bd11aebd5d65ace529a6c16b324f356337efaa428e974f104b11894518fdd6","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/studio/edit.tsx","id":"studio","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__studio__edit/0.png","png_sha256":"794b7cd6ca615a25c738a15e1b13f2db91bc441390787adaf4a2db628c0c407d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/studio/edit.tsx","id":"studio","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__studio__edit/29.png","png_sha256":"1b44ed550374b280a915c6e5917669c41cdf1037c80a9b2cd08de8ce85669bbe","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/studio/edit.tsx","id":"studio","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__studio__edit/59.png","png_sha256":"885046302eb896ea084061652a50fd1bf993d9eb05e9cb5d9ad8016e78621d08","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/texmaps/edit.tsx","id":"texmaps","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__texmaps__edit/0.png","png_sha256":"bb6633ba9ce24a78c5fb3b9c8291069f88277a90b7c2804314a513ba08643b60","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/texmaps/edit.tsx","id":"texmaps","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__texmaps__edit/29.png","png_sha256":"1382d17753031b3009698e0ba82ddc91828a702a9175d8c8a06b5523bcc476f1","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/texmaps/edit.tsx","id":"texmaps","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__texmaps__edit/59.png","png_sha256":"801e8fd31e8327e5398457d4984d83737e5771582d61aaa53674fb38afb193e9","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/toon/edit.tsx","id":"toon","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__toon__edit/0.png","png_sha256":"8dc6e6dc8337321acec383ab6ee5f92839f98ddc16a9fe1277ec27ca2a1804b7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/toon/edit.tsx","id":"toon","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__toon__edit/29.png","png_sha256":"9a3e9a1c74637a9a875c99018c5bc01d05a932d5ad5f0039d53adf4704ddc3b4","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/toon/edit.tsx","id":"toon","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__toon__edit/59.png","png_sha256":"ea2b2c00413a5bd90e3c58ba4e497497c7a23397a7e0467dcf641d3bd3956724","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volume-light/edit.tsx","id":"volume-light","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volume-light__edit/0.png","png_sha256":"850ec43a931ceedaf2043a440fc66b622c96ec62c8106513bc4bab210892483e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volume-light/edit.tsx","id":"volume-light","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volume-light__edit/29.png","png_sha256":"6fd1bc8f63c20df5b105ad12250cba8ef472bc1591613f4f66ceb8409e31476a","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volume-light/edit.tsx","id":"volume-light","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volume-light__edit/59.png","png_sha256":"8f78f48222ef06367efd4ecc831b7bf870ad653d2466d46fc37609b9bfcdab3a","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-dither/edit.tsx","id":"volumetric","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-dither__edit/0.png","png_sha256":"68369fe91fd89bc88ac9782e25cbc531a150e76625af0077d7fdb6b718689c09","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-dither/edit.tsx","id":"volumetric","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-dither__edit/29.png","png_sha256":"df43515b33aa00d1dad21483211018658375b1ef55d076b4dced5300abb8f29b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-dither/edit.tsx","id":"volumetric","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-dither__edit/59.png","png_sha256":"7203fd51cb46138885d5b04daf1b39c6345c0ec5a809e2efd713050cfadcda80","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-froxel/edit.tsx","id":"volumetric-froxel","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-froxel__edit/0.png","png_sha256":"1b0028df7aa841122226c7f439f781e558e5f7ca04bde3a0f121b66cc5ced25b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-froxel/edit.tsx","id":"volumetric-froxel","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-froxel__edit/29.png","png_sha256":"9136aaeee9d6b0cee2357e416c6b0eec396ccdc7b5e593414016e1bde6f8aaed","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-froxel/edit.tsx","id":"volumetric-froxel","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-froxel__edit/59.png","png_sha256":"37747ea3de8663a448ef864738c808bd80a06e445ef24c958f9db7e4f2812dc2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-glass/edit.tsx","id":"volumetric-glass","frame":0,"why":"first","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-glass__edit/0.png","png_sha256":"58aeda51fcbccff46900c5251029705b978dbba15fe6541acc0f7d13455f02a7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-glass/edit.tsx","id":"volumetric-glass","frame":44,"why":"middle","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-glass__edit/44.png","png_sha256":"429a492a57ed9ea3c71440bc616c3491c96e0e1e2f03163506dead55a95eb6a0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-glass/edit.tsx","id":"volumetric-glass","frame":89,"why":"last","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-glass__edit/89.png","png_sha256":"5415f26b840f143f311f766fd413ffd51449bfa4c919544a43f2385633180e03","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-grid/edit.tsx","id":"volumetric-grid","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-grid__edit/0.png","png_sha256":"d121bd7bedec3d50d761b8b27ea0094e203382c38f254287c61fe995e27f324a","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-grid/edit.tsx","id":"volumetric-grid","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-grid__edit/29.png","png_sha256":"c97b9888b53a76a1fcdadd00c1a914f5f4621ca3bc9f6aaed801981502521192","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-grid/edit.tsx","id":"volumetric-grid","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-grid__edit/59.png","png_sha256":"39755fc72d46f8998c31886f10f64c4a69fb850d22960a5329a6aad64ef993c2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-half/edit.tsx","id":"volumetric-half","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-half__edit/0.png","png_sha256":"19fc811b7375168d2ca7ea501b454372ca8f9230e8acc8a2050012f9507989bb","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-half/edit.tsx","id":"volumetric-half","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-half__edit/29.png","png_sha256":"392daf6daac99c90d2a9aa61fae194fe0b28e12909558b32810851718f3aef14","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric-half/edit.tsx","id":"volumetric-half","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric-half__edit/59.png","png_sha256":"8922ae5c7a0c9c8d19d0d2a6c2bca4fee458c79ba61bb049e54a5ea4ffb5357d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric/edit.tsx","id":"volumetric","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric__edit/0.png","png_sha256":"c4a7ed8b1e7edf7149d2aeb23b61bbeb03dbf6bb472df4fdfcbcf7b7c7d8157d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric/edit.tsx","id":"volumetric","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric__edit/29.png","png_sha256":"ea48247b3d8af79db03e567290f038718fb94627d7594cf97252a62e09c390bc","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/volumetric/edit.tsx","id":"volumetric","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__volumetric__edit/59.png","png_sha256":"8f666fd0089e54b2987ab9def233b0a4092889ccba652ef3db68d51738bc886d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/01-card-fade/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__01-card-fade__edit/0.png","png_sha256":"e96950295c59987a3cea1a0b05490b4a06a97d6c9979863752d866974d121ae3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/01-card-fade/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__01-card-fade__edit/29.png","png_sha256":"fca09b981467a3c4e11cc610a8b15a2d80d31946a35860260817679a81a8ba76","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/01-card-fade/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__01-card-fade__edit/59.png","png_sha256":"fca09b981467a3c4e11cc610a8b15a2d80d31946a35860260817679a81a8ba76","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__02-sequence-timing__edit/0.png","png_sha256":"848a2ee9ba92b5039ba824d960f8e65efa1a1ce66ebe41849229977111c90294","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__02-sequence-timing__edit/29.png","png_sha256":"848a2ee9ba92b5039ba824d960f8e65efa1a1ce66ebe41849229977111c90294","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__02-sequence-timing__edit/59.png","png_sha256":"8f16e23fcc6fa809fc092c03be62a4dd585d1d9bd86f35f6e23c23a3ab3955e9","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/02-sequence-timing/edit.tsx","id":null,"frame":36,"why":"text","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__02-sequence-timing__edit/36.png","png_sha256":"83a52e53afc02d7ea4d39ad6575f590bde617ebaa0551278213df6ffd42bf2d9","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/04-mesh-sign/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__04-mesh-sign__edit/0.png","png_sha256":"a9f0d4fcd4412ae7315827ea06b7ba7eb0467ee4ef51433dbaf44d10af3ecdf5","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/04-mesh-sign/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__04-mesh-sign__edit/29.png","png_sha256":"74a2640a7110ec4913f2f95a6a1f2aeb559afc89525944ebe794b81092f55c41","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/04-mesh-sign/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__04-mesh-sign__edit/59.png","png_sha256":"f7fdd4e81fdfadc2f5076af63a59c2ef99325d4271c57125c2d1b28f1a0764a7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/05-world-solid/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__05-world-solid__edit/0.png","png_sha256":"a9f0d4fcd4412ae7315827ea06b7ba7eb0467ee4ef51433dbaf44d10af3ecdf5","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/05-world-solid/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__05-world-solid__edit/29.png","png_sha256":"74a2640a7110ec4913f2f95a6a1f2aeb559afc89525944ebe794b81092f55c41","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/05-world-solid/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__05-world-solid__edit/59.png","png_sha256":"f7fdd4e81fdfadc2f5076af63a59c2ef99325d4271c57125c2d1b28f1a0764a7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/06-world-entities/edit.tsx","id":null,"frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__06-world-entities__edit/0.png","png_sha256":"82d948c306806e1ebec09dbd14a60227100f41d5866967edc75d1b9faac82ff1","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/06-world-entities/edit.tsx","id":null,"frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__06-world-entities__edit/29.png","png_sha256":"8708668c0bec939903cd4f5d6968133e83b4a3acc8ca6aa14494c0d702cef67e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/conformance/golden/06-world-entities/edit.tsx","id":null,"frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__conformance__golden__06-world-entities__edit/59.png","png_sha256":"881e6a9102859c8bd7493fad158121cdc708d0c02cb27e580b7980adf2086b70","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/breakout.tsx","id":"breakout3d","frame":0,"why":"first","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/examples__games__breakout/0.png","png_sha256":"77f8e2b4c706ff8e79a6eff585b53c69295f38ea735e7742aee7264ef6a5ffc2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/breakout.tsx","id":"breakout3d","frame":119,"why":"middle","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/examples__games__breakout/119.png","png_sha256":"873e409e9f5e64936b6790f269f1d8bb881e469fc9f6fde65277614837b82d9d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/breakout.tsx","id":"breakout3d","frame":239,"why":"last","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/examples__games__breakout/239.png","png_sha256":"43e9e0c744a0a16112d90554b9b7ae4531d09a309d20975f9f33fd877dbf9498","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/camera-orbit.tsx","id":"orbit","frame":0,"why":"first","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/examples__games__camera-orbit/0.png","png_sha256":"252c55564fe02415cace9470575b129f4ecde94f24c0f9eb51a47d439a2c7d1e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/camera-orbit.tsx","id":"orbit","frame":74,"why":"middle","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/examples__games__camera-orbit/74.png","png_sha256":"4323885d1fc3578b02487789951d39d6834106a6c7cd2c29154d56896937c871","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/camera-orbit.tsx","id":"orbit","frame":149,"why":"last","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/examples__games__camera-orbit/149.png","png_sha256":"16c137693853fade7e5d075ada5c3e5bfbd8b923b2e6f90af061e44ccd6cc909","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/fog-bloom.tsx","id":"fogbloom","frame":0,"why":"first","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/examples__games__fog-bloom/0.png","png_sha256":"75af942ac6fc622df5508f56f888ca7cf3cdeea1fd26519942ef794c140ee6d2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/fog-bloom.tsx","id":"fogbloom","frame":59,"why":"middle","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/examples__games__fog-bloom/59.png","png_sha256":"ab32290fd0ce23d23f8d0dfa7840b23c6aa2530b1a5719a729f9a82a68a687b1","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/fog-bloom.tsx","id":"fogbloom","frame":119,"why":"last","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/examples__games__fog-bloom/119.png","png_sha256":"59a35fd9e663d7277dff7d6dba9c9d0f0628ddda98404a7b30c5722e0f348978","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/lighting.tsx","id":"lighting","frame":0,"why":"first","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/examples__games__lighting/0.png","png_sha256":"7a03f7582e32aeca0f61a9bf8344d46146ee3ae0b87b73482e46dbe7a98aeb75","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/lighting.tsx","id":"lighting","frame":59,"why":"middle","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/examples__games__lighting/59.png","png_sha256":"8878369ce538be83cecdc97d68ae071a06b42a01dd47291f13db7b6dbe117f60","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/lighting.tsx","id":"lighting","frame":119,"why":"last","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/examples__games__lighting/119.png","png_sha256":"465e13bda13439dc748726326d44f70d18f0aa729383a7fe0fac83ce12e96a1b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/pbr.tsx","id":"pbr","frame":0,"why":"first","frames":30,"cands":"0,3,7,10,14,18,21,25,29","probed":true,"file":"frames/examples__games__pbr/0.png","png_sha256":"638714c0957c1aa26fba0b77e147ae9a743f14ff2efdd9273871ff57f4324869","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/pbr.tsx","id":"pbr","frame":14,"why":"middle","frames":30,"cands":"0,3,7,10,14,18,21,25,29","probed":true,"file":"frames/examples__games__pbr/14.png","png_sha256":"638714c0957c1aa26fba0b77e147ae9a743f14ff2efdd9273871ff57f4324869","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/pbr.tsx","id":"pbr","frame":29,"why":"last","frames":30,"cands":"0,3,7,10,14,18,21,25,29","probed":true,"file":"frames/examples__games__pbr/29.png","png_sha256":"638714c0957c1aa26fba0b77e147ae9a743f14ff2efdd9273871ff57f4324869","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/platformer-feel.tsx","id":"platformer","frame":0,"why":"first","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/examples__games__platformer-feel/0.png","png_sha256":"6b196c25b259eb2e5817fc6c66a080c5aa8e50102dc7b6b8030327b42b627892","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/platformer-feel.tsx","id":"platformer","frame":149,"why":"middle","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/examples__games__platformer-feel/149.png","png_sha256":"28ceaebf037104a299a70ce6fd0a9f3c89d7d1be3863d5471a643108a5052dfd","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/platformer-feel.tsx","id":"platformer","frame":299,"why":"last","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/examples__games__platformer-feel/299.png","png_sha256":"5db8a1481fa284db6f8bb53165e50a10a8cc35d7c09889051683dc60813b74c4","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/screenshake.tsx","id":"screenshake","frame":0,"why":"first","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/examples__games__screenshake/0.png","png_sha256":"bbeaa8823cc064167eae70177b55ec52373be34254c7b61234537a4458eff716","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/screenshake.tsx","id":"screenshake","frame":74,"why":"middle","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/examples__games__screenshake/74.png","png_sha256":"72c9b52ece7b32bab79cc665fbddf571e8c8943357ed7b7f432c98af542bfd6d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/screenshake.tsx","id":"screenshake","frame":149,"why":"last","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/examples__games__screenshake/149.png","png_sha256":"bbeaa8823cc064167eae70177b55ec52373be34254c7b61234537a4458eff716","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/shapes.tsx","id":"shapes","frame":0,"why":"first","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/examples__games__shapes/0.png","png_sha256":"a22ee477eafd983991351ba1e4270612e78a60b7de90cfa835a0cdd8550b22d0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/shapes.tsx","id":"shapes","frame":44,"why":"middle","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/examples__games__shapes/44.png","png_sha256":"95cd97972767209db6edd7be09835ca1b464187b600d6af513effd7af2765084","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"examples/games/shapes.tsx","id":"shapes","frame":89,"why":"last","frames":90,"cands":"0,11,22,33,44,55,66,77,89","probed":true,"file":"frames/examples__games__shapes/89.png","png_sha256":"4ec83bd09ef2d6188c558220797f1a10cb01b35878eca4f4c0eb8cedf0be5916","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/box3d/edit.tsx","id":"box3d","frame":0,"why":"first","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__box3d__edit/0.png","png_sha256":"451a4cce1678266330810769e9a72d394f064bcfb46e048462b204ae7c3e7557","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/box3d/edit.tsx","id":"box3d","frame":59,"why":"middle","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__box3d__edit/59.png","png_sha256":"34e26abd010aa3820af31da1aae48739e3dbeba81040f7111a0ad4ba0e2b7807","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/box3d/edit.tsx","id":"box3d","frame":119,"why":"last","frames":120,"cands":"0,14,29,44,59,74,89,104,119","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__box3d__edit/119.png","png_sha256":"e8c7b98e8c32b2c32c40b5961bc7a2ca593b93394240d46c447a963f5619d3f9","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":0,"why":"first","frames":270,"cands":"0,33,67,100,134,168,201,235,269","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/0.png","png_sha256":"285503edcd67b647b465af0369b5323ccb45eb471536ded998e3e2be47b01d58","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":134,"why":"middle","frames":270,"cands":"0,33,67,100,134,168,201,235,269","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/134.png","png_sha256":"0116bb2b0ebf144db34ce8f15d106527494a9e0b0f51ba6aff9268e18786e709","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":269,"why":"last","frames":270,"cands":"0,33,67,100,134,168,201,235,269","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/269.png","png_sha256":"477072e6db6a6380f7ea06a775ac0c663cd1b8b322b752da9a44f0d10723ee03","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/corpus/fixtures/deck/edit.tsx","id":"deck","frame":168,"why":"text","frames":270,"cands":"0,33,67,100,134,168,201,235,269","probed":true,"file":"frames/sdk__react__bench__corpus__fixtures__deck__edit/168.png","png_sha256":"7b0b8b153fb369b904fda01298d4b22954952c5ca0b106a65bdb312c03167332","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/css/anim.tsx","id":"css","frame":0,"why":"first","frames":40,"cands":"0,4,9,14,19,24,29,34,39","probed":true,"file":"frames/sdk__react__bench__css__anim/0.png","png_sha256":"273e028b85bf7a061b4e2a15dc47856fb785c799f7ce8b2df3a797cd56fb539b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/css/anim.tsx","id":"css","frame":19,"why":"middle","frames":40,"cands":"0,4,9,14,19,24,29,34,39","probed":true,"file":"frames/sdk__react__bench__css__anim/19.png","png_sha256":"6a619f7ca9e07eba9b4f6f89f533db04d12ca7613b3dc3fc5d96850263c03e6d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/css/anim.tsx","id":"css","frame":39,"why":"last","frames":40,"cands":"0,4,9,14,19,24,29,34,39","probed":true,"file":"frames/sdk__react__bench__css__anim/39.png","png_sha256":"2cca8cdfc4b73c3fa8993f0b97d55c88d042b2774594dca86328beb31e90082d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/css/svg.tsx","id":"svg","frame":0,"why":"first","frames":1,"cands":"0","probed":true,"file":"frames/sdk__react__bench__css__svg/0.png","png_sha256":"fea2d59d3f60164eb0558866e8c1cb96bba8ae0d05e264adf840d1eedfae4260","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/music/edit.tsx","id":"music","frame":0,"why":"first","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/sdk__react__bench__games__music__edit/0.png","png_sha256":"e839743ff4666c9a9e1131088221ce7fd354dc850a66084414e689cdc6cd60a2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/music/edit.tsx","id":"music","frame":119,"why":"middle","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/sdk__react__bench__games__music__edit/119.png","png_sha256":"e839743ff4666c9a9e1131088221ce7fd354dc850a66084414e689cdc6cd60a2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/music/edit.tsx","id":"music","frame":239,"why":"last","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/sdk__react__bench__games__music__edit/239.png","png_sha256":"e839743ff4666c9a9e1131088221ce7fd354dc850a66084414e689cdc6cd60a2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":0,"why":"first","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/0.png","png_sha256":"68c10d0c421912e7b6169c362c4e3a424847aa411173fe4748ac57fc69df7d5b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":17999,"why":"middle","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/17999.png","png_sha256":"296b4cae34baf287700c5e070ed94cf32d47c8cc040b384fcd792ddafac1ea25","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":35999,"why":"last","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/35999.png","png_sha256":"ef4fcb85d95eb0565f148710c7017d4289a47a219a4b9aad6dc1b185b29a589c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/platformer/edit.tsx","id":"edit","frame":26999,"why":"text","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__games__platformer__edit/26999.png","png_sha256":"f9d51e418220da9fcbed97d6768055d196a02d35d8e9c9162b01fd2321795783","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.stepfold.tsx","id":"edit","frame":0,"why":"first","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit.stepfold/0.png","png_sha256":"564fe64317b8abae9bc593ee47aca81a6790fc8fea2e1fbfdb34e093f6a10add","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.stepfold.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit.stepfold/2333.png","png_sha256":"564fe64317b8abae9bc593ee47aca81a6790fc8fea2e1fbfdb34e093f6a10add","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.stepfold.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit.stepfold/4667.png","png_sha256":"564fe64317b8abae9bc593ee47aca81a6790fc8fea2e1fbfdb34e093f6a10add","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.tsx","id":"edit","frame":0,"why":"first","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit/0.png","png_sha256":"f626986956f24d3963a14ddd78d25a2e0bc00a85649a444fb786305e3e4b6e99","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit/2333.png","png_sha256":"8818a34ba739403c45c34fd010527d3cb1673b5d34cf4c4586b2f03acdd2cce7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit/4667.png","png_sha256":"8818a34ba739403c45c34fd010527d3cb1673b5d34cf4c4586b2f03acdd2cce7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.view.tsx","id":"edit","frame":0,"why":"first","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit.view/0.png","png_sha256":"f0df560cf1e42a2c6c148fbd5b162e43d57d1019974f7326a035cb00c4ad18c2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.view.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit.view/2333.png","png_sha256":"d767b6f4426040764d5338146fc13a00bed333a745749a0d826121a57f0d369f","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/pong/edit.view.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__pong__edit.view/4667.png","png_sha256":"d767b6f4426040764d5338146fc13a00bed333a745749a0d826121a57f0d369f","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/room3d/edit.tsx","id":"edit","frame":0,"why":"first","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__room3d__edit/0.png","png_sha256":"235b417204dfb54a6cb56e8707bb6743c22b8f199a08f4734f62308b067762eb","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/room3d/edit.tsx","id":"edit","frame":3599,"why":"middle","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__room3d__edit/3599.png","png_sha256":"4c8a048cd1a1d3243608eee86643dcbd0e1481f1c8ec03492565d51e7021c256","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/room3d/edit.tsx","id":"edit","frame":7199,"why":"last","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__room3d__edit/7199.png","png_sha256":"ab0fa892005fe085e536ef67b21f1fe808bcbcd393824b249c140a24adef0afa","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/seedling/edit.tsx","id":"edit","frame":0,"why":"first","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__seedling__edit/0.png","png_sha256":"f626986956f24d3963a14ddd78d25a2e0bc00a85649a444fb786305e3e4b6e99","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/seedling/edit.tsx","id":"edit","frame":2333,"why":"middle","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__seedling__edit/2333.png","png_sha256":"8818a34ba739403c45c34fd010527d3cb1673b5d34cf4c4586b2f03acdd2cce7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/seedling/edit.tsx","id":"edit","frame":4667,"why":"last","frames":4668,"cands":"0,583,1166,1750,2333,2916,3500,4083,4667","probed":true,"file":"frames/sdk__react__bench__games__seedling__edit/4667.png","png_sha256":"8818a34ba739403c45c34fd010527d3cb1673b5d34cf4c4586b2f03acdd2cce7","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/tones/edit.tsx","id":"tones","frame":0,"why":"first","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/sdk__react__bench__games__tones__edit/0.png","png_sha256":"5e49c881191abfa64f4d49ce7f871307a87e8e7b2cb0512318d6b7e33ce054e3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/tones/edit.tsx","id":"tones","frame":149,"why":"middle","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/sdk__react__bench__games__tones__edit/149.png","png_sha256":"5e49c881191abfa64f4d49ce7f871307a87e8e7b2cb0512318d6b7e33ce054e3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/tones/edit.tsx","id":"tones","frame":299,"why":"last","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/sdk__react__bench__games__tones__edit/299.png","png_sha256":"5e49c881191abfa64f4d49ce7f871307a87e8e7b2cb0512318d6b7e33ce054e3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/edit.tsx","id":"chaser","frame":0,"why":"first","frames":3600,"cands":"0,449,899,1349,1799,2249,2699,3149,3599","probed":true,"file":"frames/sdk__react__bench__ml__chaser__edit/0.png","png_sha256":"9f79e32437288f8eca64206d237121b4413bf8268448b5bebb02c1bfec8a3e54","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/edit.tsx","id":"chaser","frame":1799,"why":"middle","frames":3600,"cands":"0,449,899,1349,1799,2249,2699,3149,3599","probed":true,"file":"frames/sdk__react__bench__ml__chaser__edit/1799.png","png_sha256":"c341f4341e11857edc1993db78ee05880e05f2c12e45b6805fd4b42904816322","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/edit.tsx","id":"chaser","frame":3599,"why":"last","frames":3600,"cands":"0,449,899,1349,1799,2249,2699,3149,3599","probed":true,"file":"frames/sdk__react__bench__ml__chaser__edit/3599.png","png_sha256":"c341f4341e11857edc1993db78ee05880e05f2c12e45b6805fd4b42904816322","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":0,"why":"first","frames":360,"cands":"0,44,89,134,179,224,269,314,359","probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/0.png","png_sha256":"9f79e32437288f8eca64206d237121b4413bf8268448b5bebb02c1bfec8a3e54","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":179,"why":"middle","frames":360,"cands":"0,44,89,134,179,224,269,314,359","probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/179.png","png_sha256":"fc0f6de9ecd5d9ae023b37b0f3624fcdbb48df174ff8c181396ca37d0c5d1a1e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":359,"why":"last","frames":360,"cands":"0,44,89,134,179,224,269,314,359","probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/359.png","png_sha256":"005b06a1a800b223fc9f04008f8147213f4fee6dd615e46a7fe8374d3c72ee6c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/ml/chaser/orbit.tsx","id":"orbit","frame":134,"why":"text","frames":360,"cands":"0,44,89,134,179,224,269,314,359","probed":true,"file":"frames/sdk__react__bench__ml__chaser__orbit/134.png","png_sha256":"3b03dbc86a8c4ebc58839a244a662a13438dcbb3791871e97b288b7b6e3c1329","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/playtest/fixtures/ledge-fixed/edit.tsx","id":"edit","frame":0,"why":"first","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__playtest__fixtures__ledge-fixed__edit/0.png","png_sha256":"500f0bd1d26e71cf1bee8a3501b9e3b072166e8873b7ab730ff0ffdcdfd61239","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/playtest/fixtures/ledge-fixed/edit.tsx","id":"edit","frame":17999,"why":"middle","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__playtest__fixtures__ledge-fixed__edit/17999.png","png_sha256":"b2397a06e4072c697e3c785998967f7667fa6e5d0258fe5b0b435bfca38cea50","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/playtest/fixtures/ledge-fixed/edit.tsx","id":"edit","frame":35999,"why":"last","frames":36000,"cands":"0,4499,8999,13499,17999,22499,26999,31499,35999","probed":true,"file":"frames/sdk__react__bench__playtest__fixtures__ledge-fixed__edit/35999.png","png_sha256":"4221038ba66c94d5a60695d643ed5fa3bb45d8877002a63e151b8b93de5e8ed3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/speech/game/edit.tsx","id":"narrator","frame":0,"why":"first","frames":2400,"cands":"0,299,599,899,1199,1499,1799,2099,2399","probed":true,"file":"frames/sdk__react__bench__speech__game__edit/0.png","png_sha256":"cc588900c095cdab3641e094d9549237d63f3aa7e288ccf18e0e13dc9b19d045","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/speech/game/edit.tsx","id":"narrator","frame":1199,"why":"middle","frames":2400,"cands":"0,299,599,899,1199,1499,1799,2099,2399","probed":true,"file":"frames/sdk__react__bench__speech__game__edit/1199.png","png_sha256":"09033e3d44177a4ec1111450e8a87ffc90afe1c441004d030b3e19a222034978","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/speech/game/edit.tsx","id":"narrator","frame":2399,"why":"last","frames":2400,"cands":"0,299,599,899,1199,1499,1799,2099,2399","probed":true,"file":"frames/sdk__react__bench__speech__game__edit/2399.png","png_sha256":"45844c80ba66de9fe23bd26daaa51ba9a798b09ae9dfe7c2071215b3607f530c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/speech/game/quiet.tsx","id":"quiet","frame":0,"why":"first","frames":2400,"cands":"0,299,599,899,1199,1499,1799,2099,2399","probed":true,"file":"frames/sdk__react__bench__speech__game__quiet/0.png","png_sha256":"cc588900c095cdab3641e094d9549237d63f3aa7e288ccf18e0e13dc9b19d045","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/speech/game/quiet.tsx","id":"quiet","frame":1199,"why":"middle","frames":2400,"cands":"0,299,599,899,1199,1499,1799,2099,2399","probed":true,"file":"frames/sdk__react__bench__speech__game__quiet/1199.png","png_sha256":"557b3429be8a6e31493aae47824909460f2e1eb37b7af66e45b379c04f7a14ad","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/speech/game/quiet.tsx","id":"quiet","frame":2399,"why":"last","frames":2400,"cands":"0,299,599,899,1199,1499,1799,2099,2399","probed":true,"file":"frames/sdk__react__bench__speech__game__quiet/2399.png","png_sha256":"45844c80ba66de9fe23bd26daaa51ba9a798b09ae9dfe7c2071215b3607f530c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":0,"why":"first","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/0.png","png_sha256":"21c8ebe14e8fb54b7a38d24d8862f26370de8b99148ff280af089a0bf0db1b92","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":299,"why":"middle","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/299.png","png_sha256":"8e74b2c9effadfea3790b1ba8f0889cfe56f86e2620ee1f55d230e86dda63cf0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":599,"why":"last","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/599.png","png_sha256":"e81115dd41ba9b95ca3a96753aec73755d237c3029e8503aa16ed6c554fa2d7d","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/animate/edit.tsx","id":"animate","frame":224,"why":"text","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__animate__edit/224.png","png_sha256":"82e6ba49853bb92b68f5978f135712e11180618968b052afff8934e9066ec7e2","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/solids/edit.tsx","id":"edit","frame":0,"why":"first","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__solids__edit/0.png","png_sha256":"2ea10dd099b2e72a01b9a554b527b6ace4450247e952964dd8342d71f294400c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/solids/edit.tsx","id":"edit","frame":299,"why":"middle","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__solids__edit/299.png","png_sha256":"fac78a82a5973d72b10b5722cf0f867bf65f7b653e6f2a1818a69cec9126b642","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/solids/edit.tsx","id":"edit","frame":599,"why":"last","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__solids__edit/599.png","png_sha256":"b4e4607cbac5d3b12608b9cd45ec1de67b5ff72ff5d0cf9721a47c49192e297b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/titles/edit.tsx","id":"edit","frame":0,"why":"first","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__titles__edit/0.png","png_sha256":"6cf86e0f009fe39b1c50982faf99ac254bace2a14802498cfa3ab41f0e7b7c33","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/titles/edit.tsx","id":"edit","frame":299,"why":"middle","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__titles__edit/299.png","png_sha256":"6e7c79386144b4fed9315916c50c2028c27fe6e12dbd820127e9d0cefb990a4a","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/timelines/titles/edit.tsx","id":"edit","frame":599,"why":"last","frames":600,"cands":"0,74,149,224,299,374,449,524,599","probed":true,"file":"frames/sdk__react__bench__timelines__titles__edit/599.png","png_sha256":"add8a3cdf6f795c93df8224d1eb894282309c92f0fc9abe9864b8593277cd643","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/game/edit.tsx","id":"game","frame":0,"why":"first","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/sdk__react__bench__tone__game__edit/0.png","png_sha256":"4e573c011ea683eb5492bc123c66b70907e3d7ed8ded8b9ef42f319fc7c8c58c","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/game/edit.tsx","id":"game","frame":149,"why":"middle","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/sdk__react__bench__tone__game__edit/149.png","png_sha256":"e6bf0761748b11ff29a239ba546a5b18b8fcb19575b9351d997542d4027055bd","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/game/edit.tsx","id":"game","frame":299,"why":"last","frames":300,"cands":"0,37,74,112,149,186,224,261,299","probed":true,"file":"frames/sdk__react__bench__tone__game__edit/299.png","png_sha256":"6b2f39fa332d6b86c0ba9ab90f0f73c0dc9a15cd518bd7d389630f8c78075a7e","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/gaps/edit.tsx","id":"gaps","frame":0,"why":"first","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/sdk__react__bench__tone__gaps__edit/0.png","png_sha256":"58e9294d54197ed1cf004125ba728b8d3a0b86acfe473002abcc942b76816693","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/gaps/edit.tsx","id":"gaps","frame":119,"why":"middle","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/sdk__react__bench__tone__gaps__edit/119.png","png_sha256":"ca4ecc5d70c7dda7a2b42c8de1d35f5685f323d4a16065b99e01656d7b04042b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/gaps/edit.tsx","id":"gaps","frame":239,"why":"last","frames":240,"cands":"0,29,59,89,119,149,179,209,239","probed":true,"file":"frames/sdk__react__bench__tone__gaps__edit/239.png","png_sha256":"edad52c99523e3e1b88cf1d51179a743086f91f40024b793d24da3d63a6c08a3","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/song/edit.tsx","id":"song","frame":0,"why":"first","frames":480,"cands":"0,59,119,179,239,299,359,419,479","probed":true,"file":"frames/sdk__react__bench__tone__song__edit/0.png","png_sha256":"6524284bacf7373067081018bec11fa293666149295e9a962529fbdbaaf6832f","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/song/edit.tsx","id":"song","frame":239,"why":"middle","frames":480,"cands":"0,59,119,179,239,299,359,419,479","probed":true,"file":"frames/sdk__react__bench__tone__song__edit/239.png","png_sha256":"2ef2b11bd15f723873d4899f26d2cc19557338f6f4070ce4842f70e47ed6a9e0","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/song/edit.tsx","id":"song","frame":479,"why":"last","frames":480,"cands":"0,59,119,179,239,299,359,419,479","probed":true,"file":"frames/sdk__react__bench__tone__song__edit/479.png","png_sha256":"b66b5c50a9613716ecbcb85c52825fb4d2261887bdf6ec7f3630a2836c70f3df","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/tokensynth/edit.tsx","id":"tokensynth","frame":0,"why":"first","frames":330,"cands":"0,41,82,123,164,205,246,287,329","probed":true,"file":"frames/sdk__react__bench__tone__tokensynth__edit/0.png","png_sha256":"b7c23b50b185a03537def64a42fc2a53b16574c6c24c0a2422daf1bde3b93a89","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/tokensynth/edit.tsx","id":"tokensynth","frame":164,"why":"middle","frames":330,"cands":"0,41,82,123,164,205,246,287,329","probed":true,"file":"frames/sdk__react__bench__tone__tokensynth__edit/164.png","png_sha256":"b7c23b50b185a03537def64a42fc2a53b16574c6c24c0a2422daf1bde3b93a89","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/tone/tokensynth/edit.tsx","id":"tokensynth","frame":329,"why":"last","frames":330,"cands":"0,41,82,123,164,205,246,287,329","probed":true,"file":"frames/sdk__react__bench__tone__tokensynth__edit/329.png","png_sha256":"b7c23b50b185a03537def64a42fc2a53b16574c6c24c0a2422daf1bde3b93a89","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/p26-baseline/fixtures/broll.tsx","id":"turn","frame":0,"why":"first","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/bench__p26-baseline__fixtures__broll/0.png","png_sha256":"72201b39698e95599bb3780d5eb19563ee54b2833729fc96b9c80fb7068da6fb","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/p26-baseline/fixtures/broll.tsx","id":"turn","frame":74,"why":"middle","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/bench__p26-baseline__fixtures__broll/74.png","png_sha256":"b8cd6425356c4129dc006aa8645a50470215f7b63ac3443c904d174062e0418b","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"bench/p26-baseline/fixtures/broll.tsx","id":"turn","frame":149,"why":"last","frames":150,"cands":"0,18,37,55,74,93,111,130,149","probed":true,"file":"frames/bench__p26-baseline__fixtures__broll/149.png","png_sha256":"5a7ad302ce5b51ea99dbd598ad0f8a05f6f653e30b8a91c9960db505a8a719a1","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/lights/edit.tsx","id":"lights","frame":0,"why":"first","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__lights__edit/0.png","png_sha256":"dcc1e5da70749dc6eac766fdf2c6637a8d56ecf77086f54e9cedd079be07dfe6","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/lights/edit.tsx","id":"lights","frame":29,"why":"middle","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__lights__edit/29.png","png_sha256":"fdd9d88c1cf143d4978df3a8014e080f4908209ef33e773bdc2d26d9a8735019","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/raea/bench/bevy/lights/edit.tsx","id":"lights","frame":59,"why":"last","frames":60,"cands":"0,7,14,22,29,36,44,51,59","probed":true,"file":"frames/sdk__raea__bench__bevy__lights__edit/59.png","png_sha256":"21e6a972d6709bd0896f9ca5aa039d97b6022a1cd8971d8203ee1337af83c2e4","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":0,"why":"first","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/0.png","png_sha256":"65ae34aeaaaf297572166c67e69dbc92adef34196902f336aae9425432bb6323","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":3599,"why":"middle","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/3599.png","png_sha256":"e187553fe84e81ae8450629ec9d025a6037b7b857fa21d58444030a811899e32","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":7199,"why":"last","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/7199.png","png_sha256":"9c23947bce992c09a75865ff36d7a44a4e6252b7fc0bcf1c42dc1126d2d1f834","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
{"composition":"sdk/react/bench/games/arena3d/edit.tsx","id":"edit","frame":5399,"why":"text","frames":7200,"cands":"0,899,1799,2699,3599,4499,5399,6299,7199","probed":true,"file":"frames/sdk__react__bench__games__arena3d__edit/5399.png","png_sha256":"43a518bc24fe4cc8b22a5a1642dd2b17963f726281cc8b2531e4357c347d7e27","sha256":"e8d3ae930208a97836d6a16b300e8ddb3e480acb44058c50d12e69f028e03faa","binary":"~/Library/Caches/raea/p26-baseline/bin-v0.1.9/raea/bin/raea","page":""}
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
# Two paint bugs, each held to what Chrome draws. Exits 1 on a failure.
# #241 z.html: a stacking context's z-index: -1 child goes under its text. White pixels (the word) must be there:
# before the fix the box covered the word and the frame had none.
# #240 miter.html: a stroked rounded rect under a negative viewBox origin. Nothing blue left of the outline (x 0-60,
# y 84-130: the outline starts at x 92), and the outline's top-left corner is round (dark at its square corner).
# bench/paint-order/check.sh (RAEA_BIN: the raea to run, default target/release/raea)
cd "$(dirname "$0")/../.." || exit 2
BIN=${RAEA_BIN:-$PWD/target/release/raea}
export RAEA_SIGN=0 RAEA_MARK=0 RAEA_EXPORT_CACHE=0
OUT=$(mktemp -d "${TMPDIR:-/tmp}/raea-paint-order.XXXXXX")
trap 'rm -rf "${OUT:?}"' EXIT
status=0
for p in z miter; do
"$BIN" render "bench/paint-order/$p.html" -o "$OUT/$p.png" > "$OUT/$p.log" 2>&1 || { echo "FAIL render $p (log below)"; sed 's/^/ /' "$OUT/$p.log"; exit 1; }
done
# how many pixels of a region are near a colour
count() { magick "$OUT/$1.png" -alpha off -crop "$2" +repage -fuzz "${4:-6}%" -fill black +opaque "$3" -fill white -opaque "$3" -colorspace Gray -format "%[fx:int(mean*w*h+0.5)]" info:; }
white=$(count z 600x300+0+0 "#ffffff")
(( white > 2000 )) || { echo "FAIL #241: $white white pixels, the word is under its z-index: -1 child"; status=1; }
box=$(count z 600x300+0+0 "#10203C" 3)
(( box > 3000 )) || { echo "FAIL #241: $box pixels of the box behind the word"; status=1; }
bar=$(count miter 60x46+0+84 "#3c82f0")
(( bar == 0 )) || { echo "FAIL #240: $bar blue pixels left of the outline (the miter join's bar)"; status=1; }
corner=$(count miter 6x6+91+99 "#3c82f0")
(( corner == 0 )) || { echo "FAIL #240: the outline's top-left corner is square ($corner blue pixels at its corner)"; status=1; }
edge=$(count miter 200x6+400+97 "#3c82f0")
(( edge > 300 )) || { echo "FAIL #240: the outline's top edge isn't drawn ($edge pixels)"; status=1; }
[ $status = 0 ] && echo "PASS paint order: #241 text over a negative z-index child, #240 a miter join after an arc"
exit $status
+7
View File
@@ -0,0 +1,7 @@
<!doctype html>
<!-- #240: a thin rounded outline, nothing left of it (896 wide under a viewBox that starts at -20 drew a bar from x=0) -->
<html><body style="margin:0;background:#111">
<div data-composition-id="main" data-start="0" data-duration="1" data-width="1080" data-height="600" style="position:relative;width:1080px;height:600px;background:#111">
<svg width="936" height="440" viewBox="-20 -20 936 440" style="position:absolute;left:72px;top:80px"><rect x="0" y="0" width="896" height="400" rx="24" fill="none" stroke="#3c82f0" stroke-width="3"/></svg>
</div>
</body></html>
+7
View File
@@ -0,0 +1,7 @@
<!doctype html>
<!-- #241: white "Hollow" over a blue box that is its own z-index: -1 child -->
<html><body style="margin:0;background:#111">
<div data-composition-id="main" data-start="0" data-duration="1" data-width="600" data-height="300" style="position:relative;width:600px;height:300px;background:#111;display:flex;align-items:center;justify-content:center">
<span style="position:relative;display:inline-block;z-index:1;color:#fff;font:700 80px sans-serif"><div style="position:absolute;inset:0;z-index:-1;background:#10203C;border:3px solid #3474D6"></div>Hollow</span>
</div>
</body></html>
+2
View File
@@ -9,5 +9,7 @@ description = "Questions for the decision model (clef-omni): their types, how an
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# a file's ident (ident.rs), the one the ledger keeps
sha2 = "0.10"
# the TypeScript declarations are generated from these types, so the two can't drift
ts-rs = "12"
+20
View File
@@ -0,0 +1,20 @@
[
{"id": "make.clay.floating", "ask": "These are grey clay renders of one 3D scene or prop from several cameras. Does any object float above the surface it should rest on, with a visible gap under it?", "sees": "stills", "hears": false, "label_words": ["floating", "floats", "hovering", "gap under"], "fix": "settle it onto what's under it at its contact points (raea scene lint gives the dy)"},
{"id": "make.clay.intersecting", "ask": "These are grey clay renders of one 3D scene or prop from several cameras. Does any object pass through another object, a wall or the floor?", "sees": "stills", "hears": false, "label_words": ["intersecting", "passes through", "clipping", "poking through"], "fix": "move it clear (raea scene lint names the pair and the depth)"},
{"id": "make.clay.blobby", "ask": "These are grey clay renders. Is any object a blobby, melted or lumpy shape where the real thing has crisp form?", "sees": "stills", "hears": false, "label_words": ["blobby", "melted", "lumpy", "mushy"], "fix": "regenerate it from a cleaner reference, or pick the other generator"},
{"id": "make.clay.stand_in", "ask": "These are grey clay renders. Is any object just a plain box, ball or cylinder standing in for a more detailed real thing?", "sees": "stills", "hears": false, "label_words": ["placeholder", "stand-in", "just a box", "primitive"], "fix": "build or generate the real thing"},
{"id": "make.clay.disconnected", "ask": "These are grey clay renders. Is any object made of parts that don't connect: a handle, a leg or a lid hanging in the air beside the body it belongs to?", "sees": "stills", "hears": false, "label_words": ["disconnected", "detached", "not attached", "hanging in the air"], "fix": "regenerate it, or join the parts by script and check it again"},
{"id": "make.clay.clones", "ask": "These are grey clay renders. Are several copies of one thing identical and evenly spaced in an obviously artificial way?", "sees": "stills", "hears": false, "label_words": ["clones", "identical", "copy paste", "repeated"], "fix": "vary each copy's rotation, scale and wear, or swap some for siblings"},
{"id": "make.colour.flat_colour", "ask": "These are renders of one 3D scene or prop from several cameras. Is any large surface a flat, uniform default colour with no texture, variation or wear?", "sees": "stills", "hears": false, "label_words": ["flat colour", "flat color", "untextured", "default grey"], "fix": "give it its real material, with wear where use puts it"},
{"id": "make.colour.plastic", "ask": "These are renders of one 3D scene or prop. Do the surfaces look like shiny uniform plastic or CG rather than their real materials?", "sees": "stills", "hears": false, "label_words": ["plastic", "cg", "fake", "shiny"], "fix": "roughness and colour variation from real material maps; no uniform gloss"},
{"id": "make.colour.opaque_glass", "ask": "These are renders of one 3D scene or prop. Is anything that should be glass (a window, a bottle, a lens, a screen cover) solid and opaque instead of see-through?", "sees": "stills", "hears": false, "label_words": ["opaque glass", "glass isn't", "not see-through", "solid glass"], "fix": "mask the glass by colour and make it transmissive, keeping labels opaque"},
{"id": "make.colour.garbled_text", "ask": "These are renders of one 3D scene or prop. Is any visible text garbled, tiled or unreadable where it should read, such as a hero object's label or a sign?", "sees": "stills", "hears": false, "label_words": ["garbled", "unreadable", "gibberish", "nonsense text"], "fix": "replace the label with real text from one invented maker"},
{"id": "make.colour.brands", "ask": "These are renders of one 3D scene or prop. Is a real brand name or logo visible?", "sees": "stills", "hears": false, "label_words": ["brand", "logo", "trademark"], "fix": "debrand: flatten the logo's texels and normals, or replace it with the invented maker's"},
{"id": "make.colour.too_dark", "ask": "These are renders of one 3D scene. Is the scene so dark that important objects are hard to see?", "sees": "stills", "hears": false, "label_words": ["too dark", "can't see", "underexposed"], "fix": "light it from its own sources; raise exposure"},
{"id": "make.colour.too_bright", "ask": "These are renders of one 3D scene. Is it washed out, with large areas blown to white?", "sees": "stills", "hears": false, "label_words": ["washed out", "blown out", "overexposed", "too bright"], "fix": "lower exposure or the brightest light"},
{"id": "make.refs.outlier", "ask": "This sheet shows reference pictures for one set of props that must belong together. Is any picture in a different style from the others: another era, palette, material, lighting or rendering look?", "sees": "stills", "hears": false, "label_words": ["outlier", "doesn't match", "different style", "off style"], "fix": "regenerate that reference with the style images and the plan's style paragraph"},
{"id": "make.refs.two_objects", "ask": "This sheet shows one reference picture per prop. Does any picture show more than one object, or an object cropped by the edge of its picture?", "sees": "stills", "hears": false, "label_words": ["two objects", "cropped", "cut off", "more than one"], "fix": "regenerate it as one whole object, centred, on a plain background"},
{"id": "make.refs.brands", "ask": "This sheet shows reference pictures for props. Does any picture show a real brand name or logo?", "sees": "stills", "hears": false, "label_words": ["brand", "logo", "trademark"], "fix": "regenerate it with the invented maker named in the prompt"},
{"id": "make.framing.through_wall", "ask": "These are frames of camera moves through a 3D scene. Is the camera inside or passing through a wall, a piece of furniture or another solid, so part of the frame is blocked or cut open?", "sees": "stills", "hears": false, "label_words": ["through the wall", "inside the wall", "clipping", "camera in"], "fix": "move the path's keys clear (raea scene stage --clearance 0.45 names the frames)"},
{"id": "make.framing.subject_lost", "ask": "These are frames of camera moves, each shot's start, middle and end. Does any shot lose its subject: cut off, out of frame or hidden at one of its frames?", "sees": "stills", "hears": false, "label_words": ["lost the subject", "out of frame", "cut off", "can't see the"], "fix": "re-aim the move or retime its keys so the subject stays framed"}
]
+30
View File
@@ -0,0 +1,30 @@
//! What a file is, cheaply: its size and a hash of its first and last MB. The ledger keeps it on every call
//! (apps/ask record.rs), so a render is known again by its copy in the feed, a later render to the same path isn't
//! taken for it, and `raea make status` knows an answer was about exactly the sheet on disk now (docs/make.feature MK4).
use std::io::{Read as _, Seek as _, SeekFrom};
use std::path::Path;
use sha2::{Digest, Sha256};
pub fn ident(path: &Path) -> Option<String> {
const MB: u64 = 1 << 20;
let mut f = std::fs::File::open(path).ok()?;
let len = f.metadata().ok()?.len();
let mut h = Sha256::new();
let mut part = vec![0u8; len.min(MB) as usize];
f.read_exact(&mut part).ok()?;
h.update(&part);
if len > 2 * MB {
f.seek(SeekFrom::Start(len - MB)).ok()?;
f.read_exact(&mut part).ok()?;
h.update(&part);
}
let hex: String = h.finalize().iter().take(16).map(|b| format!("{b:02x}")).collect();
Some(format!("{len}-{hex}"))
}
/// The size an ident names, to pass over files that can't be it without reading them.
pub fn ident_len(ident: &str) -> Option<u64> {
ident.split_once('-')?.0.parse().ok()
}
+1
View File
@@ -2,6 +2,7 @@
//! question and how its answer reads, the sets that come standard, and the model's limits. Its TypeScript declarations
//! are generated from these types (`declarations`): sdk/raea/src/ask.gen.ts, checked by a test.
pub mod ident;
pub mod library;
pub mod limits;
pub mod question;
+6 -3
View File
@@ -1,12 +1,14 @@
//! The questions that come standard (docs/ask.feature AK1), each set named: `rubric` (the craft rubric's own questions,
//! read from sdk/guides/craft/rubric.md, so there's one copy), `av` (picture with sound), `defects` (the fingerprint's
//! axes with no labels yet), `platform` (the check packs' questions with their calibration) and `decide` (picks and
//! comparisons). The JSON sets ship inside raea; the rubric is read from the guide the caller hands in.
//! axes with no labels yet), `platform` (the check packs' questions with their calibration), `decide` (picks and
//! comparisons) and `make` (the review loop's gate questions, asked of a job's sheets: docs/make.feature MK4; each id
//! says its sheet, make.clay.*, make.colour.*, make.refs.*, make.framing.*). The JSON sets ship inside raea; the
//! rubric is read from the guide the caller hands in.
use crate::question::{Kind, Question};
/// Every set, in the order `raea ask list` shows them.
pub const SETS: [&str; 5] = ["rubric", "av", "defects", "platform", "decide"];
pub const SETS: [&str; 6] = ["rubric", "av", "defects", "platform", "decide", "make"];
fn embedded(name: &str) -> Option<&'static str> {
Some(match name {
@@ -14,6 +16,7 @@ fn embedded(name: &str) -> Option<&'static str> {
"defects" => include_str!("../library/defects.json"),
"platform" => include_str!("../library/platform.json"),
"decide" => include_str!("../library/decide.json"),
"make" => include_str!("../library/make.json"),
_ => return None,
})
}
+13
View File
@@ -56,6 +56,16 @@ pub struct Brief {
#[serde(default)]
#[ts(as = "Option<Vec<Agent>>", optional)]
pub agents: Vec<Agent>,
/// the project's stories, imported explicitly (raea/story, docs/story.md): one, or several by name. Kept as written:
/// raea reads nothing in it, the story SDK and the checks that import it do
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(type = "unknown", optional)]
pub story: Option<serde_json::Value>,
/// a scene, kit or shot made to a frozen plan and held to the review loop (docs/make.feature): `scene()`, `kit()`
/// or `shot()` from "raea/brief"; `raea make status` decides when it's done
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub make: Option<crate::make::Make>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)]
@@ -119,5 +129,8 @@ pub fn doctor(b: &Brief) -> Vec<String> {
for a in &b.assumed {
out.push(format!("`{a}` is assumed: confirm it with the person"));
}
if let Some(m) = &b.make {
out.extend(crate::make::doctor(m).into_iter().map(|d| format!("make: {d}")));
}
out
}
Loaded 100 of 629 files, more files were not shown because too many files have changed in this diff. Show more