The Windows fixes since the notes were written (rc10-rc12), in the notes' words, and what Linux needs: a processor
with AVX (the static ONNX Runtime's initializers use it) and glibc 2.39, in the notes' Known and the install page.
Dated the 19th.
rc11's raea.exe stopped before main on a processor without AVX (Intel's SDE as a Goldmont Celeron and as a Nehalem:
"Executed instruction not valid", vmovaps ymm at raea.exe+0x123b5d40). The instruction is in one of seven C++
dynamic initializers in the CRT's table: ctt-etcpak's ETC1 tables (Tables.cpp's g_table_SIMD and the rest, set with
_mm_setr_epi16, which MSVC initializes at run time), from the copy ctt builds with /arch:AVX2. ctt picks an ISA's
copy at run time for its encoders, but every copy's static initializers run at start, on every CPU. With those seven
skipped (a patched rc11), raea.exe --version runs under SDE as both chips.
ctt comes only from Bevy's compressed_image_saver feature (bevy_image's CompressedImageSaver, BC7/ASTC/ETC2 for
Bevy's asset processing), which raea never runs. It's out of the plugin catalog's Bevy features (0.19 and 0.20),
engine/bevy-plugins' generated `bevy` feature (tools/bevy-plugins.sh sync agrees) and engine/render's bevy-all, so
ctt's eight crates, fast_image_resize, ispc-build-utils and zstd leave the lock; NOTICE and LICENSES are
tools/licenses.sh's on main with the change. compressed_image_saver_universal (basis-universal) stays.
macOS 15's JavaScriptCore leaves import.meta.url undefined for a module from raea's Objective-C loader (macOS 27's
sets it), so new URL("./x.png", import.meta.url) threw there. jsengine's tests::jsc, run in CI for the first time by
#169's step, found it on the macos-15 runner. A module that reads import.meta gets `import.meta.url ??= "URL";` on
line 1, before its own first line, so every other line keeps its number and an engine's own URL is left alone.
The matrix's unit tests left out raea-runtime-jsengine, raea-io-soft and raea-io-assets, and tests/node.rs and
io-soft's tests/quality.rs need features (modules, h264), so none of #169's fixes ran in CI.
raea workspace, project and controller failed with "git: program not found" on a PC whose only Git was the app's.
raea_io_assets::git(): $RAEA_GIT, the PATH's, then on Windows the app's (InstallLocation\git), Git for Windows off the
PATH, and raea's own in the tools cache, fetched once (dugite-native, the build the app's host uses, sha256 checked).
Elsewhere it says how to install git. The default root is joined a folder at a time. NOTICE names the fetch, and
FormatJS and CLDR for the Intl commit before this.
raea show asked kill whether the app ran, looked only in /Applications and said it opened files in "the Mac's own
viewer". app.ts asks each system its own way through one Here a test can fake: tasklist and the installer's
InstallLocation (#178) on Windows, Explorer to open files and start the app, raea.desktop and xdg-open on Linux, and one
PowerShell listing to name the harness that ran it. The shell's absolute-path tests take C:\, \\server\share and \
(show.ts absolute/fromCwd). raea brand reads a logo's size from its own header (PNG, GIF, JPEG, WebP, ICO), sips only as
a Mac's fallback, and cutting by words off a Mac says what works there. conformance/app.test.ts fakes each system.
process.platform was Rust's word ("windows", "macos"), so every === "win32" and === "darwin" in the shell was false, on
a Mac too; os.platform() said "darwin" and the arch "arm64" everywhere; there was no process.ppid. path was POSIX only:
resolve(".") named "/C:\Users\...", isAbsolute("C:\x") was false and dirname/basename ignored \. On Windows path
parses drives, shares and \ now and writes /, path.win32 parses them anywhere, and fileURLToPath, pathToFileURL,
createRequire, tmpdir, execSync (cmd) and the module URL (file:///C:/...) follow. tests/node.rs checks each against
Node 22's answer. The arch and parent-pid helpers live in node/os.rs (node.rs was over the size limit).
Its background detection took a dim glow drifting over black for still and copied old blocks forward: 6-8% of dark
blocks stepped in every sampled frame, at any bitrate or quantiser. Off, 0.1%, as a lossless encode of the same frames.
a_dark_glow_drifting_keeps_every_block_at_master asks under 3% (5.3% before, 1.6% now).
QuickJS has no Intl, so toLocaleString or Intl.NumberFormat threw "Intl is not defined" off a Mac. FormatJS's polyfills
(MIT) and the CLDR data they carry (Unicode-3.0) are packed in runtime/jsengine/js/intl.pack (2.2 MB, deflate; js/intl
build.ts, versions pinned), and js/intl/loader.js runs the core the first time anything reads Intl or calls a toLocale*
method, and a locale's data the first time something asks for it, so a script that never formats pays nothing. A small
Collator (letters, then accents, then case) backs localeCompare. quickjs_formats_as_javascriptcore_does: fourteen cases
give JavaScriptCore's answers, and on a Mac it asks JavaScriptCore too. Apple builds are unchanged.
windows-verify checks the zip on a runner with only release-check.sh and lavapipe.sh checked out, and runs
release-check.sh from RUNNER_TEMP; since the Windows bundle it reads release/win-bundle.files beside itself, which
wasn't there, so the step would have stopped on it once rc9's pack step stopped failing. It's checked out and copied
there now.
GitHub's Windows runner checks text files out with CRLF, as the Models step already allows for (tr -d '\r' <
models.tsv), so release.sh looked for "vcruntime140.dll\r" in target/dist, beside the vcruntime140.dll win-bundle.sh
had just put there, and stopped. release.sh and release-check.sh, the list's two readers, now strip it.
wgpu hands DXC a shader module's label as its source's file name, and on Windows LLVM reads "hanabi:shader:utils"
as a root and a file, so DXC said "error reading 'hanabi:shader:utils'" and every Bevy app failed: on a PC where
dxcompiler.dll is on the PATH (wgpu loads it when it can, else FXC), rc8 rendered no 3D at all on DX12 (exit 101 on
an RTX 4070 with WGPU_BACKEND=dx12 and DXC 1.9.2609; the same render passed with FXC). raea export xml's passes were
where the reporter saw it, on a PC whose Intel iGPU puts raea on DX12. Bevy names its modules nothing; hanabi's
utils module and its contract tests' were the only labels with a colon, now underscores.
And an export refuses an alpha codec this machine can't write (ProRes or HEVC off a Mac) when it starts, not after the
reference render: Codec::chosen, which layers, capcut and render_movie share.
0.1.8-rc8 percent-encoded a Windows path whole into <pathurl>: file://localhostD%3A%5CWork%5C... for D:\Work\...,
which DaVinci Resolve refused. The same XML imported at once with file:///D:/Work/... (the reporter's test). A drive's
path is now that, a share's file://nas/clips/..., separators as slashes and the \\?\ prefix off; a Mac's and
Linux's are as before. cargo test -p raea-app-layers passes, with a test of each kind of path.
The page named the bake and the shader but not the eight conditions or weatherAt, which change the weather as a
shot runs (rain soaking a front over minutes and drying over the hour after, snow settling, frost forming).
At 4K on the M5 Pro the corner house renders 17.2 ms a frame plain and 17.2 worn (17.6 and 17.7 again), so the
recipes' per-pixel noise costs nothing a render can see; the bake's four maps hold 36 MB on the GPU, which BC7 would
take to about 9 MB once the class code has a map of its own. WR8 stays open: the detail layers, mips on arrays (with
them) and BC/KTX2 maps with a fallback where BC isn't.
raea-sys-damage kept its debris in seed order with none nearer than a gap, as touch's thin() does for spots, and
found a crack path's bounds with a fold pick.rs also has. touch's rule is now thin_by (any candidate with a place),
which thin_if and damage's debris both use, and the bounds are Aabb::from_points. The same spots come out:
cargo test -p raea-sys-touch -p raea-sys-damage -p raea-sys-weathering pass. Near-duplicate groups back to 58, so
tools/dupes.max goes down to it.
tools/release/win-bundle.sh puts beside raea.exe, each with its licence: Microsoft's Visual C++ runtime
(vcruntime140, vcruntime140_1, msvcp140, msvcp140_1) from the runner's Visual Studio, app-local as Microsoft
documents; raea's LGPL FFmpeg 9.0.2 (tools-ffmpeg-9.0.2-lgpl, libvpx's licence and patent grant beside it); and
uv. Before, raea.exe didn't start without the VC++ Redistributable installed, and a PC that blocks GitHub's downloads
couldn't read a phone's video or set up a local model. Its pins are setup.rs's, so what ships and what raea fetches
where it isn't are the same build: setup.rs now fetches our LGPL zip (sha256 d3a3d8cd...) in place of GyanD's GPL
essentials. release.yml runs it, and release-check.sh refuses a Windows zip whose bin\ lacks a file
win-bundle.files lists, whose FFmpeg isn't the LGPL build, or that has no libvpx-vp9 or h264_mf. NOTICE, the README
and 0.1.8's what's new say so.
Checked on the Windows box with the published zip: LGPL, the libvpx VP8/VP9 decoders and h264_mf listed; a 2 s
H.264 clip with AAC cut by h264_mf at notes check's arguments; an alpha VP9 WebM decoded with its alpha (253,0,0,127);
the filters raea runs (ebur128, freezedetect, signalstats, scale, concat, showwavespic, ...) present.
Neither crate can depend on the other (systems don't reach sideways), so the cubic Hermite ease goes down to
raea-core-ease, the curves crate, and both use it; foliage keeps its name for it (smooth). Behaviour unchanged:
cargo test -p raea-core-ease -p raea-sys-damage -p raea-sys-foliage pass.
Their crates, files, lines and proof: raea-sys-damage and raea/wear's crumbling (WR6), the corner house demo with
worn paint and EX9's deletion (WR7), and weather during a shot with the eight conditions named (WR9). WR8, detail
textures from mask stacks and what they cost, is what's left of raea/wear.
MeshStandardMaterial's wear and raea/pbr's <WearExtension> drew with the engine's own MaterialExtension
(systems/wear). They now write the same shader on the public surface hook (sdk/render/src/worn.ts, WORN_WESL: the
same noise, curvature edges, grime, rust and chips, in the mesh's own space), so wear is an author's shader like any
other and raea/wear's weather and the paint wear share one path. A parity scene (sharp, turned and round parts, every
setting) renders the same as before, RMSE 3.8e-5 of full scale. One change: clay draws custom surface shaders as they
are, so worn paint now shows in a clay render, as a ShaderExtension's does.
Deleted: systems/wear, its WearPlugin, its spawn branch, its mesh-row columns, its layer entries, and its type in
the registry snapshot, bevy.gen.tsx and sdk-coverage (reached 1557 -> 1556: the type is gone; wear is still
authored). wear with shader or grid on one material is refused (it was silently dropped). WearExtension keeps its
props, so the guides are unchanged; it carries no @bevy tag of its own now, since its Bevy type is ShaderExtension's.
raea notes check's sign-off clip and a postmortem's clip were cut with libx264, which only a GPL ffmpeg has:
Homebrew's and Linux distributions' do, and GyanD's Windows build did, but the LGPL build raea now ships on
Windows doesn't. h264() asks ffmpeg -encoders once and takes libx264, else Windows' own Media Foundation encoder
(h264_mf, in raea's LGPL build), else VideoToolbox's, at 8 Mb/s for the system ones; None without one (notes check
says so; a postmortem plays the whole piece, as it did when a cut failed).
The Windows app ships dugite-native's Git for Windows (GPLv2) so a workspace is made on a PC without Git. GPLv2
section 3 asks whoever distributes it to make its complete corresponding source available, and dugite-native's
repository alone isn't that: Git for Windows' MSYS2 runtime, bash, curl, OpenSSH and the rest are built from their
own source packages. git-sources.sh resolves each package the build's etc/package-versions.txt names to the source
package it came from (51: Git for Windows' pacman repository first, MSYS2's source mirror for the rest) and packs
them with the list; tools-git-sources.yml publishes that once as the prerelease tools-git-<tag>-sources, which the
app's git\SOURCE.txt names.
raea ships FFmpeg beside raea.exe on Windows so a PC that can't download it still reads a phone's video. GyanD's
essentials build, which raea fetched until now, is GPLv3 with a dozen GPL libraries linked in; shipping it would
mean shipping all their sources. This build is FFmpeg's own code, zlib and libvpx's decoders (BSD, for alpha
WebM, #113), static, LGPL 2.1 or later, with no capture devices and no network; its H.264 encoder is Windows' own
through Media Foundation (h264_mf), since FFmpeg has none of its own and libx264 is GPL. Its complete source is
FFmpeg's signed tarball, libvpx's tarball and this script. tools-ffmpeg.yml builds it with mingw-w64 (apt reading
Ubuntu's archive, as the runner's own mirror trickled) and publishes it once as a prerelease with that source.
A Berlin corner block made in code (house.ts): a sandstone plinth, a rusticated ground floor, plastered storeys,
sills, a string course, a cornice on consoles under a hipped slate roof, a door in a sandstone surround up granite
steps, an iron balcony, a zinc gutter and downpipe, an enamel street plate on each face of the corner, a cellar
hatch, a brick firewall, the walk and the road. Its openings go through the walls with the glass 15 cm in, so
cracks start at their corners; one glTF material per wear class. make-house.ts writes media/house.glb.
wear.tsx bakes it once and draws it new, after 80 years of a coal-burning city, as a ruin (with the debris its
age leaves lying, in lumps), at its door and its foot up close; each of the 16 causes in false colour; each of
WR9's eight conditions by day and at dusk; and a shower crossing it as a timelapse (weatherAt). Rendered on the
Mac, 0 errors on every still. Its tests (6) check the house's parts, the openings, the .glb and that the demo
lists every cause and condition.
Where a building breaks, by rules over the weathering bake's texels, in a crate of its own (raea-sys-damage 3):
- cracks from the re-entrant corners of a wall's openings: a wall texel is beside one when, of eight probes
across and up the wall, only one diagonal misses it; about half the corners crack (which ones by place, so a
house cracks the same way every bake), each leaving away from the opening, steeper than 45 degrees, 0.35-1.25 m,
wandering. causes3's alpha is each texel's distance to the nearest crack on its own wall.
- the loss potential: how readily a coat comes off at the damp foot, where run-off soaks what the rain doesn't
wash, at a knocked arris low down and along a crack (LOSS; raea/wear's test checks its copy against it).
- debris on the walk under outdoor plaster with a high loss potential, dropped onto the walk from 0.2 m out (none
where a plinth or step is below first, none from a wall the rain never reaches, a room's or a hollow model's
back), each with its potential (spots.json "loss"); touch's old debris rule, which waited for this, is gone
(raea-sys-touch 5). raea-sys-weathering 7 keys on raea-sys-damage's version.
raea/wear draws it by neglect (years less what upkeep keeps up): render lost to the brick 2 cm behind it (drawn
at the view's parallax) under a shadowed lip, paint to red-lead primer and the wood, enamel flaking to rusting
iron, cracks no thinner than a pixel (stepped along brick's joints). What a lived-in house mends however poorly
it is kept (panes, most slates, fallen render on its walk) goes only once it is left empty: abandonOf, neglect
past ABANDON_FROM (0.85) by the house's own upkeep. wearSpots reads spots.json; wearDebris is the debris an age
leaves lying; debug views crack and loss.
WR9: weatherAt eases what lies on the surfaces (wet, snow, driven snow, frost) toward what the sky does, spell by
spell, each at its own rate (WEATHER_RATES, ASSUMED: wet in about 3 minutes, dry over an hour), exactly, so any
frame draws alone; WEAR_CONDITIONS are the eight conditions as weather.
Tests: cargo test -p raea-sys-damage (5: an opening's four corners and no others, cracks along the wall, about
half the corners crack, what loosens a coat, debris under outdoor plaster's foot and on the walk only),
-p raea-sys-weathering (11), -p raea-sys-touch (9); bun test in sdk/wear (22).
wearBake bakes a model's causes once (the native call, now typed), and wearShader draws them as wear by material
class: one WESL function per class (plaster, brick, sandstone, granite, wood, iron, zinc, copper, slate, felt, glass,
enamel, brass, ground), the stains, rising damp and splash they share, and WR9's season and weather over them, from
uniforms (age: years, soot, upkeep; weather: day, wet, snow, storm, ice). A debug mode draws any of 14 causes in false
colour from a lit hook. A mesh without the bake's second UV set is left as it was.
The bake (raea-sys-weathering 6) writes each texel's class into causes2's spare alpha, read by textureLoad, so one
shader serves every material; dilation copies class and element into the gutters instead of averaging two into a
third; a primitive with no UV set gets the atlas's as TEXCOORD_0 too, since Bevy's standard surface reads the first
wherever there's a second.
Proof: bun test in sdk/wear (12), cargo test -p raea-sys-weathering (11), and a street front of all 14 classes
baked and rendered by day, in rain, snow and autumn, and cause by cause.
On an Intel Core i5-3550 (Ivy Bridge, 2012) raea.exe stopped at once with 0xC000001D, an illegal instruction, whatever it was asked. Intel's Software Development Emulator, running rc8's raea.exe --version as an Ivy Bridge, named the instruction: a shlx (BMI2) in the C++ library's unordered_map rehash, called from a static initializer that fills ONNX's set of experimental operators (ATen, Affine, ConstantFill, Crop). It was the static ONNX Runtime that ort downloads and links, built with AVX2. Its initializers run before main, so no path of raea's could avoid them: every CPU without AVX2 and BMI2 (an Intel Core before 2013, many Celerons and Pentiums) stopped there. With the emulator told to report and carry on, all 8 such instructions in raea --version lay in that library's code.
On Windows x64, ort now loads ONNX Runtime when a model first runs (load-dynamic), from onnxruntime.dll beside the executable, and links none of it. raea.exe and raea-perceive.exe are the two that used it; the hosts never did.
- systems/{ml,song,columns,speech,index}: ort's load-dynamic on Windows x64, in each crate that uses ort, since raea, raea-perceive and the hosts build in separate cargo runs (checked with cargo tree: disable-linking in both). The crates compile with it (checked on the Mac target; ring's C can't build for Windows here).
- tools/release/onnxruntime.sh: Microsoft's own build, Microsoft.ML.OnnxRuntime 1.28.0 from NuGet (the version the static build was; MIT), checked against its pinned sha256 (its sha512 matches NuGet's record), with its LICENSE and ThirdPartyNotices.txt. Under the emulator as an Ivy Bridge and a Sandy Bridge it loads, makes an environment and opens raea's beat model.
- release.yml runs it in the Windows job on both the built and the promoted paths, and lists the DLL's imports; release.sh packs the three files and refuses a build without them.
- release-check.sh allows that one DLL of Microsoft's, by name, and requires it and its licence in a Windows zip. Its song check (raea song) runs ONNX Runtime from the unpacked zip on every release.
- What's new for 0.1.8 says so.
A web project keeps its static files in public/. raea's staticFile is /media/x, found in the edit's media/, the project's media/, then its assets/, so a project brought over with its footage in public/ refused it ("vid\\media/orbit.mp4: The system cannot find the path specified", seen on rc7's Windows run) while its sounds played: the sound preload already scans public/.
media_path tries public/ last, the edit's own and then the project's, so nothing found today moves. Every engine path a staticFile takes goes through media_path: the render's video and pictures, the bundler's rewrite, CSS url()s, UI materials, model calls, games and the frame's media rows.
media_from_the_project: a clip only in the project's public/ is found, the edit's own public/ comes ahead of the project's, and assets/ still comes ahead of public/.
uv's and FFmpeg's fetches download into NAME.part<pid> and move it in when it's whole. A fetch stopped partway (a Ctrl+C, a closed window, a killed process) left its part folder, and every later fetch made a new one: on a Windows test box three were left beside FFmpeg, one holding the 114 MB zip.
Both fetches now end through one settle(): the part moved in when it's whole and nothing got there first, the part removed, and once the tool is in place every NAME.part* beside it swept. A part another process is still writing stays on Windows (its open file can't be removed); elsewhere that fetch fails, finds the tool in place, and counts as done, as a failed fetch that finds the tool already does.
settle_sweeps_stopped_fetches: two stopped FFmpeg parts and this run's are swept while uv's is kept, a failed fetch that finds the tool is done, and one that doesn't says why.
The manual's What's new stopped at 0.1.4, and GitHub's release notes for 0.1.5 to 0.1.7 say only "notes follow".
- 0.1.5 and 0.1.6 are the notes written for them (the Studio release folders' notes.md), with the internal
comments that backed each line taken out.
- 0.1.7 is written from what it shipped: the Windows release (#169's paths and the workspaces they broke repaired,
sign-in and keys kept on Windows, this PC and Ctrl, Use another account on raea.io's link page).
- 0.1.8 is written from its launch thread and the PRs since 0.1.7: Windows (agents, the installer's folder,
DX12 for Intel and AMD, phone video through a fetched FFmpeg), local models with nothing installed, layers
(thanks to wackyza), labels, the window's memory and feed speed, live 3D, Linux 3D, and for builders: controls,
@shared imports, raea check without FFmpeg, raea gen's fal fixes, WGPU_BACKEND and video-decompiler. Its Known
list carries forward what's still open and adds DX12's slower shader compile and TokenSynth on Windows.
Dates are Pacific, as 0.1.3's and 0.1.4's are; 0.1.8's is the day it's staged.
On Windows raea's own decoders read H.264 without B-frames (openh264) and AV1, not what phones and cameras write:
H.264 with B-frames, HEVC, VP9. With no FFmpeg installed (as on nearly every Windows PC), raea media probe, raea
check and a render's <Video> refused such a clip ("no picture or sound raea can read"). Found testing 0.1.8-rc6's
raea.exe on Windows with orbit.mp4 (H.264 High, B-frames).
- raea_io_assets::ffmpeg_tool: ffmpeg or ffprobe from the PATH, else raea's own in $RAEA_TOOLS_CACHE/ffmpeg/bin.
On Windows raea's own is fetched there once: GyanD's essentials build 9.0.2 (the one winget's
Gyan.FFmpeg.Essentials installs) from its GitHub release, 114 MB, checked against GitHub's SHA-256 digest
for it, unpacked by Windows' tar (ffmpeg.exe, ffprobe.exe and the LICENSE, ~210 MB). Nothing is bundled.
Off Windows the error names the package manager's command.
- The fetch shares uv's code (fetch_archive, from fetch_uv), which now resumes across curl's tries
(-C - --retry-all-errors, as #189 does for the models).
- The ffmpeg backend runs that binary everywhere. Only opening a file named as a video fetches; sound,
encoding and asking what FFmpeg can do never do, so a silent clip tried on every backend, or an mp3, never
downloads 114 MB.
- raea-app-media opens a video through every backend in order (raea_io_media::preferred), as renders already
did, instead of the platform's alone: media probe, the change and picture commands, and raea check's
native reader. probe's refusal now says what each backend said.
Checked on the Mac with no FFmpeg on PATH and the portable backend first: B-frame H.264 and HEVC probe
through VideoToolbox (they were refused before), and VP9 is refused with each backend's reason, ending in the
install line; VP9 probes once FFmpeg is on PATH. The zip's layout and extraction were checked with bsdtar.
The Windows fetch itself is proved on the release's raea.exe on Windows. Tests: raea-io-assets, raea-io-ffmpeg,
raea-app-media and raea-app-check-read (parity against FFmpeg) pass.
#155: raea's app crashed before its window in AMD's OpenGL driver (atio6axx.dll, 0xc0000005) on a laptop with an
AMD 780M beside an RTX 5060, under wgpu's every-backend default and under Vulkan, and ran with WGPU_BACKEND=dx12.
#180 put an Intel GPU on DX12, but looked only at DX12's high-performance pick, which on that laptop is the NVIDIA
GPU. Now dx12_first looks at every GPU DX12 lists: an Intel or AMD one (not WARP) puts the process on DX12, whichever
GPU it then draws on. A PC with only NVIDIA GPUs, a Mac, Linux and a WGPU_BACKEND someone set keep wgpu's own pick.
Testing that on the RTX 4070 (the laptop's pick) found DX12 drawing meshes wrong: a box and a sphere came out as one
mangled shape. The shared device drops wgpu's indirect-draw validation in release builds, and on DX12 that pass is
what writes each indirect draw's first vertex and first instance (wgpu-core's D3D12 special constants). With it on,
the same frame matches Vulkan's. So the validation now stays wherever DX12 can be the backend (on Windows, unless
WGPU_BACKEND leaves DX12 out); Mac, Linux and a Vulkan-only Windows process keep the speed-up. Without this, 0.1.8's
#180 would have drawn every Intel GPU's 3D mangled.
Known cost, unchanged here: DX12 compiles shaders with FXC (raea ships no dxcompiler.dll; DXC 1.9.2609 fails on
bevy_hanabi's shaders), so a 3D render's first frame on DX12 took 22 s on the 4070 against Vulkan's 8 s.
docs/settings.md gets a WGPU_BACKEND row (what raea picks, and the override).
On Windows (11-18) SAO's setup failed 110 MB into the 1.4 GB DiT graph: curl's error 56 (schannel: server closed
abruptly), which --retry doesn't retry, and fetch() threw the .part away, so every rerun began again from zero. Now
the .part is kept across tries and runs and resumed (curl -C -, or a Range request in the urllib fallback), with up to
8 tries a run; a file already whole (416) counts as done, and the SHA-256 check still runs on the finished file.
Tested against Hugging Face with t5-base's tokenizer.json, on the Mac and on Windows, curl and urllib: a 300 KB head
resumed to the whole file (SHA-256 matching), and a second call on the whole file left it as it was.
Each local model's setup is now tools/<model>/setup.py (standard library only, on tools/local_setup.py), run by uv
on any OS as raea runs it: uv on the PATH, else raea's own uv 0.12.24 fetched once into ~/.cache/raea-tools/uv (where
tools/ensure.sh puts it) and checked against its SHA-256. The setup.sh beside each is a wrapper for a Mac or Linux.
Until now each setup was a sh script needing uv already installed (brew install uv), so Windows had no way to
install any local model.
- SAO: Core ML on a Mac, ONNX Runtime elsewhere (CUDA where nvidia-smi finds a GPU; RAEA_SAO_CUDA=0|1); its WAV is
written by Python's wave module, not an installed ffmpeg (same samples)
- matchmove, splat: footage read through PyAV, whose wheels carry FFmpeg's libraries (no ffmpeg/ffprobe needed);
splat fetches Brush v0.3.0's release build for macOS arm64, Linux x86_64 or Windows x86_64, each SHA-256 checked
- goo: Taichi on Metal on a Mac, else its best GPU (CUDA, Vulkan) or the CPU; the backend is reported as run
- TokenSynth: its code as GitHub's archive at a pinned commit (no git); coremltools only on a Mac
- the engine runs .venv\Scripts\python.exe on Windows (venv_python), Brush's brush_app.exe
- tools/release.sh ships tools/local_setup.py
0.1.7's raea check refused any video without a system ffprobe and ffmpeg, though raea media probe and loudness
never needed them; Windows never has FFmpeg. Every read check makes now has a native reader in a new crate,
apps/check/read (raea-app-check-read): the probe, each frame's light, the dark crops blotching scores, the flashing
screen's area- and point-sampled frames, the sound folded to mono, momentary loudness, freezes, integrated loudness
and true peak, and a caption's contrast. FFmpeg stays the reader where it's on the PATH (the reference the rules
were tuned on); RAEA_CHECK_NATIVE=1 forces the native readers.
tests/parity.rs holds each native read to FFmpeg's on a clip FFmpeg makes: crops, light, sound, meter, freeze and
loudness agree to within a hundredth; flash frames to 4.4 levels. raea check gives identical output with and
without FFmpeg on PATH for a moving clip with a freeze and loud sound, a render, and a strobe with stray frames.
raea's skill tells agents to import shared code as @shared/components/NAME, and the project's tsconfig maps it, so
tsc passes; but raea render's bundler took @shared/... for a package and the composition threw "Can't find variable:
_shared_components_badge" before its first frame (0.1.7, reported by an agent on macOS). A relative import of the same
file worked.
raea_io_home::shared finds the workspace's shared/ as the engine's loader does (the folder holding .raea/workspace;
its root for a workspace from before shared/) and the file an @shared/ name means. runtime/bundle's copy of an edit
treats @shared/ like any import from outside its folder: copied to ext/shared/ with what it imports, the import
pointed at the copy (a project that is its own repo too). engine/bundle's script resolution (raea run, specs) resolves
it from the importer. A name shared/ doesn't have is refused naming its importer, not left to the bundler.
Checked: raea render of a composition importing @shared/components/badge draws (it threw before); raea run resolves
@shared/; a missing name is refused with the file it looked for. raea-io-home, raea-runtime-bundle and raea-bundle
tests pass (new: an_import_of_shared_finds_the_workspace_s_file_from_any_depth,
outside_copies_the_workspace_s_shared_code).
raea's page host kept the last 240 frames' UI trees (tree.rs TREES) for the MCP ui tool. It did that in the person's
app too, where the MCP server is off and nothing reads them: 315 MB of serde_json trees with a feed of 120 cards open,
found by MallocStackLogging in raea-feed's e2e/memory.spec.ts (MEM_STACKS).
- The trees are kept only once the MCP server serves (tree::KEEP, set by mcp::serve). LATEST, which BRP's ui method
reads, is kept as before.
- The frames the MCP reader was handed already (tree::SEEN) are let go: its next ask is always for a later frame.
- Frames in a row whose trees are the same are kept once, with their first frame, and handed out as each frame. A page
at rest is one tree however long it rests, and every reader gets what it got before.
The page host's main also hands the page's code to the mount once instead of keeping it for the app's whole life: the
feed's bundle is 21 to 26 MB.
raea-feed's memory spec, 60 stills of 2560x1440, with raea #184 and raea-feed #97:
| Stage | 0.1.8-rc3 | Now |
|---|---|---|
| Feed open | 1131 MB | 757 MB |
| End of feed | 2032 MB | 904 MB |
| After opening items | 2526 MB | 1317 MB |
Unit tests (tree::tests) cover:
- a run handed out frame by frame;
- what was handed out let go;
- a run part-way through kept;
- the 240 cap.
A feed card drew a 2560x1440 still at 720 points at most, and raea's window held it decoded at full size: 14.7 MB
of RGBA a still, and the window grew 25 MB for every still scrolled past (raea-feed e2e/memory.spec.ts: 1.1 GB open,
2.0 GB after 60 stills, 2.5 GB after opening a few). blitz-dom's image decode now fits a picture whose URL's query
asks raea-w=N and/or raea-h=N to that box, its shape kept and never larger, area-averaged on premultiplied pixels
when any is see-through. The servers ignore the query (the app's node server returned the same bytes; raea-page's
file loads read url.path()), and so does a browser. The feed's cards ask theirs at the card's size.
raea's headless Engines (raea-render's, the page's BlitzPage) left Bevy's WinitPlugin out only when a registered
plugin that brought bevy_winit said so (hanabi's x11, raea-page-host's window). A build that brought it some other
way, cargo unifying features across `-p raea-cli -p raea-page-host --features raea-page-host/window` or the whole
workspace, kept it on: each App made an event loop, winit allows one a process, and every 3D render and play
panicked "Failed to build event loop: RecreationAttempt" on Linux (with no display: "neither WAYLAND_DISPLAY nor
... DISPLAY is set"), while a page rendered.
raea-runtime-plugins now compiles bevy_winit in on the desktop (x11 on Linux, loaded at run time, never opened)
and its group() always leaves WinitPlugin out, however the build brought it. The lockfile already held the graph
(winit was in for raea play's window). A unit test says so on macOS and Ubuntu (CI's test list), and the release
archive check renders a 3D frame on Linux and macOS, on Linux once more with no display: no release step had
rendered 3D on Linux.
raea show FILE --label "PLACE TAG" [--detail PARAGRAPH] sends the app's host each label as { place, text, detail? }; the
host (raea-feed labels, host/show.ts shownLabels) reads each place and refuses one that isn't, naming it. PLACE is
x0,y0,x1,y1 or x,y in the picture's 0-1, then #N, @T or @T-TO, or part=KEY. --labels FILE.json sends a list as feed_post
takes them (read by raea's own handler, index.ts, where the shell's files are). A --label with no tag, a --detail with
no --label before it or a second one, labels with no file shown, and --label with --labels are refused, saying what a
label is. The flags are in raea show's help line, the one list stray() reads.
raea media sheet writes OUT.labels.json beside OUT: each cell's box in the sheet's 0-1 and its time (0:03.2), or its
file's name for a sheet of several; raea show OUT.png takes it along with nothing more said. Tested: conformance 12/12
for show (bun), sheet_tests 2/2, and end to end against a stand-in host: a sheet of one film (four times) and of two
(their names), each flag's body as the host reads it, and the refusals.
docs/callouts.feature: status for 0.1.8; CO6 (the card's count) is built, so it's no longer 'Open'.
#180's first commit chose DX12 for an Intel GPU only in the shared device. Bevy's own device (when the shared one
fails) and systems/k's kernels asked wgpu for every backend, so they still met the Intel Vulkan driver that crashed
0.1.7 on Windows. raea_gpu_device::backends() is now the one answer for all three: WGPU_BACKEND when set; else, on
Windows, DX12 alone when DX12's pick is Intel's own GPU (dx12_first); else every backend, wgpu's default. Found once
a process. On a Mac nothing changes: the sample room renders at 10.0-10.1 ms a frame warm, against main's 10.1-10.5.
raea 0.1.7 crashed on a Windows 10 PC's Intel integrated graphics under Vulkan, and ran with WGPU_BACKEND=dx12. Asked for
every backend, wgpu takes Vulkan's adapter for the same GPU. With no WGPU_BACKEND on Windows, DX12's pick is asked
first now, and kept when it's Intel's own hardware (vendor 0x8086, not WARP); any other pick is dropped and every
backend asked as before. NVIDIA and AMD, a PC with no GPU, a Mac or Linux, and a WGPU_BACKEND someone set (Windows'
release check sets vulkan, for lavapipe) keep wgpu's own pick (dx12_first, tested). The page window, the stage and
renders all take this device (runtime/view render_creation); only its fallbacks (Bevy's own device, systems/k when
the shared device is off) don't.
Main and Zach's stack each left the two crates at 2000 lines, and the merge made them 2001. Zach's comment on
export layers / export xml is one line now, like each dispatcher's beside it, and the scene's own-ambient retain is one
line, as the file writes its other one-statement ifs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The spec for labelled frames (CO1-CO6): a label is a short tag (a paragraph on click) on a place in a still, a
storyboard's frame, a film's time or a scene's part or point; posted with feed_post labels, raea show --label/--labels
or a contact sheet's .labels.json; drawn beside the picture, never over it; on hover an armature reaches in to the
place. The feed's side is on raea-feed's labels branch; the CLI flags, the sheet's sidecar and the skill text follow
after 0.1.8, since they change what the skills gate reads.
raea export layers and layers.json, CapCut drafts written from layers.json with a captions track, raea export xml
(FCP7 XML for Premiere Pro and DaVinci Resolve), footage that moves, is cut or fades keyed in every export, and the
delivery and words guides teaching them (raea-skills #99, merged onto raea-skills main).
Conflict: engine/cli/src/cli.rs's help, where main added raea wear and raea setup motion beside Zach's raea export
layers and raea export xml; both kept. The skills pin is raea-skills main with #99 merged (f37e5e3).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
LT21 (a3fec64205) let live play's fast path keep component rows as they were sent while scene_sig, made of the lights
and each part's <BevyComponent>s, stayed the same. A material's animate of a field past the row columns' four
(material_fields) and a ThreeShaderMaterial's uniforms, time and textures (three_uniforms) are component rows too, but
weren't in the sig, so after the first frame nothing sent them again: the glowing cube in bevy-ts's material-field-live
stayed red where frame 25 is dark. v0.1.8-rc1's Windows release job failed on it, and the Mac does the same.
scene_sig now takes every source of component rows: the components, a material's field: props and a shader's
uniforms, time and textures. A frame where none of them changed keeps LT21's fast path.
Measured on the Mac with the fix: bevy-ts's play cases 12 pass (material-field-live included); live-plugin needs the
plugin build's avian, which the release zip has. raea-runtime-look's tests: 12 pass, one new.
A Windows PC's page said MacIntel and a Mac's user agent (0.1.7), so a library that picks ⌘ or Ctrl by
navigator.platform (CodeMirror's and ProseMirror's Mod-) took Ctrl+Z, Ctrl+C and Ctrl+V as a Mac's. userAgent,
platform and userAgentData now read globalThis.__raea_window.os (set by the window before the page's bundle) when
asked: Win32 and a Windows NT user agent on Windows, Linux x86_64 on Linux, the Mac's as before with no window (a
render). test/navigator.test.ts.
Limiting takes loudness off, and master_gained made it up a dB for a dB in three
passes. On a gambit range demo (rifle cracks over a quiet bed, the limiter eating
most of the gain) that stopped 1.8 LU short: -15.8 LUFS against -14. Each pass now
steps by what the last one's gain bought (a secant, slope clamped 0.05..1, step
clamped 12 dB), up to 8 passes or within 0.1 LU: the demo's sound now masters to
-14.11 (13 dB-for-dB passes reached -14.03). Test: a crack-over-wind signal the old
loop leaves 0.25 short.
Seen, not fixed: limited ~10 dB, noise-like transients come out up to a dB over the
ceiling between samples before the encoder (sample peaks hold); master_for's
post-AAC pass is what takes that off.
Roots ran up to 1.5 m out and came up through the paving past a 2 m pit. A tree now has a pit (Plant::pit): 0.6 m of
open soil past its flare, never under 1 m in radius (ASSUMED), and each root goes under the soil inside it, clear of
the paving's edge. The grower writes it beside each .glb (TREE.json) for the ground to draw the same pit. Test: no
species shows bark above the ground outside its pit.
- raea-sys-shots: raea-sys-frame's cuts between cameras as a crate of their own (frame re-exports it as shots), so
frame's new Cut fits under the crate limit; runtime/scene's paint_cut joins cam_keyed's prefixes.
- sdk/video controls.ts: a composition's controls out of registry.tsx (under 500 lines), each kind documented.
- raea-runtime-segments in tools/layers.toml; vendor/bevy_solari's compaction-queue fix marked raea:.
- sdk/cloud: a farm job's GPU kind is `card` (a prop names what it picks, not the processor); the farm's query is
unchanged.
- Copies folded: io-media's backend() is backend_unsigned wrapped by the signer; paint's cut colours read by one
closure; foliage's one smoothstep, a triangle's bounds in one pass, a cell's pixels as one range; segments' video
track found once in its tests and its shortest segment set where it's used; the Solari switch through
raea_io_home::env_on; kimodo's package record a path like its others; a few one-liners written directly.
tools/dupes.max names the six left, which match by shape only (trait forwards, foliage's own FNV and stream).
Ten street and park species (lime, elm, plane, maple, chestnut, locust, oak, birch, poplar, willow) grown by space
colonisation into lobed crowns, leaves as cards on an atlas, bark tubes, and FO13's foot: a flared trunk and
structural roots that rise at the flare and dive under (Day et al. 2010; Lee 2022; the rest ASSUMED in
species.rs). docs/foliage.feature holds FO1-FO16. The rewritten roots are untested; the crate joins the
workspace's members when they are.
The plan of a project's work (asked 11-14: "i like org mode for managing projects ... integrates well with
typescript/react/jsx"): one Org file at the top of the project's folder, the to-do list the person sees in the app and
the one every agent keeps. sdk/task reads it losslessly (parseOrg/printOrg give back any text byte for byte: CRLF,
tabs, unknown drawers, LOGBOOK, blocks, tables, no final newline), gives its tasks as typed values (ids, keywords,
priority, tags, dates, :ITEM:, :AGENT:, :FROM:, subtasks, checkboxes, progress cookies, links by id), and edits it by
task id (add, set, state, move, remove, check: ids minted, CLOSED stamped, cookies recounted, untouched lines kept, a
bad edit throws and changes nothing). Plugins add keyword sequences, properties, kinds and views; board, agenda and
outline ship. planDigest and the plan tools' answers serve any host; ./react has usePlan, useView and the outline,
agenda and board components. No runtime dependencies.
docs/plan.feature PL1 to PL6 says what the app, the agents and the SDK do. The app is raea-feed integration-014
(tasks-org merged, 1214a21) and the skill raea-skills #75.
Checked: bun test (org, edit, extend, tools) 32 of 32; with its React tests under the app's vitest, 35; the gates in
a clean export of main with these files (layers, names, size, one-version, no-void, dupes, rask, sdk coverage, sdk
props, taxonomy) all pass.
RT3 said only that timeline playback of pre-rendered films is choppy and repeats itself, to be measured first. It now has the bench (the app's e2e/playback.spec.ts: 1080p30, 1080p60 and 4K30 films made with ffmpeg, each frame the window shows logged), the before and after table, and scenarios: RT3a to RT3e built (each frame once and in order, the playhead at each frame drawn, a seek while playing, an edited film across a split and a cut, a stop at the end; the window's part is on the timeline-playback lane), RT3f to RT3h not (frames passed over on a loaded machine, the window playing an edited film's ranges itself, the sound clock measured on screen).
bench/realtime/stage.sh shows a composition on the engine's stage in a headless raea window (its own MCP port),
pauses it on frame N, changes one control with stage.props, captures each draw and compares it by SSIM with
`raea render --frame N` of a copy holding the new value (and, for ray tracing, with frame N of a render of 0..N).
bench/realtime/window.sh renders the 5 s draft window the app's host/draft.ts writes (edit segments, scale 0.5),
cold and warm, then once with signing on and looks for a C2PA manifest. Cases: a 2D card, a raster scene, the same
under an HTML caption, a Solari room, a Math.random/Date card, and 60 s and 180 s films of RR0's six shots.
bench/render-play gains rows for the 2D, raster and caption cases, and RAEA_RP_ROWS with absolute paths, so copies
of films outside the repo can be measured.
Results: 2D and raster on the stage equal the render (1.000000; HTML over 3D 0.999999), but only after a seek
following the props: props alone leave a paused stage's old frame up. A 90 s raster film plays at 0.945 against its
render with the play's seed replayed, mostly the paint look's wind (0.993-0.997 with it off). Solari reaches 0.9934
of the film's frame after 32 draws and 0.9942 after 64, never 0.995. The 180 s film's window costs a median 1.14
times the 60 s film's; warm startup to the 3D frame is 2.05-3.71 s, about 1 s of it a second start once the first
frame meets 3D; a window takes 9-20 s. The public raea never signs a draft; the signed build does. 8 of the last 30
timestamped notes on composition films are value-only. So, per the plan: live frames are labelled Preview, the
warm worker and background reopen move into P1, ray-traced previews draw without Solari, and unsigned local drafts
are P1 work.
A <BufferMesh>'s shape is "buffer:{positions, indices?, normals?, uvs?}", what raea/r3f makes of every three.js
geometry. core/shape's cache read only CSG expressions, so contact, `raea scene lint|explain` and `raea scene export`
stopped at "unexpected ':' in a shape" on any R3F or <Three program> part (an img2threejs model in <R3F><primitive>
was the first case found, 11-16).
core/shape/src/buffer.rs: buffer_tris (moved from raea-sys-mesh, which re-exports it) and export_tris, triangles
written as GLB (POSITION, NORMAL, TEXCOORD_0) or OBJ (v, vn, vt) without going through Manifold, since a buffer mesh
needn't be closed. The cache reads a buffer: shape as its triangles; interchange's export writes a buffer mesh's GLB and
OBJ from them. mesh.rs's bounds and glb helpers are shared by both exports.
Two trim kinds for kit worn over a garment, made for THE GAMBIT's tram conductress (LOC LC-B2-3498-12: a framed
leather money bag at the right hip on a narrow strap over the left shoulder):
- sash: the band's ring in the plane through a point by one hip and one over the other shoulder, front to back,
each ray cast in from outside so it lies on the outermost cloth, smoothed taut over the folds. In SOMA's A pose
the arm leaves that plane nearly square to it, so the rays by the shoulder meet its top, not the sleeve. Also a
bandolier or an officer's cross belt.
- bag: a rounded leather pouch (a superellipse in plan, closed flat at its frame, rounded below) hung where a ray
meets the cloth, its back bent round the hip across its width, a metal frame and a two-knob clasp on top. Every
vertex is skinned as the one cloth vertex it hangs from, so it moves whole (emit(rigid=)).
The sash's rows run across its plane's normal the other way round from band's, so they are reversed for slab()
to face it out (first made, it faced in and was culled: no strap).
trims.py's collar "drop": the stand's top runs from its height at the back of the neck to no lower than this at
the throat, the stand growing where the garment's neckline scoops lower in front. GarmentCode cuts no higher
than its fc_depth 0.3: on THE GAMBIT's conductress's coat (SOMA's woman build) the neckline scooped 10 cm below
its back, and a collar following it was a ring round her collarbones; with drop 0.045 it closes at her throat
as the 1915 photographs show (LOC LC-B2-3580-6).
A sewn turtle collar has nothing to hold it up: in the drape its front falls
open in a V at the throat (the M1915 Bluse, the British service dress). The
collar trim builds the stand from the garment's neckline (the highest cloth
at each angle round the neck, since a sewn garment's seams leave open edges
too) up to the neck, its top a few millimetres off SOMA's skin by the drape's
distance grid, and turns the fall down over it, open a little at the front.
Its points can carry an L of braid, piped (an NCO's collar). Sew such a
garment with collar.component.style=none.
A sewn garment was one flat colour: wool read as vinyl at a close-up, and a uniform had no buttons, straps, belt
or collar facing (THE GAMBIT's 1917 greatcoat, docs/character.feature CH49a).
- tools/garments/fabric.py: wool, serge, cotton or felt as tileable albedo, normal and roughness maps (periodic
noise, a whole number of ribs a metre, so the tile has no seam) in the cut's UVs, which are laid flat in metres;
each material keeps its colour in its factor, so <MeshStandardMaterial color> still recolours it
- bake_batch.py PANELS / sew.sh --panels: the pieces a key names (collar, cuff) in a colour and material of their
own, set per face before the seams are welded
- sew.sh --design FILE (a saved design made again with a setting changed; read before the folder is emptied) and
--cloth KIND
- tools/garments/trims.py: buttons (domed, cast onto the cloth), conformed patches (shoulder straps with piping,
pocket flaps, a buckle; square, round or pointed ends) and bands (a belt round the body, the sleeves left out),
each skinned from the nearest cloth vertex and carrying the source it is attested by
- tools/garments/glbio.py: the glb rewritten from what is still referenced, so a cover or trim set made again
replaces the last (measured: trims, cover, trims again keeps 10 parts and 6.1 MB)
streetMix(day) counts each role's minutes walking (trips on foot) in each
hour of a cityDay, for passersBy's mixAt: the sidewalk then carries the
people whose days put them on it (the shift to the Works at half past five,
the children out of school at one) instead of a mix set by hand. An hour no
one walks in takes the day's mix; an empty mix at a minute takes FlowInput.mix.
Test: on the test city's day, housewives walking to market at half past ten,
only the patrols at noon, and passersBy's noon street carrying the patrols.
A street's walkers were each one person by a fixed mix all day, so a noon
sidewalk carried the munitions workers who are at the Works and the children
who are in school till one. FlowInput.mixAt(minute) gives the mix by the time
of day: each round of a walker (out of a door, along the street, in at a door)
is then its own person, drawn by the mix when the round began, so the street's
people change as the day goes and no one changes on it. A round runs at the
slowest walker's pace so anyone's walk fits it, and a walk has more slots by
the mean pace over it, so a street holds about as many either way. Without
mixAt every draw is as before (existing shots unchanged).
Test: before the change only one mix's role, after only the other's; across
it, step by step, no one jumps or changes role and new walkers come out of
doors; as many out at 5 pm as without it. CH52 says so.
- Walk.closed (a ring round a block: walkers turn its corners), Walk.legs (each street's side its own walkers a
metre), Walk.doors (walkers come out of one and go in at another, a while indoors between): a world's tile walks
were cut at every tile edge and wherever its raster said building, and walkers wrapped at each cut, popping in
frame (THE GAMBIT's Leipziger x Jerusalemer corner)
- a walker heads the way with more of its leg ahead and turns a corner by at most SPILL (25 m), so a busy leg stays
busy; slots are scaled by each leg's measured stretch share so a leg holds its nominal walkers a metre (0.311 and
0.074 against 0.3 and 0.08 over 17:00-19:00)
- the keep-right offset turns smoothly through 1.5 m either side of a corner (it jumped 0.7 m at one) and spreads
across the pavement (two loose streams, not two files)
- test: 48 frames at 24 fps round a block, no walker moves more than 0.12 m a frame, everyone who appears does so at
a door, the avenue side over 2.5 times as busy a metre as the quiet sides
- flow.ts: passersBy(walks, minute, {roles, folk, mix, seed, busy}) - each sidewalk holds walkers by its length,
its busyness at the busiest hour (5 pm) and the hour's share (STREET_HOURS); each a person by the mix walking the
line at their own pace, keeping right; computed per minute, not stepped, so any frame stands alone
- near.ts: Grid/gridOf - the nearest few of a kind and all within a reach from the cells around a point (a slice of
Berlin has 16,000 shops: placeFor sorted them all for every block of every day); cityDay's byKind no longer copies
the list per place
- Place.line: where the world says a queue forms (a tile's queue line); queued people now face the door (they faced
away: f + pi/2 is the line's own direction)
- a block with nowhere to happen (no workplace found, no place of its kind) is not lived: a sentry with no post
stayed at his own front door 'on guard' (266 at one stand-in post in gambit's first run)
- tests: the grid against a full sort (200 points), the line followed and faced, blocks without a place, passers-by
(count by hour, on the line, keeping right, deterministic, a walking pace)
A project lists roles (a profession, a rank, a household part: the share of women, ages, traits, dress and kit by
weight, modes of travel, workplace, a day of blocks and habits) and places; populate() draws everyone from one seed
(name, sex, age, five traits, habits, crowd-face numbers, height, hair, dress, gait), dayOf() gives each a day at
real places with punctuality from conscientiousness and trips by a mode chosen first (left in time by that mode,
waiting when early), and snapshot() places everyone at a minute: near, middle, far by distance with hysteresis, or
inside (counted, never drawn), with people out at the same door stood in a queue along its front. census() is the
far level; react() how a person meets an event (a shock underfoot, a report). Folk.avoid rejects names a place's
records hold (a real resident's). Made for THE GAMBIT's Berlin: 3,003 people and their days in 35 ms.
12 tests (sdk/character/test/people.test.ts); raea/people in sdk/tsconfig.base.json and the layout conformance.
A step's media all went into the endpoint's image field, so a mask went into
image_urls beside the picture and a fill model read none. A media input named
mask now goes to the schema's mask field (mask_url when there is no schema).
Test: fal::tests::a_mask_goes_to_the_mask_field.
fal::body sent prompt, seed, negative and x_* only, so a 4K edit on fal-ai/nano-banana-pro/edit came back 1024 px
(chars/gb-organ's profile views, 11-17) and its face fit failed. Any other setting is sent when the endpoint's
OpenAPI input names it; one it doesn't name is still dropped (made.app's names that fal has no field for). Test:
fal::tests::settings_the_schema_names_go_through.
The drape (tools/garments/drape_mlx.py) bends across every seam as across the cloth, each at its two pieces laid flat
across it (SEAM_BEND=0 for the old hinge): a seam was a free hinge and stood out as a fin, 3 cm proud down a
greatcoat's centre front from the chest to the hem, drawn as a crinkled line once the coat moved.
hide_under.py: FOLLOW=NAME,... names garments the cloth follower carries (sdk/body tools/worn.ts); their cloth below the
crotch hides nothing under it, since it swings off what it lay on at rest (a greatcoat's skirt had cut 13,531 of the
trousers' 23,512 faces, and the holes showed the coat's inside as it swung; 5,400 now).
garment.py cover: --over a sewn garment is refused with what to do instead (it crashed with KeyError 'stand').
A media.load step was keyed by its path alone, so a picture made again at
the same path kept every step made from it cached: a face's front remade
in place would keep its old bald edits. The run now keys a load of a local
file by its contents too (Flow::keys_in with the run's base dir); keys()
without a base is unchanged. Test: a_loaded_file_changed_in_place_is_a_new_input.
A GNM head is a part, and <Character skin> drew only the body's "skin" material as skin: the
faces, the skin most seen, were plain glTF PBR (no light under the skin, no clearcoat, no fine
relief). A part may now carry its own skin settings (its maps and the fine relief's scale: a
head's UVs aren't the body's), and a head part (one with eye joints) is drawn as skin whenever
the Character's skin is on.
skin.ts: WESL's @if covers one statement, so mtex and grain read an msamp never declared when
microMap was false; each line now has its own guard.
Placed against the joint at rest in the body's frame and carried by the joint's turn from rest, as a cap rides
Head; the body's placement moves and turns it with the body. Tested in test/carry.test.ts.
A hero's head (sheet3d's gnm_headglb.py) carries its cornea as a white glTF
material at alpha 0.08 under BLEND. Bevy lights it as it does skin and lays 8%
of it over the eye: a grey film that hid chars/gb-sapper's brown irises in any
real light (the cab's lamps, a studio key), and chars/teal's before. Every part
with eye joints now has its cornea re-covered Premultiplied over black at alpha
0, which adds the reflection alone: the iris shows, with a catchlight.
sdf_igl.py --under GARMENT.glb: garments already sewn on the body made part of what the next one drapes over.
Each one's open edges (a skirt's waist and hem) are capped so it closes round the body; it is inflated by its
cloth's thickness (--under-thick, 3 mm) and joined to the body's distance grid. A coat was cut and draped on
the bare body, so THE GAMBIT's conductress's skirt, wider at the knee than the coat's hem, stood out through it
and showed the edge hide_under had cut under the coat. Draped over the skirt, the coat's hem is 3.7 cm wider
each side at the knee and lies on it (docs/character.feature CH42d).
A garment was cut to soma.yaml's measures and judged against SOMA's template whatever body it was sewn on.
- sew.sh GARMENT_MEASURES: the body's own measures (soma.yaml unless given), beside GARMENT_SDF and SOMA_BODY
- soma_measure.py TEMPLATE_MEASURED.yaml: soma.yaml sets a few values by hand where GarmentCode means other than
the tape (neck_w 18.5 where the template reads 10.8, shoulder_w 35.5 for 32.2, bust, back_width); given this
tool's own reading of the template, a shaped body gets each scaled by its reading over the template's
- drape_mlx.py: sleeves and cuffs start round the arm where GarmentCode places them (SLEEVE_LIFT 0.01), not lifted
7 cm as a top's torso is: a woman's narrower sleeve began with its under-seam inside her arm and draped as two
flaps beside it. The template's greatcoat drapes as before (re-sewn and looked at).
- drape_mlx.py: 'stayed on' scales the template's shoulder and waist heights by the body's height to the neck
(the woman's coat, at her neck at 1.35 m, had read as slid off against 1.38)
- docs/character.feature CH42d
tools/clothes/body.py SHAPE=... moved the skin along SOMA's shape model and left every joint where the template
has it, so only small changes of build were right (docs/character.feature CH42b's 'not done'). Each joint now
moves with the skin it carries: the skin-weighted mean of that skin's move, a vertex 8 cm off counting 0.6 of
one at the joint. A limb joint takes its two segments' twist joints' skin, since SOMA hangs an arm's and a leg's
skin on the twist joints and none on the elbow or knee itself (without them a woman's elbow stayed at the
template's distance from her shoulder, 3 cm off her shortened arm). A joint with no skin moves as its parent;
the eyes move with the head; the soles stay on the floor; CUT, given in template metres, moves with the neck.
Made for THE GAMBIT's tram conductress: SHAPE=0:-1.8,5:1.5,7:-1.5,3:1 is a sturdy woman of 159 cm (CH42d),
her upper arm 0.270 m and shin 0.381 m against the template's 0.289 and 0.424.
The farm's hash cache is shared by every job, so a hash alone mustn't open it: on a cache hit, farm_media.py reads one
byte (Range: bytes=0-0) through the job's own URL, which raea's LFS signed only for an account that has the file, and
refuses the job if it doesn't answer. test/farm_media.py: the second job costs R2 one byte, and a job naming a cached
hash with a URL that doesn't open gets nothing. Live: the raea-1 Sprite's tour took its 5.2 MB from the cache
through prod's signed URLs (0.0 MB from R2), about $0.009 on cold containers.
media.ts's inputs skip what offload.ts's tar leaves out (./out/*, ./.git, ./.raea-cloud-out, or RAEA_CLOUD_GPU_EXCLUDE):
excluded() reads tar's patterns the way tar does, so an old render in out/ is no longer fetched for a new one.
repo.sh resolves its own path through a symlink, so the box's /usr/local/bin/raea-repo finds git-credential-raea.
Live on the raea-1 Sprite: it cloned cloud-tour with its agent key in 6 s, sent the render with 3 media files by hash
(not the earlier render), the farm had all 5.2 MB in its hash cache (0.0 MB from R2), 60 frames on a T4 for about
$0.005, 37 s round trip; the box pushed a 132-byte pointer and the Mac pulled the video.
Cloudflare's Browser Integrity Check refuses Python's own User-Agent (Python-urllib) on raea's domains, signed URL
or not, so farm_media.py's GETs and PUTs say raea-farm/1. A job stopped by its media (a fetch refused, a hash
wrong) now writes an empty changed.txt, so /out gives an empty tar instead of a 500.
Live on raea's workspace with raea-api's Git on Artifacts (an Enterprise test account): a box's clone sent 0.0 MB
of media, the farm took its three files (5.2 MB) from R2 by hash, rendered 60 frames on a T4 (about $0.013) and put
out/tour.mp4 (5.4 MB) in R2; the box pushed only its pointer and the Mac's pull got the same SHA-256.
Both ask raea with curl --fail-with-body and print its answer on a refusal, so a project whose account isn't on raea
Enterprise (Git on raea's servers is Enterprise's alone for now) reads 402 enterprise_required instead of a bare
curl error. raea-api's repos test checks repo.sh create says so for a Team account without Enterprise.
box.sh up puts git-lfs, deploy/git's repo.sh (as raea-repo) and git-credential-raea on the box, with a git identity
naming the box; box.sh key NAME takes a raea agent key from a pipe or the clipboard, never echoed, into the box's
env file as RAEA_AGENT_KEY and restarts its server, so its agents clone and push raea projects and offload.ts sends a
render's media by hash.
server/media.ts on a box's clone of a raea repo, farm_media.py standing in for the farm: every committed media file goes
by hash, the farm's copy of each is its hash, its new render goes to R2 by a signed PUT and is verified, and the
clone gets a pointer for it. raea-api's repos test runs it against a local raea-api, then pushes the pointer from the
box and pulls the render on the Mac (same SHA-256). The farm's PUT names its content type as git-lfs does.
In a raea repo with the box signed in (an agent key), offload.ts no longer packs the project's media: each LFS file whose
copy is its committed one goes by its object id with a download URL raea's LFS signs, and the farm fetches it from R2
into a cache on its volume keyed by hash (farm_media.py), checking each, so a file is fetched once across every job. A
job started with media=1 keeps its media outputs on the farm: the box asks raea's LFS for upload URLs, the farm PUTs
each to R2, the box verifies them (so they count in the account's storage) and writes pointer files. The farm never
holds a raea credential, only URLs signed for one object each. Media changed on the box and not pushed still goes in
the tar; without a repo or a sign-in, everything is as before.
Checked: test/farm_media.py (a local server for R2's signed URLs): inputs by hash, the cache hit on a second job, a
wrong hash and a path out of the job refused, outputs found by type and size and PUT, files for outside the project
left alone. Deployed to raea's workspace; test/farm.ts still renders a plain job there (90 frames, 69 s, $0.020).
tsc passes. The live run with raea's LFS waits on its deploy.
repo.sh makes a folder a project's repo on raea's servers (its Git on Artifacts, .lfsconfig pointing at raea, media decided
by type and size as the app does), clones one (Git, then its media) and signs a clone in. git-credential-raea is the
credential helper both hosts use: for LFS (the host of the repo's .lfsconfig) it answers raea's own token; for Artifacts
it asks raea's server for a token for that one repo just then. The token is an agent key on a cloud box, else a token
from the environment, else the raea app's Keychain item, so nothing is typed and no repo's config holds one. Bash and
curl only, so a Mac, Linux, a cloud box and Windows' Git Bash run the same.
Checked: raea-api's test/repos.sh runs both against wrangler dev with Artifacts' simulator: the Mac makes a project, a
box clones it with its agent key, pushes a render with plain git, the Mac pulls it, and neither repo's config holds a token.
deploy/login.sh gives a machine a Modal profile for the raea workspace (never made the default; a token that reaches any other workspace is removed at once) and a Sprites token for the raea Fly org, read from the clipboard so it is never typed, and writes the org where deploy/sprites/box.sh reads it. deploy/modal/guard.sh is the one check every Modal script makes: the profile reaches the workspace of its own name and none listed under private/cloud, with image builder 2025.06, the newest this client builds. deploy/modal/workspace.sh makes the workspace from nothing: the farm and made.app secrets, raea's models (once), TripoSG fetched inside Modal (deploy/modal/weights.py), and raea-farm, raea-step and raea-comfy; it repoints this machine's farm and upscale settings only after the farm answers, raea-step upscales a picture and ComfyUI reports its version. The usage lines now name the raea profile.
Checked: workspace.sh built the raea workspace and all three apps answered; test/farm.ts rendered edit.tsx there, 90 frames at 1080p on an A10 in 77 s, billed about $0.024; the guard refused an unset profile, a missing one and a denied one, and a wrongly approved profile was removed from a sample config.
When the GPU limit caps a job, each GPU now takes up to 4 parts from the job's queue (farm_plan.parts_per_gpu), each part still big enough that its start is at most a fifth of it, and the job runs on at most its GPUs at once (with_options(max_containers)). A GPU that finishes early takes the next part, so an L4 that fell in among L40Ss no longer holds up the job. Below the limit nothing changes: each GPU already gets just enough frames for its start.
Checked: test/farm_plan.py (8) passes, with a 1000-frame job on 2 stand-in GPUs in 8 parts; on the farm, 60 classroom frames at 64 samples capped at 2 GPUs ran as 8 parts, never more than 2 at once, 60 frames back in order, a warm part starting in about 2 s against 3.7 s cold, billed about $0.17.
deploy/modal/farm.py (app raea-farm) serves sdk/cloud's jobs protocol on many GPUs. A raea render to a video or a folder is probed on one GPU (frame 0 and the manifest), timed on 8 frames, then split into contiguous runs on as many GPUs as pay for their start (a start at most a fifth of the work, farm_plan.gpus_for), with an optional price ceiling (max_usd, exit 3). Video runs are H.264 parts that the coordinator joins by stream copy while it renders the sound on its CPU; Blender scenes (Cycles on OptiX) split the same way and encode their parts on their own GPUs. raea asks for T4, A10, then L4 (its frames are bound by the CPU); Blender asks for L40S, RTX PRO 6000, then L4 (the most samples a dollar). GPUs render without the clipping check, with 4 cores and 16 GiB, a 2 s idle window (at 60 s a job billed several times its GPU work), shader and kernel caches on the volume, and raea's models from the raea-models volume (deploy/modal/models.sh). Each job's log ends with its bill per container.
bench/gpus.py runs raea (edit.tsx, Solari, clip check on and off) and Blender's Open Data benchmark on every Modal GPU kind at once; bench/results holds the 11-17 run and bench/report.py prints its tables. deploy/sprites/box.sh puts raea, the ACP agents and the server on a Sprite with its renders sent to the farm; it reads the org only from ~/.config/raea-cloud/sprites.env and refuses orgs listed under private/cloud. The client and offload.ts pass gpus, gpu and max_usd.
Checked: test/farm_plan.py (7, stand-in GPUs) passes; test/farm.ts against the deployed farm returned edit.tsx as 90 frames at 1080p in 70 s on a T4, and Blender's classroom as 20 frames at 1080p and 256 samples on up to 10 GPUs (frames 3.1x faster than on one).
stage.show's render flag, stage.status's render/opens/adopted/last_show/props/held/controls (engine/page/stage
calls.rs, lib.rs, open.rs, status.rs), the composition's controls in the entry's settings (runtime/bundle entry.rs),
Live::open_render and props held per part (runtime/live lib.rs, open.rs, pick3d.rs, props.rs, raea-runtime-scene in
its Cargo.toml and Cargo.lock). In progress.
In runtime/export/src/render.rs: a bundle that holds data-3d starts its render with its 3D live (live_3d) when
RAEA_3D_FIRST=1, instead of throwing its first 2D frames away at the first 3D one (~300 ms of a warm 150-frame 3D
render, 11-16). Unset, nothing changes.
tint.rs's test unwraps copies()'s error, which needs its Ok type to be Debug. sdk/blender and sdk/godot link
sdk/raea's node_modules (a link isn't the directory node_modules/ ignored), and tsc's incremental record stayed
untracked in every SDK package.
The rain cone is raea-sys-exposure's (now public), chart merging takes raea-core-meshcheck's union-find (now public),
a texel's index is the atlas's own px(), a drop leaving a face goes through one drip() in runoff's walk, a spot's
spacing and the nine cells round a point read without the shapes other crates share, and raea wear bake's -o reads
as a match. Nine exact and three near-duplicate groups gone; the bake's tests unchanged.
raea-app-tools was 2050 lines, over the crate limit, with the motion verbs: they move whole to apps/motion
(raea-app-motion), and raea-app-tools re-exports it as motion, so the CLI's tools::motion calls stand. A path handed
to PyTorch goes through dunce::canonicalize (std's gives \\?\C:\ on Windows), and the run's temp folder is
raea-kimodo-PID (the retired name gone). The environment's venv and checkpoint folders are fields made with the
Torch, a constraint row's numbers are read without a closure, and what a folder takes on disk is io-home's
disk_use for raea setup motion and raea sounds alike: tools/dupes.sh's new groups from kimodo, folded.
The copy machinery (a copy's markers, its bare spawn, a part's material components found by type path, a mesh's
copies with its materials cloned as handles or with a colour a copy over one TintMaterial, a model's scene copied
placement by placement with a shader cover's link) is its own crate, which knows no rows; runtime/scene3d's
instance.rs reads the rows and calls it. raea-runtime-scene3d is back to 2000 lines. Tests:
a_models_shaded_parts_are_copied_with_their_surface, a_models_part_with_no_material_is_refused (moved).
A .glb gets a second uv set and four cause maps over it, kept by content in the composition's asset store: sky,
the year's sun, cavity and edge; run-off, what it left and its kind, and touch; height over the walk, the chart's
element and open sky; the winter sun, driven snow and where blown things settle. raea-sys-weathering packs planar
charts (flood, merge, split, absorb, hide) and casts parry3d rays; raea-sys-runoff walks rain down faces, along
ledges and off drips, carrying rust, copper, zinc and grime downstream; raea-sys-touch finds door leaves, treads,
rails, passages and gateways, and where plates, bills and nameplates belong; raea-sys-exposure takes the sun by
date and driven snow; raea-sys-glb reads and writes the .glb. wear.bake is registered with the calls crate's
natives (runtime/calls). Tests: weathering 10, touch 9, runoff 4, exposure 4, wear 3.
Each part's copies get the part's own material components as handles (instance.rs copy_scene, as a mesh row's
copies already did), so a model under a shader cover is instanced and still batches, and a shaded copy keeps the
link that makes it follow the standard material the rows animate. A toon or look surface still isn't instanced.
Tests: a_models_shaded_parts_are_copied_with_their_surface, a_models_part_with_no_material_is_refused.
A mesh row with `inst` refused every material but the standard one ("not toon, grid, wear or shadow-only"), so
a set drawn with raea-sys-procmat or raea-sys-wear surfaces (projects/gambit's interior kit: plaster, wood,
jute and brick, all procedural) had to draw one Mesh3d a placement. Now each copy gets the row's own
MeshMaterial3d<M>, whatever M is: found on the row by type path (each MaterialPlugin registers its
MeshMaterial3d's type) and cloned with an opt-in EntityCloner, so the copies share the handle and Bevy still
batches them. A colour a copy (inst_tint) still needs the standard surface and says so; a shader over the
copies is still refused, as before.
Checked: two unit tests (copies share a non-standard material; a mesh with none is refused), and a render of
nine chairs and sacks in the kit's procedural wood and jute as <Instances> against one Mesh3d a copy: RMSE
1.4e-5 (the installed raea refuses the same composition).
11-17: Solari measured accurate but 2.6 times raster's frame on FLOOR3, so raea Light becomes raea's own
renderer in the design Unreal's Lumen and AMD's GI-1.0 use: raster for what the camera sees and direct light; a world
radiance cache and screen probes traced on systems/rt for bounce light; a surface cache captured through the deferred
pass every material writes, so a hook's look reaches the rays; traced reflections; occlusion from the GI; skin, hair and
cloth as shading models; raea's own path tracer as the reference. Fourteen steps, the world radiance cache's cost on
Berlin first (LT2), Solari removed last (LT13). Findings M11-M15 added (Solari's cost, systems/rt has no hit data, Bevy's
irradiance volume, the character SDK's lit hooks, the editor's budget isn't a game's); the game's own budget (60 fps at
1080p, raea GI at most 5 ms) is proposed, to be confirmed.
raea light check now plays each scene live (raea play --offscreen --no-vsync --3d, 6 s at 1080p) and reports its
milliseconds a frame; adds a traced-ao path (raster with systems/rt's traced occlusion); measures distance on 8x8-pixel
block means, so antialiasing and a reference's leftover noise count for little; measures flicker as the second
difference in time of each pixel's error against the same shot path-traced, so motion cancels; keeps a reference only
while it's the same frames at the same samples (made.json); and takes a scene's own sample count. The path tracer's
reset is now one-shot, as Solari's is (vendor/bevy_solari pathtracer/extract.rs, raea: mark): it stayed set, so a cut
under the path tracer restarted accumulation every frame after it. RAEA_LIGHT_SPP restarts each frame's accumulation
(raea-render restart_pathtracer), so a thing moving under a held camera isn't smeared.
LT1 measured on FLOOR3 against a 2048-sample reference: raster 1.38 stops off (worst tile 3.37), 18.0 ms a frame;
Solari 0.96 (2.62), nearly all one bias a stop dark, 47.6 ms a frame. Berlin is the main scene from here; it and the
kitchen get references once their materials and lights are in the traced path. LT1's plan table is in the feature.
RAEA_LIGHT=raster|solari|pathtracer puts every 3D camera on one light path whatever the composition asks
(engine/render/raytrace force.rs; Solari's plugins come in when it forces them), and RAEA_LIGHT_SPP=N draws each
frame N times (runtime/export bevy_frame.rs) so a path-traced reference converges: gambit's street at 1080p, 128
samples, in about 11 s. raea light check SCENES.json -o DIR (new crate raea-light) renders each scene's stills on
each path and against its reference (kept until --fresh), and reports the distance in stops (mean, bias, worst
64-pixel tile), a moving shot's flicker (each pixel's second difference in time) and a still's cost in
DIR/report.json and a table; metric.rs has unit tests. bench/light/scenes.json lists the reference scenes: gambit's
street (no reference until LT2, LT3 and LT5), FLOOR3, gambit's first-person kitchen table and the glade. The anything
film's kitchen doesn't render today: every composition in content/anything throws "Can't find variable: raea".
The ask on 11-17 was for Unreal-level quality and one centralized strategy in place of today's misaligned paths. The
file records what was measured on gambit's people-ingame (M1-M8: five lighting paths, hooks absent from the
G-buffer, characters untraced, no owner, no reference, an unannounced brightness change), the decisions (D1-D12:
Bevy and wgpu stay, Solari's ReSTIR becomes raea's own light-transport core, one TLAS, one material in every pass,
a path-traced reference as the bar) and the steps LT1-LT11, the bar first.
Declared in the loop's body, naga's Metal output reassigned the query each pass (rq = intersection_query<..> {}), and
Metal's intersection_query has no assignment, so the raea_traced_ao pipeline failed to build on the Mac and every
render with RAEA_TRACED_AO refused. passes_rt.wesl already keeps its query in a helper (blocked) and builds. Checked
on gambit's people-ingame (frames 0, 6, 11): it renders, darkening contacts and creases.
raea motion runs Kimodo on MLX on a Mac as before; on Linux and Windows it runs upstream Kimodo (commit e1c219c, Kimodo-SOMA-RP-v1, post_processing off) on PyTorch, CUDA when there is an NVIDIA GPU, else the CPU. Python hands back the sampler's raw features and raea's Rust decoder makes the clip, so both write one clip format (systems/kimodo torch.rs, torch/run.py). raea setup motion [--check] fetches or checks the MLX models on a Mac, and elsewhere makes a uv Python 3.11 environment and fetches the weights (Llama 3 from NousResearch's ungated copy, its files checked against Meta's SHA-256s, each repository pinned). Checked on the Mac: MLX unchanged, the torch path's Rust half on MLX's own features (same keys, root gap 1.1e-16 m), cargo check for macOS, Linux and Windows. Not yet run end to end on Linux or Windows (docs/character.feature CH15d says what is and isn't tested).
scene3d's shade_meshes: a mesh row waiting for its shader gets it after a live frame's or a fed render's rows too, not only when a model spawned (a shaded part with no model beside it drew its bare standard surface). docs/first-person.feature: the first-person hands, interactions and cutscenes spec (FP1-FP11).
motion/delivery says a cut an editor finishes goes out in layers: `raea export capcut` (or the app's Export to,
then CapCut) and `raea export xml`, its NAME.premiere.xml and NAME.resolve.xml each for its own editor; what arrives
(footage and sounds as clips of their files, keyed where they move, raea's drawing as transparent clips over and
under them, captions on their own track with an .srt, reference.mp4 to compare); that captions and graphics are
pictures there, so a word is fixed in raea and exported again; and what to pass on from the notes, CapCut's crop
that can't change over a clip first. motion/words says to mark captions data-raea-role="caption", in its example
too. The skill's copies and reference/cli.md (now listing raea export layers and raea export xml) are regenerated in
raea-skills; tools/skills.sh check-cli passes against this tree's raea.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The manifest says what of a video a box it's in leaves showing (clip) and its object-position; layers.json keeps
each footage clip's box, clip, object-position and opacity at the frames they change (keys). One reading of a
picture (plan::picture: object-fit, object-position, cut only where its box or a box it's in cuts it inside the
frame) places it in every export:
- the FCP7 XML keyframes Basic Motion, crop and opacity, written per editor (NAME.premiere.xml, NAME.resolve.xml):
Premiere's crop in Basic Motion, Resolve's as FCP7's Crop mirrored for a phone's take stored turned; Scale and
Center each in that editor's clip at Scale 100 (Premiere: the media as described, a phone's take as stored;
Resolve: the media fitted to the timeline), read from what each did with what it was given
- the CapCut draft keys position, scale and opacity (common_keyframes); its crop holds as the first frame shows it,
and a crop that changes over the clip (a split screen's seam) is said: CapCut can't show it
- keys a straight line between gives to 0.15 px are left out; a clip at another speed is placed at its own, and said
Also: a layer's ProRes movie that opens on an opaque frame keeps one sample description with alpha (VideoToolbox
otherwise starts a second, which Premiere won't import and Resolve shows opaque); a sound's clip ends where its file
does; the stack's duplicate code folded (tools/dupes.max 59 -> 58 near).
Checked on 11-17: Premiere Pro 26.2.2 and DaVinci Resolve 21.2.0 on the Telluride test (iPhone takes, a keyframed
split close) and the positioning test (horizontal and phone takes, 1080 and 4K compositions); CapCut 9.5 on Telluride;
LA3a composites the fixtures and the positioning test back as the render at 33-49 dB.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Each channel of a stereo file is panned to its side by FCP7's Audio Pan on its clip (-1 left, 1 right), as Resolve
writes it. Without it Premiere and Resolve both imported the channels centred, so a stereo track played as mono
(heard with a raea-rendered track, a low note left and a high note right). Premiere's own track pan
(PannerCurrentValue) was tried alongside it and neither editor read it, so it isn't written.
- Sequence explodedTracks, a timecode on every file and a uuid, as Premiere writes them: without them Premiere
imported the mono-a-channel sound as an empty A1.
- docs/layers.feature: LA5a's sound layout and pan; LA5b's results on 11-16 (Premiere Pro 26.2.2, DaVinci Resolve
21.2.0: the multi-clip test with every track, clip, source time, placement and caption as raea rendered it, nothing
offline, ProRes 4444 transparent, footage sound linked, music stereo); LA5c, CapCut 9.4.4589 opening the drafts
(CC3a). No editor needs an XML of its own.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- apps/layers xml.rs (pure): layers.json as xmeml version 5: one sequence at the composition's rate (29.97 as 30 NTSC)
and size; video tracks bottom first; footage at its file where it is, placed by Basic Motion (scale, centre in frame
units), a Crop where object-fit: cover cuts it, its Opacity; the layers' movies full frame, alpha straight; Audio
Levels as linear gain; a footage clip linked to its own sound.
- Sound laid out as Premiere Pro 2026 writes it, read from an XML it exported: the sequence explodedTracks, each
stereo file's channels described one by one, each channel a mono clipitem on a track of its own (sourcetrack and
outputchannelindex 1 and 2), every clipitem of a clip and its linked clip linked together, a masterclipid each, and a
timecode on every file. The first layout (one stereo clipitem on a "Stereo" track) imported with no audio at all.
- File gains channels and sample_rate (layers.json reads files without them as stereo at 48 kHz).
- `raea export xml EDIT.tsx [-o DIR]`: the layers into out/xml/NAME, NAME.xml beside them; in raea's help and the
manual.
Checked so far: the multi-clip test imports into Premiere Pro 2026 with its video and, after the layout above, its
sound. Still to check: placement, transparency and Unlink in Premiere; all of it in Resolve.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A picture in picture on a card over footage that fills the frame lost its card: the card is a background holding
footage, so it went into the under layer, beneath every piece of footage, where the full-frame clip covers it (the
multi-clip test's C in the corner over B at 4-6 s: 23.2 dB). CapCut's export always had this.
- systems/layers hide.rs: RAEA_LAYER=behind:FILE draws the backgrounds of what holds FILE and no other footage; what
holds other footage too is cleared, not hidden (the page draws nothing inside a hidden element); the rest hidden.
- apps/layers: a behind:FILE pass for each file shown as a picture in picture, its clips kept only where it is one, on
a "behind picture in picture" track (Layer::Backing) between the pictures in picture and the footage that fills the
frame. CapCut names it "raea behind picture in picture".
- composite.rs finds a layer's frames by its movie's name (several backing passes), and RAEA_LAYERS_PROJECT checks a
project of its own: the multi-clip test passes at 36.2-42.7 dB (37.5-38.3 in the picture in picture); the fixtures
still pass.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- apps/capcut exports the composition in layers first (raea_app_layers::export into out/capcut/NAME: the reference,
the graphics, under and captions passes, layers.json) and writes layers.json as CapCut's tracks (from_layers.rs,
pure): bottom first, the footage CapCut's main track, "raea overlay" (the graphics) above it, "raea captions" above
that, "raea under" below the footage when there is one. A footage clip's linked sound is its volume, as CapCut keeps
a video's own sound (Extract audio separates it); footage with no linked sound is silent.
- The reference render is copied into the draft's folder, on no track (where CC2d kept it only beside the draft).
- The export's own three renders, its overlay and under spans, its footage-covered check and its media probes go:
raea-app-layers does them, for every editor. CapCut keeps where a picture sits in its terms (plan::place) and the
draft's cover. The manifest readers' tests move to raea-app-layers with the code; `lay` goes (model::lay).
- What changes for a composition with no captions: the 3D is under the footage, as raea draws it, not over it.
Checked: lower-third and three-d (apps/layers/fixtures) exported as drafts with -o: footage, raea overlay, raea
captions (frames 10-50) / raea under, raea overlay, raea captions; reference.mp4 in each draft folder. Tests:
raea-app-capcut (with a layers.json-to-tracks test), raea-app-layers; tools/layers.sh; manual regenerated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- apps/layers (new): `raea export layers EDIT.tsx [-o DIR]` renders the reference with its manifest, then the
graphics, under (when there's footage or 3D) and captions (when a frame shows one) passes; writes each layer's
movie, layers.json (model.rs: the editor-neutral timeline, tracks top to bottom, footage linked to its own sound),
NAME.srt (srt.rs) and reference.mp4. The manifest's readers (runs, sounds, spans, full, resolve) move here from
apps/capcut/src/plan.rs; CapCut keeps its own placement and track laying and reads the rest from here.
- engine/page manifest.rs: a text entry inside data-raea-role="caption" says caption: true (the SRT's words, and
whether the captions pass runs). runtime/export: the manifest says has3d.
- The 3D moves from the graphics layer to the one under the page (raea_sys_layers::draws_3d): raea draws the 3D first
and the whole page over it, footage included. The under pass renders opaque, since --alpha clears the 3D's clear
colour, which is the page's background over 3D (three-d lost its background: 21 dB before, 39 after).
- vendor/blitz-dom mutator.rs: an element whose :has() was matched (ANCHORS_RELATIVE_SELECTOR) is matched again when a
node under it is inserted or removed, as Chrome does. A caption a <Sequence> put on the page at frame 10 stayed
hidden under the captions pass's :not(:has(...)) (lower-third: 23.5 dB before, 34.1 after); footage coming in
later under RAEA_HIDE_MEDIA=under had the same fault. Recorded in vendor/vendor.toml.
- apps/layers composite.rs (LA3a), an ignored test run by hand with a GPU: four fixtures (apps/layers/fixtures)
exported, composited back bottom to top at each clip's first, middle and last frame, against the reference:
highlight 33.0-35.1 dB, lower-third 34.1-35.1, pip-card 33.2-33.5, three-d 39.1-39.8 (floor 30).
- docs/layers.feature brought up to what was built; docs/manual/reference/cli/export.md regenerated
(tools/manual-ref.sh gen). The skill's reference/cli.md (raea-skills) needs the new verb with LA7.
Tests: raea-app-layers, raea-app-capcut, raea-sys-layers, raea-runtime-scene, raea-runtime-page, raea-runtime-bundle,
blitz-dom, raea-cli (with the skills submodule), sdk/timeline; tools/layers.sh. raea export capcut runs as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/layers.feature amended: text is part of the graphics layer (a text layer only ever opt-in), one `raea export xml`
for Premiere and Resolve, the composite check a test of the method rather than every export's, no reuse of an earlier
render, no unmarked-caption heuristic.
- sdk/timeline: the captions operation's `text` ops say `caption: true`, as does a caption clip added on its own
(said: true), so the code raea-feed writes can carry the mark.
- runtime/page elements.rs: data-raea-role is kept on the page (KEPT names the data-raea- props the page keeps; the
mark was dropped before it could be matched).
- systems/layers hide.rs: RAEA_LAYER=captions draws only what is marked a caption: the page draws nothing inside a
hidden element (vendor/blitz-paint render.rs), so what holds a caption is cleared, not hidden, as RAEA_HIDE_MEDIA=under
clears what holds footage. graphics and under are RAEA_HIDE_MEDIA's 1 and under, less the captions. RAEA_HIDE_MEDIA's
own CSS is unchanged, so raea export capcut is too. hiding_css is the pure function hidden_css reads the settings into.
- runtime/scene items_of: a layer that draws no 3D (captions, under; raea_sys_layers::draws_3d) keeps only the
cameras, since Bevy draws the 3D and the page's CSS can't hide it. This also keeps the 3D out of capcut's under pass
once it moves onto RAEA_LAYER.
- runtime/bundle cache.rs: a render with RAEA_LAYER isn't the export cache's, as with RAEA_HIDE_MEDIA.
Checked with a source build on two fixtures (footage on a card, a lower third and a caption with a highlighted word;
a 3D turntable with a title and a caption): each layer draws only its own, and raea export capcut writes its draft
as before. Tests: raea-sys-layers, raea-runtime-scene, raea-runtime-page, raea-runtime-bundle, sdk/timeline.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/layers.feature after working through the implementation:
- Text is part of the graphics layer. Pulling words apart from the graphics they're built into (kinetic type, words
cut from a shape, a word behind a graphic) caused more problems than it solved; a text layer may come later, opt-in
only (an element marked data-raea-role="text"), never guessed.
- Captions are the only layer split from the graphics: marked data-raea-role="caption", nothing guessed.
- One `raea export xml` for Premiere and Resolve; a command of an editor's own only if testing finds it reads the XML
differently.
- Leaner: the layers composited back is a test of the method, not run on every export; an export always renders its
own reference; no `raea check` heuristic for unmarked captions; no moving covered captions (captions go on top).
- What rendering the passes taught: the page keeps only the data-raea- props it names, it draws nothing inside a
hidden element (so the captions pass clears what holds a caption), and 3D is Bevy's, so a layer without it leaves
the 3D out of the scene and keeps its cameras.
Spec only; no code.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The last of the sweep (57f3ef8db3, e388258bff): engine/render's texture folder uses dunce::canonicalize, which gives C:\... on Windows and is std's own call on the Mac and Linux. It takes engine/render/src/lib.rs off tools/windows-paths.sh's WAITING list, so the check holds at zero with no exception.
The check for the sweep (a927fbb027, 57f3ef8db3, e388258bff): it fails on a std or tokio canonicalize(), which gives \\?\C:\... on Windows, and on a HOME read that doesn't name USERPROFILE, which Windows leaves unset for an app opened from the Start menu. Comment lines, vendor/, and the HOME of sdk/ui's conformance and parity tools (Mac and Unix only) aside. tools/agents/check runs it once this is on main.
One file waits: engine/render/src/lib.rs, whose fix is on windows-paths-render while that crate holds other unlanded work. A waiting file with nothing left to fix fails the check, so the list only shrinks; windows-paths-render takes it off.
Checked in an export of main with this added: ok, engine/render/src/lib.rs waiting. With engine/render's fix as well: fails, saying to take it off WAITING. Without the list on the fixed tree: ok, and a planted p.canonicalize() fails with its file and line.
Four of the five crates 57f3ef8db3 ("all but five crates") left out while they held other uncommitted work: engine/page/stage's ~/ path for a shown file reads raea_io_home::user_home() (HOME, then USERPROFILE), and runtime/bundle's cache and freshness checks, runtime/export's render, review and scene, and runtime/live's open use dunce::canonicalize, which gives C:\... on Windows and is std's own call on the Mac and Linux. engine/render, the fifth, comes with tools/windows-paths.sh on windows-paths-render.
That other work is parked as found on realtime-wip (stacked above this, never landed) and render-3d-first-wip.
The page reads globalThis.__raea_window before its bundle runs (chrome.rs's preamble: chrome, lights, bar). It now also carries os, std's name for the system ("macos", "windows", "linux"), which raea-feed's src/lib/machine.ts reads (raea-feed PR #88): the navigator in raea's window always claims a Mac, so this is how the page knows to say "this PC" and Ctrl+Z where a Mac's says "this Mac" and ⌘Z. A window without it keeps the Mac's words.
Test: the_preamble_names_the_system (both chromes carry os).
canonicalize() through std gives \\?\C:\... on Windows: a path Git for Windows can neither read nor lock, Rolldown can't resolve, and which shares no root with the C:\... git and everything else print. It broke a new workspace's git config (fixed in apps/workspace earlier today). Here the calls in the apps (CapCut, check, direction, engines, fingerprint, game, interchange, judge, solid, sound, targets, tools), the bundler, the CLI, the modules loader, the native shim's realpath, the page's motion, io (assets, gen, home, shell), runtime/bundle/lib, js, track and world, the systems (fingerprint-use, footage, index, ml, page-net), the bridge bench's examples and the sdk/ui test tools use dunce::canonicalize, which gives C:\... wherever a path can be said so and is std's own call on the Mac and Linux.
Reads of the home folder took HOME alone, which Windows doesn't set for an app opened from the Start menu or Explorer, so the taste file, the settings file, the inbox, the npm store, the caches (sounds, splats, goo, ingest, speech, Core ML, the portable perceive models), the node shim's os.homedir() and CapCut's drafts were looked for under whatever folder raea ran in. raea_io_home::user_home() reads HOME, then USERPROFILE (Git for Windows' order; an empty one counts as unset), and models(), caches(), logs(), env_path() and offline() use it, as do the places that had their own fallback.
The caches that had their own copy of "this variable, else this folder under home" (splats, goo, ingest, the npm store, Core ML's models) now call raea_io_home::env_path and models(), and raea_io_home::real canonicalizes a path or keeps it as given, so tools/dupes.max comes down to 289 exact and 58 near. tools/skills.sh reads a variable from env_path("RAEA_...", ".raea/...") as it did from env::var, so files.md keeps RAEA_NPM_HOME on ~/.raea/npm (every generated reference is unchanged).
Five crates hold other sessions' uncommitted edits (engine/page/stage, engine/render, runtime/bundle, runtime/export, runtime/live): their few calls, and tools/windows-paths.sh, the check that keeps both at zero, land once those are committed.
Checked: cargo check --all-targets of every crate changed, and of sdk/ui/conformance and sdk/ui/parity. On a Windows 11 PC and on macOS the unit tests of raea-io-home (user_home's order and an empty HOME, now in caches_logs_and_the_home_folder_follow_the_platform), raea-app-check, raea-app-workspace, raea-app-registry and raea-core-facts pass (5, 27, 10, 7, 17).
The developer, 11-16: "in the chat ui having something that if its rendering we can see a progress meter".
Every direct render (fed, CPU, and to a folder or a still) writes a small file when it starts, as frames finish (at
most four a second, and at the last), and takes it away when it ends however it ends:
{pid, out, cwd, frames, done, started, updated}. RAEA_RENDERS moves it, RAEA_RENDERS=off writes none.
The raea app reads it for the chat's render meter (raea-feed render-meter). Not built yet: written while the
developer's renders hold the machine; L1 builds it.
The feed app (apps/app) is moving into raea's own tree. skills.sh read it as a checkout of its own at a commit (git show REV:path, git grep REV), and both quietly come back empty when apps/app is a folder of the tree: REV is then a subtree, read from inside it. Now the app this tree tracks wins, read through app_show and app_grep from its files; a tree without it reads RAEA_APP at RAEA_APP_REV as before, so today's checks, L1 and release.sh change nothing until the move. l2.sh takes an app in the commit's tree as it is, removing the old clone from its checkout first, and clones the app only for a commit from before. release.sh and the Linux build say so.
The agent's sound line in engine/cli puts a sample library first, names raea guide sources, says music is composed for the cut and never a pad or drone by default, and keeps TokenSynth for a timbre no library has. Audio's src doc no longer offers lyria(), which is retired (and audio-stack.md says so), and the manual's example drops the media/ prefix staticFile doesn't take. The CLI pages say what is true: raea sounds' ids are exact (vcsl/upright-piano-knight, vcsl/bass-drum-1) and --all gives a pitched instrument one take a note; an SAO take is at most 11.9 s, a seed's take is played from its file, and SAO suits effects better than music; TokenSynth is for a missing timbre, curated; setup-audio says what each model fetches, its size and licence (SAO's is Stability AI's Community License, not an open one), what it needs and what its failures mean.
The local models install on any Mac (setup through tools/ensure.sh, TokenSynth pinned and checked, proven on a fresh account; each model's licence shown and kept, SAO's commercial use decided once; the app offering the models before a render blocks on gigabytes), the vetted packs reached through raea sounds (pinned, licences and credits copied, Ogg converted, Sonniss and Pixabay never mirrored, nothing non-commercial; dynamics, round robins and humanize in one Sampler; a MIDI file and a SoundFont played in raea), and a drone caught by raea check, its thresholds set from approved scores before it ranks above P3.
The music and sound guides taught a drone score (a pad and a sine sub through a low-pass into a 6 to 7 s reverb, a chord every four bars), and agents' pieces came out as drones and pads instead of scores. motion/music now starts by deciding what each scene is heard as (silence, its own sound, source music, score, effects), spotting the cut (cues, hit points, a button) and taking the tempo from it, then writes for it: a motif, harmony that moves, rhythm and groove, orchestration by register on sampled instruments, an arrangement that follows the edit, a reverb per instrument rather than a wash over the bus. A held texture goes in only when a scene names one. Its two examples are a typechecked eight-bar cue (piano comping, a pizzicato ostinato, a flute motif, bass and a sampled kit, ending on a button) and a game's question-and-answer loop with one-shots on events. motion/sound adds layered effect design (transient, body, weight, tail; repeats varied), room tone, ambience and foley passes, placement, and a cue that lands on the end card in its example. The rubric's sound questions ask whether the music is written for the cut, and a new section lists how generated music gives itself away; the floor refuses music by default; remix, quieter, story, games and motion.md's rule 8 and example follow.
motion/sources is new: which source fits which job, the licence rule (CC0, public domain, CC-BY credited, MIT and Apache, free commercial licences; never NC, ND, Sampling+, personal-use or share-alike), how SAO and TokenSynth get onto a Mac as setup-audio really behaves (what each fetches, its size and licence, that uv and git must be on the PATH, what exit 127 and 75 mean), the four raea sounds packs with their exact ids, the packs fetched by hand with licence and source, the excluded ones, and how to load one-shots, SFZ instruments by dynamic and a MIDI groove converted to JSON.
A page's media element played again after its end told the window to start from 0 but kept currentTime at the end until the window's first frame came; a pause in between (two presses of play on a loaded machine) paused it back at the end, and the play event read the end's time. play() now puts currentTime at 0 first, as a browser's does (the seek to the earliest position comes before the play event). The feed's timeline now stops a film at its end instead of going round, so this is how its play starts again.
Test: sdk/ui/test/dom.test.tsx, the element played to its end and played again: currentTime 0 at once, and the play event at 0.0.
media_play.rs went over the 500-line limit with the seek-while-playing test (tools/size.sh); its tests module moves, unchanged, to media_play/tests.rs.
The founder, 11-16: timeline playback of plain pre-rendered films is choppy and repeats itself. Three causes were in the window's media path.
A seek made while a film played (the timeline's ruler, its Home key, the next clip of an edited film) left the frames the decoder had already sent for the old place in the page's queue, due by the wall clock, so they could show after the seek's own frame: a stretch shown again, or a step back. The page now drops them when it seeks and keeps none that come while the seek is on its way (keep_due in runtime/dom/media), and a seek that fails no longer holds frames back.
The decoder restarted its clock at the seek's time before it had decoded the frame there (from the keyframe before it: 30 to 300 ms at 4K), so the frames after a slow seek were due at once and skipped to catch up. It now sends the seek's frame first, then starts the clock and plays on from the frame after it (media_play.rs, index_at).
The sound clock was the device's position read at each callback: it stood still between callbacks and jumped a buffer at each (about 11 ms at 48 kHz with 512-frame buffers, a staircase under a 120 Hz page), the output delay subtracted from a fresh reading could put it behind one already read, and a start made during a callback was overwritten by that callback's write. It now runs on from the last callback's position by the time since it, held to what that callback wrote, never earlier than a time already read, and a start made during a callback stands (Shared::time_at in media_sound.rs).
Tests: media_play's a_seek_while_playing_answers_first_and_plays_on_from_there (a 3 s clip played past 1.2 s, seeked to 0.5: the seek's frame answers, then ten frames in order from 16/30 with none skipped, the first due a frame after the answer); media_sound's the_clock_moves_between_callbacks, a_late_callback_holds_the_clock, a_start_during_a_callback_stands and the_delay_never_takes_it_back; runtime/dom/media's frames_decoded_before_a_seek_are_not_kept. With RAEA_AUDIO_MUTE=1 the clock is the wall clock, so the sound clock's change is held by its unit tests, not by the headless play bench (the app's e2e/playback.spec.ts, docs/realtime.feature RT3).
sdk/r3f/src/three/kinds.ts lists how each raea kind is drawn when an R3F scene goes back to three. Environment now has a room form (three's RoomEnvironment, built in raea's engine), which room.ts draws through PMREMGenerator.fromScene; the table said panoramas only.
three's Matrix4.decompose (0.185) gives a matrix whose determinant is 0 the scale 1 and no rotation, and sdk/r3f read every object's transform through it (scene.ts place, and the InstancedMesh, BatchedMesh and sprite paths). So scale={0}, scale={[0, 0, 0]}, scale.set(0, 0, 0) and a pop-in's frames before it starts were sent at scale 1, and raea drew the object at full size: a character popping in from scale 0 showed at full size for its first frames, then snapped small and grew. three draws an object by its matrix: at scale 0 as nothing, with one axis at 0 flattened.
src/input/decompose.ts is three's decompose where the determinant isn't 0 (the same numbers) and, where it is, each axis's length as its scale (0 for an axis scaled away) and the rotation of the axes it keeps. place, an InstancedMesh's copies (one scaled to 0 is shrunk to nothing, as a copy past count is), copies drawn as meshes, a BatchedMesh's instances and a sprite's world scale read through it. raea's engine already takes a scale of 0.
Tests: test/scale.test.tsx (a group's scale={0}, a mesh's [0, 0, 0], scale.set, a pop-in, useFrame, a flattened turned mesh, an instance and a sprite scaled to 0; its three scene tests fail on the code before, all five pass). test/scale/check.sh renders an unlit and a lit still of three boxes scaled to 0 beside a control box: 10,652 and 10,646 green pixels before, 0 and 0 after.
sdk/guides/craft/bevy/r3f.md: Bevy lights every camera with a white ambient of 80 cd/m², which three never has, so a
three.js scene's metals and dark surfaces glowed where three draws them black (a product shot on black: crop SSIM 0.83,
0.996 with the ambient matched). <R3F> sends an ambient of 0 since 0.1.6 (IR2); the guide says to add it by hand on 0.1.5
and earlier and in a three.js scene rebuilt with raea's own components, and that raea's ambient lights the specular too.
skills: raea-skills #96 (4f32e4b), the guide's copy and reference/files.md's row for the JS heap log
(~/.raea/logs/js-heap-, perf-js-upkeep below).
The page loop (raea-runtime-dom's host step) never asked JavaScriptCore to release what it had freed, so the app
window's JS memory (WebKit Malloc) grew 272 to 448 MB over an hour of use while the live heap stayed ~60 MB. Upkeep
(raea-runtime-jsengine) releases it every RAEA_JSC_RELEASE_S (5; 0 never), as raea-runtime-react's thread already did:
the same window then held 166 MB flat.
RAEA_INSPECT=1: every RAEA_JS_HEAP_S (30) a full collection, then one JSON line of the heap's numbers in
~/.raea/logs/js-heap-<pid>-<n>.jsonl (JavaScriptCore's JSGetMemoryUsageStatistics, QuickJS's memory usage), so what a
page keeps can be read over a session on any engine; and on JavaScriptCore the context is inspectable from Safari's
Develop menu. Off by default (the collection stops the page's thread for 6-13 ms).
IR2: a three.js scene with no ambient light kept Bevy's default GlobalAmbientLight (80) in raea, which lights every
metal evenly where three leaves it black outside its highlights. input/scene.ts now sends an AmbientLight of 0, white
so it lends no colour, when the scene has none; raea sums a camera's ambient lights, so a composition's own beside the
<R3F> is kept. The engine's global ambient is unchanged (Shane's call). Under direct light the earbuds' case goes from
SSIM 0.83 to 0.996 on the model's crop, the Gerber knife 0.94 to 0.98, the chest 0.88 to 0.94.
IR5: a material with depthTest false (a mascot's face decals on its body shell) was drawn depth-tested and lost. A
basic one is now three's own basic program (builtinPart, as matcap and normal are), a standard or physical one its
patched program, and a ThreeShaderMaterial without the depth test is drawn with the transparent ones, after everything
opaque. The mascot's face is drawn (0.96 to 0.99). renderOrder among such overlays still needs a sort bias in the
engine (left open in IR5).
R3F8's 43 cases score as before (in-drei 0.9935 to 0.9943); sdk/r3f's tests: 2 new, the one failing coverage row fails
on main too.
The 11-16 goal: three.js parity, an img2raea skill, environments, scene data, and where procedural, neural and
measured methods belong. An img2threejs factory already draws in raea unchanged (<R3F><primitive>); the spec plans the
rest: the showcase as a local parity corpus scored on the model's crop under four rigs (IR1), the five R3F gaps it
found (IR2 Bevy's default ambient light leaking into scenes with none, IR3 ambient lighting specular, IR4 anisotropic
metal, IR5 depthTest-off overlays, IR6 window.location), img2threejs's --target raea-tsx plugin with raea as the
render authority for its gates (IR7), the method in raea's own skill (IR8), a trial on our own pictures (IR9), scene
data both ways (IR10-IR12), places from one picture (IR13) and the map of models and procedures with their licences
(IR14).
docs/layers.feature LA1-LA7: captions and text marked (data-raea-role), a transparent pass per layer only at export
(a render outside an export stays one pass), the layers composited back checked against the reference render, one
editor-neutral layers.json behind raea export layers, capcut, premiere and resolve (FCP7 XML), captions as a styled
movie with an .srt beside it, reference.mp4 in every export's folder, and raea's timeline laid out the same way.
Spec only; no code.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Agents using raea, in the app or in a terminal, had no way to tell raea about a bug they hit. raea bug TITLE... --text TEXT [--command CMD] [--error TEXT] [--agent NAME] [--dry-run] posts to raea.io/v1/bugs/agent: words only, raea's version and the OS added by the host (native.ts, curl; RAEA_API names another server), paths, emails and key-shaped strings taken out before it leaves (the server scrubs again), the harness as the agent unless --agent or RAEA_AGENT says. It reads no keychain, so it never raises a prompt in a headless run. The server counts the same bug again on the first report and takes five a day from a machine; --dry-run prints exactly what would go.
engine/cli/conformance/bug.test.ts (5 tests, the command's side with the host faked); docs/manual/reference/cli/bug.md and the index row (Agents and setup).
Checked: bun test (org, edit, extend, tools) 33 of 33; the app's vitest 1621 with these files; e2e chat-plan in raea's window, where a real ACP stand-in's close without all is refused and its retry with all: true closes.
raea clothes cover --hard [--sole MM] [--sole-colour #RRGGBB] [--panels #RRGGBB,...] makes footwear as its own mesh. Each foot gets the convex hull of the skin it covers, remeshed even, corners rounded and the collar opened over the leg. A flat sole sits under it, set out, in its own colour up the side. A toe cap, a heel and a side band take the panels' colours. It is skinned from the nearest covered skin and does not swing. Shoes laid on the skin read as bare toes.
tools/garments/outfit.py turns a description into garments. Footwear is hard; the sole's thickness and colour and the panels come from the words.
hide_under.py leaves out an inner garment's faces where they lie straight under an outer one's face (within 3 cm, at most 2 mm sideways), not only where a ray meets it.
The manual's clothes page describes the new flags. CH15c records the user's look at the Kimodo eval: all ten do lines read right.
Live play routes the pointer, wheel and keys to an app screen through the 3D (screen.rs route); its input log now keeps what reached the app screens each frame under `apps` (BevyPage::app_input) and leaves the keys they took out of the page's, and raea render --input gives the app screens the same (screen.rs APP_LOG), so the render draws what was played. Live play sets the app screens' frame each step. export-game writes each app screen's X.tsx.surface.js and .surface.css with the new bundle, and its check for the old surface runtime (a marker no player has had since Blitz left) is gone: every player draws app screens on its own Blitz page.
raea-runtime-appscreen opens each app screen's module on a BlitzPage of its own at the screen's size, on the shared device, with the CSS its modules import and Tailwind's for its folder (or an exported game's prebuilt X.tsx.surface.js and .surface.css). It is stepped once a frame: the input route() gave it as Blitz's pointer, wheel and key events, then one update that runs its JS on the frame's clock, and paints; the draw's later updates while faces load only paint. runtime/page's sync steps every app screen (screen.rs step_all, at at_frame's frame in a render and set_app_frame's in live play) instead of saying it isn't drawn, and its picture goes with the nested screens' (screen_textures, frame_all) to Engine::copy_screen or set_screen_picture.
raea-runtime-jsengine at_clock(ms, f) runs f with this thread's JS clock (the timers' now and performance.now) held at ms, so a root stepped on a composition's frames sees the same time in a render and its play. raea-runtime-bundle-lib app::bundle_screen bundles a module as an app is, its default export given {width: innerWidth, height: innerHeight}: an app screen's, one bundle for a screen of any size. bundle_surface (real react-dom/client into #root, the old Blitz surface's entry) is gone; nothing calls it.
The host's geometry each frame has every number to a hundredth (systems/page snapshot.rs), scroll offsets among them, and the page's scrollTop read a written offset back unrounded. A write of 1074.9931 then looked like a move the next frame took back to 1074.99. use-stick-to-bottom's spring keeps the part of a step that hasn't moved yet, as Chrome's snapping to pixels needs: here it threw it away each frame, its steps under 0.005 never arrived, and it wrote every frame for good. In the app's chats a long transcript's last turn never held still after a turn ended (the feed's smoke 30 and 37 failed in full runs on it, "moving"), and the window redrew it every frame.
Now a write is held to a hundredth, as the host will show it, the way Chrome snaps a written offset at once: the spring's steps add up and it arrives (1075 in about a second, then still).
sdk/ui/test/scroll.test.tsx: a spring stepping under a hundredth a frame, with the frame's geometry to a hundredth, arrives within 10 frames; it failed before the change (read back 74.9931 where the host shows 74.99). bun test test: 65 pass.
Checked against the PyTorch reference (tests.rs, fixtures in ~/.cache/raea-kimodo/mlx/ref/rust):
- the denoiser within 2e-3 on its features (two batches, padding, constraints, headings);
- a whole 100-step generation from the same noise and text within 0.002 cm at worst on the 77 joints;
- constraints become the same conditions (mask equal, values within 1e-4);
- the 8-bit encoder at cosine 1.000000 to the Python MLX 8-bit run and 0.999929 to float32 (over eight lines, the motion's joints move 0.01 to 0.74 cm on average and 1.44 cm at worst, against float32 text).
Kimodo's post-processing (its C++ foot-skate and constraint clean-up) is not ported: clips are post_processing=False. A seed here is not that seed in the cloud (PCG32 noise, not torch's).
raea motion is in the manual's CLI reference (docs/manual/reference/cli/motion.md, under "Generate and 3D tools", every flag described, a do line made between standing keys). The crate's small helpers that copied ones elsewhere are written once or rewritten (floats, cross, round, the .npy words, the clip's slug), so dupes stays at 292 and 59; dyn-clone leaves NOTICE's catalog list, since the motion crate brings mlx-rs (which uses it) into a plain raea build. SKILL.md:19 (which workspace, which project): checked, still true; raea motion takes no project and writes where -o says.
raea's window sends the page's fetch of /host/* to RAEA_PAGE_HOST (page-net host.rs), but what the page loads by itself went through FileNet, which looked for /host/* among the page's files and found nothing. An <img src="/host/attachment?..."> drew an empty box: in the feed, a picture attached to a note showed nowhere in raea's window (smoke's "a comment takes files" read naturalWidth 0), and a library's posters on Publish were blank. The feed now reads those through fetch (HostImg), as its other host pictures already were.
FileNet now takes the page's own http://localhost/host/* from the host, as the fetch does (host::load, GET with its query; nothing without a host, or for an answer that isn't 2xx).
systems/page-net/tests/page_host.rs: a load of /host/attachment?... reaches the host with its query; a /media/ path and another origin's /host/ aren't the host's; a host that's gone gives nothing. cargo test -p raea-sys-page-net: all pass.
In DOM mode (a React page in raea's window: the feed), getComputedStyle answered every property from the page's own cascade, which knows boxes and the classes libraries read but not stylo's: a class's colour came back rgb(0, 0, 0) and a var() empty. The feed's starred project mark read black for its gold star (its smoke test 67), and the spectrogram's colours fell back to defaults. Such a page now asks the host (style.computed, as an HTML page asks for every value) for colours, fill, stroke and custom properties alone; display, sizes, transforms and the rest stay call-free.
sdk/ui/test/dom.test.tsx: a React element's display is answered with no host call, its color, background-color and --accent from the host by its wire id; with no host, the page's own value as before. bun test test: 64 pass. The feed's smoke 67 passes in raea's window.
The host's scroll event carries the offset it had when it committed, and the DOM layer took it over as scrollTop. A page that had written another one since (each write is sent and shown at once) was put back a step. Two scrollers kept in step, the app's timeline tracks and their heads, then each put the other back, every frame, for good: after a quick drag of the tracks' scroll thumb in raea's window they cycled through five offsets and never stopped (logged event by event in the feed's timeline-nav N1).
Now each scroller keeps the values it wrote that the host hasn't told back. An event carrying one of them retires it and those before it, and if newer ones are still out, the newest written stands: as in Chrome, where a scroll handler reads the offset as it is now. An event carrying a value the page never wrote is the host's own (a wheel, a clamp) and stands.
sdk/ui/test/scroll.test.tsx (the scroll tests moved out of dom.test.tsx, which was over 500 lines; its snapshot helpers shared from test/host.ts): a stale event leaves the newer offset, the host's own stands; two scrollers mirrored both ways, with the host's events a frame late, settle. Both fail without the change (the pair still had 10 events due after 20 frames). bun test test: 62 pass.
Live play ran every composition on raea's lite runtime, which can't run R3F's reconciler: the bundle failed ("use" isn't exported by lite), so an <R3F> never played live. raea-runtime-live's needs_react scans the edit's own sources for raea/r3f or @react-three/, and such an edit now plays on React, as RAEA_LIVE_REACT=1 does; an exported game the same. The baked-timeline path still bakes on lite.
raea's input, frame by frame, goes to R3F's canvas as the DOM events a browser would send (src/input/pointer.ts): the move, the presses, a release and its click, the right button's context menu, the wheel and the pointer gone, each against the frame before, with the modifier keys held. The root runs R3F's own event manager on a stand-in canvas that is an event target (also the renderer's domElement), whose document gets the events that bubble, so R3F raycasts each through its camera and calls the handlers on the mesh it hits, and OrbitControls turn and zoom the camera. A step sends its frame's events before it renders, inside flushSync; a render with no input sends none, and a root stepped again from frame 0 sends the same. An <R3F> in a box takes the pointer in its box (page.viewBox), scaled to its width and height.
test/esm.ts loads drei and three-stdlib as ESM, since their CJS builds pulled in a second three and broke OrbitControls' instanceof. test/pointer.test.tsx: 7 of 7. bench/render-play gains the row sdk/r3f/test/live/pointer.tsx (hover, click, a drag), which plays and renders the same frames at 1.000000.
<R3F> takes the box's width and height in frame pixels: R3F's own size (useThree's size and viewport), its camera's aspect and an orthographic camera's frame are the box's; by default the frame's, as before. raea draws the scene in the box it sits in either way (the engine's fix in the commit before). An orthographic plane R3F frames at zoom 40 is 80 px in a 400 x 300 box with them, as three draws it, and 40 px without. A width or height that isn't a size above 0 is refused, naming it. docs/r3f.feature R3F26's status: the cause, the fix and #130's five cases measured.
engine/render target.rs tag_row_view gave a camera on the Engine's target a w x h Viewport (the frame above the tag row) on the frames before the page had laid its box out, a render's first draws, and skipped any camera with a Viewport after that, so a box's sub view (SubCameraView: the box's size as the full view, offset by its place) never came. The Viewport it gives (`ours`) is now taken off when a box comes, and given back when the box goes; a camera's own Viewport (a ViewportNode's) is left as it was. Viewports are compared by place and size (bevy_camera's Viewport has no PartialEq).
#130's five cases, a 2 x 2 plane at the origin seen from z 5 in a 400 x 400 box: on a 600 x 600 page at fov 90 it is 80 px and centred in the box (was 120 px, centred on the page); at fov 32, 278 px (three: 279; was the whole box); at 1080 x 1920, 80 px in the box (was nothing); at 2160 x 3840 with the box at (800, 1600), 80 px in the box (was the whole box). raea's own camera in a box drew the same way and is fixed with it.
three/webgpu's PostProcessing (RenderPipeline) draws one QuadMesh whose fragmentNode is the whole chain. sdk/r3f's stand-in renderers (renderer.ts for R3F, program.ts for a plain program) hand that quad to src/input/tsl-post.ts. It walks the graph for the pass(scene, camera) the chain starts from, which raea draws as the frame, and for the nodes the frame goes through, in order. Bloom, GTAO, depth of field, FXAA, SMAA (TRAA and TAAU as SMAA), SSAA and pixelation become raea's own effects. film, dotScreen, rgbShift, chromaticAberration, lut3D, sepia and bleach become FramePasses doing what their setup() builds (effects-tsl.ts). The output's tone mapping and three's exposure become raea's tone mapping and Grade exposure. post.ts reads them as it reads a composer's effects. The other display nodes and an Fn of the app's own are named once. kinds.ts TSL_POST names every post node three ships, and a test holds it to three's own list.
Bloom gains `additive` (the bloom_additive column; Bevy's Additive composite). three's UnrealBloom adds its glow on top, where Bevy's natural bloom takes the light from around it and darkened the rest of the frame. A TSL bloom is raea's additive Bloom at 4 times its strength.
systems/framepass: frame() read past the edge takes the frame's edge pixel, as a clamped texture does, never the tag row under the Viewport (a chromatic aberration drew a teal line along the foot). depth() and normal() clamp the same way.
COMPONENTS.FramePass and COMPONENTS.Fragment move into parts.tsx's table now that R3F22 has landed.
Tests: test/tsl-post.test.ts (a program's pipeline: the pass's scene drawn, bloom, film and ACES with exposure; an effect after renderOutput() runs after the tone mapping, sepia() known; a node with no counterpart named; every node three ships covered), runtime/look's an_additive_bloom_says_so_and_a_natural_one_doesnt, framepass's prelude test. The parity cases in-tslpost (bloom, 0.9737) and in-tslpost2 (sepia and chromatic aberration, 0.9233) in test/parity/tslpost.tsx; the full parity list of 36 passes unchanged. The guide's Drawn paragraph lists TSL PostProcessing, docs/r3f.feature R3F25's status says what's done and left, and the manual reference has Bloom's additive.
sdk/r3f src/input/effects.ts and effects-sampled.ts: postprocessing's Noise, Scanline, Sepia, DotScreen, ColorAverage, ColorDepth, Grid, Glitch, ShockWave, LUT3D and @react-three/postprocessing's ASCII and TiltShift2 become <FramePass>es running the effect's own shader in WGSL, with its uniforms as the effect set them, its textures (a perturbation map, the ASCII characters drawn on raea's canvas, a 3D LUT as a strip of slices), blended as its EffectPass blends it (all 22 of the blend functions it has), before or after the tone mapping as the composer orders it; an sRGB-input effect reads and writes sRGB as its pass does. TiltShift (its Kawase blur as one Gaussian of the same spread) and GodRays (the sun's disc on screen against the depth prepass, the rays unblurred) are close and say so once. SKIP is BlendFunction 9 (was read as 0, ADD). kinds.ts rows follow.
systems/framepass: an inline pass draws in the camera's Viewport and frame(), depth() and normal() map its uv onto the texture (a new view vec4 in the pass's uniforms). The Engine's target is w x (h + 1), a tag row under the frame, and Bevy's frame textures are the target's size, so in.uv spanned h + 1 rows and any pattern by uv drifted a row by the frame's foot (scanlines 0.8914 -> 0.9927, grid 0.8668 -> 0.9984). A pass as written keeps the whole texture.
Grade exposure (systems/post camera/on.rs grade_exposure, runtime/look post.rs, sdk/render GradeProps): stops on every pixel just before the curve, Bevy's ColorGrading. three's toneMappingExposure and its ACES's 1/0.6 go there now (lights.ts toneParts, post.ts), not into <ToneMapping exposure>, the camera's, which lights only lit and emissive shading: under ACES every unlit R3F colour was 0.74 stops dark (found by lane r3f-gpu), and effects before a composer's ToneMapping saw lit pixels in one scale and the rest in another. The three host folds a Grade's exposure into toneMappingExposure, so a round trip keeps it.
Parity: in-post2 0.8407 -> 0.9879, in-post3 0.8333 -> 0.9767, the rest of the list unchanged (in-basic 0.9917, in-vanilla 0.9921, in-tsl-lit 0.9906). parity.sh hands Chrome its whole list (shoot.ts's own list lacked in-instanced and the later cases) and runs in-post2 and in-post3. Tests: post.test.ts 9/9 (glitch, LUT strip, TiltShift2 told apart by its taper, the Grade exposure), roundtrip; framepass unit test of the Viewport rect. Left in R3F25: Outline, Texture, Depth, LUT1D, three/webgpu's PostProcessing (in-tslpost).
raea/3d <Instances>: an Instance takes `color` ("#rrggbb" or linear [r, g, b]), multiplied with the material's as
three's instanceColor; a set with colours packs 12 numbers a copy, data-at {"stride":12,"at":[...]}. runtime/look reads
it as plain numbers (not JSON values) and writes inst at 13 numbers a copy with inst_tint 1. scene3d: a tinted set's
copies share one TintMaterial (raea-sys-material tint.rs, TintPlugin: the standard material extended by a ShaderBuffer
of the copies' linear colours, read by the copy's MeshTag above compose's two pass bits), the buffer rewritten in place
when the frame's list changes, the row's standard material copied into its base when it changes; compose's
sync_passes keeps a tag's high bits. sdk/r3f: scene.ts sends every InstancedMesh with a standard surface as one
<Instances> (instanceMatrix.count copies, those past count shrunk to 1e-5, instanceColor as colours); a ShaderMaterial,
several materials, MeshNormalMaterial, a shadow catcher or clipping keep a mesh a copy. The three.js host draws the
coloured form as instanceColor. Tests: conformance instances (12 numbers a copy), look's a_colour_a_copy, tint's tag
bits, r3f input (moving and coloured copies stay one Instances; a ShaderMaterial is a mesh a copy), the three host's
instanceColor.
Now each runtime keeps its own JsState (runtime/shared stall.rs, with Settling, the settle's watch over it): its flushes, its work (an event delivered, or a timers call with a timer due; an empty tick isn't work), its current call and since when it has sat idle with nothing scheduled. Settle reads its own runtime's counts; a thread that only runs timers without committing is given at most HOLD_SECS. A runtime stepping a range (step_frames sets Stepping) whose JS thread sits idle for a second with its frame neither drawn nor held is asked for the rest of the range again from that frame, up to three times (frames are pure), and the render says so. A frame still not drawn fails after 20 s naming the frame, the marker, how long the thread sat idle and how often it was asked. The bridge's event loop ending by a throw (a rejection nothing caught, so events queued unread) is now a composition error the render reports at once (the prelude's __raea_loop_died, which entry.rs catches with), and the prelude's __raea_deliver says when an event went unheard, which the stall error reports.
The hang didn't reproduce here: 587 runs of a composition like his (2160x3840, 752 and 3840 frames, Sequences, @font-face, Img, #96's six-layer Freeze blur), 3 and 16 runtimes under load, 0 hangs. So the cause in his project is still unknown. RAEA_FAULT_DROP_EVENT=raea-frames loses the 3D rows' range event as such a hang would: tools/settle-nudge.sh shows the render asking again and finishing, and with raea-frames* (every one lost) failing in 23 s with the named error instead of hanging. Smoke on the new build: 60 scene-rows passes with no re-asks, a 600-frame PNG folder, mp4, the 752-frame 4K mp4, and examples/games/lighting.tsx. Dupes: one exact group gone (tools/dupes.max 293 -> 292).
A session that posted with raea show has an inbox; the app writes there what the person sends on its items or to it
in the feed. raea hook now reads what was added since its last look (raea-app-check-inbox, apps/check/inbox: a byte
mark in <inbox>.read the app reads to say Read) and hands it over: as PostToolUse context after any tool, and on Stop
as the reason the turn goes on, so a reply reaches a busy terminal session at its next step instead of waiting for it
to follow the file. raea skills install gives Claude Code the PostToolUse hook on every tool and a Stop hook, widening
an older raea's after-save matcher (Shane 11-14: a reply in the feed didn't confirm or interrupt the agent). The inbox
is its own crate to keep raea-app-check under the size limit.
index.md is the CLI section's own page, so raea index's page is indexer.md (pageOf in tools/manual-ref/cli.ts). Fixes
L1's manual reference step for every lane: "index: in no group".
raea-sys-index gains its CLI (cli.rs, wired as raea index with its usage in the help) and serve.rs: one JSON ask a
line on stdin (add, search, similar, status, remove, stop, warm), answered by id on stdout with progress events
between. A worker lists and embeds one folder at a time with its own connection and the Neural Engine model; a
searcher keeps SigLIP 2's text tower and the rows loaded, growing them from the vectors' tail as batches land and
reading them all again after a remove or a changed file. The store drops a changed file's old rows, lists sources
with their counts, removes a source with its rows and thumbnails, and never reuses a removed source's id. A run
can be stopped mid-way. Measured on 3000 pictures: 3000 embedded at 152 a second with the text tower loading
alongside, a search 22-42 ms for the words and about 1 ms over the rows.
docs/index.feature is 0.1.5's plan (Shane 11-14: "the fastest fucking indexing tool for videos and images on the OS
and on your phone/photos/icloud"): a fast pass before Libraries' EmbeddingGemma 2 deep pass, whose picture tower
(a 16-layer ViT over up to 2,520 patches) can't be a first pass; sources for folders and drives, Photos, iCloud Drive
and Google Drive; Free local, Pro and Team also in raea's cloud; Settings -> Index; the counter as the wow.
systems/index (raea-sys-index): walk.rs lists a folder's pictures and videos (packages, hidden folders and caches
skipped); apple.rs decodes each picture's small copy with ImageIO (its embedded preview when it is 256 px or more,
else the file at a reduced size) into a 256 x 256 BGRA buffer, writes a 256 px JPEG thumbnail, and runs SigLIP 2
B/16-256 on Core ML's CPU and Neural Engine, 32 at a time (never the GPU: coreml-gpu-siglip); lib.rs overlaps the two
(decoding on every core but two, a bounded channel to the embedder); store.rs keeps a SQLite list of sources and items
keyed by where they live, and one append-only file of f16 rows per model, written as each batch finishes; text.rs is
SigLIP 2's text tower on ort; search.rs scores every row on every core and keeps the best moment per item.
Measured on this Mac (M5 Pro) with the e2e suite running beside it, examples/fast on 3,000 real files, mostly big PNGs
with no embedded preview (the worst case): listed, decoded, thumbnailed, embedded and written in 17.3 s, 173 a second
(Libraries' path: 12.6 s a file, LB1). A query 21-28 ms, a search over 3,000 rows 1 ms. "a cat" ranks the cat
references first. About 12 KB an item on disk (an 11 KB thumbnail, a 1.5 KB row).
raea-skills#76. engine/cli/conformance/surface.test.ts reads every backticked "raea WORD" in the agent's context as a
command that must exist, and the example "raea feed item ..." (from e2490012, landed with a4bb6e5c1) failed every
lane's L0 check with "skills/skills/raea/SKILL.md: raea feed".
sdk/task reads and writes a project's plan.org (Org mode) as typed tasks: keywords, properties, kinds and views a plugin can add, React hooks and components. docs/plan.feature files the plan work, landed for 0.1.4. The skills submodule moves to raea-skills e249001 (#75: section 0 step 5, open or start the project's plan).
The Source page takes files dropped anywhere on it (raea-feed's Source redesign, 0.1.4). In a browser the page's own
drop events carry them; raea's window draws the page natively, so winit's drag-and-drop never reached it. The window
keeps Bevy's FileDragAndDrop messages, whether files are over it and the paths dropped, and the page asks with
app.drops -> {over, dropped}: over while a drag is on the window, then each dropped path once. A drop is the person's
own act, so it is kept with or without --window's live calls.
Test: native::drop_tests (over while dragged, not over once it leaves, the paths handed once in order).
Co-authored-by: shinyobjectz <[email protected]>
The help says what --project takes now: Workspace/id (ids as raea workspace --json lists them), a folder in the project, or a Copy reference from the app; a title only when it is the only one and the folder is not in another project. The resolving is the app host's (raea-feed host/show.ts placeOf, integration-014 de50fe7).
skills pinned to raea-skills c293caa (#74): SKILL.md section 0 names a project by WORKSPACE/ID everywhere, and the raea show paragraph passes --project WORKSPACE/ID or the pasted Copy reference.
raea ships for Mac, Windows and Linux, and the fingerprint's encoders run on ONNX Runtime on all three
(systems/columns), so the manual's index, fingerprint page and API guide say "your own computer" where they said
"your Mac". The get-started tutorial keeps its Mac wording until its narration is re-recorded, and the 0.1.2 notes
stay as they shipped. raea.io already serves this text (Pages deploy addc4fdc).
The app's Images and video now offers made.app, OpenRouter and fal (Shane 11-14: "maybe add openrouter and fal as other image options"). made.app is a key only: its OAuth tokens open its MCP server, never the API raea gen calls. So a person who signs in to OpenRouter or adds a fal key there, and has no made.app key, needs raea gen to use it: before, every picture step that named no model went to made and failed asking for MADE_API_KEY.
route.rs: the policy knows which picture services this host has a key for (Keys::here: MADE_API_KEY, FAL_KEY, OPENROUTER_API_KEY, from the environment and ~/.raea/env; cli.rs fills it in). With no made.app key, image.generate goes to fal's fal-ai/nano-banana-2 (made's own default for pictures) and image.edit to its /edit endpoint, else to OpenRouter's google/gemini-3.1-flash-image, each with a note saying why. A made.app key here, a step that names its model, and every other op route as before; with none of the three keys a picture step still goes to made, which asks for its key. The fal and OpenRouter backends already made pictures (hosted.rs).
Tests: tests_keys.rs (made first when its key is here, fal then OpenRouter without it, an edit to fal's edit endpoint, video and named models unchanged); cargo test -p raea-io-gen --lib 27 of 27.
tools/release/dmg makes the Mac download as a disk image: raea.app beside an Applications link in a Finder window
laid out over raea's own picture. background.tsx is one WGSL shader (ShaderMesh) rendered by raea: paper, a pixel
falloff Bayer-dithered into the corners, the cat leaping from the app toward Applications as dithered onion skins,
the rest of its arc as dots with a pixel arrowhead, and a second cat asleep in the corner. render.sh renders it at
1x and 2x into one multi-resolution TIFF (tiffutil -cathidpicheck), committed as background.tiff; --loop renders
the same scene moving (the leap, 3 s at 60 fps), since Finder only ever shows a window's picture still.
dmg.sh APP OUT.dmg [--volname] [--sign ID [--keychain]] [--notarize ENV]: a writable HFS+ image, the app copied in
with ditto, layout.applescript has Finder set the window (680x440 content, icon view, no toolbar, 128 px icons,
the picture, each icon's place) so Finder writes the .DS_Store, then the app's icon as the volume's, then ULFO.
Finder on macOS 27 deletes a .VolumeIcon.icns and clears the custom-icon flag when it opens the volume, so the icon
goes in after the layout. Labels are drawn black over any picture in both appearances, so the window stays light.
check.sh mounts an image read-only and checks its files, the layout's picture and the window Finder reads back.
Built and checked here with a stand-in app; nothing signed or notarized.
blitz-dom's set_attribute and clear_attribute add restyle_subtree() to the element and to its parent (an upstream TODO: make it fine grained) on top of the snapshot they take, which Stylo's traversal already diffs against the selectors that read the attribute (siblings and ancestors included). So a style change restyled every sibling's whole subtree: in raea feed's timeline (TL13a), a clip dragged along a track restyled every clip on its track each step, and Stylo's restyle was 28% of raea's window's main thread through the drag (a macOS sample of raea-page-host, 400 clips on 12 tracks). With RAEA_FINE_RESTYLE=1 the two subtree hints are left out: the snapshot's invalidation decides, and a style attribute keeps its RESTYLE_STYLE_ATTRIBUTE (its own declarations replaced, as Servo does). Unset, nothing changes. Not yet measured with it on: the release build that would ran the disk out (3 GB free); it is measured, and run against ui-parity, before it is proposed as the default.
Checked: cargo check -p blitz-dom; L0 on the file passes but for three steps other lanes' applied work fails in the shared tree (dupes' repo-wide count, raea-runtime-segments' layer, pbr.md's manual reference).
sdk/timeline: an add carrying a project file (props.asset) maps to the host's new media edit, a sequence holding a <Video>, an <Img> or an <Audio> of it. On the main track with the magnet on, the clips after it move on first and the edit names the clip before it (or after it, at the start), so the host writes it beside that one and what is over the main track stays over it. The magnet now puts an added clip in at the cut nearest where it was put (before the clip it lands in when that is nearer its start), CapCut's insert at the playhead; a paste onto the main track, an add too, lands the same way, and a duplicate keeps its place after its clip. The scenario is filed as TL3j. 77 tests; each new one fails without its rule.
A curve shaped by hand saved by name for the workspace (timeline/curves.json in its folder); an agent's editor_edit
made as raea/editor operations in the open timeline's history; play holding on Buffering where a scene's range isn't
kept yet while it is drawn (seen in a headless raea window), and a film saying Buffering when it runs out of data; a
scene's timeline as long as the scene. 25 browser tests in Chrome.
tools/skills.sh gen_sdk listed each sdk/raea/src entry's own exports from Bun's transpiler scan, which gives nothing for
export * from "@raea/<package>". So raea/editor (all of it export *) had no row, raea/audio listed Audio, Tone and music
but not Mix, Speech, song and the rest, and raea/3d, raea/animation, raea/app, raea/math, raea/state, raea/text and
raea/ui were each short. The scan now follows export * through sdk/tsconfig.base.json's paths (and relative paths),
into what those modules re-export in turn, and fails naming the line when a re-export leads to no file.
freeze: a still of the frame under the playhead put into its clip there, the clip split around it and what follows
making room; set reverse: a clip's footage from its last source frame to its first. Playback's mapping gives a
still its one frame at rate 0 and reversed footage its frames going back, both stepped by the timeline's own
clock; a still is ready when its frame is. 63 tests.
A row for a <Video> or an <Audio> is a clip on a footage or a sound track under the sequences, where its sequence
plays it, with its place in its file and its level; its level set on the timeline is a host edit of its own, and
a move, a trim or a speed there is refused with why (they are its sequence's). 57 tests.
sdk/video transition.tsx (exported from raea): <Transition in={{ kind, frames }} out={{ kind, frames }}> around
what a <Sequence> holds plays over the part's own first and last frames: fade (through black), slide, wipe, zoom.
Nothing outside the two parts changes and the film keeps its length; two parts that only touch have no frames of
each other to mix, so there is no dissolve. sdk/timeline: raea's transitions are those four; a sequence's row
carries how it comes in and goes out, a cut whose two parts match reads back as one transition, and a transition
put on a cut, changed or taken off is two host edits (the part before's out, the part after's in); a kind the
component doesn't draw is refused with why. Tests: conformance/transition.test.tsx (3), sdk/timeline 56. The SDK
reference has <Transition>.
showing: the main-track clip over a timeline frame, the source frame it shows and the rate (a speed, a curve);
frameOf: the way back from the player's time; next: where the player goes when a clip ends; ready: the timeline
ranges ready to play given the file's buffered ranges. 53 tests. The app's player uses these to play cuts,
moves, trims and speeds at once, with no render.
fromTracks: the tracks a sound's host lists (clips, notes, lines) as sound tracks; a file clip keeps its place in
its file and its level, notes and lines are shown locked with where they are edited. clipEdits: the file clips
that differ between the timeline as read and as it stands, each span before and after in seconds and dB, as the
sound's hand edit carries them. 49 tests.
raea's transitions (dissolve, fade, wipe, slide) beside its easings and speed curves; readAdds checks a plugin's
additions as its manifest writes them (eases, curves, transitions) and leaves out what isn't well formed or takes
one of raea's names, with why; palette gives everything offered, raea's first. 47 tests.
sdk/video nudge.tsx: keys={{ scale: [[0, 1], [45, 1.15, [0.2, 0, 0, 1]]] }} on <Nudge>: each property's keys as
[frame, value, ease?], in frames from where the part's time starts (its <Sequence>), eased linear, hold or by a
cubic bezier (sdk/math's); a keyed property wins over its still value; with no keys it is the Nudge it was.
sdk/timeline read.ts: a sequence's row carries its keys, and a key made, moved, eased or removed on it is one
host edit that writes the wrapper's keys whole (x, y, scale, rotate, opacity; another property is refused).
Tests: sdk/raea conformance/nudge-keys.test.tsx (4), sdk/timeline 45.
changed(before, after): the frames whose picture or sound differ between two states, by what is drawn over each
frame (a clip moved gives its old span and its new one; a split of footage gives none; a name, a lock or a marker
gives none). keyOf: what a kept range is kept under, the same for two states that draw it the same, so an undo
finds its frames again. evict: a closed version's frames first, then the least recently played, never what is
under the playhead while anything else can go. ahead: what to draw next, from the playhead on. 44 tests. The
stage that draws and the store that holds frames aren't built.
The package (TypeScript, no React, no DOM): tracks, clips, keys, markers and transitions in whole frames (model.ts);
each edit as a pure operation, refused with its reason or answered with its inverse (ops.ts: move, trim, split,
remove and ripple, delete left and right, duplicate, add, speed and curves, keys and their easing, markers, track
heads, transitions, the magnet, snapping and linkage switches); a keyed property's value at a frame through a cubic
bezier (keys.ts); speed curves with CapCut's presets, their length and source time in closed form (speed.ts); what
an edge snaps to (snap.ts). After each operation the timeline is settled: the main track closed while its magnet is
on, what sits over a main clip carried with it while linkage is on, transitions kept only on cuts that still exist.
34 tests (bun test test) for TL0a, TL0b, TL3c to TL3f, TL4a to TL4c, TL5a, TL5c, TL6a and TL6b's model. Not yet:
reading a timeline from a composition (read.ts) and an operation as code edits (edits.ts), groups and compound
clips, and the app's strip drawing this model.
Solari traces a mesh in one layout, tangents included, so every traced mesh without its own had MikkTSpace's made for
it, in one system on one thread. Solari's shader reads a tangent for one thing, a normal map (vendor/bevy_solari
scene/bindings.wesl). A mesh whose material has none now gets a unit vector across each normal, which costs nothing.
A sample of a ray-traced render of a 2.5 s shot (Sticky Feet s04-stoop, 61 frames) had MikkTSpace as 182 of the 402
samples the first frame waited for its models. Before: the models' wait 744 ms, frame 0's sync 1093 ms. After, six
runs: the wait 529 to 632 ms, frame 0's sync 656 to 802 ms. Its steady frames are unchanged (23 ms).
Namespace's Windows image has no vulkan-1.dll, so rc6's check found no adapter ("vulkan drivers/libraries could not
be loaded") although lavapipe was registered. lavapipe.sh now fetches LunarG's runtime components 1.4.328.1
(checksum pinned), copies the loader into System32 when it's missing, and fails at once unless vulkaninfo lists
lavapipe.
rc5's Windows job stopped in the nasm step: Git Bash on the runner has no /dev/stderr, so the tee that printed
nasm -v failed. The output is now captured, printed, and matched against the pinned version.
rc4 on Namespace's Windows image installed Chocolatey's NASM, and raea.exe failed to link: 135 of openh264's
SIMD routines (WelsSampleSad16x8_sse2 and the rest) unresolved, though openh264's C++ was built to call them.
GitHub's image, where rc3 linked, ships NASM 2.16. The step now always unpacks the 2.16.03 zip, puts it first
on PATH and fails if nasm -v names another version.
raea-feed #9 draws the spectrogram on the timeline and in Listen, and stores a box as a time pin over its span with a
mark on: "sound" ([time, mel] in 0-1). Here: grow::marked skips sound boxes (they are no place in the frame),
grow::sound_band reads the band, Reading and evidence::Row gain band, and learn-notes keeps a defect's band in its row,
widening a span shorter than half a second about its middle. The manual's fingerprint guide says how to draw one and
that the sound heads, per window, keep the band but don't learn from it yet.
On mlx-rs =0.34.0 (MIT OR Apache-2.0), which builds MLX v0.32.2 from source with cmake at build time. The dependency
is macOS-only, so the crate is empty on Linux and Windows. A model's MLX path is plain functions over its safetensors,
read by the checkpoint's own tensor names (weights.rs), with f32 tensors in and out (tensor.rs) and layers that do
PyTorch's maths (nn.rs): a Linear runs in its weight's dtype; LayerNorm, GELU and SiLU run in f32; attention is MLX's
fused kernel. Tests check each layer against the same maths in plain Rust on the CPU. f32 matmuls run in TF32 on the
GPU by default (within 3e-3; 1e-5 with MLX_ENABLE_TF32=0). use_metallib points MLX at a fetched metallib (MX4). No
model uses it yet: IDOL, which was to be first, is held.
raea-skills' skills/ is becoming its Claude plugin too (skills/.claude-plugin/plugin.json, hooks/, README.md,
icon.png), and release.sh copied that folder whole, so the installer, which copies every entry of
share/raea/skills into ~/.claude/skills, would have put the plugin's README, icon and hooks folder there beside the
skill. Now only folders holding a SKILL.md are staged, and _-prefixed ones (raea-skills' _template) stay out as
before. Tested on a mock skills/ with the plugin's files: raea/ alone is staged.
Co-authored-by: shinyobjectz <[email protected]>
* Page: Blitz's viewport is in device pixels, so a page at scale 2 fills its image (#119)
a78fb95 gives the app window's page the display's scale. With a scale other than 1, raea-sys-page still gave
Blitz a viewport whose window_size was the page's size in points. Blitz's window_size is in device pixels (it
divides by hidpi_scale for the CSS viewport), as the page's image and paint_scene already are, so on a Retina
display the interface was sharp but laid out in the top-left quarter of the window.
Page::px is the page's size in device pixels, used for the image, the paint and the viewport.
Nothing changes at scale 1.
* Page: the page's JS and its element list read the viewport in CSS px, and devicePixelRatio is the page's scale
With Blitz's viewport in device pixels, two readers of window_size in runtime/dom still took it for CSS px.
snapshot sent it as vw and vh with dpr 1, so at scale 2 innerWidth and matchMedia answered twice the width the
page is laid out at; elements tested boxes against a window twice the size, so elements up to a window's width
off screen were listed as visible. Both read the viewport's logical size now, and dpr is its scale.
tests/viewport.rs: a page at scale 2 lays a 100vw x 100vh element out at its size in CSS px; scale 1 is as it
was; a fractional scale rounds the image up.
Rebased onto main at 6da2995: main's LR1 (7fb2194) moved the layout snapshot into raea-sys-page (systems/page/src/snapshot.rs, snapshot_by, which a composition's page.layout answers too), so the vw, vh and dpr change is made there, and elements.rs re-exports it.
* Page tests: q and attr live in tests/common, which vars.rs and viewport.rs both use, not one copy each (dupes back to 293)
---------
Co-authored-by: shinyobjectz <[email protected]>
Shane, 11-11: "sync all publishing to the current status state". TikTok and Instagram wait on their app reviews
(raea-api's CONNECTIONS_LIVE), so the pages name live ones; the narration was re-voiced to match in the private repo,
and raea.io's v0.1.1 build lays these two pages over the release's docs until main carries them.
Shane 11-12: reorganize the default project around compositions, components, controllers, assets and artifacts, with a workspace library any project can call on. It's named shared/ and @shared/ so it isn't confused with raea's media libraries.
- LY1: raea project new makes the five folders (each with a .gitkeep), out/, brief.ts, AGENTS.md and a tsconfig mapping @shared/* to the workspace's shared/. raea workspace init makes shared/ with the same five, and .gitattributes keeps assets/** and out/** in LFS.
- LY2: the engine's loader resolves @shared/<kind>/<name> by walking up to .raea/workspace, with a relative import's extensions and index files; outside a workspace it's refused with what to do. PJ8's lint takes @shared/ imports and names @shared/ as the fix for a climb into shared/.
- LY3: the scan reads compositions from compositions/ and components from components/ (and from shared/), lints a composition elsewhere as misplaced, says once that a project is in the old layout, and reads controllers as the project's over shared/controllers/ by id.
- LY4: raea component list/add [--shared] replaces raea part, which still answers this release.
A frame black on two draws whose GPU passes its canary was kept as the scene's black with one stderr line, and every
later black frame was let through silently: #96's 4K handover lost frames 22-29 that way, the render reporting
success. Now, when such a frame's page shows something that isn't black, the render warns "black-frame" naming it
and where it's written ("frames 22-29: drew all black on two draws, though the page shows a rgb(34, 34, 34)
background (handover.tsx:31:3)"), in the run's findings: stderr, the manifest, the summary's count and raea check's.
A page that is black (a black background, nothing on it) says nothing, as before.
raea-page's visible_paint finds it: the first element shown on screen, not a video's holder, whose background or own
words' colour isn't black, with its source stamp; it shares the manifest's opacity and stamp walks, now functions of
their own. raea-core-facts' said_frame joins a frame's finding to the same one running on the frames just before it,
so a run prints one line and counts once. Both black checks of the page path call it (bevy_frame.rs's still and video
frames, render.rs's page over 3D). Left out, as on the issue: a fed MP4's frames, which never come back to the CPU.
RAEA_BLACK_FAULT=3 draws every frame black with the canary passing (a draw dropped whole, as #96's was), to test it.
Checked: a #222 page under that fault warns once over frames 0-5, the manifest holding one finding with frames [0, 6];
a black page under it says nothing. Test: said_frame merges a run and starts another after a gap (the two tests that
say and take findings hold one lock).
Skills (SK4): SKILL.md's "7. Deliver" names runtime/export/src and says nothing of black frames: checked, still true.
A <canvas> ref's getContext("2d") in a composition was bevy-react's recording context, whose API isn't the web's
(no fillRect, setTransform or createImageData) and whose draws nothing in raea reads: snapcn's dot-bloom and
orb-swarm threw, and a canvas drew nothing. sdk/raea's canvas2d.ts gives it @raea/ui's CanvasRenderingContext2D, the one
an app page has, whose display list goes to the element as its __canvas2d prop, which the page already draws into
the canvas's bitmap (systems/canvas). The context sends through the host's own _send when it has one (sdk/ui
paths.ts, context.ts). bevy-react's handle keeps no props, so a canvas's width and height (300 x 150 unset) are read
from the batches the bridge sends through the host's op_flush; set on the ref, they go to the element and clear the
bitmap, as in a browser. getImageData reads zeros in a composition (no host to read back from).
frame-globals.ts installs requestAnimationFrame, cancelAnimationFrame and Image where they're missing (#56). A callback
runs once, at the frame after it was asked for, given that frame's time (f * 1000 / fps), so a frame drawn again gets
the same calls: from the React entry's frame step and the live entry's draw. Image's load fires on the next microtask
once its src is set, so a preload resolves; it reports no pixel size.
The bundle pointed @raea/<package> imports only at packages listed whole; a module listed alone (@raea/ui/canvas, as
@raea/ui/plugin is) now resolves too (rewrite.rs point_sdks).
Checked: a composition drawing red, then lime under setTransform(1,0,0,1,50,50), draws both where Chrome would;
canvas.width reads its width prop (200), createImageData(2,2) is 2x2, rAF's time at frame 5 is 166.67 ms and an
Image's onload fires, across a 10-frame MP4. Tests: conformance/frame-globals.test.ts; point_sdks with @raea/ui/canvas.
A <Video> on the page was opened by the platform's decoder alone (Apple's on a Mac), which reads no WebM: a VP9 WebM
with alpha was refused, "no video track". The page now asks the backends in raea-io-media's order (RAEA_MEDIA's, the
platform's, the portable one, the ffmpeg CLI), as the other readers of video do, and says what each answered when
none opens it.
The ffmpeg CLI decoder read nothing under FFmpeg 8 and later, which took out -vsync: raea-io-ffmpeg's passthrough()
gives -fps_mode from 5.1 on (apps/check's flash test had that rule; it calls this one now). A VP8 or VP9 stream tagged
alpha_mode=1 is decoded with libvpx, named before the input (FFmpeg's own VP9 decoder drops the alpha WebM keeps beside
the picture), where this FFmpeg has it. ffmpeg's stderr is kept for a read that fails and out of the run's output.
Apple's decoder made every pixel's alpha 255. A track whose format description says it carries alpha (ProRes 4444 at
depth 32, HEVC with alpha) keeps VideoToolbox's: straight, as checked on a ramp from 0 to 255 over blue (63/192,
127/128, 190/65 at a quarter, half and three quarters).
Checked on the issue's files, a red circle on nothing over a blue page: WebM and ProRes give a blue corner and a red
centre (were refused and red); a 30-frame MP4 from the WebM holds that on every frame read; a plain H.264 is unchanged.
Test: raea-io-ffmpeg's vp9_webm_keeps_its_alpha (skips without ffmpeg and libvpx), now in CI's list.
The 3D camera already cleared to #00000000 under --alpha (program.rs), but bevy_over_3d, which lays the page over the
3D for PNGs and transparent movies, set every pixel's alpha to 255 (the 3D taken as over black), so an <R3F> or a
native 3D scene came out opaque black around it and setClearColor(x, 0) had nothing to reach. Under --alpha the 3D's
own alpha is now laid under the page's by the same SrcOver as its colour and the premultiplied result made straight
(scene_straight); the page alone, a 3D slot and a camera in a page element keep their alpha too. program.rs's note
that frames with 3D come out opaque is gone. Checked on the binary at 320x320: the report's <R3F> box with
setClearColor('#000', 0), a native Camera3d box and a camera inside a positioned element all write alpha 0 in empty
corners and 255 on the box, a transparent .mov likewise, and a render without --alpha is unchanged (Bevy's 43, 44, 47
clear, opaque).
Skills (SK4): SKILL.md's "7. Deliver" names runtime/export/src; neither it nor the 3D pages say 3D is opaque under
--alpha: checked, still true.
src/three/scene.ts imports three/examples/jsm/loaders/HDRLoader.js, added in three 0.180; with three 0.170-0.179,
inside the old range, every <R3F> scene fails to bundle.
An easing that overshoots (bezier(0.34, 1.4, 0.64, 1)) gives a material opacity of 1.03; three clamps it when it
draws, but the bridge handed it straight to raea's MeshBasicMaterial, whose check threw RangeError. The bridge now
clamps opacity before converting.
Bevy applies the extract schedule's commands in the next frame's render schedule. A still draws one frame and drops
the Engine, so each extract system went with its queue unapplied and bevy_ecs warned "CommandQueue has un-applied
commands being dropped" 54 times (lldb on the warning: the extract systems' FunctionSystemState, dropped with the
render sub-app's schedules from render_with). Engine's Drop now runs the extract schedule's apply_deferred on the
render world, as Bevy's apply_extract_commands does each frame. Checked on the binary: a still of the starter edit
prints no CommandQueue line, and a video renders with 0 findings. forward_render_diagnostics is written shorter to
keep raea-render within 2,000 lines.
The starter edit plays a sound-only cut with <Audio> (09ee78513, #89 item 2) on a branch that runs only when there is
one (`c.kind === "audio" ? <Audio /> : <Video />`). The render's silence check refused any edit whose bundle has an
<Audio> call and no sound, so `raea init` then `raea render edit.tsx` was refused before the edit had any cuts. The
check (raea_runtime_sound::always_plays_audio, its own file with a test) now counts only an <Audio> that always plays:
one behind `?` or `&&` is silent when its condition is false, as meant, while one in a wrapper's children
(`children: jsx(Audio, …)`, the <Mix> that dropped them on 10-18) is still refused. Checked on the binary: the starter
edit renders 90 frames with 0 findings, and an <Audio> inside a component that returns null is still refused.
Skills (SK4): SKILL.md's "7. Deliver" names runtime/export/src and says nothing of the silence check: checked, still true.
The cue rule anchored on any one word of weight within 2 s, so a card
sharing a single word with another line ("Wirestock x OpenAI Sora" against
"At Wirestock, I worked on...") was held to that word's time. A text now
counts as a caption only when at least half its words match the spoken run
in order, and a one-word card only within 0.75 s of its word. Words are
compared by the shared word_key, as the rest of the rule does. A caption is
still timed from its first word, so a card whose first word was said earlier
is still flagged, by design.
Part of #89
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: shinyobjectz <[email protected]>
createRequire(import.meta.url) then resolved packages from ".", so a tool requiring a package that way failed on
macOS 15 with "Cannot find package" (a newer JavaScriptCore gives the module's key, which is why it passed here).
raea-native's node test found it as soon as CI's unit tests ran it: the crates #90 added switch on raea-native's
modules feature, and before that the test compiled to nothing in CI. Each module's text now has import.meta.url as
its file's own file:// URL, the way node.rs already writes import.meta.main in.
apps/check was at its 2,000-line limit (tools/size.sh) with three of #89's items still to come. The screen itself
(Px, Swings, FlashScreen: WCAG 2.3.1's opposing swings in a frame's windows, from decoded RGB) is pure pixel maths
with nothing of the check's, so it moves to apps/check/flash with its six tests, unchanged; the FFmpeg side (the
decode, showinfo's exact times, the log's severities, the findings) stays in flash.rs. apps/check goes to 1,680
lines. CI's unit tests take the new crate too. And raea-render's log-filter comment is folded a line shorter: the
merge of #104 left the crate at 2,001.
* fix(log): a 3D camera that is the shadow LOD origin, and bevy_time's warning filtered
Every 3D run with a point or spot light warned that no entity has
ShadowLodOrigin (the scene camera draws into an image, so Bevy picked one
arbitrarily): the scene camera now carries the marker. bevy_time's "did not
receive the time from the render world" (raea drives Time by frame, with the
render world in step) is filtered out of stderr, in Bevy's log filter and in
raea_io_trace's logger; the event log keeps every record.
Measured on main 5b2c7731: a 3D still with a point light printed the
ShadowLodOrigin warning, now nothing; a 2D still printed bevy_time's line,
now not. The 54 dropped bevy_ecs CommandQueue lines on a 2D still are left as
they are: their source still needs finding.
Part of #89
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* check: keep raea-render under the size cap
The two new comments said in five lines what fits in three; raea-render
was 2 lines over tools/size.sh's 2,000-line crate limit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
A take under media/ with sound alone (wav, mp3, m4a, aac, flac, aif, aiff, ogg, opus) was no take at all: `raea cut
take.wav --at 0-1` refused it, and a video's shot detection would have opened it as a picture. Such a take is listed
with the videos, cut on its words or spans as a video is, with no jump cuts to keep off and the edit's 30 fps grid; its
clips carry kind "audio" in cuts.ts (and no face is looked for in perception.json), and the project template plays
them as <Audio> under whatever the edit puts in their place. Found and shaped by SirSicard's report; items 3, 5, 6
and 7 stay open.
A centred line in a left: 0; right: 0 box was flagged in the left zone, since the rule tested the layout box, which
starts at x = 0. The render's manifest now records each text's ink (the lines' own extent, each laid by its alignment,
as a box beside the element's), and a run's per-frame boxes are its ink where that's recorded, its box on an older
manifest, so the clipped, safe-area and face rules measure the letters; the safe-area finding names the edge crossed
and prints what it measured. And --taste naming a file under the person's taste folder (RAEA_TASTE, else
~/.raea/taste) that isn't there yet prints a note and checks without it, as the skill's standing
`--taste ~/.raea/taste/taste.ts` does on a machine with no taste file; any other missing path still refuses.
findings_of and Probe::of are written shorter to keep the crate within 2,000 lines. Item 2 is the next commit; 3, 5
and 7 stay open (6 is in the docs already). Diagnosis and shape from SirSicard's report.
ci.yml's unit-test step tested three crates; the brief, K, bundle, check, workspace, tools and targets crates join it,
with debug info off for the test binaries (with it they filled 27 GB of a runner's disk). Two tests only passed by
accident of the build: the bundle test's fake SDK sat where the resolver no longer looks (it reads sdk/tsconfig.base
.json's paths since S1d), so it's laid out as the real one with that file; and the workspace's literal test depended
on serde_json's key order, which a crate built alongside (raea-cli) turns into insertion order through preserve_order,
so its lines are held as a set. Found and shaped by SirSicard's report.
Skills (SK4): SKILL.md's "2. The workspace and its projects" and "3. Read before you make" name apps/workspace/src,
where only its tests changed: checked, still true.
A containing-block link is what the last construction and layout left, and freeing a node doesn't clear links to it:
after a display: none clip's anonymous blocks were freed, measuring one of its descendants panicked on the stale key
(invalid SlotMap key), which an HTML composition hit through its script's getBoundingClientRect. The two geometry
walks and inline_root_ancestor now stop at a missing node, as the paint tree's walk does, and an element in a display:
none subtree answers Chrome's zero rect rather than a rect measured up to the stale link. Cause read by Razepriv in
#108; the same family as #24.
nv12.k and nv12buf.k rounded half up into limited range (220 levels of 256), so a slow dark gradient merged into
bands and blotches that raea check flagged on every sampled frame of a 1080p60 fog shot. Each sample now rounds
through the Bayer threshold of its pixel (a chroma pair's, of its block's top-left), fixed by position, so play and
render agree and nv12_cpu (the CPU render) stays bit-equal: core/k/tests/nv12_dither.rs runs both kernels through the
interpreter against it, and holds a flat dark grey's mean. Samples are clamped to the nominal range (luma 16..235,
chroma 16..240), since 220/256 overshoots 219/255 and the dither would have put some white on 236. The report's
dark-gradient repro goes from a blotching error on 2 of 2 frames to clean, at 2.98 MB instead of 0.64 MB for its
4 s: the encoder keeps the gradient it used to flatten. Diagnosis and shape from SirSicard's report.
v0.1.1 laid the window's page out at scale 1 and stretched its image over the window: on a Retina display every
glyph and hairline was drawn at half the pixels (a bug report of 11-12: "UI renders at 1x on Retina", the blur and
pixelation people noticed). page.rs size() now gives the page the window's scale factor along with its size in
points, read each frame so a window moved to another display follows; headless, the image target's scale stands.
RAEA_WINDOW_SCALE=2 opens the window at that scale on any display, to check it on a 1x Mac. tests/retina.rs covers
the scaled window and the headless case.
Every filtered element is an image the size of its box in Vello's atlas (8192 px a side). Two overlapping scenes that
each stacked six full-frame <Freeze> layers under filter: opacity() (a motion blur) at 2160x3840 asked for twelve such
images, more than the atlas holds, so the frame was drawn without them: on 0.1.0 silently, on main as a refusal. An
opacity() filter scales the group's alpha exactly as the opacity property does, so it now folds into the layer's
alpha and needs no image. The report's composition draws its frame 26 at 4K; the filter-functions, opacity and
backdrop-filters parity cases match Chrome as before.
Taffy's measure cache keeps a box's size without its baseline. On a fresh layout every inline-block missed the cache
and its baseline came along; once one span's transform changed, the title's other spans came back from the cache
baseline-less during the measure pass, sat on the line by their bottom margin edge, and the line measured taller by
the font's descent: a per-character spring title jumped 24 px and the block under it 25 px on the frames one span's
value left zero. Blitz already asked for a full layout of inline flex and grid boxes for the same reason; now every
inline box gets one. Checked with the report's composition: the accent line stays at the same row on every frame,
in either render order. The parity case p12-css/inline-block-transform-relayout toggles one span's transform and
holds the block under the title against Chrome.
A video draws its 3D live, and a mesh's row keyed only the emissive strength, and only where the first frame glowed:
a part dark on its first frame stayed black for the whole video, and a change of hue was ignored (stills were
right, since their first frame is the frame). The full path now sends the colour whenever it differs from what was
sent (none is black), with the strength (0 once black); the fast path hands such a frame to the full one, and its
strength rule reads the sent colour, not the first frame's. runtime/live/tests/live_emissive.rs steps a ball from
dark to blue to orange to dark, under RAEA_LIVE3D_CHECK.
boundsOf passed the cone's full height to box(), which takes half extents; the cone is drawn centred on its origin.
Found and diagnosed in #98. events3d.test.tsx checks a radius 0.5, height 2 cone's bounds.
Its ccw flag was inverted, so a right-angle corner drew three quarters of the circle through the far side. Found and
diagnosed in #97. sdk/ui/test/canvas-arcto.test.ts checks both turning directions and a four-corner rounded rectangle.
The desktop app's raea-page-host.exe kept Windows' 1 MB default and overflowed it inside a window callback
(0xc000041d) right after opening an MP4. .cargo/config.toml now passes /STACK:8388608 for both Windows MSVC targets,
so raea-page-host, raea-rune-host and raea-perceive match raea.exe.
On 11-10 the Mac build took 370 s at -j6 (133,184,648 bytes, reporting 4.6.1.stable.raea.14d19694e): smoke PASS, and its 17 typing files are byte-identical to GodotJS's build's. The Linux build took 511 s on 16 cores (161,938,768 bytes); it ran before the BUILD_NAME=raea line, so it reports custom_build, and it hasn't run raea's smoke yet. `raea setup godot` keeps GodotJS's pinned builds for 0.1.1; the pins move to raea's own in 0.1.2, once the Windows editor is built too, the Mac one is signed and each passes the clean-machine smoke. Nothing is uploaded before then.
raea-io-alpha encodes --alpha PNG frames (straight alpha) as a QuickTime movie: ProRes 4444 or HEVC with alpha through AVAssetWriter on the Mac, and QuickTime Animation (32-bit ARGB run-length, FFmpeg's qtrle layout) or PNG frames on every platform. `--alpha-codec prores|hevc|rle|png` picks one; prores is the Mac's default, rle elsewhere. CC1a, on a 3 s 1080x1920 graphic: 12.3 MB, 0.34 MB, 0.84 MB and 7.4 MB; rle and png decode identical to the PNGs, prores and hevc alpha within 61 dB, and a frame that draws nothing decodes fully transparent in all four.
raea-io-capcut writes CapCut 8.5.0's draft as CapCut writes it (an empty project and one with a clip placed by hand give its skeleton and a video segment's companion materials): one material per segment, times on the frame grid, media copied into its assets/, version markers from the newest draft CapCut made, and the entry in root_meta_info.json (backed up first, refused while CapCut runs). raea-app-capcut renders the composition three times: as it is with --manifest (footage runs, sound clips); with its footage and the backgrounds holding it hidden (RAEA_HIDE_MEDIA=1, the overlay); and with only those backgrounds (RAEA_HIDE_MEDIA=under, kept unless black). Footage becomes clips of the original files at their trims and rates, placed by object-fit (cover, contain, a cover crop), keeping their own sound at the composition's gain; sounds become audio clips with gains and fades; the overlay becomes clips cut where it draws. The manifest gains each video's object-fit and each sound's rate and fades, and the export cache is skipped under RAEA_HIDE_*. Checked on two fixtures: the draft's layers composited in ffmpeg match raea's render (31-33 dB against its H.264). Not yet checked: the draft opened in CapCut itself (CC3a). The CLI reference gains export (in Make) and --alpha-codec.
- BL29: Blender 5.2.4's Windows zip (406 MB, sha256 as blender.org lists it, 901 MB installed) needs nothing more;
sdk/blender/test/smoke.ts run under Bun 1.4.2 through raea/blender printed its PASS line (3 cubes, the last 4.000 m
out, a bmesh volume of 1.000).
- GD8: GodotJS's QuickJS-ng Windows editor (83,915,786 bytes, raea's pinned sha256, 178 MB installed) reports
4.6.1.stable and starts and quits headless with exit 0.
- Still to run on each: raea's own Windows and Linux builds (raea setup, then raea blender run / raea godot run), which
come with v0.1.1's release builds.
Proven: a probe on a Windows 11 PC (x86_64) in a scratch folder, removed after.
- tools/returns.py reads what a function written in Python returns from its source, where its docstring has no
:rtype: (or a Python property's getter, no :type:): the type every `return` gives when each shows one (a literal, a
comparison, a builtin's result, a str method on a string, os.path's, a local only ever bound to such), "T | None"
when a path falls off the end; anything else leaves it any. dump.py gives it as `ret`, gen uses it for functions and
Python properties alike: CyclesPreferences.has_active_device() boolean, Mesh.edge_keys an array,
BoneCollection.bones_recursive a set (33 members).
- pymod.ts types the items of sequences whose name doesn't give them, from the C (bmesh_py_types*.cc,
idprop_py_api.cc): bm.select_history[i] a vertex, edge or face; a BMElemSeq's any element; a layer collection's
BMLayerItems; a deform vertex's [group] a weight; an IDPropertyArray's numbers or booleans. BMVert/BMEdge/BMFace/
BMLoop[layer] and an ID property group (keyed by name) no longer claim a number index.
- dump.py leaves out Python's own names a Blender module imports (anim_utils' Mapping, Sequence, Iterable, typing
aliases, dataclass), and keeps a private class the module's functions name as their :rtype: (bpy.props'
_PropertyDeferred, so FloatProperty() and the rest return it).
- cret.ts reads `(PyCFunction)(void *)(name)` entries (GPUShaderCreateInfo's depth_write, fragment_out,
push_constant, uniform_buf: None) and a returned local by its every assignment (libraries.write None,
bpy.utils.units.to_value float, bpy.app.help_text str): cret.json 284 method and 123 property names.
- Declarations typed any: bpy.types 51 -> 32 of 16 684; modules outside RNA 104 -> 47 of 1 440.
Proven: tools/gen.sh from Blender 5.2.1 (tools/cret.sh 5.2.1 first); sdk/blender's tsc and its 16 bun tests pass,
with test/returns.test.ts: the reader's 18 cases, and every member it types on live meshes, bone collections and
Cycles' preferences reads as that type in Blender.
- The image is Node 24 on Debian trixie with glvnd and X11's libraries (libxext6 libx11-6 libgl1 libegl1), without
which NVIDIA's Vulkan driver (mounted by the container runtime) doesn't load or gives no vkCreateInstance (driver
610.57 on Modal's T4, A10G and A10). The entrypoint opens NVIDIA's driver when the host passed a GPU in, else Mesa's;
WGPU_BACKEND=vulkan, and on the CPU EGL's vendors are hidden, since NVIDIA's EGL would hand wgpu an OpenGL adapter
over llvmpipe. RAEA_CLOUD_DEVICE=gpu fails at start on no GPU; /v1/health says the device.
- /v1/jobs takes a project as a tar and gives back what the render made (CL14); deploy/modal/raea_cloud.py runs it on
a Modal GPU list (L4, else A10G, else T4), one container that sleeps after five idle minutes.
- RAEA_CLOUD_GPU_URL on a CPU box sends raea render to the worker and lands its files back (CL15, image/raea.sh and
server/offload.ts); deploy/k8s.gpu.yaml is such a worker.
- test/smoke.sh: worker and box, ten checks, all pass on 0.1.1-rc3. On Modal, test/gpu/edit.tsx (576 lit blocks,
1080p, 90 frames): T4 156 s against llvmpipe on the same machine's 8 cores 203 s; a box on a Mac handed it to an A10
(119 s) and the MP4 came back.
- raea setup blender finishes on a machine without uv (the MCP add-on becomes a note) or git (raea.blender is
remembered only where git is; find() takes raea's download anyway).
- Downloads are checked with coreutils' sha256sum where perl's shasum is missing (debian:trixie-slim has none), for
Blender's setup and Godot's.
- A Linux Blender that can't load its libraries names the Debian packages it needs, found in debian:trixie-slim:
libx11-6 libxi6 libxext6 libxfixes3 libxrender1 libxkbcommon0 libsm6 libice6 libgl1 libopengl0.
- sdk/blender/test/smoke.ts: raea blender run's smoke (cubes made, a bmesh volume, mathutils against Blender's, one
PASS line).
- GD2: pin_for(os, arch), and a test that Linux and Windows on arm64 and other systems are told to build GodotJS and
set raea.godot.
- docs: BL29 and GD8 record the clean Mac runs and the clean Linux probe; GD2 is done.
Proven: cargo test -p raea-app-tools -p raea-app-engines. macOS with an empty HOME and the system's PATH: raea setup
blender --download, then raea blender run smoke.ts, PASS (Blender 5.2.4 LTS); raea setup godot, then raea godot run
smoke.ts, PASS. debian:trixie-slim on Modal: Blender 5.2.4 runs with the packages above, smoke.ts under Bun through
raea/blender PASS, and GodotJS's Linux editor starts headless.
- raea setup blender copies sdk/blender/python/raea_blender into that Blender's add-ons folder (replacing an older
copy) and enables it, beside the MCP add-on; --check says whether it is current and on. Started with its window,
that Blender serves raea/blender on 127.0.0.1 behind a token (~/.raea/blender/live.json).
- The add-on serves only a Blender with a window: a background one (a command-line render, setup's own checks) would
hide the person's open Blender behind its own live.json.
- Fixed: Blender 5.2 gives a timer the window but no area, so the bridge's ui_context left view3d operators with no 3D
view; it now fills in the area whenever there is none.
- Fixed, headless too: a slot freed by garbage collection was freed at the head of the next batch, before the read an
await had queued for it ("reference N was released or never set"). Frees now go last, and are sent again after a
batch that fails before them. test/bridge.test.ts forces the race: it failed before the fix and passes after.
- test/live.ts, run by hand (it opens a window): setup in a scratch BLENDER_USER_RESOURCES, Blender started with its
window, a cube made, moved and put in edit mode and view3d.snap_cursor_to_center run, on the main thread in the 3D
view; once Blender quits, connect({ live: true }) refuses its live.json.
- The CLI reference (docs/manual/reference/cli: setup, blender, index) follows the help.
Proven: cargo test -p raea-app-tools; sdk/blender's tsc and its 14 bun tests against Blender 5.2.1; test/live.ts 5 of 5
runs; the race test 5 of 5; bun tools/manual-ref/cli.ts check.
- tools/cret.sh fetches Blender 5.2.1's Python bindings (a sparse clone of its tag) and tools/gen/cret.ts reads, for
every method and getset entry, the one Python type all its C function's returns give: None, bool, int, float, str,
or a tuple a Py_BuildValue format makes. An error's nullptr gives nothing back; any other return leaves it unknown.
A name is typed for a family of bindings (bmesh, gpu, mathutils, generic, bpy, aud) only when every C function bound
to it there agrees: tools/cret.json, 274 method and 122 property names.
- dump.py marks functions written in Python (`py`), which keep what their own source says. gen applies cret.json where
a docstring has no :rtype: or :type:, and a C property's setter takes what its getter gives.
- Declarations typed any: bpy.types 68 -> 51 of 16 684; modules outside RNA 423 -> 104 of 1 461 (gpu.state,
gpu.matrix, aud's properties, bmesh's and gpu.types' methods).
- test/cret.test.ts reads every property so typed on live bmesh, aud, imbuf and mathutils objects in Blender: each is
that Python type.
Proven: tools/gen.sh twice gives identical src/gen; sdk/blender's tsc and its 13 bun tests against Blender 5.2.1 pass.
- BL34: tools/itemf.sh reads Blender 5.2.1's own makesrna (a sparse clone of its tag) for RNA_def_property_enum_funcs
calls with an item function, into tools/itemf.json (tools/gen/itemf.ts): 147 properties and RNA function parameters,
a helper's placed on the struct its caller defines. gen types them `static items | (string & {})`: 222 declarations,
Curve.fill_mode among them, so `fill_mode = "BOTH"` on a 2D curve type-checks without a cast. Python can't tell
these enums apart (with no context Blender never calls an item function). 8 helpers whose struct is named at run
time stay unresolved; their enums have one item or none, typed string already.
- BL22: dump.py marks a function written in Python whose source returns no value anywhere (returns_none, by its
AST), and gen types it as returning nothing where its docstring has no :rtype: (register, draw, shade_smooth,
keyframe helpers...). bpy.types declarations typed any: 127 -> 68 of 16 684; Python modules 470 -> 423 of 1 461.
- Two dumps of one Blender now write the same src/gen: a data member's repr sorts a set's items and drops memory
addresses.
- The guide (bevy/blender), README and docs/blender.feature drop the BL34 cast.
Proven: sdk/blender's tsc and its 12 bun tests against Blender 5.2.1 (bridge, rna, mathutils); test/typing.ts sets a
2D curve's fill_mode to "BOTH" and still refuses rotation_mode "XYZW"; run by `raea blender run`, the same script
prints fill_mode BOTH; tools/gen.sh twice gives identical src/gen.
- Licences: Godot's setup unpacks its zip with the zip crate, which brings zeroize_derive into a plain raea build, so it
leaves the plugin catalog's list (tools/licenses.sh: NOTICE's line and LICENSES/zeroize_derive-1.5.0).
- Dupes, back to 294 exact and 56 near: Blender and Godot share apps/tools' own_dir(name) (~/.raea/tools/NAME);
godot_run's project_size reads `key=value` with split_once, and godot types counts its .d.ts files in a loop.
- Taxonomy: the backend-name scan leaves out sdk/blender/src/gen, Blender's own API as its RNA names it
(bpy.ops.render.opengl), as it leaves out the generated .gen.tsx.
- The manual's CLI reference (tools/manual-ref/cli.ts gen): `godot` joins Generate and 3D tools with a page of its own
(docs/manual/reference/cli/godot.md, with its prose: run, the window that --window and --movie open, types, open);
blender.md says what a .ts script does; setup.md and the index follow the help.
Proven in an export of origin/main + this lane: tools/dupes.sh (294, 56), tools/taxonomy.sh, tools/licenses.sh --check,
and bun tools/manual-ref/cli.ts check (48 verbs, 214 flags, every flag described) pass; cargo test -p raea-app-engines
-p raea-app-tools passes.
The lane's first commit put apps/tools at 2,192 lines and engine/cli at 2,041, and L1 refused it. raea-app-engines
(apps/engines, layer apps) now holds godot.rs, godot_run.rs and blender_bridge.rs unchanged, and `raea blender run
SCRIPT.ts` (blender_ts.rs, moved out of engine/cli's cli.rs). Its cli(args) answers `setup blender|godot`, `blender ...`
and `godot ...`, so cli.rs calls it once where it had five branches. Finding and setting up Blender stays in
apps/tools/src/blender.rs, whose run and sha256 are now pub for Godot's setup; zip and dunce moved with Godot.
Sizes now: apps/tools 1,496, apps/engines 777, engine/cli 1,996 (main has 1,999).
tools/layers.toml gives the crate its layer; tools/skills.sh's stale-help check also watches apps/engines/src, where
Godot's usage now lives; docs/godot.feature, sdk/godot/README.md, sdk/godot/tools/gen.sh and runtime/calls/src/blender.rs
name the new paths.
Proven: cargo test -p raea-app-engines -p raea-app-tools (10 and 12 pass, among them a new test that cli() takes only its
own verbs and leaves the rest to the CLI); raea built with it runs `raea godot`, `raea setup godot --check` and
`raea blender run` on a .ts script as before.
Shane, 11-10: "include natively a blender api package in raea/blender using samchon/blendia as good starting place and
get us to a solid scripting parity to the official blender python api. we will own this ourselves", and "make sure to
add GodotJS which should add a more complete integration and bindings for godot integration".
raea/blender (sdk/blender, started from samchon/blendia, MIT, and rewritten): bpy, bmesh, mathutils, bpy_extras and
gpu typed from Blender 5.2.1's own RNA and docstrings (tools/gen.sh: 1809 structs, 2498 operators, 41 modules outside
RNA; 102 of about 12 900 members any), run against a real Blender. Paths are lazy as Python's attribute access is
(writes and calls sent in order, reads awaited, py.pin for a stable handle), errors are Python's (BlenderError),
mathutils is computed in TypeScript with Blender's maths (1450 values within 1e-5 of Blender's), float arrays are
the value Blender gives (Vector, Matrix, Euler, Quaternion, Color), a call that makes a thing by its type returns
that class (tools/refine.py), node sockets are typed by name, and every argument can be given by keyword.
`raea blender run SCRIPT.ts [FILE.blend] [ARGS...]` runs a script on raea's engine against a headless Blender
(apps/tools blender_bridge.rs, runtime/calls blender.post); under Bun or Node it starts its own, or joins the person's
Blender through raea's add-on (python/raea_blender).
raea/godot (sdk/godot) on GodotJS (MIT): Godot 4.6.1's every class, singleton, enum and builtin typed from GodotJS's
codegen, JavaScriptCore on the Mac and QuickJS-ng on Windows and Linux (no V8). `raea setup godot` downloads GodotJS's
editor build pinned by size and sha256 (apps/tools godot.rs); `raea godot run SCRIPT.ts` bundles the script and runs
its default export (a function given the SceneTree and ARGS, or a SceneTree subclass as the main loop) headless or
with --window, --movie recording with Godot's Movie Maker (the window kept on top, the frame size from the project),
a callback that throws stopping the run, RAEA_CWD with cwd() and resolve() for paths; `raea godot types` and
`raea godot open` (godot_run.rs).
The guides: raea guide bevy/blender gains "A step in TypeScript" and bevy/godot is new, each example type-checked
with its SDK's tests (sdk/blender/test/guide.ts, sdk/godot/test/guide.ts) and run as shown; raea guide bevy routes to
bevy/godot. Their raea-skills copies are 7497067 (branch blender-godot-ts, not pushed). sdk/tsconfig.base.json maps
raea/blender and raea/godot; tools/release.sh ships @raea/blender's python/.
Proven: sdk/blender's tsc and bun tests against Blender 5.2.1; sdk/godot's tsc and its 7 bun tests against the
installed GodotJS; apps/tools godot_run's unit tests; post 07b's film (releases/0.1.1/src/engines), its left half
built and keyed by raea/blender and its right half recorded by raea/godot.
A paused timeline's playhead starts at 0, so seeking it to 0 changed nothing and frame 0 showed the page's raw CSS; at t=0 the seek forces the render. sdk/ui test html-frame-zero pins it.
vello_encoding lets go of what the resolve hasn't used (the longest unused first) and packs the atlas again with the resolve's own images once, before an image is left out; what is still left out is counted, raea-page refuses the frame naming it, and the fed render now reads refusals, so a video fails as a still does. bench/layer-atlas: 18 frame-sized layers drawn in all 48 frames (32 short on main).
blitz-paint sizes a filtered element's layer from the boxes it and its descendants draw (drawn_bounds: up to the clips in their way, a descendant's own filter reach included, and the out-of-flow boxes its stacking context paints past its clip), then grows it by the filter's reach as before. bench/filter-overflow checks twelve pixels against Chrome 157 and 120 clipped filtered boxes.
blitz-dom's SVG serializer no longer writes a leading ; before the computed transform when the element's own declarations were transforms alone (simplecss dropped the whole style), and transform-box: view-box's reference box sits at user space's origin, as css-transforms-1 puts it. bench/svg-css-transform gains viewbox.tsx and probes measured against Chrome.
write_manifest makes the manifest's folder before it writes: DR2 wrote it before the 2D stills path made the output folder, so --at into a new folder was refused (bench/at-0 and bench/svg-css-transform failed on main).
Two more ways the layer grew over content nobody sees, both from the Codex review of the first commit:
- the stacking context's boxes were all added whole, where hoisted_content_bbox places them. Only the ones painted
past the clip need that (the out-of-flow boxes from containing blocks above, #39's from_above, which the walk
doesn't meet). The others are met by the walk, under the clips they are painted under, so a filtered
`overflow: hidden` box with a frame-covering `z-index` child keeps a layer its own size;
- drawn_bounds stops at a `contain: paint` box as at an overflow clip (render_element's contain_paint).
bench/filter-overflow/clipped.tsx is now 120 boxes cut four ways, 30 each. The first commit drew 60 of its 120
tiles: each of the two new kinds made 30 layers the size of the frame, more than Vello's image atlas holds.
Co-Authored-By: Claude <[email protected]>
The first form chained the write after the folder with `.and_then(|()| std::fs::write(&path, m))`, which
tools/dupes.sh reads as a copy of apps/check's hook.rs:105 (57 near-duplicate groups against the 56 allowed).
The folder is now made first, in its own statement, and the write is as it was. The crate is still at its
2,000 lines: the manifest's JSON is written where it is built.
Co-Authored-By: Claude <[email protected]>
blitz-paint made a filtered element's layer from its border box grown by the filter's reach, and raea-sys-filters
sizes the layer's texture from that clip. So whatever the element's descendants drew outside its box was cut off
before the filter ran: a wrapper of no size with `filter: blur(4px)` around absolutely positioned children drew a few
px of blur and nothing else, and a 60 px box with `grayscale(1)` showed 60 px of a 200x100 child. The same wrappers
with `opacity` drew whole, since an opacity group already reaches over the element's overflow.
A filtered element's layer now reaches over the boxes it and its descendants draw (drawn_bounds), and the same of
each box its stacking context paints, then grows by the filter's reach as before. drawn_bounds is
scrollable_overflow's walk (blitz-dom's resolve_transforms: each child's box through its transform) with two
differences. It is cut, on each axis an element clips, to that element's box grown by its overflow-clip-margin
(the root element clips nothing, as in should_clip). The overflow itself reaches through every clip, and a texture
made from it is as large as content nobody sees: small filtered boxes, each around a clipping box with a child
covering the frame, became layers the size of the frame, more than Vello's image atlas holds, and tiles went
missing. And a descendant with a filter of its own counts with that filter's reach (its drop shadow).
raea-sys-filters still cuts a layer to the page grown by the reach.
bench/filter-overflow/check.sh: page.tsx draws the blurred wrapper, a grayscale box around a square with its own
drop shadow, and the grayscale box three ways (as it is, clipping its overflow, clipping x alone), probed at twelve
pixels for Chrome 157's values, read from a screenshot of the same markup; clipped.tsx is 60 small filtered boxes
around clipping boxes with frame-covering content, half of them painted by the stacking context, its tiles counted.
The raea before this fails five probes; with it all pass and all 60 tiles are drawn.
Not covered: a box-shadow or an outline of a descendant, and a descendant's url() filter, still end at the boxes'
bounds; a box the stacking context paints that a clip between the two cuts is counted whole (a larger layer, never
a smaller one); and a filtered element inside an element with a perspective transform is still cut to the page's
rectangle in that element's own space (raea-sys-filters' region).
Co-Authored-By: Claude <[email protected]>
transform-box: view-box, an SVG element's default, takes the nearest viewport as its reference box, and
css-transforms-1 puts that box at the origin of the user space the viewBox sets up, with the viewBox's width and
height. blitz-dom's svg_view_box returned the viewBox's own rectangle, x and y included, and svg_css_transform moves
the origin by the box's corner. So under `viewBox="100 50 400 300"` a `transform-origin` of 0 0 became 100 50:
`<g transform="scale(2)">` drew its content 100 px left of and 50 px above where a browser draws it, and a rotation
turned about the wrong point. A viewBox starting at 0 0, a translate, and a fill-box or stroke-box origin weren't
affected.
svg_view_box now returns the viewBox's size at 0 0. A viewport without a viewBox was at 0 0 already.
bench/svg-css-transform/check.sh gains viewbox.tsx: a square scaled by 2, one turned 180deg about 50% 50%, and one
scaled inside a nested svg with a viewBox of its own, each probed where Chrome 157 draws it (their client rects read
from the same markup in Chrome). The raea before this fails all four probes; with it they pass, and the bench's two
earlier cases are unchanged.
Co-Authored-By: Claude <[email protected]>
Since de1a6830 an SVG element's computed transform goes to usvg in its style attribute: the element's own
transform declarations are taken out and `;transform:matrix(...);transform-origin:0 0` is written after what is
left. When the style held nothing else, nothing was left, and the attribute began with `;`. usvg reads a style
attribute with simplecss, whose declaration parser stops at a `;` before the first declaration, so every
declaration in it was dropped: `<rect style={{ transform: "rotate(30deg)" }}>` drew unturned, and so did one with
only transform-box, transform-origin and transform. A style that also set a fill or a stroke was read.
The element's own declarations are now written from the first of them on (without the separators, spaces and
comments CSS allows before it, which stop simplecss the same way), and the separator only after them when there are
any.
bench/svg-css-transform/check.sh compared mixed.tsx's two squares with each other. Both are of this kind, both drew
unturned, and the comparison passed at 0 px. The check now also probes each square on its turned top edge and where
its unturned edge would be. The raea before this fails those four probes; with it they pass, and the two comparisons
read 75 and 0 px as before.
Co-Authored-By: Claude <[email protected]>
An element with a perspective transform or a filter is drawn apart and placed in the page as an image the size of
its box (raea-sys-filters' placeholder), new in every frame, and Vello copies each into its image atlas. The atlas
stops at 8192 px a side, room for 28 images the size of a 1080p frame, and lets go only of what the last two
resolves didn't use, in one sweep a resolve. So a page of ten such layers or more filled it with the last frames'
images, the frame's last layers (the nearest ones) found no room, and Vello drew them at no size without an error.
A film staged on about twenty frame-sized planes lost a cursor or a mark from single frames, different ones on each
run, with "0 errors, 0 warns".
vendor/vello_encoding, when an image finds no room at the atlas's largest size:
- what the resolve hasn't used is let go, the longest unused first (ImageCache::evict_unused), so last frame's
placeholders go before a picture this frame's layers drew;
- if an image is still left out, the atlas is packed again with the resolve's images alone, the tallest first
(repack_with, once a resolve). Images met in paint order cut a guillotine atlas up: 18 a few px apart in size
didn't all find a place in room for 28;
- the images left out after that are counted (take_images_left_out).
An empty image is no longer looked for a place (the allocator has none for it, and the atlas grew to its largest
looking), and isn't one left out.
raea-sys-page reads the count after each Vello draw (skipped.rs) and refuses the frame, and the fed render now reads
refusals (raea_gpu_device::check::fed_checked): it had no one to read them, so a refused page went into a video as
it came. A still's render read them already.
Tests: vello_encoding's resolver places all 18 frame-sized images of each of 40 frames (unpatched: 10 of 18 from
the second frame) and counts the ones left out of a frame of 40; the cache's two new steps; fed_checked fails a
refused frame by its number.
bench/layer-atlas/check.sh, 18 layers the size of the frame, each with one white tile, on Windows 11 with an RTX 4070
Laptop (Vulkan). Before: 32 of the video's 48 frames short of 18 tiles, stills 1, 3 and 5 of six drew 10, and 40
layers rendered with every frame short. After: 18 tiles in every frame of the video and in each still, and the
40-layer render fails with "frame 0: a page (1920x1080) was drawn without N of its images".
Not changed: the atlas's size. A page still can't draw more images in one frame than 8192 px a side holds (28 the
size of a 1080p frame at best, 6 at 4K); it now fails instead of drawing without them. An image wider or taller
than 8192 px, which Vello also left out silently, fails its render too.
Co-Authored-By: Claude <[email protected]>
Since bb0a1768 every render writes its manifest beside its output, DIR/NAME.render.json for a folder of frames. A 2D
composition's stills write the manifest before raea-render makes the folder and its frames, so with a DIR that
didn't exist the render stopped before drawing anything:
raea render edit.tsx --at 0 -o new-folder
REFUSED new-folder/edit.render.json: The system cannot find the path specified. (os error 3)
It worked into a folder that was already there, and for a composition with 3D, whose path makes the folder first.
write_manifest now makes the manifest's folder before it writes.
bench/at-0/check.sh and bench/svg-css-transform/check.sh render stills into a fresh temporary folder: both fail on
main with the message above, and both pass with this (Windows 11).
Co-Authored-By: Claude <[email protected]>
Proved by bench/direction/proof/proof.sh: five checks that import nothing of Bevy's (a lyric layer over footage, a footage cut, a cue in a mix, a caption in a vertical ad, a rider on a 3D seat), each passing its piece and failing its cheat, and a taste line failing the ad's cheat as the named check of its form.
Fixed on the way: a text's box grows over words drawn past it (the caption cheat passed); a word a cut passes through is in each clip's words (the cut cheat passed); a Part carries its own box before its transform, so a turned part is tested as turned; the help reads `[A|B]` as one argument. Copies folded rather than added: a command's words (apps/check, now also raea workspace's), the printed report and exit code, the person's taste folder, a controller read from JSON (core/brief, now also apps/workspace's), and a path made plain (runtime/bundle's). The spec's lines that the code showed wrong are fixed beside them: --stage moves to DR10, a note's checks to DR6, and the rule field from DR8 to DR4.
A render, or raea check, of a file in a raea project keeps its findings in .raea/record/, one file apiece named by
when (UTC) and what, with the project's commit ("+" when the file has changes not committed), what --despite let
through, and at most 500 entries. raea findings [PROJECT | EDIT.tsx] [--about NAME] [--check ID] [--open] [--since
RENDER] [--json] compares each thing's latest entry with the one before (or RENDER): what was fixed, what is new and
what is carried, and since which render; a finding is the same across renders by its check and what it is about, not
its frames. raea next reads the record, not out/ and a check.json's time: a render's errors are the next step, then
its video's check and what that found. A render's manifest has all its findings (the exposure's too). The record lives
in core/facts beside Finding, since the render, raea check and raea next all use it (the scenario says why); the
registry's up() moved with it. raea findings is dispatched; its help line follows the lane changing help.
A render's measured exposure (clipping to white, crushing to black, stops off mid grey) is said as its Findings, so
it counts with the clipping check's on the last line. raea scene light says a cut that jumps in exposure or drifts in
white balance as a warn about the shots either side, with the stops or mired it turns on, and counts its findings
last; --json has them. The conversions live in raea-sys-light-meter, beside what they read, and scene light's text is
its report(), which leaves raea-runtime-export 7 lines smaller.
The defects present on its sheets become Findings in judge.json (findings, count) and in its text, counted last: a
blocking defect an error, a detail a warn, each a level lower from a judge that only advises (clef before
calibration). A judge sees pictures, not parts, so a finding names its sheet in its words and is about no entity. The
rubric's raw answers stay in defects.
gen check's and solid info's {check, level, says} become Findings about the model, or the part (else the solid's file),
worst first, their count last; their JSON has findings and count in place of found, errors and warnings. A fix's
command, which was in its words, is its fix. project scan's lint is Findings about each file keyed file:line, a note
for what only the render knows, a fix raea doctor --fix applies starting by saying so; its JSON has findings in place
of lint. A file whose registerRoot makes its compositions through a helper is no orphan: the scan says it can't list
them (computed-root, a note).
~/Studio didn't say whose folder it was. With no raea.root, default_root: ~/Studio where workspaces are already (the root before 11-10), else ~/Documents/raea, or ~/raea when iCloud keeps the Documents folder (a workspace's git history and footage don't belong in a synced folder). The feed's host says the same (raea-feed host/workspace.ts defaultRoot). raea's usage and the manual's CLI pages name the new default; the skill's files.md follows in raea-skills.
The reporter saw --kbps and --quality write byte-identical files. On an RTX 4070 with rc2 the default, --kbps 20000
and --quality master did too (blocks.tsx, 1.0 Mbit/s), while --kbps 1000 gave 0.79: OpenH264's rate control never
goes below QP 12 (encoder_ext.cpp clips iMinQp to GOM_MIN_QP_MODE), so a frame that fits there has nothing left to buy.
On a Snapdragon X's Adreno X1-85 (Vulkan), a byte from clamp, min or max that was then shifted and or'd into a word
came out with 0xff in its top two bytes: the compiler fused the three into a pack it gets wrong. nv12buf.k packs four
luma bytes that way, so half the luma words of a bright frame were wrong and video striped. The bounds now add kz,
i32(shape.n >> 31u), which is zero but read from the shape uniform, so the compiler can't fuse them. The reporter
found the trigger and this fix on the device (128,319 of 262,144 words wrong before, 0 after); the test runs their
kernels, clamp and min/max each packed with or and shl, against the interpreter on random pixels. 05c978867's
unsigned shl stays (an i32 shift into the sign bit is still left to the compiler) but wasn't the cause.
{check, level, says} with what it is about (part, into, on, file) is what scene lint, gen check and solid info write;
of_value reads it as a Finding, a pass ("ok") as none, an object fix as its command. The plan's finding.rs is 240
lines for it.
Each is { check, level, about, says, measure, by }: the check by an id a command line can name (work-aisle, walkway,
facing, behind-seat, work-triangle, decor-floats, decor-opening, decor-unit, decor-height, decor-centre, decor-width),
error, warn or note, the things it is about by name, and the distance it turns on with its limit. A clearance that is
met is a note (it was "ok"), so its margin still shows; "warning" is now "warn" and "rule" is "check".
A render's findings (the clipping check's, as it says them) are kept for the end: the last line it prints is their
count, and an error not let through makes it exit 1 once its output is written. RAEA_DESPITE="CHECK: why" (a check's
name, or all) lets a check's errors through and writes the reason into the manifest, for a harness that renders many
pieces and compares pixels: P26's compare and recapture set it; a raea before this ignores it. The --despite CHECK WHY
flag is read the same way; its line in render's usage follows once the lane changing that line lands. raea check
--quick judges its stills' render by the manifest it wrote, not its exit, and reads their findings.
core/facts gains Finding { check, level, about, frames, says, measure, fix, by }, its one-line text, ranked (worst
first) and count, with its TypeScript declaration; raea check's P0 and P1 are errors, P2 a warn, P3 a note, and lint's
"warning" a warn. systems/contact's found.rs makes the lint's faults and the clipping check's overlaps Findings about
the parts by name, with the number each turns on and its fix. A render's manifest carries "findings" (it carried
"clipping", which nothing read) and says each on stderr; raea scene lint prints them worst first, notes included,
with the count last. raea check -o writes {file, fps, findings, passed} and prints the count last; --quick takes in
what its stills' render found and says a render that fails as an error. raea next reads the errors from findings.
The plan's apps/direction issue.rs is six lines in apps/check's report (the scenario says why).
Shane 11-10: "we should add an audio-only render and also be able to render video and audio at the same time".
apps/sound (raea-app-sound, new): `raea render EDIT.tsx -o OUT.wav` bundles the composition as a render does (its --composition and flags), steps React through every frame for its sounds with no frame drawn (raea_runtime_export::sound_only, which live play already mixes from), masters it by its <Mix> as the video's sound is mastered, writes a 48 kHz WAV and prints its length, loudness and true peak. `--audio OUT.wav` on a video render sets RAEA_AUDIO_BOUNCE, which every render path already writes from its own bounce (export sound.rs and fed.rs, encode sound.rs), so the WAV is the very sound the video carries before AAC, with nothing rendered twice. engine/cli: the render line names OUT.wav and --audio, and run() hands a render to apps/sound first (one line; raea-cli is at its size limit). runtime/export, at its 2,000-line limit, is unchanged. docs/manual/reference/cli/render.md regenerated, with --audio described.
Checked: the Orientation film's sound alone, 125.8 s in 22.3 s, -14.0 LUFS, true peak -1.7 dBTP; a 2 s test with -o t.mp4 --audio t.wav wrote both, the WAV 2.000 s and the MP4's audio track 1.961 s (AAC).
His words verbatim, restated as five asks with what they don't ask. Each Text gets on, visible and read times; reading
is measured against visible; visible-but-unread is an error, a run read on under half its visible frames a warn; a
named check on every render, with its cheats. DR26 builds it straight after DR4.
The render's page manifest joined every text node of a run with a space, so a word revealed letter by letter
(content/rome's <Letters>) read "4 9 B C" for 49 BC; a run of single letters now reads as they're set, spaces
included (raea-page run_text, 1 test). A part's kind comes from its shape, never from what its author named or
propped it (the cheat test). raea world's reference page (docs/manual/reference/cli/world.md), the Check group's
order shifted by one. tools/layers.toml places raea-core-facts, raea-runtime-world and raea-app-direction.
raea-runtime-react back to 2,000 lines (scene/holders.rs, behaviour unchanged).
runtime/world (raea-runtime-world) steps a composition's React to the asked frames, as raea scene lint steps it,
and reads each into raea-core-facts entities: the 3D layer with its Camera (velocity from the next frame) and
Parts measured from their triangles, Text3D as Text and Part; the page laid out by the render's own Blitz page with
nothing painted (BevyPage::lay_out), so text has its box, size, font and line count; Sequences as Shots (from and
to; Sequence now stamps data-raea-end), footage as Clips with SHA-256 and their take's words, sounds as Cues, the
project transcript's lines and <Speech> lines; each entity's Source from the code stamps. <style>/<script> text is
not read as words.
apps/direction: raea world EDIT.tsx [--frame N | --at A-B|A,B] [--find JSON] [--no-layout] [--json]; --find spans
media (with, without, where Comp.field).
Folds: raea_runtime_react::scene::surface, raea_runtime_bake::runs, raea_core_facts::Word/transcript_words (raea
check's). Stamps name Audio. The time a layout-only page update gets is sent as a drawn update sends it.
Shane 11-10: "any time you make an update to the feed it takes me out of the thing im currently doing", and the questions should be "a single thing that allows me to actually preview things while answering questions and all in one feed item rather than a bunch of them".
show.ts: --question repeats, each starting a question whose --choice's follow; --preview FILE after a --choice is that choice's (a still, a video, a sound, a NAME.script.ts or a .md), after the --question the question's own. Several questions, or any preview, go to the app's host as one item (questions); one question without previews is sent as before. The CLI opens the item's raea:// link (which brings the window up) only with --open or when it just started the app; otherwise the page finds the post (raea-feed f03b4e7, /host/shown) and says so in a notice. An app from before that route never finds an unsent item, so there the link is opened as before.
app.ts: the app-host verbs (show, harness, task, library) and their host lookup move out of native.ts, which was over the 500-line limit (514; now 407). cli.rs: the help line says so. docs/manual/reference/cli/show.md: regenerated, with --open and --preview described and the prose saying posts are quiet.
Checked: the parser on seven argument lists (old one-question stills, three questions with previews and --open, a --preview before any question, two previews on one choice, a stray file beside questions: refused with why); tsc --strict on native.ts, app.ts and show.ts; tools/manual-ref/cli.ts check clean for show.
stage.inspect {id} on a part's element answered the holder's raw props (data-3d, data-props as a string), so the
feed's game inspector lost a picked part's props on its next refresh; it answers the part's kind and its own props
now, as the pick does. The feature file: what was built after the first landing (the card that changes code, every
kind of file, a level of detail by size on screen, notes to agents), and each scenario's @done.
systems/frame layer.rs drawn(): every shown triangle-list mesh with its posed vertices and corners, which the layer
pass rasters and a pick's ray is cast against (pick.rs had the walk copied). A render's layers are byte-identical
before and after (shapes.tsx frame 10), and the live pick answers the same part. meshopt and float-cmp are in the
plain build now (raea media lod), so tools/licenses.sh takes them out of the catalog-only list in LICENSES/ and
NOTICE.
raea media lod MODEL.glb [--level N] [--texture PX] -o OUT.glb halves every mesh's triangles a level (meshoptimizer
on the mesh's own vertices: skins, morph targets, UVs and materials untouched, only the index lists replaced), makes
embedded pictures at most PX on their longer side, and drops what nothing uses. Checked: a skinned body, 27,420
triangles to 6,854 at level 2, rendered and looked at. 2 tests. Cargo.lock has raea-runtime-live's raea-sys-frame
edge too (the first PV1 commit left it out). docs/preview.feature: each rule's status and what isn't built.
A selection's box and a note's pin follow what they are on as the camera turns, a prop moves or the frame plays
(systems/frame pick.rs locate: a part's meshes' bounds and each point through the frame's camera). The stage's host
calls move to calls.rs (lib.rs was past 500 lines); the bundle's raea-props lines are two shorter (its crate was at
2002).
stage.pick answers what is under a point of the stage, the page and its 3D as one picture: a 3D part (its layer key,
name, JSX props, box, the point hit and its distance; the nearest mesh along the pointer's ray, skinned meshes as
posed: systems/frame pick.rs) or the page's element, with the part behind it. stage.view draws the 3D from an orbit
until it is given back (systems/frame view.rs, FreeView). stage.props sets a composition's props over its defaults
as it plays (the entry's raea-props). What the stage opens is stamped, so every pick has its place in the code.
stage.seek (written 11-07 for the editor's Live, never committed) lands with it. raea media still takes --width.
Proof: raea play shapes.tsx --offscreen --seek 10 --pick 640,330 answers shape-2 at shapes.tsx:28:11#2 with its
props; --view 1.2,0.9,9 draws it from above. docs/preview.feature is the plan.
Shane 11-09, on a hook that steers an agent's open of a still to raea show: "yes lets do that or at least make it double
confirm then push and confirm. again also make sure all hooks and usages are acp agnostic not just claude".
apps/check/src/hook.rs: raea hook [claude|codex|gemini|kimi] reads any of the four harnesses' hook input (the harness
named, or told apart: Gemini's BeforeTool/AfterTool, Kimi's client_type). Before a shell command (Bash, shell,
shell_command, exec_command, run_shell_command; not Codex's apply_patch), a still, video or sound opened with open,
open -a Preview, xdg-open or qlmanage -p while the raea app is installed is stopped once: exit 2 with the reason on
stderr, which every harness hands its agent, naming the raea show command for those files. The same command in the
same session within ten minutes goes through (~/.raea/hooks/again), so an agent that means it says so twice. open -a
raea, open -R, links and PDFs are never stopped. After a save (file_path, path, or the files an apply_patch adds or
updates), the quick check on a composition, its findings in the shape each harness reads (Kimi's plain stdout,
Gemini's AfterTool context, Claude Code's and Codex's PostToolUse context). quick.rs loses its Claude-only hook.
apps/tools/src/agent_hooks.rs: raea skills install --agent A adds both hooks to that harness's own config:
~/.claude/settings.json, Codex's hooks.json (trusted in its /hooks), ~/.gemini/settings.json (milliseconds, named),
Kimi Code's config.toml [[hooks]] (only the four keys it allows). An event with a raea hook entry is left alone.
agent_mcp.rs loses claude_hook. engine/cli/src/skill.rs: hooks for every agent; a skill folder that's a link (a
raea-skills checkout) is left as it is instead of replaced by a stamped copy.
engine/cli/src/show.ts, native.ts: raea show names its poster from the harness that started it, found up its parent
processes (HARNESSES: Claude Code, Codex, Gemini, Kimi, OpenCode, Goose, Cursor, Amp, Qwen Code, Crush, Aider) when
its shell carries no mark, with an inbox per harness process.
docs/agents.feature A5d, A5e; the manual's hook and skills pages.
What raea show does for an agent outside the app, the inbox its answers come to, examples, and every flag described
(generated by tools/manual-ref/cli.ts from raea help --json in an export of origin/main + this lane); index.md lists it
under Agents and setup, and skill, skills and setup move down one in order.
tools/manual-ref/cli.ts: show is in Agents and setup (what an agent reads and shows the person). engine/cli: the show
comments fold into library's, so the crate is 2,000 lines again (rask's crate limit).
engine/cli/src/cli.rs: the help line reads --ask LINE and --question Q --choice A --choice B [STILL...] instead of
quoted phrases and a parenthesised choice, which tools/skills.sh read as extra values.
Shane 11-09: "my agent working raea keeps making sheets in preview and not in raea how do we make it so when using
raea and raea app is installed new edits new sheets or examples or questions are pulled up in the raea app and not
preview. we should see them as interactive too. the whole point of raea is interactive artifacts and things and
recording them after making an answer."
engine/cli/src/show.ts (a SHELL verb): raea show FILE... [--title --ask --project --replaces --as --role --inbox] and
raea show --question Q (--choice A ... | STILL...). native.ts finds the running app (RAEA_FEED_HOST, else the address
the installed app leaves in ~/.raea/app-host.json, raea-feed host-file.ts), starts it when it's installed and not
running, POSTs /host/show (raea-feed host/show.ts makes the item: stills a look, several a storyboard, a video a
watch, a sound a listen, a script or .md a read, a .tsx an artifact or the project's composition in its editor, a
question an ask), then opens raea://item/<project>/<id> so the window comes up on it. It prints the session's inbox
file, where what the person sends comes back (docs/agents.feature A3b). Without the app, the files open in the Mac's
viewer and it says nothing was posted. raea library finds the app the same way now. The poster's name and inbox come
from the harness (CLAUDE_CODE_SESSION_ID, ...) unless given.
docs/agents.feature: the file (rules A1 to A4 from 11-09) with A5, raea show.
Blitz's default shell has no clipboard, so Cmd+V in any field of raea.app inserted nothing (and Cmd+C, Cmd+X copied
nothing). systems/page gets PageShell, the shell provider a page's document is made with (config_in, beside PageNet and
the others); raea-page-host inserts one (src/shell.rs) on raea-io-os's clipboard, which is the system's in the window and
the process's own headless, as navigator.clipboard's is. io/os exports clipboard_text and set_clipboard_text for it.
Test: shell.rs pastes into a focused field through Blitz's event driver (with Blitz's default shell the same paste
inserts nothing), then Cmd+A, Cmd+C copies the field's text back.
Since the public-first split (11-06) the public sdk/tsconfig.base.json leaves raea/gen out (sdk/gen is the private side's), and `raea gen` gave bun only that file, so a flow outside raea's tree couldn't import raea/gen, the name docs/gen.feature GN12 says flows use. Agents wrote the absolute path instead, which the app's lint rightly flags as an import from outside the project.
raea-io-gen-core tsflow.rs (moved out of raea-io-gen cli.rs read_flow, and re-exported there; in gen-core so raea-io-gen stays under its 2000 lines): bun gets the runner's own override, the SDK's tsconfig with the SDK's folder as baseUrl and raea/gen and @raea/gen mapped when sdk/gen is there. A public install without sdk/gen gets the public names only. Tests: the override (with and without sdk/gen, a file that isn't JSON) and a flow in a folder outside the SDK importing raea/gen through bun (skipped without bun). The launch film's four flows now import raea/gen and quote with raea gen plan.
raea.app never set BEVY_TSX_STORAGE, so raea-io-net-calls refused net.storage.* and storage stayed in the window's memory (the launcher half is in raea-platform). With it set, a page still read its settings before the kept values came back, as net.storage.get was only asynchronous, and an app saving its settings on load (apps/app settings/store.tsx) would write its defaults over them. net.storage.get is now a synchronous host call too (raea_io_net_calls::storage_get, registered by raea-runtime-js net.rs install), and sdk/ui's storage.ts fills localStorage from it at load, falling back to the asynchronous answer on a host without it. Test: raea-runtime-js net::tests::kept_storage_answers_synchronously.
The video and audio elements' sync moves out of raea-runtime-dom as it was, and raea-runtime-dom re-exports it as media. raea-sys-image and vello were only media's and go with it. Stream's four one-line senders are now one ask(Cmd), with Cmd public (L1 dupes: seek and muted were one shape). A seek that has landed is Media::landed, which is checked from two places. Tests: raea-runtime-js, raea-runtime-dom and the new crate pass; raea-cli checks.
The app's watch player stayed silent when unmuted (Shane, 11-09): React DOM's muted is a property, but the page runtime took it as a prop on the wire, which runtime/dom's media.rs never reads (it reads __muted), so play()'s muted start held. sdk/ui dom/host.ts applyProps now sends a media element's muted through its setter on change, and at creation sets __muted in _extra, which hostElement sends with the create. Test: dom.test.tsx React muted case (52 pass).
The desktop app's watch player threw on play() (the page runtime's <video> had none: the host played nothing), and
going back from an item crashed the app (its preload cleanup called load()). Now raea-runtime-js media_play.rs plays a
source on its decoder's thread: frames asked for at the clock's time (a slow decode skips frames, never lags), the
clock the sound's, out of the default device through cpal (media_sound.rs; muted plays silence on it), so picture and
sound can't drift; the wall's with no device or RAEA_AUDIO_MUTE=1. runtime/dom media.rs passes __play, __muted and
__load and tells playing, time (each frame), timeupdate (4 a second) and ended. sdk/ui dom/media.ts: play() (a
Promise), pause(), load(), paused, ended, loop, autoplay, canPlayType, preload, readyState per source, a new src
pausing as a browser's does; dom/host.ts gives React's onPlay, onPause, onPlaying, onTimeUpdate, onEnded, onCanPlay,
onVolumeChange and onEmptied their events. Tests: media_play::tests (wall clock: order, end on time, exact seek,
loop, pause), sdk/ui dom.test.tsx's media case (51 pass).
The registry depends on nothing of the workspace crate. It now owns up() and slug(), which the workspace crate re-exports, and takes the controller ids named by the project's overrides as an argument. raea-app-workspace's registry module wraps scan() with them, read from .raea/project. raea context takes both the workspace's sections (controllers, project files) from one call, raea_app_workspace::context(), which keeps raea-cli at 1997 lines. Folded the copies L1 counted: Registry::warnings() and composition_files() replace the filters and sort in doctor and next, resolve() builds its candidates in a loop, and a line number is counted from the newlines before it (stamp.rs had the same line_starts). New test: an override naming a missing controller is linted once. raea-app-registry has 6 tests and raea-app-workspace 6.
apps/workspace src/registry: each .tsx and .ts is parsed with oxc (the version engine/bundle uses), without running it. A composition is each <Composition> that a registerRoot registers, with its id, component, size, fps and length read from the source. A prop written as a top-level constant, or simple arithmetic on constants (const FPS = 30; 15 * FPS; edit.w; Math.round), is read as its value; anything else is kept as the expression. A .tsx whose default export no other file imports is registered under its file's name, sized from its newest render manifest. A component is a .tsx that a composition imports, directly or through another file. A controller is a module whose default export is controller({...}) from raea/brief.
Lint (each finding has a file:line and its fix): not-a-project, broken, orphan, unresolved, outside, duplicate-id, computed (info), unregistered (info; fixable when a manifest gives the size), controller-home (fixable: moved to controllers/<id>.ts), controller-duplicate, override-missing.
CLI: raea project scan [DIR] [--json]. raea doctor lists the warnings, and --fix registers a default export and moves a stray controller, committing only the files it touched. raea next reads compositions from the scan (no more grepping for registerRoot) and puts unconnected files first. raea context gains a PROJECT FILES section. Tests: 11 pass.
rows2d::Rows keeps an Option<Page> built by page() on first use with the same arguments; draw returns R<bool>
since building can fail there now, and the engine's overlay (runtime/gpuframe overlay.rs) logs and skips that frame's
rows on an error, as it already does for rgba(). texture() is None before the first draw.
Checked on an M-series Mac, release build, RAEA_EXPORT_CACHE=0, a 30-frame 800x1000 TSX with a moving text box
(and the same with an <Img> on frames 10-19; a TSX page arrives on the GPU, so neither draws an image row): one
warm-up, then 5 runs each, two rounds in swapped order. Median 0.395 s -> 0.312 s (about 83 ms a render). Frames
identical by framemd5 on both, the <Img> red on exactly frames 10-19 in both builds.
Co-authored-by: Jameschuthink <[email protected]>
Checked on this Mac with an empty model cache: cargo build --release -p raea-perceive --features vision-portable,
then read-lines --backend ocrs and see-layout --backend portable on a HELLO WORLD picture both read the line (rc 0),
and the cache holds the two .onnx files.
Co-authored-by: Jameschuthink <[email protected]>
The scripts the docs' tutorial player narrates (Fish, through raea-api's speech) over the app's own screens on a made-up
workspace, Sunmelt: get started, connect your agent, a tour, review and notes, inspect, controllers, publish, extend
with the SDK, teams, and how storage (Git with LFS pointers, media by hash) and search (vectors in turbopuffer) work.
Each page carries its full narration as text; its front matter names the tutorial the page plays.
What exists, the two answers it rests on (the engine's extension surface is the SDK with native Bevy plugins under it;
the app is the side that needs a runtime: a loader, a sandbox, a bridge and hot reload, whose dev reload already
exists in blitz/dev.mjs), one package format for both, the engine's three tiers by how they load, the app's extension
host and its contribution points, sharing through npm with an index in raea-api, the phases, and four open questions.
Shane 11-09: the release after canary.3 is v0.1.0, not canary.4. A tag with a suffix (v0.1.0-rc1, canary) stays a
pre-release; a plain version (v0.1.0) is now a full release, GitHub's latest, instead of every release being made a
pre-release.
The check that every `raea <command>` in the agent's context exists matched \w+, which stops at a hyphen, so the
delivery and games guides' raea export-game read as raea export and failed every lane's L1 since #73. It matches commands
as the help list is read ([a-z][\w-]*); export-game and setup-audio are the hyphenated ones the guides name, both real.
Co-authored-by: shinyobjectz <[email protected]>
raea app check reads export const steps through the JS engine, whose JSON writes every number as a double, so the
documented { frames: 30 } failed with '{"frames":30.0} is none of press, ...'. Frames and Dialog take a whole double as
the count it is and refuse 2.5, -1 and anything past the type. Tests for both, checked against the unfixed enum.
Co-authored-by: shinyobjectz <[email protected]>
The five modes each name the choices that make or break the piece, with the default that comes easily and why to
question it, and a table of how it fails (what you see, why, what to change). The nineteen verbs each say what to
decide before changing anything and what a wrong pass looks like.
Co-authored-by: shinyobjectz <[email protected]>
motion/delivery.md: from the brief and the delivery controller to one composition per shape, cutdowns as their own
edits, UI zones checked with raea check --shape --platform, captions and loudness, file names and versions, export tags,
and publishing as the person's (the app's Publish view). Its example renders in 9:16, 1:1 and 16:9.
motion/interface.md: an app built state by state for modes/tool, roles and labels, steps that walk every state, the
check read PNG by PNG. Its example passes raea app check on web (7 steps).
tools/skills.sh gen writes reference/platforms.md from apps/app src/publish/specs.ts at the recorded commit, and check
holds it current like the other references. motion.md routes to both guides.
Co-authored-by: shinyobjectz <[email protected]>
tools/skills.sh gen copies sdk/guides/craft into the skill by one list (copies()): bevy/ as 3d/ as before, and now
motion.md and motion/, and the router, floor, rubric, modes/ and verbs/ under craft/, each folder with its NOTICE. check
fails on a copy that differs from its guide and on a copy whose guide is gone, in any of those folders (3d/plugins.md
and 3d/rows.md are the skill's own).
tools/skills.sh coverage lists every verb in raea's help, every SDK entry (sdk/raea/src) and every feed tool with whether
a guide or the skill teaches it outside reference/; check warns on each untaught one, so new engine surface shows in
L1. COVERAGE_SKIP holds what an agent never runs (hook, traces, raea/dev_tools, raea/test), each with why. On this main
with raea-skills 4db36f6: 43 of 43 verbs, 28 of 28 SDK entries, 19 of 19 feed tools. Mutants checked:
an edited copy and an orphaned copy fail, an untaught verb warns.
Co-authored-by: shinyobjectz <[email protected]>
raea-skills #10 regenerates reference/feed.md (controller_post, editor_selection, editor_edit, item_tags; feed_post's
changed, export, tags, uses) and files.md (~/.raea/feed, media, plugins.json, usage-queue.json) from origin/main with the
feed app at raea-feed 1b3b9fe, and stamps the skill raea-tested-against 0.1.0-rc1 with rc1's upstream snapshot; #3 adds
SKILL.md's paragraph on controllers against notes and the feed's controller_post. tools/skills.sh check passes on that
export.
Co-authored-by: shinyobjectz <[email protected]>
Solari gated light sampling on a glossy metal by its roughness (6% of paths at 0.06), too rarely for a small sun to
show; a metal short of a perfect mirror now samples lights on at least a quarter of its paths, which stays unbiased as
the weights divide by the gate. Off a mirror's specular lobe, which light sampling can't reach, rays see the
panorama's own sun, in Solari and the path tracer alike.
bevy_solari 0.20 is vendored (vendor/bevy_solari, changes marked "raea:"). Each TLAS instance now carries a mask, so a
ray finds the nearest opaque hit and then walks the see-through instances up to it: Mask materials stop it by their
cutoff, Blend by the chance of their alpha, Premultiplied by that plus their clear coat's Fresnel share (the path
tracer shades the coat alone, weighted back), and Add never. Before, every traced mesh was opaque, so a transparent
skin turned what it covered black. StandardMaterial's uv_transform now applies to traced texture reads.
<Environment> finds a panorama's sun when it loads (systems/environment sun.rs), using the panorama's own floats, and
Solari samples that sun as a directional light. Inside the sun's disk the environment map shows the sky around it, so
its light isn't counted twice; camera rays and mirror bounces still see the panorama's sun. The path tracer bends a
normal-mapped normal that faces away from a grazing ray, which removes the black streaks toward the horizon of a bumpy
plane.
- raea-sys-shader (failed.rs): a shader raea registers for a scene (a ShaderExtension's surface and lit hooks, an own
material's, a UI material's) that doesn't compile left its pipeline out, the frame drew without it (black) and the
render said APPLIED. The render world now finds those pipelines in Bevy's cache and refuses the render with the
compiler's error, through raea-gpu-device's refuse, which the frame's read back checks. Repro: `patch` (a WGSL
reserved word) as a variable in a surface() hook.
- engine/render/raytrace: SolariPlugins makes every StandardMaterial deferred, but Bevy's Pathtracer requires only Hdr,
so a <Pathtracer /> camera had no deferred prepass and Bevy's prepass queue panicked unwrapping its deferred phase.
A Pathtracer camera now gets DepthPrepass and DeferredPrepass.
The SDK reference's tables had 1,476 empty cells. Each prop, field and class member the pages table now has a doc
comment in its source, or Bevy's own field doc where the SDK mirrors a Bevy type:
- doc comments on 773 declarations across 84 SDK files (song maps, goo and rigid bodies, matchmove, the clock and
timeline, state machines, materials and their extensions, the 2D shapes, bevy_ui and feathers wrappers, colours)
- inline prop types pulled out as named, documented interfaces (EchoesProps, DaylightProps, UiScaleProps, ...), so
each prop can carry its own doc
- types raea-bevy-sdk generates from raea's crates (/** raea_core_animate::spec::AnimKey */) take their field docs
from the Rust source, shown as raea's ("Rust: ..."), not Bevy's; core/animate's spec.rs gains the missing ///
- a props type (StandardMaterialProps) takes its component's @bevy fields; the colour classes gain their @bevy tags
- tools/manual-ref/sdk.ts check now fails on any prop, field or member without a description, as cli.ts does for
flags; tools/manual-ref.sh links an export's node_modules (RAEA_MODULES) so it can run in L1's lane export
The CLI reference is now 43 pages, one a verb, each with its forms, where it runs and what each of its 164 flags does,
under docs/manual/reference/cli. The forms and flags are generated from `raea help --json`; the prose and the flag
descriptions are written by hand, kept by the generator, and checked: a new flag without a description fails.
The SDK reference is 28 pages, one an import path, under docs/manual/reference/sdk: every export with its doc, its
signature, a component's props, a class's members, its Bevy type and the parity ports and examples that use it,
generated by the TypeScript compiler, with a hand-written introduction and a type-checked example on each page.
Where the SDK mirrors a Bevy type without a comment of its own, Bevy's own doc is shown, marked as Bevy's
(tools/manual-ref/bevy-docs.json). Doc comments added to the SDK exports that had none.
tools/manual-ref.sh gen|check runs both generators.
A <Text2d> inside a <Canvas3D> is now Bevy's Text2d (raea-sys-sprite text2d.rs, sent as a Shape2D row with its `text` spec): bevy_text lays it out and rasterises it and bevy_sprite_render orders it with the sprites by z, so TextBounds (`bounds`), FontSmoothing::None (`font_smoothing`), Text2dShadow (`shadow`), LineBreak, its <TextSpan>s, a z under a sprite and a scaled quad's pixelated look are Bevy's. After the Canvas3D it is the page's Text, as before; the page refuses bounds, shadow and "None", which it can't draw. 2d/text2d is exact at frames 10 and 60 (SSIM 1.000000, tile 0); with FontSmoothing::None taken out it fails (tile 40, 5308 px off in that block).
TextureAtlasBuilder (raea/sprite, raea/image): pictures packed by Bevy's own builder in the order added (padding, sampler), a sprite showing the whole atlas or one picture (sources.handle(texture), the row's atlas_pick, which sync_2d no longer resets to a sheet's cell). 2d/texture_atlas lists textures/rpg in load_folder's order and passes at 0.998551; its packed atlases match Bevy's.
2d/rotation: the port took the direction to the ship as -at, so the enemy straight above had x = -0 and copysign turned it the other way; player - enemy (0 - 0 = +0) as Bevy subtracts. Passes at 0.999751, its turning enemies within 8 grey of Bevy's at frames 10 and 60 (the bar alone passed a 10 degree a second error).
All 2D ports and shader/pipeline_constants rerun: 155 ported, 155 passing.
skills/ pins raea-skills f81678f (#9), whose generated sdk.md lists TextureAtlasBuilder.
A new Mac has no user.email and a hostname git can't make one from, so the first project's commit failed with
"Author identity unknown" and onboarding never made the person's first project (found in tools/raea-app/journey.sh
from a fresh HOME). git reads $EMAIL only when user.email isn't set, so nobody's own identity is overridden. Used by
workspace::git and the controllers' commit.
Mesh2d takes all of bevy_math's 2D primitives (CircularSector, CircularSegment, Annulus, Capsule2d, Rhombus,
Triangle2d, Segment2d, Polyline2d, ConvexPolygon beside Circle, Rectangle, Ellipse and RegularPolygon), each with its
reflected fields, and any of them as Bevy's Ring: `ring={thickness}` (to_ring) or `inner={...}`. A Shape2D row
carries the spec as `primitive` and raea-sys-mesh's primitive_mesh builds it, as Bevy's mesher does.
Two fidelity gaps 2d_shapes exposed, fixed for every 2D part:
- A Mesh2d's ColorMaterial colour reached the GPU rounded to a hex. It now goes as the Srgba's floats (`srgb`).
- 2D drew single-sampled, where Bevy's Camera2d defaults to 4x MSAA, so edges between pixels snapped. An edit with
2D mesh rows now gets MSAA (raea_sys_sprite::has_2d, beside has_3d at the two MSAA call sites only, not the
encoder's), and the 2D camera keeps to the 3D camera's MSAA every frame, sharing its main texture. The frame tag's
Camera2d on the same target keeps to it too: Bevy makes one 2D depth texture per target, so differing sample
counts were a validation error.
A relative import of a file under raea's sdk/ that isn't an SDK package's source (a bench's shared helper) is now
copied into the bundle like any outside import; before, everything under sdk/ was assumed to come by name.
New bench helper sdk/raea/bench/bevy-parity/helpers/theme.ts: examples/helpers' basic_example_theme, option checkbox
and bottom-left column, used by 14 Bevy examples.
2d_shapes passes at 0.99987: the shapes area matches with 0 pixels off by more than 2%; the rest is the checkbox
captions' glyph edges (the known text item). Every port was rerun after the MSAA change: 152 of 152 pass.
skills/ pins raea-skills 004b866 (#8), whose generated sdk.md lists the new primitives.
A <Material>'s textures may give one list of 1 to 16 pictures, bound as the source's binding_array<texture_2d<f32>>
(ui_bind's ARRAY slot, binding 57). Bevy's AsBindGroup derive can't own an array of views, so a new
OwnArrayMaterial (systems/shader/src/own_array.rs) wraps the part's OwnMaterial and builds its bind group directly,
as Bevy's example does: the derived entries, then the array with the fallback image past the list. Its layout leaves
out the uniform buffers, because wgpu refuses a binding array beside one, so build refuses uniforms on such a source.
Its pipelines are OwnMaterial's (same key, specialize), and own_live patches it too. A source with no texture_2d of
its own samples with the first sampler, which becomes the list's first picture's. 2D and devices without texture
binding arrays are refused. The depth and picture helpers move to own_images.rs (own.rs stays under 500 lines).
The port is exact at frames 5 and 10. Two tiles swapped and linear filtering each still passed the 0.99 bar
(0.992, 0.990); a missing tile failed it.
Bevy's specialized_mesh_pipeline draws meshes that have no material by a SpecializedMeshPipeline of its own: positions
at location 0 (compressed or not), colours at 1 under VERTEX_COLORS when the mesh has them, depth tested and written
GreaterEqual, under the view's MSAA. raea's <MeshPass> now does all of it:
- `depth`: it tests and writes the view's depth as an opaque mesh does. The pass always attaches the view's depth (a
pipeline's depth state must match the pass), so without `depth` it compares Always and writes nothing, as before.
- a mesh's colours go to location 1 under VERTEX_COLORS, as Bevy's own specialize does.
- the pipeline takes the view's MSAA sample count (it assumed 1, so it only worked with Msaa off).
And <Mesh3d material={false}> (any <Mesh>) gets no material at all, as a Bevy Mesh3d without a MeshMaterial3d, so
only its own pass draws it: row no_material, spawned beside the toon branch (engine/render line-neutral).
Parity: SSIM 1.000000, worst tile 0, batch keys 0 / 0 at frames 5 and 10. Without material={false} the pixels were
already exact, but raea drew 2 batch keys of default material Bevy doesn't. Mutants: without the vertex colours it
fails (0.961897, tile 147); without `depth` it is unchanged, since the rectangle is behind the triangles and the pass
draws far to near. custom_render_phase, custom_phase_item, custom_shader_instancing, 3d_scene and mesh2d still pass.
150 ported, 150 passing.
Three pieces, as Bevy's render_depth_to_texture uses them:
- "render:NAME:WxH:depth" names a depth image (Depth32Float, its sampler comparing Always), shared by every field
that names it, as "render:NAME" images are (raea-runtime-plugins fields.rs; raea-sys-shader own::depth_image).
- <DepthCopy image> in a Camera3d (raea-sys-phase DepthCopy) copies the camera's depth buffer into that image after
its prepass and before its main pass. A depth-only camera is Bevy's own components: RenderTarget::None { size },
DepthPrepass and Msaa off, with an order before the main camera's.
- A <Material> may bind a texture_depth_2d and a sampler_comparison (rebind slots 25 and 26, raea-sys-shader-wgsl
ui_bind DEPTH), its texture given by name as any other. Bevy has no depth fallback image, so a Material that binds
none gets a shared 1 x 1 depth image there.
Parity: the scene is pixel-exact at frames 5, 10, 30 and 60 (SSIM 0.999617). The only difference left is the
instruction text's glyph edges (tile 6), the same text-over-3D blend fullscreen_material records. Mutants: without
the DepthCopy it fails (0.957, tile 35); the cube one update behind passes the bar (0.995), but the real port differs
from Bevy only in the text. Every port with a Material or StandardMaterial under shader/, shader_advanced/ and 2d/
still passes (29 ports). 149 ported, 149 passing.
raea-sys-shader was at 1989 of its 2000 lines, with a depth texture for <Material> (FC2d, Bevy's
render_depth_to_texture) still to add. Its source-text modules move to a crate of their own, unchanged:
layout.rs (an own uniform struct's fields and uniform layout), storage_layout.rs (a storage buffer's words) and
ui_bind.rs (bindings renumbered into raea's slots); raea-sys-shader imports them under the same names. Four
pub(crate) helpers are pub now. Tests: the same 12 pass (6 in each crate).
A camera's MeshShaderPass (raea-sys-phase mesh_shader.rs) runs your task shader (when given) and mesh shader, which
make primitives on the GPU and hand them to your fragment shader, straight into the view's colour and depth (compared
GreaterEqual) after the main opaque pass, as Bevy's mesh_shader_intro does. Each stage is a shader file compiled as
written; bind group 0 is Globals and the view uniform; `groups` is draw_mesh_tasks' workgroup count. raea's shared
device already takes every adapter feature, so Apple silicon's mesh shaders are there; a GPU without them logs once
and draws nothing. In TSX it is <MeshShaderPass task mesh fragment groups> from raea/3d.
Found on the way and fixed: a shader file's `import super::NAME` was read a line at a time, so a statement over
lines (`import super::{\n bindings::{globals, TaskPayload},\n};`, as the example's three files write it) imported
nothing, and a nested list would have read its items as modules; it is now read to its `;` with each top-level
item's first name. And raea-sys-phase's own shaders (PhaseItem, MeshPass, ShaderInstances, GBufferPass) are now
registered in a folder of their own with their super:: imports, as a Material's are.
Parity: SSIM 1.000000 with a worst tile of 0 at frames 5, 10, 30, 60, 120, 240 and 300. Frames 240 and 300 (64 and
125 cubes) are there because the bar passed a port with no pass at all at frame 120 (0.997961, tile 23: the cubes
are small); with them that mutant fails (0.984513 and 0.967070), and one without its task shader fails at 0.0001.
The ports that read shader files (shader_material, extended_material, shader_material_2d, deferred_raymarch,
custom_render_phase, custom_phase_item, custom_shader_instancing, manual_material) still pass. 148 ported, 148 passing.
The example prepares its ImageMaterial by hand (ErasedRenderAsset, its own bind group layout and allocator) rather
than through the Material trait; in raea it is a <Material> with manual_material.wesl as written, the Bevy logo as
its texture and wgpu's SamplerDescriptor::default() (nearest filtering, nearest mipmaps, clamp to edge) as its
sampler. SSIM 1.000000 with a worst tile of 0 at frames 5, 10 and 30. Mutants: linear filtering moves it off exact
(0.999147, tile 4), and the cube 5 cm higher fails (0.972591, tile 75). 147 ported, 147 passing.
build_particles put the ParticleEffect on the part's own entity, beside its Mesh3d, so Bevy's mesh queue and
hanabi's binned the same main entity in one phase. That passed when both came on the first frame, but a
<Particles> mounted mid-render (a fountain from frame 8) panicked "Binning main entity ... when it was already
binned" on the next frame. The effect is now a child of the part, so it follows the part's transform; the
mid-render fountain starts on its frame, and the plugin bench (check.sh avian hanabi) still passes, hanabi at
SSIM 1.000000.
A render to MP4 is a fed render (each frame's rows handed to a live engine), and keyed_rows stood aside for any
live engine, so a <BevyComponent from={N}> (an avian RigidBody, a hanabi Particles) waited in Keyed for good: a
row held for its frame never changes after the load, so the frames' rows never carry it either. keyed_rows now
applies them in a live engine as well, each once on its frame. A render to a PNG folder, or of one --frame, was
right already; the cube that turns dynamic at frame 10 now falls in the MP4 too.
The bundle's import rewrite (runtime/bundle rewrite.rs) matched `import ... from "..."` anywhere in the text,
so a template string a code chip types (`import { RigidBody } from "raea/plugins/avian"`) came out as
"../plugins/avian.gen". A lexer's pass now marks strings, template text, comments and regular expressions,
and a match inside one is left as written.
shader_advanced/deferred_raymarch (docs/control.feature FC2d) ports with a <GBufferPass> on the camera
(systems/phase gbuffer.rs): a shader file's fullscreen fragment writes Bevy's deferred G-buffer, the
lighting pass id and depth after the late deferred prepass, and its shadow entry writes every shadow view
the camera's lights draw, so Bevy's deferred lighting lights it and it casts shadows. It matches Bevy to
the pixel (SSIM 1.000000, 0 px off at frames 5, 10 and 30); the whole suite (147 ports) passes on pixels.
Three gaps closed on the way, each found by probing the shader's inputs on both sides:
- The pass sets the camera's viewport, as Bevy's own passes do. raea's target is w x (h + 1) (its tag
row), so a fullscreen triangle drawn without it stretched its uv over 721 rows: rays a pixel low at the
bottom.
- Camera3d sends its rotation, and the engine places the camera by it (rot_qx..qw, exact). It used to send
a look-at point the engine turned back into a rotation in f32, about a millionth of a radian off. Bevy's
lights do the same (their direction was also rounded to 1e-6).
- Transform.lookingAt computes in f32 as glam does (Dir3::new, cross, try_normalize,
Quat::from_rotation_axes), the same quaternion to the bit; glam.test.ts holds it to glam's own bits.
The port sets Bevy's shadow defaults in a <Shadows> (2048 texels, cascades to 150 m, the first to 10 m,
overlap 0.2), as the other shadowed ports do. Mutants (no shadow entry, the first cascade at 8 m, 7000 lux,
the cube moved 5 cm, the camera's target 1 cm up) are each thousands of pixels off.
- tools/release.sh's skills_at takes raea-skills' skills/ folder alone. Its whole tree held AGENTS.md, a link to
CLAUDE.md, which Windows' tar can't make, so rc1's Windows packing stopped there.
- release.yml frees target/ once the binaries are in ship/ (packing and its checks read ship/ only): macos-15 ran out
of disk packing rc1 ("No space left on device"). It prints the disk before and after.
- release-check keeps the styled render's log and prints its end when styles.gen.ts isn't written (rc0's macOS check
failed there with its output thrown away), and a failed check uploads every step's log, not only the app's frames.
Co-authored-by: shinyobjectz <[email protected]>
A part's three.js shader and its uniform layout are its first frame's, and an unnamed mesh's part is named by its
place in the tree. So a <primitive object> given another mesh in the same place kept the first mesh's program: a
sequential render drew the old shader, or refused when the new uniforms didn't fit its layout (a mat4 where a float
was), while a single --frame render was right. A mesh part with a ThreeShaderMaterial is now named for its program
too (a hash of its GLSL or WGSL and uniform types), so the same program keeps its part and another one gets its own.
lettra's scramble() with its default pool (every glyph in the font) takes 78 vec4 slots for 66 glyphs, over the 62 a
three shader had, so it fell back to flat quads with a warning; its README's own example did too. The uniform block is
256 vec4s (4 KB), the last two still the material's own (three's time, how the colour is read), now named from the
total in tone.wesl too, and the TSL reader's limit is the same 254. R3F parity: all 28 cases pass.
resolve_src read /media/fonts/x.png as a file at the root, so an R3F ShaderMaterial or TSL node material whose texture
came from new THREE.TextureLoader().load(staticFile("fonts/x.png")) found no such file, and its render was refused
(a material's map, drei's Environment files and every other source already went through media_path). /media/ paths
now go through raea-core-scene media_path in resolve_src itself, with a test.
<ShaderInstances shader stride attributes words> inside a mesh draws it once per instance in one draw, in the camera's
Transparent3d phase: Bevy's mesh pipeline with its vertex and fragment shader swapped for your file as written, and a
second vertex buffer of your words stepped per instance (raea-sys-phase ShaderInstances, as the example's
CustomPipeline and DrawMeshInstanced). The phase components' shader registration is one function for all three now.
The port is pixel-identical to Bevy at frames 5 and 10. Moving the instances 2 cm, making a colour 2% darker or a cube
1 cm shorter puts 10,000 to 48,000 pixels off. 145 of 438 ported, 145 passing.
In a composition, a <style> inside an <svg> goes to usvg in the SVG's markup (raea's HTML host turns it into a hidden
div first, so HTML pages weren't hit). Blitz had already computed the shape's transform from the cascade, with its
transform-box and transform-origin, and written it as a transform attribute; usvg then applied the sheet's own
transform and transform-origin over it. `rotate(30deg)` isn't SVG transform syntax, so the shape drew unturned, and
a class giving only transform-box and transform-origin turned an inline transform about the SVG's 0,0.
The computed transform now goes into the element's style attribute with transform-origin: 0 0 (its origin is in
the matrix), where usvg lets it win over a sheet's rule as CSS does; the identity is written too, so a sheet can't
turn a shape the cascade leaves unturned. The separate transform attribute is no longer written.
bench/svg-css-transform/check.sh: the class-turned square against the inline-turned one, 78 px differ (antialiased
edges; before 8827), and a class's box and origin with an inline turn against all-inline, 0 px (before 5598). The
svg-css-paint, svg-stroke-box, rotated-paint and background-clip-text benches pass; the P26 rows that draw SVG
score the same as before (studio 3/3, css/svg 1/1; bevy/datamaps is 0.971-0.976 on main with or without this).
LinearRgba.from("#ff3fa4") read a hex string's missing channels as NaN, and an emissive made from it drew nothing,
silently. Bevy's From takes an Srgba, so the string form now throws with the call that works:
LinearRgba.from(Srgba.hex("#ff3fa4")).
<MeshPass shader> inside a mesh draws it again by your shader file as written, in a sorted phase after the camera's
main opaque pass, onto the colour target with no depth attachment and back faces culled, with Bevy's mesh view and
mesh bind groups: raea-sys-phase's MeshPass, Bevy's custom_render_phase stencil phase made a component. A mesh's
`compressed` prop compresses its geometry as Bevy's compressed_mesh(&MeshCompressionArgs::regular()) does
(raea-sys-mesh finished), so a shader reads its positions under VERTEX_POSITIONS_COMPRESSED; engine/render's mesh
build calls it in the same line, keyed on it.
The port is pixel-identical to Bevy at frames 5 and 10 (0 pixels differ). A 1 to 3 cm move of the sphere, camera or
cube still passes the SSIM bar but is 177 to 629 pixels off, so the exact match is the port's, not the bar's. The parity
host gets indexmap and nonmax, the example's own dependencies. 144 of 438 ported, 144 passing.
core/scene's EMISSIVE took a three.js emissive of 1 as 1.2 x 2^9.7 cd/m², what Bevy's default exposure shows as 1.0.
But a StandardMaterial's emissive skips the camera's exposure (emissive_exposure_weight 0, pbr_functions.wesl), so
every 3d.tsx and R3F glow drew about 1000 times too bright: an emissiveIntensity of 0.25 on #ff5fa2 came out white,
and a transmissive knot over it read as opaque white glass. EMISSIVE is now 1.0; a Bevy material's emissive_nits is
still taken as written.
sdk/r3f's parity suite gets an in-glass case (clear, clearcoated glass over a thin emissive knot), drawn by three.js
in Chrome: SSIM 0.930. The other 26 cases still pass.
A page past raea's smaller Vello bump buffers draws nothing, and only its sentinel read back says so (#23). The fed
render (pages handed to raea-render, the default for a page composition's mp4) never checked: the log said "drawn
again", but the skipped draw went into the film as it was. A heavy first frame came out black, and a layer could drop
for a frame (seen as a grain overlay flickering under 70 clipped, blurred, 3D-transformed shards).
- raea-sys-page skipped.rs: wait_drawn waits for the last draw's sentinel read back (its submission alone).
- raea-gpu-device check.rs fed_checked: once every read back has answered, a skip paints the frame again at Vello's
own sizes, and a skip even then refuses the frame by its number, as the other render paths do; runtime/export
fed.rs calls it after each frame's page is painted.
bench/vello-skip/check.sh: shards.tsx's mp4 frame 0 has mean luma 21 (the page); with the raea before this, 0. The
wait costs nothing measurable on an ordinary 1080p page (300 frames, alternating: 256.8 and 263.6 fps before, 262.8
and 263.7 after). Still to look at: the redrawn first frame lacks one shard that a render at Vello's own sizes from
the start draws (4,400 pixels, also in a --frame 0 still, whose redraw is skip_checked's).
Bevy's FullscreenMaterial runs its fragment shader (fullscreen_effect.wesl, a chromatic aberration) in Core3d's
PostProcess before tonemapping, its intensity (sin(2t) + 1) / 2 * 0.015 from update_intensity. The port is the file
as written in a <FramePass file at="before-tonemap">, with the example's cube, light, camera and text.
Parity: frames 10, 30 and 60 at ssim 0.99975. The only differences are the text's antialiased edges: Bevy blends UI
over a Camera3d in linear light (CompositingSpace allows sRGB blending only for a Camera2d), and raea's page over its 3D
blends sRGB-encoded, as Chrome does. That gap is shared by every port with text over 3D (split_screen 0.99897) and
is recorded in control.feature FC2d, not changed here.
Mutants: a doubled intensity fails the bar; a halved frequency, the camera 0.2 further back and a darker cube pass it,
with the probe counting 6,118 and 8,672 pixels off for the first two (the cube's colour moves luma by under 2%).
Before or after tonemapping gives identical frames, in Bevy as in raea: a non-HDR camera tonemaps in the material
shader, so the tonemapping node is skipped.
@react-three/postprocessing's composer renders each frame, and pmndrs postprocessing's DepthOfField blits the depth
buffer through the raw context (gl.bindFramebuffer, gl.blitFramebuffer). The stand-in context answered only what a
composer asks as it's made, so every frame threw "gl.bindFramebuffer is not a function". It's now a Proxy, as the
stand-in renderer is: its methods do nothing, its constants are 0, and `then` stays undefined so it never reads as a
promise. raea draws the effect from the composer's DepthOfFieldEffect (post.ts), as before.
test/post.test.ts runs postprocessing's own EffectComposer with a DepthOfFieldEffect on the stand-in renderer for three
frames; without this change it fails with the same error.
drei's <Environment> suspends while its HDR loads, and so do useGLTF and useTexture. raea took frame 0 before the
load came, so an mp4's first frame was the 2D alone and a looping film opened blank (launch post 02 trimmed it off).
- sdk/r3f hold.tsx: <R3F> renders its children under a Suspense whose fallback opens a hold on raea's frame
(globalThis.__raeaHold), and the last release wakes the frame, so <R3F> draws it again with what loaded.
- runtime/bundle entry.rs: the frame isn't marked done while a hold is open (the React Marker and the lite
entry), and a wake marks it, or draws it again in the lite entry.
sdk/r3f/test/hold/check.sh renders a scene whose box colour comes from a promise resolved 50 ms later: frame 0 of the
mp4 and a --frame 0 still are the red box. With the raea before this change, the mp4's frame 0 is the background.
bench/at-0, bench/compute-frames, sdk/r3f's input/clock/roundtrip tests and a pong live play are unchanged.
Bevy's custom_vertex_attribute gives a cube a BlendColor attribute and lays out the material's vertex buffer as
[POSITION at 0, BLEND_COLOR at 1] in its specialize. raea now does both:
- sdk/render: MeshVertexAttribute.new(name, id, format) and Mesh's ATTRIBUTE_* constants; Mesh3d `attributes`
([[attribute, values]], a value a vertex); Material `vertex_attributes` ([[attribute, location]]).
- runtime/scene: the mesh row carries `attributes` from the first frame.
- raea-sys-mesh attribute.rs: with_attributes inserts them into the mesh (names interned once, as Bevy's are
&'static str); engine/render's shared mesh keys on them, line-neutral.
- raea-sys-shader own.rs: the layout is part of the pipeline key, and swap sets the vertex buffer to
layout.0.get_layout of the named attributes, as Bevy's specialize does.
Parity: frames 5 and 10 at ssim 1.000000, 0 pixels off. Mutants: a green BlendColor, BlendColor at location 0 and
four blue vertices fail the bar. Moving the cube 0.1 up and halving the uniform's red pass the bar but the probe
counts 6,067 and 36,685 pixels off (the known SSIM blind spot; the real port is 0).
skills/ pins raea-skills 5218644 (#7), whose generated sdk.md lists the new names.
Two gaps a launch film found in <Compute>, both of one cause: its uniforms never reached it after frame 0.
A compute's uniforms travelled only inside its `shader` spec, which a row holds from its first frame, so an inline
compute (or one as written) saw frame 0's values on every frame. They now also go as a keyed `uniforms` column, as a
frame pass's do. raea-sys-compute's `follow` repacks them when the column changes: an inline compute's into its slots
by name (a name it wasn't built with is refused), one as written through its packer (written::follow_uniforms;
`Ranged` is kept for every compute as written, and a field that is a mesh's slab range is still packed each frame).
An mp4 render draws its 3D live (LiveScene): each frame's changed columns are set on the live rows. The compute's and
the frame pass's `follow` read the timeline's columns (`FrameRows::cols`), which in a live render hold only the load's
first frame, so an mp4 of a compute driven by its uniforms stayed black. FrameRows::at reads a row's value by its
place, the live row's when there is one; both follows use it.
bench/compute-frames/check.sh renders level.tsx (an inline compute filling an image with the grey `level`, f / 20,
gives) to PNGs and to an mp4: frame 0 is black and frame 10 grey 188 in both (the mp4 within 4, its YUV round trip).
Before, frame 10 was black in both. shader/compute_shader_game_of_life, shader_advanced/compute_mesh,
custom_phase_item and custom_post_processing still pass pixel for pixel.
The raea skill moves from sdk/skills to the raea-skills submodule, in its framework (skills/skills/raea/SKILL.md
with raea-tested-against and raea-verbs, checked by its skillcheck), and raea-bevy is folded into it: its router
is the skill's 3d.md and its topic files are in 3d/. An agent loads one skill for everything raea does.
- `raea skill` and `raea skills install` find a checkout's skill in skills/skills (an install's share/raea/skills is
unchanged) and skip raea-skills' _template. `raea skill raea-bevy` says where its text went, and install removes
an older raea's raea-bevy copy.
- tools/skills.sh gen writes the references into skills/skills/raea/reference and copies the Bevy craft guides
(sdk/guides/craft/bevy) in as the 3D topic files, which were links: a clone of raea-skills, or GitHub, reads them
whole. check fails on a copy that differs from its guide, on one whose guide is gone, and on an uninitialised
submodule.
- tools/release.sh gates on the pointer (skills in the gate inputs), adds raea-skills at the pin to the gate's tree,
packs share/raea/skills from it, and lists raea-skills' own commits in the skills notes.
- The core-rules test reads the skill from the submodule, and the surface test checks it.
- The Claude Code plugin names the one skill folder; README, the guides and the SDK docs say raea's 3D guide.
Co-authored-by: shinyobjectz <[email protected]>
A full bevy-parity suite opened one window per example, each taking focus, so the Mac was unusable while it ran. The
Bevy side now runs with no window whenever its pictures are taken (RAEA_PARITY_PNG). The host's build.rs gives each
example `crate::plugins(DefaultPlugins)`: its DefaultPlugins without WinitPlugin. In WinitPlugin's place,
raea_sys_parity::Reserve makes as many empty entities as the window's plugin makes before an example's Startup (11:
its observers and a Monitor for this Mac's display). The example's own entities then get the indices they get with a
window: a port matches some by index (image_node_resizing's debug outline colours), and an index breaks ties in UI
draw order (scrollbars' thumbs). Reserve also sends what winit sends as it makes the window, WindowCreated and then
WindowResized, which split_screen lays its viewports out on. The probe's `run` is the App's loop, as Bevy's
ScheduleRunnerPlugin runs one, with no wait between updates. The primary Window entity is still there, for the
examples that read its size, and its cameras already drew into the probe's offscreen image (FC0a, 11-07).
RAEA_PARITY_WINDOW=1 opens the window again to watch an example. raea's side was already headless (raea render, raea
play --offscreen).
The whole suite was run headless. Every ported example's picture scores what it scored with a window (split_screen
0.998973, scrollbars 0.994530, image_node_resizing 0.998153, standard_widgets 0.994691). Four failed only the
frame-time bar while another session rendered a film on the same machine; their pixels pass. The results docs here are
left at the last windowed run's, and the cost bar will be rerun on a quiet machine.
Since a3db7b6db, `raea render X.tsx --at N` refused every TSX composition ("no two readbacks with its tag agreed in
240 updates"). That commit gave every camera on the Engine's target a w x h Viewport above the tag row. The frame tag,
a 16 x 1 UI node in that row, was laid out under the scene's camera (UiTargetCamera), so bevy_ui clipped it to the
viewport and no readback ever carried a tag. Full renders and HTML stills don't wait on the tag and kept working.
The tag now has a camera of its own (raea-sys-frame spawn_tag, called where load.rs spawned the node): a Camera2d on
the same target, ordered last, on no render layer (so it draws no sprite or mesh), with no tone mapping, dither or
MSAA. Its texture is cleared to transparent and alpha-blended over the target, so every pixel but the tag's is left
as the frame's cameras drew it. tag_row_view leaves it out of the viewport it gives the rest.
bench/at-0/check.sh renders a one-colour composition with --at 0 and checks the frame is 160 x 160, one colour, and
#246 in its last row. It refused on a3db7b6db and passes now. bench/at-3d still passes (its four frames are
pixel-identical to the frozen render's), an mp4 render works, and the whole bevy-parity suite was rerun with the change.
A video takes the fed path (pages handed to the encoder on the GPU), whose program has no camera row; runtime/view's
camera_bg then gave raea's old dark blue (13,10,26), so every transparent part of an mp4 or mov was navy while the
same frame as a PNG (raea-export's program, which clears 2D pages to #000000) was black. #13's snapcn sweep met it:
text-swap, text-build, text-highlight and cursor-track read as a 0.52 SSIM drop against Chrome until the harness's
page took the navy. The default is now black, as program.rs's.
bench/clear-backdrop/check.sh: white text on nothing to an mp4 and a PNG, both corners black. Before: the mp4's
13,9,26 (the 02:20 build), the PNG 0,0,0. After: both 0,0,0.
snapcn's components (#13) load their families by name from Google Fonts; raea had no way for a composition
to ask for one. Google families came only with RAEA_PAGE_GOOGLE_FONTS=1, which fetches every family a
page names, so it is off by default (Chrome loads only what a page links, and every composition's root names Inter).
loadFont("Space Grotesk") (sdk/video/src/fonts.ts, exported from raea/text) returns { fontFamily } and calls the
new native fonts.google, which marks that family wanted in raea-sys-fonts google.rs: the page fetches its Latin
faces, every weight and style, once through raea's URL cache, so a render stays a function of its code and plays
offline once cached. Families nobody asked for still fall back as before. Outside raea (a browser) it links Google's
stylesheet, so the same code shows the same family there.
bench/load-font/check.sh: "Hello raea" in Rubik Mono One with loadFont differs from the fallback by 12885 px, and an
offline render from the cache matches the first exactly. Needs the network on the first render.
core/scene's media_path joined an https src to the composition's folder, so a remote clip was refused as
"<dir>/https:/…: no video track" (seven snapcn components in #13: hero-launch, laptop-frame, phone-frame,
phone-stack, reel-collage, reel-wall, screen-recording).
raea_io_net::cache::remote(src) gives an http(s) src's file through cache::fetch (keyed by the URL, which is in
the composition's source, so a render stays a function of its code; under $RAEA_CACHE beside the render cache)
and None for a file. The page's video elements, the export's sounds and live play's video list ask it first.
A src that can't be fetched refuses the frame saying why: "video <url>: HTTP 404 Not Found", or "(not in
raea's cache): not sent, because RAEA_OFFLINE is set". The cache's status errors no longer name the URL twice.
bench/remote-media/check.sh: a local server's red clip plays (centre 252,0,0), plays again offline from the
cache, an uncached URL offline refuses, a 404 refuses with its status. Before: all four read the URL as a path.
laptop-frame (snapcn) renders its remote clip, 240 frames at 7.0 ms a frame.
Three of Bevy's shader_advanced examples now run as written, each through a general feature.
A compute writes a mesh (shader_advanced/compute_mesh). A <Compute file> binds each var<storage> its file declares:
either its own buffer, its first contents in the type's storage layout and kept from frame to frame, or a mesh's
vertex or index slab in Bevy's MeshAllocator, found by its part's name (systems/compute/src/slab.rs). A uniform
field given { start: NAME } or { end: NAME } is that mesh's range in the slab, counted in the array's elements, and
is packed each frame once the allocator has placed the mesh. The allocator's slabs carry STORAGE usage, set before
MeshAllocatorPlugin's finish makes the allocator, as the example's plugin sets it. A <BufferMesh> with indices and
normals is now Bevy's indexed Mesh, its index buffer kept, instead of flat triangles (systems/mesh/src/indexed.rs);
3d/vertex_colors, which takes that path, still passes. Every row with a name now gets a Bevy Name, not only bare
entities.
Your own phase item (shader_advanced/custom_phase_item). <PhaseItem> puts raea-sys-phase's PhaseItem and an Aabb on
an <Entity>. A new crate, systems/phase, queues it into each view's Opaque3d phase with a pipeline of its shader
file as written, drawing its own vertex buffer (its stride and attributes) and index buffer with its depth state,
as the example's queue_custom_phase_item does.
A frame pass as written (shader_advanced/custom_post_processing). A <FramePass file> binds its file's own @group(0)
declarations: each texture_2d<f32> is the frame (the one `frame` names) or an image, each sampler Bevy's default or
the one given, each var<uniform> its value (systems/framepass/src/written.rs). Its uniforms may change frame by
frame: like a compute's entry and bind, they are a keyed string column, and the pass repacks them when they change.
FramePass moves out of materials.tsx (at its 500-line limit) into 3d/framepass.tsx. The group(0) declaration parser
the compute and the pass share is raea-sys-shader's bindings::group0.
A camera on the Engine's target now draws a w x h Viewport of the w x (h + 1) tag-row target, as orthographic
cameras already did. A perspective camera had a sub view of the whole target, so a draw in clip space, such as the
phase item's triangle, mapped to 721 rows: its bottom edge landed 0.75 px low and the port passed at SSIM 0.9936 with
2355 pixels off. It is now pixel-exact. The whole suite was rerun with the change.
Results:
- compute_mesh passes at frames 5 and 10 (SSIM 0.999999, 2 pixels off at a 2% threshold). Eight mutants all fail the
bar: no dispatch, either range set to 0, indices written into the vertex slab, the compute's mesh unnamed, the
other cube's colour, no shadows, and the other cube moved.
- custom_phase_item passes at frames 5 and 10 with SSIM 1.0 and 0 pixels off. Mutants: the second attribute at
offset 12, a vertex given another colour, and the top vertex at y 0.9 all fail the bar; a vertex moved from 0.866 to
0.86 passes on SSIM (0.9953) but leaves 1556 pixels off, where the port leaves 0.
- custom_post_processing passes at frames 10, 30 and 60 (SSIM 0.99995, 0 pixels off). Mutants: no white clear colour
fails the bar; intensity times 4/3 (8100 pixels off), a slower turn (4256), a linear sampler (16) and sin(t) for
sin(sin(t)) (2964 at frame 60) pass on SSIM but leave pixels off. The pass before tone mapping draws the same
frame, as it should: the camera is not HDR, so Bevy tone-maps in the material shader and its tonemapping node is
skipped.
- After the change, the whole suite passes: 141 of 141 ported (two first-run misses rerun clean: standard_widgets
missed its replayed menu click on the Bevy side, automatic_instancing missed its frame-time bar under another load).
A <Material>'s storage buffer is no longer limited to an array of numbers or vectors. It can be any host-shareable
type its source declares: scalars and vectors, matCxR<f32>, fixed and runtime arrays, and the source's own structs,
including fields under @if. Each is written in WGSL's storage layout (systems/shader/src/storage_layout.rs), as
Bevy's examples write such buffers with encase. In TSX a buffer is a StorageValue: a number, a list (a vector's
components, an array's elements, a matrix's columns) or a struct's { field: value }. Struct fields may also share a
line (`struct S { a: f32, b: vec2<f32> }`); layout.rs splits them at the commas outside a type's <>.
The parity bench's ChaCha8Rng gains next_u64, random_bool and random_index, matching rand's draws for seed 12345
(lib/rand.test.ts). The parity host depends on bytemuck, which the example uses.
shader/gpu_component_array_buffer passes at frames 60, 180, 240 and 400 with SSIM 1.0 and 4 pixels off at a 2%
threshold. The port replays the example's add_cube and remove_cube on Bevy's clock. Two details matter. A part keeps
its row across frames by its name, not its React key, so each cube is named by its spawn number; otherwise a cube
that moves up the list takes the texture of the cube that was there first. And when both timers fire on one update,
the cube spawned then is not yet in the other cubes' archetype, so the despawn swaps in the previous last cube and
the new one joins after it.
Nine mutants all fail the bar: swapped textures, swapped colour channels, a constant MeshTag, a 310 ms spawn timer,
the new cube put first, another seed, cube scale, camera target and a mirrored z. All 19 shader ports still pass.
A <Compute file> compiles its shader file as written, binding its own @group(0) storage textures and uniforms
(systems/compute/src/written.rs). Each frame picks the entry point and which image each storage texture binds, as
a Bevy example's render-graph node picks its pipeline and bind group. Its images are render:NAME images in the
storage format the file declares, each with a sampler if one is given.
Strings can now change from frame to frame. A row column holds a number per frame, so a changing string is kept
as the list of values it takes plus a keyed index into it (raea-runtime-look's keyed_strings, read back with
raea-sys-frame's keyed). The changing-picture code for ImagePlane already worked this way and now uses the helper.
A Compute's entry and bind use it, and so does a Sprite's src: a Sprite can show a render:NAME image and switch
to another by name each frame.
The render-image registry (RenderImages) moves into raea-sys-frame, so the sprite system can look images up by
name. raea-runtime-plugins re-exports it.
A still renders only the frames it needs and their neighbours. When a scene has a compute that carries state
between frames (a file's images, or its own buffers), every frame up to the wanted one is now rendered, because
the GPU state can't be rebuilt from one frame.
Load checks every entry name and binding the run uses. A frame whose entry leaves a storage texture unbound is
logged and skips its dispatch.
shader/compute_shader_game_of_life passes at frames 10, 11, 30 and 60 with SSIM 1.0 and 0 pixels off. Frame 11
was added so each of the two images' samplers is drawn. Mutants are caught either by the bar or by the 2% pixel
probe: init a frame late, swapped bindings, alive colour, sprite parity, either image's sampler, clear colour,
scale, and one extra row of workgroups. The extra-row mutant passes SSIM at 0.9994; the probe finds 784 pixels off,
against 0 for the real port.
The fast path for placed rows grew raea-runtime-scene3d to 2010 lines. Clay is a material concern (every standard surface drawn grey and matte) and depends only on Bevy, so it moves to raea-sys-material; scene3d re-exports it, so every caller keeps its path.
shader/automatic_instancing: 65 536 cubes, one mesh and one Material, each with a MeshTag (a BevyComponent) its
vertex shader reads a texel by, moved in z every frame. The update was 103 ms against Bevy's 9: every moving row's
values were made into a map each frame. The timeline now records which columns move per row (Timeline::moving), and
a row only its placement moves has, once its other values are applied, its transform read straight from the frame's
columns (FrameRows::moves_only, placer, transform_by): 7.4 ms against Bevy's 8.3. The parity probe formatted a string
for every visible mesh each probed frame, in the next frame's measured time, on both sides; it now formats a size once.
Mutants: the tag off by one (SSIM 0.977) and the phase (0.397) fail the bar.
shader/pipeline_constants: a Material's `constants` are its fragment's pipeline-overridable constants (WGSL override),
set in its pipeline as the example's specialize pushes LEVELS; kept by hash so its key stays Copy (SpriteMaterial's
combined key is a packed struct). Its quads are pixel-exact; LEVELS + 1 and no constants both fail the bar. A Text2d
inside a layered Canvas3D was silently not drawn (the bar passed it at SSIM 0.9946); it now throws, saying to put it
after the Canvas3D.
shader/gpu_readback is excluded: it spawns no camera and draws no frame; its behaviour is the GPU results it reads back
and logs, the world check's, not a picture.
A MaterialExtension's fragment file is compiled as written but for its material-group bindings' numbers, which go to
ShaderExt's slots in the order declared: its uniform struct at 100 (its uniforms packed in its layout), up to four
texture_2d at 101-107 and their one sampler at 102 (ext_bind.rs, through ui_bind's rebind_with). A declaration under
@if(BINDLESS) is left as written and compiles out, so Bevy's extended_material_bindless binds its @else set (50, 51,
52), as it does without bindless; the @binding(100) struct is read from outside those spans.
The port is pixel-exact at frames 30 and 60. Mutants on a dark scene the bar's SSIM threshold can't see: the
modulate colour (30k px off at a 2% probe), the rotation by 0.1 rad (9k), the sphere's sectors (2k); the base
colour under the checker moves SSIM 1.0 to 0.9995.
A Material's declarations under @if(BINDLESS) are left as written: raea's Materials aren't bindless, so that set
compiles out and the @else set binds, as Bevy's does on a GPU without bindless (ui_bind.rs bindless_spans).
A Cylinder alone is drawn as Bevy's Cylinder mesh (32 sides, one segment), with its normals and texture coordinates,
as a lone sphere, cuboid and plane already are: a shader reading its uv now compiles (core/shape cylinder_of).
Mutants: the cylinder's colour, its logo and the cube's blue are each caught (the blue by a pixel probe, 236 against
214); the radius by the pixel count. In 2D a logo swap is caught; Mask against Opaque draws the same picture in Bevy
too (a custom Material2d doesn't discard, and the Mask pipeline doesn't blend).
shader/shader_prepass passes at 4 frames, one per prepass view (transparent, depth, normals, motion vectors), stepped by
scripted Space presses. The camera carries Bevy's DepthPrepass, NormalPrepass and MotionVectorPrepass and Msaa::Off as
<BevyComponent>s, and show_prepass.wesl reads them through bevy_pbr::prepass::utils as written. The opaque Material
cube writes into the prepass and turns with Time::elapsed_secs.
Live play drew its 3D under the page blended by the 3D's alpha, which a window ignores, so custom_material's
COLOR_MULTIPLIER alpha of 0.5 faded the opaque cube toward the page's white. The 3D under a whole page is now copied
opaque (place_under, fs_opaque), as raea render and Bevy's window present it.
Outside the text block at most 574 pixels differ (edges). Mutants fail: the normals view off, NormalPrepass removed,
the cube's turn frozen, the opaque cube blended. A Mask cutoff of 0.2 against 1.0 passes the bar but moves the pixel
probe (2350 to 2474 px): the icon's alpha is all but 0 or 1. The ports with input scripts rerun pass.
<Sprite><Material/></Sprite> is Bevy's SpriteMaterial<M>: raea's OwnMaterial is also a MaterialExtension2d, so it
extends the sprite's own SpriteMeshMaterial and its shader reads the sprite through sprite_mesh::functions. A
Material's fixed slots now start at 30, past the sprite's own bindings (a UiMaterial's still start at 0), and an
alpha mode the spec doesn't give leaves the sprite's own.
Live play now carries a Material's values frame by frame: a one-frame program sends its own:uniforms row, and a
component whose target keeps its render id (a sprite, a 2D shape) is no longer dropped.
The parity host's input script takes key names (KeyCode's: "Space"), held in ButtonInput<KeyCode> after Bevy's
input systems, so input_just_pressed sees a press on its update.
shader/sprite_material passes at 6 frames across two Space presses (SSIM 0.99983, the text's tile). Mutants of the
amount, the burn edge's width and the delta fail. A burn-edge colour mutant passes the bar, which can't see a thin
edge's colour, but the edge probe catches it: the same 1721 edge pixels, green total 1428 real against 1266 mutant,
and 1428 in Bevy's. The Material, sprite and 2D ports rerun pass.
A <Material>'s `buffers` are its read-only storage buffers (var<storage, read> NAME: array<T(, N)>, up to two, at
OwnMaterial's 23 and 24), each laid out as WGSL stores its element type (own_live.rs storage; a vec3 takes 16 bytes).
Its uniforms and buffers may change from frame to frame: raea-runtime-look own_uniforms sends them as keyed
`own:uniforms` component rows from each frame they change, and own_live.rs patch packs them into the part's
Material and ShaderBuffers (a row that arrives before shade_rows puts the Material on waits on the part, Pending).
Parts whose spec is the same share one Material, as Bevy's examples share a handle: a varying spec carries its
track's hash, so parts share only when every frame's values match too (own.rs shared, OwnMade, cleared per load).
layout.rs's word encoding is shared by uniforms and buffers.
Port: shader/storage_buffer (SSIM 0.999999 at 30 and 60): 91 cubes with MeshTags (<BevyComponent
bevy_mesh::components::MeshTag>), the example's vertex and fragment shaders from its one file, its colour buffer
recomputed each frame as its update system does. Freezing the colours at frame 0 fails (97310 px off), as does
tagging every cube 0 (76718). The other shader ports rerun and pass.
rebind_in takes `dims`: a Material's (not a UiMaterial's) textures of the other dimensions go to their own slots
of OwnMaterial, one of each (16 1d, 18 2d_array, 20 cube, 21 cube_array, 22 3d), and its samplers, in the order
the source declares them, to 9, 11, 13, 15, 17 and 19 (Bevy's view binds up to 8 of the fragment stage's 16). A
texture the source declares and the spec doesn't give binds Bevy's fallback image of its dimension, as an
Option<Handle<Image>> left None does; a 2d_array takes the spec's texture array ({ layers }).
Port: shader/fallback_image (SSIM 1.000000). Its fragment writes nothing, so the frame alone can't show the
bindings: a raea-only variant that samples all six textures draws the cube (worst tile 158 against Bevy's empty
frame), so the six bind and sample. A unit test puts fallback_image_test.wesl's twelve bindings in their slots.
A <Material> in a Mesh2d is Bevy's Material2d: raea-sys-shader's OwnMaterial implements both Material and Material2d
(group 3 in 3D, 2 in 2D), so the bindings, the imports beside the file and the packing are one code path;
alpha_mode maps to AlphaMode2d (Opaque, Mask, else Blend), and cull_mode now keeps the pipeline's own unless given
(Back in 3D, none in 2D, as Bevy's pipelines have them). Mesh2d carries it to Shape2D as `shader`, the shape row
keeps it as a JSON column, and raea-sys-sprite's spawn_shape puts MeshMaterial2d<OwnMaterial> on in place of the
ColorMaterial, its textures decoded at once (own::picture, which the UiMaterial now uses too).
raea's 2D camera draws over the 3D camera on its target. With the 3D camera single-sampled and not Hdr (a 2D-only
scene's), the two share one main texture, so the 2D camera's blit used to alpha-blend the finished frame over
itself (Bevy blends every camera after the first on a target). It now replaces, as a lone Camera2d's does: a 2D
fragment's alpha below 1 reaches the frame as Bevy leaves it. Found by shader/shader_material_2d, whose Mask(0.5)
material writes alpha 0.5 and never discards: Bevy's centre pixel (0, 0, 40), raea's was (29, 29, 43) and is now
(0, 0, 40). A mixed scene (a multisampled 3D camera) keeps the blend.
Port: shader/shader_material_2d, SSIM 1.000000 (the Blend mutant fails, 16384 px off). The full sweep passes
126 of 126.
raea/pbr's <Material> now draws as raea-sys-shader's OwnMaterial (own.rs), an `impl Material` whose bind group
takes any author's layout: the file's @group(MATERIAL_BIND_GROUP) bindings are renumbered into fixed slots in the
order the source declares them (8 uniforms of any type up to 256 bytes, packed in their declared types, a struct's
from { field: value }; 4 textures and their samplers), as the UiMaterial's are (ui_bind.rs rebind_in, generalized
to any group). `import super::NAME` reads NAME.wesl beside the file: the module is registered under an embedded
folder per source folder, which is the module path WESL resolves super:: to. alpha_mode and depth_bias are its
Material methods', cull_mode its specialize's (Back; null culls none), and `vertex` names a vertex shader for the
main pass. A shader's textures given as staticFile paths are now found as its fragment is.
Ports: shader/shader_material (SSIM 1.000000: its own bindings at 0-2, the relative import, AlphaMode::Blend; the
Opaque mutant fails at 36143 px off, and a cull_mode null mutant moves SSIM to 0.992), shader/shader_defs
(0.999999: its uniform a struct, IS_RED from defs), shader/shader_material_screenspace_texture (0.9989 at 10 and
60, max 12 grey off: view.viewport uv under the turning camera). animate_shader, extended_material and
ui/ui_material rerun and pass as before.
sdk/plugins/src/bevy.gen.tsx drifted from 10-31 to 11-08 over four landings (d708518be): a landed material registers
a MeshMaterial3d<..>, and only the plugin build (raea-bevy-sdk, required-features bevy-plugins) can read the type
registry. tools/bevy-plugins.sh check compares the generated TypeScript with that registry and catches it (a mutant
dropping one wrapper's type fails it), but nothing ran it: L1 only cargo-checks the plugin build, and a fresh one
takes about 20 minutes, too much for every landing. L2 already builds it in its own clean checkout of the commit,
so it now runs the check after that build (about 50 s) and reports "plugin bindings: ok" or "drift" with the fix, in
its summary line and summary.json.
bevy.gen.tsx was last generated 10-31. Since then, landed materials made Bevy register four MeshMaterial3d /
MaterialNode components, which tools/bevy-plugins.sh gen now writes as wrappers (380 -> 384 components):
- MeshMaterial3d<ShadowCatchMaterial>, raea-sys-material's shadow_catch (88ccb8284);
- MeshMaterial3d<ThreeShader>, raea-sys-three-shader, R3F's shaders (d3c399b4d);
- MaterialNode<RaeaUiMaterial>, raea-sys-shader's ui, FC0a's ui_material (c703bb308);
- MeshMaterial3d<ExtendedMaterial<StandardMaterial, Procedural>>, raea-sys-procmat.
plugins.lock.json: every plugin's schema hash moves with the shared registry. Regenerated on the current tree (no
uncommitted Rust touches reflection); tools/bevy-plugins.sh check sdk/raea/bench/bevy-plugins matches its lock.
- raea-sys-mesh: a row's mesh from JSON (Bevy's primitives by name, rings, extrusions, buffer meshes), moved out of
raea-sys-material, which re-exports it as its `mesh`.
- raea-runtime-scene2d: the 2D parts' rows (<Sprite>, <Shape2D>), moved out of raea-runtime-scene.
- The part-row helpers both use (visible, sheet, tint) now live in raea-runtime-look's parts.rs.
raea-sys-material had gone to 2048 lines and raea-runtime-scene to 2040 with the FC0a additions.
2D was drawn 0.14% small. An orthographic camera on the engine's w x (h + 1) target (the frame and its tag row) saw
the frame through Bevy's SubCameraView, whose orthographic math sizes its area from the 721-row target. A white rect
at (90, 510) drew at 41..140 instead of 40..139. Every 2D port still passed the pixel bar. Orthographic cameras now
get a w x h Viewport instead (engine target.rs, line-neutral). 2d/sprite and 2d/move_sprite went from SSIM 0.998
(worst tile 8-9) to 1.000000.
New in the SDK:
- Bevy's primitive meshers by name (systems/material mesh.rs): CircularSector, CircularSegment, Segment2d/3d,
Polyline2d/3d, ConvexPolygon, Ring (`inner`, or `ring: thickness` as Bevy's to_ring), Extrusion, the Sphere's uv or
ico kind and Plane3d subdivisions.
- <Model nodes>: glTF nodes' local transforms by name, each frame.
- Lights' shadow_depth_bias and shadow_normal_bias.
- <Sprite image_mode> (Bevy's SpriteImageMode: Auto, Scale, Sliced and Tiled) and <Sprite sampler>. A sprite sheet is
no longer forced to nearest; the ports whose examples use ImagePlugin::default_nearest ask for it.
- Text2d's Anchor, and it no longer wraps (Bevy's Text2d is unbounded).
- Srgba.hex takes Bevy's 3, 4, 6 or 8 digits.
- Quat.slerp.
- The parity probe marks the example's highest-order window camera as the UI camera, unless the example marked one
itself.
New ports, all passing: camera/2d_on_ui, gltf/load_gltf, gltf/gltf_skinned_mesh, animation/animated_transform, 3d/fog,
3d/3d_shapes, 2d/sprite_scale and 2d/sprite_slice.
Mutants:
- Caught by the bar: skinned mesh without the joint pose and at PI/3; animated_transform without the controller's
turn; 3d_shapes with a Cuboid for the Tetrahedron.
- Caught by pixels off: 3d_shapes' ring thickness (4736 vs 2911) and animated_transform's scale key (728 vs 0).
- Passing the bar: fog's end and colour (SSIM 0.989 / 0.990). The real fog port matches Bevy to within 1/255 in every
fogged region, and its 5819 pixels off are the help text.
- sprite_scale's gabe sheets match Bevy byte for byte at frames 10 and 60.
sdk/raea/bench/bevy-plugins/hanabi.tsx, with seed 7 on both fountains, differed from itself on the same build: 110 to
113 of its 120 frame hashes, from frame 7 or so (seen in #38's live-3d corpus as a route difference; it wasn't one).
Only the alpha-blended fountain varied. bevy_hanabi (rev 77630ff) builds its draw list with atomicAdd, so blended
particles drew in an order that changed from run to run, and it seeds a new particle from the dead slot it recycles,
which threads take in atomic order too, so once particles die the new ones differed as well.
vendor/bevy_hanabi is that rev, src/ byte for byte but for four files, all marked raea: (tools/vendor: 104 lines):
- vfx_init.wesl: a new particle's seed is its index in this frame's spawns, not its slot;
- mod.rs, sort.rs, vfx_sort_fill.wesl: blended effects (not opaque, not alpha-masked) go through the sort pass that
only ribbons used, keyed by view depth from the main camera (the near plane of SimParams' frustum, which sort-fill
now binds), far first as Bevy sorts its transparent phase, AGE breaking ties. The sort's layout key no longer needs
RIBBON_ID or AGE.
Its Cargo.toml drops the examples, GPU tests, dev-dependencies and [workspace] (Cargo.toml.orig is upstream's). A git
[patch] in the root Cargo.toml points at it; only the plugin build compiles it (raea-cli without plugins doesn't).
LICENSES/bevy_hanabi moves into the vendored folder, as for the other vendored crates (tools/licenses.sh).
engine/bevy-plugins' hanabi.rs tags the first 3D camera HanabiMainCamera, so the sort has a camera.
bench/hanabi-repeat/check.sh renders it 4 times on the program route: before, 110 to 113 of 120 frames differed run to
run; now every frame is the same, and program vs live (RAEA_LIVE3D_CHECK) matches on all 120 frames. At frame 30,
before any particle dies, sorted vs unsorted (the same build, sort switched off) differs in 9 pixels, as two unsorted
runs do (8.5): order where particles overlap, not coverage. bevy-ts plugin-hanabi passes.
bench/live-3d/corpus.sh renders each composition in bench/live-3d/corpus.txt (the 190 files #38's run used) for 30
frames on RAEA_3D=program and on the live route, and compares the frame hashes. A failure there is now a real gap,
not the harness:
- a .tsx without registerRoot is a module (bunting, wake, cloud, contrail, smoke, bevy/view/scene and the generated
plugin modules), so it is skipped;
- a case with // build: plugins or a raea/plugins import renders with the plugin build (motion.sh, or
RAEA_PLUGIN_BIN), the way bevy-ts/check.sh does;
- animated-character (its glb was deleted), brick-rush (it needs the playable host) and rotate_environment_map
(multi-layer textures, off by default) are expected skips, each with its reason.
shader-character's card-body/body.glb has its one joint renamed from CMU's Hips to pelvis, the game_engine name
sdk/character now looks for, so the case passes again.
Run: 169 same, 6 failed (examples/character x5 and bevy/passes: their kid body.glb is on the CMU rig), 4 differ
(hanabi varies between two program runs despite its seed; live-world, world-host and world-render differ at frame 0
only), 11 skipped.
raea_sys_frame::pipe does inside the engine's own update what Bevy's PipelinedRenderingPlugin does: a render thread (one for the engine's life) draws the frame the last update extracted while the main world runs this one; then this frame is extracted and the render world waits, home in the App, so what reads it between updates is unchanged. A render's frames and a live engine's catch-up steps pipeline; a live draw still hands its frame on drawn. RAEA_SERIAL or RAEA_PIPELINE=0 turn it off. Vello's renderer moves from a NonSend to a resource (in a SyncCell) so the render world can change threads.
FrameRows::vals made a row's values on every call, and six of the 3D's systems call it for every row (44% of a many_foxes update); set_cols now keeps each row's values, made on first ask, for the frame.
many_lights 6.2 -> 3.9 ms against Bevy's 4.9, many_foxes 11.8 -> 5.5-6.2 against 6.05; pixels identical with pipelining on and off. tools/bevy-parity: 114 of 114 ported examples pass.
- css-transforms-1 (csswg-drafts#9640) uses fill-box for stroke-box and border-box when the shape has vector-effect: non-scaling-stroke. svg_css_transform now does, from the computed value or the attribute.
- svg_stroke_width read stroke and stroke-width from the style attribute and attributes only, so a stylesheet's stroke didn't widen the stroke box (svgbox-stroke-box-001/002 and svgbox-border-box moved by the fill box's size). It now reads each as usvg sees the serialized element: its style attribute, then a rule's computed value that svg_css_paint writes there, then its attribute, then what it inherits.
- A non-scaling stroke reaches anyrender_svg as an id starting raea-nss-, since usvg drops vector-effect but keeps ids. An element with an id of its own was never marked, so its stroke scaled. mark_non_scaling_strokes now renames an element's own id to carry the mark when nothing in the source refers to it (`#id`); a referred-to id keeps its name (and its stroke still scales). The unit test covers both.
bench/svg-stroke-box/check.sh moves two stroked rects by translateX(50%) of their stroke box: a (stylesheet stroke: moves 60) and b (non-scaling stroke with its own id under scaleY(0.5): moves 50, its stroke 20 wide). Chrome 148 gives the probed pixels. The raea before this fails three probes; the raea with it passes. WPT css-transforms transform-box: 15 of the 28 tests Chrome passes before, 20 after (border-box, stroke-box-001 to 004), none lost.
fps, the same 120-frame page back to back, three runs each: 3.2, 3.8, 4.1 ms a frame before, 3.0, 3.8, 3.2 after (about 280 fps both).
Upstream candidate (Blitz): blitz-dom serialize.rs's stroke box and svg.rs's mark (the mark itself is raea's, for anyrender_svg).
While models load, await_models now holds the active cameras off (raea-sys-post's views.rs). The render world still prepares meshes, textures and pipelines, but bins nothing. It turns them on before the first frame, so every view bins the whole scene into new phases in queue order. Turning views off after a draw was binned instead loses what Bevy extracts only on a change. And a morph mesh first seen by a view after loading would keep "no morph" for good: Bevy 0.20 gives it a descriptor only once its instance was collected, and collects an instance only when it changes. So views::on runs one update and then marks each morphed mesh's Mesh3d changed (bevy-ts morph drew its card unmorphed without that; the old loading updates collected it again by chance). An earlier try, updating only the main world while models load, broke the same case: messages the render world extracts by didn't reach it.
bench/room3d-repeat/check.sh renders room3d 8 times at frames where the seam ties and wants every run to match the first. The raea before this fails 5 of 7 runs; the raea with it passes. Five full renders (7200 frames each) hash the same. Frame 0 is pixel-identical to the raea before on room3d, bevy-parity many_foxes, bevy/model and bevy-ts morph. bench/live-3d is 13 of 13, and bevy-ts is 92 pass with 1 open (shader-character's body.glb, open before too).
fps, the full room3d render back to back, alternating: 124.3 and 109.7 fps before, 125.7 and 108.1 after. First-frame render, three each alternating: room3d 1.00, 0.66, 0.70 s before and 0.68, 0.68, 0.68 s after; many_foxes 1.26, 0.95, 0.95 s before and 0.96, 0.95, 0.94 s after.
Bevy blends into the 3D's target, so it holds premultiplied colour. raea laid it over black as if it were straight, multiplying each channel by its alpha again. That darkened every pixel where a fragment wrote alpha under 1 into an opaque pass: the AlphaToCoverage cube at frame 10 came out at 0.70x Bevy's colour, which is the 0.69 its resolved samples hold. Over black, a premultiplied picture is its own colour, which is what a Bevy window shows whatever alpha was written. bevy_over_3d (runtime/export bevy_frame.rs) and the fed render's GPU pass (engine/page feed.rs) now both take it that way, integer for integer. All 114 registered ports rerun: 112 pass. many_lights and many_foxes miss only on frame time, as before.
The bar can now drive an interactive example. A row of bench/bevy-parity/runs.tsv may name an input script, in the format `raea play --input-script` takes ({"FRAME": ["Pointer:X:Y:down"]}). The example gets it as RAEA_PARITY_INPUT: systems/parity input.rs writes bevy_picking's PointerInput messages on the picture the cameras draw into. The port's pictures then come from `raea play` under the same script; cost still comes from the render.
Gaps found and patched on the way:
- raea play sent its pointer only to useInput, never to page elements, so a composition's onClick never ran. The live step now hit tests the pointer on the page (BevyPage::hit_path) and sends its React handlers the events a browser fires, in a browser's order: over/out, enter/leave, move, down/up, and click on what both the press and the release were over (runtime/live pointer.rs).
- bevy_ui_widgets' Popover: Node takes `popover` ({positions: [{side, align, gap}], window_margin}). raea's Blitz places the popup after layout beside its parent's box (inside its border), at the first placement the window hides least, as position_popover does (vendor/blitz-dom bevy_popover.rs). It's drawn and hit tested there. Node also takes bevy_picking's handlers (onClick, onPointerDown/Up/Over/Out/Enter/Leave/Move; sdk/render ui-pick.ts). The page bridge keeps data-raea-bevy-popover.
- After any state change in play, bevy text was drawn broken at min-content width: raea's bevy_text min-content measure breaks lines at width 0, and a box whose layout taffy kept from its cache never broke them back. A measure now puts back the lines a laid-out box keeps (blitz-dom inline.rs, TextLayout::performed_width).
The port's Button reads "Hover" and "Press" as set_button_style has it; the menu button toggles spawn_menu's popup of four items, each lit while hovered; activating an item closes the menu. Under a click on Menu, then the pointer on the first item: 0.994691, worst tile 17. Without the toggle, the popover, GlobalZIndex or hover, with the side flipped, a 6 px gap, three items or 90% width, the bar fails; a gray border passes it and the probe catches it (7217 px off against 6465). conformance/ui-pick.test.tsx; blitz-dom bevy_popover tests; runtime/live pointer test.
blitz-dom's serializer (svg_css_paint) now writes each SVG element's computed paint properties into its style attribute: fill, stroke and their opacities, fill-rule, stroke-width, -linecap, -linejoin, -miterlimit, -dasharray and -dashoffset where they differ from the parent's computed value (they inherit, so a rule on the <svg> stays on the <svg>), and vector-effect where it isn't none. currentcolor is written as the element's color, as presentation attributes already were. The style attribute beats presentation attributes in usvg as in CSS, so a rule's fill wins over a fill="" attribute, as Chrome has it. vendor/stylo now has vector-effect for Servo too (it was Gecko-only), so a stylesheet's non-scaling-stroke reaches the source and isn't reported as not applied.
bench/svg-css-paint/check.sh draws five squares: a and b from a stylesheet rule on the path (a with vector-effect), c with attributes, d with a fill attribute under a rule on the <svg> (the attribute wins, as it's on the path), and e with a rule on the path over a fill attribute (the rule wins). Chrome 148 draws a, b and c as green outlines, d orange and e green. The raea before this drew a and b as black squares and e orange, and noted vector-effect as not applied; the raea with it passes.
WPT css-transforms, an 11-07 build vs this tree (won/lost lists; the newer build has #39 and other lanes' changes too): 18 svg-document-styles, svg-external-styles and svg-inline-styles tests now pass (their transforms' boxes are drawn with CSS fill). Three tests that passed because the test and its reference were drawn equally wrong now fail on their real gaps: svgbox-stroke-box-003/004 (with non-scaling-stroke, Chrome uses stroke-box as fill-box) and css-masking's clip-path-animation-neutral-keyframe-svg-smil (raea doesn't run SMIL <animate>, so the CSS fill shows where Chrome animates it).
fps, the same 120-frame page back to back, three runs each: 3.7, 3.9, 3.5 ms a frame before, 2.4, 3.3, 3.4 after (about 280 fps both).
Upstream candidate: blitz-dom serialize.rs's svg_css_paint (Blitz), stylo's vector-effect for Servo.
blitz-dom's paint tree now gives such a box to the nearest stacking context between it and its containing block (paint_owner); that stacking context takes it from its containing block's list (take_out_of_flow), z-sorted with its other children. Its place still comes from its containing block (hoisted_child_position subtracts the stacking context's own chain), so a margin that moves the wrapper doesn't move the box. In blitz-paint, the group's layer reaches over the taken boxes (hoisted_content_bbox), and they are drawn after the stacking context's overflow clip layer, since the containing block that places them is above that clip (draw_from_above). Drawing them inside the clip layer made a mix-blend-mode box in an overflow:scroll stacking context blend with an empty layer (WPT compositing mix-blend-mode-with-transform-and-preserve-3D/fixed, caught and fixed before this commit).
bench/opacity-out-of-flow/check.sh draws four black boxes in groups at opacity 0.3 (an absolute child of an unpositioned wrapper; an in-flow child; an absolute child of a positioned wrapper; the first moved down by its wrapper's margin) and probes each for Chrome's grey 178. The raea before this draws 1 and 4 black (0) and fails; the raea with it passes, as Chrome 148 does.
WPT, raea before and after this and #45 together (won/lost lists, not counts): compositing 12 of 43 both, the same tests; css-masking +2 (clip-path-blending-offset, mask-image-ib-split-2) and one false pass gone (clip-path-animation-neutral-keyframe-svg-smil: CSS fill now reaches the SVG, and raea doesn't run its SMIL <animate>); css-transforms 22 won (18 svg-document/external/inline-styles, #45's; subpixel-transform-changes-001 to 004) and two false passes gone (svgbox-stroke-box-003/004: the test and its reference were both drawn as black rects; with their CSS paint they now differ by raea's stroke-box under non-scaling-stroke, which Chrome uses as fill-box).
fps, the same 120-frame page back to back, three runs each: 3.6, 4.6, 4.8 ms a frame before, 2.4, 4.2, 3.9 after (about 240 fps both).
Upstream candidate (Blitz): blitz-dom paint_tree.rs (paint_owner, take_out_of_flow, hoisted_child_position) and blitz-paint render.rs (from_above, draw_from_above, the layer's bounds).
bench/text-autospace/check.sh draws three "2026년" lines (unstyled, normal, no-autospace) and finds where each line's ink ends. The unstyled line must end where no-autospace's does, and normal's 5-7 px further right. The raea before this ends them at 202/202/196 and fails, the raea with it at 196/202/196 and passes; Chrome 148 ends them at 184/190/184 (a different sans-serif, the same 6 px). WPT css-text --only text-autospace: 13 of 26 pass before and after, the same tests.
fps, the same 120-frame text-autospace page back to back, three runs each: 4.3, 3.3, 3.9 ms a frame before, 3.7, 3.5, 4.3 after (about 260 fps both).
Upstream candidate: stylo's text-autospace is Gecko-only upstream; enabling it for Servo would need this initial value.
The live route calls camera_pass every frame. Assigning to the Camera through get_mut marked it changed every frame, even with the same values, and that moved two edge pixels in frame 10 of bench/bevy/paint/edit between the live and program routes (#38). It now compares the row's order, clear and viewport with what the Camera holds, and writes only when one differs. paint/edit's frame 10 matches across routes again; two_passes and split_screen pass as before (0 and 673 px off live).
The last part of #26: a full 3D video stepped React twice per frame, once in runtimes of its own to make the 3D rows beforehand and again for the page. When the page's render meets its first 3D frame, it now starts again with its 3D made live as each frame steps, as a game's render does. Each frame's scene is kept (LIVE_CLIPS) for the clipping check at the end, and --aov works on the live engine too. RAEA_3D=program keeps the old route. The program fallback's two returns are now one (render_bundle_with with scene.is_some()).
This was parked until #38's cases matched (environment, kept mounts, text3d, volumetric glass, world answers, material fields: all landed). Checks with this build:
- 190 compositions, default route vs RAEA_3D=program, 30 frames each: 151 identical. 35 fail on both routes as before (compositions that throw, plugins not compiled in). The three world cases differ on frame 0 only, which is expected (useWorldAnswer). bevy/paint differs on frame 10: two edge pixels by at most 15 levels. That is present without this change too (the previous build shows it on RAEA_3D=live) and is listed on #38.
- #26's scene (bench/at-3d), full 360-frame render, whole run, old default vs new, back to back: 13.2/12.5/13.2 s vs 10.7/10.6/10.4 s, frame hashes identical. Its ms-a-frame line reads 24.0/24.1/25.5 vs 26.3/27.8/27.2, because React's one step is now counted inside the frame.
- bevy-ts: 92 pass, 1 open (shader-character, open before too).
<Camera3d> takes Bevy's Camera order, clear_color (ClearColorConfig: Default, None, Custom) and viewport (physical px). Every camera in a scene gets a camera row: the first is "cam", and each one after it is cam1, cam2 and so on (runtime/look camera.rs). Renders and live play spawn them all, and raea-sys-frame's camera_pass puts each row's order, clear and viewport on its Camera. Per-camera UI goes in a <Viewport> inside <UiTargetCamera>.
two_passes: 0.999025, 0 px off in render and live. split_screen: 0.998973, 1142 px off in render, 673 in live play. Mutation tests: a missing viewport, a shifted viewport, a moved camera and a changed justify_content fail the bar. The pixel probe catches the light angle, button width, padding, margin and plane size. Reversing the camera order is equivalent because the viewports don't overlap. In live play, extra cameras keep the place they had on the first frame.
What changes for authors: a mesh at opacity 1 draws opaque and writes depth, on every frame where it's at 1, even if it fades on other frames. Below 1 it blends. Before, a render made any mesh with an opacity column (one that faded at any point) a blended surface for its whole life, while live play blended only from the first frame below 1. A mesh whose alpha mode is given (alpha: blend, mask...), or a blended picture (a glyph over its atlas, a textured mesh that fades), keeps its own mode at 1.
bevy/volumetric-glass differed between the routes on frames 20-39, where its pane is at opacity 1 and the fixture says it "must draw as the opaque one" (frame 19). The live route did that. The program route drew the pane blended, so it wrote no depth: the froxel hero shaft was integrated to the wall behind it and then dimmed by the pane's full opacity, and the shaft in front of the pane was lost. systems/material maps.rs now spawns a mesh opaque at opacity 1, and runtime/scene3d sync_meshes and the toon sync switch Opaque and Blend both ways each frame. froxel_glass already drops a surface's fog copy once it stops blending.
Checks:
- volumetric-glass: all 90 frames equal between the routes. The program route's frames 20-39 changed and now equal frame 19; no other frame changed.
- bench/live-3d/check.sh adds it: 13/13 pass. bevy-ts: 92 pass, 1 open (shader-character's body.glb, open before too).
- Old vs new binary, program route, frame hashes: no change in broll (p26), bevy-parity mesh_ray_cast, texture, transparency_3d, bevy-ts alpha-mask, bevy/materials, bevy/studio, conformance layered-clear, react box3d. room3d isn't deterministic (two runs of the old binary differ on 147 frames); its one fade is a Decal, which this doesn't touch.
- The 1 to 0.99 edge (a scratch cube held at 1, then 0.99, 0.98 over a sphere): frame 9 to 10 changes as much as 10 to 11 (about 15 px, at most 4 levels), and the same on both routes, before and after.
- No golden reference fades a mesh.
volumetric-glass, program route, ms a frame before vs after, back to back: 7.3/7.6/7.5 vs 7.5/7.5/7.9.
- a face parley can't scale (Apple's bitmap-only GB18030 Bitmap has no head table, so its advances are infinite) blacked the whole page: every box after it was NaN. blitz now measures a bevy_ui Text whose lines are no finite size as 0 by 0, as bevy_text's buffer_dimensions does.
- a FontSource::Family face missing a character fell to CSS's serif (Times), then to CoreText's pick for the face, where bevy_text falls to the collection's fallback families (Helvetica for Latin). The SDK now writes such a family as `"Name", "raea-bevy fallback"`: blitz appends no serif to it and parley asks no FallbackHook for it (NO_HOOK_FAMILY).
The bar passes every mutant but two (the count off by one, the rows' blue 0.25 to 0.22); a probe of the count line (473 px off against 556) and of a row's background (srgb 51 51 64 against 56) catches both. All 72 ui ports pass. Open: lines mixing a face with its fallback sit about 0.4 px lower than Bevy's, and their stems are softer (Bevy's atlas is sampled nearest; snapping glyphs to whole pixels didn't bring it closer).
In bevy/text3d, "render anything" stayed half see-through on the live route from the frame it typed on. `reveal` fades each glyph through 0, 0.5 and 1. A live frame makes its rows from that frame alone, so a glyph's row has an opacity column only on a frame where it is below 1, and nothing was sent when it reached 1: the glyph kept 0.5. A mesh already gets opacity 1 back on a frame that leaves the column out (a render's keyed column says 1 there); LiveScene::diff now does the same for a glyph. The title's `pop` had the same fault, and caused the small differences from frame 5.
Test: runtime/scene's a_faded_glyph_is_opaque_once_done fails before the fix (no opacity sent) and passes after. bench/live-3d/check.sh adds bevy/text3d: 12/12 pass, all 72 frames equal between the routes (frames 5-71 differed before). The fast path needs no change, since it hands glyph rows to the full path.
bevy/text3d, live route, ms a frame before vs after, back to back: 13.8/12.9/12.8 vs 13.1/12.7/13.2.
kept-mount and kept-unmount drew the cube with hard edges on the live route from frame 10, where it mounts: the live camera spawns before any 3D part, so spawn_camera's has_3d check left MSAA off, while the program route's camera sees every frame's rows at load and turns it on. Engine::set_rows now calls raea_sys_post::msaa_for_3d, which turns MSAA on for a 3D camera once its rows have 3D, under spawn_camera's own rule (not with ssao, aa, outline, frame_looks or passes, not in preview).
bench/live-3d/check.sh adds both cases: 11/11 pass, every frame equal between the routes (frames 10-19 differed before, program 158 vs live 216 at the cube's edge).
kept-mount, live route, ms a frame before vs after, back to back: 26.9/23.0/23.7 vs 24.5/21.6/22.6.
LiveScene's camera row now lists every panorama shown so far (runtime/look's env_shown: the list last sent, then this frame's if new), with env_i pointing into it, and sends env_srcs when the list grows. Engine::set_rows hands a live frame's rows to raea-sys-environment's live_rows. It makes and bakes a new panorama at the first one's face size (grow, which shares panorama() with the load's environment()), then keeps updating until the new light is filtered, so the frame of the cut isn't lit by empty targets. Those updates draw nothing and step no time: the time strategy is held at zero and put back. A camera that had no panorama gets its whole environment the same way. The code sits in raea-sys-environment and raea-runtime-look because raea-render and raea-runtime-scene are at their 2000-line limit.
bench/live-3d/check.sh adds bevy/environment and material-field-0 (c0fd55f43): 9/9 compositions' per-frame hashes are identical between RAEA_3D=program and RAEA_3D=live with RAEA_LIVE3D_CHECK=1, where the raea before this differs on 30 of environment's frames. bevy-ts check.sh: 92 pass, 1 open (shader-character, open before).
fps, bevy/environment rendered live back to back, three runs each: 19.0, 19.2, 19.7 ms a frame before, 20.6, 18.7, 20.6 after (the second panorama decoded and baked once at the cut, which live play skipped before). The program route doesn't take this path.
material-field-0, red at the cube's centre on frames 0, 1, 5, 10, 20, 29: the program route was 216, 49, 49, 49, 49, 49 and now draws 215, 206, 165, 101, 14, 14, the same as live play. That's the ramp Bevy's emissive * mix(1, exposure, weight) gives the rows' eased track. At frame 20 the cube is the black base's specular (14, 9, 10), not grey. The grey (50, 48, 49) that control.feature FC1c recorded was this bug, and the case comments now say dark. The probes (r>150 at 0, r<80 at 20 and live) pass as before. A unit test (a_material_row_sets_only_its_fields) checks that a patch keeps the emissive and base colour; it fails on the old patch with emissive black and base white. bevy-ts check.sh: 92 pass, 1 open (shader-character: its body.glb has no joint it names, open before this too).
fps, material-field-0 back to back, three runs each: 21.9, 16.9, 23.0 ms a frame before, 22.2, 21.7, 17.4 after.
Gaps found and patched. An empty Text is parley's empty line: bevy_text leaves its empty span out, so parley lays out nothing in its default style, 16 px high and 0 wide whatever the Text's font. text_input's empty output box was 16 px short without it (0.959). EditableText takes max_characters, filter (EditableTextFilter) and read_write_mode (TextReadWriteMode; Static draws no caret, as bevy_ui_render's extract skips it). The first two act on typing, so a starting text past them is kept, as Bevy keeps it. multiple_text_inputs: TextEditChange fires as EditableText::new sets the text, so the "value" boxes show each input's text from the start; of the two AutoFocus inputs the later one holds the focus, and update_row_border_colors dims the others (SLATE_300.darker(0.75)).
Mutants: the bar fails a missing caret in multiline (and the probe counts 1618 px off, not 1402), 7 for 8 visible lines, a Left setting, no "value" text, focus on the first section, darker(0.5) borders, visible_width 9, a non-empty output and a 240 px IME box or a serif output. It passes a missing caret in editable_text_filter (SLATE_700 on DARK_SLATE_GRAY is low contrast), but a pixel probe at the caret (x 530 to 535, row 360) matches Bevy's srgb(51, 65, 85) exactly, which the mutant leaves as the background. It also passes 6 px padding (1904 px off, not 0) and an 8 px scrollbar (7361, not 1402). Dropping read_write_mode changes nothing here, as it should: only Static hides a caret, and the Static row has no focus. All 61 ui ports pass. conformance/feathers.test.tsx (EditableText's new props, the empty Text).
The hook is useSyncExternalStore over a small store of answers by ticket (an answer comes once and never changes, so a reader gets the same object each time, and it outlives the Engine's queue of the last few hundred). It subscribes to its Clock's tick (clock.tsx's onClockTick) only until its answer is in, and only the components that read an answer render again. world.answer(ticket) stays the plain read for code outside React, through the same store. The three cases read their answers with the hook. Under RAEA_3D=live they're now green from frame 1 on, and the program route is unchanged (green from frame 0). Frame 0 can't match in one pass: the calls name parts ("cube") that exist only once frame 0 has rendered, so the program's frame-0 answers were the double step's. raea-bevy's limits.md now points agents at the hook.
bevy-ts check.sh: world-render, world-host and live-world pass (default route; live-world in live play). fps, world-render back to back with the case before and after, three runs each: 7.1, 6.7, 6.8 ms a frame before, 7.0, 6.9, 7.5 after.
The shadow: a node with a box shadow is marked data-raea-bevy-shadow with its BoxShadowSamples (new, @bevy bevy_ui_render::BoxShadowSamples, 4 unless a <BoxShadowSamples> above sets it). raea's Blitz spreads its outer shadows by bevy_ui's rule (width + spread, height and corners by the same ratio) and paints each from a CPU bitmap of box_shadow.wesl's rounded-box shadow: across, the exact erf integral; down, the Gaussian summed in SAMPLES steps over 3 deviations each side, clamped to the box; on the quad of the shadow's size plus 6 blur radii. Vello's analytic shadow is a different approximation of the blur, so it is no longer used for bevy_ui nodes (CSS box-shadow is unchanged).
The bar is blind to a soft shadow: spread 15 -> 12 or 14, blur 10 -> 8 or 9, samples 6 -> 4, x offset 20 -> 18 and alpha 0.8 -> 0.7 all pass it. A pixel probe over the shadow (crop 260x260+580+280, max difference) tells each from the real port: the real port differs by at most 1 level, the mutants by 2, 4, 1 (samples 4: Bevy's own 4 and 6 differ by about that), 6 and 14; samples 6 -> 1 fails the bar. All 56 ui ports rerun: they pass, overflow_transform (0.99543) and feathers_gallery (0.99561) among them. image_node_resizing's camera index is 430 again: registering this example put one more startup entity in the parity host (454 -> 455), and its comment now says how to tell.
The parity host's build.rs makes an example's #[path] modules absolute and its `use crate::` a `use self::`, since the example is a module of the host (box_shadow takes its helpers that way).
bench/background-clip-text/check.sh adds scrolled.tsx: a plain scroller and a text-clipped one, each scrolled down a line. Only "Three" reaches past x 112, so a strip at x 112-140 tells the lines apart. The raea before this fails both of the plain scroller's strips, and the raea with it passes all of them.
fps, the same 120-frame scrolled.tsx back to back, three runs each: 4.7, 4.0, 4.5 ms a frame before, 4.5, 4.4, 4.0 after (about 230 fps both; the change removes a subtraction).
The gallery brought four gaps, now patched rather than skipped:
- Okhsla: bevy_color's Okhsla (in f32, as Bevy computes it), and Okhsla gradients sampled from okhsl's mix, which CSS has no space for. An Hsla track keeps its stops' hues, so the hue slider runs the long way back to red as Bevy's does.
- A spreading BoxShadow: bevy_ui widens the shadow by the spread and scales its height and corners by the same ratio. The spread is now sent, and a node marked data-raea-bevy-shadow is spread by that rule in raea's Blitz (vendor/blitz-paint box_shadow.rs, unit tested).
- A translucent border blended over the node's own background. Bevy draws the background inside the border only, so the border blends over what lies under the node. Feathers' disabled switch slide showed it.
- The alpha checkerboard and the colour plane are UiMaterials in Bevy. raea has no UiMaterial yet (FC2), so the checkerboard is a tiled conic gradient centred on the node, and the plane is a bitmap of color_plane.wesl's formulas.
Where Bevy 0.20 itself differs from its intent, the port draws what Bevy draws:
- The list view's scrollbar never finds its scroll area (#inner, passed through the scrollbar's props, resolves to no entity), so Bevy draws its track and no thumb, and keeps the gutter.
- The hex field's InheritableFont { font: MONO } never reaches the input's own text, so it shows in feathers' regular face.
ui/images/image_node_resizing's camera index moves to 429: every example's Bevy run now has one fewer startup entity in the parity host, and this port is the only one that names an absolute index.
Probes caught all 11 gallery mutants, against 4 for the bar alone: the swatch's opaque part, the checker's phase and colours, a mirrored thumb, a lost middle stop, a flat alpha track, swapped plane axes, the plane's fixed channel, the list track, the border blend and the colour input's size. All 55 ui ports pass again.
- A spot's cone (inner, outer) wasn't sent after its first frame. On 3d/spotlight, live scored SSIM 0.94 against Bevy's own frame 20, the program 0.99.
- A zero scale's rotation came out NaN and was sent again every frame, since NaN never equals itself. It is now the identity, or the frame before's in the program.
- The fast path sent a bulb's place as the World's f32, where the program rounds it to 6 decimals.
- Live frames sent only the camera's place, look, fov, focus and ambient. They now send every column a render keys (cam_keyed: a roll's up_*, the view window, sky and environment, aberration, depth of field, lens, motion blur, paint). Both live paths build the camera row with the program's own camera code (camera_row, camera_diff); the fast path's copy of it is gone.
- Colour columns were rounded to 6 decimals, while a hex colour is its byte over 255, so a part whose colour ever changes drew a hair off on every frame until it did. They are exact now, in the program too.
- The fast path kept glam's sign for a rotation where the full path takes the identity's side. That's the same matrix, but RAEA_LIVE3D_CHECK=1 refused it.
Test: bench/live-3d/check.sh renders seven compositions both ways (live with RAEA_LIVE3D_CHECK=1) and requires identical hashes. It fails five on the build before this and passes all seven after. bench/at-3d/check.sh still passes. The wider run: 144 of 155 identical. The other 11 (the Engine's World cases, material fields, environment, text3d, kept mounts, volumetric glass) are #38, so a full render still makes its rows beforehand and still steps twice.
fps: live play's frame cost is unchanged. #26's 360-frame, 200-mesh scene rendered live, before and after, back to back in three rounds: 20.5/20.5/20.3 vs 20.1/20.5/20.2 ms a frame.
Test: bench/background-clip-text/check.sh draws "Gradient" three ways: with background-clip, with -webkit-background-clip alone, and through a block inside the clipped one. The G's stem must be the gradient's pink, and the box beside and above each word must be the page's #111, as Chrome 148 gives them. Before: 6 of 10 pixels failed (the gradient box). After: PASS. TSX's backgroundClip and WebkitBackgroundClip, and an inline <span> inside, also match Chrome by eye.
fps, the same 300-frame page with three clipped lines, before (17:54 build) and after, back to back in three rounds: 493/542/533 vs 518/599/489 fps incl. encode, no cost beyond the noise.
raea-sys-page is at its 2000-line limit (tools/size.sh), so the test of an SVG <text>'s attribute names leaves ops.rs.
In raea-runtime-page it takes the path a composition's frames take: the walk's Wants (the <text> with `$ns`), then
Tree::diff, whose second frame sends only the changed fontSize and textAnchor, then ops::apply. It fails without the
ops.rs change: the update adds fontsize and textanchor beside the stale font-size.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The composition walk never said `$ns: "svg"` for the three SVG tags HTML also has, so inside an <svg> they became
HTML elements and their camelCase attributes were lowercased (textAnchor to textanchor, fontSize to fontsize), which
usvg doesn't know. The walk now tracks whether it is inside an <svg> and not back in HTML under a <foreignObject>
(IN_SVG, beside IN_3D), and gives those three `$ns: "svg"` there, as sdk/ui's host does. An update in ops.rs also
treats a node as SVG's when its element is in SVG's namespace, so an animated fontSize keeps `font-size` on every
frame, on sdk/ui's path too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
How: gpuview's direct render has an RGBA mode (GpuView.rgba): its three-deep readback ring copies the composite itself (RGBA8 premultiplied) instead of making NV12, so a PNG costs no extra pass. runtime/encode writes each frame straight-coloured (straight(), the engine path's un-premultiply, now shared). RenderOpts.alpha (apps/media's --alpha, refused for video) sets the page's canvas row to #00000000; the camera's clear colour was read as RGB with alpha forced to 255, so a clear canvas came out black. runtime/view's camera_bg reads #rrggbbaa, premultiplied, for gpuview and cpuview (one function where each had its own copy). The help and cli.md say OUT.png and --alpha for PAGE.html.
Check: bench/html-png/check.sh (a half-opaque red box sliding over an empty canvas): -o DIR --at 0,29 writes two PNGs, and the box moved between them; -o DIR into a folder that's there works; -o OUT.png --at 29 is byte-identical to the folder's frame 29, and -o OUT.png is frame 0; opaque, the canvas is white and the box pink (255,127,127); with --alpha the canvas is 0,0,0,0 and the box straight red at half alpha (255,0,0,128); --alpha to an MP4 is refused. It fails on the raea before this and passes on this one. bench/html-repeat, bench/frame-panic and bench/dropped-css still pass.
Video is unchanged: bench/html-repeat to .txt gives identical hashes for all 270 frames before and after. fps to MP4, seven alternating rounds on a shared, busy machine (the "before" build is about an hour older, with other lanes' changes): median 181 before vs 170 after, ranges 165-202 and 159-198, no difference beyond the noise (closes#32)
Dropped CSS: stylo drops what it can't parse silently unless a ParseErrorReporter is passed, and blitz-dom passed none, so a render printed APPLIED over a picture missing some of its code. vendor/blitz-dom/src/not_applied.rs is that reporter, passed at every author parse (stylesheets and @imports in net.rs, <style> in document.rs, style attributes in node/element.rs, CSSOM in cssom.rs; never the user-agent sheet). It keeps each drop once per property and selector, never its value ("-webkit-text-stroke in .outline", "... in a style attribute"), since a style attribute is parsed again on every frame it changes. FileNet's loads that fail join the list ("the file ... (it didn't load)"). The render prints it once after APPLIED (engine/cli for TSX, apps/media for HTML) as "NOTE the page didn't apply N things, and is drawn without them:", one per line, at most 20, and --manifest gets it as not_applied. RAEA_NOT_APPLIED=0 parses as before (docs/settings.md), for measuring.
Vendored stylo change, to upstream later: report_one_css_error (properties/declaration_block.rs) returned before reporting any unknown property with a -webkit-, -ms- or -o- prefix, which hid the reporter's main case, -webkit-text-stroke (Gecko-only in stylo, drawn as nothing). It reports them now, and raea's reporter skips the prefixed properties that change nothing in a picture (text-size-adjust, tap-highlight-color, font-smoothing, appearance, user-select and the like), so Tailwind's preflight adds no lines (a Tailwind page with gradients, rings, blur and truncate printed no NOTE). A value error is also named by the property stylo parsed, with the value after it. vendor.toml says both.
Noise: Bevy's bevy_asset::io::web and io::source warnings (printed by every render) and fontdb's skipped faces (system fonts it can't parse, which the reporter saw on Windows; a missing @font-face file, which the NOTE names) are filtered at both LogPlugins (engine/page motion.rs, engine/render open.rs). io/trace's `log` logger, which every third-party `log` record goes through, prints only warnings and errors now, and not fontdb's (Bevy's Ctrl+C handler printed two INFO lines on every render); every record still goes to the trace's events.jsonl.
Check: bench/dropped-css/check.sh renders the reporter's page as TSX (30 frames, its outline moving so its style attribute is parsed each frame) and as HTML. Each must exit 0 and print one NOTE naming -webkit-text-stroke and the missing font once each, with no INFO line and no bevy_asset or fontdb warning, and the TSX render's manifest must list both under not_applied. It fails on the raea before this (no NOTE) and passes on this one.
fps, one build with the reporter on and off (RAEA_NOT_APPLIED), seven alternating rounds on a shared, busy machine: the worst case (bench/dropped-css's page at 600 frames, dropping a declaration on every frame) median 516 on vs 479 off; bench/html-repeat median 202 on vs 172 off. No cost shows above the noise (min to max spans 315 to 620). (closes#34)
- GlobalUiDebugOptions, and a node's own ui_debug (UiDebugOptions, which replaces it): Blitz draws each enabled node's outlines after the whole document, above every UI node as bevy_ui_render's extract_debug_overlay keeps them (vendor/blitz-paint render/bevy_debug.rs).
- An outline is a ring of line_width inside the border, padding or content box, following the corners' radii.
- It is cut by the ancestors' overflow unless show_clipped.
- Its colour is Hsla::sequential_dispersed of a debug_color_index, which Bevy takes from the entity's index, unless line_color_override.
- The port's indices are setup's spawn order from the camera's entity, 430, the one base whose colours match all four outlines measured (container, column, group and the 40% image). The text's observer is allocated later, when the commands apply.
- ImageNode's Auto now draws the picture contained in its content box, its aspect kept, as Bevy does; it was filled. Stretch gives the node no picture size and stretches the picture over its content box.
- The other image and UI ports keep their scores.
Probes:
- Every outline pixel along column 900 and rows 156 and 158 matches Bevy's exactly, colour and place (947 along the group's top edge).
- The first Auto icon's anti-aliased disc edges match Bevy's pixel for pixel.
Mutants:
- Base 431 fails the bar (0.9465).
- Stretch as Auto fails it (0.7387).
- The outlines drawn in reverse order fail it (0.9779) and the probe.
- Auto filled instead of contained passes the bar; the icon-edge probe catches it.
Test: conformance/ui-debug.test.tsx (the hues, global and own options, UiScale, refusals) and the ImageNode modes in ui.test.tsx.
- ScrollPosition (Node's scroll_position): scrolls only a Scroll axis. Blitz keeps it in the scroller's range once layout has its content and floors it to whole physical px, as bevy_ui's layout does (vendor/blitz-dom bevy_scroll.rs, from resolve).
- IgnoreScroll (ignore_scroll): Blitz moves the node back by its parent's scroll on those axes.
- Scrollbar (target by a Node's new `name`, orientation, min_thumb_length) is a Node track. ScrollbarThumb isn't laid out: after layout, Blitz sizes and places it in the track from the target's size, content and asked ScrollPosition, as update_scrollbar_thumb's size_and_pos does.
- The page bridge keeps the new attributes (data-raea-bevy-scroll, -ignore-scroll, -scrollbar, -thumb).
- UiScale is now CSS zoom, not a transform of a logical layout. Bevy lays the UI out and shapes its text in physical px, so a 3 px padding at 1.25 is 4 px; scaled-up text sat about 1 px low. A sliced ImageNode's corner limit and tile stretch take the scale with it (ui_texture_slice_flip_and_tile is pixel-exact).
Tests:
- conformance/ui-scrollbar.test.tsx and the UiScale test.
- blitz-dom's bevy_scroll unit tests: thumb maths and the track attribute.
Mutants:
- No ScrollPosition fails the bar (tile 82).
- Thumbs not placed fails it (tile 44).
- UiScale as a transform fails it (tile 37).
- A thumb that ignores the offset passes the bar. A pixel probe catches it: rows 41-157 against Bevy's 49-165, where the real port matches Bevy exactly (49-165, and 4-240 across).
The other UiScale ports keep their scores.
raea-runtime-dom's commits pass through a split (set_split), where raea-rune-layer's Router takes each layer's ops out of the batch in the JS's order, the slot standing for the layer page's root; a page that never makes a slot isn't routed. raea-rune-slots keeps each layer as a raea-rune-page Page in a raea-rune-bevy Tree (its new before_frame hook takes the routed ops), sized each frame to its slot's content box at the page's scale and shown there through ElementImages. Pointer input reaches it through the slot twin's picking events, a held press capturing the pointer as setPointerCapture does; its page's events reach the root's JS (deliver_to). raea-page-host adds it (RAEA_RUNE_LAYERS=0: all Blitz). Said, not dropped: a move between the page and a layer, and that a layer's elements aren't in the layout snapshot. vendor/rune-taffy: Rune and Blitz in one build need taffy's flexbox_balance arms in encode_wrap. Tests (engine/rune/slots/tests/slot.rs, through the page host): the slot's subtree is the layer's and not Blitz's, the layer is the slot's size and shown there, a press reaches the page's JS, and a press released off the layer still ends there; mutants without the split, the deliveries or the capture each fail one. The skill says how to use <RuneLayer> and what it doesn't do yet.
UI. raea's Blitz draws CSS border-image (css-backgrounds-3: slice, width, outset, fill, and stretch, repeat, round or
space per axis), loading border-image-source as a third image layer beside backgrounds and masks. ImageNode's
image_mode { Sliced: TextureSlicer } is that border-image, and data-raea-bevy-slice gives Blitz bevy_ui's own rules: the
corners are the slices times min(the node over the picture, max_corner_scale), and Tile tiles a part from its start
every slice times stretch_value. A flipped sliced picture is mirrored on a layer behind its children. An ImageNode's
image can carry its own sampler ({ path, sampler: { filter } }). UiScale lays its roots out in a window 1/value of the
frame and scales it up. Node takes overflow_clip_margin, which Blitz honours for every clipping overflow as bevy_ui's
resolve_clip_rect does. The page bridge resolves url(..) in a style value (a background, a border-image) as it does
an img's src, which no CSS picture did before.
2D. Shape2D and Mesh2d's ColorMaterial take a texture with its own sampler (raea-sys-sampler) and a uv_transform
(Affine2). Text2d places a Text at its Transform, centred as Bevy's Anchor::CENTER. The shape2d row carries the sampler,
the uv_transform and the vertex colours as JSON in one loop, which keeps raea-runtime-scene under 2,000 lines.
Ported, each with a mutant that fails:
ui/images/ui_texture_slice_flip_and_tile 1.0000 (stretched instead of tiled 0.7857, unflipped 0.8360)
ui/images/ui_texture_slice 0.9990 (corner scale halved 0.9800)
ui/scroll_and_overflow/overflow_clip_margin 0.9968 (without the margin 0.9890, tile 120)
2d/mesh2d_repeated_texture 0.9912 (no uv_transform 0.9420, no sampler 0.9666, Text2d not centred 0.9789)
ui/layout/flex_layout 0.9909 (a Center row as FlexStart 0.9463)
58 of 61 ported pass; many_lights, many_foxes and transparency_3d still fail, as before.
The cutover's first commit should have carried this file: the split moved it to .github/workflows/ci.yml, then removed
raea-dev's own CI at the same path along with the private paths. Every pull request and push to main now runs the
names-and-secrets guard, the repo-wide gates and cargo check --locked of raea-cli.
Landed in raea through the private development repository with JimGHTB12 as author (a later export). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Landed in raea through the private development repository with JimGHTB12 as author (a later export). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Landed in raea through the private development repository with tobitege as author (a later export). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Landed in raea through the private development repository with knowsuchagency as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Landed in raea through the private development repository with kumanday as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Landed in raea through the private development repository with kumanday as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Landed in raea through the private development repository with kumanday as author (export 1dff4f0). This merge brings the original commits into this repository's history so they're credited here; it changes no files.
Three Windows bugs stopped `raea play` before its first frame:
- raea-io-home: home() canonicalized the tree it came from, which on
Windows gives a verbatim \\?\C:\ path. The lite entry imports
bevy-react's bridge.ts by that path, and Rolldown can't resolve it
("Could not resolve '\\?\C:\...\bridge.ts'"). home() now drops the
prefix before a drive path, as src() already did.
- raea-bundle: EditResolve canonicalized its folders the same way, so no
importer (named without the prefix) was ever under the work folder. A
live game's own `import "react"` went to the engine's React instead of
the live runtime its tsconfig paths name: "not a function" at the
first frame.
- raea-runtime-bundle: the work folder's node_modules link was made on
Unix only, so lite/parts' ../../node_modules/bevy-react/src/bridge
resolved nothing on Windows. It is a junction there now (no rights
needed, as raea-io-npm links packages), removed before the work folder
so the engine's packages are never touched.
Each has a regression test that fails without its fix.
A patch strobing while its background dimmed could leave the saved extreme stale, because the
window's mean outweighed the patch. Extremes now advance on the pixels that are swinging. And a colour
crossing the saturation line by one level read as a jump from zero; red's value now runs on through
the line, and a change counts when either end of it is saturated. Both found by the Codex review
on this PR.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
raea check said "nothing to fix" on a render of six full-frame white flashes a second.
Flashing like that can cause seizures, and nothing in the floor looked for it. The new rule
counts pairs of opposing changes in the same pixels, in overlapping windows a third of the
frame wide and high, for general and saturated-red flashes, and fails past three a second.
Every decoded frame counts on its exact timestamp. A file FFmpeg can't decode is refused and
decode errors are a finding, rather than either reading as clean. It's a screen, not a
certification, and it says so.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A stream's duration is a length, not an end time. With video starting 2 s after the sound, a 6 s
freeze at the end read as 4 s, which drops it from P1 to P2. FFmpeg's filters count from the file's
first stream, so the picture's end is now its start relative to that plus its length. Found by the
Codex review on this PR.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
gpu-allocator 0.28 accepts windows 0.53 to 0.62 and was resolved to 0.54
(the one cpal and gilrs-core pull in), while wgpu-hal 30 hands it
windows 0.62 types: `cargo build -p raea-cli` on Windows failed in
wgpu-hal's dx12/suballocation.rs with ten "expected ID3D12Device, found a
different ID3D12Device" errors. gilrs-core (windows 0.44 to 0.62) moves
to 0.62 with it; cpal 0.15 keeps 0.54.
FFmpeg's freezedetect logs freeze_duration when the picture moves again, so a
freeze still running at the last frame has only a freeze_start. The rule counted
a freeze when it saw the duration, so a film frozen to its end passed with "nothing
holds still". Footage that runs out before the composition ends looks like this.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lockfile updates within the existing version ranges, found by checking
the lockfiles against RustSec and the GitHub Advisory Database:
- tokio 1.54.1, rustls-webpki 0.103.16, webpki-roots and
webpki-root-certs 1.0.11, zstd 0.13.4 / zstd-safe 7.4.0
- wasmtime 48.0.8 (root lock and engine/sandbox/wsx), wsx now asks for
48.0.8 at least
- ruzstd 0.9 in raea-io-assets, with bevy_image 0.20.1 (and the Bevy
crates it needs at 0.20.1), so one ruzstd builds again; bevy stays
pinned at =0.20.0
- sdk/shell: undici 7.30.1 through an override (just-bash 3.6.0 pins
guarded-fetch 0.1.3, which pins undici 7.29.0)
`raea check` flagged its-a-race at 13.36 s ("the lows: a steady sound at
-0 dB stops dead") on both the Metal and llvmpipe exports. Nothing is cut
there: it's mid-segment, the mix follows race.wav at a constant +11.5 dB
through it, and the speaker ends "AI became a thing." and pauses. Dense
speech's lows held within 2.6 dB (the steadiness limit is 3), fell 12 dB
in one step and stayed down, so the rule took the voice for a cut bed.
- dead_stops: a stop now has to start from the bed's level (within 6 dB
one or two steps before) and be gone by the next step (DROP under the
bed). A word's tail comes back up after its first drop; a cut source
doesn't. This also stops it flagging the last step of a 100 ms fade.
It only adds conditions, so it finds nothing the old rule didn't.
- levels: the bands were 10*log10(|X|^2/N), about 16.5 dB over dBFS
(hence "-0 dB" for lows at about -17 dBFS). They now read mean square
through Parseval and the Hann window's power, so a tone reads the same
in its band as in the mix. The band floor goes from -65 (old scale,
about -81.5 dBFS) to -80 dBFS.
- The message says dBFS and names a fade long enough (100 ms) for a bed.
- Tests: the real 10 ms levels of its-a-race at 12-14 s (not flagged, and
a bed cut under that voice still is), a cut partway through a step,
a 100 ms fade, and bands in dBFS. The old code fails all three new
assertions.
Claude-Session: https://claude.ai/code/session_01LJ21XqsPxtVd2swKwbVMa7
A frame or a folder of PNGs kept transparent where the composition draws nothing, for an overlay in another
editor's timeline. Three places made every frame opaque: the program's camera cleared to black, composite.k
packed alpha 255, and the PNG writer took the composite as it came. Now --alpha clears to #00000000,
composite.k (and composite_tex.k, both from gen.py) carries coverage through the clips and the overlay and packs
it, and the PNG folder writer makes the premultiplied composite straight. Over an opaque background every new step
keeps alpha at 255, so renders without the flag are the same pixels as before. A video output with --alpha is
refused with the ffmpeg line that makes ProRes 4444 from the folder.
Every HyperFrames page registers its timeline with window.__timelines["main"] = tl. HyperFrames' runtime makes
that object before the page's scripts run; raea's didn't, so each such script threw at that line and the page
never moved. And a page whose <head> styles name [data-composition-id=...] in a selector was sized from that
selector (no data-width there, so 1920 x 1080) instead of its root element.
A still (--frame, --at, a PNG folder) first stepped React through every frame of the composition to find 3D,
even for a piece with none: 16 s before an 80 s film's single still, against ~2 s for the frame itself. The
frames asked for are now looked at first, each on its own (frames are pure); when none shows 3D their render
needs no rows and the pass is skipped. A still with 3D steps the timeline as before.
2026-11-05 04:23:09 -05:00
3025 changed files with 546751 additions and 11112 deletions
"description":"Make video, motion graphics, games and 3D scenes with raea, the Render Anything Engine: the raea skill, and hooks that run raea's quick check on a composition after it's saved and show media in the raea app instead of the Mac's viewer."
"description":"Make video, motion graphics, games and 3D with raea, the Render Anything Engine: write raea compositions, render them on the GPU, check the frames.",
if [[ $TAG == v* ]]; then install=$'\n\nInstall or update: `curl -fsSL https://raea.io/install | sh` (macOS, Linux), or `irm https://raea.io/install.ps1 | iex` (Windows).'; fi
notes="$BODY"
if (( ${#notes} > 3500 )); then notes="${notes:0:3500}"$'…\n\nThe full notes are on GitHub.'; fi
payload=$(jq -n --arg ping "$ping" --arg tag "$TAG" --arg name "${NAME:-$TAG}" --arg url "$URL" \
--arg notes "$notes$install" --arg kind "$kind" --arg role "$ROLE" '{
content: "\($ping)raea \($tag) is out (\($kind)).",
gh release view "$tag" >/dev/null 2>&1 || gh release create "$tag" --prerelease --title "FFmpeg $v for Windows (LGPL), as raea ships it" \
--notes "FFmpeg $v cross-built for Windows x64 by tools/release/ffmpeg-win.sh: static, FFmpeg's own code, zlib and libvpx's decoders (BSD), LGPL 2.1 or later; its H.264 encoder is Windows' own (Media Foundation). Its complete source is ffmpeg-$v.tar.xz (with FFmpeg's signature), the libvpx tarball and ffmpeg-win.sh, attached here. raea ships it beside raea.exe on Windows and fetches it where it isn't."
if gh release view "$tag" --json assets -q '.assets[].name' 2>/dev/null | grep -qx "$tar"; then
echo "$tag already has $tar"; exit 0
fi
bash tools/release/git-sources.sh out
cp tools/release/git-sources.sh out/
gh release view "$tag" >/dev/null 2>&1 || gh release create "$tag" --prerelease --title "Git for Windows ($t) sources, as raea's Windows app ships it" \
--notes "The complete corresponding source of the Git for Windows (dugite-native $t) that raea's Windows app ships in its git folder: each package of its etc/package-versions.txt as the source package it was built from, from Git for Windows' pacman repository or MSYS2's source mirror (SOURCES.tsv inside says which), collected by git-sources.sh, attached here. raea runs Git as a separate program."
ctt-bc7enc-rdo-prebuilt 0.5.0 ships no licence file of its own. Its Cargo.toml declares (MIT OR Apache-2.0) AND Apache-2.0, by The ctt developers, Rich Geldreich <[email protected]>.
---- Apache-2.0: the text is LICENSES/texts/Apache-2.0.txt ----
---- MIT ----
Copyright (c) The ctt developers, Rich Geldreich <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ctt-intel-texture-compressor-prebuilt 0.5.0 ships no licence file of its own. Its Cargo.toml declares (MIT OR Apache-2.0) AND MIT, by The ctt developers, Traverse Research <[email protected]>, Graham Wihlidal <[email protected]>, Intel Corporation.
---- Apache-2.0: the text is LICENSES/texts/Apache-2.0.txt ----
- **Agent skills.** They live in [raea-skills](https://github.com/shinyobjectz/raea-skills), pinned here as
[`skills/`](skills): `raea` teaches an agent to write, render and check raea compositions, 3D and games
included. The installer adds it to `~/.claude/skills`, and `raea skills install --agent NAME` to other agents.
- **Claude plugin.** The raea skill and two hooks (raea's quick check after a composition is saved, and media shown in
the raea app). In Claude Code: `/plugin install raea --marketplace shinyobjectz/raea-skills`. It's the `skills/`
folder of raea-skills, and `/plugin marketplace add shinyobjectz/raea` installs the same one.
- **Craft guides.** `raea guide` prints the floor every edit is held to and the guides for pitches, explainers, stories,
games, motion, music and layout. `raea context PROJECT` says what to read before working on a project.
- **Bug reports.** When an agent finds a bug in raea itself, `raea bug TITLE --text TEXT` sends it to raea's server
with raea's version and the OS, no account needed. It sends words only: paths, emails and keys are taken out before
it goes, and `--dry-run` prints what would go.
## Build from source
Requirements: [Rust](https://rustup.rs) (stable) and [bun](https://bun.sh). On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig and Vulkan libraries.
Requirements: [Rust](https://rustup.rs) (rustup reads the pinned version from rust-toolchain.toml), [bun](https://bun.sh)
and CMake. On macOS, Xcode's command-line tools; on Linux, the ALSA, fontconfig, udev, xkbcommon (with its X11
part, which the app targets' windows also load at run time) and Vulkan libraries and NASM (Ubuntu: `cmake ninja-build
nasm libasound2-dev libfontconfig1-dev libudev-dev libvulkan-dev libxkbcommon-dev libxkbcommon-x11-dev`), as public CI
description="`raea export capcut`: a composition as a CapCut draft ready in its timeline, written from its layers (raea-app-layers: footage and sounds as clips of their files, the graphics, captions and what is under the footage as movies; docs/capcut.feature, docs/layers.feature LA4b)"
notes.push(format!("{name} (frames {}-{}): what of it is cut changes over its run, and CapCut's crop holds: cut as its first frame shows it throughout, its moves and fades keyed",c.start,c.end()-1));
}
// its own sound at its gain, or silent: the composition doesn't play its sound there
//! `raea export capcut EDIT.tsx` (docs/capcut.feature CC2, docs/layers.feature LA4b): the composition as a CapCut draft
//! ready in its timeline. And `raea render ... -o OUT.mov --alpha` (CC1), the transparent movie its overlays are, for
//! any editor. The composition is exported in layers first (raea-app-layers: the reference render and its manifest,
//! the graphics, captions and what's under the footage, layers.json); layers.json is then written as CapCut's tracks
//! (from_layers.rs) and raea-io-capcut writes the draft, with the reference render copied into its folder.
modfrom_layers;
modmedia;
pubmodplan;
#[cfg(test)]
modtests;
usestd::path::{Path,PathBuf};
useraea_app_layers::many;
useraea_io_capcut::Kind;
useraea_runtime_bundle::flag;
pubtypeR<T>=Result<T,String>;
pubconstUSAGE: &str="raea export capcut EDIT.tsx [--composition ID] [-o DIR] [--name NAME] [--alpha-codec prores|hevc|rle|png] [--no-register] (the composition as a CapCut draft ready in its timeline: its footage and sounds as clips of their own files at their trims and gains, everything raea draws as transparent overlay clips above them; the captions on a track of their own above it; into CapCut's projects, entered in its project list while CapCut is closed, or a draft folder in DIR; the reference render copied into the draft's folder, and it and the layers kept in out/capcut/NAME)";
/// `export capcut ...` (or what export takes), and `render ... -o OUT.mov --alpha` through `render`, the CLI's own;
other=>Err(format!("raea export takes where to export to{}: capcut, layers or xml\nusage: {USAGE}\n{}\n{}",other.map_or(String::new(),|o|format!(", not {o:?}")),raea_app_layers::USAGE,raea_app_layers::USAGE_XML)),
}),
Some("render")=>movie(args,render),
_=>None,
}
}
/// `render ... -o OUT.mov --alpha`: the frames as transparent PNGs, then one movie of them, the overlay an editor lays
/// over footage (raea-io-alpha, docs/capcut.feature CC1); None for any other render.
lets=raea_io_capcut::store_root().ok_or("CapCut keeps its projects only on a Mac or Windows: -o DIR writes the draft folder anywhere")?;
if!s.parent().is_some_and(Path::exists){
returnErr(format!("CapCut hasn't kept a project on this machine ({} isn't there): open CapCut once, or write the draft folder with -o DIR",s.display()));
returnErr("CapCut is open: it rewrites its project list when it quits, which would drop the new draft from it. Quit CapCut and export again, or pass --no-register (the draft lands in its folder, unlisted) or -o DIR".into());
"APPLIED CapCut draft \"{name}\" at {}: {} tracks, {}, {} ({}, {:.1} MB){}{}, {}; {:.2} s at {} fps, {}x{}; {listed}; markers from {}\n the layers, layers.json and the reference render (also in the draft's folder): {}",
Some(count(Kind::Video,"raea captions")).filter(|&k|k>0).map_or(String::new(),|k|format!(", {} ({:.1} MB){}",many(k,"captions clip"),bytes("captions"),layers.srt.as_ref().map_or(String::new(),|s|format!(" and {s}")))),
Some(count(Kind::Video,"raea under")).filter(|&k|k>0).map_or(String::new(),|k|format!(", {} under the footage ({:.1} MB)",many(k,"clip"),bytes("under"))),
many(count(Kind::Audio,""),"sound"),
written.duration_usasf64/1e6,
layers.fps,
layers.width,
layers.height,
markers.from.as_deref().map_or("CapCut 8.5.0 (no draft CapCut made is in the store)".to_string(),|d|format!("the draft \"{d}\" CapCut made")),
work.display()
);
forninnotes{
said.push_str(&format!("\n note {n}"));
}
Ok(said)
}
/// Where CapCut's project list is copied before a draft is entered in it: the person's own folder, ~/.raea/capcut/backups
/// ($RAEA_CAPCUT_BACKUPS; %LOCALAPPDATA%\raea\capcut\backups on Windows, which sets no HOME). Never raea's home, which
/// is its install or, from a checkout, the source tree (11-11: a list's backup landed in the repository).
description="`raea hook`'s hand-over: what the person sent from the raea app, read from the session's inbox once and handed to the agent at its next step"
"raea: the person just sent this from the raea app (your inbox, ~/.raea/inbox/{inbox}.jsonl; marked read, so the app shows it as read):\n{list}\nTake it up now, before going on: it may change what you're doing. What you say next shows under your session in their feed; answer an item with raea show --on ITEM --note LINE, or post the next version with raea show FILE --replaces ITEM."
assert!((p.duration-by_ffmpeg.duration).abs()<0.05&&(p.picture-by_ffmpeg.picture).abs()<0.05,"{} {} vs {} {}",p.duration,p.picture,by_ffmpeg.duration,by_ffmpeg.picture);
out.push((iasf64/fps,format!("{k} frame{} flash{}{} in the middle of a shot; a dropped or stray frame",ifk==1{""}else{"s"},ifk==1{"es"}else{""},ifluma[i]<luma[i-1]{"dark"}else{"bright"})));
i+=k+1;
}
None=>i+=1,
}
}
out
}
/// Each frame's mean brightness (0-1), decoded small and grey
for(rule,found,ok)in[("clipping",clipped(x),"clipping: no flat-topped runs"),("dropout",dropouts(x),"dropout: the sound never drops to silence and back")]{
format!("raea: the raea app is installed here, so show this in it, not the Mac's viewer: `raea show {list}` (several stills make a storyboard; add --ask \"what you want from the person\"; inside the raea app, feed_post does the same). It brings the app's window up on it as an item the person can answer, and their answer comes to the inbox file it prints. If the Mac's viewer really is what's wanted (the person asked for it, or raea show can't), run the same command again and it goes through.")
}
/// The files a tool call saved: `file_path` or `path` (Claude Code, Kimi Code, Gemini CLI), or the files an apply_patch
fornonein["open -a raea","open -a raea out/a.png","open -R out/a.png","open https://x.io/a.png","open notes.pdf","open .","cat a.png","git open a.png","echo open a.png > x"]{
//! [--platform tiktok|reels|shorts] [-o check.json]`: the floor's measurable lines on an export (docs/craft-system.md, I; sdk/guides/craft/floor.md).
//! Each issue is ranked P0 (breaks the piece) to P3 (polish), with where it is and what to do. Rules on the file alone:
//! loudness and true peak, a steady sound that stops dead (a source run out, a cut with no fade), stretches where nothing
@@ -11,7 +11,7 @@
//! rules in their taste.ts files that carry a check (`{ text: "Captions sit clear of the bottom.", check: { form:
//! "text-above", value: 62 } }`), each a P1 when broken, since the person's rule beats the floor's default (docs/craft-system.md, J). Exits 1 when a P0 or P1 is found.
useserde_json::{Value,json};
usestd::collections::BTreeMap;
useraea_core_facts::{Finding,Level,finding};
usestd::process::Command;
modsound;
@@ -20,9 +20,15 @@ mod picture;
usepicture::*;
modflash;
useflash::*;
moddefects;
usedefects::*;
modtext;
usetext::*;
/// a video read through FFmpeg, or raea's own decoders where it isn't installed
useraea_app_check_read::{selfasread,Probe};
pubmodquick;
pubmodhook;
pubuseraea_app_check_inboxasinbox;
#[cfg(test)]
modtests;
@@ -39,35 +45,47 @@ struct Issue {
/// `raea check …` with the person's taste, none or more (taste.ts and the kinds beside it, which the raea CLI evaluates: it owns the engine):
/// its rules' checks hold the export to the person's own lines.
pubconstUSAGE: &str="raea check VIDEO.mp4 [--manifest render.json] [--words W.json] [--perception P.json] [--things T.json] [--shape 16:9|9:16|4:5|1:1] [--platform tiktok|reels|shorts] [--taste taste.ts|DIR] [-o check.json] (an export against the floor: clipped text, contrast, safe areas, freezes, flashing, cues, loudness, blotching, a placeholder brand kit, and with --things what `raea fingerprint things --json` found: a thing floating or passing through another, the camera lurching mid-move, an empty frame; its findings errors, warns and notes)";
/// A rule from the person's taste: a form raea can measure, its value, and the taste line it stands for.
#[derive(Clone, Debug, PartialEq)]
structTaste{
form: String,
form: &'staticstr,
value: f64,
line: String,
}
/// The checks among a person's taste rules (taste.ts and its kinds), each with the line it stands for.
Ok(json!({"hookSpecificOutput": {"hookEventName": "PostToolUse","additionalContext": format!("raea check --quick after this save:\n{}",found.join("\n"))}}).to_string())
}
/// `raea check --quick`'s half (docs/skills.feature SK10): the text rules and the person's text taste on the manifest
/// of a few stills (`raea render EDIT.tsx --at ... --manifest`), no video. What it can't see (contrast, freezes,
/// sound, blotching) waits for the full check on the export.
issues.push(Issue{rule: "clipped",p: 0,at: Some(r.from),says: format!("{q} runs off the frame (box {x:.0},{y:.0} {bw:.0}x{bh:.0} in {w:.0}x{h:.0}); fit it or break the line")});
}elseifr.boxes.iter().all(zoned){
unsafe_+=1;
issues.push(Issue{rule: "safe-area",p: 1,at: Some(r.from),says: format!("{q} sits in the app's UI zone (keep {zt:.0} px top, {zb:.0} bottom, {zl:.0} left, {zr:.0} right clear)")});
letedge=ifiy<zt{format!("the top (keep {zt:.0} px clear)")}elseifiy+ih>h-zb{format!("the bottom (keep {zb:.0} px clear)")}elseifix<zl{format!("the left (keep {zl:.0} px clear)")}else{format!("the right (keep {zr:.0} px clear)")};
issues.push(Issue{rule: "safe-area",p: 1,at: Some(r.from),says: format!("{q} sits in the app's UI zone at {edge}: its {} {ix:.0},{iy:.0} {iw:.0}x{ih:.0} in {w:.0}x{h:.0}",ifr.boxes.last()==Some(&r.box_){"box"}else{"letters"})});
Loaded 100 of 3025 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.