Compare commits

..
991 Commits
Author SHA1 Message Date
shinyobjectz 78897a1539 clef's second opinion on a cut is a list of pointed picture and sound checks, the faults it found first
Asked "do the graphics look designed", clef graded Dutch's plain boxes "strong". Asked pointed yes/no checks of the
same cut it found three of them: three or more text boxes at once (0.93), captions, cards and badges all the same
plain box (0.57), the app shown only as a box of text (0.80). Shane, 12-01: "you just have to have them be more
specific or pointed like giving it some list of design checks to answer ... a few catch all checks on visual and
audio design"; "the agent itself is really responsible for design".
2026-12-01 06:04:42 -08:00
shaneandshinyobjectz 35267727b8 raea goal seen judges a video's design at full size; a project's design is the agent's own (#288)
* raea goal seen judges a video's design at full size, with clef as a second opinion; a project's design is the agent's own within the brand's colours

A contact sheet's tiles show what happens in a cut, never whether its type, captions and cards look good, and it was
the only picture an agent looked at before sign-off. raea goal seen FILE now also writes six frames at full size
(FILE.looks/) and the seen pack holds a video until --look says how its design stands beside a reference. On raea
cloud it prints clef's grades of the whole cut, picture and sound, lowest first, as a second opinion.
A project's AGENTS.md no longer says "never a colour, font or size of your own": the brand's colours and faces are
the palette, and size, weight, shape, layout and motion are designed for the piece.

* skills: raea goal seen's frames at full size and --look (raea-skills #148)

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-12-01 06:02:21 -08:00
shaneandshinyobjectz c72717a635 RAEA_MEDIA=ffmpeg encodes with the system's H.264 encoder where ffmpeg has no libx264 (the LGPL build raea ships on Windows: h264_mf), at the bitrate (#279) (#287)
Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 22:15:21 -08:00
shaneandshinyobjectz 0256cb9673 The AppImage's two pinned tools come from raea's own copy when GitHub's download fails (the runner got HTTP 618 three times for v0.1.15-rc1, and the Linux archive waits on it) (#286)
Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 21:57:25 -08:00
shaneandshinyobjectz b9b0d76568 The sound guide says what the default mix ducks and how to cut air gaps (its lines reached the skill's copy and never main), and the skill's file list as main generates it (#285)
Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 20:59:20 -08:00
shaneandshinyobjectz bda521b3ce goal judge --by clef (the critic on raea cloud), and the skill's references for 0.1.15 (#284)
* The raea skill's references say make component list WORDS and render --keys (raea-skills #145)

* raea goal judge --by clef: clef-omni judges says rules on the files they name, and is the critic where an agent key is set (a raea cloud box has no Claude sign-in in the agent's shell)

* raea's own files find the packages raea ships: a release's render no longer ends "Cannot find package 'react'" with exit 1, and raea goal check runs outside a build tree (#278)

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 20:15:26 -08:00
shaneandshinyobjectz 740f3c2cf4 Engine side of the render-cost work: clip decoding, frame keys, NVENC (#282)
* A page reads a clip on from where it stopped: up to 4 readers a file, so a clip shown twice at once isn't sought every frame

Where two elements showed one 4K clip, they shared one decoder and ffmpeg restarted every frame (31 starts in 30
frames). Each file now keeps up to 4 readers, each reading on from its last frame (the one behind within 60 frames,
else a new one, else the least used), and the frame it read last for a second ask. Those frames: 909 to 53 ms on the
Mac, SSIM 1.000000; a 30 s ad of 4K street-interview clips on the farm's GPUs 277 s and $0.106 to 153 s and $0.033.

* render --keys: each frame's key with nothing drawn, and the largest each clip is drawn

raea render EDIT --keys keys.json steps React through every frame and makes the page match it without reading a clip
or drawing: each frame's key (its elements' place, kind, props and text, each video's file and time, its 3D rows;
paths named from the composition's folder), has3d, the piece's sounds, and the largest each clip is drawn (box as
drawn, transforms and punch-in applied). A render farm keeps runs by these keys and reads clips from copies no larger
than they're drawn. On the ad: 6.7 s for 894 frames; a caption word changed 70 frames' keys, a sound 3 dB louder none
(CR32, CR36).

* RAEA_NV=1: NVENC and NVDEC in the ffmpeg backend, each after a one-frame try on the machine

The render farm sets it on a GPU's runs of a piece with 3D in it. h264_nvenc at libx264's CRF number as constant QP
(SSIM 0.9925 to libx264's 0.9924 on the ad) and clips through CUDA; where a try fails, libx264 and ffmpeg's own,
said once. The answer is kept for the machine's later runs (CR34).

* The face track and render --review's sheets are crates of their own (raea-sys-facetrack, raea-runtime-review): raea-runtime-page and raea-runtime-export are under 2000 lines again

* One opener for a video (raea_io_media::open_video) and one step of React to a frame (step_react), where the render-cost work had copied each

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 19:16:06 -08:00
shaneandshinyobjectz dea4d75c8a The farm draws a video with no 3D without a GPU, keeps its runs by their frames' keys, reads clips at the size they're drawn, and joins every frame (#283)
- A video whose frame 0 has no 3D is drawn on containers with no GPU (cpus, 8 by default; 0 keeps it on GPUs); a run
  that fails there or draws 3D is drawn again on a GPU.
- A run's frame is timed by raea's own clocks over the whole frame, a part's start planned at 5 s at least, 2 parts
  at most a container with no GPU.
- With render --keys, a video's runs are kept under their frames' keys in a store named for the raea, the arguments
  and the job's files; a job draws only the frames no kept run holds, and a sound-only change draws none and joins
  the kept pictures to the new sound. A 30 s ad drawn again unchanged: 46 s and $0.000; one caption word changed:
  148 frames, $0.011.
- A clip much larger than it's drawn is read from a copy at its drawn size (lanczos, CRF 12, sound, frame times and
  face track kept), made on containers with no GPU and kept by hash. The ad as a half-size draft: frames in 30-37 s
  from copies against 48-65 s. A master that needs its clips whole gets no copies.
- A piece with 3D asks its GPU runs for NVENC and NVDEC (RAEA_NV=1; needs raea with engine-render-cost, older raea
  ignores it).
- The join reads only the runs' video tracks and cuts at the piece's length: each run's AAC track moved the joined
  video 21 ms after the sound and -shortest then ended it 2 frames early (892 of 894 frames on every split render).
- deploy/modal/build.py builds a Linux raea from a source folder into the volume; a test farm deployed with
  RAEA_FARM_BUILD=NAME runs it. bench/job.ts times one job, bench/encode.py the encoders.
- An unknown GPU name is a GPU, not a CPU, in the bill; A10G is an A10.

Without --keys (raea 0.1.13 and older) a job runs as before, on GPUs or CPUs by its probe, with nothing kept.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 18:36:22 -08:00
shaneandshinyobjectz 2563c183e7 The component library: 609 open-source effects sorted by use, searched and copied by raea make component (#281)
* The component library: 609 open-source effects sorted by use, searched by `raea make component list WORDS` and copied by `add NAME`

sdk/raea/library/components holds 475 pieces from remocn, 79 from the React Video Editor templates and 55 from snapcn,
ported to raea's composition API and sorted by what they're for (text, numbers, transitions, screens, HUDs and more),
not by who made them. catalog.json lists each piece's category, type, what it does, its files, the shared helpers it
needs, its fonts and npm packages and its source; CREDITS.md holds the licences and every file's first line names its
source.

- `raea make component list` ends with the library's categories; `list WORDS` searches by category, category/type or
  words (catalog.ts). `add NAME` copies the piece into components/CATEGORY/NAME/ with its helpers under
  components/_lib/, and installs its npm packages through the engine.
- The native host reads the library beside the binary (share/raea, which tools/release.sh already packs from
  sdk/raea/library), in RAEA_HOME, or in the tree a built raea runs from.
- tools/effects-catalog.sh writes the cut-down catalogue raea cloud's dashboard imports (Libraries › Effects).
- tools/size.sh leaves the library out: it's other people's code, kept as they wrote it but for imports.
- conformance/catalog.test.ts: every listed file exists, imports stay inside what a piece copies, none imports another
  video framework, and search finds by use.

* raea help's line for make component says list WORDS searches the library

* no-void leaves the component library out: its gradient shader's own name is void

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 18:27:08 -08:00
shaneandshinyobjectz 95b2c01a24 raea goal check reads an export's captions and hears its voice (captions + voice packs; farm reads text) (#280)
* raea goal check reads an export's captions and hears its voice: captions and voice packs, and the farm reads text

Shane 11-30: "running a transcription and ocr pass on the final output ... catch if audio captions pick up something
else that's not supposed to be there or if we cut off words. as well we should be checking audio if it's too quiet
for dialogue". Elfster's cut 1 shipped hand-typed captions that dropped "when they get", "okay, this is" and
"organize your"; Body Shop's reaction cut buried the host 7 dB over its music. No check saw either.

captions (sdk/goal/src/packs/captions.ts): the farm's /v1/scene now reads each line of text (texts, RapidOCR
PP-OCRv4, Apache-2.0, about 0.13 s a 540-wide frame on CPU). A line is a caption when it fits what's said while
it's up with few edits (capitals, a badge's style, held stricter), lasts under 4.5 s, sits in a row with other
captions, in a frame with 3 lines or fewer, and the cut has a track of them (8 showings, 40% of the speech).
Shown-not-said: letters no word near it holds. Said-not-shown: words between captioned words that no caption has,
an error for 3 or more in a row where the captions are phrases; a line at a caption run's edge is a warning.
Calibrated on our 8 Elfster/Body Shop cuts and 4 shipped client refs: the refs' phrase captions pass clean but
one (Body Shop Video6's opening line under its hook card), and ours find what was found by hand.

voice (packs/voice.ts): on the export, the speech's level (80th percentile inside words) over the bed between
words: under 6 dB an error, under 10 a warning; each line against the typical line: 6 dB quieter an error, 4 a
warning. The 4 refs are clean; Elfster 2am (4.5 dB) and Body Shop edible (4.4) fail.

Both are in the cut and floor sets. The Scene type carries texts; media.ts passes them through. The farm needs a
deploy (rapidocr in the image) before captions reads anything; until then it notes the reader has no texts.

* raea goal check times on-screen text against its words: the reading pack

Shane 11-30: "the words on screen relative to duration ... if a wordy CTA or component or scene is meant to be fully
read or if it just adds glossable content or context, and if it's on screen long enough to be read."

From the farm's texts, every line that isn't a caption (nor words shown as they're said) is followed frame to frame;
lines that come up together are one block. A block needs 0.5 s plus 3 words a second: under that a warning, under 60%
of it an error. A block of 25 words or more, small text (under 54 px of 1080x1920) or a phone's screen (a status-bar
clock) is texture: a warning that asks whether it's meant to be read. Frames with more than 6 lines (a shelf of
labels, an app shot whole) and blocks of 3 words or fewer are left out. Every finding gives words, seconds and words
a second.

Calibrated on the 8 Elfster/Body Shop cuts and 4 shipped refs: it finds Elfster cut 2's 15-word hook card up 1 s and
Body Shop's reaction CTA card (11 words, 2 s); the refs give one error (an Elfster app screen up 1 s). In cut and floor.

* raea goal check holds every size the brief asks for at done (sizes-all)

Shane 11-30: "it will show completed but what about doing all the resizes". Dutch finished on its 9:16 masters alone:
the brief's 4:5, 1:1 and 16:9 were never made, because one-size-first was a rule against resizing early and nothing
asked for the other sizes at the end. At done, every ad's newest version (adOf, _v#) must be in every format its
brief names (cut `formats`, the brief's and each cut's), unless a person's answer to the open item about "sizes"
names fewer. The finding says which sizes are missing and the file name each takes. test/sizes.test.ts.

* raea ducks music under the talking by default, and goal check holds the hook and the air between words

Shane 11-30: the StreetTalk cuts' music was "about 4 or 5 decibels too loud ... make sure standards and measurements
correctly mix by default to move audio down in the mix, especially while talking, but a CTA with no audio is fine";
Elfster's Voted cut opened on 1.5 s of a silent whiteboard ("a hook really should have audio and video stimulation");
and "measuring and cutting air gaps safely ... it CANNOT destroy words".

- systems/mix: an edit with no Tone graph gets DEFAULT_GRAPH: footage and voice files on a `talk` bus, effects on the
  master, any other audio file on a `bed` bus ducked DEFAULT_DUCK_DB (-6) under the talking, released where nobody
  talks. The names aren't raea/tone's, so an edit's own buses never change; `bus="master"` opts a sound out. Offline
  bounce and live play pick it the same way (score.rs routes a bus-less sound by default_bus). Test: the music sits
  6 dB down under the talk and comes back after it.
- @raea/video airgaps: airGaps(words) and tighten(words, { levels }): the spans of a take to keep, gaps cut to 0.15 s
  in the hook and 0.25 s after, only between words, 80 ms kept either side, each cut pulled back while the take is
  still loud (a transcript's early word end).
- goal packs hook and airgaps (cut and floor): a first word over 1 s in with a quiet opening is an error (Voted:
  1.5 s, -15 dB); gaps over 0.5 s in the first 3 s are errors, over 0.3 s warnings, over 0.8 s after warnings.
- sound pack: bus-less files classed as the mixer routes them (a music file with any name is music, not a voice
  line), the default duck counted, and music within 10 dB of the voice warns (was 6), as the voice pack does.

* The voice check judges the bed only on enough gaps between words

Body Shop's host-hook cut read "1.5 dB above what's under it" off a single 0.34 s gap between two "Mmm"s, where the
speaker was still humming; the agent's own measure (pauses of 0.8 s and more) read 11.7 dB. A tightly cut take has few
gaps, so the bed is judged only on 3 or more gaps and 1 s of them in all.

* The default mix's graph moves to raea-sys-tone, and its test to its own file, so raea-sys-mix is under 2000 lines

CI's size gate: raea-sys-mix was 2048 lines and offline.rs 530. DEFAULT_GRAPH, DEFAULT_DUCK_DB and default_bus are
the default Tone graph, so they live with the graph format in raea-sys-tone (defaults.rs) and raea-sys-mix re-exports
them; the duck test is duck_test.rs.

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 15:13:18 -08:00
shaneandshinyobjectz c81b4e8c23 The farm shares its GPUs and says when a render waits; it encodes with libx264 (#275)
* The farm gives a job 4 GPUs unless it asks for more, and says when a GPU run hasn't answered

A 1,150-frame cut took all 10 of the workspace's GPUs, each drawing 10-20 s, so every other render queued behind it,
and a queued run printed nothing: StreetTalk's agents read the silence as "stalled before frame 0" (11-30).
RAEA_FARM_JOB_GPUS (4) is a job's default; farm_plan.waited logs every 30 s while a probe, first run or whole job waits.

* The farm encodes a video's runs with libx264 at the quality's CRF, not openh264 at a bitrate

openh264's near-blacks stepped into blocks even at --quality master's 37.7 Mbps: raea check's blotching failed every
Dutch cut rendered on the farm, and its agent re-encoded each one with x264 CRF 14 afterwards (a second generation and
minutes a cut). RAEA_MEDIA=ffmpeg makes raea's encode the ffmpeg CLI's libx264 (master CRF 11); the runs still join
by stream copy, and the first run's x264 header tells raea check the darks were kept.

* The farm's GPU wait gives up on a run that ran out of its own time, as .remote() did

Modal's FunctionTimeoutError is a subclass of its TimeoutError, so waited() caught a run's own timeout as "no answer
yet" and asked again forever, logging "waiting" instead of failing the job. It now goes up as before. Test: a run that
timed out fails the job with no wait lines.

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 07:50:06 -08:00
shaneandshinyobjectz 1430731bf3 The box server keeps a quiet stream open past Cloudflare's 100 s, and ends an agent silent both ways for 45 min (#277)
/v1/shell and /v1/run sent no headers until their command printed: raea goal check --json over Dutch's seven cuts
printed nothing for over 100 s, Cloudflare answered 524, and raea cloud's gate sent its Client sign-off stop back as
"raea goal check couldn't run". Their headers now go at once, then an empty line ({}) every 30 s, which readers skip.

An ACP socket whose caller went away without closing it (an API restart, the Sprite's proxy keeping the box's half
open) kept its agent forever: two Gemini agents sat on raea-3 for 2 h, counted as running, so box.sh latest would wait
on them. An agent that has said nothing and been sent nothing for 45 min (RAEA_CLOUD_IDLE_AGENT_MS; raea cloud ends a
turn quiet 30 min) is now ended with its process group.

Checked locally (a 32 s silent command gets {} at 30 s; an idle echo agent's socket is closed at the limit) and on
raea-3 through its public URL's stack.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-30 07:41:35 -08:00
shane d873402ac5 raea goal is the loop, raea make the asset tools (#269)
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
2026-11-29 18:43:09 -08:00
shaneandshinyobjectz 14cdac0687 Render memory: halcyon r109 from killed at 24-25 GB to a 7.8 GB peak (RM0-RM10) (#273)
* RM0: each App's meshes and images, CPU and GPU bytes, after every RAEA_MEM_MARKS mark (raea-sys-memtally); docs/render-memory.feature RM0-RM4

* RM1-RM10: halcyon r109's sequence from killed at 24-25 GB to a 7.8 GB peak (footprint 5.5 GB), the look within run-to-run noise

- RM1: materials' maps and Solari's traced meshes on the GPU only (RAEA_KEEP_CPU_ASSETS=1: the control)
- RM2: a sequence's first 3D engine let go before a second opens
- RM5: JS solids deduplicated by expression, their Manifolds in a two-generation cache (192 MB each); solid.free
- RM6: a map whose picture changes by frame is one part and one material, its picture swapped as frames show it
  (raea-sys-material swapped.rs): the pool's 96 water maps were 96 meshes and 186 textures
- RM7: Manifold shapes welded into indexed meshes (4.65 corners a vertex in halcyon; RAEA_NO_WELD=1: the control);
  a held frame settles to the same picture, boiling 0.30% against 0.38%
- the shape text kept out of the store and the Edit (the engine spawns from the program's rows)
- RM8: a BufferMesh of 64 KB or more kept on disk by its content (buffer:@NAME, raea's caches/buffers):
  shape text 274 MB -> 11.8 MB
- RM9: material maps as BC7 with their mips (intel_tex_2), cached by content in raea's caches/maps, any size
  resampled to whole blocks (RAEA_NO_BC=1: the control): GPU images 733 MB -> 282 MB
- RM10: raea-sys-contact's solids as bytes, a count and u16 surface points: 1.27 GB -> 0.37 GB mid-render
- memtally names the biggest GPU images; RAEA_MEM_MARKS prints the program's text by column and shape call
- tools/memprobe: memseq, heapwho/heapseq (malloc stack logging, holders.py), abenv/abseq/steadyab (A/B on one binary)

docs/render-memory.feature has each step's numbers and gates.

* raea-sys-memtally in tools/layers.toml: a system, as the layers gate asks

* Size: render-memory's eight over-limit crates and files allowed once at today's sizes (Shane 11-29, for 0.1.13): the folders hold other lanes' uncommitted GI/RT work, so they're split once that lands

* Fold render-memory's copies into what they copied (the dupes gate, 297/60 back to 293/57): one two-generation cache, raea_core_shape::Generations, for core/shape's meshes and runtime/calls' built Manifolds; swapped maps load their pictures with maps.rs's panel_picture; raea_io_home::write_whole for a file written whole or not at all (the BC7 maps first); spawn_sig(it, swapped) one function, its callers saying which; the store's spawn given its columns. Size allowances taken down to the folded sizes (solid.rs is back under 500)

* Split the five crates render-memory took past 2000 lines, each where it parts cleanly, so the next lane has room (the size and rask gates; the one-time allowance is gone):
- raea-core-tables (core/tables): a row's per-frame tables, from raea-sys-frame (re-exported there as tables)
- raea-runtime-ecs (runtime/ecs): raea/ecs on Bevy's ECS, from raea-runtime-calls (ecs.rs re-exports it)
- raea-sys-toon (systems/toon): toon surfaces and outlines, from raea-sys-material; its shaders keep the embedded path compositions name (raea_sys_material/toon.wesl)
- raea-render-plugins (engine/render/plugins): RaeaPlugins, from raea-render (engine.rs re-exports it as raea_plugins; the imports only it used are gone)
- raea-runtime-kinds (runtime/kinds): the rows of models, panels, decals, plates, fog, fire, splats, mesh sequences and grass, with placement and name_column, from raea-runtime-scene
maps.rs's inline and panel pictures move to maps/pictures.rs (re-exported, 422 lines left)

* Engine::open_in: a live engine (re)opened in its slot, the one there let go first (RM2 in one place, docs/render-memory.feature). raea-runtime-export's five opens go through it, so a fed render stepped again in the page's box keeps its AOVs as its first engine did; aov_on takes the engine in place. raea-runtime-export is back under its planned 2000 (LT1 and LX6 hold the rest)

* Drop the dependencies render-memory's splits left behind (cargo shear, CI's unused-dependencies gate): raea-render's eleven systems crates went with RaeaPlugins to raea-render-plugins, raea-runtime-calls's bevy with raea/ecs to raea-runtime-ecs, raea-sys-material's raea-core-shape with toon to raea-sys-toon. raea-render's cargo-shear ignore goes too: spawn.rs reads a mesh buffer through raea_core_shape::buffer_json now

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 16:40:57 -08:00
shaneandshinyobjectz 036a2ddb5e raea scene faults: a 3D scene's faults judged as a viewer sees them, motion held to what a body does (#272)
* raea scene faults: a 3D scene's faults judged as a viewer would see them, motion held to what a body does, both learning from verdicts and fixes

The scene judge (raea-sys-notice, docs/notice.feature): each lint finding asked of every camera of the shot (in
frame, facing it, not hidden, how many pixels) and scored by a small logistic model over those features and the
words of the parts' names. It learns from verdicts (--real/--fine) and from fixes (a finding gone while its parts
remain); verdicts all one way teach only words, and a held-out check is part of train. 22 verdicts on 18 findings
from 2 projects: 19 right held out, against 16 for the prior. --seed plants faults to measure it; --ask rings the
likeliest on its frame and asks a vision model, given the scene's own words, only whether it's meant. Renders
judge their own frames at the end (runtime/endchecks faults.rs, RAEA_FAULTS_CHECK=0 skips it).

Motion (raea-sys-motionfaults): knees buckling, feet skating, joints past their limits, jolts, fingers bent or
twisted, bones through what the hand holds, and a hand that hasn't closed on it (grip). Lines set from 107 clean
ACCAD takes; 1,039 of 1,051 planted faults caught. --clip reads a clip, --motion a composition's characters with
their hands tested against the scene's triangles; it caught gambit's ladder thumb (68a505a) before its fix and is
silent after. Fixes and looks become verdicts and examples, and a critic (critic.rs) fitted to them by train says
which findings matter; a verdict on a finding's own key at its size outranks it.

The contact lint's touching test made exact-faster (lint/touching.rs, same findings, 30.6 to 8.5 s on a room),
lint_but_clips for a render's end, and core/zfight keeps a fight's patches for where it shows.

* docs/notice.feature: the judge on six gambit interiors it had never seen

41 verdicts from looks at ringed renders (3 real, 38 fine). The judge as it stood called nearly all of them faults;
refitted with each shop left out and then judged, 34 of 41 right. Floats by size and the hidden-seam clip are what it
still misses; three feature changes tried in a replay of the fit and not kept.

* docs/notice.feature: motion checks on gambit's fp labs, and the shin roll they misread

The fp character's shins read 136-165 degrees past their range (twist near 180, its foot taking the roll back);
rendered, nothing shows. Left unverdicted, since a line on limit:calf at that size would hide real broken knees;
next is reading a joint's roll with its child's.

* raea scene faults --motion: a roll its child takes back is no limit

A solve that rolls a shin half a turn and undoes it at the foot read as the shin 136-165 degrees past its range on
every crouching step of gambit's fp character, though nothing shows. Before the limit check, a roll of 15 degrees or
more about a joint's own bone moves to its child when the two are then less past their ranges together (legs.rs
settled; raea-sys-body limits::over). It moves no joint's place; a roll nothing takes back stays. Tested both ways.
Limit findings on the takedown 34 -> 17, the sneak 21 -> 6, the crowd's walkers unchanged.

* raea scene faults train: the judge held out a whole shot at a time

Besides each finding held out, train now fits without each shot and judges it (labels::shots keeps the shot with
each verdict): how it does on a scene it hasn't seen. On the 63 verdicts from 3 projects and 13 shots: 51 right
(the prior 18), where a replay had put it at 50.

* raea scene faults --motion: a roll moves only where it moves nothing else, and a change of checks is no fix

The roll fix (xos) moved a hand's roll onto one finger: that moves the other fingers, and a finger has no limits to
show it, so 77 of the crowd's wrists vanished, and the fix-to-verdict path kept every finding the change hid as a
real fix. Now a roll moves only when the joint's other children sit on its bone's line (a shin's twist joints), to a
child with limits of its own (tested on a hand); and a fix is read only between runs of the same checks
(motionfaults CHECKS, kept in motion.last). The false rows are removed from the critic's examples. Limit findings:
takedown 34 -> 14, sneak 21 -> 6, crowd unchanged, every hand finding kept; two runs each, 0 fixes.

* Fold scene faults' copies into what they copied (the dupes gate: 307/64 groups back to 293/57): one sigmoid in raea-core-ease (splat, notice, motionfaults), solid() in raea-sys-body's JSON readers (grab, motionfaults), the scene's hand stretches onto motionfaults' stretches() and its seeded Rng, one bounds() for least and most, lint_with(clips) in place of lint_but_clips, raea_runtime_bundle::flags for a repeated flag, held_out() for both held-out passes, a fault that stands in one place, the views and their frame numbers in one pass

* flag is the first of flags (raea-runtime-bundle back to 2000 lines, the size gate): one way to read a flag's values

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 16:40:52 -08:00
shaneandshinyobjectz e5f4743dee LX7's plan: the clipping check in a crate of its own (raea-sys-clip, systems/clip): raea-sys-contact plus a broad phase would pass 2000 lines (rask check failed scene-faults and render-memory on it), and the clipping check moving off the render's thread is its own job; contact's deepest, Hit and solid cache become its public interface (#274)
Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 16:02:21 -08:00
shaneandshinyobjectz 4aff22e31a raea make motion --seeds N: the best of N takes by the body's faults (#271)
* raea motion: clips capped at 10 s (300 frames), Kimodo's documented limit

Past 10 s a clip drifts and breaks up (Kimodo docs, key_concepts/limitations.md). Measured 11-27: a 12.3 s talk
clip's feet spread 47 -> 69 cm, the shoulders rose 9 cm and the last half second glitched. The error says how to go
longer: 10 s clips chained through --keys holding the last frames of the one before.

* raea motion --seeds N: the best of N takes by the body's faults (foot drift while planted, shoulder rise, hip drop, a hand or forearm into the torso or head), each take's score printed and the kept one's written into the clip; examples/motion runs the verb alone

* Fold score.rs's vector helpers onto glam's Vec3 (the dupes gate: sub and dot matched core/grow's and core/sdf's): a point inside a capsule and a foot's sideways drift, the same arithmetic

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 15:20:10 -08:00
shaneandshinyobjectz c863adef82 raea motion: clips capped at 10 s (300 frames), Kimodo's documented limit (#270)
Past 10 s a clip drifts and breaks up (Kimodo docs, key_concepts/limitations.md). Measured 11-27: a 12.3 s talk
clip's feet spread 47 -> 69 cm, the shoulders rose 9 cm and the last half second glitched. The error says how to go
longer: 10 s clips chained through --keys holding the last frames of the one before.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 13:59:49 -08:00
shaneandshinyobjectz 8627ba7ab4 Paint fixes: canvas drawImage, boxed 3D view culling, grey emoji (#260, #261, #262) (#268)
* Three paint fixes: a canvas draws a loaded Image, a boxed 3D view culls by its box, grey bitmap emoji draw (raea #260, #261, #262)

#260: drawImage of a loaded Image onto a canvas made in a composition drew nothing. The canvas is read back off the
page, where there is no project folder to find staticFile's /media/x in. A loaded Image now carries the file the host
found as currentSrc (sdk/raea frame-globals.ts), which drawImage already prefers, and the canvas host takes a src that
is a file as it stands whatever its roots make of it (systems/canvas media_file).

#261: two causes, neither the plane's turn. Bevy's update_frusta culls by the projection's whole view at the target's
shape, so a camera drawing a page box wider than the frame (an <R3F> in a 1080 x 389 box of a 1080 x 600 frame) had
meshes inside the box's view culled: the shelf's side cards, where the same cards turned the other way reached into
the frame's view and drew. raea-sys-viewbox's sub_view_frusta gives a camera with a sub view that view's frustum,
after Bevy's own and before visibility is checked. And `raea render X.tsx -o x.png` with no --frame took the frames
path, which draws 3D from rows under the whole frame and ignored the box; a 3D piece's bare .png is now drawn as
--frame 0 draws it.

#262: Apple Color Emoji keeps 52 glyphs (💬, 🗨) as grey + alpha PNGs. Vello's glyph run asks png for RGBA with a
transformation that leaves grey as it is, logs "Unsupported `output_color_type`" and skips the glyph. The page's
painter (raea-sys-filters) takes those glyphs out of the run and draws them as images placed as Vello places a
bitmap glyph (emoji.rs); skrifa and png at Vello's versions.

* The export crate stays within its 2000 lines: the still's frame-0 branch in four lines (the size gate failed #268 at 2004)

* The emoji decoder widens a PNG's pixels in one loop: its three one-line closures matched closures elsewhere, and the duplicate gate failed #268 by two exact groups and one near

* A .png with no --frame goes through the stills branch as frame 0: the export crate stays at its 1996 lines (with LX6 and LT1's planned four it is at the 2000 limit, and the tasks gate failed #268)

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 11:49:23 -08:00
shinyobjectz 456fd1e153 An index job reserves 2 cores and 8 GB
It reserved 4 and 16, and from 11-17 to 11-29 raea-ingest's CPU and memory cost more than its GPU ($7.05 against
$5.97). A 52 s clip measured 1.9 cores busy and 4.9 GB across its processes. A job that takes more is billed for what
it takes. Deployed 11-29 and checked: /healthz on both servers, and the same clip indexed through the deployed job
(10 fragments, 9 posters, 23 s). The search server and the frame API keep their sizes, unmeasured.
2026-11-29 09:55:34 -08:00
shinyobjectz 3afc53d45b A raea render's GPU container reserves 2 cores and 8 GB, and each job says what it used
From 11-17 to 11-29 the farm's CPU and memory came to 65% on top of its GPUs: every GPU container reserved 4 cores
and 16 GiB. A 1080p cut measured 1.3 to 1.4 cores busy and 2.7 GB in its biggest process, so raea's containers now
reserve half (farm_plan.RESERVED); a run that takes more is billed for what it takes, as nothing here sets a limit.
The same cut rendered at the same speed after (262 to 268 ms a frame on a T4) for $0.013 against $0.017. Blender's
containers keep 4 and 16, unmeasured. Each job's last line now says the most cores busy and the biggest process of
its runs, so the next change is made from the jobs' own logs. Deployed 11-29.
2026-11-29 09:34:31 -08:00
shinyobjectz 7d79a24f33 Merge branch 'farm-version' 2026-11-29 09:27:03 -08:00
shaneandshinyobjectz 6af8bfa5bb Cut checks a box can fail on: raea sound check, text placement from the farm's scene read, and full render manifests (#267)
Shane on Dutch (11-29): words faded and cut in two, lines too quiet to hear, effects no one hears, and text laid
over the people and the dog the shot is about.

- raea sound check VIDEO (server/sound.ts): each voice clip's edit points against the take's words and its sound.
  A cut inside a word or on a word's sound is an error, and the message names the pause (or the boundary) to move
  it to. Lines more than 6 dB from the cut's median are an error, with the gainDb that evens them. An effect 10 dB
  or more under the voice is an error, since no one hears it. Buried or fighting music is a warning. offload.ts runs
  it after every render that has a manifest.
- The farm's POST /v1/scene (deploy/modal/farm_scene.py) reads a frame: people as a mask, faces, COCO's things,
  and words in the shot (four small OpenCV zoo models on the CPU, each pinned by its hash).
- server/place.ts turns a scene into costs. raea frames check now fails text over a face, a dog or a person when a
  clear place of its size exists, and names that place. raea frames place FILE lists the clear places in a take.
  Stacked lines move as one block, our own text isn't counted as the shot's words, and passers-by's small faces
  don't count.
- The farm wrote a split render's probe manifest (frame 0 only) as the render's. Each run now writes its own and
  the farm joins them, so the checks see every frame and every clip.

Tests: test/sound.ts (7), test/place.ts (4, on scene reads of three interview frames, boxes only),
test/farm_plan.py (the joined manifest).

Co-authored-by: shinyobjectz <[email protected]>
2026-11-29 09:20:52 -08:00
shinyobjectz 4b2225163e The farm renders with raea's newest release, and says which one it holds
farm.py took RAEA_VERSION or 0.1.6, and no deploy set the variable: on 11-29 the farm's health said 0.1.6 while the
boxes that send it their compositions ran 0.1.12. A container never had the variable either, so health said the
default whatever the image was built with. A deploy now takes the newest full release (GitHub's releases/latest, as
box.sh does) unless RAEA_VERSION pins one, with 0.1.12 when GitHub can't be asked, and the image carries the
version it was built with for its containers. Not deployed: the next modal deploy of raea-farm brings it.
2026-11-29 09:13:24 -08:00
shaneandshinyobjectz 57373a9901 skills: raea-skills main 8efd329 (#138: raea show --playable in cli.md) (#266)
tools/skills.sh check, strict, with a raea built at main 9ce8f53466: every reference and guide copy matches.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-28 14:58:30 -08:00
shaneandshinyobjectz 9ce8f53466 raea show GAME.tsx --playable, and a playable's page shown as itself (PA16) (#265)
--playable exports the game's preview (native.ts: raea playable --networks preview, in a folder of its own) and shows
that page, titled from it; the raea app plays it in a phone, sandboxed (raea-feed #124). raea show takes a
NAME-preview.html as it is too. The help line, the manual and the conformance tests say so.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-28 14:32:03 -08:00
shaneandshinyobjectz 28af820668 PA13, PA14: raea playable, and playables in the public engine (#264)
* PA13, PA14: raea playable, and playables in the public engine

Playables move from the private tree into the public engine (Shane 11-28: "public totally part of the engine"):
sdk/playable (raea/playable for authors, the browser host, check.ts, parity.ts, tony.ts), examples/playables and
docs/playables.feature, with raea/playable and @raea/playable back in sdk/tsconfig.base.json.

`raea playable GAME.tsx -o DIR` (apps/playable) replaces the Bun pipeline (playable.sh, bundle.ts, lint.ts, walk.ts,
alias.ts). It lints the source, renders each composition through `raea run` for its shapes and 3D kinds, bundles the
game and the host once with raea's own bundler, and writes each network's page or ZIP against its 5 MB cap.
engine/bundle gains `minify`, `inline` (inline.rs: pictures, sounds, fonts and .glb as data URLs, .bin as a
Uint8Array) and package-folder aliases (`three/=DIR`). brick-rush writes all nine targets in 7 s (1,384 KB a page);
mobile-ads' tiles and gates export; all play in WebKit, the Google and TikTok packages included.

check.ts lets a network's own page tags through; parity.ts draws in WebKit (chrome.ts is gone), 6.8/255 on
brick-rush frame 300. The craft guide motion/playable.md is `raea guide playable`. bench/live-3d skips brick-rush with
its real reason (PA18).

* tools/layers.toml: raea-app-playable in apps (PA13)

* Fonts travel with a playable, and an end card in a brand's type

An imported .ttf, .otf, .woff or .woff2 (and .jpeg) is its path in a native render (runtime/bundle rewrite.rs,
engine/bundle script.rs) and a data URL in a playable (inline.rs), so an @font-face names the same file either way.
<EndCard> takes font, color and button. Made for the real-brand playables in mobile-ads (ACANA, OLIPOP, HelloFresh),
which carry their brands' own type; the guide and docs/playables.feature say how.

* The preview page tells raea's review its ad events (PA16)

Inside a frame, the preview network posts {raeaPlayable: kind} to its parent on install and end, so the review can show
them beside the game.

* PA16 status: the review plays playables (raea-platform #99), on a host of their own

* The preview page tells the review when it's ready, seen or hidden, and the first touch (PA16)

Beside install and end, the preview build inside a frame posts ready (the game started), viewable and hidden (its page
shown or put away) and touch (the player took over from the game's own hand), so the review and the desktop show them.

* PA16 status: built in cloud (raea-platform #99, #101) and desktop (raea-feed #124), and raea show --playable

* raea playable says what the source can't have even when the game won't render for the lint

A fetch or a URL often stops the walk's render too, and the lint answered with the render's end ("lint.ts ended with
exit 1") and dropped the refusals it had found. Now the source's refusals are the answer, and a render that fails
for another reason is named by its error line.

* PA16 status: play.raea.io is live, checked with the ACANA export

* skills: raea-skills main ae81d0f (#135 notes hook, #136 and #137 the playable guide and raea playable in cli.md)

tools/skills.sh gen with a raea built at this branch and the feed app at main: every reference and guide copy matches it.

* raea-cli: export-game and playable dispatched in a line each, as the verbs around them, so the crate stays at the size gate's 2000 lines

* dupes: the playable's copies folded into what they copied

spec is raea-runtime-bundle's own (now pub), inline.rs's base64 is the base64 crate as raea's other crates use it,
the store and card JSON are json!, and the bundle FFI reads minify and inline as it reads z3 and stamps. tools/dupes.sh:
293 exact, 57 near, as allowed.

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-28 13:53:48 -08:00
shaneandshinyobjectz ea5640de8f raea show --fyi/--group; notes reach closed sessions through raea's hook (#263)
* raea show --fyi and --group; the inbox hook says seen

Shane 11-28: "some things I'm not approving, I'm just acknowledging"; "the agent can go 'let me add a label here'".
raea show --fyi sends a show only to be looked at (the person says Got it, never approves or sends notes); --group
"Title: what it is" FILE... lays the files out in groups, each titled and said in a plain line. Both go to the app's
host as ShowBody.intent and .groups (raea-feed host/show.ts), which hands them to the review (raea-platform
harness/board.ts). The inbox hook says a {kind: seen} line as "seen on item ...", and when every new line is one,
tells the agent there's nothing to do rather than to take it up.

* Notes reach closed sessions: raea's hook hands them over when the session starts again

Shane 11-28: "raea installs a hook in Claude Code and Codex so your notes are delivered when the session next starts".
What the person sends from raea to a session whose terminal has closed waits in its inbox (~/.raea/inbox); the hook
now reads it at SessionStart (a resumed session takes it up first, told it waited while the session was closed) and at
UserPromptSubmit, as well as after a tool and as a turn ends. raea skills install adds SessionStart and
UserPromptSubmit for Claude Code, and Stop, SessionStart and UserPromptSubmit for Codex.

Tested: raea-app-check-inbox (4, a SessionStart hand-over once) and the installer's test in a standalone crate. The
hook.rs change isn't compiled here: raea-app-check needs ~12 GB to build and the disk has 3.5 GB free.

* The inbox tests share one scratch folder helper (dupes: the new test copied the first one's setup)

* The inbox's all-seen check written so it isn't a copy of a closure in fingerprint-use (dupes)

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-28 11:29:49 -08:00
shaneandshinyobjectz 3ac738884c skills: 0.1.12's references (raea-skills #134) (#259)
The goal job kind, MakeGoal, a job's previews, and ~/.raea/machine-id and target, generated at main 096f87d1 with raea
built from it: tools/skills.sh check passes.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-27 14:08:38 -08:00
shaneandshinyobjectz 096f87d153 A canvas draws a picture from its file: drawImage of a /media/ src (raea #253) (#258)
#255 gave new Image() in a composition its size, so the issue's 3D cards got a canvas the right size, but drawing the
screenshot on it painted nothing: the canvas host decoded only data: URLs (systems/canvas draw.rs decode). A picture
that isn't inline is now read from its file, found by the same roots a canvas's videos are (the page host's
page_path, so /media/x is the project's file; a plain or file:// path without one), its type by its name (png, jpeg,
webp, gif, bmp, svg). A src that isn't there, or isn't a picture, still draws nothing.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-27 13:23:57 -08:00
shaneandshinyobjectz 845f7438d5 Small caps synthesised, flex lines with a 1/64 px tolerance, and a table's stray text in anonymous cells (#257)
Three layout misses 0.1.11 shipped, each from its issue's own repro.

Times, Helvetica: most system faces) the text drew in normal case. blitz-dom now checks the face a text's lower-case
letters are drawn in for an smcp GSUB feature (once per face, layout/small_caps.rs) and, where it has none, draws each
run of lower-case letters as their capitals at 70% of the font size, as Chrome synthesises them.

gaps come out a few ulps over 658.8 px, so the third item wrapped (rows of 2, 2, 1). Chrome lays out in 1/64 px units
and keeps them on one line. Taffy 0.15.0 is vendored with a line that overflows by less than 1/64 px still fitting,
greedy and balanced wrapping alike.

element around its text had no cells and drew nothing, not even its background. The table's runs of other children
(text, blocks, inline elements) are now wrapped in an anonymous block that the table lays out as an anonymous row
holding one anonymous cell, as css-tables-3 wraps them: the element is laid out shrink-to-fit around its text.

The regression tests (systems/page/tests/layout_0112.rs) lay out each repro; all four fail on main and pass here.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-27 13:23:52 -08:00
shaneandshinyobjectz 6f96c78a8b Paint fixes for 0.1.11's reports: nested masks in a faded group, inline background images, empty clip-paths, svg overflow: visible (#256)
#247: two nested mask-image layers inside an opacity group refused the frame as past Vello's bump buffers. The scene
was small; its layers nested seven deep, and every layer past the fourth spills each tile's 16x16 pixels into Vello's
blend spill buffer, whose fixed size (1 << 20 pixels, raea-page's 1 << 18) holds 4096 spills, fewer than a 1080x1920
page's 8160 tiles. vello_encoding's resolve now measures how deep the scene's layers nest (layer_depth) and the
render's config sizes the blend spill for every tile to spill that deep (blend_spill_for), within the largest buffer
the device binds (set_max_buffer_size, given by raea-page).

#248: an inline element's background-image wasn't drawn (only its colour was). text.rs draw_inline_backgrounds now
draws its image layers on each line fragment, laid out over the fragments side by side as box-decoration-break: slice
does, so a background-size sweep crosses the lines in turn.

#250: clip-path: inset() that clips to no area (inset(0 0 0 100%)) returned no shape, which meant no clip-path, and
the element was drawn whole. It is now an empty clip, and an element whose clip-path has no area isn't drawn.

#251: an inline <svg> was always clipped to its viewport. The UA sheet now gives svg:not(:root) overflow: clip (as
Chrome's hidden, without making it a scroll container, so layout is unchanged), and draw_svg clips only when the
svg's overflow isn't visible.

Regression tests: vello_encoding's resolve and config tests for the blend spill; systems/page/tests/paint_repros.rs
paints each of #248, #250 and #251's repros into a recording scene and checks what is filled and under which clips.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-27 12:29:15 -08:00
shaneandshinyobjectz e70d9c79c1 A loaded new Image() has the picture's size (#253) (#255)
A composition's Image (sdk/raea frame-globals.ts, installed where the runtime has none) fired load but kept width,
height, naturalWidth and naturalHeight at 0, so code sizing a canvas from it made a 0-high canvas, and a
CanvasTexture made from that was refused as an undetermined image format.

Now, when its load fires, naturalWidth and naturalHeight are the picture's size: a data: URL's from its header
(@raea/ui's sniffSize), any other src's from the host's asset.load, which finds staticFile's /media/ paths as <Img>
does (media/, assets/, public/) and fetches http URLs through raea's cache. width and height are the ones given (the
constructor's, or set) else the natural size, as in a browser. A file the host can't find fires error and onerror
instead of load, and only the last src set fires. The manual's web-components guide says so.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-27 10:19:31 -08:00
shinyobjectz f4db12c1d0 CI's size and dupes gates on 0.1.11: the mixer's output device (the stream and following the system's output) in its own crate, raea-sys-mix-device, so raea-sys-mix is under 2000 lines and live.rs under 500; one make::Gate in raea-core-brief for a cut's and a goal's gates (cut-plan and goal-plan had the same struct, and status.rs the same closure twice); the CTA's best line found without a copy of hands-audit's fold 2026-11-26 17:26:59 -08:00
shinyobjectz cd159fe0be promoted-from: the layers gate's files (tools/layers.sh, layers.toml, layers.allow) may differ between an rc and its release, as no build reads them (0.1.11-rc2's one-line layers fix would otherwise force a rebuild) 2026-11-26 16:57:39 -08:00
shinyobjectz 316b612d70 layers: raea-runtime-goal-plan is in the runtime layer (MK28's crate had none, and main's CI gates failed on it from c41ec580 on) 2026-11-26 16:57:08 -08:00
shinyobjectz aa40a2fa86 #82: the ARM64 build (it compiles: raea.exe is AA64 and runs) is packed and checked without drawing (release-check.sh RAEA_CHECK_NO_GPU=1 keeps plugins, guides, song map and bin\'s files; the windows-11-arm runner has only WARP, which segfaults in Bevy as on x64, and lavapipe has no ARM64 build), and it uses the release's compile cache 2026-11-26 14:01:28 -08:00
shinyobjectz 48705982b6 windows-arm.yml runs on v* tags too, beside release.yml, and attaches raea-VERSION-windows-arm64.zip to that release (skills-passed from the tag, as release.yml reads it); an ARM64 failure never holds up the release 2026-11-26 14:01:28 -08:00
shinyobjectz 7580433cd2 windows-arm.yml: metis-sys alone on windows-latest's x64 MSVC too, which release.yml builds with 2026-11-26 14:01:28 -08:00
shinyobjectz 28f3fd814b #82: metis-sys vendored with GKlib's stdint.h/inttypes.h stand-ins only before Visual Studio 2013 (Visual Studio 18's stdint.h types int_fast16_t differently, and the windows-11-arm build failed on every GKlib file); its graphs, manual and programs left out 2026-11-26 14:01:28 -08:00
shinyobjectz 1905dc723c #82: a windows-arm64 zip: RAEA_WIN_ARCH=arm64 has onnxruntime.sh and win-bundle.sh take the ARM64 runtime, VC++ CRT, uv and DXC (FFmpeg stays x64, run emulated), release.sh names and packs raea-VERSION-windows-arm64.zip, and windows-arm.yml packs and checks it on WARP 2026-11-26 14:01:28 -08:00
shinyobjectz c41dd64516 #82: raea built natively for Windows on ARM in CI (windows-arm.yml on windows-11-arm: the release's four binaries, raea --version, a 2D still on WARP); rav1d's assembly off there, where MSVC skips its GNU .S files 2026-11-26 14:01:28 -08:00
shinyobjectz 1fc3a07655 Merge branch 'whats-new-0111' 2026-11-26 14:01:28 -08:00
shinyobjectz 986bd33463 whats-new 0.1.11: goals as make jobs, live sound following the output, tall pictures (#245), Windows on ARM (#82), and in the app typed Ideate on your own agent, one Settings, voice with Studio, Codex on Windows (#244) 2026-11-26 14:01:27 -08:00
shane c41ec580a9 Merge pull request #246 from shinyobjectz/skills-0111
skills: CLI reference for 0.1.11
2026-11-26 11:23:26 -08:00
shane 7e25dcc56e skills: the CLI reference as 0.1.11 prints it (raea-skills 98de983: make judge, make status's goal kind) 2026-11-26 11:23:10 -08:00
shinyobjectz 561e7a569c An image larger than Vello's atlas is decoded at a size that fits it (#245: a 1080x18000 site capture drawn 880 wide was refused; fit to the atlas's side, 16384, not the device's 32768); a Snapdragon's Adreno runs on DX12 on Windows, where Vulkan drew Vello's 2D pages striped (#82) 2026-11-26 11:21:27 -08:00
shinyobjectz 0649788f7f MK25: a rotated CTA, cta.also
Dutch's and The Body Shop's briefs each rotate two host CTAs. The cut lands on any one of them. Each also line is held to the brief's text like any other quote. Test: a rotated Dutch line lands, and a line the brief doesn't have holds the job.
2026-11-26 10:36:58 -08:00
shinyobjectz 1a77da4980 box.sh latest: every box in raea cloud's list onto a release, and box.sh up takes the newest release by default
Shane, 11-26: "make sure that release pipeline automatically updates boxes for raea cloud to the latest". Both live boxes were still on 0.1.9, because box.sh's default was a pinned version. box.sh latest [VERSION] waits on the tag's release.yml run (gh run watch) until the Linux archive is attached, then rebuilds each listed box with raea at that version and sdk/cloud's server from the release's own commit. Each box goes only after its running agents finish, as box.sh up already does. A box that can't be rebuilt is named, and the others still go. RAEA_BOX_DRY=1 prints the plan: on 0.1.10 it named raea-2 and raea-3 onto 22834de9b1. tools/agents/release-go.sh (private) starts it after every publish.
2026-11-26 10:29:22 -08:00
shinyobjectz 1a913e6b06 raea frames check on raea cloud boxes: what a cut's pictures get wrong that a viewer sees at once, measured (11-25, Shane on StreetTalk's cuts: "it cuts out faces all the time and also does split frame shots when they make no sense", "it makes text too small on some things, we should have a text/glyph readability check and measurement").
Faces: the export's frames, two a second, go through the farm's new POST /v1/faces (OpenCV's YuNet, 232 KB on CPU, pinned by hash). A box has no vision backend (raea-perceive isn't in raea's Linux build), so raea frame and framing="face" refuse there. A face of someone in the shot touching the frame's edge or a split screen's seam for a second or more is an error; a split screen showing a face in only one half is a warning. Seams are lone lines where the picture jumps across 70% of the frame, held a second, in its middle 60% (a caption's box is two lines close together and doesn't count).

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Repros (engine/render/tests/diag): kept-scenes.tsx (a black open, a yard, a room) 0.923-0.933 SSIM to the frame alone on
0.1.9, 0.996-0.997 with hidden parts untraced; kept-light.tsx solari-gone (a box unmounted at frame 15) 0.987, 0.998; every
single change of a light or the look follows the frame. tools/frame-pure-3d.sh checks each composition a repro names at
the bar it names (Solari's noise: 0.99).
2026-11-22 16:53:20 -08:00
shinyobjectz a18b7c757c whats-new 0.1.9: Google's AI connects again (raea-feed #102, Antigravity)
The 0.1.9 app carries raea-feed #102 (merged 0747749059): Google stopped serving Gemini CLI to personal accounts on
06-18, so the app's Google pick starts Antigravity instead. A paying user's bug report found it. docs/ is outside what
a promotion compares, so v0.1.9 can still be promoted from rc2.
2026-11-22 13:59:28 -08:00
shinyobjectz a2f91a82c3 Windows: vendor/bevy_pbr's shaders keep LF, so raea's forks of them pass their hash check
0.1.9-rc1's Windows pack panicked at its first render: "Bevy's bevy_pbr/volumetric_fog/volumetric_fog.wesl changed
(hash 0x1849e019c9fbec64, raea's fork was taken from 0xd6b92688464146be)". swap_embedded_shader hashes the embedded
bytes, vendor/bevy_pbr is now in the tree, and a Windows checkout turns its LF into CRLF; shadows.wesl and
environment_filter.wesl, forked the same way, would have stopped next. Mac and Linux passed. Only bevy_pbr's shaders
are pinned: all are stored LF, while hanabi's are stored CRLF and are hashed by nothing.
2026-11-22 13:14:10 -08:00
shinyobjectz be71820281 L2: the app's build links ~/raea's apps/site, as a release's does
Conformance gave no results on cdd44b172d: its app build (vite, blitz/vite.config.ts) stopped at host/library/local.ts's
import of apps/site/api/src/library/fuse.ts, which the private repo holds and a public commit doesn't. l2.sh links it
from ~/raea beside the app's node_modules, as the release builds the app in a maintainer's checkout.
2026-11-22 12:48:38 -08:00
shinyobjectz 1c63d49e8b Plugin bindings: SolariLighting's first_bounce_probability and the Tint material, as L2's registry read has them
L2 on cdd44b172d found sdk/plugins/src drifted from the plugin build's TypeRegistry: the realism stack added
SolariLighting::first_bounce_probability and MeshMaterial3d<ExtendedMaterial<StandardMaterial, Tint>>, which only that
build can read (L1 doesn't make it). Generated by tools/bevy-plugins.sh gen with L2's raea-bevy-sdk; its check then
says the bench matches its lock.
2026-11-22 12:45:29 -08:00
shinyobjectz e3b55f2990 skills pin: raea-skills #114, so 0.1.9's strict skills gate passes
The release's gate (tools/release.sh: SKILLS_STRICT=1, its own raea) failed at 584be72747 where L1's lane check only
warns: the pinned cli.md was made before raea ask reached raea's help, and raea/random-colors (#176) was taught
nowhere. craft/motion.md now teaches random, interpolateColors and OffthreadVideo where it says how to seed what holds
still; tools/skills.sh skips the module itself, whose names come from raea; the pin takes raea-skills 6c7cbf0, with
cli.md and the guide's copy generated from raea's main and raea-feed's. In a clean archive with these: skills: ok.
2026-11-22 12:13:09 -08:00
shinyobjectz 584be72747 whats-new 0.1.9: the long film's own numbers, as the launch thread gives them
Past 24 GB before (memguard stopped it at 28 to 33 GB), a 4.8 GB peak now (4202a87850), beside the 13,000-frame
control's 8%.
2026-11-22 12:02:55 -08:00
shinyobjectz 8bc4afdd4a whats-new 0.1.9: 3D renders check themselves, parts follow the frame, long films whole, light, nothing to build, raea ask
RL4's notes for 0.1.9, from the 145 commits since v0.1.8 and raea-feed's merges since 11-19 (#86, #92, #98-#101), each
claim checked against its commit or the release build's usage. Known carries 0.1.8's items that still stand, drops
DirectX 12's slower compile for DXC's unmeasured one (#215), and adds the whole-film frame-pure fault Stay showed.
2026-11-22 11:58:06 -08:00
shinyobjectz 2dbedfe1d2 L2 on a public commit: the feed app at raea-feed's main, as L1 reads it
A commit of the public repo records no apps/app (neither its files nor a submodule pointer: the app is raea-feed's,
outside the export), so l2.sh checked out an empty commit in its app clone and stopped before building. It now fetches
raea-feed's main into the checkout's own clone, the commit L1's skills step reads when the tree names none.
2026-11-22 11:51:27 -08:00
shinyobjectz cdd44b172d SG9, SG13: Stay on the 0.1.9 stack, its three errors cleared and its whole render's light caught
Stay's composition (in its project, not this repo) now ends the montage's glasshouse move where it comes nearest the
plant, and its two words over the picture say data-allow-overlap: rendered whole it has no camera-reverse or
type-over-part error, and its 35 chunks (tools/film.sh's route) render with none. Rendered whole it has 12 frame-pure
errors, each a later shot drawn far darker than the same frame alone: SG9 doing its job on the fault Stay's code works
round, written down as what's left.
2026-11-22 11:45:26 -08:00
shinyobjectz 4797b5ca61 SG4a: the bounce spills to a scratch file as the frames come
The render's sound streamer reserved both channels for the whole render and filled them a frame at a time, so a
render's resident memory grew 12.8 KB a frame even with nothing to hear (Malloc Large's resident pages climbing while
its size held: about 143 MB over the 13,200-frame control after its first minute). Each frame's samples now go to an
unlinked scratch file (raea_io_home::scratch_file) and are read back once after the last frame, and only when something
sounded: a silent render lets its bounce go unread. A full disk while writing it is said as one. raea-sys-mix's
offline tests pass unchanged (the bounce reads back the same samples).
2026-11-22 11:15:00 -08:00
shinyobjectz 3c8fc66bc0 SG4a: the end checks run as the frames come
raea-sys-stage's Staging and raea-sys-contact's Clipping take each frame's parts as it's drawn and keep only
what their verdicts read: each frame's camera, each block of words' and each named part's place on screen, each
frame's cover and subject, the words over parts, and the solids of the parts on screen (a part's let go once
it's been gone 120 frames, an overlap's kept until it's said; only the last frame's pair tests are reused).
raea-runtime-endchecks hands each frame in; a still's frames go in one at a time, their parts made and let go.
Nothing keeps a render's parts now: raea-io-kept is gone. raea-core-scene's ids_of names a frame's parts as
spans_of follows them. Contact's unused slice check and told are gone, its deepest hit shared with the lint.

The film: the same 439 errors, 705 warns and 47 notes in the same order; end checks 0.6 s (22.7 s); a 4.06 GB
resident peak (4.76). The control's end checks add nothing (1.32 GB after its last frame; they rose to 1.52 GB).
Its frames still grow 25% after the first minute (docs/stage-guards.feature).

LX7's plan row follows the clipping check's per-frame code into clip.rs. raea-cli's tests name raea scene's
usage where it moved (raea-app-scene), and an unused alias goes.
2026-11-22 09:41:52 -08:00
shinyobjectz c2e10d5181 skills pin: raea-skills #113, the 3D guides' copies and the SDK reference for nobuild 2026-11-22 09:41:52 -08:00
shinyobjectz eb5ce854ca Manual reference: <Environment portals> and FogVolume's soft and taper (tools/manual-ref.sh gen)
The SDK pages, generated on origin/main with this stack: the sky portals and the fog volume's soft edges and taper
from the Solari look work below nobuild.
2026-11-22 09:41:52 -08:00
shinyobjectz cd03baf109 nobuild: its copied code folded into what it copies (dupes: 293 exact, 57 near)
- raea-sys-rt: one GPU timer for a traced pass (timer.rs), used by raea GI and the far sun; one reader for a pass's
  reach (RAEA_SUN_FAR, RAEA_TRACED_AO); one compute-pipeline queue (cache::pipeline) for GI and its cache.
- raea-io-trace: overrides(), the variables still set over a component's props, said once a run; <VolumetricFog> and
  <SolariLighting> both read through it.
- raea-render-raytrace takes raea-sys-post's Halton places (a facility crate) instead of its own copy; the settings'
  split, taa and one_pass are read where metalfx uses them.
- engine-shaders keeps its declared shaders in a map; fog reads RAEA_FOG_EPI's places in one match; smaller rewrites
  in plugins, look, stats, lod, compose and post.
- tools/dupes.max: exact=293, near=57.
2026-11-22 09:41:52 -08:00
shinyobjectz f8c16d2656 nobuild: the crates' sizes, layers, taxonomy and licences L1 checks
raea-sys-frame was past its 2,000 lines: the engine's own shaders move to their own crate, raea-sys-engine-shaders
(<ShaderConstants>' type is raea_sys_engine_shaders::consts::ShaderConstants), and the path tracer moves into
raea-sys-rt beside the traced passes that use it (<Pathtracer>'s type is raea_sys_rt::pathtracer::PathtracerSettings).
raea-render was past its limit too: the AOV prepasses and readback move into raea-sys-compose::aov, raea-render
keeps the plugin and its want/capture. raea-render-raytrace, raea-sys-fog, raea-runtime-export and raea-render name
the new paths; tools/layers.toml places raea-sys-gi and raea-sys-engine-shaders; tools/taxonomy.list has
ShaderConstants.

tools/licenses.sh measures raea-cli without the plugin catalog's edge (the catalog is its own feature), so NOTICE's
catalog and LICENSES/ drop 18 crates only the catalog's optional plugins reached; NOTICE's opening sentence still
covers every crate in Cargo.lock.
2026-11-22 09:15:58 -08:00
shinyobjectz c6c165ca4c Solari: the binding array's dummy buffer is one traced vertex, 64 bytes
7c12c971c4 widened Solari's traced vertex to 64 bytes for its colour, but the dummy buffer bound into a binding array's
freed slots stayed 48, the vertex before. Once a part's mesh slab was freed, its slot held the dummy, and the GPU
refused the frame (buffer bound with size 48 where the shader expects 64): Stay stopped at frame 1699 every time, in
a whole render only, never in stills. The BLAS's stride and the dummy now read one constant, VERTEX_BYTES, and Stay
renders to its end.
2026-11-22 09:15:58 -08:00
shinyobjectz 97e3fc3892 vendor: bevy_pbr in the manifest, and Solari's thin-surface change in restir.wesl marked
nobuild vendored bevy_pbr (G-buffer transmission and pre-exposed emission, the jittered prepass's dither, RaeaFarSun
for LT21, RaeaGiScreen for LT3) and patched it in Cargo.toml, but vendor/vendor.toml didn't list it, and restir.wesl's
visibility rays from the sample's side carried no raea: mark, so tools/vendor check failed. Both stated, with each
patch's reason and the way back to upstream.
2026-11-22 09:15:58 -08:00
shinyobjectz 2487f40dd1 NB2a: raea check's blotching debug read as a stat channel in main's scorer
Folded in when nobuild met main: main moved the blotching closure into scorer(), so this commit's RAEA_CHECK_DEBUG
read through raea_io_trace::stat moves there with it.
2026-11-22 09:15:58 -08:00
shinyobjectz e9909de88f NB2a: debug views as channels with values; messages that told an author to run cargo
io/trace's stat_value gives a channel a value (pass=depth, lod_debug=time, fog_skip=a,b; a channel chosen bare is
"1"), its variable still the override. Nine debug views (clay, fog_debug, fog_show_fallback, lod_debug, pass,
pass_rays, pass_reach, song_debug, volume_debug), inspect and fog_skip go through it, so a composition chooses them
with stats.on. tools/nobuild.sh stats: pass=depth chosen from TypeScript draws RAEA_PASS=depth's frame (max 0 levels
apart, 240 from the picture), and its static check covers the 35 stat and view variables decided done.

raea song, framing="face" and matchmove say to update raea when raea-perceive is missing (releases ship it) rather than
to build it. export-game says this raea ships without raea-game and how to ask for it; the note on the smaller player
prints only to a checkout's build.
2026-11-22 09:15:58 -08:00
shinyobjectz ee42e31469 NB2a: stat channels and pass timings chosen and read from TypeScript
io/trace's stats.rs: a stat channel is a RAEA_ variable's name without RAEA_ (bake_trace, trace, bevy_passes), on
when the composition chose it (native("stats.on", { channels }) at its top level), when RAEA_STATS lists it, or when
its variable is set, the override. The 51 reads of 24 trace and stat variables go through raea_io_trace::stat. Each
of Bevy's render passes (RenderDiagnosticsPlugin, on by bevy_passes) and PassTimer's go into the run's totals, with
the counters engine/draws and engine/updates; native("stats.read", {}) returns them, and a run that chose a channel
prints the table and keeps stats.json in its trace folder (docs/manual/reference/cli/traces.md).

tools/nobuild.sh stats checks it: every channel decided done reads through stat(); the scene choosing bevy_passes and
trace traces, reads 9 passes and 11 draws back on its last frame, prints the table and keeps stats.json; with nothing
chosen nothing prints; RAEA_TRACE=1 and RAEA_STATS give the same trace lines. 12 frames take 12 updates.

raea-render's lines stay as they were (NB4a's plugin choice folded to one line). native-calls.ts gains the two calls,
and bevy.app.*, which raea registers now that the macOS build links the plugin catalog.
2026-11-22 09:15:58 -08:00
shinyobjectz d30c4a687a NB4a: the macOS raea carries the plugin catalog
raea-cli's macOS dependency table turns on raea-bevy-plugins/catalog and raea-runtime-react's bevy-plugins, so the
default build has every catalog plugin compiled in and adds each only when a project chooses it. tools/nobuild.sh
catalog on it: avian's ball falls and hanabi's fountain rises in a render and in play, package.json chose both, and
blur, a 2D card, fog, steady and the path tracer draw the same pixels as raea without the catalog (max 0 levels).
Windows and Linux stay as they were until their builders build it and pass the check. The check's pixel counter read
ImageMagick's colour fields one place off.
2026-11-22 09:15:58 -08:00
shinyobjectz f2bf93cbee NB4a: an Engine adds only the catalog plugins its project chooses; raea-cli's catalog feature compiles them all in
package.json raea.plugins (a list of names, or declarations keyed by name) chooses them, a scene's components and
resources under a plugin's crate add that plugin, and each chosen plugin brings the ones it needs. raea's own
registrations and a build without the catalog are unchanged. The run's trace records what was chosen and why
(plugins_chosen), and a name the build lacks is said once. sync writes engine/bevy-plugins' catalog feature: every
declared plugin but those declared "catalog": false (bevy, Bevy's optional features). tools/nobuild.sh catalog renders
and plays a project choosing avian and hanabi, and compares scenes that choose none against a raea without the catalog.
2026-11-22 09:15:58 -08:00
shinyobjectz 1dee25c609 Steady's rates, motion blur's kind, the path tracer's samples and air, and Solari's dynamic are props, each checked against its variable
Eight more environment variables become props, each variable now only an override on every camera:
- <AntiAliasing steady={{ still, moving, px }}>: steady's rates (systems/post Steady's fields), over RAEA_STEADY_*.
  RAEA_STEADY stays the every-camera form of mode="steady".
- <MotionBlur kind="shutter"|"bevy">, over RAEA_MOTION_BLUR.
- <Pathtracer samples media>, over RAEA_LIGHT_SPP and RAEA_PT_MEDIA=0. They live in raea_sys_frame::pathtracer
  (PathtracerSettings), so the fog's volumes can read media. A render draws each frame as many times as the most any
  camera asks for.
- <SolariLighting dynamic>, over RAEA_SOLARI_DYNAMIC. This was read once when the plugin was built. It is now a
  SolariSettings field, and the skin-twin and hidden-part systems run while any traced camera asks for it.

tools/nobuild.sh props gains a column for the composition the variables go on (RAEA_STEADY needs a scene without
steady), and a "traced" light path for a scene that asks for Solari or the path tracer itself. Settings with no trace
record of their own are checked by pixels alone. Three fixtures join fog.tsx: steady.tsx, blur.tsx and traced.tsx
(Pathtracer and Solari, with a slab there on the first frame only). All 15 rows pass:
- steady, its rates and the blur's kind are pixel-identical to their variables;
- the path tracer is deterministic, so samples and media compare exactly too: 21 and 27 levels from the default's;
- dynamic is as near its variable as two runs are (0.013 against 0.014), and the hidden slab's shadow is gone (5.8
  levels).

docs/nobuild.feature NB1a.
2026-11-22 09:15:58 -08:00
shinyobjectz cb40dca08b The volumetric fog's RAEA_FOG_* knobs are <VolumetricFog> props, and tools/nobuild.sh props checks each against its variable
Fourteen variables tuned the froxel fog, each read inside the render world. They are props now, the variable only an
override that wins on every camera and is said once:
- shadow (what dims light through a volume);
- heroExact, epipolar (the shafts' samples) and tricubic;
- under <SolariLighting>, solari: false, or its candidates, history frames, sky rays, what lights it, filter and guide.
mode, hero, tile, slices and samples were props already; RAEA_FOG_MODE, RAEA_FOG_HERO and RAEA_FOG_GRID now override
them the same way.

raea-sys-fog's froxel/tuning.rs reads the camera row's new vfog_* columns into FroxelFog.tune, which the render world
reads per view. Its parts:
- the shadow rule from the first fog camera;
- the hero passes' pipelines keyed by tricubic;
- Solari's fog light on or off for each view.
The settings each camera draws with go into the run's trace as fog_settings.

tools/nobuild.sh props renders each row of tools/nobuild/props.tsv twice and compares them: the composition that sets
the prop, and the scene's base with the variable. A raster frame must match exactly. A Solari frame must be as near
as two base runs, with the prop moving it well past that. The settings records must match. tools/nobuild/fog.tsx has
nine compositions, and all nine pass:
- the seven raster ones are pixel-identical (max 0) and each unlike the default;
- Solari's settings agree within 0.007 levels (noise 0.007) and move the frame 1.5;
- Solari's off agrees within 0.010 and moves the frame 9.6.

The inventory scan reads new files as well as tracked ones (git grep --untracked, .gitignore still honoured).

docs/nobuild.feature NB1a.
2026-11-22 09:15:58 -08:00
shinyobjectz 177f74e376 Every shader constant in the inventory is set from TypeScript: arrays and vectors too, toon and lens embedded, Solari's inline numbers named
<ShaderConstants> takes a list for an array or a vector (array<f32, 6>, vec3<f32>, vec3). The list has as many values
as the constant holds, and each keeps the element type. An array of vectors, or a length that doesn't match, is
reported and left alone.

toon.wesl, toon_outline.wesl and lens.wesl move from load_internal_asset! to the embedded registry, so a project's
engine-shaders/ and <ShaderConstants> reach them too. The toon and lens scene is pixel-identical before and after
(max difference 0, three frames).

The four numbers written inline in raea's patches to Solari and in emit_taa are now named constants, with typed props:
- SPECULAR_MOTION_ROUGHNESS (0.0625) and REFLECTION_DEPTH_SHARE (0.5), as mirror.motionRoughness and mirror.depthShare;
- GLOSSY_NEE_FLOOR (0.25), as glossyLightFloor;
- emit_taa's STILL_LOW, STILL_HIGH, MOVING_GAIN and MOVING_FLOOR, as emissiveClamp.
The jitter cycle's 8 is SolariSettings.jitter_frames (<SolariLighting jitterFrames>). The trace's solari_settings
reads 8 by default and 16 from jitterFrames={16}.

tools/nobuild.sh consts is the per-row check. It writes one scene that sets every inventoried shader constant through
<ShaderConstants>, renders it with every pass on, and records each row as settable, refused or absent in
docs/nobuild/consts.tsv. Result: 87 of 88 are settable. The one refused is raea_sys_gi's SPOTS, an array of vec2 that
stays as it is.

docs/nobuild.feature NB1a.
2026-11-22 09:15:58 -08:00
shinyobjectz b3c2394cb7 A constant in any engine shader is set from TypeScript: <ShaderConstants>, and <SolariLighting constants> for Solari's
<ShaderConstants shader="bevy_solari/realtime/restir.wesl" values={{ SPATIAL_REUSE_RADIUS_PIXELS: 24 }} /> (raea/pbr)
puts a reflected raea_sys_frame::engine_shaders::consts::ShaderConstants on a bare entity. When an Engine opens, the
first frame's component rows are read and each named `const NAME ... = EXPR;` is rewritten before anything compiles,
in whichever text the Engine draws with (the binary's, a project's engine-shaders/ copy, or RAEA_ENGINE_SHADERS'
copy). An embedded shader is rewritten in the registry and swapped in Assets<Shader> as its first load lands. A shader
a crate hands to wgpu (emit_taa, the MetalFX guides) gets the constant through engine_shaders::text. The const keeps
its type: a float literal, or an expression of floats such as PI, takes a float; a u32 or an i32 takes a whole number;
a bool takes a boolean. A name the shader doesn't declare, an array, a vector, or a shader the Engine doesn't have is
reported and left alone. The constants are compiled in once, so a value that a later frame brings or changes isn't
drawn, and raea says so once. The trace's engine_shaders and engine_shader_text events give each changed shader's text
by its FNV hash. Two runs drew with the same shaders when the hashes agree, whatever the pixel noise.

<SolariLighting constants> types thirteen of Solari's and the denoiser's: spatialReuse, mirrorRoughness, cacheEnd,
cacheLifetime, cacheSearch, the three reconnect rules, mirror's four (RT17's replacement rules) and emissiveHistory
(emit_taa's HISTORY_CAP).

Checked:
- PI = 4.5 in bevy_render/maths.wesl, from <ShaderConstants> and as the same edit in engine-shaders/, compiles to the
  same text (0xc654f1dc03f921b3), and the pixels are identical on all four frames (max difference 0). 57% of the
  pixels moved from the plain run.
- On the desk under Solari, constants={{ mirrorRoughness: 0.3, emissiveHistory: 2 }} and the same two edits in
  engine-shaders/ compile the same bindings.wesl (0xf8394379c716471c) and emit_taa (0x66661df32dc6be6b). Both mirror
  the monitor stand's base; the plain run doesn't.
- A missing name, an array (look.wesl's DARK) and a missing shader are each reported, and those shaders are left
  unchanged.
- The SDK manual pages are regenerated, and the 3D guides say how to use the constants.

docs/nobuild.feature NB1a.
2026-11-22 09:15:58 -08:00
shinyobjectz 737468b8cd The engine's own shaders open to a project: a file in engine-shaders/ replaces one from its first frame, with no build
A project's engine-shaders/ folder mirrors the paths Bevy embeds shaders at, <crate>/<path under its src>
(engine-shaders/bevy_pbr/render/pbr.wesl, engine-shaders/raea_render_raytrace/emit_taa.wgsl). When an Engine opens,
after every plugin has embedded its shaders, each file there replaces the binary's in Bevy's EmbeddedAssetRegistry,
and raea names them and warns that each is tied to this raea's version. A shader whose plugin loaded it during build
(load_shader_library!) is swapped in Assets<Shader> in PreUpdate, right after the asset server hands over its first
load, so the pipelines' first compile has the file's text. An AssetServer::reload would land some frames later and
recompile every pipeline that used it partway through a render. An empty file is filled with the shader this raea
draws with, so an author has the original to start from without the sources. A file that matches no engine shader is
reported as stray.

RAEA_ENGINE_SHADERS=DIR points at a raea checkout. Every .wgsl and .wesl in its git tree is read at its embedded path
(the crate named by the nearest Cargo.toml), so a session that edits an engine shader renders the edit without a
build. raea prints how many of them differ from the binary's. raea's runtime forks of Bevy's shaders
(swap_embedded_shader: shadows, volumetric fog, dof, post, the environment filter) are made from Bevy's original at
load, so tree mode leaves them as made. raea-render-raytrace's own wgpu shaders (the MetalFX guides and emit_taa)
are read the same way through engine_shaders::text, and are declared with their built-in text so they can be filled.

Checked on a lit scene and on the desk room under Solari:
- the unchanged pbr.wesl as an override is pixel-identical on all four frames;
- an inverted pbr.wesl inverts 57% of the pixels from frame 0 on;
- the same edit through RAEA_ENGINE_SHADERS gives the same pixels (max difference 0);
- emit_taa with its restore removed takes the screen's green from 67-69 to 29.8 (project) and 29.9 (tree);
- the real checkout in tree mode reads 110 shaders, none unlike the binary's, and lands 0.2 levels from a plain run,
  within run-to-run spread (two plain runs differ by 6.2);
- empty files are filled byte for byte with vendor/bevy_pbr's pbr.wesl and raytrace's two shaders.

docs/nobuild.feature NB5b; the 3D limits guide says how an author uses it.
2026-11-22 09:15:58 -08:00
shinyobjectz 82f1fb4052 <SolariLighting>'s denoiser, guides, emission and jitter are props: an A/B is two compositions, not a build
Ten choices the traced light made from environment variables read once (RAEA_SOLARI_DENOISE, _PSR, _PSR_DEPTH,
_EMISSIVE, _UPSCALE, _AA, _JITTER, RAEA_METALFX_PREEXPOSURE, RAEA_EMIT_TAA_SHARP), so trying one on a scene meant a
build or a copied binary, are now fields of raea_render_raytrace::SolariSettings, a reflected component on the camera
read per view each frame: <SolariLighting denoise guides reflectionDepth emissive upscale preexposure aa jitter
emissiveSharpness>, each prop's TSDoc saying what it changes and its default. Solari's own fields are props too
(primarySamples, secondarySamples, confidenceCap, firstBounce, and the world cache's frames, lightSamples, reach,
updates, cellSize, lodScale). Each variable still overrides its field on every camera, a developer's A/B across scenes,
and raea says so once on stderr. Every view's settings as they applied go into the run's trace (solari_settings),
the first frame and on a change.

Checked on window.tsx's orb (the window scene's live settings as <SolariLighting> props, each knob set one way by
the prop and the other by its variable): the settings each view drew with are the same for all eleven (with scale's
RAEA_SOLARI_SCALE), each differs from the defaults', and the scene's raw <BevyComponent> fields and <SolariLighting>'s
give the same. Pixels can't be compared exactly (two runs of different compositions differ by 0.45 levels on
average, of one composition by 0.11); where a knob moves the picture well past that, the prop's and the variable's
agree (denoise off 6.4 levels apart against 33 from the default; preexposure 4, 0.7 against 2.5).
2026-11-22 09:15:58 -08:00
shinyobjectz 99c3f52524 tools/nobuild.sh: why raea is built, and every cause of a build in the code with its TypeScript form
builds sorts every cargo or lane build in antsy's history by its stated purpose (the last 14 days: 2870 builds, 57.2 h,
44 sessions; 161 trying a value, a toggle, a debug view or a timing, 204 a TS-facing feature that needed engine glue).
scan lists RAEA_* environment reads, shader constants, the binaries' optional features, declared Bevy plugins, places
that tell an author to run cargo, and causes written down by hand, each joined with its decision (class, TypeScript
form, check, status) into docs/nobuild/inventory.tsv: 432 causes, 224 that stay (machine settings, raea's own
plumbing, a shader's own math) and 214 open.
2026-11-22 09:15:58 -08:00
shinyobjectz a691968e57 A glossy reflection no longer trails what it shows: the denoiser takes its reflection's depth
MetalFX's denoiser was given the glass's own depth on a glossy screen, so when the orb it reflected moved on there was no
disocclusion for it to see, and it smeared the orb's history along its path. Solari's guides now put a glossy pixel that
moves as its reflection does (perceptual roughness up to 0.25) and mostly reflects (a specular share of 0.5 or more) as
far off as what it reflects, as a mirror's already was, and keep it on the frames it draws its diffuse lobe, as its
motion is kept; MetalFX takes that guide depth (R32Float) in place of the prepass's. A glossy pixel whose reflection
leaves the scene gets the depth of the far point its motion is of: left unwritten (0, the sky's), MetalFX darkened
window.tsx's shelves, far from those pixels, by 8%.

window.tsx (736x981, Solari live preset, every frame drawn once), the worst tile against the same moment settled:
the monitor's tile with an orb crossing, frame 50, +0.71 -> +0.08 stops; every other event, the pans, the flicker,
blur.tsx's trail (0 px) and the forest's canopy (1.11 of the path tracer's) as before; photo 1's desk-still the same
(lit tiles within 0.08 stops, the CRT's 0.0). RAEA_SOLARI_PSR_DEPTH=0 gives the denoiser the prepass's depth.
2026-11-22 09:15:58 -08:00
shinyobjectz 8bd79bd034 Split emission: what a pixel showed is let go once it has gone
RT11 gathered Solari's split emission over frames with no clamp, and a still pixel skipped the depth test, so sky
glimpsed through twigs in some jittered frames kept its light. That also kept whatever a still pixel showed once it had
gone: a 30000-nit orb crossing the desk left a white tube along its path, and one taken or switched off stayed white for
seconds (docs/raytracing.feature RT32).

Each history now keeps the depths it was gathered over (the history depth is Rgba32Float) and, for the nearest of
them, the evidence: how often it is about, how many frames it hasn't been, and whether it was moving when last seen,
all carried with the history as it's reprojected. A still pixel's history is:
- dropped where none of those depths is about it now (a pickup taken, a light that starts off from rest)
- held to the emission about it (3 x 3 samples) and its evidence started again where its nearest surface has gone:
  away longer than a surface about nearly every frame can be, away the jitter's whole cycle (8 / s^2 frames, from
  upscale.rs), or moving when last seen (an orb's rim as it passed)
- held to the emission about it where every surface it saw is about (a lamp switched off goes dark at once)
Where the view moves, a history is kept if its depth is among those about it and its nearest surface hasn't gone; it's
held only above four times the brightest emission within the history read's reach (5 x 5), and one that fails keeps
one frame's weight. A twig is found again by some jitter position within a cycle, so the canopy keeps its light.
RAEA_EMIT_TAA_DEBUG=4 paints which rule held each pixel.

Measured (lightbench window.tsx, 736x981, the Solari live preset, every frame rendered, each drawn once; the worst of
256 tiles against the same moment held still and settled, whose own noise is 0.07-0.10 stops), before -> after:
- an orb crossing the desk, still camera, frames 30/50/70: +3.61/+3.47/+3.38 -> +0.37/+0.71/+0.21 stops (what's left
  is the monitor's glossy reflection and the desk's lighting lagging the orb)
- one that starts from rest, frames 50/70: +2.42/+3.68 -> +0.31/+0.34 (its rim fades within the jitter's cycle)
- taken, and switched off, still camera: +2.29 and +2.56 -> 0.19 and 0.18 at most
- the same while the camera pans: +2.03 and +2.29 -> 0.19 and 0.17 at most
- blur.tsx's ball over an empty background: 14682 px of trail at frame 11 -> 0
- photo 2 drifting: 0 px jumping 80 levels from frame to frame, before and after
- the forest's canopy against the path tracer: 1.09 -> 1.11 (the whole frame 1.09 both)
2026-11-22 09:15:58 -08:00
shinyobjectz 3796d708db Renders draw each frame once: the Engine's reads skip the frame drawn last
Before each frame f, a render with 3D drew frame f - 1 again, so the Engine's reads (S2d) answer from f - 1's World. In
order, f - 1 is the frame drawn last and its World is f - 1's already; engine_before's comment said that frame was left
as it was, but Engine::draw skips a redraw only when a Bevy plugin is active. So every frame of a render drew twice,
and every temporal pass (Solari's, MetalFX's, the split emission's) took a second update in which nothing moved, which
live play never draws. With MotionBlur's pre-step on top, a blurred render drew each frame four times.

Engine::drawn says which frame drew last, and engine_before draws f - 1 only when it isn't.

Measured (lightbench window.tsx under Solari, 150 frames): the emission pass ran 307 times, now 158 (150 and the
load's 8 warm-ups); live play runs it once a presented frame. A moving orb's rim, seen still on each second draw,
had stayed as rings at every place it had been. The bevy-ts cases: 89 pass and 4 open before and after (the
world-read cases among the passes), in 1m55s instead of 2m23s. Motion blur unchanged: the shutter's three scores
(0.002, 0.067/0.034, 0.044/0.044), a camera's jump 0.00 levels off the sharp frame, a dash blurred from frame 1.
2026-11-22 09:15:58 -08:00
shinyobjectz 2929ce6a04 Camera cuts: a camera that jumps drops its history, and motion blur skips the jump
A cut to another camera was marked (Shots, RR2), but one camera moved far
in one frame, as a game's respawn or teleport moves it, was not. Solari's
and MetalFX's history carried the last view into the new one for half a
second, steady's filter blended it in, and motion blur streaked every pixel
along the jump.

raea-sys-post cut.rs sets CameraCut on each 3D camera every frame. A jump is
a turn of more than half the field of view in one frame, a lens changed by
half or more, or a step ten times the camera's recent pace and longer than
ten near planes. A camera's first move after it appears or cuts opens a
shot and is no step cut, unless it was seen resting first (unmoved across
two consecutive film frames). So a shot that opens on a fast move keeps its
blur, and so does a frame drawn alone with --at: the engine loads that
frame's pose at frame 0, then steps from the frame before. On a cut,
Solari's reset is set (MetalFX's denoiser, its scaler and emit_taa follow
it), steady starts its history again, and the shutter draws nothing.

Measured (lightbench window.tsx at 736x981 under Solari, the live preset;
each frame after the cut against the new view settled; worst 1/8 tile):
- one camera jumping to a view it never saw: first three frames 0.50, 0.43,
  0.38 stops -> 0.17, 0.13, 0.12 (a reset by hand: 0.14, 0.13, 0.12)
- a 90-degree flick in 15 frames: unchanged (no cut), 0.11 stops at its end
- blur.tsx, a 3 m jump with blur on: the jump frame 70.8 levels off the
  sharp frame -> 0.0. A pan of 1.5 m a frame from frame 0 is still blurred
  from frame 1, and its --at frame matches the full render's
- the three shutter scores unchanged (0.002, 0.067/0.034, 0.044/0.044)

Steady's reset follows the same flag; no steady scene was cut here.
2026-11-22 09:15:58 -08:00
shinyobjectz 929c03d5e4 Motion blur: each pixel gathered along the longest motion near it, as a box shutter spreads light
Bevy's MotionBlur gathers each pixel along its own motion, so a still pixel
beside a moving one takes none of its light. A ball crossing a still frame
smeared inward only: 64 px where the shutter's streak is 86, with 8% of its
light lost. In a tracking shot, the bars behind the ball streaked inside their
outlines only, keeping 0.68 of their light.

raea's Shutter replaces it under raea/3d's MotionBlur (RAEA_MOTION_BLUR=bevy
keeps Bevy's, to compare). It finds the longest motion in each 20 px tile
(across the tile's rows, then down them), then in each 3x3 neighbourhood of
tiles, and gathers each pixel along that motion. A tap nearer the camera than
the pixel counts by its own motion; one as far or farther counts by the
pixel's. Each tap is worth 1/|v| per pixel of path, as a box shutter spreads a
moving pixel's light. The share of the open shutter that no tap reaches is the
pixel itself. This is McGuire et al. 2012's tiles and depth split, with its
cone weights replaced by the box shutter's. It takes 1.5 taps per pixel of
path, at most two per sample each way, and reads single- and multisampled
prepasses; under MSAA a pixel's own depth and motion are its nearest
sample's, so an edge pixel part-covered by a moving surface moves with it
(its first sample alone left a ring at the moving ball's outline).

A still surface's streak that slides out from behind a nearer still one
isn't in the frame, so it stops short at the nearer one's edge (the 0.034).

Tested against the shutter's own truth (32 sub-frames a frame, the open half
averaged; LightBench's blur scenes):
- a ball crossing a still frame: profile error 0.077 -> 0.002, light 0.924 -> 0.999
- a tracking shot: the bars' streak 0.369 -> 0.067, the bars beside the ball
  0.699 -> 0.034, the ball still sharp
- a pan with parallax: the bars' streak 0.188 -> 0.044, the bars beside the
  ball 0.866 -> 0.044
- under Solari (single-sampled): 0.026 -> 0.002

Cost at 1920x1080 with MSAA, measured by repeating its passes 40 and 80 times a
frame: 0.2-0.35 ms played live (a few pixels of motion a frame), and 0.6-1.1 ms
at 32 taps on long streaks. One pass reading 400 texels per tile had cost
1.1 ms on its own.
2026-11-22 09:15:58 -08:00
shinyobjectz 4d5deeedac Closed solids: a ray that finds a solid's inside ends there
RT28 shaded every back face as its front. A ray that starts inside a closed
solid (within RAY_T_MIN of a contact, where a floor ray's origin lands inside
a 5 cm ball) then bounced round its inside until Russian roulette, which a
white surface never ends: the contact test with a 5 cm white ball hung, and
the 1 m one took 59 s.

Now only a two-sided hit is shaded from behind: a double-sided material, or
one passing light through. GpuMaterial's padding word carries
StandardMaterial's double_sided. Any other back face ends the path in the path
tracer and the initial path, and is a sample of nothing in the world cache, as
before RT28.

The 5 cm white ball takes 17 s, the 1 m one 4 s. The thin-sheet test is
unchanged, and so is Solari against the tracer on the five scenes (Solari's
light 0.998 of before on the window and the hall, 0.991 on the desk).
2026-11-22 09:15:58 -08:00
shinyobjectz 9efe6f8919 Thin surfaces: rays shade a back face as its front, and light passes by diffuse transmission
A ray that hit a surface from behind found it black, in the path tracer and in Solari alike: the BRDF has nothing below
the normal, so the path ended there. Raster turns a double-sided material's normal toward the eye, so Solari's first
hit (from the G-buffer) was lit where the tracer's was black: a needle spray seen from below, a curtain from the
window's side, every beam the hall's kit built inside out. Solari's world cache queried such a hit's cell by its
unturned normal and got the other side's light, a leak (photo 1's desk: 6% over the tracer). A hit's normals now turn
toward the ray (bindings.wesl face_hit) everywhere a ray is resolved; emission stays one-sided, as light sampling has it.

And StandardMaterial's diffuse_transmission now reaches both: the diffuse lobe gives that share of its light to the far
side (Lambertian there, as Bevy's raster splits it), sampled by the same draw rescaled, so a material without it draws
exactly the numbers it did. A ray through to the far side starts off that side (offset_ray_origin), for bounces,
light-sample visibility and ReSTIR's reuse. Bevy's G-buffer carries it in its flags' five spare bits (to 1/31);
Solari's material table carries it exactly, in what was the UV transform's padding.

A sheet that passes 0.3 (lightbench sheet.tsx), sun behind / sun in front: tracer 0.430, Solari 0.410 (0.429; Solari's
G-buffer holds 9/31). Seen from its back: 1.000 of its front in both (the tracer drew it black).
Photo 2's curtain as one sheet passing the window's light instead of a glow standing in for it: 0.90 of the photo
traced, 0.86 under Solari (the glow: 1.29). Solari against the tracer: photo 1 1.062 -> 0.986; photo 3 canopy 1.13 ->
1.10, whole 1.11 -> 1.09 (the tracer lit the sprays' undersides); photo 5 "under the sky" 1.24 -> 0.99 with the kit's
beams turned right side out; photo 4 unchanged; photo 2 0.972 -> 0.951 (the leak had hidden a broad 5% deficit).
2026-11-22 09:15:58 -08:00
shinyobjectz 79d304f87d G-buffer emission pre-exposed, so a bright lamp isn't drawn at 0.80 of its light
Bevy's G-buffer holds a surface's emission as rgb9e5, which tops out at 65408. Photo 5's lamps are 75000 nits of
3000 K white, so their red and green clipped there: drawn at 0.80 of the path tracer's brightness (5.62 against 7.06
in the hall's linear frame) and less red than they are. Solari reads its lights from its own material table, so
their light was right; only what the camera sees of them was clipped.

The emission is now stored times the view's exposure (as Bevy already stores a lightmap's light in the same channel,
and as Solari's light tiles store radiance), so its top is where the display's is; every reader divides it back out
(Bevy's deferred lighting, Solari's G-buffer reads), and MetalFX's guide pass reads it pre-exposed as it wanted it.
It needs the vendored bevy_pbr, so solari-look now stacks on realism.

The hall against the tracer, at MetalFX's display-equivalent pre-exposure: the ring's lamps 0.79 -> 0.99 of their
light, the warm wall 0.80 -> 1.00, the whole frame 0.976 -> 0.984. Photo 3's forest is unchanged (whole-frame linear
mean 1.0006); photo 2's desk differs from the build before by no more than two runs of that build differ.
2026-11-22 09:15:58 -08:00
shinyobjectz d0eb2424a6 Fog: light is dimmed by what the fog absorbs on its way to each point of it
The froxel passes scatter light once, and lit each point as if nothing stood between it and the light, but for
Bevy's constant: exp(-extinction x the box's half-diagonal) on every point of a volume (the hall's steam: 0.10
throughout, its sunlit face and its far side alike). Against the path tracer (it walks the fog, so it has every order
of scattering) grey fog under a uniform sky came out 0.595 of the clear sky where the truth is 0.398.

Each volume now carries the extinction that dims light on its way to a point (GpuVolume.shadow), and the light pass
(the sun, point and spot lights), the hero pass's integrand and Solari's (its lamps, the sky's rays) take the optical
depth along the way through every volume: closed for a plain box (exp(-falloff x height) integrates exactly), 4
Gauss-Legendre nodes where faces are soft or the box tapers. Bevy's constant goes.

RAEA_FOG_SHADOW picks how much of the medium dims: absorb (the default), delta (absorption + scattering x (1 - g)),
full, off, or bevy (as before). Scored against the tracer:
- fogsky, white then grey at the centre (truth 1.000, 0.398): absorb 1.000, 0.411; delta 0.877, 0.362; full 0.746,
  0.317; off and bevy 1.000, 0.595. Dimming by the whole extinction loses the light the fog scatters on toward the
  point, which a single-scatter grid has no other way to bring back
- the hall's air light (with air minus without) against the 16k-sample truth: whole 0.939 (bevy) -> 0.975, steam's
  lit face 0.889 -> 0.925; delta 0.66, full 0.53
- live at 736 x 1312, scale 0.67: 66 fps best, 65 median, as before (the quadrature on the haze, before it was
  closed, cost 4 fps)
2026-11-22 09:15:58 -08:00
shinyobjectz b45cbe4085 Sky portals: Solari samples the sky through a room's openings as a light
A room lit by the sky through a small opening (photo 5's hall, under a 5 x 10 m skylight) got that light only from
rays bounced at random that happened to leave through it: too rarely for the denoiser to keep, so against the path
tracer the hall's wet floor held 0.72 of its light (the sky gives 75% of it there) and the wall by the window 0.58.

<Environment portals> names the openings (each four corners round it); the camera carries them as SkyPortals, the
environment uniform packs up to 8, and each is a light source of a new kind (3). A sample is a point on the opening
(w 2), lit by the environment map along the way through it, from either side, its visibility traced on to the sky.
The light tiles mark it in the normal's lowest bit. A ray that escapes through a portal is weighted against light
sampling by the power heuristic (the initial path, the path tracer); the world cache leaves that light to sampling
as it leaves an emissive's, and the fog pass leaves it to its sky term.

Checked on the hall, no air: the path tracer with the portal against without, 4096 spp, every region 0.99-1.02 and
the whole frame 1.000, its noise down (near floor 0.067 -> 0.018). Solari against the tracer, without -> with: floor
0.83 -> 1.05 (near 0.72 -> 1.03), wall by the window 0.58 -> 1.04, ceiling 0.81 -> 1.07; raw Solari at full scale
1.01-1.03 on both, so what's left (mid floor 1.12, scaffolds 0.99 -> 1.26) is the denoised, upscaled path's. Live at
736 x 1312, scale 0.67: 70 -> 66 fps at best. The fog invariants are unchanged.
2026-11-22 09:15:58 -08:00
shinyobjectz 5a4060df5e Path tracer: it walks the fog volumes, so the hall's haze and steam have a ground truth
The reference path tracer drew no participating media, so Solari's froxel fog was held only to single-scatter
math. It now walks the scene's FogVolumes as raea_sys_fog reads them (pathtracer/media.wesl): a segment's next
collision by delta tracking against the summed extinction of the volumes it crosses, light sampled there by the
Henyey-Greenstein phase with MIS against the phase's own rays, the path going on along a phase-drawn direction; every
light sample's transmittance by ratio tracking. Both unbiased. raea_sys_fog hands it its volume buffer each frame
(PathtracerMedia); RAEA_PT_MEDIA=0 leaves the volumes out.

The froxel passes' Volume, the phase and its sampling move into froxel_volume.wesl, which the tracer imports too.

Checked (lightbench fogsky.tsx, foglamp.tsx, 1024 spp): white fog under a uniform sky leaves it at 1.000 everywhere,
every order of scattering included; a lamp's glow in thin fog 1.01-1.07 of the single-scatter integral beyond 8 px,
growing outward as the higher orders spread it. Grey fog (albedo 0.5) traces to 0.37-0.40 of the clear sky where
Solari's froxel pass gives 0.595: the pass lets the light reach each cell undimmed by the fog on its way.
2026-11-22 09:15:58 -08:00
shinyobjectz 4a5612ae10 Fog: Solari's sky in the froxel grid follows a guide, and each cell's points are stratified
Seen through a small opening (photo 5's skylight, 5 x 10 m, 38 m up), the sky lit each froxel cell through few of the rays drawn from the medium's phase, and once the sky was at its physical share of the sun the haze flickered: 4.61% of pixels moved 8 levels or more frame to frame in the still, 6.83% in the swaying take (3.71% with the pass off).

Each cell now keeps a guide: a fading sum of the directions that reached the sky from it, weighted by the light each brought over its pdf, its own from the last frame and half a neighbour's. Half its rays come from a cone round their mean, as wide as their spread, half from the phase, each weighted by the mixed pdf, so the estimate stays unbiased whatever the guide holds. Weighting by contribution matters: counting the cone's own rays narrowed the cone frame by frame. The cell's point is drawn from an R3 sequence offset per cell, so its history covers the cell sooner; the sky's rays stay random, since a sequence tied to the frames the guide learned from biased it (white fog 2-3% too bright).

Measured on photo 5: flicker 4.61% -> 2.29% still, 6.83% -> 4.26% swaying; the sky term's raw noise in the frame's middle 309% -> 128% a cell. White fog under a uniform sky still leaves it unchanged (1.000), grey fog 0.595 against 0.601, and the hall's regions match the unguided pass within a frame's noise. Two ping-pong rgba32float textures of the atlas's size. RAEA_FOG_SOLARI_GUIDE=0 draws from the phase alone (1 the cell's own guide, 2 a neighbour's).
2026-11-22 09:15:58 -08:00
shinyobjectz b8e2a3d6d2 FogVolume: soft edges and a taper, for steam and smoke that don't read as boxes
The froxel grid filled a fog volume's box evenly (or thinning going up), so photo 5's column of steam showed as a lit rectangle. Two props shape the density inside the box: soft (0 to 1) ramps it in from every face over that share of the half-size with a smoothstep, and taper (0 to 1) narrows the box toward its floor, a plume widening as it climbs. froxel_volume.wesl's volume_weight is the one place the light pass, the hero pass and Solari's pass read a volume's density; FogThinning becomes FogShape {falloff, soft, taper}. Only the froxel grid draws them, as with falloff.

Checked on photo 5: the plume's density 2 with soft 0.8 and taper 0.7 changes the steam's region by 28% against the box; falloff 1 cuts the haze at the ceiling 4 times; volumes without the props render as before (the haze's regions unchanged to 0.01).
2026-11-22 09:15:58 -08:00
shinyobjectz 4506c0ca2b Solari: the world cache counts sky light only where a ray reaches the sky
A world-cache update ray cut at world_cache_max_gi_ray_distance (50 m) counted every miss as the sky, so in a room larger than the cut the cache filled with sky light. In photo 5's hall (41 x 88 x 38 m, its sky at its physical share of the sun) the dark regions came out 2-80 times the path tracer's: the ceiling 2.05, under the skylight 16.5, the drum 82.

A miss now counts the sky only if one any-hit query past the cut reaches it too; one blocked past it adds nothing. The default cut is 1000 m. Against the path tracer (1024 spp, HDR from two exposures 5 stops apart, fog off): ceiling 0.88, under the skylight 1.90, drum 5.4, the whole frame 0.99. The hall's frame rate at 736x1312, scale 0.67, M5 Pro: 75 fps against 76.
2026-11-22 09:15:58 -08:00
shinyobjectz 9ae63e33c2 Fog: Solari's emissive lights and sky light the froxel grid
Under Solari the grid's light pass saw only Bevy's lights, so a lamp Solari lights a room with and the sky through
an opening lit no air. A compute pass after the light pass resamples Solari's light list at each cell (8 candidates,
one shadow ray) and traces a sky ray drawn from the medium's phase, keeps a reprojected history of the light
arriving, blurs it over the cell's 3x3x3 neighbours and scatters it by the medium at the cell; the integrate pass
adds it to the atlas's light. Directional lights stay the light pass's.

Checked: white fog under a uniform sky leaves it unchanged (1.000), grey fog matches the single-scatter answer within
1%, and an emissive sphere's glow matches it within 2-9% beyond two cells. Costs 2.6 ms at 736x1312, render scale
0.67, on an M5 Pro. RAEA_FOG_SOLARI=0 leaves it out; RAEA_FOG_SOLARI_{CANDIDATES,SKY,FRAMES,PARTS,FILTER} tune it.
2026-11-22 09:15:58 -08:00
shinyobjectz cb0d9c5482 MetalFX: pre-exposure 16, so the denoiser's compression stops eating Solari's rare bright samples
MetalFX's denoiser works on bright light compressed, and Solari's one path a pixel is made of rare bright samples (the
sky in a glossy reflection, a lamp found by one path in many), so they counted for less than their share. Against the
path tracer at 1 (the default before): the desk kept 0.74 of its light, the forest's haze 0.72 and far trunks 0.87, the
hall 0.935; Russian roulette's doubled samples lost more (the hall's windows: q 0.5 kept 0.60 of q 1's light, 0.97 with
the frame 3.4 stops darker). setPreExposure(16) divides the colour by 16 before and multiplies the output by it after:
the desk 0.86, the haze 1.03, the trunks 1.01, the hall 0.971 with q 0.5 keeping 0.98 of q 1's; flicker 0.85 -> 0.88% of
pixels. Higher keeps more and lets fireflies through (64: the desk 0.91, the hall's dark corners 1.2; 256: the desk's
wall 1.59). RAEA_METALFX_PREEXPOSURE sets it.
2026-11-22 09:15:58 -08:00
shinyobjectz aaa6f50339 Solari: a light marked volumetric keeps its shadow maps, which cut the fog's shafts
RT10 turned every light's shadow maps off while Solari traces its shadows, but raea's froxel fog reads those maps to
cut its shafts. With them gone a volumetric sun lit the fog everywhere or nowhere: in a hall lit through a skylight
the steam's in-scatter fell from 0.58 to 0.02. A light with VolumetricLight now keeps its maps (and gets them back if
RT10 turned them off before it was marked).
2026-11-22 09:15:58 -08:00
shinyobjectz 87f8ac9a85 Solari's guides for MetalFX: a mirror is denoised as what it shows
MetalFX's guides came from the G-buffer, so a mirror's pixel was guided as the glass: one albedo, one normal. The
denoiser took everything the mirror showed for noise and smeared it (photo 4's arched mirror: its rock a smudge, no
ripples, no dune, no clouds). Solari already works out primary surface replacement guides (a mirror's pixel takes the
albedo, normal, roughness, depth and motion of what it reflects), but only for DLSS-RR under the dlss feature.

- bevy_solari: with SolariGuideBuffers in the render world, every Solari view gets SolariGuideTextures and the
  pipelines that write them (realtime/guides.rs); without it, nothing is compiled or drawn that wasn't before
- a mirror that shows the sky is guided as sky (infinitely far, nothing to denoise), marked by its diffuse albedo's
  alpha; left as the glass's, the clouds in the mirror were smoothed away
- MetalFX's guide pass reads Solari's guides (metalfx_guides.wgsl, moved out of metalfx.rs) and its specular motion:
  Apple's GPUs have no read-write Rg16Float, so Solari can't write it into the prepass's motion
- RAEA_SOLARI_PSR=0 guides from the G-buffer as before

Photo 4, settled: the mirror as sharp as undenoised. Moving (the camera sways 1.5 degrees), the mirror against the
undenoised frame at the same camera: 0.0030 (G-buffer guides 0.0080). The forest and the desk unchanged: whole-frame
linear means within 0.1% and 0.5%, fine noise the same.
2026-11-22 09:15:58 -08:00
shinyobjectz d1faf4f06f Solari: a surface's normal turned from the eye is bent back to face it in the real-time path, primary and bounce
The BRDF returns 0 where N.V < 0.0001, so a smooth surface's silhouette (a dune's crest under a low camera, one seen
in a mirror) drew a black line. The path tracer already bent such normals with facing_normal; the real-time path's
G-buffer resolve and its bounce hits now do the same. Photo 4's crest lines are gone in the live render.
2026-11-22 09:15:58 -08:00
shinyobjectz 4cec0645fb Solari: SolariLighting::first_bounce_probability, Russian roulette on the first bounce by workgroup
In dense foliage the first bounce is most of the frame's tracing: in photo 3's spruce stand, one light candidate and
one bounce, Solari's initial path takes 10.5 ms of 15 at 1080x1920 drawn at half size, and 0.46 with no bounce. With
first_bounce_probability q below 1, an 8 x 8 workgroup traces its pixels' first bounce with probability q and the
bounce's light counts 1 / q (in the throughput every bounce-0 candidate is weighted by), so the estimate keeps its mean;
a skipped pixel keeps its primary light sample and takes its bounce from ReSTIR's reuse. The coin is the workgroup's
because a SIMD group waits for its slowest ray: pixels skipped at random saved little (q 0.5: 10.25 -> 8.97 ms).

Measured on the forest (M5 Pro, 1080x1920, half size, lean): the initial path 10.47 -> 7.23 ms at q 0.5 and 5.78 at
0.25; 46 -> 55 and 63 fps; 66 at 0.5 with the far trees bare. The look against q 1 after MetalFX, in linear light:
whole 0.986 and 0.963; far trunks 0.94 and 0.86, the haze 0.94 and 0.86, the sofa 0.965 and 0.95; flicker (pixels
moving 8 levels a frame) 0.38% against 0.37%; no seams on the workgroups' grid. So the frame loses some light where its
bounce found the sky through gaps, more as q falls; the reuse's weights are where to look. Defaults to 1, where no coin
is drawn and the frame is as before (0.03% of pixels 8 levels apart, as between runs).
2026-11-22 09:15:58 -08:00
shinyobjectz cdc7ad98a4 Solari: a ray skips the see-through query in a scene with no see-through material
trace_ray finds the nearest opaque instance, then walks the TLAS a second time for instances whose material a ray may
pass through. In a scene with none, that second walk finds nothing and still costs: in photo 3's spruce stand (2,062
tree instances whose bounds overlap along every ray) it was a third of the trace. The environment light's uniform now
carries any_alpha (some material in the scene is see-through), and trace_ray and trace_ray_previous_frame return the
opaque hit without the second query when it's 0.

The forest at 1080x1920, drawn at half size, on an M5 Pro: Solari's GPU time 21.9 -> 15.3 ms (its initial path 16.2 ->
10.7, the world cache 2.4 -> 2.0); 26 -> 38 fps with the default settings, 32 -> 46 with one light candidate and one
bounce. The frame is the same (every region's mean to four digits; 0.04% of pixels more than 8 levels apart, as between
two runs). Photo 1's desk, a few dozen instances, runs as before (23 fps at 1920x1080, full size). A scene with a
see-through material traces as it did. RAEA_SOLARI_ALPHA_PASS=always runs the second query regardless, to time it.
2026-11-22 09:15:58 -08:00
shinyobjectz a058f87048 Solari: what a surface emits goes round MetalFX's denoiser and is gathered over frames with no clamp
MetalFX's denoiser clamps its history to what it sees about each pixel this frame, which keeps Solari's rare bright
paths from flaring, and also drops a highlight that shows in only some of the jittered frames: sky seen through a
spruce stand's twigs, each gap smaller than a pixel, came out at 0.52 of the path tracer's light (0.47 as seen
through the tone curve) while raw Solari had all of it. Emission has no noise to suppress, so it needs no clamp. The
guide pass takes it out of the colour (as RAEA_SOLARI_EMISSIVE=split did) and emit_taa.wgsl gathers it at the
output's size: each frame's jittered samples weighted by their distance to a pixel's centre (exp(-6 d^2), output
pixels), added to the pixel's history reprojected by the nearest surface's motion and read through a Catmull-Rom
filter. Where the pixel moved and the history's depth isn't among those about it, the history counts as one frame's;
a camera cut drops it; it holds 16 frames' weight at most.

Measured against the path tracer, drawn at half size: the canopy 0.99 of its light in linear light, 1.03 as seen;
the whole frame 0.98 and 0.94 (MetalFX alone 0.74, 0.81). A sunlit room 0.870 and a lamp-lit one 0.786 (0.870 and
0.78-0.82 before). Its window's edges: 2 pixels a frame jumping 80 levels (MetalFX alone 0; each frame's emission
put back alone, 1088). A fast pan and push trails no more than MetalFX does (0.10% of pixels 24 levels off the
history-free frames, MetalFX 0.06%). A screen's fine detail 0.44 of the tracer's (MetalFX 0.52). About 1 ms at
1080x1920 on an M5 Pro.

On the way: a test of depth where nothing moved dropped whichever was rarer about a pixel (the sky) and lost a
quarter of the canopy's light; dropping a failed history outright left a moving window's edge crawling (300 pixels).
RAEA_SOLARI_EMISSIVE=mask gives the emission to the denoiser as before; RAEA_EMIT_TAA_SHARP sets the kernel;
RAEA_EMIT_TAA_DEBUG=1 paints the weights, 2 and 3 never and always keep the history.
2026-11-22 09:15:58 -08:00
shinyobjectz 304604231e Solari: a path's last bounce takes the lights' light at its hit even where the world cache can't be used
A path ends into the world cache only where its ray cleared a cache cell and the cell was found; elsewhere it went on.
On the last bounce there was nothing to go on to, so a short ray (under a sofa, at a trunk's foot, between moss
pillows) ended the path with nothing, not even the lights' light where it landed. Now the last bounce samples the
lights there and adds the cache only when it can. Against the path tracer on a forest under an overcast sky, with one
bounce: the sofa 0.80 -> 0.89, the trunks 0.85 -> 0.89 and 0.80 -> 0.84, the whole frame 0.78 -> 0.80, so one bounce
now holds what three do (0.90, 0.89, 0.86, 0.81) and its initial path costs 15 ms where three cost 20-22 (1080x1920
drawn at half size). A sunlit room 0.856-0.860 -> 0.870; a lamp-lit room within its spread between runs.
2026-11-22 09:15:58 -08:00
shinyobjectz d58fade59c Solari and the path tracer trace vertex colours
Solari's traced vertex was position, normal, uv and tangent, and raea's traced copy of a mesh left any vertex colours
out, so a vertex-coloured mesh drew in its colours in raster but grey traced: a procedural forest's bark and moss came
out white-grey under the path tracer while the sofa, coloured by its material, was right. The colour now rides in the
traced vertex (64 bytes: Bevy lays it out after the tangent) and multiplies the base colour at every hit, as Bevy's
StandardMaterial does in raster; a mesh without one is traced white. A desk lamp's room and a sunlit room measure as
before against the path tracer (0.78, 0.86), and the lamp room's path-traced reference is unchanged pixel for pixel.
The unit test is written but not run here: testing this crate alone rebuilds Bevy with other features, more than the
disk had free.
2026-11-22 09:15:58 -08:00
shinyobjectz 9edcbf507c Solari world cache: a cell's plane measured from its centre, not the world's origin
From the origin, a curved surface a metre or more away changed planes every half degree of its normal at 5 cm cells,
and was cut into strips of cells too thin to be found again. Measured on a desk lamp's shade (ReSTIR, 5 cm cells),
its light against the path tracer's, two runs each: denoised 0.784-0.788 before, 0.780-0.783 after (within the
spread between runs); raw 0.878 before, 0.891 after. A sunlit room is unchanged (0.86).
2026-11-22 09:15:58 -08:00
shinyobjectz fc7edcdc49 Solari world cache: the lights' light sampled where a path ends, cells keyed by their surface's plane and size, a miss no longer a zero
A cell held the lights' light taken at one point for the whole cell. Next to a small bright light that point
misses most of it: a lamp's bulb a few cm from its shade's lining. On LightBench's bounce test (a matte panel
4 cm over an emissive sphere), the panel's bounce reached 0.48 of the path tracer's. A cell now holds only the
light that has bounced, plus the sky's. The lights' own light is sampled at the very point where a path ends,
with the full BRDF and as many candidates as the cache took (world_cache_direct_light_sample_count), and where
the cache's own GI ray lands. The bounce test now reads 0.97 at 4 cm and 1.01 at 20 cm.

A cell's key now has the plane its surface lies in, in quarter cells along the normal. Without it, surfaces
facing the same way across a cavity the size of a cell (a shade's lining and its dark cladding) shared cells.
The key also has the cell's size, so cells of two LOD levels can't collide.

A query that makes a cell, or finds one with no update yet, returned zero light. It now says it found none.
A path then continues instead of ending, and an update whose ray found none is skipped by a cell that already
has light. A cell with none still takes it, so a room with no sky fills.

A desk lamp in a room at night, its light against the path tracer's, unclipped:
- raw, cache at defaults: 0.72 -> 0.74 (0.85 with cells traced from the surface point, which cost a sunlit
  room 3%, so not taken)
- through the denoiser: 0.47 -> 0.58
- ReSTIR with 5 cm cells: 0.66 -> 0.78
A sunlit room is unchanged (0.86); with only 2 candidates where paths end, it fell to 0.79.
2026-11-22 09:15:58 -08:00
shinyobjectz 30edd5d1a6 MetalFX leaves what a surface emits undenoised, by its denoise strength mask
A screen's picture came out smeared, its texture taken for noise; taken out of
the colour and put back after, an emissive edge stayed stepped and crawled with
the jitter. The emission's share of each pixel's colour now goes to MetalFX's
denoise strength mask, and the emission (compressed) to its albedo. Photo 2's
live scene at 0.67: pixels jumping 40 levels a frame 2386 -> 8, the error
against the path tracer unchanged. RAEA_SOLARI_EMISSIVE=split keeps the old way.
2026-11-22 09:15:58 -08:00
shinyobjectz 52ee3e0438 MetalFX denoises a view drawn small and brings it up in the same pass
Denoising the main pass's corner first and scaling after gained nothing from
the jitter: the denoiser settled each frame on the small grid, and at 0.67
the frame kept 0.73 of the full size's fine detail. A view drawn small is now
denoised after the forward meshes, where Bevy's DLSS runs, by MetalFX's
denoised scaler from the corner out to the whole view, as it is made to; it
keeps 0.90 at 0.67 and 0.82 at 0.5, and costs the same or less.

A pixel with nothing in the G-buffer (a forward mesh, the sky) gives the
denoiser its own colour as its albedo, so it has nothing there to smooth.
The emissive comes back at the output's size, read between the jittered
G-buffer's pixels. RAEA_SOLARI_UPSCALE=two keeps the first way, to compare.

Photo 2 live at 1248x1664 (1080p's pixels), M5 Pro, a loaded GPU, best of
three: 32 fps full size, 50 at 0.67, 70 at 0.5 (median 62); the error against
the path tracer moves 15.7 -> 15.8 at 0.67 (docs/raytracing.feature RT9).
2026-11-22 09:15:58 -08:00
shinyobjectz 1c7b3afeb8 Solari drawn below the view's size and brought up by MetalFX; no unread shadow maps
<SolariLighting scale={s}> (RenderScale; RAEA_SOLARI_SCALE for every Solari
camera) draws the main pass at s of the view a side, in the corner of its
textures (Bevy's MainPassResolutionOverride, as its DLSS uses): the
G-buffer, Solari's tracing, the denoiser and the forward meshes. MetalFX's
temporal scaler then brings it up to the whole view in EarlyPostProcess,
before the post-processing. The denoiser works on the corner, at the main
pass's size, and copies back only it.

The projection is jittered by a Halton (2, 3) cycle, told to the denoiser,
which gives back a frame without it, so the scaler is told none
(RAEA_SOLARI_JITTER routes it otherwise, to compare). A full-size Solari view
is jittered too while the denoiser runs, which anti-aliases its edges: photo
2's frame 95 came 15.9 -> 15.6 off the path tracer (RAEA_SOLARI_AA=0 holds it
still).

Lights draw no shadow maps while every active 3D camera traces its light and
nothing skinned or morphed is raster-lit by them; Solari never reads them.

Photo 2 live, M5 Pro, a loaded GPU (best of four): 736x981 at 52 fps full
size, 67 at 0.67, 92 at 0.5; at 1248x1664 (1080p's pixels) 34, 44 and 55.
Tracing at 0.67 costs a third of full size; the error against the path
tracer is unchanged (15.4 against 15.8). (docs/raytracing.feature RT9, RT10)
2026-11-22 09:15:58 -08:00
shinyobjectz b1fafa9bf9 Solari: each stage timed on the GPU (RAEA_SOLARI_TIMES=1)
Solari's lighting ran as one compute pass, so nothing said where a real-time
frame's tracing went. It now runs a pass a stage (light tiles, world cache,
initial path, spatial and shade), each with begin and end timestamps and a
trailing timed pass after them, as Metal reads a pass's end write as 0 without
one. Every 120 frames stderr has each stage's mean in ms.

On photo 2's live scene the initial path is the cost: 2.6 ms at 368x490,
6-9 ms at 736x981 and 12.3 ms at 1104x1472, so tracing scales with the pixels
and rendering below the output size pays (docs/raytracing.feature RT8).
2026-11-22 09:15:58 -08:00
shinyobjectz fe1383442f Solari: what lets light through is traced, and what glows stays out of the denoiser
A material with diffuse_transmission on Bevy's Auto render method draws forward (the G-buffer has no room for
transmission), so under <SolariLighting> it skipped the trace and drew raster-lit over it with its emissive raw: a
lampshade and a sheer curtain came out white (1.85x and 1.49x a photo's), leaves flat. Under Solari such a material
is pinned to the deferred path; Solari 0.20 traces no transmission, so it is lit like any other surface (1.12x and
1.27x, as the path tracer has them).

MetalFX's denoiser took a glowing picture for noise on its near-black albedo and smeared a monitor's clock and
picture. The guide pass now takes each pixel's emissive (the G-buffer's rgb9e5 times the camera's exposure, as Solari
adds it) out of the colour, and a pass after the denoiser's command buffer puts it back: the screen is as sharp as
under <Pathtracer />, without its noise. docs/raytracing.feature RT7.
2026-11-22 09:15:58 -08:00
shinyobjectz 59bfe93107 LT8: screen probes, a probe every 16 pixels tracing the ray scene, pooled on its own surface, filled in by depth and normal (the first step)
raea-sys-gi: a probe on the surface each 16-pixel tile shows traces 16 cosine rays a frame through the TLAS with
gi.wesl's own functions (gi.wesl is now a shader library; WorldCache carries its group), keeps a running mean over up
to 24 frames found where it stood last frame, and is pooled with its neighbours on its own plane. Each pixel takes the
four probes around it by depth and normal and reads the cache at its own surface only where none is on it. A GI
pipeline that fails to build says so (gi-pipeline) instead of quietly measuring raster. The screen passes are timed
on the GPU beside the cache (RAEA_GI_STATS screen_ms; the light check's gi gpu column adds them). LT2's probe grid is
traced only when shown: its rays claimed cache cells no pixel reads.

LT14: raster runs none of this (RAEA_GI=1 only), so LT1's raster numbers stand (FLOOR3 1.392/-0.816/3.392/0.111).
The gi path, filtered, before (dcc8e57d42) against after:
  FLOOR3  mean 2.381/0.617, bias -2.118/-0.547, worst 6.012/5.170, flicker 0.415/0.131, live 16.1/14.4 ms
  glade   mean 1.319/1.292, bias 1.074/1.041, worst 2.941/2.939, flicker 0.782/0.773
  Berlin's walk live 38.9 ms gi against 39.1 raster, raea GI 1.32 ms of GPU (cache 0.31, screen 1.01)
  kitchen live 52.1 ms gi, 1.91 of it GI
FLOOR3's worst tile is its ceiling, lit only by the floor, whose cells rarely find a lens (D7, LT6).
2026-11-22 09:15:58 -08:00
shinyobjectz 089e62ee4c LT3: Berlin with the cache read at each pixel, measured: blotchy from the readout, not the update rate
On Berlin's walk (filtered, frames 96 and 191, no reference) the shaded fronts come out darker and blotchy; live 54.9
ms raster against 64.5 gi, the cache and probes 1.6 ms of GPU at 226k cells. Updating every live cell each frame
(RAEA_GI_UPDATES=300000: 2.0 ms, 407k cells) barely changes the blotches, so a pixel reading its own cell stays the
measuring step and LT8's screen probes draw the light. Docs only: no code, LT1's numbers unchanged.
2026-11-22 09:15:58 -08:00
shinyobjectz 2ab92392d4 LT4: a ray hit sees its instance's record, its averaged albedo and its emission (the first tier)
systems/rt keeps each TLAS instance's record at its custom index (records.rs, the Records buffer, written when a
record changes): its StandardMaterial's base colour times its texture's mean (8-bit RGBA textures with CPU data),
less what is metal, and its emission as the radiance it sends, as the reference's tracer takes it. The probes' and
the world cache's hits (gi.wesl first_hit now returns the instance) read it in place of LT2's flat 0.5 stand-in; an
instance with no StandardMaterial (a hook) keeps the stand-in until the cache learns surfaces from the screen.

LT14: raster runs none of this (the ray scene is gathered only for traced passes), so LT1's raster numbers stand as
d3ecbbd042 measured them. On the gi path, with the temporal filter, before against after:
  FLOOR3  mean 4.819/2.381, bias -4.796/-2.118, worst 7.029/6.012, flicker 0.101/0.415, live 16.3/16.1 ms
  glade   mean 1.474/1.319, bias 1.241/1.074, worst 2.948/2.941, flicker 0.780/0.782
FLOOR3's lenses (4500 nits) now light its cells, but one cosine ray an update rarely finds a lens 2 to 3% of the sky,
so it stays dark and blotchy until emitters are sampled by their power (D7, LT6). Emission taken over the exposure,
as raster draws an unexposed emitter, made FLOOR3 3.2 stops bright.
2026-11-22 09:15:58 -08:00
shinyobjectz 2ca930d81e LT3: the world cache's light reaches the screen, each pixel reading it at its own surface (raea-sys-gi, RAEA_GI=1)
A measuring step, as LT2's irradiance volume was meant to be. raea-sys-gi's screen pass, between the prepass and the
main pass, reads the world cache at each pixel's own surface (from the depth and normal prepasses), takes out the
sun's share (each cell now keeps a mean of how often it sees the sun: cache.wesl sunlit, 4 MiB), and writes it a
texel a pixel. The main pass draws it in place of the irradiance volume, the environment map's diffuse and the
ambient light (vendored bevy_pbr: RaeaGiScreen, mesh view binding 41, read by textureLoad, so a hooked material at
Metal's 16 samplers still builds; zeros where a view has none). The cache's lookup loads before it writes, as a cell
is read by hundreds of pixels. GI cameras get their depth and normal prepasses with MSAA off.

LT14, LT1 raster before against after (binding 41 bound to zeros): FLOOR3 mean 1.379/1.379, bias -0.801/-0.801,
worst 3.370/3.371, flicker 0.101/0.101; glade 1.758/1.758, 1.542/1.542, 3.000/3.000, 0.817/0.817. Live: FLOOR3
12.6/13.7 ms, gambit-walk 49.0/42.6, kitchen 54.9/56.5 timed back to back (61.7 beside another build).
With the temporal filter, raster against gi: glade mean 1.750/1.474, bias 1.532/1.241, worst 2.953/2.948, flicker
0.788/0.780, against a reference that is near black and has no fog (LT5). FLOOR3 goes 4.8 stops dark: it is lit only
by its panels' emission, which no cell knows yet (LT4's first tier); live 14.5/16.3 ms, the cache 0.92 ms of GPU.
2026-11-22 09:15:58 -08:00
shinyobjectz 4946bf9c00 LT12: raea's own temporal filter, the levels' dither moving under it, and the light check pre-rolled
<AntiAliasing mode="steady"> (or RAEA_STEADY on every 3D camera) draws each frame from one of 16 Halton places
inside its pixels and blends it with the frames before (raea-sys-post steady.rs, steady.wesl): the past fetched by
the depth and motion prepasses at the nearest neighbour's motion, clipped to the 3x3 YCoCg spread, blended in linear
light at 1/n down to 1/32 still and 1/8 moving. MSAA goes off under it. Under a jittered view the levels' cross-fade
dither moves to another of its 16 places each frame, in the main pass and the prepass alike (vendored bevy_pbr), so
the filter averages it to its share: on Berlin's 1440p fly the dot bands are gone at full size, and the walk's
heroes leave no trail. The far city's roof slopes alias more without MSAA (prefiltered far levels, LT21).

raea light check now draws 16 frames before each still or shot that doesn't follow the one before, unmeasured, so
whatever keeps a past has its own; and it never steadies the path-traced reference, whose jitter read as the paths'
flicker (FLOOR3 0.478 stops of the reference's own).

LT14, LT1 raster without against with the filter (both pre-rolled):
  FLOOR3  mean 1.379/1.392, bias -0.801/-0.816, worst 3.370/3.392, flicker 0.101/0.111, live 12.6/14.5 ms
  glade   mean 1.758/1.750, bias 1.542/1.532, worst 3.000/2.953, flicker 0.817/0.788
  gambit-walk live 49.0/44.1 ms; kitchen live 53.8/55.6 ms
Live 2560x1440 work p50, median of 3, MSAA 4x against steady: walk 53.0/55.0, fly 47.3/42.5 ms.
Off by default, so LT1's numbers without it are unchanged.
2026-11-22 09:15:58 -08:00
shinyobjectz a0dad6afbc LT21: past the last cascade the sun's shadow comes from a map traced against the ray scene
Past its last shadow cascade (300 m in gambit's CityShot) Bevy draws everything lit, and the fade added before only
softened the line, so on the fly the street went white past it. The sun's shadow there now comes from a map of the
sun's view traced against the ray scene (raea-sys-rt far.rs, far.wesl): 2 km square, 4096 texels a side, each one
ray down along the sun to its first shadow caster, holding how high along the sun it hit. raea-sys-lod's swap of
shadows.wesl fades the last cascade into it and reads it past the cascades (four texels, bilinear, a texel's normal
offset and a slope bias). Not a ray a pixel: the game's camera has no depth prepass, and one would draw all of
Berlin again. Bevy's mesh view group has no hook for another binding, so bevy_pbr is vendored for two (39, 40:
RaeaFarSun, a stand-in and a uniform of zeros where there's none; docs/bevy-upgrade.md).

A texel is kept at its column modulo the map's size, so the map follows the eye eight texels at a time and traces
only the strip new to it; after the TLAS changes it traces 256 rows a frame again, in turn; the whole map only on
the first frame or when the sun turns. On the 1440p fly (GPU timestamps, p50): a strip 0.38 ms (36,500 rays), 256
rows 0.28 ms; the whole map once, 16 to 31 ms. A first version re-traced the whole map every 128 m: a 16 ms hitch,
and its edge fade stepped. Off unless RAEA_SUN_FAR is set (metres each way, 1024 for 1).

Live at 2560x1440 (median of 3, work p50, without against with): walk 51.1 against 50.4 ms, fly 54.5 against
45.6, inside the runs' 5 to 10 ms spread. On the fly the street and the far blocks keep their shadows to the
horizon; popped tiles are as before but for 0.4% more, far chimney shadows shimmering at 600 m to 1 km.

LT14, LT1 on raster, before (the branch before this) / off / on (RAEA_SUN_FAR=1):
  floor3-room  mean 1.379 / 1.379 / 1.379, bias -0.801 all, worst 3.370 / 3.366 / 3.372, flicker 0.101 all,
               live 14.4 / 13.8 / 13.6 ms, work p50 13.8 / 14.1 / 13.9
  glade        mean 1.758, bias 1.542, worst 3.000, flicker 0.817, all three alike
  gambit-walk  live 51.8 / 48.8 / 44.4 ms, work p50 50.0 / 44.9 / 42.4 (no reference yet, LT5)
  kitchen      live 61.0 / 54.3 / 55.6 ms, work p50 59.4 / 53.0 / 55.2 (no reference yet)
Another session's jobs ran beside them; the live numbers are within that noise.
2026-11-22 09:15:58 -08:00
shinyobjectz 425d7439b9 LT3: the TLAS is kept from frame to frame, built again only when an instance comes, goes, moves or changes its mask
The ray scene's TLAS was made and built anew every frame. It's now kept: a frame whose instances match the last
(the same meshes, transforms and masks, and no new BLAS batch) costs a comparison, and a TLAS is made anew only when
it runs out of room, with half as much again to spare. Each instance's custom index is its place in the list, for
LT4's record table. raea GI's stats now count the builds and the instances last held.

On Berlin's walk at 1080p with GI on (0.5 m cells, 131072 rays, 6 s live; another session's build and render were
running, so both binaries ran back to back): cpu_ms_tlas 0.257 a call against 0.997, 9 builds in 118 frames. GI's
own numbers match (cache cells p50 207,309 against 207,663; probes p50 0.258 against 0.267 ms, p90 1.18 in both);
work p50 48.2 against 46.8 ms, within the load's noise. One GPU frame peaked at 18.9 ms against 2.0 before, a
single spike: open.

No light, shadow or shading changes (LT14 doesn't apply).
2026-11-22 09:15:58 -08:00
shinyobjectz ca161bcb73 LT21: a part's Detail can name the box it is measured to, so a thing's levels switch at one distance
A Detail with edge measured each level to its own meshes' bounds. A city tile's levels overhang the tile by up to
100 m, and each level reaches differently. The code holding the levels measured to the tile's map box, so the two
disagreed by up to 62 m. On the 540p detail fly a tile's LOD2 faded out by its bounds with LOD1 not yet held
(raea had it 90% faded in), the sky showed through it, and LOD1 then appeared at once in frame 35.

Detail's bounds (TSX detail.box, six numbers in the part's own space) is the box the part is measured to and sized
by in place of its meshes'. A thing's levels given one box switch at one distance, and code holding levels by
distance can measure exactly as raea does. RAEA_LOD_DEBUG's report now names each range's part and gives the frame,
each mesh's bounds and inherited visibility, and a hidden mesh's ancestors. Any value but 1 or time keeps only the
parts whose name holds it. That is how the hidden LOD1 was found.

With every tile measured to one box (gambit's City), the fly's frame 35 goes from 29 popped 8x8 tiles to 2, frame
226 from 12 to none, and the shot from 199 to 160. The rest were there before. It changes what is drawn at a
distance, not light or shading, and no LT1 scene draws a Detail, so LT1's numbers are unchanged. lod tests: 8 pass.
2026-11-22 09:15:58 -08:00
shinyobjectz da31c4b3c6 LT3: the world cache, built and timed on Berlin before anything rests on it
A hash grid of cells on the surfaces rays hit (cache.wesl, from vendor/bevy_solari's world cache made raea's):
2^20 cells of 84 bytes. A cell's size grows with distance from the eye, it is split by its side, its read place is
jittered, and a read claims an empty cell and keeps a live one alive. Each frame, before the probes, two compute
passes run. The upkeep (compact.wesl) ages every cell and lists the live ones with a two-level prefix sum. The
update (gi.wesl learn and blend) has 40000 cells learn the sun through a shadow ray and one bounce into last frame's
cache, then blend, keeping fewer frames while a cell's light is changing. The list's length becomes the update's
indirect dispatch, copied out between the passes. The probes' hits read the cache, or LT2's stand-in where a cell
is new. Until hits know their surface (LT4) a cell sees albedo 0.5 and is keyed by the side a ray meets.

RAEA_GI_STATS gives the cache's GPU ms and the probes' apart (each pass's own timestamps) and the live cells. On
Berlin's walk at 1080p with 131072 probe rays a frame: smallest cell 0.15 m, cache 0.931 ms p50, cells peak
1,032,116 (the table full); 0.5 m, 0.512 ms, 479,631; 1 m, 0.456 ms, 189,480. The probes cost 0.259 ms at 0.5 m
(LT2's alone 0.253). 0.5 m is the default. The cache lights nothing on screen yet (Metal's sampler limit, as LT2),
so no frame changes and LT14 has nothing to measure. Its light is still unchecked.
2026-11-22 09:15:58 -08:00
shinyobjectz e35a7769c0 LT21: the sun's shadows fade out at their distance instead of ending in a line; the extract-order line out again
Bevy draws everything past the last shadow cascade fully lit, so a city's shadows stopped in a straight line across
the street (on the 540p fly over Berlin, at 300 m). raea-sys-lod swaps Bevy's shadows.wesl (its hash checked) for
one whose last cascade fades to lit over the cascades' overlap, the last 30% of the distance, and reloads it: an
embedded shader is read on the IO threads as soon as PbrPlugin registers it, so a swap made later draws Bevy's.
The fly's frames change on about 2% of their pixels, all lighter.

Reaching 900 m, where the day's fog begins, costs too much as it is (live at 2560x1440, median of 3, work p50):
walk 45.9 ms at 300 m against 53.3, fly 42.5 against 54.3. Far shadows wait on far cascades cast by coarse levels
and redrawn every few frames.

The ordering of mesh extraction after visibility ranges comes out: Bevy 0.20 already orders them (bevy_pbr
mesh.rs:200), and it changed no pixel. The frame 35 and 226 snaps are still open.

LT14, LT1 on raster before (main 19:53) and after:
  floor3-room  mean 1.379 / 1.379 stops, bias -0.801 / -0.801, worst 3.370 / 3.370, flicker 0.101 / 0.101,
               live 15.5 / 14.8 ms (work p50 15.47 / 15.14)
  glade        mean 1.758 / 1.758, bias 1.542 / 1.542, worst 3.000 / 3.000, flicker 0.817 / 0.817
  gambit-walk  live 47.2 / 44.1 ms (work p50 44.76 / 42.48); no reference yet
  kitchen      live 61.0 / 59.9 ms (work p50 58.80 / 58.58); no reference yet
The live differences are run to run; the fade costs nothing measurable.
2026-11-22 09:15:58 -08:00
shinyobjectz 0dfab1dbfd LT3: the plan: the world cache first, measured on Berlin before anything rests on it
The cache's files under systems/rt (cache.rs, cache.wesl, cache_update.wesl, compact.wesl), and what gi.wesl and
gi.rs gain. Until hits know their surface (LT4) a cell sees LT2's stand-in (albedo 0.5) and is keyed by the side a
ray meets. LT2's probe rays seed it, and the screen's 8x8-tile paths come after. It runs behind RAEA_GI=1, timed per
pass.
2026-11-22 09:15:58 -08:00
shinyobjectz 39369393f7 Windows: DX12's shader compiler ships with raea (#215)
Without dxcompiler.dll beside raea.exe, wgpu's DX12 backend compiles raea's shaders with the old FXC: 6 to 13 s
of hitches at start and as new 3D appears, on every PC DX12 is chosen for (Intel, AMD, Arc). On the test PC the
chat page took 17.7 s with FXC and 12.0 s with DXC (Vulkan 11.4 to 13.2 s). The Windows zip and installer now
carry Microsoft's DirectX Shader Compiler 1.8.2502 (dxcompiler.dll and dxil.dll, redistributable under
Microsoft's terms), fetched by tools/release/win-bundle.sh at a pinned sha256 and placed beside raea.exe with
its three licences. tools/release/win-bundle.files lists them, release-check.sh allows the two DLLs, and
NOTICE names them.

The skill's "1. Install (once)" names tools/release.sh: checked, still holds (the zip's bin\ gains two DLLs;
installing is unchanged).
2026-11-22 09:15:03 -08:00
shinyobjectz 4202a87850 SG4a: a live render's parts kept on disk, the MP4 writer's samples on disk, the master's true peak and loudness a block at a time, shapes in 16 MB generations
The film with every check on: 2.43 GB at frame 13,000 (3.7), 2.73 GB after its sound and video, a 4.8 GB peak (6.0),
the same 439 errors, 705 warns and 47 notes. The control (one scene, 13,200 frames): 1.27 GB at frame 13,000 against
1.07 in its first minute (+19%, was +44%), a 1.5 GB peak (2.85). raea-io-kept is new: each frame's parts go to a temp
file, each props map, string and material once by its content, a part's own place left out (a camera's kept).
2026-11-22 07:29:58 -08:00
shinyobjectz 2fd0c7f14a SG4a: the clipping check holds each shape's solid over its part's frames; frame purity's stills skip the checks it never reads
The clipping check made all 1,323 of the film's shape solids before its first frame and held them to its end
(2.9 GB of cells, 4 GB of footprint). A shape's solid is made at its part's first frame now, shared while parts
hold it and let go after the last of them, unless an overlap of it is still to be said (solid.rs Held). The
footprint after the check fell from 6.4 GB to 3.2 GB in the same 19 s.

Frame purity's stills, rendered by a second raea while the first still holds its memory, ran their own clipping
and staging checks (1.6 GB on the film's 44 stills); purity reads only their pictures and parts on screen.

The film with every check on: a 6.0 GB peak (8.5 before), the same 439 errors, 705 warns and 47 notes.
2026-11-22 05:06:26 -08:00
shinyobjectz 1c5993d5a4 SG4a: the status: the encoders' samples and the mesh share were most of the growth
The film with every check on now holds 2.4 GB at frame 1,000 (3.4 before) and 3.7 GB at
13,000 (5.75), with an 8.6 GB peak (9.5). What still grows is listed with its share: the
kept scenes and the checks' per-frame data, partly free allocator pages, the bounced
sound and the manifest's JSON values.
2026-11-22 03:47:53 -08:00
shinyobjectz 8cc12db395 SG4a: the mesh share lets go of what no part holds
A part whose size changes each frame is a new shape each frame, and Shared kept a
strong handle to every one: the film held 234,945 meshes a minute in (450 MB of heap,
and their GPU buffers), nearly all for shapes no part had any more. The share now
sweeps what only it holds whenever it has doubled since the last sweep. It moves to its
own crate, raea-sys-share (runtime/scene3d re-exports it), since scene3d is at its
2,000 lines.
2026-11-22 03:47:53 -08:00
shinyobjectz bc42f11ff2 SG4a: a long render's encoded video and its sound are kept on disk, not in memory
VideoToolbox, openh264 and rav1e each kept every encoded sample in memory until the
end, and the mux copied them all again: a 7-minute film's 1 GB. raea-io-codec's
Samples writes each to an unlinked temp file as it comes out (delete-on-close on
Windows) and remux::annexb_mux_from reads them back one at a time for the mux. The
offline bounce fills each channel as the frames come, sized once from the frame count,
instead of an interleaved copy of the whole sound split in two at the end.
2026-11-22 03:35:01 -08:00
shinyobjectz 0c9fc255f2 SG14: frame-empty is an error; a room's walls and models fill the frame, the page's background doesn't
A standing slab (a wall) fills the frame but is never the shot's subject; a model's file box adds coverage
(never judges: raea poses joints off the rest box), and a room model round the camera leaves the frame
unjudged. A CSS background over half the frame is the page's ground: since stage-guards-9 the film's
cream fills hid all five of its empty stretches. Frame passes and instanced copies leave a frame unjudged,
fire is of unknown size. Stay's 8 false empties are gone, the film's real ones fail, 29 clean scenes and
every other check unchanged.
2026-11-22 01:53:02 -08:00
shinyobjectz 7a1520bc3b SG13: raea fingerprint things' lurch runs on every render
Its camera-speed check (P2) read the picture's motion and compared each half second's mean speed with the one
before, inside a move away from its eases, and ran only by hand. A speed that ramps up over a few frames passes the
stage's one-frame kink, so only that check caught it. motion.rs ramps runs the same on the camera itself, on every
render, as a camera-lurch warning at 2x, none near a kink already said. On the 29 clean scenes it says 3, all real
(a camera locked to a raccoon breaking from a walk to a run, 2.4x); on the mobile-ads film, 6 beside its 41 errors.
2026-11-21 23:46:49 -08:00
shinyobjectz 9d237cf06a SG4a: the shape cache lets go, in memory and on disk
raea-core-shape's cache of each shape expression's triangles held every one for the process, in memory and on disk.
A part whose size changes each frame is a new expression each frame, so a long render grew by a mesh a part a frame,
and the disk cache gained 2.46 million files (9.7 GB, 2.2 million of them boxes) in 12 hours of renders, filling the
disk to 1 GB free. Memory is held to 1 GB of triangles, let go past it and made or read again as asked; only a shape
that took 2 ms or more to make is kept on disk, the boolean cuts the disk cache was for.
2026-11-21 23:32:43 -08:00
shinyobjectz abead7eae4 SG1: a ShaderExtension's uniforms follow the frame
A mesh's shader spec was read once, from its first frame, so a ShaderExtension uniform driven by the frame drew
frame 0's value all video long: a card tinted by frame / 89 stayed blue to frame 89, and SG9's frame purity failed
it (30136 pixels differ from the frame rendered alone). Its uniforms now go as own:uniforms rows, as a <Material>'s
do (own_uniforms' ext, for a 3D mesh's material), and own_live.rs packs them into the shaded material's slots when
they change (ShaderExt slots_for, from the names and the struct fields it was built with). The card goes blue,
purple, red, and SG9 passes.
2026-11-21 23:32:43 -08:00
shinyobjectz c2044c2899 raea-sys-stage builds on main: RAEA_TIMES read from the environment
8f92302403 timed the stage checks with raea_io_trace::stat, which only the unlanded nobuild branch adds, so main has
not compiled raea-sys-stage (nor raea) since: L1 compiled the shared workspace, where nobuild was applied. It reads
RAEA_TIMES as the clipping check on main does.
2026-11-21 22:56:02 -08:00
shinyobjectz e8eafcdedb SG4a: a long render's end checks let each scene, and then the solids, go
The end checks made every frame's parts while every frame's scene was still held, and raea-sys-contact's solids (one
per model file or shape expression, kept for the process) stayed after them, through frame purity's stills. Now the
checks take each frame's scene as its parts are made (told_taking, for the frames nothing reads the 3D of after), and
forget the files' triangles and the solids once they've run. RAEA_MEM_MARKS=1 prints the footprint every
RAEA_MEM_MARKS_EVERY frames of a live render and after each end step.

On the 13,175-frame film: 3.9 GB with each frame's parts made (about 1 GB less), 3.3 GB after the end checks (7.4
before), and a peak of 9.3 GB (10.5 to 10.9 before), with the same 435 errors, 699 warns and 47 notes. The clipping
check keeps each pair's stretches as they come, not every frame's hit (its findings the same, in order), and SG11's
type-over-part findings are said in the order they start, not a HashMap's.
2026-11-21 22:42:48 -08:00
shinyobjectz 20e3eba1e7 SG11: the 3D guide's rule 9 says page type stays off the parts
Words in the page over a tenth of a part for a quarter second fail the render (type-over-part), and words meant to sit
on the scene go in an element with data-allow-overlap. The skill's 3D router says the same (raea-skills #112, pin
2eaab93).
2026-11-21 21:53:44 -08:00
shinyobjectz 1cf7dbf59a SG11, SG14: Stay rendered whole with its page known
SG11 finds two type-over-part errors on Stay, both meant (a word drawn over the plant, the end title across the
screen), which take data-allow-overlap. SG14's empty stretches past frame 1699 are a dark sphere and a canyon's walls,
backdrop by the slab rule, so frame-empty stays a warning. The note that a mesh bound 48 bytes at frame 1699 was wrong:
it was Solari's dummy buffer, fixed on nobuild.
2026-11-21 21:50:52 -08:00
shinyobjectz 7be6b93b3f raea render's manual: the exposure check's clause back in its sentence
stage-guards-9's note on data-allow-overlap went in mid-sentence, leaving "and its pictures' exposure" after it.
2026-11-21 21:39:01 -08:00
shinyobjectz 590ec633f8 SG11, SG14: the manifest lists the page's pictures and the words that may sit on a part
The render manifest's frames gain `pictures`: each shown img, inline svg, and element painting a background image or
a colour at least half opaque, past a quarter percent of the frame (engine/page manifest.rs). SG14's coverage counts
them with the page's words and videos. Measured on Stay with its page known, two of its four empty stretches before
frame 1699 clear; the other two show a pool room whose walls, floor and water are backdrop by the slab rule, so
frame-empty stays a warning.

Words in an element that says data-allow-overlap are marked allowOverlap in the manifest, and SG11's type-over-part
leaves them be: a headline across a card is an error, the same words under data-allow-overlap pass. The finding's
fix and raea render's manual say so. in_caption and the new walk share one ancestor test.
2026-11-21 21:37:18 -08:00
shinyobjectz 35ce4cfdb3 SG11: page words over a 3D part are an error; SG4a: a long film renders whole with its end checks
SG11 (systems/stage/src/page.rs): words in the page, from the manifest's text (its ink's box, opacity 0.1 or
more), over more than 10% of a 3D part's box on screen for a quarter second or more, or on a still alone, are a
type-over-part error: one for each run of the words, naming the parts under them with their shares. A backdrop
(framing's slab rule, now shared) and a part with allowOverlap are left out, and so are words the manifest marks
allowOverlap. The stage checks take each frame's page (check_with, told); SG14's coverage counts the page's words,
videos and pictures, so a headline over an empty 3D isn't an empty frame (still a warning: the page doesn't write
its pictures into the manifest yet). raea-sys-stage's manifest.rs reads each frame's page from the manifest and
writes the parts and remounts into it (moved from raea-runtime-export, at its 2,000 lines).

A still's end checks now run once its page is laid out, on the scene each still keeps, by either route. The rows
route ran them on a thread before the page existed, and the live route (a game's stills) ran none.

SG4a: the 13,175-frame film renders whole with every end check on, peaking at 9.4 to 13.6 GB; before, it was
killed past 24 GB after its last frame. The sound step at a live render's end built the 3D's rows again from every
kept scene (28 GB): it leaves the 3D out now (program_of). A still past frame 3,600 makes its 3D live, as a game's
does, unless a compute in it carries state: raea check --quick on the film went from 10.4 GB and 39 s to 0.8 GB
and 9 s, with the same pixels and findings as the rows route at three frames, and SG9's 64 stills of the film fit
(by rows they passed 30 GB and were killed). The remounts are counted as the frames go.

Left: memory still grows with the frames (each frame's scene is kept for the end checks).
2026-11-21 21:11:05 -08:00
shinyobjectz 15af3be4b1 SG9: a video render with 3D in it holds a sample of its frames to the same frames rendered on their own
At a render's end (apps/direction pure.rs), one more raea renders the sample with --at:
every 300th frame, the last, and the frame after each remount (more than 20 parts
mounting or unmounting, which the manifest now lists). Each still is held to the video's
frame: a channel off by more than 96 levels through a 3x3 erosion, on more than 1e-4 of
the frame (tools/frame-pure-3d.sh's bar). It uses the largest channel, not luma: the
positive control's orange box over grey floor was 68 levels apart in luma and 116 in
blue. A frame that differs is rendered alone with --frame N. If it still differs, a
frame-pure error names the frame, the patch's box, the parts under it (a still's
manifest now lists each frame's parts on screen, from raea-sys-stage's on_screen) and
the two pictures, kept in OUT.frame-pure/. If it matches alone, frame-pure-jump warns:
raea's fault, not the composition's. RAEA_FRAME_PURE=0 skips it; render.md says so, and
now names the stage checks too.
2026-11-21 21:11:05 -08:00
shinyobjectz 7bc06bb777 SG4a: the clipping check holds each part over the frames it's in, not a slot for every frame
A 13,175-frame film (mobile-ads film2) was killed at 27-33 GB the moment its last frame
was drawn: the clipping check made tracks_of's dense tracks, a slot a frame for every
part id across the whole render, and filled() copied them again. A long film's parts
each live in one scene, so nearly all of those slots were empty. core/scene's spans_of
keeps each part from its first frame to its last (tracks_of is built on it, so the ids
stay one rule), and raea-sys-contact reads spans and a part's own world, with no filled
copy. raea scene stage over the same film peaked at 3.1 GB, so the stage checks were
never the cause.
2026-11-21 21:03:29 -08:00
shinyobjectz 67d85113fd SG8, SG16: Label, page type that names a 3D part, placed through the shot's camera; the 3D guide names the check behind each rule
Words that name or point at a part were written into the world as RichText, where they turned with the floor and
shrank with distance. Label (raea/camera) is page type instead: it projects its point through the props the shot's
Camera3d gets (a cameraPath's camera(frame), perspective or orthographic) and draws flat words there, capitals 32 px at
1080 by default and refused under 22, its box inside title-safe and growing away from the nearer edge, with a line and
a dot to the point, and nothing while the point is behind the camera or out of frame. On a moving camera its dots stay
on the boxes' tops in every frame.

The 3D guide's rules 4, 5, 9, 10 and 11 name what holds each: SG2's names, line-of-parts and part-snap, the type checks
and read={false}, camera-lurch and camera-reverse, raea scene stage, frame-empty and subject-cut, raea show --despite;
Line3d, cameraPath and Label are the recipes. The craft floor refuses labels written into the 3D.
2026-11-21 19:13:17 -08:00
shinyobjectz 3a98e0a52d raea run prints its console, its answer and a throw's message (#168)
raea run's program said nothing: its console went to the log, and raea run's headless App has no log, so every
console line was dropped. The default export's return value was dropped too. A throw printed its stack alone, which on
JavaScriptCore is only the frames, so the message was missing.

- runtime/calls: CONSOLE. While it's on (and ECHO), a script's console goes to the terminal as node's does: log and
  info to stdout, warn and error to stderr (raea-runtime-react's __raea_log). print takes err for a line meant for
  stderr.
- raea-runtime-export: run_bundle_to_terminal turns it on for raea run, raea test and raea blender run. raea check's
  asks and a spec's read keep run_bundle, whose stdout is their answer.
- raea-runtime-bundle: bundle_script's entry (script_entry.ts) prints what the default export returns, a string as it
  is and anything else as indented JSON. A throw prints as error: Name: message, then the stack, on stderr, exit 1.

Checked with the issue's cases on this build: console lines before and after an await, both streams, a returned object
and a returned string, a throw (exit 1, message and stack on stderr), a script with no default export. raea test's
output is unchanged (random-colors.test.ts, 9 pass). The manual's raea run page says all of it, with an example.
2026-11-21 19:11:44 -08:00
shinyobjectz 2aa85c456a SG2: footage, splats, sequences, fog, fires and grass are rows by identity, and spawned again when what they are changes
A live frame (every mp4's 3D) gave these kinds the id of their place in the frame, so a plate mounted as another
unmounted took the other's row and kept its clip, as a RichText once kept another's words. They are rows by identity
now, as meshes and text blocks are (live.rs BY_IDENTITY), and the columns each takes whole from its first frame (a
plate's clip, a splat's or a sequence's file, a fog's density texture, a fire's simulation, a field's grids) spawn it
again when they change, in a live frame and in a still's tracks alike (core/scene kept.rs WHOLE).
a_new_plate_never_takes_an_old_ones_row holds both.
2026-11-21 19:09:56 -08:00
shinyobjectz 8f92302403 SG10, SG12, SG13, SG14, SG15: raea render holds its 3D to type that reads, parts that don't snap, a camera that settles and a composed frame, and raea show won't post a render that still holds an error
raea-sys-stage (systems/stage) reads every frame's parts through its camera at the end of every render, beside the
clipping check: RichText too small or turned too far to read, a reveal that never starts or never finishes, words not
held long enough to read (SG10); a part's size on screen jumping in one frame, and a line built as a growing chain of
parts (SG12); a camera whose speed kinks or that goes in and back out within 1.5 s (SG13); frames with almost nothing
on screen, and the shot's subject cut by the edge (SG14). RichText read={false} leaves scenery out. raea scene stage
runs the same checks without drawing; raea scene moved from raea-runtime-export into raea-app-scene so the export crate
keeps room under its 2,000 lines.

Calibrated on the mobile-ads film (13,174 frames) and 33 clean scenes: the snap check as first written said 1,446
errors on the film and 1,252 on four clean scenes, and the lurch check 48 on Stay from f32 acos noise; what was left
out is each a measured false error (pop-ins, shared names, layout edits, parts over 6 m, speeds under what can be
seen, the gap between two long moves). The film now holds 375 errors (lurches at its spline's keys, labels at 60-75
degrees, code at 3-7 px); no type or snap error on the clean scenes.

raea show refuses a file whose newest render in its project's record holds an error it wasn't let through with,
naming each (engine/cli/src/held.ts); --despite CHECK "why" passes one and the why goes on the item. A still stepped
alone (raea check --quick, render --at) is judged for what a still shows, never for reveals or reading time.
2026-11-21 19:09:56 -08:00
shinyobjectz d2242ed6e6 skills: pin raea-skills ccbc507 (reference/sdk.md: random, interpolateColors and OffthreadVideo) 2026-11-21 17:39:14 -08:00
shinyobjectz 666acf6050 MV1-MV3: random, interpolateColors and OffthreadVideo from raea (#176)
A project moving to raea from another React video tool used three names raea didn't export (public #176). Each now
does what the issue describes, in sdk/raea/src/random-colors.ts, exported from raea:
- random(seed): a number in [0, 1) from a string or number seed, the same on every frame, run and machine (FNV-1a
  and murmur3's finaliser); null is Math.random.
- interpolateColors(input, inputRange, outputRange): interpolate per channel over @raea/ui's CSS colour parser,
  clamped at the ends, as rgba(r, g, b, a).
- <OffthreadVideo>: <Video> under that name.

sdk/raea/conformance/random-colors.test.ts: 9 tests (the issue's values, pinned random values, range and spread,
alpha, three keyframes, a colour that doesn't parse). The SDK reference lists them on raea's page; random-colors.ts
is skipped as an import path of its own, as canvas2d.ts is. docs/move-in.feature: MV1-MV3 done, MV4 (--props,
getInputProps, calculateMetadata) and MV5 (--scale, #175) open.
2026-11-21 17:39:14 -08:00
shinyobjectz 94dae14946 LightBench LB7: a world radiance cache, the nearer child first, and the bounce at half resolution
--cache on: a bounce ray reads the hashed cell it hits (sized by distance from the camera, one of six normal
directions; cache.wgsl) instead of tracing on, and feeds it a fresh sample: that point's direct light plus one ray to
the next surface's cell, so light goes one bounce further each frame and a pixel gets every bounce for two rays; a
resolve pass after the pixels folds each cell's samples into its light and frees untouched cells (NVIDIA's SHaRC,
Bevy Solari's world cache). The nearest-hit walk visits the nearer child first and skips kept boxes past its hit.
--bounce-res half: one pixel of each 2 x 2 block, a different one each frame, traces the bounce (half.wgsl) and every
pixel takes it from the four nearest blocks weighted by distance, normal and plane. The grid's two lists are one
buffer, so the pass binds 8 storage buffers.

Measured on the M5 Pro at 1280x720, the room at exposure 3, 16 lights, against an 8-bounce reference (its 1024- and
2048-frame frames agree to 0.91): the cache 21.5 / 7.5 / 3.5 / 1.8 at 1 / 16 / 64 / 256 frames, bias to -0.12 (5 cm
cells 1.84, 20 cm 2.91), where two traced bounces stop at 6.5 with -4.3 bias; at half resolution 15.3 / 6.4 / 2.9 /
1.6. The lighting pass takes 20.9 ms with the cache at full resolution and 8.5 ms at half (frame 11.8 ms, 85 fps);
nearer-child-first saved 7%. Timings on this shared machine move by up to 40% between runs.
2026-11-21 17:31:28 -08:00
shinyobjectz ec01569901 LightBench LB6: a sun with an angular size, sky light from bounce rays that leave, and --scene room
The sun is one shadow ray a lit point to a point on its disc (a cone sample), the same in every mode, so --sun-size
softens its shadows; a bounce ray that leaves the scene brings PI times the sky's radiance. --scene room puts the
knot and wall in a closed 8 x 3.6 x 11 m room with a window in its left wall, sun, sky and two bounces on unless
given. The BVH walks and the samplers move to trace.wgsl, joined to light.wgsl at compile time (frames unchanged,
RMSE 0.00 against the last commit's).

Measured on the M5 Pro at 1280x720, the room at exposure 3, 16 lights: the 512- and 1024-frame references agree to
RMSE 1.27; the weighted path 29.8 / 9.2 / 5.2 / 2.9 at 1 / 16 / 64 / 256 frames, its bias going to 0. At most
K + 1 + 3N rays a pixel (5 / 8 / 11 for N = 0 / 1 / 2) and 5.4 / 15.2 / 25.1 ms of lighting pass: in a closed room
every bounce ray hits, so two bounces at full rate miss 60 fps. The patch's edge (10-90%) is 5 / 11 / 20 px for a
sun of 0.53 / 4 / 12 degrees.
2026-11-21 17:30:27 -08:00
shinyobjectz 56ff2a7031 LightBench LB5: diffuse bounces through the BVH, each hit lit by the pixel's own light sampling; an f32 history
--bounce N follows N cosine-chosen rays from each pixel to the nearest triangle (a closest-hit walk of the same BVH,
with a CPU twin checked against every triangle) and lights each hit as a pixel is lit: one light sample in the
sampled modes, every light with --mode all. Triangles carry their albedo in their vec4s' w. --view bounce shows the
bounced light alone. The light history is now rgba32float: past a few hundred frames its 1/n steps vanished in f16
and the mean stopped moving.

Measured on the M5 Pro at 1280x720, the knot scene: the 512- and 1024-frame references agree to RMSE 0.33 (0-255),
and the weighted bounce falls as 1/sqrt(frames) to it, 15.3 / 6.5 / 3.7 / 2.0 / 1.1 at 1 / 4 / 16 / 64 / 256 frames,
its bias going to 0; two bounces 1.1 at 256. A sampled pixel traces at most K + 2N rays at 16 or 256 lights
(4 / 6 / 8 for N = 0 / 1 / 2); the lighting pass takes 3.1 / 6.2 / 9.8 ms at 16 lights and 8.4 / 13.3 / 16.9 ms at
256, where the every-light reference with one bounce traces up to 513 rays and takes 207 ms.
2026-11-21 17:30:27 -08:00
shinyobjectz 88ff2b6967 LightBench LB3c: a light grid, so a pixel weighs only the lights whose range reaches its cell
grid.rs builds world cells over everything the lights reach (2 m, at most 96 along an axis) each frame, each listing
the lights whose range sphere touches it; the sampled modes choose among the pixel's cell's lights, the every-light
reference still loops over all of them. --grid on|off; the field's lights (--scene field) are scattered over it, 6 m
reach each. Checked: a unit test (every light reaching any of 20000 points is in its cell, 300 lights); in the field
at 256 lights, weighted frames with the grid on and off are byte-identical raw and after 64 frames (RMSE to the
reference 15.63 raw, 1.95 accumulated), lights outside a cell weighing nothing; GPU lighting pass with the grid off and
on: 8.2 / 7.1 ms at 256 lights, 17.5 / 8.7 at 1024, 50.7 / 13.6 at 4096, rays 3.94 to 3.96 a lit pixel throughout.
2026-11-21 17:30:27 -08:00
shinyobjectz e708783013 LightBench LB4: rays a lit pixel counted on the GPU and the lighting pass timed by its own timestamps
Each workgroup sums its pixels' shadow rays and the most any traced, one atomic a workgroup into a stats buffer that a
timing run (--bench) reads back. The pass writes timestamps at its own start and end (the M5 Pro's Metal has neither
inside-pass nor inside-encoder timestamps, so Bevy's RenderDiagnosticsPlugin records CPU time only for it). Checked
at 1280x720: every light 11.3 rays a lit pixel (most 16) at 16 lights, 180.9 (most 256) at 256, its pass 5.1 and
77.7 ms; weighted K=4 3.44 and 3.45 rays (most 4) at 16 and 256 lights, its pass 2.9 and 8.3 ms: more lights don't
add rays, only the weighing of every light, which a light grid removes next.
2026-11-21 17:30:27 -08:00
shinyobjectz 90182e445b LightBench LB4: sweep.sh reruns the light-count, detail and field-of-view sweeps at 1280x720 and prints a line a run
First run (M5 Pro): every light 7.6 / 22.5 / 83.0 ms at 16 / 64 / 256 lights; K=4 uniform 6.1 / 6.7 / 6.2, weighted
5.2 / 6.3 / 11.0; the field draws 14.4% of its triangles adaptive (30.8% at 20 deg, 10 of 24 culled at 8 deg), but its
frame time is the same either way (11.1 against 11.4 ms): at 393k triangles the lighting pass, not the raster, is the cost.
2026-11-21 17:30:27 -08:00
shinyobjectz edbcb15e81 LightBench LB2 (CPU path): discrete LODs and a Nanite-style cluster hierarchy chosen by projected error, culling, --scene field
lod.rs: projected_px = focal_px * error * scale / depth to the bounds' near side (a camera inside asks for full detail).
Discrete LODs are the mesh halved by meshopt (absolute error, monotonic). The hierarchy groups 128-triangle clusters
by meshopt's partition (about four a group), simplifies each group to half with its border locked, and re-splits it;
each cluster keeps its own and its parent group's error and bounds, both only growing upward, so drawing a cluster
when its own error is within tau and its parent's isn't takes a parent or its children, never both. field.rs: rows of
knots sharing one hierarchy, culled against the view, each rebuilt from its chosen clusters when they change;
--detail full|adaptive, --tau, --fov, --view lod (colour by level). Checked: unit tests (farther coarser, 15 deg finer
than 45 at 20 m, inside the bounds full; on the closed knot every drawn edge is shared by exactly two triangles at 8
distance/threshold pairs; 16384 triangles draw 12032 / 9152 / 4416 / 1136 / 256 at 1 / 4 / 12 / 30 / 90 m, all at
0 px); the field (24 knots, 393216 triangles): adaptive 14.4% at 45 deg, 30.8% at 20 deg, at 8 deg 10 culled.
2026-11-21 17:30:27 -08:00
shinyobjectz 0a77ecb65e LightBench LB3b: temporal accumulation, reprojected, kept only on the same surface, reset on a camera cut; --raw
The light (before albedo) accumulates in a history each pixel reads from where its point was last frame, kept when
the stored distance (2%) and normal (0.9) agree, at most --history frames (32). A jump of over a metre or 20 degrees
in a frame is a cut and starts it again; --camera still|orbit|cut and --view history show it. Checked at 64 lights,
weighted K=4, 1280x720: RMSE to the every-light reference 8.3 / 5.8 / 3.4 / 2.5 / 1.9 after 1 / 4 / 16 / 32 / 64
frames (14.5/sqrt(frames), the 32-frame history settling like ~63), --raw 14.5 throughout; while orbiting the history
stays full but where the knot and wall uncover the ground; on a cut the ground's history drops to one frame and rebuilds.
2026-11-21 17:30:27 -08:00
shinyobjectz 90f138fba0 sdk: Cuboid's doc says Bevy's front face shows a picture upside down and its back face the right way up (found rebuilding a photo: every printed label read upside down) 2026-11-21 17:30:27 -08:00
shinyobjectz bdd30b7c65 LightBench LB1 and LB3a: a Rust + Bevy test renderer (bench/lightbench, docs/lightbench.feature)
Bevy's deferred prepass is the G-buffer (depth, world normals, albedo); a compute pass lights it into the HDR main
texture from point lights, every light (the reference) or K chosen uniformly or by their unshadowed light, each with
one shadow ray through LightBench's own binned-SAH triangle BVH, which holds every triangle (off-screen casters too).
Checked: the BVH matches brute force in unit tests and on the GPU (byte-identical frames at 4122 triangles); the
pillar outside the view casts into it (--no-pillar removes the band); 1280x720, 262k triangles, frame time with the
GPU waited for: every light 7.8 / 22.4 / 81.5 ms at 16 / 64 / 256 lights, uniform K=4 6.2 to 7.7 ms flat, weighted
K=4 5.3 to 10.9 ms; at 64 lights the RMSE against the reference falls ~1/sqrt(2) a doubling of K (uniform 56.8 to
14.1, weighted 30.8 to 7.1 from K=1 to 16), weighted K=4 as good as uniform K=16.
2026-11-21 17:28:45 -08:00
shinyobjectz 71ee5ab583 raea gen: made quotes a length-priced edit with its real video; fal puts a start frame in image_url
made: a model billed per second of its input (seedance_2_5_edit, catalog inputSecondsPricing) was quoted with a
stand-in URL, and made answered "couldn't read the source video: unsupported media container". The run now uploads
that input once and quotes and sends with the same media id; the plan says the price per second instead of the error.

fal: body() took the first non-list field containing "image_url", which in Seedance 2.5's schema is end_image_url,
so the start frame went in as the last frame and fal refused the job (422). The plain image_url / image_urls field
is picked first, and an end_image input goes to the end-frame field. Test: a_start_frame_goes_to_image_url_not_the_end_frame.

Found making the raea cloud hero film (11-18).
2026-11-21 17:27:49 -08:00
shinyobjectz 3469759329 TM0, TM1, TM2, TM3, TM4, TM8: telemetry goal written (docs/telemetry.feature) and six of its tasks done
Shane 11-20: repair and improve telemetry, split by platform and release period, and get it from CLI installs too, so
that only a build from source sends nothing. TM0-TM8 written; TM0, TM1, TM3 (server), TM8 live on raea-api 788657a4
and raea-admin (private 3a45e44, D1 0050 and 0051); TM1-TM4 in the app from raea-feed #99 (2f702df). TM5-TM7 (the
CLI, source builds silent, who may turn it off) stay open.
2026-11-21 17:24:21 -08:00
shinyobjectz 18b37c421c raea-bot is now raea cloud (Shane, 11-18): its name in setup.sh, cloud.feature CL6b and the box server's comment 2026-11-21 17:21:26 -08:00
shinyobjectz f70360f1ee Boxes set up one way, and the Linux test machine in raea's own Sprites org (11-18)
- sdk/cloud/deploy/sprites/setup.sh: everything a box needs, run on the Sprite as
  bash -s -- NAME RAEA_VERSION AGENTS [REF] < setup.sh: packages, Node, raea's Linux release (sha256-checked),
  sdk/cloud's server (a tarball box.sh sends, or the public repo at REF), the ACP agents, the box's token, the farm's
  env, the skills, and the raea-cloud service. box.sh up runs it by hand (RAEA_CLOUD_REF for a commit instead of the
  local tree), and raea cloud's agents run the same script through the Sprites API, so the two can't differ (CR11).
  Tested on two throwaway Sprites, one each way: both ready in about 50 s with the same /v1/health.
- sdk/cloud/deploy/sprites/org.sh: the org guard box.sh had, shared: the org only from
  ~/.config/raea-cloud/sprites.env, refused when private/cloud/sprites-denied.txt lists it.
- tools/linux-box.sh: makes and completes the Linux test Sprite raea-linux (RAEA_LINUX_BOX picks another) in that
  org: build packages, the toolchain, the public repo, and an ubuntu 24.04 root /srv/noble for builds at glibc 2.39.
  tools/linux-check.sh uses it by default; its first check passed at 5194d34ef (raea-cli in 726 s, raea-render
  without default features in 134 s).
- tools/denied.sh: fails on any name from the private Sprites deny list found outside it, in the whole working tree;
  with no private checkout (public CI) there's nothing to check. L1 runs it.
2026-11-21 17:21:26 -08:00
shinyobjectz fcbfba57b9 Filter layers sized by what they draw, and an atlas as large as the GPU's textures (#125)
A 2160x3840 page with seven or more full-frame filtered elements was refused: each filtered element was an image the
size of its box in Vello's image atlas, and the atlas stopped at 8192 px a side, which holds six frame-sized images.
A motion blur of six <Freeze> samples plus one more filter was enough.

- blitz-paint: a filter's layer is the boxes the element and its descendants draw (drawn_bounds), and a box that
  draws nothing (box_paints: no background, border, shadow, outline, text of its own, inline content or replaced
  content) is left out, as Chrome sizes a filter's input. A full-frame wrapper around a 200 px square is a layer the
  square's size grown by the blur's reach. An element that draws nothing at all keeps its border box.
- vello_encoding: the atlas grows to the device's max_texture_dimension_2d (set_max_atlas_size, 16384 on Apple
  silicon: 28 frame-sized images at 2160x3840), set by raea-page before it makes its renderer. A full 16384 atlas is
  1 GiB, made only when a page needs it. The refusal names the real size.

bench/filter-atlas/check.sh: the issue's repro with twelve wrappers (each square's middle white, the page between
#333) and ten frame-sized filtered layers whose boxes draw (the page's middle 184; nine would be 176). Both are
refused on 0.1.8 (6 and 4 images left out) and pass here. bench/filter-overflow/check.sh still passes. Twelve filter
shapes (wrappers with absolute and in-flow children, text, a span, an image, a drop shadow, a border, nested
filters, a rotated child, a clipping wrapper, an SVG, a box shadow) draw the same pixels as 0.1.8 (PSNR 120).
2026-11-21 17:16:34 -08:00
shinyobjectz 8b1cef58d5 font-missing: render_said lives with the page's not_applied, so the export crate stays under its 2,000 lines
#174's render_said put raea-runtime-export at 2,009 lines. It reads raea-sys-page's not_applied and nothing of the
export's, so it moves there (raea-sys-page gains raea-core-facts) and the export re-exports it: the CLI's call is
unchanged.
2026-11-21 17:12:38 -08:00
shinyobjectz da20262976 A font-family whose first family isn't there is a render warning, naming the font drawn instead (#174)
A fontFamily that wasn't installed or loaded drew in the next family that was (the browser's serif, Times, when
none was), and the render said nothing: a web font that failed to load turned a whole video into Times.

- blitz-dom: each text style's family list is asked about as stylo_to_parley makes it, and its first named family is
  checked against the fonts once the inline layout is built (the builder holds the font context until then). A miss
  is kept once as: font "X" not found: drawn in Y, where Y is the first later family that resolves, or the generic's
  face. A family found later (a web font still loading at the first layout) takes its line back. Lists that start
  with the platform's system-face names (-apple-system, BlinkMacSystemFont, ui-*) aren't checked, nor bevy_text's.
- raea-runtime-export: render_said says each as a font-missing warning, with a fix, once the frames are out; it is
  counted with the render's findings and kept in its manifest, and is followed by the #34 note as before.

Checked on this build: the issue's repro warns for NoSuchFamily123 (drawn in Times) and not for Helvetica. A Tailwind
stack, a system-font stack, Georgia and monospace say nothing. A missing brand font before Helvetica warns once though
two elements use it. An @font-face web font from staticFile says nothing, as a still at frame 0 and as a video.
2026-11-21 17:12:38 -08:00
shinyobjectz 6dc089b82c skills: 44adf23, the SDK reference and meshes guide with Line3d and Tube (raea-skills #108) 2026-11-21 17:11:09 -08:00
shinyobjectz 34bf8eb021 SG6: Line3d and Tube, a line through points as one part drawn on solid at every frame
A curve drawn as a chain of parts (a box a segment) mounted a part a frame as it grew, each a frame late or at
another's place, so the stage film's curves came in chunks with their joins showing. raea/mesh's Line3d (flat, a
width, round joins and ends, facing its points' plane) and Tube (round, rings carried along so they never twist,
capped) are one BufferMesh each through every point, cut at p of their length, so animating p draws the line on.
The meshes guide's curve recipe uses them and names a chain of parts as a common mistake; the manual's raea/mesh
page and Tube's taxonomy line; sdk/raea/conformance/line3d.test.tsx.
2026-11-21 17:07:56 -08:00
shinyobjectz 6e1d7ceee0 SG5: one clock for every 3D part that takes a frame of its Sequence
sdk/render/src/3d/clock.ts holds the check RichText had: a frame prop at or past its Sequence's last frame is refused
at the part's first frame, naming the prop and the fix. RichText, a mesh's and a material's animate (its first key:
an animation the Sequence's end cuts short is fine, one that never starts isn't), a lens effect's and MotionBlur's
animate, and BevyComponent's from use it. Video's startFrom (a frame of its source clip) and a volume source's
seconds are left out on purpose. sdk/raea/conformance/one-clock.test.tsx; the spec's SG4 and SG5 status.
2026-11-21 17:02:16 -08:00
shinyobjectz 4bdc4749e4 SG4: a part whose entity had already gone is an error naming it and the frame
The frame store's despawn used World::despawn, which only logs "Could not despawn entity" when the entity is gone
(despawned with another row it hung from) and carries on while the part is drawn wrong. It now uses try_despawn,
drops the row from the store either way, and returns an error naming the row's kind and id; remove_rows_from and
Engine::remove_rows pass it on, and a render fails on it with the frame ("frame N: Could not despawn entity: the text
part 'quote' had already gone ..."). The store test covers it.
2026-11-21 17:02:16 -08:00
shinyobjectz d83975535f skills: d8ed3cd, the SDK reference with cameraPath (raea-skills #107) 2026-11-21 16:39:33 -08:00
shinyobjectz f7147d52c0 SG7: the manual's raea/camera page lists cameraPath and its types 2026-11-21 16:39:33 -08:00
shinyobjectz 9d311f5fde SG7: cameraPath, a camera path that can't lurch
raea/camera's cameraPath(keys): keys timed in frames, each channel (position, look point, fov) a cubic paced by time
with one velocity a key, so the camera's speed carries across every key; it eases only at the ends and at a hold, and
no channel passes a key and comes back. camera(frame) gives Camera3d's props (fov in radians, as Bevy's is), and
check() names a key whose timing still makes the camera brake hard, with the fix.

On the stage film's 155 keys (the film's own camera diagnosis) framing reversals go from 24 to 5 and speed changes of
2x within 3 frames from 51 to 29; what's left is in the keys (turns, poses given twice, a quick move against a slow
one), and check() names exactly the 18 of the last kind. The 3D guide's camera rule uses it.
2026-11-21 16:39:33 -08:00
shinyobjectz ba2dc6ade7 SG3: a glyph that grows the 3D text atlas is drawn whole
bevy_rich_text3d 0.8 read the atlas image's size before allocating a glyph, and the allocation that doubled the
atlas's height left that glyph drawn into the old bounds: the letter came out cut (a Space Mono H in the stage film,
hidden there by warming the atlas with throwaway text). raea now patches it (vendor/bevy_rich_text3d, tess.rs reads the
size after allocating; vendor.toml says why and the way back to upstream).

engine/render/tests/diag/glyph-atlas-probe.tsx draws the glyph set into a cold atlas and a warm one, and
tools/frame-pure-3d.sh compares the two. SSIM over a whole frame scored the cut letter 0.9996, so the check also counts
pixels off by over 96 levels after an erosion that drops lone ones: 179 on a build without the fix, 0 with it.
2026-11-21 16:32:52 -08:00
shinyobjectz c3dd6b7d52 SG0: the stage repros are a standing check: a 3D sequence's frames must match the same frames rendered alone
tools/frame-pure-3d.sh renders each repro in engine/render/tests/diag as one sequence (lossless PNGs, frame after
frame in one process, as an mp4's live 3D is made) and four of its frames alone, and fails below SSIM 0.999 naming the
repro and frame. Green on main after SG1 and SG2 (0.9998 and up on every sampled frame); a sequence's frame 28
against frame 29 alone scores 0.986, so a part held since its first frame can't pass. kept-props2 leaves out its
picture row, which showed two brands' logos. L1 runs it when the code that makes or draws 3D rows changes.
2026-11-21 16:05:34 -08:00
shinyobjectz f4b524f896 SG16: the 3D guide's rules say what the stage guards hold
The mobile-ads essay's faults came from rules the guide didn't state or stated wrong:
- rule 5 said a shape is fixed for a part's life; since SG1 a changed shape or words is built again on the frames it
  changes, so the rule is now grow by scale, and change words only when they change;
- one clock (SG5): a scene is a Sequence and its parts read useCurrentFrame, never a frame passed down as a prop;
- type that reads: labels in the page over the 3D, world type at least 22 px caps, within 35 degrees of the camera,
  held for its reading time (SG9-SG12's numbers);
- a camera that settles: keys timed by frames and paced by time, no push-pull or pan reversal inside 1.5 s (SG13).
2026-11-21 15:57:02 -08:00
shinyobjectz 0d01e4ef43 SG5: RichText refuses an at or exitAt past its Sequence's last frame
`at` and `exitAt` count in useCurrentFrame's frames. A scene that passed its own frame down as a prop gave a frame
from another clock, which in a shorter Sequence fell past the end, so the move never started (a quote set at its
scene's frame 1013 never appeared in a 150-frame part). The error names the prop, the Sequence's last frame and the
fix.
2026-11-21 15:57:02 -08:00
shinyobjectz 83d8f8e305 SG1: a 3D part whose shape or words change is spawned again; SG2: a text block keeps its own row
An mp4 draws its 3D live, frame by frame (raea-runtime-scene live.rs), and the engine reads a part's shape, its
words and its surface's maps only when the part's row is spawned. So a Sphere whose radius grew, a RichText whose
words changed and a Ribbon's newest box all held their first frame's: curves drew as dashes, counters stayed at
"0.0 MB" and typed lines stopped half-typed. A text block also kept the id its frame gave it (text0, the frame's
first block), so a block mounted as another unmounted took over that one's row and drew the old words in its own
glyphs' colours.

- core/scene kept.rs: which columns a row keeps from its spawn, per kind (kept_col, respawns); a part's kept inputs
  as one number (spawn_sig); tracks cut where those change (split_kept); KeptInputs for the fast path. The live
  column tables moved here from live.rs, which is at its size limit.
- live.rs diff: a row whose kept columns changed is dropped with the rows under it (glyphs, components; those first,
  SG4) and spawned again under the same id. Text blocks are rows by identity, as meshes are. A glyph's colour is sent
  as col_r/g/b.
- fast.rs: the fast path takes the full path when a part's kept inputs changed.
- A still's rows (and RAEA_3D=program's) cut a part's track where its kept inputs change.
- runtime/live/tests/stage_guards.rs: 5 tests (a shape spawned again, new words laid out again, a new text never
  takes an old one's row, a glyph's colour, a still's own shape and words). live_emissive and live_sheet pass.
- docs/stage-guards.feature: the diagnosis and the guards SG0-SG16.
2026-11-21 15:57:02 -08:00
shinyobjectz 9e03e5fe4b manual: the SDK pages main's ask and camera changes left stale
brief.md and fingerprint.md gain fingerprint.ts's ask (AK8: flags asked again of the decision model as it scores), and
camera.md loses the HTML image props its component no longer takes, as tools/manual-ref/sdk.ts writes them from main.
2026-11-21 15:55:32 -08:00
shinyobjectz 5a73a7d5b4 skills pin: raea-skills #106, raea ask in the skills and the references main changed
feed.md (the ask tool), files.md (~/.raea/ask, RAEA_HOST_FILE, install.json) and sdk.md (raea/ask) were stale on main,
so every lane's L1 failed its skills step; fingerprint.md and collaborate.md now say when to ask.
2026-11-21 15:51:25 -08:00
shinyobjectz 2c0d626432 manual: show's labels, media sheet's labels file and export xml's two projects, as main's help says
f858b78c3b (CO2b, CO2c) gave raea show --label/--detail/--labels and raea media sheet its OUT.labels.json, and the
layers app's export xml now writes NAME.premiere.xml and NAME.resolve.xml, without their reference pages, so L1's
manual reference step has failed on main since 11-18. Regenerated with tools/manual-ref/cli.ts, and the three flags
described.
2026-11-21 15:48:24 -08:00
shinyobjectz 031d1357ca vendor: hanabi's contract tests carry the raea: mark for #196's label change
#196 renamed two shader labels in vendor/bevy_hanabi/src/render/shader_contract_tests.rs (no colon, which DXC reads as
a file name) without a raea: mark, so tools/vendor check has failed on main since 11-19 and every landing's L1 with it.
2026-11-21 15:43:31 -08:00
shane a6f59c198f Merge pull request #213 from shinyobjectz/fp-silent
fingerprint: a render with no sound track has no sound to judge
2026-11-20 17:15:22 -08:00
shane 6073b116b7 Merge pull request #214 from shinyobjectz/ask-double
AK8: the fingerprint's flags asked again of clef
2026-11-20 17:15:18 -08:00
shane 6298d127e5 Merge pull request #210 from shinyobjectz/one-plan
PL8: one way to keep work, and any tracker beside it
2026-11-20 17:15:13 -08:00
shane 5a57a5e128 Merge pull request #212 from shinyobjectz/ask-calibrate
AK6-AK7: raea ask learns from the person: verdicts, notes and approvals, calibrate and try
2026-11-20 16:39:12 -08:00
shane 328aba8849 Merge pull request #211 from shinyobjectz/ask
AK0-AK4: raea ask, questions about a piece's picture and sound, paid from the person's plan
2026-11-20 16:38:58 -08:00
shane af925441a8 skills: the pin at raea-skills #105, with controllers gone and plan.org the one list
It also carries raea-skills #104, whose raea side (#205) is already in main.
2026-11-20 16:38:45 -08:00
shane d203d64944 Merge pull request #209 from shinyobjectz/no-controllers
PJ9: controllers are gone; a standing rule is a taste line
2026-11-20 16:38:29 -08:00
shinyobjectz af2b35f439 AK8: the fingerprint's flags asked again of clef
raea fingerprint score FILE --ask flags (or ask: "flags" in fingerprint.ts)
puts each flagged moment to clef as a yes/no question in its axis's own
words, looking or listening as the axis does, on that moment's window
alone, so it costs by the flags and never by the piece; --ask unsure also
asks the windows an axis puts in its plausible band without flagging them.
It goes through raea ask's runner (routes, cache, record, the person's
calibration), and the axis's words are the question's label words, so the
person's notes calibrate it (AK6, AK7).

Each flag gets a line under the score ("dark: clef doesn't see it (0.00)",
and a clef array with --json), and each answer replaces clef's last
eye:clef evidence row for that moment, which trains the head and never
counts as the person's. A moment it couldn't ask says why, and the score
goes on.

The double check is its own crate, raea-app-double, since raea-app-ask
holds 1841 of its 2000 lines. The manual page covers score --ask beside
readings' and postmortem's --ask N; docs/ask.feature marks AK8 done.
2026-11-20 16:26:21 -08:00
shinyobjectz 1858bf9bef fingerprint: a file with no sound track has no sound to judge
Columns::sound embeds at least one clip, so a render with no audio stream
got one empty clip's CLAP vector, and Modality::Sound.in_file said it had
sound. Its sound axes then judged silence, and score could hold it back as a
gating dropout or clip over the whole file. Sound and sound events are now
in a file only when it has levels to read; the embedding is unchanged, so
evidence rows and damage windows keep their features.
2026-11-20 16:24:00 -08:00
shinyobjectz 0daaeb5b38 AK6-AK7: raea ask learns from the person: verdicts, notes and approvals label it, calibrate and try
A label belongs to a question and the clips a call sent, so new words asked of the same clips share its labels.
raea ask verdict ANSWER WORD is the person's answer in the question's own terms; a note of theirs on the posted
render, inside the window and holding one of the question's label words, is a yes, and a post they approved without
one is a no. Each call now keeps its file's identity, so the note is matched to the render it was left on, never to a
later render at the same path. An agent's own look (--eye agent) is kept and never counted.

raea ask calibrate holds each labelled version to the person's labels through the fingerprint's own AUC, quantile
and gates (16 of each kind, 3 projects, 0.8); a version that passes flags where 10% of their clean work would, and
goes out with the question from then on, in place of raea's shipped calibration. One under 0.6 after 32 labels lists
what it missed. raea ask try sends new words with the kept clips through the same runner and prints both AUCs.

The record now writes each row in one write, since several runs append to the same files.
2026-11-20 15:50:31 -08:00
shinyobjectz 6a4ff18a0b ask: six snippets reshaped that the dupes check read as copies
L1's dupes step counted 300 exact groups against 294 allowed, and each of the six new groups was ask code beside an
existing twin. Recorded answers are read in one step, the cache folder names its PathBuf, the media prune reads each
entry's metadata in one chain, a temp clip is removed with .ok(), the client encodes base64 with the engine itself,
and a question id is checked over its bytes.
2026-11-20 15:25:33 -08:00
shinyobjectz 24b8bf33e4 AK4: raea ask --brief none, for a caller that writes the whole state itself
The app's critique and game check now ask through raea ask (raea-feed) with their own state: --brief none (or
"brief": "none" in a batch) keeps raea ask from adding the nearest brief's facts to it, and with no brief and the
caller's state, the caller says what the piece is. docs/ask.feature AK4 says what's built and in review: the pool
route's sounds, criteria, pool left and ask scope on raea-api, and the app's /host/ask, ask tool and critique.
2026-11-20 15:17:23 -08:00
shinyobjectz 68433ab526 AK3: raea ask: questions about a piece's picture and sound, prepared, asked in parallel and kept
raea-app-ask. prepare.rs reads what raea knows of the piece before it spends: what the file holds, the nearest brief.ts
(through raea spec) and a words file. A question that doesn't apply is dropped or swapped with why (a silent piece
asks sound-silent in place of sound); not knowing whether anyone speaks, both variants go in one call with the voice
question, and the answer sets the other aside. runner.rs plans a batch into calls (by file, window, files beside it
and what the questions look at, 64 a call), cuts each clip once, calls in parallel (--jobs), streams the answers, and
when the pool is spent partway keeps what came and reports the rest as waiting. record.rs keeps every call and
answer under ~/.raea/ask with the clips it cut, by hash, at most 2 GB. verbs.rs is raea ask: own words (--choose,
--grade, --rate, --flag), the standard sets (--set, --std, ask list), windows (--from, --to, --at), --with, --batch
(a JSON list or lines, - for stdin), --dry, --json and --gate for pipelines.

sdk/raea's raea/ask gives scripts ask and askMany over raea ask --batch --json. The clef client's failures are
typed so a spent pool waits rather than fails; decide.changed needs files beside it. The manual's CLI and SDK pages
are written with it; AK1, AK1b, AK2 and AK3 are done in docs/ask.feature.
2026-11-20 15:07:41 -08:00
shinyobjectz 70cb98d3e8 AK1b: raea-io-clef: one clef client, routed to the person's plan first; raea judge moved onto it
One call: the state, the questions by id, and stills (JPEG), videos (MP4) and sounds (MP3) cut with raea's FFmpeg to
clef's limits (480 px H.264 at a small bitrate, mono 16 kHz MP3, JPEG at most 1,600 px; ffprobe says first what a file
holds). It goes the first way that answers: the raea app's host (/host/ask, which adds its sign-in), an agent key
(RAEA_AGENT_KEY with RAEA_API, for pipelines and servers), the person's own Cloudflare account; with none it says how
to get one. No plan or no ask scope hands on to the next way; a spent pool stops unless the person has their own keys.
Unchanged questions on unchanged media come from a cache by request hash; RAEA_CLEF_REPLAY gives recorded answers to
tests.

raea judge asks through it (Question::from_wire reads its rubric's clef-native questions), so apps/judge's own
clef.rs is gone and the judge pays from the plan when the app is signed in. docs/settings.md lists the new settings.
2026-11-20 14:44:32 -08:00
shinyobjectz 6c7bf70a4e AK1: raea-core-ask: the question, how its answer reads, the standard sets and clef's limits
A question is clef's own shape (yes, choose, grade, rate), what it needs to be asked (`when`, and the question asked in
its place with `swap`, so sound to sound-silent is data), what it looks at and listens to, its window, label words and
calibration. Every answer reads as a problem score from 0 to 1 whatever its type, so one calibration fits all; a
question flags past its calibrated threshold, or past even odds as advice. A wording is versioned by a stable hash.

The standard sets: the rubric, read from its guide (one copy); av, picture with sound; defects, the fingerprint's
seven axes with no labels, in its own words; platform, the check packs' 17 model questions with their calibration (3
pass the 0.8 gate); decide, picks and before/after. The limits are raea-api's where stricter, so a call that passes
them passes on every route. sdk/raea/src/ask.gen.ts is generated from the types and checked by a test.
2026-11-20 14:38:44 -08:00
shinyobjectz dc956173f1 AK1: ask's spec: questions about a piece's picture and sound, paid from the person's plan
docs/ask.feature sets the model and plans AK1-AK9: one question format and one clef client for every caller (the CLI,
pipelines and scripts, raea check, the fingerprint's double check, the app's agents, critique and game checks, raea
judge); ask understands a question before it spends; the person's pool first, then an agent key, then their own
Cloudflare keys; one parallel runner that cuts each clip once; standard sets (rubric, picture with sound, the
fingerprint's unlabelled axes, the check packs' questions, decisions); and answers kept and labelled so each question
earns its threshold, better words can be measured, and a calibrated question can later be learned locally.
2026-11-20 14:32:28 -08:00
shinyobjectz d90b05017e PL8a: a brief has no tasks, and an object's plan is its parts
core/brief's Brief drops stages and its Stage, Mark and Task types: a
project's tasks are its plan.org. An older brief with stages still
reads; raea doctor says its tasks belong in plan.org and moves nothing.

core/brief's object plan, the solids contract, is parts() in
NAME.parts.ts (raea spec --as parts), so plan means only a project's
plan.org. No project used plan(); the bevy guides that teach it, the
manual and the reference pages follow.
2026-11-20 14:00:55 -08:00
shinyobjectz 5f55c55d57 PL8: one way to keep work, and any tracker beside it
docs/plan.feature PL8: plan.org is the one list, a message isn't a task,
closing follows the work, the keywords are the file's, and a task is kept
in step with another tracker by :LINK: and #+LINK_STATES:, agreed with
raea cloud.

@raea/task: trackersOf, trackerStates, keywordFor and statusFor read a
task's :LINK: entries (SYSTEM:ID, one per system) and the head's status
maps; checkPlan names a bad entry, a URL, a system twice on one task, one
tracker item on two tasks and an unknown mapped keyword, each with its
fix, and requires nothing else. newPlan takes the keyword sequence its
caller keeps. A raea cloud plan.org passes with nothing flagged.
2026-11-20 14:00:55 -08:00
shinyobjectz 86fe5d3673 size and no-void skip skills/, as they do in the live tree
raea-skills is its own repo. In the live checkout git never lists a
submodule's files, so neither check read them; L1's export extracts the
pinned skills as plain files, and since the pin took in the vendored
video-decompiler skill every lane's L1 failed on its font licences and its
907-line scene.tsx.
2026-11-20 13:01:40 -08:00
shinyobjectz 822b73fc7d PJ9: controllers are gone; a standing rule is a taste line
A taste line's check now takes any of raea's checks by name or a project's
own .ts check by path, with values and a level, beside the six forms. raea
check reads the project's own taste.ts beside the person's and the
workspace's, and raea context prints it.

Removed: the controller schema, raea controller, raea spec --as controller,
[controller] overrides in .raea/project, the registry's controller kind and
its lints, controllers/ in new projects and shared/, and controller() in
raea/brief. raea controller and raea doctor say where a controller's parts
go; doctor moves or deletes nothing. The direction proof's five rules are
lines in its taste.ts and it passes as before.
2026-11-20 13:00:19 -08:00
shane db53845b01 Merge pull request #207 from wackyza/styles-plan
Videoform: the plan and its tasks (VF1-VF13)
2026-11-20 12:38:35 -05:00
shane 3ffe34bb7d Merge pull request #205 from wackyza/check-fewer-rounds
raea check: fewer rounds, shorter checks, and raea's own mix and master
2026-11-20 12:38:08 -05:00
Zachary GuglinandClaude Opus 5.5 0706baee4e Videoform: the plan and its tasks (VF1-VF13)
A videoform is the kind of video a person makes again and again, read once from five to ten of their finished videos
(from the drive, or streamed from a URL with nothing downloaded) into embeddings and measures, then followed and checked
on every cut without going back to the references. It's a kind of fingerprint, and flows into what raea has: its
ranges into its profile (FP6e), its rules into a controller's rule fields (DR4, DR8), its structure into a script
template, its references into brief.ts's shape. What ships runs on raea's own models; the domain vocabulary is written
by the person's own AI. docs/videoform.md is the plan (what's built on, what a videoform keeps, the resolver, when it
doesn't hold together, judging, the build order); docs/videoform.feature its rask tasks, with their plans.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 19:09:46 -08:00
shane 1b7450fb4b Merge pull request #206 from shinyobjectz/win-sizes-export-game
Windows: sizes without du, export-game says it makes Mac games; TokenSynth's line in 0.1.8's notes
2026-11-19 21:34:26 -05:00
shinyobjectz 84acab1f50 whats-new 0.1.8: TokenSynth ran end to end on Windows
rc12 on a Windows runner with nothing on the PATH but raea and Windows: raea setup-audio tokensynth in 113 s, then C2 and C3 of "warm analog bass" in about 75 s each on the CPU, both in tune (64.8 Hz and 130.5 Hz), and again from the asset store at once. The Known line now says only that it runs on the CPU there.
2026-11-19 17:52:04 -08:00
shinyobjectz 25280d1eba Windows: sizes without du, and export-game says it makes Mac games
raea setup-audio (and raea motion's model folders) said "(?)" for every size on Windows: raea_io_home::disk_use ran du, which Windows has no copy of. Without du it now adds up the files' sizes (through links when asked, 64 folders deep at most) and writes them in du -h's units. a_folder_is_sized_without_du; run on a Windows 11 PC with no du, and on macOS.

raea export-game on Windows or Linux said "no player at ...\\raea-game (build it: cargo build --profile game ...)": its targets are a Mac's (signed with codesign) and those releases carry no player, so the advice led nowhere. Off a Mac it now says it makes Mac games and that Windows and Linux games aren't there yet.
2026-11-19 17:52:03 -08:00
Zachary GuglinandClaude Opus 5.5 6350c5deb0 raea-runtime-export keeps under its crate limit with LX6 and LT1's plan: the exposure filter's comment trimmed
rask's size gate counts a crate's planned tasks: the 2D fill filter left raea-runtime-export at 2001 lines with them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 17:00:57 -08:00
Zachary GuglinandClaude Opus 5.5 b6dad1b8aa raea check reads the picture once for flashing, freezes, flash frames and blotching: the same findings in half the time
Four of raea check's rules each decoded the whole export, one after another: 3.7 s apiece on the 11-14 walkaround,
38 s of FFmpeg on a 56 s master export. Run at the same time they took 15.8 s, the same as in turn: decoding is the
machine's whole CPU, so only decoding less saves anything. One FFmpeg now decodes it once and splits the frames into
the four filter chains the rules were tuned on, each to its own output with its own options as when it ran alone
(raea-app-check-read once.rs): the flashing screen's frames to stdout with their showinfo times on stderr,
freezedetect's lines on stderr, the 32x18 grey and blotching's 2 s crops to named pipes. Each rule is split into its
read and its judgement, and the judgements run on what the one read gave, in the order they ran before.

tests/parity.rs holds the one read to the four alone on a clip FFmpeg makes: the same flashing frames and times, the
same brightness, the same crops and the same freeze. On both Telluride projects' exports the check's findings and passes
are identical to before (its JSON byte for byte), and it takes 7-8 s where it took 13-20, and 20-29 s where blotching's
comparison render also runs (37-59 before). Without named pipes (Windows with FFmpeg) the rules read alone as before,
and without FFmpeg raea's own readers do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 16:41:53 -08:00
Zachary GuglinandClaude Opus 5.5 4c3a3ba799 raea mixes and masters every render's sound: dialogue at one level, a leveller before the limiter, room tone at the joins
The person's rule, 11-19: raea does its own mix on everything, then masters it. Until now a render was
mastered only with a <Mix>, and then by a gain and a limiter alone; levels were the agent's to set. The 11-14 walkaround's
lines ran from -13.8 to -26.9 LUFS, so the agent measured each with ffmpeg and set its gainDb, the limiter still took
up to 8 dB off phone speech's peaks, and the joins between lines fell to dead silence (a dropout, the check said). It
then built and mastered the voice outside raea.

- The mix (raea-sys-mix-level, level.rs): each line of dialogue, a clip on the voice bus or footage's sound on no bus,
  is measured over the span of its take it plays (BS.1770, gated) and brought to -23 LUFS, by at most 12 dB. Room tone
  and silent takes (under -45) keep their level; so do music, effects and every other bus, which sit under dialogue as
  their buses set them. gainDb is an offset on top. Live play and the render level the same span the same way (the
  clip's span comes from the SDK's data-clip-from and data-clip-to).
- The master: a leveller in the limiter (from 9 dB under the ceiling, 3:1 on the mix's RMS, 10 ms in, 150 ms out)
  rounds the loud passages so the limiter catches only what's left, in live play, the render and seedling's limiter
  alike; the gain is made up for what it took. Without a <Mix>, every render masters to -14 LUFS at -1 dBTP.
- The joins (joins.rs): a gap the mix drops into dead silence and comes straight back from gets the room's own tone, the
  quietest stretch of sound near it, looped and faded, found at the level the master plays it. A pause that fades is
  the edit's and stays. The render fills them; live play hears the gap.

The walkaround's v1 sound, each line straight from its take: before, its lines spread 6.7 LU and it had a dropout (and
the mono fold's false clipping); now 2.1 LU, no dropout, -14.5 LUFS, -1.6 dBTP, with nothing set by hand. The Kia cut,
whose voice was mastered outside raea, comes out at -14.1 LUFS, -1.2 dBTP. MASTER_VERSION 4. The guides stop telling
agents to level lines or add a <Mix> to be mastered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 16:41:53 -08:00
Zachary GuglinandClaude Opus 5.5 6d076868f0 raea check measures clipping on each channel: the mono fold read a clean master as clipped
The clipping rule read the sound folded to mono, which ffmpeg's -ac 1 (and raea's fold, after it) make at
(L + R) * 0.707: a centred voice comes out 3 dB hotter than either side. The 11-14 walkaround's v1 and v2 masters peak at
-1.5 and -1.6 dBTP, no channel near full scale, yet their folds passed 1.0 and the check found 9 to 36 flat-topped runs
over full scale. The agent spent two renders on it and then mastered the voice outside raea; raea check on those same
files, each channel at its own level, finds no clipping. Clipping is a channel's: each is now read as it is (read::channels,
FFmpeg's -ac 2 or raea's own decoders), and a second is the most runs any channel had. A clipped channel is still found,
one that the fold would have hidden among the other too. The dropout and dead-stop rules keep reading the fold.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 16:41:53 -08:00
Zachary GuglinandClaude Opus 5.5 119f458018 raea render holds a video's text to the check's rules as it ends, and keeps a 2D frame's fill out of the lighting advice
A round sooner: what the render's manifest already knows is said by the render, not left for the check after it (the
11-14 walkaround's price figures in the UI zone waited a render and a check). Text off the frame is an error, as the
check has it. Text in a UI zone is a warn by the default zones, since the platform's are the check's to decide; reading
time waits for the check, which has the transcript. Video renders only: a stills render samples too few frames to time
a text. raea check's issue-to-finding conversion is now Issue::finding, which both use.

Exposure's lighting advice ("a fill, an ambient or the sky's light reaches them nowhere") is a 3D scene's. A frame with
no 3D in the render and no footage on it is the page's own fill, dark or bright by design (the walkaround's brand-dark
logo card warned on every stills render), so it's measured and kept in the manifest, not said. A frame with footage
keeps its warning: a clip that drew black still shows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 16:41:53 -08:00
Zachary GuglinandClaude Opus 5.5 1899d29dff raea check says who can fix what it finds, so a round goes only to what another render can change
Two Telluride walkaround projects (11-14, 11-16) took nine renders; five chased findings no render could move. The
checks measured right every time; what they didn't say was whose each finding was. Nothing a rule measures, and no
line it draws, changes here: what changes is how a finding is told.

- The picture's own or the encode's (raea-app-check-cause). A rule an encode can cause is measured again on the
  composition drawn at the same frames without encoding (raea render --at, out of the record). Blotching is the first:
  the walkaround's phone footage scored blotchy in 9 of 28 samples before any encoding, so every export failed and no
  setting cleared it. Now the picture's own is a note, and what the encode added is the error with a fix raea has:
  --quality high added to 14 of 28 samples (x264 crf 12 moved the score at most 0.005; master added none), so the
  check says render with --quality master, and the master export then passes with the note.
- Carried. A finding an earlier export of the same composition had at the same moment ends "[also in …]": what changed
  between them didn't move it. Its rank stays as measured.
- A source isn't a delivery: a take under assets/ or media/ checked on its own reports its loudness as a note.

The text rules (clipped, UI zones, reading time, face, cues, brand kit) move to raea-app-check-text, so raea render can
hold its own text to them, and raea-app-check stays under its size limit. Probe gives the video's frame rate.
The rendering guide tells agents to fix every error in one pass, not to repeat a change that didn't move a carried
finding, and that a note is for the person.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 16:41:53 -08:00
shane a9ecc06820 Merge pull request #204 from shinyobjectz/win-noavx
Windows: raea.exe starts on a CPU without AVX; 0.1.8's notes for rc10-rc12
2026-11-19 19:19:25 -05:00
shinyobjectz 191314a69a whats-new 0.1.8: #169's workspaces, #112/#124, raea show, Intl, master's darks, no-AVX; Linux's requirements
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.
2026-11-19 15:27:53 -08:00
shinyobjectz 865e608857 Windows: raea.exe starts on a CPU without AVX (Goldmont, Nehalem)
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.
2026-11-19 15:27:47 -08:00
shane 56cf86c5c8 Merge pull request #203 from shinyobjectz/windows-169-rc12
Windows: #169's last bugs, and what the agent shell got wrong there
2026-11-19 18:03:10 -05:00
shinyobjectz ee1f3bc32e JavaScriptCore modules get their import.meta.url on macOS 15 too
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.
2026-11-19 14:44:39 -08:00
shinyobjectz 040153449c CI runs what a Windows or Linux user meets: Intl on QuickJS, openh264 at master, git, the Node core (#169)
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.
2026-11-19 14:30:32 -08:00
shinyobjectz b60d901473 Git on a PC without it: found or fetched once, as the app's host does (#169)
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.
2026-11-19 14:30:31 -08:00
shinyobjectz 457121f804 raea show, brand and cut on Windows and Linux (#169)
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.
2026-11-19 14:30:17 -08:00
shinyobjectz 3f9d5eda2d The agent shell's Node core speaks Windows: platform, arch, ppid, paths, file URLs (#169)
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).
2026-11-19 14:30:17 -08:00
shinyobjectz 3a08d33f37 openh264 keeps every block of a slowly changing dark ground at --quality master (#169)
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).
2026-11-19 14:30:17 -08:00
shinyobjectz 917bc94f59 Intl on QuickJS: a composition that formats a number works on Windows and Linux (#169)
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.
2026-11-19 14:30:17 -08:00
shane 69fb3d8f87 Merge pull request #202 from shinyobjectz/win-export-xml
Windows: export xml's paths open in Resolve (#195); DX12 with DXC renders 3D again (#196)
2026-11-19 15:37:33 -05:00
shane a669144986 Merge pull request #201 from shinyobjectz/whats-new-weather
whats-new 0.1.8: raea/wear's weather during a shot (WR9)
2026-11-19 14:46:12 -05:00
shinyobjectz b39dd4e7de release.yml windows-verify: the bundle's list beside release-check.sh, where it reads it
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.
2026-11-19 11:39:35 -08:00
shinyobjectz f46529b461 Release: the Windows bundle's list read without its \r (rc9's Windows pack failed on it)
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.
2026-11-19 11:37:55 -08:00
shinyobjectz c3e7206581 DX12 with DXC: hanabi's utils shader named so DXC can read it; an export refuses a codec before rendering (#196)
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.
2026-11-19 11:37:55 -08:00
shinyobjectz 96c450fb75 export xml: a Windows path is a file URL an editor opens (#195)
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.
2026-11-19 11:37:55 -08:00
shinyobjectz 85f4b98616 whats-new 0.1.8: raea/wear's weather during a shot (WR9)
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).
2026-11-19 10:59:41 -08:00
shane fcdcf1c883 Merge pull request #200 from shinyobjectz/wear-crumble
raea/wear: crumbling (WR6), weather during a shot (WR9), the corner house demo (WR7); wear on the public hook (EX9)
2026-11-19 13:55:36 -05:00
shane 3f99e479cd Merge pull request #199 from shinyobjectz/win-bundle
Windows: everything raea needs ships in bin\, under licences we can meet
2026-11-19 13:46:12 -05:00
shinyobjectz bb8b497b58 docs/wear.feature WR8: what the wear shader costs, measured before building the detail layers
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.
2026-11-19 10:14:49 -08:00
shinyobjectz c37509d17f Debris thinned by raea-sys-touch's rule, a crack's bounds by parry's Aabb (two near copies folded)
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.
2026-11-19 10:14:49 -08:00
shinyobjectz 913931ad9a Windows: bin\ carries what raea needs, so a PC with nothing installed and no downloads works
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.
2026-11-19 10:05:03 -08:00
shinyobjectz 02051ee992 One smoothstep for the systems: raea_core_ease::smoothstep (raea-sys-damage's copied raea-sys-foliage's)
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.
2026-11-19 09:58:24 -08:00
shinyobjectz adec0aef74 docs/wear.feature: WR6, WR7 and WR9 as built, done
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.
2026-11-19 09:55:02 -08:00
shinyobjectz 84b7659b09 Worn paint is a surface shader of raea's own; raea-sys-wear goes (docs/examples.feature EX9)
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.
2026-11-19 09:53:04 -08:00
shinyobjectz e8e3500466 Clip cuts pick the H.264 encoder this machine's ffmpeg has (raea_io_ffmpeg::h264)
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).
2026-11-19 09:51:02 -08:00
shinyobjectz abc6828def Git for Windows' complete source, published beside raea's releases (tools/release/git-sources.sh)
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.
2026-11-19 09:49:58 -08:00
shinyobjectz d184deb4d1 FFmpeg for Windows, LGPL, built from FFmpeg's own release (tools/release/ffmpeg-win.sh)
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.
2026-11-19 09:49:58 -08:00
shinyobjectz 80ffc0f8e3 wear WR7: the corner house demo (examples/materials/wear)
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.
2026-11-19 09:37:02 -08:00
shinyobjectz 80cc01f11d wear WR6: crumbling, from the same causes (raea-sys-damage, raea/wear); WR9's weather during a shot
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).
2026-11-19 09:37:01 -08:00
shane 7d71973476 Merge pull request #198 from shinyobjectz/wear-recipes
raea/wear: a recipe per material class (WR5)
2026-11-19 12:18:40 -05:00
shinyobjectz 8581fac811 raea/wear: a recipe per material class (WR5)
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.
2026-11-19 08:36:34 -08:00
shane 0cd894553d Merge pull request #197 from shinyobjectz/ort-dynamic
Windows: raea starts on a processor without AVX2 (#110)
2026-11-19 11:26:55 -05:00
shinyobjectz c218ecfcdb Windows: raea starts on a processor without AVX2 (#110)
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.
2026-11-19 08:12:54 -08:00
shane 813ea34251 Merge pull request #194 from shinyobjectz/media-public
staticFile finds a web project's public/
2026-11-18 22:20:18 -05:00
shane 0112793530 Merge pull request #193 from shinyobjectz/fetch-sweep
Setup: a fetch stopped partway no longer leaves its download behind
2026-11-18 22:20:14 -05:00
shinyobjectz 7da3ef25ce staticFile finds a web project's public/
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/.
2026-11-18 19:11:55 -08:00
shinyobjectz 2238d3d66b Setup: a fetch stopped partway no longer leaves its download behind
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.
2026-11-18 19:09:09 -08:00
shane 9f3ece646e Merge pull request #192 from shinyobjectz/whats-new
What's new for 0.1.5, 0.1.6, 0.1.7 and 0.1.8
2026-11-18 21:24:28 -05:00
shane fcc8fded73 Merge pull request #191 from shinyobjectz/windows-ffmpeg
Windows reads a phone's or a camera's video: raea fetches FFmpeg the first time one needs it
2026-11-18 21:18:05 -05:00
shinyobjectz cc9f9b1135 What's new for 0.1.5, 0.1.6, 0.1.7 and 0.1.8
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.
2026-11-18 18:11:38 -08:00
shinyobjectz 4dfe231d32 Windows reads a phone's or a camera's video: raea fetches FFmpeg the first time one needs it
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.
2026-11-18 18:03:37 -08:00
shane 8a94b68093 Merge pull request #190 from shinyobjectz/windows-gpu-dx12
Windows: an AMD GPU runs on DX12 too (#155), and DX12 draws meshes right
2026-11-18 21:01:59 -05:00
shinyobjectz 0013c2eac2 Windows: an AMD GPU runs on DX12 too (#155), and DX12 draws meshes right
#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).
2026-11-18 17:49:56 -08:00
shane 10390997d3 Merge pull request #189 from shinyobjectz/resume-downloads
A local model's download resumes where it stopped, instead of starting over
2026-11-18 20:49:39 -05:00
shinyobjectz d3ebd0baf8 A local model's download resumes where it stopped, instead of starting over
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.
2026-11-18 17:31:26 -08:00
shane 56de5f1fd7 Merge pull request #188 from shinyobjectz/local-models
Local models install and run on a Mac, Windows or Linux with nothing installed first
2026-11-18 19:42:41 -05:00
shinyobjectz 4d44519fc1 Local models install and run on a Mac, Windows or Linux with nothing installed first
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
2026-11-18 16:24:45 -08:00
shane bb109cd6d1 Merge pull request #187 from shinyobjectz/check-native
raea check reads a video without FFmpeg (native readers, held to FFmpeg's answers)
2026-11-18 18:57:10 -05:00
shinyobjectz d8945089ed raea check reads a video without FFmpeg: raea's own decoders stand in where it isn't installed
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.
2026-11-18 15:38:16 -08:00
shane dc9dacf41e Merge pull request #186 from shinyobjectz/shared-imports
@shared/ imports render: both bundlers resolve the workspace's shared/ (LY2)
2026-11-18 18:35:35 -05:00
shinyobjectz ac7c37f256 @shared/ imports render: both bundlers resolve the workspace's shared/ (LY2)
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).
2026-11-18 14:59:37 -08:00
shane 08d0c7782a Merge pull request #184 from shinyobjectz/window-images
The window's memory: a picture decoded at the size its URL asks (raea-w, raea-h)
2026-11-18 16:28:14 -05:00
shane 12870b2426 Merge pull request #185 from shinyobjectz/window-trees
The window's memory: UI trees kept only for a reader, once per run; the page's code handed over once
2026-11-18 16:25:44 -05:00
shinyobjectz cba2c338d3 The window's memory: UI trees kept only for a reader, once per run; the page's code handed over once
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.
2026-11-18 13:15:42 -08:00
shinyobjectzandClaude Opus 5.5 87589c84c3 Merge main into window-images (vendor.toml: blitz-dom's reason has main's :has() clause and this lane's picture fit)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 12:53:57 -08:00
shane 1c8f405463 Merge pull request #183 from shinyobjectz/linux-winit
#182: no Engine makes an event loop, in any build, so 3D renders on Linux
2026-11-18 15:36:25 -05:00
shinyobjectz b36c98b418 The window's memory: a picture decoded at the size its URL asks (raea-w, raea-h)
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.
2026-11-18 12:08:31 -08:00
shinyobjectz 4f74e7e754 #182: no Engine makes an event loop, in any build, so 3D renders on Linux
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.
2026-11-18 11:59:42 -08:00
shane 067c030b67 Merge pull request #181 from shinyobjectz/callouts-0.1.8
Labels from the CLI: raea show --label/--detail/--labels, media sheet writes OUT.labels.json; skills at 76691d0 (callouts)
2026-11-18 14:08:43 -05:00
shinyobjectzandClaude Opus 5.5 1cc07ce266 Merge main into callouts-0.1.8: the skills pin is raea-skills 76691d0 (#103), after main's f37e5e3 (#99)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 10:30:13 -08:00
shinyobjectzandClaude Opus 5.5 dd0197900f skills: pinned at raea-skills 76691d0 (#103: the raea skill labels what one picture holds; cli.md and feed.md for the labels)
Also brings raea-skills #102 (video-decompiler), merged there since the pin at f37e5e3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 10:27:08 -08:00
shinyobjectz f858b78c3b Labels from the CLI: raea show --label/--detail/--labels, and raea media sheet writes OUT.labels.json (CO2b, CO2c)
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'.
2026-11-18 10:22:56 -08:00
shane 4bb94788af Merge pull request #180 from shinyobjectz/windows-intel-dx12
Windows: an Intel GPU runs on DX12, not Vulkan (0.1.7's Intel integrated graphics crash)
2026-11-18 13:18:50 -05:00
shinyobjectz 61b832fcba gpu: one backend rule for every wgpu instance, so Bevy's own device and the kernels take DX12 on an Intel GPU too
#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.
2026-11-18 10:03:25 -08:00
shane 6e19fb5dbe Merge pull request #179 from shinyobjectz/layers-into-main
Land Zach's layers stack (#167, #170, #171, #172) for 0.1.8: raea export layers / xml, CapCut from layers.json, keyed footage
2026-11-18 12:56:29 -05:00
shinyobjectz 6ee9a06f67 gpu/device: an Intel GPU on Windows runs on DX12, never meeting its Vulkan driver
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.
2026-11-18 09:45:46 -08:00
shinyobjectzandClaude Opus 5.5 fb0fca507f raea-cli and raea-runtime-scene back to 2000 lines (tools/size.sh): each side was at the limit alone
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]>
2026-11-18 09:45:07 -08:00
shinyobjectz b3d3308a37 docs/callouts.feature: an agent's labels on what it makes, beside the picture, an armature to the place on hover
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.
2026-11-18 09:37:54 -08:00
shinyobjectzandClaude Opus 5.5 f40e458776 Land Zach's layers stack (#167, #170, #171, #172) on main for 0.1.8
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]>
2026-11-18 09:33:11 -08:00
shane 5194d34efa Merge pull request #177 from shinyobjectz/fc1c-live-fields
FC1c: live play keeps a material's animated fields and a shader's time moving past the first frame
2026-11-18 11:45:27 -05:00
shinyobjectz 0c132413b6 FC1c: live play keeps a material's animated fields and a shader's time moving past the first frame
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.
2026-11-18 08:35:53 -08:00
shane 7ef7acc028 Merge pull request #173 from shinyobjectz/windows-navigator
sdk/ui: the page's navigator says the system raea's window runs on
2026-11-18 03:00:28 -05:00
shinyobjectz eaac2989d1 sdk/ui: the page's navigator says the system raea's window runs on, not a Mac's everywhere
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.
2026-11-17 23:53:10 -08:00
shinyobjectz 6e4f947fc9 codec: the master's make-up gain converges on heavily limited sound
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.
2026-11-17 20:42:47 -08:00
shinyobjectz 76f33c467b FO13: surface roots buried a third deep and wider than tall, swelling along their length, so they come up out of the soil rather than lying on it 2026-11-17 20:41:17 -08:00
shinyobjectz bf95366d54 FO13: a street tree's roots show only in its pit, sized to the tree
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.
2026-11-17 20:06:21 -08:00
shinyobjectz dfe8cff1a7 skills pin: raea-skills 075be77 (PR 101: sdk.md's raea/app list without validControls) 2026-11-17 19:52:34 -08:00
shinyobjectz 7669977ddd The manual's SDK reference regenerated for the controls (raea and raea/app: useControl, the controls' types), registry exporting their types as it did before the split 2026-11-17 19:52:34 -08:00
shinyobjectz 5bb9bd83c3 skills pin: raea-skills 898b99d (PR 100: raea motion on PyTorch, raea wear and raea light in the 3D router, the compositions guide's controls, cli.md and sdk.md regenerated) 2026-11-17 19:52:34 -08:00
shinyobjectz 04adefa570 L1 for every branch landing at once: crates and files back under their limits, copies folded, the Solari fix marked
- 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).
2026-11-17 19:52:34 -08:00
shinyobjectz e41890c456 FO13: raea-sys-foliage joins the workspace: its roots tested (a trunk flares at the ground and its roots sink into it)
The crate's members line, its layer (systems) and its facility row (the city's tree LODs build on it). Tests: 7
pass, the rewritten roots among them.
2026-11-17 19:52:34 -08:00
shinyobjectz 371a406507 FO1-FO13: raea-sys-foliage, trees grown by species for the 1917 city (in progress: not a workspace member yet)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz b6a968dae5 docs/video2raea-sound.feature, the sound spec 2026-11-17 19:52:34 -08:00
shinyobjectz 07f8dd3b99 runtime/bake's read tests 2026-11-17 19:52:34 -08:00
shinyobjectz 8c52f63c4e blitz-dom's text editing: IME, keys and undo 2026-11-17 19:52:34 -08:00
shinyobjectz 3a62efa343 core/scene, systems/sampler's arrays, systems/procmat, and a pbr.md line 2026-11-17 19:52:34 -08:00
shinyobjectz 90b2621d5b raea/character's anatomy (bones, organs, pieces, hits) and its test 2026-11-17 19:52:34 -08:00
shinyobjectz bd9f7b73b8 a composition's controls in the SDK, sdk/video's registry and systems/tweak's values 2026-11-17 19:52:34 -08:00
shinyobjectz 30c26b919c The paint look takes soft (its light as a gradient instead of flat bands), cuts (up to four balls, each a world: a mesh is drawn only in its own, cut per pixel in the main pass and the prepass, with nine styles for what is inside) and a rim and a terminator colour. All default off: at the defaults every shader branch is the code before it. Its docs, tests and the skills reference are still to come 2026-11-17 19:52:34 -08:00
shinyobjectz c848379314 RR3: in progress: bench/rerender/rr3.sh turns segments on (RAEA_SEGMENTS=1) while they are opt-in; its one-run render turns them off 2026-11-17 19:52:34 -08:00
shinyobjectz e50c22064f RR3: in progress. A whole video made as shot segments and joined by stream copy, behind RAEA_SEGMENTS=1 until RR3's gates are measured. raea-runtime-segments: a new encoder run (unsigned) at each cut once the segment before holds a second of frames (split.rs), the whole wrapped by the signer so the export is one file with one watermark id, signed once after the join (encode.rs); the join reads the segments' MP4s with re_mp4 (H.264/HEVC to Annex B with their parameter sets ahead of each keyframe, AV1 OBUs as they are) and writes one with muxide, the sound laid under once from the backend's new Backend::sound (AAC on Apple, Opus on soft and av1) (join.rs). Cuts come from each frame of the fed render (an outermost Sequence's data-raea-start, raea-runtime-page shot_starts; the engine's camera cut, raea_sys_frame::shots::Cut set in pre_step) and the timeline's Shots up front. io-codec gains SoundTrack, remux::aac_track and hvcc_params; io-media backend_unsigned and a public sign::wrap. Benches: film.tsx's cut and cut-long compositions, pages.tsx, rr3.sh (segmented against one run: SSIM >= 0.999 and VMAF >= 99 per frame; join under 1 s on 3,600 frames). Tests: two segments joined are one video with one sound and the segments' own bytes; the encoder splits at cuts but not after a short shot 2026-11-17 19:52:34 -08:00
shinyobjectz 58fe65aad1 IDOL (speridlabs/idol, image to 3D Gaussian splat), in progress, before any ONNX export. tools/idol holds the Modal runner and the step that proves the two ungated encoder sources and dumps the PyTorch reference: FLUX.2-klein-4B's VAE equals FLUX.2-dev's on 251 of 251 tensors after the bf16 cast; timm's DINOv3 ViT-H+/16 gives the gated transformers model's tokens at cosine 0.99999979 (against its public ONNX conversion), with the key map into DINOv3ViTModel. The export, the Rust pipeline and everything after are not started 2026-11-17 19:52:34 -08:00
shinyobjectz 7b1e9d0f6b DC1: the 0.1.5 character SDK update filed as scenarios (drawn characters: the drawing's splat on raea's rig, DC1 to DC8) 2026-11-17 19:52:34 -08:00
shinyobjectz dd9773ce99 @raea/task and docs/plan.feature: a project's plan.org as typed tasks, read and written by task id
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.
2026-11-17 19:52:34 -08:00
shinyobjectz b6f8180b07 RT3: playback of plain films in the feed's timeline, measured and what is built (docs/realtime.feature)
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).
2026-11-17 19:52:34 -08:00
shinyobjectz d81049d925 a layout read's settling and the stall guard (runtime/react settle and commits, runtime/shared stall and calls), with bench/realtime's stage and docs/layout-reads.feature 2026-11-17 19:52:34 -08:00
shinyobjectz 4c71a31628 realtime-bench: the realtime-editing plan's experiments 1, 2 and 3a, measured (docs/realtime.feature)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 2f377010ad scene lint, explain and export read a <BufferMesh>'s own triangles (three.js and R3F parts)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz d44cd9c41b The layout snapshot's rects in one pass: what each element asks of its ancestors (display: none, a transform on the way up) is kept for the next (blitz-dom's RectMemo, get_client_bounding_rect_in). Each was a walk to the root for every element, every frame, and on the installed app's page the snapshot was about a third of its main thread. The same rects (tests/rects.rs, every element in tree and reverse order); on a 3,153-element page 20 deep, 0.37 ms to 0.18 ms 2026-11-17 19:52:34 -08:00
shinyobjectz 7f7acd70f8 raea clothes: a strap across the body and a framed bag hung on the cloth (trims)
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).
2026-11-17 19:52:34 -08:00
shinyobjectz 5285e38348 raea clothes: a collar trim closes at the throat over a neckline cut low in front
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).
2026-11-17 19:52:34 -08:00
shinyobjectz 4af90803d5 raea clothes: a stiff stand-and-fall collar trim, built from the neckline and kept off the skin
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 8fe4b08911 tools/garments' trims 2026-11-17 19:52:34 -08:00
shinyobjectz 82a461297d raea clothes: cloth maps, panels in their own colour, and trims (buttons, straps, a belt) on sewn garments
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)
2026-11-17 19:52:34 -08:00
shinyobjectz 7c83b42fbb raea/people: a role's headwear drawn per person by weight on its own fork, so everything else draws as before 2026-11-17 19:52:34 -08:00
shinyobjectz c75455936f raea/people: streetMix, the street's mix by the hour from the city's days
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 2ddcf9fbe1 raea/people: passersBy's street mix by the hour (mixAt)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 179f244e5d raea/people: passers-by go door to door round a block, legs keep their own busyness, no one jumps
- 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
2026-11-17 19:52:34 -08:00
shinyobjectz 4b707f246f raea/people: passers-by on a city's sidewalks, places found by grid, queues on the world's line facing the door (CH52)
- 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)
2026-11-17 19:52:34 -08:00
shinyobjectz cfb58e87ac raea/people: the people of a place as data and as days (docs/character.feature CH50-CH53)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz c3ba126ccf raea gen: image.edit's mask reaches a fal model's mask field
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 3826a68bfc raea gen: a fal step sends the settings its endpoint's schema names (resolution, aspect_ratio)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 36564204e6 docs/character.feature CH44b: a sewn garment worn over others moves on the cloth follower 2026-11-17 19:52:34 -08:00
shinyobjectz 196fb8ddf5 raea clothes: seams pressed flat in the drape, a followed coat's skirt hides nothing, cover --over a sewn garment refused
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').
2026-11-17 19:52:34 -08:00
shinyobjectz e251524164 raea gen: a loaded file changed in place is a new input
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 673479e573 raea character: a head worn as a part drawn as skin; the skin shader compiles with its tile off
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 744301d1a1 raea/character: onJoint, where something carried on a joint goes as the body is posed (a slung rifle on RightShoulder)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz db6e7fb5e0 raea/character: a head part's cornea drawn as one, reflection only
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.
2026-11-17 19:52:34 -08:00
shinyobjectz cdcdee527d raea clothes: a garment draped over the garments under it
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).
2026-11-17 19:52:34 -08:00
shinyobjectz 2fb97c51d2 raea clothes: garments cut for a body of another build
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
2026-11-17 19:52:34 -08:00
shinyobjectz ebc9e8a389 raea clothes: a shaped body's joints move with its skin (SOMA builds)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 0c8042d140 sdk/cloud's client 2026-11-17 19:52:34 -08:00
shinyobjectz 20379f2da8 RaeaCloud type-checks under Cloudflare Workers' types as well as the DOM's, so a Worker can drive a box (raea-bot): write() casts its upload to Uint8Array<ArrayBuffer> instead of the DOM-only BlobPart, and the ACP socket uses addEventListener for open, error, message and close instead of the on* properties workers-types lacks. The box smoke test with the echo agent passes its ACP turn and refusal on the Mac; its two Mac-only failures (the symlink fixture, BSD tar) are as before. 2026-11-17 19:52:34 -08:00
shinyobjectz 93b8e55537 raea cloud's server gets POST /v1/shell {command, cwd, timeout_ms} (CL6b), for an agent whose loop runs elsewhere (raea-bot's shell tool): a bash command line in the workspace with /v1/run's NDJSON, in a process group of its own so a timeout (10 min default, 1 h most) or a dropped request stops all of it, the last line saying timed_out. RaeaCloud.shell() reads it through the same follow() as run(). test/smoke.ts checks output, exit code, the timeout, an empty command (400) and a cwd outside the workspace (403); passed against a local server. 2026-11-17 19:52:34 -08:00
shinyobjectz 4a9646d2ff RaeaCloud.job() casts its upload to Uint8Array<ArrayBuffer> instead of the DOM-only BlobPart, so the client type-checks under Cloudflare Workers' types too (raea-bot drives a box from a Worker); the rest of that change is on cloud-shell. 2026-11-17 19:52:34 -08:00
shinyobjectz e82cd4efe6 raea cloud farm: a render's sound pass finds its models on raea-models (docs/cloud-render.feature CR25): RAEA_SAO=/models/sao (Stable Audio Open small on ONNX Runtime with CUDA, deploy/modal/sao.py) and RAEA_TOKENSYNTH=/models/tokensynth with RAEA_TOKENSYNTH_DEVICE=cuda (deploy/modal/tokensynth.py), for a sound the project's store doesn't have yet; RAEA_AUDIO_AUTOSETUP=0, so a model the volume lacks fails the job at once instead of installing on a GPU's clock. 2026-11-17 19:52:34 -08:00
shinyobjectz 1fb9e01468 raea cloud: a cached file goes only to a job whose own signed URL opens it (CR23)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 1d4779f0c2 raea cloud: a render's hash list follows the tar's excludes, and raea-repo finds its helper through a link (CR22, CR23)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 39639485d2 raea cloud: the farm names its User-Agent, and a job whose media didn't come still answers /out (CR23)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 4ad870b947 raea cloud: repo.sh and git-credential-raea say why raea refused (CR21)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 67d5b3ff86 raea cloud: a Sprites box signs in to raea projects with an agent key (CR22, CR23)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 8a1e9248df raea cloud: test/media.ts, both sides of a farm job's media by hash on one clone (CR23)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 2c84003a83 raea cloud: a farm job's media by hash, from R2 and back to it, never through the box (CR23)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 408529cf83 raea cloud: git-credential-raea and repo.sh, a project's Git and media signed in on any machine with no token in its config (CR21, CR22)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 094d928013 raea cloud: raea's Modal apps in raea's own workspace, and this machine's logins for it beside any others
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 3067b55fe1 raea cloud render farm: a long job goes to its GPUs as a queue of parts, so a slow card draws fewer frames
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 775469dbac raea cloud render farm: one render split across Modal GPUs, a bench of every GPU kind, and an agent box on a Fly Sprite
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).
2026-11-17 19:52:34 -08:00
shinyobjectz aefd7f7787 RT5: a trial behind RAEA_SOLARI_DYNAMIC=1: a skinned mesh gets a traced twin posed each frame, and a hidden part leaves the traced scene; unset, nothing changes 2026-11-17 19:52:34 -08:00
shinyobjectz c202f3e590 runtime/scene's live groups public, as runtime/live's props read them 2026-11-17 19:52:34 -08:00
shinyobjectz 9f4cce5b00 RT4: the realtime editing work so far
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.
2026-11-17 19:52:34 -08:00
shinyobjectz dd246e6ab3 A 3D render can start with its 3D live (RAEA_3D_FIRST=1), 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.
2026-11-17 19:52:34 -08:00
shinyobjectz 2ccfa6df4f archive.feature: Pro and Team projects move to the account's raea cloud storage when the device needs the space (11-17), checked by hash before the local copy goes: by hand, automatically when the disk runs low, or by an agent through raea archive plan / archive / archive restore, building on the existing sync blobs, LFS and the storage plan flow. Planned, nothing built; AR1-AR8. 2026-11-17 19:52:34 -08:00
shinyobjectz c53a2cfd47 TokenSynth on an NVIDIA GPU (docs/cloud-render.feature CR25): run.py --device cpu|cuda (the DAC decoder and the model on the device, sampling still on the CPU from the seed), raea's asset store passes it from RAEA_TOKENSYNTH_DEVICE (the device is in the cache key, so a GPU's note is its own sample), and an install from before --device says to run setup.sh again. sdk/cloud/deploy/modal/tokensynth.py installs it into raea-models (built at its own path on the container's disk: uv's temporary files fail on the volume, and the venv names its path) and measures it. On a Modal A10, 2.5 s a note with the model loaded against 50.6 s on 4 CPU cores; a process a note, 15.5 s on a T4 against 103 s. CLAP audio embeddings: 4 of 6 GPU notes are as close to the CPU's as two CPU seeds are. 2026-11-17 19:52:34 -08:00
shinyobjectz c808083f86 Stable Audio Open small off the Mac (docs/cloud-render.feature CR25): tools/sao/run.py gets an ONNX Runtime backend beside Core ML, with one sampler for both (the same numpy generator draws the start and every re-noise from the seed), so a backend changes only how each network is computed. The ONNX graphs are the same weights as three fp32 graphs (atauser001/stable-audio-open-small-onnx at a pinned revision, each file against its published SHA-256, its LICENSE and NOTICE kept beside them): cond on the CPU, the DiT and the decoder on CUDA when onnxruntime has it (--device auto|cpu|cuda), else the CPU. --backend defaults to Core ML on a Mac with its packages, else ONNX; --times prints each stage's seconds. setup.sh installs the ONNX build off a Mac (RAEA_SAO_BACKEND=coreml|onnx picks; onnxruntime-gpu with its CUDA and cuDNN wheels where nvidia-smi finds a GPU or RAEA_SAO_CUDA is set, else onnxruntime; sha256sum or shasum). sdk/cloud/deploy/modal/sao.py installs it into raea-models (/models/sao) and times it. Measured 11-17: the Core ML path writes the same bytes as before; ONNX on a T4 and on the CPU against the Mac's Core ML take of the same prompt and seed, 4 sounds, SNR 35.0 to 51.4 dB, correlation 0.9999 to 1.0000, log-spectrum difference 0.34 to 2.08 dB (two different sounds: -2 to -14 dB, 22 to 46 dB), so a sound keeps its cache key on every backend. A warm T4 process 5.3 s a sound (load 3.4, eight DiT steps 0.6, decode 0.6), 4 CPU cores 13 s (decode 6.8), the Mac's Core ML about 5 s. 2026-11-17 19:52:34 -08:00
shinyobjectz 63e1547df4 registerRoot finds the compositions of a root whose components are written inline: a hook inside component={() => ...} runs when React renders that component, not when the root is called, but the walk read the root's whole source for a hook call, so any such root was taken for content and registered one composition, "main". looksHooked now reads only the function's own body: the bodies of the arrow functions and function expressions written inside it are left out (past strings, template literals, comments and regex literals), so a hook in an inline component, a render prop or a callback isn't the root's. A root that calls a hook itself is still content, and a component in the tree that does is still not run. Four new registry tests: inline block, expression and named-function bodies; a root's own hook; a component with an inline render prop beside one with its own hook; braces, arrows and slashes in strings, a regex, a comment and a template. 2026-11-17 19:52:34 -08:00
shinyobjectz bb5cb7ffdd A solid read from a mesh file is kept under the file's length and modified time as well as its expression, so obj("path") or glb("path") written again at the same path is read again. The kept-shapes cache named a mesh by its expression and the build only, so a scan remeshed in place (gambit's Iron Hindenburg head, 11-17) kept drawing its first mesh, holes and all, until RAEA_SHAPE_CACHE=0. files_read finds every obj("...") and glb("...") in an expression, nested ones too, and folds each file's stamp into the key; an expression that reads no file keys as before. Test: the same path written again reads as another file. 2026-11-17 19:52:34 -08:00
shinyobjectz 6d9ec6b7ea Copies is Debug, so raea-sys-material's tests compile; .gitignore takes a linked node_modules and tsbuildinfo
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.
2026-11-17 19:52:34 -08:00
shinyobjectz ce16bf2003 WR4: the weathering bake's copied code folded (tools/dupes.sh)
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.
2026-11-17 19:52:34 -08:00
shinyobjectz c37616685c raea-app-motion: raea motion and raea setup motion leave raea-app-tools, and kimodo's torch path passes L1
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 86b5e813f8 FC1a: an <Instances>' copies move to raea-sys-copies (systems/copies)
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).
2026-11-17 19:52:34 -08:00
shinyobjectz ea77b0dbb1 WR4: raea wear bake and the native call wear.bake, on the weathering bake [WR1] [WR2] [WR3]
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 624c60be25 FC1a: an <Instances> of a model takes any mesh material, not only its glTF's standard one
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.
2026-11-17 19:52:34 -08:00
shinyobjectz f7b42e8bcc <Instances> take any mesh material: a procedural, worn or grid surface instances as a standard one does
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).
2026-11-17 19:52:34 -08:00
shinyobjectz 5d18a5f03e LT21: what is built and measured so far, in its scenario. Detail's level switches on the 540p fly over 1917 Berlin are gone (45, 20, 19 and 17 one-frame spike blocks at frames 41, 117, 122 and 157), JS levels' unchanged; two left at 35 and 226 wait on the extract-order fix's rebuild. Live at 2560x1440, work p50 JS levels against detail: walk 51.7 against 48.9 ms, fly 50.3 against 50.1 (four runs each), streamed run 34.7 against 31.8. What is still open is listed. 2026-11-17 19:52:34 -08:00
shinyobjectz d399e38325 LT21: meshes are extracted after visibility ranges. Bevy 0.20 runs extract_visibility_ranges and its mesh extraction in no set order; a mesh re-extracted because its VisibilityRange changed, when meshes went first, baked the range's previous buffer slot into its MeshInputUniform and kept it until its range changed again, so the GPU dithered it by an older range than the one the CPU culled by. raea-sys-lod rewrites a part's ranges as the eye moves (a city tile's origin is the world's), so a level could be in range on the CPU and wholly dithered away on the GPU: on the 540p detail fly over 1917 Berlin, tile 39140_581855's LOD1, in range and 14% faded out, drew nothing on frames 33 and 34 and snapped in over 35 and 36 (29 one-frame spike blocks at 35; 12 at 226 on the same horizon), while its LOD2 drew its 14% of dots. Taking that tile out of the frame leaves the area steady. raea-sys-lod's install now orders MeshExtractionSystems after extract_visibility_ranges in the render app's ExtractSchedule. Crate tests pass; a render on the next rebuild checks the spikes. 2026-11-17 19:52:34 -08:00
shinyobjectz c77c4858c0 LT21: detail cross-fades on every surface and from where the GPU measures. raea's generated fragments for ShaderExt (surfaceShader: surface and lit hooks) and ShaderMaterial (shade) never called Bevy's visibility-range dither, so a part drawn with them (the city's facades, glass and ground) drew both levels fully inside a fade band and cut one at the band's edge, a pop: on the 540p fly over 1917 Berlin, detail made one-frame spikes of 45, 20, 19 and 17 tiles at frames 41, 117, 122 and 157 where the JS levels made theirs at 58, 106, 112 and 148. Both fragments now call visibility_range_dither under @if(VISIBILITY_RANGE_DITHER), as Bevy's own pbr fragment does (a source with its own @fragment calls it itself). And Bevy's GPU dither measures from a mesh's origin (mesh_world_from_local[3]) while its CPU check measured from the box's centre under use_aabb, which raea-sys-lod set for meshes baked in world coordinates (a city tile's origin is the world's, its geometry hundreds of metres off), so the two disagreed. Now every range is measured from the origin (use_aabb off) and moved by how much farther the origin is than what the part is measured to: its nearest edge (edge), the mesh's own middle when its origin lies outside its bounds, else nothing; the move can be negative, and a range never goes below 0. A moved range is rewritten once the eye has gone a third of its way to the nearest fading band, which bounds a stale move's error (the distance moves as far as the eye, a move twice as far). RAEA_LOD_DEBUG=time now times apply inside it: between two systems ordered around it others ran, so it read 1 ms with no Details at all. 2026-11-17 19:52:34 -08:00
shinyobjectz 5dd7623ac3 LT1: the light check's worst tile is max_by over the tiles, the first of equals as before, not a fold whose closure was code copied elsewhere (tools/dupes.sh: one exact group fewer). 2026-11-17 19:52:34 -08:00
shinyobjectz df8c577fc3 LT21: shapeFromChildren reads a Text3D's and a BufferMesh's props as their own types again, one if per type, so tools/sdk-props sees BufferMesh's seven props read (positions, normals, uvs, colors, indices, attributes, copies: 0 unread). The fragment-aware loop is kept: a shape inside a fragment is still the mesh's shape (conformance/detail.test.tsx). 2026-11-17 19:52:34 -08:00
shinyobjectz a3fec64205 LT21: detail costs the live scene no more than JS levels. A part's detail is a component row, and the live diff's fast path refused any scene holding rows of another kind, so every frame of a scene with a detail took the full diff: on 1917 Berlin's 1440p walk, step 29.7 ms against 10.6 ms with the levels picked in JS. Now the fast path keeps component rows as last sent and goes the full way only on a frame where any part's components change (scene_sig: light_sig plus each part's components), and a component row whose part has gone counts its missing frames and is forgotten as the full path forgets it. RAEA_LIVE3D_CHECK agrees over 3,413 frames of a moving scene where a part with a detail goes and comes back and another's detail changes. raea-sys-lod's apply keeps each part's meshes, bounds and last eye, walks its meshes again only when a mesh is added or its Detail changes, moves edge ranges by whole metres and rewrites a part only once the eye has moved a third of its way to the nearest fading band, since Bevy rebuilds its whole range table on any changed VisibilityRange. RAEA_LOD_DEBUG=time prints apply's time a frame. Walk at 1440p, JS levels then detail: step 10.6 / 11.8 ms, work p50 48.2 / 50.0, p99 100.5 / 87.1; fly: step 4.9 / 6.2, work p50 44.6 / 42.2, p99 139.7 / 125.0. 2026-11-17 19:52:34 -08:00
shinyobjectz 33b3d3d4a6 LT21: edge: true measures a part's distances to its nearest edge, not its middle, for big parts a camera stands in or beside (a city's tile, a terrain chunk). Bevy measures a range to one point, so each frame every mesh's range is moved out by the gap between that point and the part's nearest edge for the shot's camera, which the shadow passes measure from too; a start at 0 and an endless end stay put. On 200 m slabs whose near edge is 58 m from the camera and middle 153 m: far 60 with edge drawn, far 60 without it not, far 40 with edge not. 2026-11-17 19:52:34 -08:00
shinyobjectz c5df492df8 LT21: detail for anything raea draws. A part's detail prop (<Model>, <Mesh3d>) is raea-sys-lod's reflected Detail, which each frame becomes Bevy's VisibilityRange on every mesh under the part (a glTF's meshes are its children). It is drawn between near and far metres, or between sizes on screen in px, converted for the shot's camera from its field of view and its target's height, with the part's size taken as its bounds' diagonal. Each edge cross-fades by Bevy's dither over fade of its distance; past the end nothing is drawn, in the view or the shadow passes; shadow: false keeps it out of the shadow maps. Checked on five spheres at minPx 30 (drawn to 133 m, culled at 302 and 617 m), a cube past its far, and four court pumps (far 3 at 5 m gone with its shadow, shadow false drawn without one). RAEA_LOD_DEBUG=1 prints each range and whether Bevy kept it in range of each camera. Mesh now finds its shape inside a fragment: shapeFromChildren and boundsFromChildren read only direct children, so <Mesh3d><><Sphere /><StandardMaterial /></></Mesh3d> was dropped from the scene without a word. Conformance: sdk/raea/conformance/detail.test.tsx. 2026-11-17 19:52:34 -08:00
shinyobjectz f21929e9e3 LT21: realism.feature plans detail, draw distance and culling for anything made in raea: ranges in metres or by size on screen, cross-fades, shadows left to a coarser level, auto levels by meshoptimizer, posters baked by raea, GPU culling of Instances' copies, a visibility bake, and generators giving their own levels. 2026-11-17 19:52:34 -08:00
shinyobjectz 9f75dddd30 LT20: Berlin's frame is set by its geometry, not its pixels (the walk's 3D at a quarter of the pixels saves 5 of 30 ms), so the levels are generated from the city's own rules, not simplified: level 0 with instanced kit parts, level 1 fronts with their detail baked into textures, level 2 merged blocks, posters (impostors) for landmarks, trees and the far crowd, and shadows cast from a coarser level. 2026-11-17 19:52:34 -08:00
shinyobjectz c4cb327b85 LT2: raea GI measured on Berlin's walk at 1080p: the probe rays cost 0.26 ms of GPU at 128k a frame and 0.9 ms at 512k, the TLAS 0.83 ms of CPU a frame (5,518 instances, 707 BLAS). Probes are kept by their place in the world, so a moving grid keeps what it learned and a probe new to it traces the warm rounds; a resolve pass writes the volume each frame. The volume lights the scene only with RAEA_GI_SHOW=volume, since on the Mac it is a 17th fragment sampler for hooked materials (D19 warning). raea light check gets a gi path with the pass's GPU ms; Berlin's live and flicker scene is gambit's light-walk, people-ingame being a contact sheet. 2026-11-17 19:52:34 -08:00
shinyobjectz 77e88cb85c LT20: realism.feature plans LOD, streaming and culling for Berlin: levels picked by error on screen at the inside size, streaming budgeted in bytes and ms, a per-cell visibility bake, instanced props, impostors and an HLOD, three crowd rings, the ray scene built from the same tiles, and a walk down Leipziger Strasse at 1440p held to the frame budget. 2026-11-17 19:52:34 -08:00
shinyobjectz 70dd4ed129 LT12: the game's budget, confirmed: 60 fps at 2560x1440 out on this Mac with raea GI at most 5 ms, 4K out the stretch, both drawn inside near 1080p and upscaled by MetalFX (D13); the live 3D gets a size of its own so the check measures 1440p and 4K out. 2026-11-17 19:52:34 -08:00
shinyobjectz 34ab7a4887 LT19: realism.feature adds the camera and the finish (a physical camera from a photo's EXIF: depth of field, motion blur, noise, bloom, AgX; OIDN in the film tier), leaves and layered materials as shading models (LT11), alpha-cut cards in the ray scene (LT3), a tier with no ray-tracing hardware (LT12), and ReSTIR PT Enhanced as the film tier's later accelerator (LT5). 2026-11-17 19:52:34 -08:00
shinyobjectz 2b8ca92365 LT1: raea light check finds the home folder on every OS (raea_io_home), raea-light gets its layer, and three one-line closures no longer copy others'. 2026-11-17 19:52:34 -08:00
shinyobjectz c4578438d1 LT2: raea GI's first probe pass on systems/rt (RAEA_GI=1, unset nothing changes): a grid of probes around the camera (RAEA_GI_GRID, RAEA_GI_SPACING), 64 rays a probe through the TLAS, a miss seeing the camera's environment and a hit a flat stand-in lit by the sun through a shadow ray and the sky's diffuse light; each probe's ambient cube kept as a running mean and written into Bevy's irradiance volume. A ray budget a frame (RAEA_GI_RAYS) sets how many probes refresh; a moved grid or changed light starts again with RAEA_GI_WARM rounds; the pass's own GPU timestamps go to RAEA_GI_STATS. raea_sys_rt::passes installs traced AO and GI behind one plugin line. 2026-11-17 19:52:34 -08:00
shinyobjectz df67edc978 LT2: realism.feature revised from the research (docs/realism-research.md, added). Gather in three stages, screen trace then TLAS then a world cache; the world cache a hash grid on surfaces (Unreal 5.9's World Cache, GI-1.0, Solari's, made raea's) in place of probe grids; no surface-cache cards: a hit reads its record's averaged material, a cache cell that learns colour from the G-buffer in every season, then the material's own code at the hit; a coarse, persistent ray scene with instance records (LT3); occlusion counted once from the screen trace's short rays (LT10); a reference with full materials at every bounce and a film tier with no history (LT5); speed designed from LT2, which now also times the TLAS, BLAS and raster passes and an owned Metal intersector (D18); dropped effects warn (D19). 2026-11-17 19:52:34 -08:00
shinyobjectz d48a969211 LT16: each photo recreated as a set of its own (D17): modelled by us from nothing, object for object, at the photo's season, day and hour, owned by the realism lane in gambit; Berlin's look takes a season (snow, autumn, summer, wet) and the world lanes keep their work ready for every season. LT16 the sets (eight first, one fitted and one held out a season), LT17 a photo matched against its set on blocks and by region, LT18 residuals reverse-engineered. 2026-11-17 19:52:34 -08:00
shinyobjectz fc8e7d7387 LT15: realism.feature gets its second bar, real photographs. D15: full-colour, high-definition modern photos under a commercial-permissive licence, each with the EXIF that rebuilds it (field of view, EV, time and place), Berlin first and every season equally (snow, autumn, summer, wet). D16: a photo teaches the renderer, never one shot; half the set held out by place and season. LT15 the set (bench/light/photos.json, fetched outside git), LT16 a photo matched (the camera posed on the true-coordinate city, the sun from time and place, exposure from EV, compared in linear light by region for places and on blocks for rebuilt sets), LT17 residuals traced to their pass and fixed there; LT14 reports photo numbers too. 2026-11-17 19:52:34 -08:00
shinyobjectz 4782bb27b9 LT1: realism.feature rewritten for raea's own renderer, no Solari
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.
2026-11-17 19:52:34 -08:00
shinyobjectz f7484f2eb5 LT1: live frame time, flicker against the path-traced shot, light measured on 8x8 blocks, a converged FLOOR3
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 2161a524ab LT1: raea light check, the bar raea Light is measured by
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".
2026-11-17 19:52:34 -08:00
shinyobjectz ac78166b2a LT: docs/realism.feature, one strategy for shading, ray tracing and occlusion
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 3bdd163c78 LT6: raea's traced AO builds on Metal: its ray query lives in a helper function
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.
2026-11-17 19:52:34 -08:00
shinyobjectz 10a18eb332 raea motion on PyTorch off the Mac, raea setup motion, and shaded meshes that spawn after a load
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).
2026-11-17 19:52:34 -08:00
Zachary GuglinandClaude Opus 5.5 ee3451714d layers LA7a: the delivery and words guides teach the layered exports; skills pinned at the raea-skills layers-exports branch
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]>
2026-11-17 15:04:22 -08:00
Zachary GuglinandClaude Opus 5.5 3acbaab880 layers LA4c, LA4d, CC2f: footage that moves, is cut or fades is keyed in every export, each editor placing it as raea drew it
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]>
2026-11-17 15:04:22 -08:00
Zachary GuglinandClaude Opus 5.5 1caad9f024 layers LA5: raea export xml imports into Premiere Pro and DaVinci Resolve as raea rendered it, stereo kept
- 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]>
2026-11-17 15:04:22 -08:00
Zachary GuglinandClaude Opus 5.5 230a265b34 layers LA5a: raea export xml writes an FCP7 XML project for Premiere Pro and DaVinci Resolve (work in progress)
- 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]>
2026-11-17 15:04:22 -08:00
Zachary GuglinandClaude Opus 5.5 338c140f4c layers LA2c: what's behind a picture in picture is its own layer, between it and the footage under it
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]>
2026-11-17 15:04:22 -08:00
Zachary GuglinandClaude Opus 5.5 26a3415c47 layers LA4b: raea export capcut is written from layers.json, with a captions track and the reference in the draft
- 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]>
2026-11-17 15:04:09 -08:00
Zachary GuglinandClaude Opus 5.5 6b410a9827 layers LA2b, LA3a, LA4a: raea export layers writes the layers and layers.json; the 3D is the layer under the page
- 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]>
2026-11-17 15:04:09 -08:00
Zachary GuglinandClaude Opus 5.5 9df6d769e3 layers LA1-LA2: captions marked data-raea-role="caption", and RAEA_LAYER renders one layer of an export (captions, graphics, under)
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]>
2026-11-17 14:58:27 -08:00
Zachary GuglinandClaude Opus 5.5 52a07b6239 layers spec, amended: text stays in the graphics layer, captions are the only layer split out of it
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]>
2026-11-17 14:10:32 -08:00
shinyobjectz b54136c4af Windows: a workspace raea 0.1.5 or 0.1.6 broke is repaired. Its include.path named a \\?\ path Git for Windows can't open, so every git command in it failed, rev-parse too, and raea workspace init inside it, adopt and doctor --fix all stopped there (#169). include() now drops such a line from the repo's config file itself before asking git (apps/workspace/src/repair.rs), and raea doctor says so. Tested on Windows 11, Git for Windows 2.49: git fails in the broken repo, then works after the repair. 2026-11-17 13:06:13 -08:00
shinyobjectz 450d873984 Windows: engine/render's canonicalize goes through dunce, the sweep's last
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.
2026-11-17 11:19:38 -08:00
shinyobjectz c188cf8bd7 Windows: tools/windows-paths.sh keeps every canonicalize through dunce and every home folder through user_home
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.
2026-11-17 11:19:21 -08:00
shinyobjectz e388258bff Windows: canonicalize goes through dunce and the home folder through user_home in the stage, the bundler, export and live play
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.
2026-11-17 11:07:55 -08:00
shinyobjectz 5cf62e80ee raea's window says which system it runs on, so the feed page says this PC and Ctrl on Windows
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).
2026-11-17 10:49:51 -08:00
shinyobjectz 57f3ef8db3 Windows: canonicalize goes through dunce and the home folder through user_home (all but five crates)
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).
2026-11-17 10:38:33 -08:00
shinyobjectz a927fbb027 Windows: a workspace and its projects are made and read through plain paths. canonicalize() gives \\?\C:\... on Windows, which Git for Windows can neither read nor lock, and which shares no root with the C:/... git prints. So raea workspace init (the app's Make workspace) wrote an include of ../../../../\\?\C:/... into .git/config and every git command in the workspace failed ("Invalid argument"); workspace.id and project.id were never written; and raea workspace --json read id null even from a mended file, which the app's set-up took as a workspace with no id (a black window, then set-up again on every launch). up(), the record's paths, include(), adopt(), the doctor and the registry now canonicalize through dunce (C:\... wherever a path can be said so); include() takes both ends that way, and names a file on another drive whole instead of climbing to it. Also on Windows: the workspace root is found from USERPROFILE when there is no HOME (an app opened from the Start menu has none), the record names paths with / (it said out\edit.mp4), and the registry's @shared/ suggestion is an import (it said components\desk). Checked on a Windows 11 PC: the new a_workspace_reads_back_through_git failed there as reported (could not lock config file \\?\C:\...; the include climbed to the drive) and passes now; raea-app-workspace 10, raea-app-registry 7 and raea-core-facts 17 pass there and on macOS.
Skills: sections 0, 2 and 3 of the raea skill (sources apps/workspace/src) checked, still true: nothing a Mac sees changed.
2026-11-17 09:44:42 -08:00
shinyobjectz f4139a5a7a tools/taxonomy.sh links the checkout's SDK node_modules into an export (RAEA_MODULES), as manual-ref.sh does, so tools/agents/check can run the export's own copy: the shared tree's copy read the shared tree, and another lane's uncommitted SDK prop (gpu, in sdk/cloud) failed every lane's L0 and L1. Checked: an export of origin/main passes with RAEA_MODULES=~/raea. 2026-11-17 09:43:14 -08:00
shinyobjectz b4f6b6ab7a README: the tutorial is a plain pointer, Watch the tutorial, with nothing about how it was made 2026-11-17 06:47:18 -08:00
shinyobjectz 451afc7bbf README for 0.1.6: the banner names the latest release; the app's section says what it does now (the chat first, the hand-edited timeline, scenes, Index, Review, a lighter window) and opens on the tutorial, Goose Learns raea (docs/readme/goose-learns-raea.jpg, linked to its player on media.raea.io); Made in raea points at the films' source (raea-films); 3D names three.js and React Three Fiber; agents' tools add raea bug 2026-11-17 00:52:33 -08:00
shinyobjectz 61f6113845 skills pin: raea-skills #98 (fbebab5): files.md lists the page host among the files that read ~/.raea/env 2026-11-16 18:39:50 -08:00
shinyobjectz 1ff507df80 The window's draw count is raea-sys-page's DRAWS, read directly: a draws() reading it was a copy of the page host's picking() (the dupes ratchet) 2026-11-16 18:36:26 -08:00
shinyobjectz 5cc53609a8 Single-threading and the idle gate on by default for 0.1.6 (the developer, 11-16): RAEA_ST=0 or RAEA_IDLE_GATE=0, in the environment or ~/.raea/env, for the old way. Known: a seek while a film plays shows one more frame from before it 2026-11-16 18:36:26 -08:00
shinyobjectz b4aede8ae6 The window's two CPU switches, off by default and set in the environment or raea's settings file (~/.raea/env), where the app's window has no shell: RAEA_ST=1 runs every schedule on Bevy's single-threaded executor (34% less CPU at rest, 8% in a drag, 4% playing, frames as long; open: a seek while playing shows one more frame from before it), and RAEA_IDLE_GATE=1 lets a window with nothing drawn for 30 frames wait for input, 50 ms focused and 250 ms behind other windows, until the next draw (raea-sys-page counts its draws). The rest/wake rule is unit-tested; its on-screen check is still to do 2026-11-16 18:36:26 -08:00
shinyobjectz 3df38e170a skills pin: raea-skills #97 (14ac66c), with #94 and #95: 0.1.6's references and guide copies (the music and sound guides, craft's rubric and verbs; cli.md's raea motion, raea bug and clothes flags; feed.md's bug_report and final tag; files.md's rules and render progress), and the bug and rules tools taught 2026-11-16 17:41:16 -08:00
shinyobjectz b593ebb070 A render's progress folder: the home found with a match, not a closure shaped like io/home's LOCALAPPDATA one (the dupes ratchet's 60th near group); same paths, RAEA_RENDERS=off still writes none 2026-11-16 17:41:16 -08:00
shinyobjectz 9a6cd12d5f A render says how far it has got while it runs: ~/.raea/renders/<pid>-<n>.json, for the app's meter
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.
2026-11-16 17:41:16 -08:00
shinyobjectz 0b8171cdae docs/character.feature: the character SDK ships as raea 0.1.7; 0.1.6 is a patch for the app (the user, 11-16). What of it is on main before then ships in 0.1.6's binary unannounced, as 0.1.5's did. 2026-11-16 17:41:16 -08:00
shinyobjectz 2c54a94c00 skills.sh's feed-app reading moves to tools/skills-app.sh, which it sources: skills.sh was 513 lines, over the 500 limit. release.sh counts the new file among the skills gate's inputs 2026-11-16 17:41:16 -08:00
shinyobjectz 6ee015071d skills.sh reads the feed app in the tree it checks when the tree has one, as its files are; l2.sh takes the app from the commit
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.
2026-11-16 17:29:59 -08:00
shinyobjectz 8d44a1e865 music.md: VCSL's marimba is sampled four to seven semitones apart, not a fourth or a fifth. 2026-11-16 17:29:58 -08:00
shinyobjectz c93042ff7f sources.md: the MIDI recipe is its own section, unindented, so the converter's heredoc pastes as raea guide prints it (its Python and the closing PY start their lines; run as printed, it gives the output tested on a file with a tempo change, a note crossing it and two notes never released). The tools folder for ensure.sh is found as raea's own native.ts finds it, beside an installed raea or in a checkout, here and on the setup-audio page. 2026-11-16 17:29:58 -08:00
shinyobjectz 3db55f345d References follow the review: tonejs-instruments is CC-BY 3.0 in catalog.py and catalog.json (the README's licence; sample-source-info.txt's sources credited), so LICENCE.txt and the credit line raea sounds get prints say so, and the sounds manual page credits all three CC-BY libraries. The setup-audio page states SAO's licence as it reads, gets uv and git from ensure.sh, and says what status 1 and RAEA_AUDIO_AUTOSETUP=0 mean. The tone game bench's music was a fatsine pad holding two-bar chords, the default the guides now forbid, and games.md pointed agents at it: it is now a chiptune loop, synths on purpose so the bench needs no sample files, with a square lead that asks and answers, a bass walking C Am F G and a plucked arpeggio, ducked under the voice as before (check.sh's tempo line and amount: -12 are unchanged). 2026-11-16 17:29:58 -08:00
shinyobjectz 43e35b2302 docs/sound.feature: SN2 lists what Stability's Community License asks of raea, which hands SAO on (the agreement and a NOTICE with its exact attribution beside the model, "Powered by Stability AI" where raea documents it, raea's own registration and revenue test) and leaves what applies to the person to be decided, including the integrated-product clause. SN7 counts a chord's notes as one onset, makes the guides' own example cues its first fixtures that must pass and a held pad its fixture that must fail, and marks its thresholds as a first guess. SN4 adds Mixkit to the packs never mirrored and GPL to what the catalogue never holds; SN6 names Roland's drum map and keeps a note with no note-off. 2026-11-16 17:29:58 -08:00
shinyobjectz 9c5ab64141 Sound guides: the review's fixes. tonejs-instruments is CC-BY 3.0 (its README), so every example that plays it credits it, and MusyngKite and FatBoy are left out as share-alike, not unlicensed. The SAO licence text says what Stability's Community License says: the person owns what it makes as far as the law allows, its sounds train no other generative model, its duties to ship the agreement, a notice and "Powered by Stability AI" fall on raea, and until raea settles them (SN2) the agent names the licence and links it instead of telling the person what it requires. Setup takes uv and git from raea's pinned tools/ensure.sh instead of an unpinned installer, names the Command Line Tools stub's status 1, and says RAEA_AUDIO_AUTOSETUP=0 stops setup-audio too. sources.md gives a one-line fetch for VSCO 2 CE and VCSL (their SFZ branches), Salamander V3, Groove MIDI (checked against its published SHA-256) and MuseScore General, each with its licence beside it; takes Mixkit's sound effects on the same terms as Pixabay's and FreePats' CC0 and CC-BY banks only. The MIDI converter pairs note-ons with note-offs, keeps a track per channel and writes raea/music's MidiFile shape, and the drum map is Roland's, which Groove MIDI was recorded on (hi-hat edges at 22 and 26, an open hi-hat take in the kit). Samplers get a root every 3 to 4 semitones: the examples fetch roots with no --notes and write the urls the command prints. The game example plays VCSL's recorded marimba instead of a TokenSynth one, raea/music's named instruments are marked as synth sketches, raea gen makes music only when the person asks for a track, the reel's bed is the person's own track or nothing, and raea sao and raea tokensynth take --dir so a take lands in the edit's asset store. 2026-11-16 17:29:58 -08:00
shinyobjectz 620cfe0744 References and the agent's prompt teach sound the way the guides now do.
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.
2026-11-16 17:29:58 -08:00
shinyobjectz de4d619270 docs/sound.feature: what the sound guides had to write down as gaps, filed as SN1 to SN7.
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.
2026-11-16 17:29:58 -08:00
shinyobjectz e946a5a0d7 Sound guides: music is composed for the cut, never a default bed, and every vetted source is one page away.
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.
2026-11-16 17:29:58 -08:00
shinyobjectz 6c390a4a17 RT3: a film played again from its end is at its start from the call on
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.
2026-11-16 17:29:57 -08:00
shinyobjectz ab2a085a05 RT3: the decoder's tests in a file of their own
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.
2026-11-16 17:29:57 -08:00
shinyobjectz b7f796aa5e RT3: a seek while a film plays shows nothing from where it was, and the sound clock moves on between its callbacks and never goes back
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).
2026-11-16 17:29:57 -08:00
shinyobjectz e8ce27fd62 #165: the three direction's table says Environment's room is drawn through PMREMGenerator.fromScene
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.
2026-11-16 17:29:56 -08:00
shinyobjectz 9202d88e69 #165: an <R3F> scene lit by PMREMGenerator.fromScene(new RoomEnvironment(), sigma) is lit by that room, as three lights it. Since #131, fromScene handed back a stand-in that raea left out with a warning, because raea's <Environment> and its engine took panorama files only: the scene was drawn with no environment, so a box three draws 255,195,160 on its front face came out 136,76,58, and anything the room alone lights was near black. <Environment> now takes room (three.js's RoomEnvironment, made with no file) and blur (fromScene's sigma) in place of src. The engine makes the room itself (raea-sys-environment room.rs): RoomEnvironment's room, boxes, light boxes and point light at three r185's sizes and strengths, each direction from fromScene's cube camera traced to what it hits and shaded with three's Lambert, GGX and light falloff, blurred by sigma as fromScene's two half blurs do, then filtered like any panorama; runtime/look names it in env_srcs as room:SIGMA. On the R3F side, fromScene of a RoomEnvironment returns a texture marked with its sigma, which lights.ts turns into <Environment room blur> with the scene's environmentIntensity and rotation, and as the background when the room is that too; fromScene of any other scene, and fromCubemap, are still left out with a warning. The other way round, src/three (room.ts) draws <Environment room> as RoomEnvironment through the renderer's PMREMGenerator, and the source export writes it so. Tests: room.rs checks the room's light at 14 directions against three's own RoomEnvironment object (within 1e-3), the blur and the source name; runtime/look's camera test reads room sources into env_srcs; the envmap conformance test and test/errors.test.tsx hold the props and the conversion, and export.test.tsx the export. test/room/check.sh renders test/room/room.tsx and holds three pixels within 8 levels of three's, which test/room/three.ts works out on the CPU with three 0.185's PMREM and MeshStandardMaterial shading: #131's box face is 255,189,155 (three 255,195,160; 136,76,58 before), and two grey boxes lit by the room alone are 137 and 125 (three 140 and 127; 23 and 19 before). Left open: fromScene's options.position is drawn from the origin, with a warning, and the light meter does not count a room. Filed as R3F15b in docs/r3f.feature. 2026-11-16 17:29:56 -08:00
shinyobjectz 2a5bb19904 #164: an <R3F> object scaled to 0 draws nothing, as three draws it.
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.
2026-11-16 17:29:55 -08:00
shinyobjectz 09c2df6e8c #163: a Mac app made by raea app bundle runs its page host as the launcher's child instead of exec'ing it. The launcher (Contents/MacOS/NAME, a sh script) ended with exec raea-page-host, and when the process LaunchServices launched execs another program, AppKit keeps the app's bundle id but loses its pid: NSRunningApplication's processIdentifier is -1, so window managers that find an app's windows by its pid (AeroSpace) never see the window. Measured on macOS 27.0.1 with a windowless AppKit program opened through LaunchServices: exec from sh or bash gives -1; the program as the bundle's executable, or as the child of a sh or bash launcher that waits, gives its own pid. The launcher now starts the host in the background, passes TERM, INT and HUP on to it and waits for it, ending with its status; the host still checks in as the app, since it lives inside it. Its test (macapp.rs) runs the launcher on a stand-in host that writes down its pid and its parent's: on the old launcher it fails (the host's pid was the launcher's), on the new one the host is the launcher's child, on the app's files, and the launcher ends with the host's status. engine/page/window native.rs said the exec is what gives raea.app's window its identity; it is the program's place in Contents/MacOS, and raea.app's launcher now starts its window as a child too. 2026-11-16 17:29:53 -08:00
shinyobjectz 2a98bbcb03 #162: bench/at-time checks that every still of a batch shows its own frame's time, as it does alone and as a scene stepped through every frame before it does. The fix (cdebceb9d9, a frame-pure load's plugin clock is pure: Time and the keyed rows are the frame drawn's) was held only by runtime/plugins' unit tests, and nothing drew the issue's case. Since #77 a still of a scene no plugin carries state for isn't stepped to, and the plugins' clock then never moved: every still sampled globals.time 0, and a batch's later frames drew its first frame's <Material> uniforms, which land as keyed rows. time.tsx is one 64 x 64 face with globals.time on its left half and a <Material> uniform the frame gives its time on its right, so the halves match only when Time is the frame's; its stepped twin carries an empty animation player, which Bevy carries from frame to frame, so its stills are stepped to as every still was in 0.1.0. The check draws both at 90, 30, 60 in one run and the pure one at 90 alone: each frame's halves must match, each pure frame must match the stepped one, 90 alone must match the batch's 90, the frames must move on, and the pure stills must step no frame. On the build from before the fix: globals.time 0 on every frame and the uniform frozen at the batch's first (0 and 135 levels on all three), up to 225 levels off the stepped scene. On main: 137, 188 and 225 on both halves of 30, 60 and 90, the same as the stepped scene, with no frame stepped. 2026-11-16 17:29:52 -08:00
shinyobjectz 8443ecf2e7 #159: PrepassRead lives in raea-sys-compose's passes.rs, beside RAEA_PASS's own reading of the prepasses, not in raea-sys-frame, which it took over the 2,000-line crate limit (2,008). raea-sys-post and raea-render already depend on raea-sys-compose; nothing else changes. 2026-11-16 16:32:45 -08:00
shinyobjectz 4a8c5c04ad #159: bench/aov-msaa/check.sh reads the depth's bytes in the C locale. tr in a UTF-8 locale stops on a float file's bytes ("Illegal byte sequence"), so the all-zero test failed every frame. On the fixed raea all three cases pass: the bloom ramp and the game with --aov write frames 0 to 5 with their depth and motion, and the ramp with RAEA_PASS=depth writes all six frames. 2026-11-16 16:32:45 -08:00
shinyobjectz 57e0737edd #159: --aov and RAEA_PASS keep the camera single-sampled on every frame. Both read the camera's prepasses (depth and motion vectors, depth and normals) through single-sampled bindings, so they put Msaa::Off on the camera once, with the prepasses. The camera row's post-processing then put multisampling back: raea-sys-post's sync, on the first frame whose post columns changed (a bloom ramp), restored the Msaa the camera was made with, and msaa_for_3d did it on every frame a live scene (a game) set rows. The prepasses became multisampled and the frame's bind group was refused ("Texture binding 0 expects multisampled = false, but given a view with samples = 4"), at frame 2 of a render with frames 0 and 1 written. A camera whose prepasses a pass reads now carries raea_sys_frame::camera::PrepassRead, put on with the prepasses by --aov (aov_prepasses) and RAEA_PASS (compose's mark). sync and msaa_for_3d leave such a camera's MSAA off, and sync no longer takes off a depth or normal prepass that AO brought when the AO goes. aov_prepasses finds its cameras by PrepassRead, not by the motion-vector prepass, which a motion-blurred camera already had, so that camera was never made single-sampled. The readback refuses a multisampled prepass with a message instead of handing it to the GPU, whose validation error stopped the render. Tests: raea-sys-post's a_camera_whose_prepasses_are_read_stays_single_sampled (before: Sample4 once the bloom changes); bench/aov-msaa/check.sh renders frames 0 to 5 of a bloom ramp and of a game with --aov, and the ramp with RAEA_PASS=depth (before: each refused at frame 2). 2026-11-16 16:32:45 -08:00
shinyobjectz 75c6e74d6d The R3F guide says when to set three's ambient of 0 by hand; skills pinned at raea-skills #96
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).
2026-11-16 16:29:45 -08:00
shinyobjectz 4b1cb9ec9a A page's JS engine gives its free pages back every 5 s, and with RAEA_INSPECT its heap is logged and JavaScriptCore's context inspectable
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).
2026-11-16 16:29:45 -08:00
shinyobjectz db3cbfcaf5 IR2, IR5: an R3F scene's lights and overlays as three draws them
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.
2026-11-16 16:06:41 -08:00
shinyobjectz 25afb7cbf5 IR1-IR14: docs/img2raea.feature, img2threejs's output held to three.js and made raea's own
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).
2026-11-16 16:06:41 -08:00
shane 1046ee9a83 Merge pull request #166 from wackyza/layers-spec
Spec: a render in layers for CapCut, Premiere, Resolve and raea's timeline (docs/layers.feature)
2026-11-16 14:50:12 -05:00
Zachary GuglinandClaude Opus 5.5 dc2e7a56bb layers spec: a render in layers (captions, text, graphics, footage, under, sound) for CapCut, Premiere, Resolve and raea's timeline
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]>
2026-11-16 10:55:46 -08:00
shinyobjectz 977ec312aa grab: a take's look turns the head and neck no more than 30 degrees together (LOOK_MOST); the eyes go the rest of the way. Each joint was capped at 55 on its own, up to 77 in all, and a cup held out at chest height bowed the taker's head onto it. 2026-11-16 10:18:27 -08:00
shinyobjectz 9aee93e518 raea bug: an agent reports a bug in raea itself to raea's server, headless and with no account
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).
2026-11-16 07:23:37 -08:00
shinyobjectz 32dcec11b9 PL7: an agent finishes what it planned. A task marked done with a checkbox unticked or a subtask open is refused by the plan tools (plan_close, plan_update's state), naming each by place or id, as Org's org-enforce-todo-dependencies refuses; plan_close's all: true ticks them and closes the subtasks with it, and ticked in the same call it closes. Shane 11-16: "i notice often that it makes tasks but never completes them itself": v0.1.5's agent closed five tasks with every box unticked, so the list read 0/4 on finished work. docs/plan.feature PL7 says the rest, which is the app's (raea-feed plan-finish: raea asks an agent to settle its own open tasks each time it stops).
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.
2026-11-16 06:47:24 -08:00
shinyobjectz 3a646fa4bb CH45c: footwear is a hard piece, and garments layer by where they lie
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.
2026-11-16 06:44:18 -08:00
shinyobjectz 28f4c2289b skills pin: raea-skills #93 (86d323a): appscreen's motion/apps.md copy (80067cc, pushed and merged), with #91's characters guide and #92's reference/feed.md (plan_close, raea-feed #61), whose stale copy failed every lane's L0 and L1 2026-11-16 06:44:04 -08:00
shinyobjectz 80fbde3c58 H12: app::bundle takes the props its default export is mounted with (WINDOW, SCREEN) in place of two one-line forwarders; the app screens' log read through screen::logged (no new duplicate groups: 292 exact, 59 near) 2026-11-16 06:43:49 -08:00
shinyobjectz c30bcfbbef H12: what reached the app screens (Routed: routed, logged, read back) in raea-runtime-appscreen, and an app screen's texture handed over as bevy's; live play's needs_react in its own file (raea-runtime-page under 2000 lines, runtime/live/src/lib.rs under 500, no new duplicate groups) 2026-11-16 06:43:49 -08:00
shinyobjectz 3ad88f635a H12: done. docs/blitz-bevy.feature H12 @done with its status (ts-native P27c points at it); the appscreen bench (sdk/raea/bench/bevy/appscreen: a button clicked through the 3D, its own timer on the frame's clock; check.sh 9 PASS) and its bench/render-play row (1.000000 at frames 6, 12, 18 and 27; the bench 14 of 14); the apps guide, <Screen app>'s doc and the manual's reference; skills pin: raea-skills #89 (80067cc), motion/apps.md the same guide 2026-11-16 06:43:49 -08:00
shinyobjectz 3cd7f72b4b H12: what reached an app screen in a play is logged and rendered again; exported games bundle app screens as apps
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.
2026-11-16 06:43:49 -08:00
shinyobjectz 2262e1cc7d H12: <Screen app> drawn on a Blitz document of its own
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.
2026-11-16 06:43:49 -08:00
shinyobjectz 4f354e97fc H12: a held JS clock and an app screen's bundle
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.
2026-11-16 06:43:49 -08:00
shinyobjectz 1afb2de58d The characters guide says how clothes are made now and teaches raea motion. Clothes: raea clothes make sews a garment from a sewing pattern cut to SOMA (--plain, --set PATH=VALUE, settings), make with words takes the pattern from them, cover lays a skin-tight one on by procedure, wear takes --body and --head; the picture-measured method it described is gone. Motion: an act no capture holds is made from its words with raea motion (Kimodo on MLX), between standing keys, three seeds a line through makedo.ts, the first use's downloads said. Closes L1's skills coverage warning for raea motion. 2026-11-16 02:27:51 -08:00
shinyobjectz b0cd52fd85 A written scroll offset reads back to a hundredth, as raea's window gives it back each frame (sdk/ui's DOM layer)
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.
2026-11-16 01:45:01 -08:00
shinyobjectz b5425278b3 CH15c: Kimodo on this Mac. raea-sys-kimodo runs Kimodo-SOMA-RP-v1 and its LLM2Vec text encoder (Llama 3 8B Instruct in 8 bits) on MLX in Rust, with no Python and no cloud GPU; raea motion "LINE" [--keys KEYS.json] writes the clip sdk/body/tools/fromkimodo.ts reads
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.
2026-11-16 01:43:08 -08:00
shinyobjectz 373b47b964 A page's <img> (and url(), @font-face) of its own /host/* loads from its host in raea's window
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.
2026-11-15 23:44:57 -08:00
shinyobjectz 2b9a95366a A React page's getComputedStyle reads a colour and a custom property from the host (sdk/ui's DOM layer)
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.
2026-11-15 23:42:56 -08:00
shinyobjectz 4a27753595 CH45c: the clothes help says what make does now (sews from a GarmentCode pattern, settings, cover --over); the manual page and index follow it 2026-11-15 23:40:50 -08:00
shinyobjectz ab0fc62c4c CH45c: raea clothes make sews; the picture-measured garments are gone. make NAME ["WORDS"] [--plain] [--set PATH=VALUE,...] [--colour] makes a sewn garment in the project (a GarmentCode pattern from the words model or the plain base, settings changed by path and checked, cut to SOMA, draped by our cloth, baked: tools/garments/sew.sh, engine/cli/src/sewn.ts, which sets up raea's models folder the first time); settings lists the settings; wear takes sewn garments beside ones laid on the skin and leaves out the skin under them (hide_under.py). Taken out: make by four drawn pictures, remeasure, the mannequin's views (wardrobe.ts's drawing, garment.py's measure, mannequin.py). A tee and trousers by settings in 18 and 28 s, $0, walk as clothes on the generated person. With the earlier garment session's nearest-design fallback (garment_model.py, words.sh, sheet.py). 2026-11-15 21:30:44 -08:00
shinyobjectz 0cf78fb053 CH21b: generated hair moves on the follower. The plan and the numbers: a head's hair cards carried through a performance by the cloth follower, laid over the body at rest and kept outside the skin as drawn, drawn as a Character part with raea's hair shader (3,874 free particles in the skin carried by the head alone, 223 on the follower, on the first head's loose hair over SOMA's locomotion clip). 2026-11-15 21:05:41 -08:00
shinyobjectz 6d8a15ac55 A scroll event no longer puts back an offset the page wrote past (sdk/ui's DOM layer)
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.
2026-11-15 20:57:02 -08:00
shinyobjectz cdebceb9d9 #162: a load with nothing to step has a pure plugin clock: Time (Time<Virtual> too, which the fixed loop copies back) and the keyed rows are the frame drawn's, f / fps, however it was reached. Since #77 skipped the replay, the clock stepped only on the frame after the last stepped: every still sampled globals.time 0, and a batch's second frame drew the first's <Material> uniforms (keyed rows) and component rows. Measured on a face split into globals.time and a uniform from the frame, as seconds: before, lone 60 = 0 / 1.96, batch 30,90 = 0 / 0.97 and 0 / 0.97; after, lone 60 = 2.01 / 2.01, lone 90 = 3.01 / 3.01, batch = 1.00 / 1.00 and 3.01 / 3.01. A stepping clock is unchanged. 2026-11-15 20:33:14 -08:00
shinyobjectz 523fd30929 CH20c: the eyes take a look target. <Character gaze={point}> turns each eye joint to a point in the scene on top of the pose, in its head's frame, within an eye's range (35 degrees to a side, 25 down, 17 up), so the eyes cover what the head has not turned; a part that has the eye joints has its upper lids ride the eyes down (blink morphs raised to 0.45 at the lowest). character/eyes.ts: eyesTo, lidsFor, EYE_RANGE. 2026-11-15 20:31:57 -08:00
shinyobjectz 688e99c971 Blitz: an element styled for the first time is built and laid out from scratch. Stylo gives a first style no damage and clears the data of everything under a display: none element, so a node added under a hidden element kept the layout children it was collected with unstyled (none): showing the element drew it as its padding with nothing in it (the app's notes rail, closed while a note was posted, opened on an empty row; its marks spec failed on main too). 2026-11-15 20:28:16 -08:00
shinyobjectz 71b354007f CH20b: the body's skin is graded to the head at the collar. raea clothes wear takes --head HEAD_DIR: the body it dresses takes the head's neck colour, and each vertex under the collar the colour the head's own skin has above it (head.json's ring colours, evened round the ring), easing into the neck colour 8 cm down, as vertex colours on body.glb (engine/cli/src/grade.ts, plain byte arrays so the native raea runs it). Measured on the first head: the step across the collar at the front from 8 levels of 255 to under 1, 1 to 4 round the rest. 2026-11-15 20:23:54 -08:00
shinyobjectz 8883c30c53 SOMA's body is built with its skin samples on the joints a pose turns (tools/clothes/body.py). SOMA hangs skin on twist joints (all of an arm's and a leg's), the bone in the palm under each finger and the end joint past each fingertip, which no pose, clip or solver turns: left there, a hand on a cup was 12 samples of palm, no forearm, and fingertips 2 cm short. Each sample keeps its part and is written from its carrying joint, its weights summed. A body built this way reads the same in the hands' audit as one mended after. 2026-11-15 20:14:20 -08:00
shinyobjectz 9586aa9689 HG19: a take's hands stay out of the table and the body on SOMA. A reach leans the chest, and the second hand's lean carried the first hand 6 cm off its hold with its fingers still shaped for it: every hand but the last is solved again with the trunk left where it is. A travelling hand keeps off solids by its skin as its fingers are that frame. The audit's standing pose hangs the arms clear of the thighs (SOMA's fingers hung 31 mm inside them before any take). Five of six takes: 0 to 2 mm of hand in the thing, none in the scene, 0 to 6 mm in the body's own solids, all five pads of each holding hand on. The scenario filed as HG17 is HG19 (HG17 was taken). 2026-11-15 20:10:55 -08:00
shinyobjectz 760aea017d HG17: the palm's height read in one chain of samples (the thumb's ball joined before the heights are taken). 2026-11-15 19:56:08 -08:00
shinyobjectz 1c004cc225 HG17: the thumb's ball joins the palm's height in one chain (no closure that copies another crate's). 2026-11-15 19:53:58 -08:00
shinyobjectz a0f85c9023 HG17: the skin's weighted placement is the body crate's (Skeleton::carried, which skin() reads too), so the curl's clearance uses it and the grab crate stays under its size limit. 2026-11-15 19:52:06 -08:00
shinyobjectz fc32762987 HG17: on SOMA's own skin a held thing has no skin of the hand in it. A finger joint stops bending when any bone past it meets the surface (a knuckle bent onto a box's face carried the next two bones 24 and 35 mm in); the curl reads each bone's skin where its joints carry it by their weights, as it is drawn; the hand's frame sets the palm's height on the ball of the thumb too, and only on skin the hand mostly carries. The audit on SOMA, worst over each take: 0 to 1 mm of hand in the thing (3 mm passing a cup hand to hand; was 17 to 36), 4 to 5 pads on, palm 1 to 6 mm off. Its palm gap reads the ball of the thumb with the palm. 2026-11-15 19:50:06 -08:00
shinyobjectz 9365faa43b CH14b: done. The locomotion suite's eight cases pass on SOMA (0 before), and 45 of 48 with 40 paths drawn at random beside them: what each failure was (hip pops, the run's curve, a run's corner, the head on curves, slides), what was tried and taken back, and what is left (three paths 34 to 39 cm off their line at a sharp turn). The code is the private body SDK's (58fed86, 4b1781f) 2026-11-15 19:36:20 -08:00
shinyobjectz 7c32e7cec9 CH14: the cause of the run pops found and fixed in the private body SDK (a switch now carries the hips' speed over the floor): pops 36 to 21, at switches 31 to 12, every other number unchanged 2026-11-15 14:42:19 -08:00
shinyobjectz e8ee46d96e R3F27: done. docs/r3f.feature R3F27 @done with its status; the r3f guide on the box's width and height and on pointer events in a live play, its "not wired yet" line gone; skills pin: raea-skills #88 (d6ba112), 3d/r3f.md the same guide 2026-11-15 14:40:10 -08:00
shinyobjectz 4b1686f254 R3F27: an edit drawing R3F plays live on React
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.
2026-11-15 14:39:58 -08:00
shinyobjectz fbcc03fc38 R3F27: R3F's pointer events and drei's OrbitControls in a live play
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.
2026-11-15 14:39:46 -08:00
shinyobjectz 14180f3dfe R3F25 follow-up: the passes a composer frame keeps are read from its post parts and its compute part as well as the scene's (computes counted before passes), so a pass only an effect or a compute reads isn't pruned 2026-11-15 14:39:44 -08:00
shinyobjectz 6665a2e5a8 R3F25: a ShaderMaterial under a composer is scene light, and the composer's own passes aren't drawn. three draws a scene that goes through a composer into the composer's float buffer, where a ShaderMaterial's colour is scene light and its tone mapping and colour space includes do nothing; sdk/r3f sent it as "display", so raea drew it darker and more saturated than three's, out of reach of the composer's tone mapping and encoding. Under a composer it now goes as "linear" with linearToOutputTexel the identity (shader.ts composing): in-shaderbloom, a ShaderMaterial and a faint bloom (test/parity/post2.tsx, tools/parity.sh), goes from 0.9758 to 0.9848, the ball's mean colour from 133,66,33 to 186,135,96 against three's 194,145,110. The passes a composer draws into its own targets, which R3F23 put on raea's GPU, are dropped when raea draws the composer as its own effects: targets.ts passesOf keeps only the passes whose pictures the frame reads, directly or through a kept pass. One bloom was 17 cameras (the scene drawn again into the composer's buffer, and 16 quads for its luminance and mip chain) and is now none, while a target the frame shows is still drawn (test/composer.test.tsx, 3 tests). in-post's frame is the same to the pixel; the full parity list of 42 passes; docs/r3f.feature R3F25 status 2026-11-15 14:15:53 -08:00
shinyobjectz 80d3edb1de skills: raea-skills 6c8f414 (PR #87: 3d/r3f.md lists patched materials and render targets as drawn) 2026-11-15 14:10:21 -08:00
shinyobjectz 20290ff51c R3F24: done. in-patched 0.9717 (drei's MeshWobbleMaterial and MeshDistortMaterial, an app's own waves kept through userData.shader) and in-reflector 0.9256 (drei's MeshReflectorMaterial, which closes R3F23) against three.js, both in tools/parity.sh; the full list of 41 passes, every other case as it was. docs/r3f.feature tags R3F23 and R3F24 @done with their status; the r3f guide lists patched materials and render targets as drawn 2026-11-15 14:07:04 -08:00
shinyobjectz 2a8ea0b81b R3F24: a MeshStandardMaterial or MeshPhysicalMaterial with an onBeforeCompile of its own is three's own program with the patch applied (src/input/patched.ts): ShaderLib's source handed to the patch with the material's defines and uniforms, patched once a program as three does, the material's values refreshed into it each frame, the defines three puts in front for its maps, sides and vertex colours; the fragment cut at three's lights and writing its surface for raea's engine to light (the lit GLSL stage). A patch past the lights is named once and left out. kinds.ts notes; material.ts routes it, scene.ts leaves its uvs as three gives them. test/patched.test.ts 2026-11-15 14:07:02 -08:00
shinyobjectz f3bc3db45a R3F23: a pass camera draws with its projection matrix's lens (passes.ts lensOf): its fov, and its aspect where that isn't its target's shape, which the engine keeps whatever the image's shape (a rendercam's aspect column; matchmove's OffAxis, never copied to a look's camera). drei's reflector copies the screen camera's 16:9 projection into a camera of its own (fov 50, aspect 1 as made) and draws it into a square target: its reflections were stretched and low 2026-11-15 14:07:00 -08:00
shinyobjectz 3f37f7c2a2 R3F24: the white picture a ShaderMaterial gets for a texture with no picture (shader.ts WHITE) decodes: it was a broken PNG (its data cut short, its CRC wrong), so the engine refused every material given it and drew it in its colour. test/shader.test.ts: both stand-in pictures decode (white, opaque black) 2026-11-15 14:06:59 -08:00
shinyobjectz fcd055cca3 R3F24: a three shader's GLSL can write a surface Bevy lights (glsl.rs Source lit, the spec's glsl.lit): its fragment stage's four outputs in turn (base, normal and roughness, emission and metalness, the point in world space) returned as ThreeSurface through three_surface, its varyings carrying the instance, as a lit TSL material's do (surface.rs); a lit stage without four outputs is refused by name. Test: a lit stage returns its surface 2026-11-15 14:01:01 -08:00
shinyobjectz ecef2fee13 R3F26: done: docs/r3f.feature tags R3F26 @done (#130: an <R3F> in a box smaller than the page drawn as its box's own view, landed 3e391e2af, 190ced1d1, b2f2f2af3) 2026-11-15 13:59:57 -08:00
shinyobjectz 10f0c61354 R3F22: parity case in-tsl-fbo: in-fbo's lit knot drawn into a target every frame and shown by a MeshBasicNodeMaterial's texture node under three's WebGPURenderer, SSIM 0.9397 against three.js (test/parity/tsl.tsx, tools/parity.sh) 2026-11-15 13:58:29 -08:00
shinyobjectz f2372ad82b R3F22: an unlit node material's colour is tone-mapped by Bevy's own tone_mapping after the camera's colour grading (three-shader tone.wesl, the prelude importing it where the camera tone-maps in its materials' shaders), as a lit or standard material's is. It had a curve of three-shader's own without the Grade exposure that stands for three's ACES 1/0.6, so it came out darker and redder: in-tsl-particles 0.9510 to 0.9799; in-tsl-lit, in-lettra, in-tslpost and in-tslpost2 unchanged. module.rs test: the prelude's import and the entry's tone_mapping. docs/r3f.feature R3F22 status 2026-11-15 13:58:29 -08:00
shinyobjectz b2f2f2af3d R3F26 (#130): the view a camera on the Engine's target draws moves to a crate of its own, raea-sys-viewbox (TagRowTarget, ViewBox, tag_row_view), with two tests: a box laid out after the first frames takes the camera's view and gives the frame's Viewport back when it goes, and a camera's own Viewport is left as it is. raea-render goes from 2,009 lines to 1,972, back under rask's 2,000 2026-11-15 13:56:56 -08:00
shinyobjectz 190ced1d1f R3F26 (#130), SDK: <R3F width height>, the box's size, and docs/r3f.feature R3F26 done
<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.
2026-11-15 13:50:51 -08:00
shinyobjectz 3e391e2afa R3F26 (#130), engine: a camera in a page element draws its own view in the element's box (docs/sdk.feature S3a), not the page's cropped to it
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.
2026-11-15 13:50:51 -08:00
shinyobjectz ca825d79ae skills: raea-skills 342e0fc (PR #86: reference/cli.md has raea clothes, from main's help at 68f70eb1e; the strict rc gate failed on it) 2026-11-15 13:49:48 -08:00
shinyobjectz 68f70eb1e6 R3F23d: in-fbo 0.9941 and in-pingpong 0.9949 against three.js at frame 12, both now in tools/parity.sh (the ping-pong case clears to black, as three's canvas does under it); the full list of 38 passes. docs/r3f.feature R3F23 says what R3F23c built and what is left: in-reflector, an onBeforeCompile patch (R3F24) 2026-11-15 13:37:03 -08:00
shinyobjectz e67910028a R3F23c: a DataTexture keeps its rows in order (texture.ts bytesOf turned a flipY=false one upside down, on maps and in shaders): its first row is the picture's top, Bevy's v 0 as it is three's unflipped; a test reads the PNG's rows back 2026-11-15 13:37:01 -08:00
shinyobjectz 6a2646b5a5 R3F23c: a still with a camera into a render image steps every frame before it (runtime-scene carries_state), so what a pass drew lasts: a ping-pong's start drawn at frame 0 is there at frame 12 2026-11-15 13:36:59 -08:00
shinyobjectz f1292b4db0 R3F23c: a three shader drawn into a render target writes its colour as it is (raea-sys-three-shader output "target": no tone mapping, colour space or exposure, and it doesn't follow the screen camera's tone mapping), as three tone-maps and encodes only what it draws to the screen; passes.ts marks every ThreeShaderMaterial on a pass's layer so 2026-11-15 13:36:57 -08:00
shinyobjectz 53b5da60b3 R3F23c: the engine's load empties its render images before its rows spawn, not after (runtime/plugins apply_rows reset them once the rows were in, so a three:uniforms row naming a render image made a second, blank image under the same name and every ShaderMaterial reading a target read black) 2026-11-15 13:36:44 -08:00
shinyobjectz 6ef6c573fd skills: raea-skills 4919fa9 (PR #85: reference/files.md, ~/.raea/cache is also RAEA_EMOJI3D_CACHE, as raea-feed's main keeps it) 2026-11-15 13:34:15 -08:00
shinyobjectz dbe00072b6 skills: raea-skills 5fab9ca (PR #84: 3d/r3f.md, TSL compute runs) 2026-11-15 13:30:41 -08:00
shinyobjectz f2429a0b97 R3F22: the r3f guide lists TSL compute as drawn (renderer.compute and computeAsync on raea's GPU, storage buffers shared with node materials, an InstancedMesh's node material drawn as copies) and names what a compute can't use yet 2026-11-15 13:30:37 -08:00
shinyobjectz 66f8c17a1d skills: raea-skills d0eb0fd (PR #83: 3d/r3f.md lists three/webgpu's PostProcessing as drawn) 2026-11-15 13:25:47 -08:00
shinyobjectz 80d07fda07 R3F25 (part): three/webgpu's PostProcessing as raea's effects, an additive Bloom, a FramePass's frame() clamped to its Viewport
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.
2026-11-15 13:21:02 -08:00
shinyobjectz 47a93b740a R3F22: test/targets.test.tsx: a MeshBasicNodeMaterial reading a target drawn in useFrame names the camera's image, read as sRGB, its samples turned over in v (texture.ts flipsY, targets.ts onGpu in tsl.ts) 2026-11-15 13:18:38 -08:00
shinyobjectz 24fadef05e R3F22: a TSL node material reads a render target raea draws on its GPU as a ShaderMaterial does (texture.ts flipsY, targets.ts onGpu): its samples turned over in v, since the camera's image counts rows from the top where three's target counts from the bottom, and the image read as it is drawn (sRGB) rather than as a raw linear copy taken before any pass drew 2026-11-15 13:18:38 -08:00
shinyobjectz 05356f6b70 CH14: the locomotion suite rebuilt on SOMA, first run 0 of 8 (walking slides under 1 cm; pops at switches in jogs and runs, slide in three cases, head roll on curves; align is not the pops' cause). CH15b done: a do line's clip made by Kimodo from its words, checked against the captures that end standing and kept in the project's made clips, played by the stage 2026-11-15 13:16:57 -08:00
shinyobjectz 8f49748322 CH48c: a drape fails with any seam open over 2 cm (closed), and the garment model trains only on drapes that pass. The long-sleeved shirt's short-looking sleeve was a cuff narrower than SOMA's forearm that slid off and hung open, one pair 8 cm apart, passed by the 95th-percentile check; 23 of the first 139 lean drapes have such a seam, mostly at sleeve-to-cuff corners. A gathering thread (a gathered edge drawn to its partner's length) changed none of the eight worst and was left out 2026-11-15 13:16:57 -08:00
shinyobjectz 186098d162 R3F23: in-pingpong, three's GPUComputationRenderer stepping a wave between two float targets, the plane's ShaderMaterial showing the one written (test/parity/targets.tsx). targets.test.tsx follows a GPUComputationRenderer through frames 0 to 2: the start drawn into both targets and the first step at frame 0, one step a frame after, alternating targets, the display reading the target each step wrote, and a step's pass keeping its name 2026-11-15 13:08:50 -08:00
shinyobjectz ae905b9fd1 R3F23: a ShaderMaterial's texture follows the render target an app drew this frame (R3F23c, part). raea-runtime-look's three_uniforms puts a material's textures that name render images in its keyed three:uniforms rows, and raea-sys-three-shader's patch binds the image each names to that texture's slot by name (ThreeShader keeps its textures' names in bind order), so a display material reading GPUComputationRenderer's current target reads the one drawn last 2026-11-15 13:05:02 -08:00
shinyobjectz 4edb80b80d R3F23: no new near copies. sync_render_maps checks the shown map with a match before it asks for the material mutably, and parts.rs reads each frame's map by a match on its value 2026-11-15 13:05:00 -08:00
shinyobjectz 840de67569 R3F23: a standard material's map follows the render target an app drew this frame (R3F23c, part). A mesh's map that names render images is keyed frame by frame (runtime/scene parts.rs: maps, map_k by step), and the new crate raea-sys-rendermap's sync_render_maps points the material's base colour texture at the image its row names this frame, so two targets ping-ponged (GPUComputationRenderer, a feedback effect) show the one drawn last. A map naming a picture keeps its first frame's, as before. runtime/scene drops two doc lines left over from moved modules 2026-11-15 13:03:41 -08:00
shinyobjectz f7b1cdad92 R3F23: no new copies. rendercam.rs finds a camera's ambient lights through one ambients() (the first one's colour, the frame's sum); spawn.rs and instance.rs take apart a SceneTarget and an asset event as their own patterns, not closures the dupes ratchet matches elsewhere 2026-11-15 13:03:41 -08:00
shinyobjectz eb43664245 R3F23: a pass is the same one frame to frame by what was drawn, and a ShaderMaterial reads a target's image as drawn (R3F23c, part). targets.ts names what a pass drew (its scene, and the lone mesh's material or the override material) and counts passes into the same target by that, so GPUComputationRenderer's quad, drawn once with its pass-through shader and then each frame with the variable's, keeps one layer and camera for its compute pass from frame 0 on, not the init's (passes.ts keys a pass by texture, what and count). shader.ts never asks for a raw linear copy of a target raea's engine draws: three-shader takes that copy once, before any pass has filled it. Tests: targets.test.tsx (the swapped quad's compute pass at frames 0 and 2; a ShaderMaterial's texture is the camera's image, v turned over) 2026-11-15 13:03:41 -08:00
shinyobjectz 5fc163ba9f R3F20: the engine reads a colour a copy. An <Instances> row with inst_tint sends 13 numbers a copy, and scene3d's instance.rs now takes them: a tinted set's copies share one TintMaterial over the row's standard material, each copy's MeshTag its number, and sync_instances rewrites the buffer of colours when the frame's list changes and copies the standard material in again when that changes. The list parser (stride_of, copies) lives in raea-sys-material's tint.rs beside the material, with a unit test, so raea-runtime-scene3d stays inside its budget 2026-11-15 13:03:41 -08:00
shinyobjectz 2598a75942 R3F23: a camera into an image within the crate budgets, and its ambient light shared with the screen camera's. raea-render's spawn_camera takes its size and target together and ends with raea-sys-frame's into_image, which a screen camera's row passes through; image_of gives a rendercam's image as its target, so load and apply_rows spawn camera and rendercam rows in one arm (raea-render stays under 2,000 lines, with is_3d_spawn moved to raea-sys-frame's store). runtime/scene takes rendercam tracks where it hands them to raea-runtime-look. rendercam.rs's ambient_columns is the one place a camera's ambient columns come from (a pass camera now carries the ambient colour too) 2026-11-15 13:03:41 -08:00
shinyobjectz 8a333c02c4 R3F23: in-fbo measured: SSIM 0.9557 against three.js at frame 12 (docs/r3f.feature status). The pass matches three's; what's left is the unlit plane showing the target, drawn without three's ACES 1/0.6, which a plain meshBasicMaterial shows too 2026-11-15 13:03:41 -08:00
shinyobjectz 0226bbb21b R3F23: what an app draws into a render target itself, drawn on raea's GPU (R3F23b). A gl.render into a target that sdk/r3f doesn't do on the CPU is recorded on the renderer that drew it (targets.ts renderInto) with its scene's parts as they were then, so two passes of one quad with another uniform each keep their own. passes.ts puts each pass's parts on a render layer of its own (64 up) and adds a camera part into the target's image ("render:<texture uuid>@WxH:WxH", ":float" for a float target), ordered before the screen's in draw order, cleared to the pass scene's background or the renderer's clear colour; a bare THREE.Camera's full-screen quad is drawn by an orthographic one. A material reading the target's texture names that image, with v turned over as a flipY picture's is (texture.ts flipsY, in scene.ts and shader.ts). session.ts and program.ts empty a renderer's passes as each frame steps, so a still of frame 3 has frame 3's passes. Cube and 3D targets stay left out. Tests: test/targets.test.tsx (the fbo probe, one frame's passes, two passes of one quad), the reflector case in errors.test.tsx; the parity case test/parity/targets.tsx (in-fbo) 2026-11-15 13:03:41 -08:00
shinyobjectz 744c5a2a1f R3F23: a camera drawing into an image, in the engine (R3F23a). A PerspectiveCamera row whose target is "render:NAME:WxH" (":float" for an Rgba16Float image) is a rendercam: raea-runtime-look's rendercam.rs gives it a row of its own (into, on keyed by step, no tone curve, the ambient light of its own layers), the engine spawns it on that image (RenderTarget::Image, no multisampling or dither, Hdr for a float image) before the screen's camera, and a material's map naming the image reads what it drew. raea-sys-frame's render_image.rs parses and makes the image once for every source naming it; a three shader follows only the screen camera's tone mapping; the TSX PerspectiveCamera takes target and layers, and a camera with a target isn't the one the pointer picks through 2026-11-15 13:03:41 -08:00
shinyobjectz db9dcda0a8 R3F22: the lane's copies folded (tools/dupes.sh). raea-sys-shader's uniform_bytes packs a written compute's, a written frame pass's and three's kernels' uniforms in their declared WGSL layout, where compute slab.rs, framepass written.rs and compute three.rs each had their own; three-shader storage.rs reads a per-vertex and a per-copy attribute's item through one padded; shared.rs's size error reads the spec's size by index 2026-11-15 13:01:38 -08:00
shinyobjectz 090cfeff1a R3F22: manual reference regenerated for the SDK's TSL compute (bun tools/manual-ref/sdk.ts gen): ThreeShaderMaterial's wgsl names the lit surface and the storage buffers it reads, and Compute takes three's kernels as well as ComputeProps 2026-11-15 12:59:13 -08:00
shinyobjectz 4d79a3f12f R3F22: tsl.ts under the 500-line limit: the WGSL text a node material compiles to, read and rewritten (its structs, entry parameters, texture samples flipped, words and indexed reads renamed, the contract's vertex attributes and stored types, the Unsupported refusal), moves to tsl-wgsl.ts 2026-11-15 12:58:22 -08:00
shinyobjectz fef9a1bd38 R3F22: three's compute and storage buffers run in the engine. raea-sys-shader shared.rs keeps a storage buffer by key (Bevy's ShaderBuffer, made once with its size and first contents, kept on the GPU, reset by a fresh three session; the empty one for an unused slot), the facility the computes that write it and the node materials that read it share. raea-sys-compute three.rs reads a <Compute kernels shared runs>: each kernel three's own WGSL with its storage bindings by key and its uniforms packed by three's struct, and the frame's runs queued once each by (epoch, seq) and dispatched in order before the other computes, a run whose pipeline or buffer isn't ready held. raea-sys-three-shader storage.rs binds two read-only shared buffers to a node material (bindings 11 and 12), and repeats a BufferMesh with copies count times with each copy's number, matrix and attributes (not frustum-culled). Two fixes the parity render found: runtime-scene keys a compute row's kernels, shared and runs frame by frame (a run after frame 0 never reached the engine), and three-shader's unlit entry premultiplies an additive material's colour with no alpha (three_blend in tone.wesl), since Bevy blends AlphaMode::Add as premultiplied alpha. compute lib.rs's groups_of and column serve the written, inline and three computes alike. docs/r3f.feature: R3F22 done, in-tsl-particles SSIM 0.9510 2026-11-15 12:58:22 -08:00
shinyobjectz 371751d5ed R3F22: sdk/r3f runs TSL compute: gl.compute and computeAsync record each ComputeNode as three's own WGSL (its WGSLNodeBuilder against the stand-in renderer), its dispatch size as three's WebGPU backend works it out and its uniforms' values then, and the walk empties them into one Compute part a frame (src/input/tsl-compute.ts: kernels, shared buffers by their attribute's key, the frame's runs in order; epoch, seq, fresh). A node material reading a storage buffer (.element(i), .toAttribute()) reads the same shared buffer by key (tsl-storage.ts, tsl.ts: at most two, tsl_s0 and tsl_s1), and one on an InstancedMesh is compiled for copies: one BufferMesh of the geometry with copies {count, attributes, matrices}, instance_index its own attribute tsl_copy (tsl-instances.ts, scene.ts instancedParts before copyParts). sdk/render: Compute takes {kernels, shared, runs} as keyed columns, BufferMesh takes copies. test/compute.test.tsx 6/6; the parity case in-tsl-particles (65,536 particles a compute swirls, drawn as copies) in test/parity/tsl.tsx and tools/parity.sh 2026-11-15 12:58:22 -08:00
shinyobjectz 33a803733b R3F22: the plan in docs/r3f.feature: storage buffers a compute and a material share by key, three's compute WGSL as <Compute kernels> whose frame's dispatches run once each in order (a fresh three session resetting them), a node material's storage reads, a node material on an InstancedMesh as one mesh of copies, in-tsl-particles 2026-11-15 12:58:22 -08:00
shinyobjectz 7d893bb612 CH48c: words to a sewn garment through SigLIP 2, trained with no captions. Each lean design is pictured from four sides (bake_batch.py PICTURES=1) and embedded with SigLIP 2 on the CPU (garment_embed.py); a small network learns the design's 122 settings as 196 slots (garment_params.py) from the picture embeddings, centred and with noise added, and is asked with a line's text embedding centred on a bank of garment lines (garment_model.py train, eval, make). words.sh makes each line a design, cuts it to SOMA, drapes and pictures it. First run on 86 designs: held out, the top's kind 0.66 against 0.44 most common, the bottom's 0.59 against 0.31; twelve lines of words 11 of 12, as many as the nearest picture, where a random design passes one or two; seven lines all valid patterns that hang right, six read as asked. sample_designs.py takes a given design (DESIGN, GID); sheet.py labels a garment asked in words with its words 2026-11-15 12:57:15 -08:00
shinyobjectz 34339ba0d9 skills: raea-skills 1a289f3 (PR #82: 3d/r3f.md lists the postprocessing effects drawn as frame passes) 2026-11-15 12:52:33 -08:00
shinyobjectz 41780e9784 Manual reference: Grade's exposure (bun tools/manual-ref/sdk.ts gen) 2026-11-15 12:50:26 -08:00
shinyobjectz f5f7b72912 R3F25 (part): postprocessing's effects as raea FramePasses, a FramePass's uv over the camera's Viewport, three's tone exposure as a Grade exposure
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).
2026-11-15 12:48:19 -08:00
shinyobjectz af1a2c4199 CH49: worn pieces across periods and genres (a futuristic motorcycle helmet, a Victorian top hat, a Roman legionary's helmet, sci-fi armour), and the keyed fit made to hold them. The colour decides what is body, not the distance: a helmet's crown within the cut of the skull was cut through, showing the skin. A separate piece hugging the skin all over (the soles, never drawn) is dropped, as is one mostly magenta and a shadowed hand's dark magenta. Each piece rides one bone whole, the one nearest its centre, never a neck bone, a midline bone when it crosses the middle: before, a helmet split across head and neck and a breastplate rode the right arm. CH48: the data engine resumes (samples only the designs short of N, skips draped ones), a rejected design leaves no folder, and a failed drape is one line instead of a traceback that stopped the run 2026-11-15 12:44:17 -08:00
shinyobjectz 4fc9d5251b CH15b, CH15c: Kimodo's text path, first run: a line made into a clip between two standing poses (3 of 3 seeds passed, only the right hand rose; 1.6 s a clip on the cloud GPU), and the plan to move Kimodo onto the user's Mac in MLX once a ten-line eval holds 2026-11-15 12:23:13 -08:00
shinyobjectz 9055f7273f CH49: worn hard pieces from words, and CH48b: the garment training data at scale. tools/garments/wear.sh draws a piece on SOMA's mannequin with an image model, makes it 3D with Idol on this machine, lays it on SOMA (the turn searched, then turn, size and place refined against the skin), cuts the bare body away (by distance, or by a magenta key for pieces that leave skin bare), lifts what is kept 4 mm off the skin, and gives each face the bone it lies nearest, so each piece rides its bone rigidly as one part. Pilot: plate armour, fitted at SOMA's height within 0.05 per cent, walks with the body front and back. engine.sh LEAN=1 keeps what training needs, about 0.4 MB a design. The plan: periods, genres and armour in the training set (CH48b), rigid worn pieces (CH49) 2026-11-15 12:16:57 -08:00
shinyobjectz e7f16a86bc R3F18: done: docs/r3f.feature tags R3F18 @done with what landed (the guide and skill's 3d/r3f.md, the routers, the four lines; raea-skills #81 pinned at 89ab557, 1f02317e8) 2026-11-15 12:00:37 -08:00
shinyobjectz 1f02317e87 R3F18: agents are taught three.js work. sdk/guides/craft/bevy/r3f.md (the skill's 3d/r3f.md): an R3F scene in <R3F> (useFrame, refs and drei work there, stepped from the frame), a plain three.js page in <Three program> (raea 0.1.5), what draws and what doesn't yet; bevy.md routes three.js work to it, and the lines in bevy.md, bevy/scene.md, bevy/animation.md and bevy/limits.md that said useFrame and drei don't exist now say they don't drive raea's own components. skills pin: raea-skills #81 (89ab557): the same guide as 3d/r3f.md, 3d.md and SKILL.md routing three.js work to it, directory/ rebuilt 2026-11-15 11:58:23 -08:00
shinyobjectz 1d04a18d54 R3F19: raea's bundler resolves three and three/webgpu imported by the edit's own code (the work folder's src/ and ext/, never the SDK's copies: the playable host keeps three's real renderer) to the r3f copy's vanilla.ts and vanilla-webgpu.ts, so a plain three.js program's new THREE.WebGLRenderer() is raea's stand-in with no import of raea's (engine/bundle edit.rs, its own-code test). tools/parity.sh and shoot.ts run in-vanilla. docs/r3f.feature tags R3F19 @done: in-vanilla SSIM 0.9921 through the bundler, the R3F cases whose three is now the stand-in module unchanged (in-basic 0.9917, in-shader 0.9935, in-drei 0.9932, in-tsl-lit 0.9906, in-instanced 0.9819, in-sky 0.9986) 2026-11-15 11:54:51 -08:00
shinyobjectz 9dbb9b5400 CR12: a dog and a cat from another project on the creature solver, recorded. A fore leg may end in a paw, and a body on straighter legs takes shorter, quicker steps at the same speed; before, setting off left a hind foot out of its leg's reach 2026-11-15 11:47:27 -08:00
shinyobjectz ede2903d4a CH2a: bodies, heads and creatures read as one form and checked. The body SDK's folder reader takes a person's skeleton.json or a creature's rig.json as the same skeleton, with skin samples from the creature's mesh, and lists a folder's problems against CH2, CH20 and CH21; SOMA's headless body with the generated head, hair and hats, and the raccoon, have none; what is left is written down for each owner 2026-11-15 11:47:27 -08:00
shinyobjectz 415391a9e1 R3F19: a plain three.js program drawn by raea: <Three program={fn}> runs a single-file demo's script as a function, its renderers raea's stand-ins (src/input/vanilla.ts for "three", vanilla-webgpu.ts for "three/webgpu": three re-exported, its renderer replaced by one that records a render to the screen and its animation loop into the program running it). Its setAnimationLoop and requestAnimationFrame step once a frame at i*1000/fps ms with performance.now() at that time and Math.random seeded, so a frame is the same played to or rendered alone; a frame before the last runs it again from the start, an async one (await renderer.init()) holds the frame until it's ready. The scene it last rendered is converted as <R3F>'s is; a full-screen pass to the screen (three's EffectComposer) is drawn as the scene it rendered. The stand-in renderer and the seeded random move out of session.ts (renderer.ts, seed.ts) so a composition's three needs nothing of React Three Fiber's. test/program.test.ts 7/7; test/parity programs.ts in-vanilla (native.tsx, the Chrome page) SSIM 0.9921 2026-11-15 11:45:29 -08:00
shinyobjectz fc3bba9b1a R3F20: TintPlugin registered by its path (raea-render stays within its 2,000 lines); tint's colour buffer padded in a loop, not a closure dupes matched 2026-11-15 11:44:00 -08:00
shinyobjectz 8df71aceba R3F20: done: docs/r3f.feature tags R3F20 @done with what was built and measured: 2,000 moving copies 25.5 ms a frame (0.1.4: 94), 20,000 41.9 ms (1,220), coloured 43.7 and 74.6 ms; in-instanced SSIM 0.9819; a plain <Instances> scene unchanged 2026-11-15 11:40:45 -08:00
shinyobjectz 12f0eb09a0 R3F20: test/parity in-instanced (2,000 copies moved and recoloured each frame, lit by a sun) and speed.tsx (the 2k and 20k bars' compositions, with and without colours) 2026-11-15 11:40:45 -08:00
shinyobjectz dc4558dc7a R3F23: the plan in docs/r3f.feature: a camera row drawing into a render image (target, float images, linear), maps reading render:NAME, the stand-in renderer recording passes in draw order, ping-pong by frame, cases in-fbo, in-pingpong, in-reflector 2026-11-15 11:40:45 -08:00
shinyobjectz 5b52eb4aed R3F20: an InstancedMesh is one <Instances>, still or moving, with a colour a copy
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.
2026-11-15 11:40:45 -08:00
shinyobjectz e2b41e8df6 R3F20: the plan in docs/r3f.feature: moving InstancedMesh copies as one <Instances> whose list is the frame's buffer, with a colour a copy (TintMaterial read by MeshTag), lists parsed once, in-instanced 2026-11-15 11:40:45 -08:00
shinyobjectz bfbfc91d40 R3F21: done: docs/r3f.feature tags R3F21 @done: in-tsl-lit SSIM 0.9906 against three.js in Chrome, where 0.1.4 drew the blob black. The lit entry's imports go at the fragment module's top (WESL takes them nowhere else; a test holds it); tools/parity.sh runs in-tsl-lit; tools/shoot.ts takes a case name with dashes 2026-11-15 11:38:43 -08:00
shinyobjectz 7af167433d R3F21: test/parity's INPUTS take the TSL cases of test/parity/tsl.tsx (in-tsl-lit) 2026-11-15 11:34:37 -08:00
shinyobjectz 52ccddd1df R3F21: test/parity in-tsl-lit (the noise blob: an icosahedron its positionNode pushes out along the normal by 3D noise, coloured by the same noise, under a directional light; its motion a uniform R3F's clock sets, never TSL's wall-clock time) in test/parity/tsl.tsx, and the node materials' row in kinds.ts says a lit one is lit by Bevy's lights 2026-11-15 11:33:42 -08:00
shinyobjectz fcd8105d93 R3F21: a lit TSL node material's surface lit by Bevy's lights: three's builder writes it with no lights of its own, its output (context.getOutput) the colour and opacity, view normal and roughness, emission and metalness, and world point after positionNode (sdk/r3f src/input/tsl-lit.ts); three-shader's lit entry makes Bevy's PbrInput of it and runs the standard lighting, fog and tone mapping, the instance carried to the fragment for the mesh's shadow flags (systems/three-shader surface.rs). Lambert is fully rough, Phong's shininess a roughness. The plan in docs/r3f.feature; test/tsl.test.ts 8/8. Also carries R3F16's three:uniforms on a part whose shader fell back: Ok, never a refused frame 2026-11-15 11:25:07 -08:00
shinyobjectz 4259cd9c01 R3F16: what three can't draw in raea is named and drawn, never refused. The R3F stand-in renderer answers coordinateSystem, an inert GL state, extensions and a full info, and takes compute/computeAsync into gl.__raea.computes (named once until R3F22 runs them); the TSL stand-in's WebGPU backend has a device with wgpu's limits, any Error building a node graph draws that material flat, and a graph reading an attribute the drawn mesh can't carry (an InstancedMesh past 1,024 copies) is refused in tsl.ts instead of by the engine; a sampler2D the material never sets reads opaque black; an http(s) picture is fetched through raea's cache. R3F17: a vertex put on three's far plane (X.z = X.w, gl_Position = X.xyww) is written on reverse-Z's (z = 0) in GLSL and in a node material's WGSL, so <Sky> is behind the scene: in-sky SSIM 0.9986. The audit's six refused probes render; test/errors.test.tsx 10/10; parity.sh takes R3F_CASES for a subset 2026-11-15 11:22:21 -08:00
shinyobjectz d88d19e149 R3F16: docs/r3f.feature: R3F16 to R3F27, what three.js work online is made of drawn in raea for 0.1.5 (the 11-15 audit's six refusals, five wrong draws, moving instances, the skill), each held by a parity case or a test; R3F15 tagged done (landed in 0.1.4 with test/errors.test.tsx) 2026-11-15 11:20:43 -08:00
shinyobjectz 5c788473f7 CH17a: the character plan opens with the whole system on one page (body, motion, staging and NPCs, heads, creatures, clothes, who holds what); CH17a (do lines and unmet asks, done in the body SDK); the picture-measured clothes rule marked as rejected 2026-11-15 11:19:14 -08:00
shinyobjectz 8cfb2241c2 CH48a: the garment data engine (tools/garments): random GarmentCode designs cut to SOMA, draped by our own cloth on the GPU with pins at the waist, neck and armpit, skinned, pictured and labelled; CH48 proposed 2026-11-15 11:11:58 -08:00
shinyobjectz 2f89374c47 CH47a: garments from sewing patterns: GarmentCode's pattern programs (MIT; its non-commercial simulator not used) cut to SOMA's measurements and draped by a position-based cloth of our own, a T-shirt, trousers and a hoodie over them worn through the matched walk; CH47 proposes patterns as the clothing standard, for the user to decide 2026-11-15 10:18:42 -08:00
shinyobjectz 04b06c500b CH32: the creature solver's leg order fixed and recorded: a fore foot now lands 0.10 of a stride after its hind (a raccoon's 0.14; anymove's best clip 0.36), so the solver owns footfall order as CH31 says 2026-11-15 09:59:00 -08:00
shinyobjectz 7ef89d4c13 CH45: skills pin: raea-skills #80 (0247f25): the characters guide teaches raea clothes (make, cover, wear, and that a garment lies on the skin) 2026-11-15 09:33:53 -08:00
shinyobjectz 11931d4958 CH45: raea clothes in the manual's CLI reference (its group, every flag described, an outfit layer by layer) and in the characters guide, so an agent knows when to use it 2026-11-15 09:28:44 -08:00
shinyobjectz 4110989ed4 CH45: raea clothes, garments for SOMA's body: make draws the mannequin's four views with an image model and measures them onto SOMA's template vertices (over garments already made, a procedure-made one drawn on the mannequin first); cover makes one by procedure with no picture; wear writes a dressed body folder; remeasure re-reads kept pictures. SOMA-X's body files are fetched once at a fixed commit by SHA-256; tools/clothes ships in a release. Measuring: hems evened, stand-off capped per part, shoulder tops and collar slopes covered, backdrop texels take the measured colour 2026-11-15 09:03:32 -08:00
shinyobjectz 878cfe1dac CH15a: Kimodo measured and two situations the captures lack made from two of their poses. CH11 gets Kimodo's numbers with no text (constraints only: keyframes 0.5 cm mean after its post-processing, feet exact, hands 2.4 to 3 cm, a root path within its 4 cm margin; 4.3 s of GPU a 5 s clip) and why text waits (the gated encoder's form asks for the account holder's own details). The run-time position is confirmed: clips at run time, models at build. CH1a records the SDK on SOMA's names. CH15a: between two library poses as Kimodo keyframes, the motion brought back onto SOMA, put on the captures' elbow and knee hinges with hands and feet kept, and judged against the captures it joins on the same body; turn and sit kept 4 of 5 seeds, rise and walk off 2 of 5 2026-11-15 08:36:17 -08:00
shinyobjectz dc8038add1 CH1a: the old character SDK names SOMA's joints. sdk/character bones.ts B gives SOMA's names (Hips, Spine1, Spine2, Chest, Neck1, Head, LeftShoulder, LeftArm, LeftForeArm, LeftHand, LeftLeg, LeftShin, LeftFoot, LeftToeBase; a finger's phalanges 1 to 3 as SOMA's 2 to 4, the thumb's 1 to 3), BODY_JOINTS is SOMA's 23 with Neck2. Bodies on the old game_engine rig still load: joint() finds a SOMA name by its old one and an old name on a SOMA body (somaName, oldName, sameJoint), the side, mirror, role and finger helpers read both, captured() takes the body's own count or stops at the first joint that isn't the body's, and retarget's BVH maps keyed by old names still map. A body named as CMU or Mixamo name theirs (LeftUpLeg, their LeftLeg being the shin) is refused with a message instead of read wrong. systems/body Skeleton::joint reads a SOMA name on an old body the same way. The conformance stick body is on SOMA's names; a new test checks both names find one joint and the two turn into each other; character.test 27 of 29 pass, the 2 that fail failing the same way before the change 2026-11-15 08:36:02 -08:00
shinyobjectz f9b9aeff95 CR18: how an eye is placed: the drawing registered to the model made from it (the side it was drawn from, found by outline), the eye's pixel cast onto the raw model; where it stands on each creature 2026-11-15 07:25:31 -08:00
shinyobjectz 0076952a6b CH42c: the skin at the shoulders is the t-shirt's neckline read too wide, not a hole in the jacket; two things tried and taken back 2026-11-15 07:24:16 -08:00
shinyobjectz 3525e74875 CH44a: the skirt's seat and its riding up mended, the thighs at a long stride still open 2026-11-15 07:20:16 -08:00
shinyobjectz c3bc7d7bc7 CH16a: a stop's overshoot measured (26 cm on average over six paths) and brought to 6 by replaying with the mark set back 2026-11-15 07:15:27 -08:00
shinyobjectz 984be1686a CH42c: done: a garment's colour baked as a picture in the body's own UVs (the drawing's detail, where a colour per vertex gave a blur), small bare patches walled in by cloth filled 2026-11-15 07:07:54 -08:00
shinyobjectz 016ef5347e CH21a: done: hair cards ride the head, and a whole person stands on the standard (SOMA body, generated head, hair, glasses, two layers of generated clothes, motion matching) 2026-11-15 07:03:36 -08:00
shinyobjectz ccf6eda50b CH16a: take added to the acts (put, throw, hand over and use are the same act with another spec), two raised-arms turn captures dropped 2026-11-15 07:01:19 -08:00
shinyobjectz 102352c44d CR18: mouths and eyelids as one method on every creature: the head cut along the lips with a dark inside, lids as caps that turn about an axis along the head, the eye placed from its pixel in the drawing; what is still rough 2026-11-15 06:59:25 -08:00
shinyobjectz face0fe8bc CH44a: done: a skirt made for the body by measure hangs from the waist and moves through a walk on the cloth follower, first cut 2026-11-15 06:53:41 -08:00
shinyobjectz 159fcbdb94 CH46a: done: a dressed body measured through a walk (cloth under skin, under the layer beneath, edge stretch by joint), first numbers 2026-11-15 06:50:24 -08:00
shinyobjectz 1b22805edc IX8: Google Drive tried on a real account. A video picked in Google's Picker went in from Drive's thumbnail in 1.2 s, came first for words describing its picture, and opened its page in Drive. The status says the Picker's key must also allow https://docs.google.com/*, where the Picker's frame runs; without it the Picker says the developer key is invalid 2026-11-15 06:47:13 -08:00
shinyobjectz 250b8fed84 CH18a: the finger curl's fault on SOMA found and fixed, six takes drawn on SOMA's body 2026-11-15 06:46:07 -08:00
shinyobjectz 19ff72740c HG16: the finger curl places a knuckle from the hand's joint, whatever lies between (SOMA has a bone in the palm there: its fingers were worked out 8 cm from where they are). The audit on SOMA: finger pads on a cup 0 to 6, hand skin in a box 22 to 17 mm; turbo unchanged. The audit prints each hand part's nearness to the thing with FINGERS=1 2026-11-15 06:37:20 -08:00
shinyobjectz 712b1c73e9 CH42b: done: the same garment files worn by a SOMA body of another build (SOMA's own shape model), nothing refitted 2026-11-15 06:30:33 -08:00
shinyobjectz 406a1417fa CH16a, CH18a: face and sit added to the acts, the matcher's one-frame return to its guide found and limited, SOMA's limits in Rust noted 2026-11-15 06:27:17 -08:00
shinyobjectz ec33701acf HG16: joint limits for a SOMA body in Rust: the table measured over the library moved to SOMA (the body SDK's), with the elbow's fold read from the captures; the old rig keeps its own 2026-11-15 06:21:34 -08:00
shinyobjectz 67f33b2460 CH42a, CH43a, CH45a: done: a garment as a file on SOMA's template vertices worn with the skin under it left out, a jacket layered over a shirt, and one command from a line of words to a garment (20 cents, 36 seconds) 2026-11-15 06:18:26 -08:00
shinyobjectz 7551eb17b9 IX14: bench/index measures the Index's fast pass on a fixed public set. Open Images V4 validation pictures (CC BY 2.0, the first N by id, cached once) and two Blender films (CC BY) cut into 30 s clips, indexed into a new home: pictures a second, seconds to the first searchable, peak memory, warm search time, and precision@5 against Open Images' verified labels for 38 words. On v0.1.5-rc4's Mac build on an M5 Pro: 10,000 pictures searchable 55.7 to 57.1 s after raea index add started (177 to 181 a second, the first at 0.4 s, 244 to 266 MB), warm search 13 to 19 ms, precision@5 0.879; 47 clips (23.2 min) in 2.2 s, 371 frames at their moments. So IX12's 10,000 photos in about a minute holds. Unsplash's Lite set was dropped: its terms forbid publishing any of it 2026-11-15 06:13:54 -08:00
shinyobjectz c735bd06a2 CH41a: done: a garment's stand-off read where each view sees the body's outline and spread over the garment, so the jeans hang as trousers 2026-11-15 06:10:00 -08:00
shinyobjectz c0f1c3786c HG16: the role lookup without the two copies the check found 2026-11-15 06:07:35 -08:00
shinyobjectz 6d49104881 HG16: one lookup between a role and SOMA's name, read both ways (rig.rs rename) 2026-11-15 06:03:13 -08:00
shinyobjectz 2ebe989c05 HG16: the role and SOMA names kept in one table (rig.rs TRUNK, LIMB), read both ways 2026-11-15 06:00:20 -08:00
shinyobjectz d2f6ec0831 CH16a, CH18a: done: acts and controllers carried out by the matcher on SOMA, and the takes running on a SOMA body (a joint found by its role on either rig: rig.rs soma_name, role_name; holds within 2 to 8 mm in the audit's six takes, the fingers not yet fitted to SOMA's hand) 2026-11-15 05:58:22 -08:00
shinyobjectz d991b4e9d2 CH40a, CH40b: done: clothes drawn on SOMA's mannequin by an image model lie on it pixel for pixel one view at a time, and become an outfit on the body's own vertices worn through a walk; the clothing standard filed (CH41 to CH46): a garment as data on SOMA's topology, its shape measured from outlines, layers built up, free-hanging cloth, a wardrobe from words, checks 2026-11-15 05:51:26 -08:00
shinyobjectz c53605cd51 CR12, CR15 to CR17: a creature is a spec and one flow makes it: a dragon (wings, long neck and tail, horns, scales) and a restyled raccoon made by the raccoon's own commands and moved by its solver, sized by the legs' reach; the coat by the spec; wings as limbs with built membranes 2026-11-15 05:49:18 -08:00
shinyobjectz e9b22ad3eb CH14a, CH20a: done: the rebuilt body SDK, its library and its matcher on SOMA (23 of 27 tests, a path walked with feet held within 17 mm), and the first generated head joined to SOMA's body at a level cut through the neck 2026-11-15 05:42:38 -08:00
shinyobjectz ef46cab89f CH20: a Character part may name the body's joints it has (a head has the neck, the head and the eyes), so a part with some of the joints is drawn; the generated head rides SOMA's body through a library walk with its expressions driven by name 2026-11-15 05:36:21 -08:00
shinyobjectz 1dee5992e5 HG16: in progress: a SOMA body's twist joints set on any pose (raea-sys-body with_twists, native call character.twists, raea/character withTwists), so a clip or a solver that turns the named joints only draws with the limbs' twist spread. The body library's captures, moved to SOMA joint for joint, play on SOMA's body through it 2026-11-15 05:33:25 -08:00
shinyobjectz 3073fc5739 CH32: two rerolled raccoon clips with the carriage and a pacing walk named: carriage in range, 7 of 9 measures in range on the better clip, the order of the legs and the tail's tip still off 2026-11-15 05:27:02 -08:00
shinyobjectz 914fabd377 CH32: anymove run end to end on the raccoon: reader error 6.9 and 4.8 px, two walk clips fitted, paw agreement 0.23 and 0.56 against a keep line of 0.8, about 2.10 dollars 2026-11-15 05:19:23 -08:00
shinyobjectz 19c877037a #158: a render can't wait forever on a frame its runtime lost. Ragul's long 4K renders hung before their first frame about half the time on 0.1.4 (2 of 6 on 0.1.2): the main thread waiting in settle's wait_flush, the JS thread idle, no output, no exit. Settle's no-progress guard took any JS time anywhere as progress, and the JS thread ticks its timer queue every 500 ms even when it's empty, so a frame that would never come was waited on for good; it also read every runtime's flushes, and a render's 3D rows run three runtimes.
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).
2026-11-15 05:08:52 -08:00
shinyobjectz f8dd70c80a CH10: the clip format starts from the SDK's clip file 2026-11-15 05:06:20 -08:00
shinyobjectz bdb77110de HG16: in progress: a SOMA body posed from a motion's turns in the SDK. raea-sys-body turns.rs: from_turns (a joint's world turn from bind is the motion's turn after the turn from bind to SOMA's T-pose; a joint the motion doesn't name rides its parent) and set_twists (each limb segment's four twist joints by SOMA's shares); native call character.turns; raea/character turnsPose and TurnsClip. Test: a forearm's twist joints take 5 to 95 per cent of the hand's turn, an upper arm's stay with the chest near the shoulder 2026-11-15 05:01:35 -08:00
shinyobjectz 4f589c5597 CH2, CH10, CH30: a body of several skinned pieces, contacts by joint name, the creature flow owned in docs/creatures.feature with Kimodo no part of it; CH20: Character's morphs prop carries the face's weights 2026-11-15 04:58:00 -08:00
shinyobjectz a57c2209d2 HG16b: done: a SOMA body folder (flat joints under SOMA's names, the twist joints as helpers, each joint's turn to the T-pose, skin samples) posed by Character from a Kimodo motion's own joint turns 2026-11-15 04:56:34 -08:00
shinyobjectz 87aa6ac0a1 CH21: hair as a card mesh with a stray distance per vertex, hats and glasses rigid on the head; CH20: the head's fitted size in head.json 2026-11-15 04:53:12 -08:00
shinyobjectz 73af431001 CH0: the character SDK as one system (docs/character.feature): people on SOMA's skeleton, one body folder for people and creatures, one clip format, Kimodo and anymove as cloud steps that write clips, motion matching at run time, staging and NPC controllers in one vocabulary of steps, the generated head at the collar, clothes after 2026-11-15 04:51:15 -08:00
shinyobjectz 4f6bfe82d6 HG16a: done: SOMA's own body plays a generated motion in raea with nothing fitted (its template rig posed from Kimodo's joint turns, twist joints set by SOMA's shares, as a glTF clip). SOMA filed as the standard body for people: HG16 a SOMA body as a raea body, HG17 its shape model, HG18 its surface and the generated head 2026-11-15 04:45:45 -08:00
shinyobjectz 3bbd1469ac HG12b: done: generated motion on a raea body, with the licences read (Kimodo usable, BONES-SEED not); HG15 filed: twist joints measured on a body's skin (a 90 degree hand turn thins the wrist to 71 per cent, four twist joints keep 97 to 99) 2026-11-15 04:30:30 -08:00
shinyobjectz 228984a74c HG12b: a body following SOMA motion keeps its head level: the head's frame is set rigidly from SOMA's head and two eyes (rest offset of the eyes from the head joint as a constant), where a single bone direction left it tipped back; a hand points at SOMA's middle finger end. Kimodo's four shipped example motions (slow walk, walk then sneak, run and leap, zombie) read on turbo with the source's own head pitch (15 degrees up at 2 s of the slow walk, as in the source) 2026-11-15 04:29:59 -08:00
shinyobjectz 56c71ed264 HG12a: motion on SOMA's skeleton plays on a raea body. SOMA (NVlabs/SOMA-X, Apache-2.0) is the 78-joint skeleton NVIDIA's motion models and datasets speak. raea-sys-body soma.rs points each of raea's bones the way SOMA's matching bone points, at raea's own lengths, fits the pose to those places, and turns each arm's and leg's first bone so its elbow or knee flexes about its own axis (settle_hinge, shared with two_bone). raea/character: readSomaUsda reads a SOMA animation saved as text USD; somaPose is the native call character.soma. A body 1.3 times the size under SOMA's names is followed within 2 degrees a bone; SOMA-X's example animation plays on turbo. 37 tests 2026-11-15 04:16:41 -08:00
shinyobjectz af8eb9ffbd HG14: fetch is rendered on turbo with a walk capture retargeted to it (said in docs/hands.feature) 2026-11-15 03:42:34 -08:00
shinyobjectz ee91bf13a8 IX10: status, in 0.1.5 (raea-feed #44 merged, raea-api deployed); plans count it as storage only 2026-11-15 03:41:44 -08:00
shinyobjectz 4a339cf0e3 IX10: status, the feed side built and measured live (raea-feed #44 held until 0.1.5); raea-api not deployed 2026-11-15 02:53:29 -08:00
shinyobjectz 0722ce3ae4 IX10: the index hands out its rows and a query's vector, so the feed can keep a Pro or Team account's index in raea's cloud too. raea index serve answers rows {after, limit} (export.rs: the searchable rows after a row, oldest first, each with its item, moment, thumbnail and its vector as base64 of the f16 bits the rows' file keeps, 2 KB a row, and next to ask from), and a search with vector: true also answers its query's vector the same way. Tested: export.rs's unit tests (base64, f16 bits, paging past an item not yet searchable) and on a real index (3 pictures: rows in pages of 2 then 1, "a cat" with its 2,048-character vector) 2026-11-15 02:27:43 -08:00
shinyobjectz 2d9d1cfd93 IX3, IX8 status: more like this on the Index page (raea-feed #40); files picked in Google's Picker go into the Index from Drive's own thumbnails, the token only to Google and no picture through raea-api, so Free can (raea-feed #41); what is not yet 2026-11-15 02:19:00 -08:00
shinyobjectz 1bf0c2075a IX11, IX12 status: the Index page's rows, bytes, model and folder, and Show in Finder through the Index (raea-feed #38); the counter, rate and wall move in raea's own window through a long poll, and the Index spec runs whole there (raea-feed #39) 2026-11-15 01:47:05 -08:00
shinyobjectz a84aedca3d skills pin: raea-skills #79 (9bdd33c): reference/files.md names the raea app's Index folder (~/.raea/library/fast, raea-feed #37) 2026-11-15 01:29:57 -08:00
shinyobjectz d77c46ab60 IX3 status: the Library's Search asks the Index beside the libraries (raea-feed #37), and what is not yet: one fused ranking, more like this from the page, agents' library search on the fast rows 2026-11-15 01:25:10 -08:00
shinyobjectz 24b456ecd0 IX8 status: Google Drive for desktop, Dropbox, OneDrive and Box are Index switches when mounted (raea-feed #36); the API route needs a restricted scope, since drive.file reaches only picked files and a picked folder shares the folder alone. Open question 3 for Shane: drive.readonly with Google's verification and CASA, or the desktop app's folder plus picked files 2026-11-15 01:15:45 -08:00
shinyobjectz d13ab74d9a CR10: each leg its own piece of skin under the fur: the skin holds in 10 of 13 moves, and what is left 2026-11-15 01:11:15 -08:00
shinyobjectz 8e86f0a3ba IX7: a file kept only in iCloud goes into the Index from Quick Look's thumbnail, never downloaded. cloud.rs asks QLThumbnailGenerator for the 256 px thumbnail iCloud keeps (objc2-quick-look-thumbnailing), after a folder's local files and eight at a time, since iCloud hands them over about one by one; the fast pass writes a waiting batch after a second, so a slow source still lands each picture as it comes. walk.rs lists iCloud's cloud-only files again (937387c3d left them out) and still leaves out and counts other providers' (Google Drive, Dropbox), which aren't shown to answer Quick Look without a download. Measured: 40 fresh cloud-only pictures and videos searchable in 17.9 s (2 a second), all 40 still dataless after; a mixed folder searchable whole, words finding an iCloud picture 2026-11-15 01:09:53 -08:00
shinyobjectz 104763b1e3 IX7 status: Quick Look gives a cloud-only iCloud file's thumbnail without downloading it, 1.7 a second the first time (40 in 23 s, all still dataless after) and from its cache after that (0.02 s), so iCloud Drive's cloud-only files can come in as a slow second stage 2026-11-15 00:31:39 -08:00
shinyobjectz 0f4c6626e8 CR11: the gallop's legs reach their feet now; what is still rough 2026-11-15 00:18:21 -08:00
shinyobjectz 9a236c1194 CR0: the plan table names its crate column 2026-11-15 00:15:32 -08:00
shinyobjectz 3f7945b7a6 CR0: docs/creatures.feature: a four-legged body in the character SDK, what was built for it (rig measures, a gait with feet planted in the world, one rigging and one solver, the tail), what building a raccoon on it found, and what is left 2026-11-15 00:15:32 -08:00
shinyobjectz 937387c3db IX7: a file kept only in iCloud is left out of the fast pass and counted, not read: reading a dataless file (SF_DATALESS, iCloud Drive with Optimise Mac Storage) downloads its original. On this Mac all 3,849 iCloud Drive files were cloud-only, 2,245 of them pictures and videos, which switching iCloud Drive on in the Index page would have pulled down. walk.rs cloud_only reads the flag from the stat it already has; Listed and Progress say how many (cloud), the listing's last event carries it, and the CLI says "N only in iCloud, left out". Checked on a folder of three cloud-only pictures and two local ones: two searchable, three left out, all three still dataless after. The Quick Look path that indexes them without a download stays IX7's plan 2026-11-15 00:14:03 -08:00
shinyobjectz 13886ff3c5 skills pin: raea-skills #78 (5645c8c) for 0.1.5: reference/cli.md has raea index (add FOLDER|photos:, search, status, remove, serve), regenerated from main 7ac71240d's help, the one file the strict skills gate failed on; with #77 (c22c4f1): footage.md teaches raea index, plan.md and collaborate.md plan a round of notes first and teach /goal, and raea's hook hands a session what the person sent from the app 2026-11-15 00:10:48 -08:00
shinyobjectz 7ac71240db app.share: macOS's share sheet for files from raea's window (NSSharingServicePicker beside the point the person right-clicked), for the feed's menu on any image or video (Shane 11-14: copy, open in Finder, share). Recorded in native.log off screen 2026-11-14 23:59:36 -08:00
shinyobjectz 2686a55190 IX6: the manual's raea index page names photos: (bun tools/manual-ref/cli.ts gen) 2026-11-14 23:58:12 -08:00
shinyobjectz 8caedfbaa1 IX6: Apple Photos as an index source (raea index add photos:): PhotoKit lists every photo and video, keyed by the asset's local identifier with Photos' original filename, its dates, size and length; the fast pass reads the small copy Photos keeps on this Mac (PHImageManager at 256 px, synchronous, never the network), so an iCloud library goes in without downloading originals, a video by its poster. macOS asks the person once (access(): read-write is the only reading level). Folders and Photos list through one list_source; root_of and list_root are what an add names, for the CLI and serve alike, and serve lists Photos again at start like a folder. The app's Info.plist has NSPhotoLibraryUsageDescription and its entitlements the Photos library (private tools/raea-app). Not yet run against a real library 2026-11-14 23:46:19 -08:00
shinyobjectz 31876c7d1c HG14: the hand's clearance from solids and its back-off from a hold ease in (both had a corner that showed as a kink in the arm's speed); the audit prints every joint jump over POPS degrees a second. The box take's worst jump 419 to 328 2026-11-14 23:39:29 -08:00
shinyobjectz 76a11076ea A3c: raea hook hands an agent what the person sent from the raea app, after any tool and as its turn ends
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.
2026-11-14 23:38:01 -08:00
shinyobjectz a904a86429 HG14: the floor take was measured on an impossible set-up (the box on the body's toes, a solid table 17 cm from it); set where a body would stand for it, the hold is within 5 mm (from 69) and no body skin is in the box. The trunk's lean comes on as soon as an arm ends short, and the squat's give is a smooth measure of the room the head and chest have, where a search for the least give jumped: the floor take's worst joint jump 1,706 to 707 degrees a second 2026-11-14 23:33:01 -08:00
shinyobjectz 32587e0b9d IX2: a video's fast pass is its keyframes: one for each 4 s, at most 16 spread over the whole, each the sync frame nearest its moment (AVAssetImageGenerator, tolerance unbounded, so nothing between keyframes is decoded), the first its thumbnail; each frame a row with its moment, an item's frames embedded in one batch so it counts once. On 35 of our own videos: 109 frames, all searchable in 0.9 s; "a monk in a dark stone hall" finds MUSPILLI's opening at 153 s. Listing a video's length before its frames is still to do 2026-11-14 23:27:56 -08:00
shinyobjectz d37f835bfd HG14: a grip chosen by the thing's shape for a rod lying down (taken over the top, the fingers round it across its length); raea/character's fetch takes a thing as asked when it is in reach and otherwise walks the body to the take's standing place first and puts the take off until it arrives. 35 tests. fetch is not rendered yet 2026-11-14 23:26:39 -08:00
shinyobjectz b305638248 HG14: the typed call table has character.take's reach 2026-11-14 23:25:42 -08:00
shinyobjectz 2f5ad766d7 HG14: a thing held in one hand is where that hand has it: when the wrist is at its limit the thing turns with the hand instead of the hand passing through it. The elbow's swing also counts what the wrist can't do, over a wider range. On turbo's skin: finger skin in the mug 26 to 1 mm with five pads on it, in a moved cup 5 to 2 mm. Exposed and not fixed: the mug tips up to 50 degrees at the mouth where 29 was asked and touches the face, and that take has a joint jump of 1,378 2026-11-14 23:25:42 -08:00
shinyobjectz 20ccabb8dd HG14: a thumb that is in the thing is spread out from the palm until it is clear; a leaving hand stays on its cleared path for longer; character.take answers reach (whether the body can take the thing from where it stands, and how far it must move if not). On turbo's skin: skin in the table 0 mm in four of six takes, finger jumps 67 to 242 degrees a second. The body-only JSON calls (character.fit, character.hand) and the readers the calls share are raea-sys-body's 2026-11-14 23:25:42 -08:00
shinyobjectz 6df5edbde0 HG14: the body follows the hands down (where the arms fall short of where they are sent, the body goes down by that much more); the knees open for a low thing close in front of the feet, so it comes up between them. On turbo's skin the floor take: thigh skin in the box 18 to 11 mm, the hold 83 to 69 mm off. Still not right 2026-11-14 23:25:42 -08:00
shinyobjectz e80bde56c2 HG14: a limb's middle joint flexes about its own axis. The first bone is turned about itself (an upper arm in its socket) until the hinge the rest pose bends about is the one the limb is bent about, so an elbow or a knee never reads as bent sideways. On turbo the arm was reported at a limit on about 100 frames of every take; now 0 in three takes and 30 to 73 in the others 2026-11-14 23:25:42 -08:00
shinyobjectz 86cf4fe12e IX13: raea-sys-index in tools/layers.toml (systems); its copies folded: the models folder and the index home through raea-io-home's env_path, the Core ML cache judged by the package's Manifest.json (no walk of the package), the text tower loaded from SigLIP 2's folder 2026-11-14 23:20:17 -08:00
shinyobjectz b24a4537c0 IX13: raea index in the manual's CLI reference (Projects, beside library), its page indexer.md
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".
2026-11-14 23:03:18 -08:00
shinyobjectz c5d3f83c79 IX13: raea index add|search|status|remove|serve, the fast pass kept open for the feed
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.
2026-11-14 23:00:18 -08:00
shinyobjectz ef747f9b24 IX1, IX3: Index's fast pass, raea-sys-index: a folder's pictures listed, decoded from their small copy and embedded by SigLIP 2 B/16-256 on the Neural Engine, searchable by words
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).
2026-11-14 22:42:22 -08:00
shinyobjectz 578bc1d159 HG14: third round against the audit. A carried thing is pushed out of the body's skin as it will be posed (squatting for a low thing, its knees making way for the thing); the grip is chosen between the forearm's way at the grab and at the carry; the hand's skin keeps 2 cm off solids while it travels and 4 mm on its hold; a hold's hand shape is used only for fingers that miss the thing; the squat eases in and out; a heavy thing is carried within reach. On turbo: skin in the table 0 to 11 mm (from 7 to 30), body skin in a carried box 0 mm, holds within 4 to 9 mm in five of six takes. The floor take and the mug are still wrong (docs/hands.feature HG14) 2026-11-14 22:40:59 -08:00
shinyobjectz c135130ccb HG14: a carried thing is pushed out of the body's own skin (after a throw's wind-up, which drew a box 99 mm into the waist); the grip of a low thing is found with the squat the body will have there; the whole hand's skin, not three points, keeps off the scene's solids. On turbo's skin: body skin in a thrown box 99 to 0 mm, in a 14 kg box 45 to 0; finger skin in the table 7-21 to 0-13 mm. Not fixed: the floor take, and the 14 kg box's hold now 41 mm off 2026-11-14 22:32:04 -08:00
shinyobjectz ffb56a8f09 HG14: the grip's code (the hand's lie at its grab, the swivel, an arm past its ranges) is its own file; take.rs is back under 500 lines 2026-11-14 22:27:56 -08:00
shinyobjectz 761e6b98f9 HG14: the grip is the one the hand has at its grab, kept in the thing's frame, so a hand doesn't shift on what it holds; fingers curl on the body's own skin samples, and a finger that misses settles at its nearest approach instead of snapping to a fallback; the palm's place is its real skin's; a thing in one hand turns about the vertical with the forearm, up to a quarter turn. On turbo's skin: finger jumps 67 to 362 degrees a second (from up to 4,300), body-joint jumps 311 to 955, finger skin in a cup 4 to 7 mm with 4 to 5 pads on it. Still wrong and said so in docs/hands.feature HG14: the mug at the mouth (palm up to 5 cm off), the floor take, a box drawn into the waist for a throw, fingers in the table, the squat's depth. The shapes (Solid, Thing) are raea-sys-body's 2026-11-14 22:25:56 -08:00
shinyobjectz 4a0dacc29b HG14: the hold's finger direction uses the maths library's own projection (no copied helper) 2026-11-14 22:17:22 -08:00
shinyobjectz 38db0f2f23 HG14: joint turns read the short way round (a turn and its negative are one turn; the limits read a 31 degree wrist as 329 and held it to limits it was nowhere near, a 100 degree jump in one frame); the fingers' direction on a hold no longer flips where the forearm arrives straight into the surface. The audit's worst body-joint jump in the mug take: 6,107 to 1,118 degrees a second 2026-11-14 22:15:02 -08:00
shinyobjectz 03de032a28 HG14: the bar, and the audit that measures against it. tools/hands-audit runs six takes on a clean body's own skin (skeleton.json's surface samples, now read and posed by raea-sys-body) at 60 frames a second and prints the worst of each measure: skin in the thing, the scene and the body, finger pads on, joint speeds and their jumps, limits, bend. The first run showed the takes were not seamless or clip-free (docs/hands.feature HG14 has the numbers). The elbow's swing, the hand's lie on its hold, the squat's give and the knees' set-back are now continuous instead of chosen from steps: body-joint jumps down from about 3,500 to 400-750 degrees a second in five of six takes. Open: a wrist flip, finger jumps, and all the clipping 2026-11-14 22:09:20 -08:00
shinyobjectz e24d71b3b9 HG6e: the carried thing and the hands on it out of the body. own_solids: the trunk and both thighs as capsules where the pose has them; a carried thing is moved the way the body faces until none of its corners, nor the wrists behind its holds, is in them. The stick-figure filmstrip example is gone (the renders on a character replaced it, and the crate was at its size limit). 32 tests 2026-11-14 21:58:10 -08:00
shinyobjectz 55a95b4d17 HG7b, HG6d: walking up to the thing, a thing handed to another body, and an elbow out of the body's own trunk. A take works wherever the body stands and faces (a test with the body turned 120 degrees and moved 2 m). raea/character's placedPose stands a pose somewhere else; walkUp is the body's own motion for arriving at a take's standing place on a walk capture set down to end there. A hand-over is two takes: the giver's holds the thing out and leaves it as the taker's hand is on. 31 tests 2026-11-14 21:52:34 -08:00
shinyobjectz f3f7207001 HG9b, HG6c: a thing passed from hand to hand, a thing moved where it is and left (a drawer), a throw's wind-up and follow-through; forearms, knees and the carried thing out of the scene's solids. Each hand has its own part in a take (when it starts, is on, lets go), so hands come and go separately. The body bends for a thing only when it is lower than 0.88 of an arm below the shoulders. The body crate's own tests (limits, the hand prior) are its own; 29 tests in all 2026-11-14 21:46:53 -08:00
shinyobjectz ee8edf43b1 HG8a, HG9a, HG10a: a thing held one way brings its holds and hand shape; a carried thing follows a path (a drink is a key at the mouth); weight. The hand lies along the forearm as it arrives, brought level where that would tip fingers into a solid, and the elbow's swing is chosen inside the shoulder's and elbow's ranges instead of clamping the arm after the solve (clamping threw the wrist up to 18 cm off). All of a wrist's twist goes to the forearm. 25 tests 2026-11-14 21:36:00 -08:00
shinyobjectz f085ac07da HG0: done (the two crates are on main) 2026-11-14 21:25:55 -08:00
shinyobjectz f715c40319 HG0: raea-sys-body is a facility (the rig, IK and limits that raea-sys-grab builds on), so the layers allow the edge 2026-11-14 21:25:26 -08:00
shinyobjectz 705504ddf1 HG0: arm.rs is raea-sys-body's (its move was left out of the split's commit) 2026-11-14 21:25:26 -08:00
shinyobjectz 604064e720 HG0: two crates. raea-sys-grab passed 2,000 lines, so the body's half is raea-sys-body (systems/body: the rig, arm IK, joint limits, pose fitting, the hand prior and its data), what sdk/body is in TypeScript; raea-sys-grab keeps what the hands do with things (shapes, holds, the trunk's part, the take, the JSON calls). No behaviour changes; 23 tests 2026-11-14 21:25:26 -08:00
shinyobjectz f6b3188d9f HG6b, HG5b: the arms inside the rig's ranges, the head and chest out of the scene's solids, and SOMA-X's hand prior on raea's fingers. limits.rs is sdk/body's axes and limits in Rust (the same ranges); a take holds both arms inside them and says when it had to. When a solved pose puts the head, neck or chest within 9 cm of a solid the take is solved again with less bend and lean and more squat. prior.rs and data/soma_hand_prior.bin (SOMA-X, Apache-2.0; data/README.md): a 32-component model of real hand poses cut to the rig's fifteen finger joints; a hand shaped by a few numbers, any hand read back and scored; a take opens the hand as it comes in. raea/character's handShape is the native call character.hand. 23 tests. The take scene is the Character SDK project's 2026-11-14 21:25:26 -08:00
shinyobjectz 853183e2f4 HG5: the take scene is the Character SDK project's, on its drawn character (teal, 1.70 m), not a psx person; the same code runs on both bodies 2026-11-14 21:25:26 -08:00
shinyobjectz a68b96cf89 HG5a: the rest of both sources, in Rust. From Ik-Object-Holding: interact.rs pick (the nearest thing in reach that the eyes see past the scene's solids) and body.rs look (the head turned to the thing, neck and head sharing it), on through a take. From SOMA-X: fit.rs, the analytical pass of its pose inversion on marks (20 random poses recovered from joint heads and bone ends, every joint within 4 mm), and arm.rs twist_joints, its procedural twist-joint evaluator. raea/character's fitPose is the native call character.fit. A wrist stops at 70 degrees and the frame says so; the fingers point the level way the arm comes; the squat takes more from the hips and less from the back. 19 tests. docs/hands.feature says what of SOMA-X is not converted and why 2026-11-14 21:25:26 -08:00
shinyobjectz 613645ffc6 HG6a: hands stay out of the scene's solids; HG7a: a low thing is taken by bending with the feet planted, and the take says where to stand; HG4a: the carry is against the body. body.rs: clear moves a wrist's place the least that keeps the hand 2 cm off every solid in a take's avoid list; stoop lowers the hips and bends the trunk for hands that must go low, by as much as the hands have got along their reach, with leg IK holding both ankles within 5 mm; stand_for gives the place a forearm off the thing's near face (character.take answers it as stand). The wrist's path arcs up and backs off a hold's surface when leaving. 16 tests: a box on the floor held within 2 cm with the hips over 30 cm down, no point of the hand in a table at any frame. Rendered on a psx person: a cup taken over a table's edge, a box lifted from the floor onto a table. Not right yet: the squat folds the head to the knees, and the body itself keeps out of nothing 2026-11-14 21:25:26 -08:00
shinyobjectz 986fae3c62 HG5: a character in a scene takes a thing. raea/character's take(skel, base, spec, t) makes the native call character.take (runtime/calls), which is systems/grab's take_json: the pose for <Character> and the thing's place each frame, with how far a wrist missed and how far the body was turned from its own motion. Asked as JSON it is the same frame as asked in Rust (a test; 13 pass). Rendered on a psx person: a box taken off a table with both hands and thrown, a cup moved across the table in one hand, upright, the fingers round it; 420 frames, no errors. Not fixed here: hands pass through the table (HG6), and the box's carry place wants tuning by eye 2026-11-14 21:25:26 -08:00
shinyobjectz e4add11c80 HG1: systems/grab, procedural arms and hands (docs/hands.feature HG1 to HG4). A body reaches for a thing, takes it with one hand or two, carries it, and puts it down or throws it, with no capture of the action: two-bone arm IK with a pole and a reach that leans the trunk by capped shares; hold points found by casting from the holder's left and right into the thing's shape (musthafa45/Ik-Object-Holding's method, MIT), kept in the thing's frame with the surface's facing; the palm laid on a hold; each finger joint curled until its bone meets the surface; a wrist's twist moved to the forearm by SOMA-X's swing-twist split (Apache-2.0); the whole take a function of time. Plain glam, no engine yet (HG5). 12 tests on a stand-in body: 600 targets hit within 0.1 mm, palms within 6 mm of their holds from grab to release, a carried cup upright while the body turns, no body joint over 6 degrees a 60th of a second. docs/hands.feature holds what the sources and patch.gg gave and the scenarios after (HG5 to HG13) 2026-11-14 21:25:26 -08:00
shane c4fa90de4c skills at 9eea993: the Copy reference example in SKILL.md no longer reads as a raea command (#157)
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".
2026-11-15 00:19:33 -05:00
shaneandshinyobjectz ad2e7e1cd4 docs/manual/whats-new/0.1.4.md: raea 0.1.4's notes as the manual's What's new page (published 2026-11-15 04:55 UTC, promoted from v0.1.4-rc4 at d870159c4) (#156)
Co-authored-by: shinyobjectz <[email protected]>
2026-11-15 00:12:18 -05:00
shane d870159c46 @raea/task and docs/plan.feature: a project's plan.org as typed tasks, read and written by task id (#154)
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).
2026-11-14 21:48:16 -05:00
shaneandshinyobjectz 4d7fa914cc Files dragged from the Finder reach the page in raea's window (app.drops) (#153)
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]>
2026-11-14 20:44:17 -05:00
shane a4bb6e5c1d raea show --project: ids, not titles (Shane 11-14: "when posting to a feed we should use feed ids or something i consistently see the agents getting them mixed up by name") (#152)
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.
2026-11-14 20:06:19 -05:00
shinyobjectz 5f65114ce5 docs: fingerprint and libraries run on your own computer, not only a Mac
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).
2026-11-14 16:08:16 -08:00
shinyobjectz 87bfda4ed2 skills pin: raea-skills #73 (7e59af0): SKILL.md section 0, settle the workspace and the project before making anything (Shane 11-14: agents start creating and forget to pick a workspace and a project) 2026-11-14 16:06:16 -08:00
shinyobjectz 3b61818eb9 Inline SVG painted by a class draws its colour in raea's window, not black: a fill or stroke a stylesheet or class sets (svg_css_paint, the #45 path) was written into the serialized SVG as its computed value, and a colour's computed syntax is its own (oklch(), lab(), color()), which usvg doesn't parse and draws black. The app's ink tokens are oklch, so a class like stroke-ink-4 or fill-[var(--ink-4)] (the timeline's curve handles, a test chart's labels) drew black on the dark ground; the window's log said "Failed to parse fill value: 'oklch(0.96 0 0)'. Fallback to black." Each such value is now sRGB rgba(), as attributes and currentColor already were; none, currentcolor, rgb() and url() are left as they are. Checked: blitz-dom svg_paint_tests (oklch and lab to rgba, the rest kept), cargo test -p blitz-dom --lib 90 of 90. 2026-11-14 15:43:35 -08:00
shinyobjectz 1680860ff4 raea-io-gen-fit: fit.rs moved out of raea-io-gen into its own crate, re-exported as raea_io_gen::fit so every path stays. raea-io-gen was at its 2000-line crate limit on main, and the picture fallback (Keys) put it at 2095; it is now 1930. route.rs's Keys comment no longer names raea's env file by its literal path, which made skills' files.md stale. Checked: cargo test -p raea-io-gen -p raea-io-gen-fit --lib, 26 and 1 (the same 27 as before). 2026-11-14 15:38:57 -08:00
shinyobjectz 74ce0ff737 raea gen: a picture step on a host with no made.app key goes to fal, then OpenRouter
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.
2026-11-14 15:34:27 -08:00
shinyobjectz 90891cc86f skills pin: raea-skills #72 (cd4cddb) for 0.1.4. SKILL.md's sources comments name only paths in the public tree: apps/site/public/install and docs/targets.feature are dropped, since the strict skills gate checks each one exists and failed in a clean export of main 2026-11-14 13:56:20 -08:00
shinyobjectz bb7dc3b79f #131: what an R3F scene throws is the composition's error, and three's PMREMGenerator no longer takes the scene with it. The scene renders under raea's own error boundary (sdk/r3f session.ts Caught): a throw while rendering, in an effect or a ref is thrown out of the <R3F> drawing it, the root ended, so the render is refused naming it as a throw outside R3F is ("REFUSED the composition threw at frame 0: Error: mesh threw", exit 1). R3F's own root only reported it (reportError, else a stack without its message), drew nothing and the render ended with 0 errors. PMREMGenerator (pmrem.ts): fromEquirectangular of a panorama raea loads is that panorama, lighting the scene as scene.environment; fromScene (RoomEnvironment) and fromCubemap are left out with a warning naming them, the scene drawn without them (it threw in _sceneToCubeUV inside the stand-in renderer). Checked: both of the issue's repros (the box now draws, the throw now refuses), sdk/r3f test/errors.test.tsx 4/4, the r3f suite 54/55 (the one failure is coverage.test's Skybox/Lightmap raea-web parity cases, unrelated and failing before). docs/r3f.feature R3F15 2026-11-14 13:44:37 -08:00
shinyobjectz d6d7a520a7 #151: a package that imports raea shares the composition's SDK. A package in the project's node_modules (or the person's plugins) importing "raea", "raea/<module>" or "@raea/<package>" resolves to the work folder's copy of that module, where the composition's own imports were pointed (engine/bundle edit.rs sdk_copy, by sdk/tsconfig.base.json's paths), so one SDK and one Clock. A package isn't rewritten as the edit's own files are, so its import resolved nothing and Rolldown left raea an outside global: 0.1.3 refused it before the first frame with "Can't find variable: raea" while the same file by a relative path drew. Checked: the issue's repro (vk-parts) refused with 0.1.3's shipped bundler, draws the bar at frame 29's width with this one; engine/bundle/tests/bundle.rs a_package_importing_the_sdk_gets_the_work_folders_copy (8/8 pass). docs/ecosystem.feature EC13 2026-11-14 13:42:16 -08:00
shinyobjectz c05dfc946e Ellipsis cuts only text that doesn't fit (0.1.4, Shane's test window: onboarding's face picker drew Frog as "Fr…" and Dog as "D…"). blitz-paint measured where an ellipsis goes against the box's rounded content width, which can be up to a pixel narrower than the text the box shrink-wraps, since each edge rounds on its own; past half a pixel over, a word that fits was cut. The ellipsis and a line clamp's end now use the unrounded content width the text was laid out in. bench/ellipsis-fit/check.sh renders shrink-wrapped labels with ellipsis and with clip and wants them byte-identical, and a word wider than its box to differ; it fails on the raea before this 2026-11-14 13:39:55 -08:00
shinyobjectz c3b2108412 release.yml: Windows builds openh264-sys2 every time instead of taking it from the cache volume's target/. v0.1.4-rc1's Windows job restored target/, compiled only raea-cli, and failed to link raea.exe on 135 of openh264's SIMD routines (WaverageChromaFilter8_sse2 and the rest), the failure 0.1.3-rc4's Chocolatey nasm left: a build whose assembly never reached the rlib stays fresh to cargo. Its C++ still comes from sccache 2026-11-14 13:18:02 -08:00
shinyobjectz 2fe9f13908 skills pin: raea-skills #71 for 0.1.4 (storage_status, storage_plan, storage_trash and footage_add taught, the SOP for old video, and cli.md, feed.md and files.md regenerated against main's help and the 0.1.4 feed app). sdk/guides/craft/motion/rendering.md takes the skill copy's text, so the copy check holds: keep a replaced version, never rm a render, name versions -vN, and send old video through storage_plan and the person's yes to storage_trash 2026-11-14 12:56:35 -08:00
shinyobjectz 1c93300361 raea.root is never ~/Studio by default: with none set, a workspace someone names goes in ~/Documents/raea (or ~/raea under iCloud), and ~/Studio, the root on raea's own Mac before 11-10, is no one else's (Shane 11-14: "no internal no studio, its up to the user to set their workspace"). raea-feed's host says the same (integration-014 c01686e); raea's own Mac keeps ~/Studio through raea.root. 2026-11-14 12:29:46 -08:00
shinyobjectz ef5761d300 dmg: a failed Finder layout stops the build. The osascript ran inside an echo's $(...), where set -e never sees it fail, so dmg.sh reported ok on an image with no picture and Finder's default places (the check found it by forcing the layout script to error) 2026-11-14 12:09:56 -08:00
shinyobjectz 37652ae571 dmg: raea's Mac installer window, drawn by raea
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.
2026-11-14 12:09:56 -08:00
shinyobjectz 0ed836095e SK13: raea-cli stays under its 2000 lines (origin/main had it at 1999). Where each agent reads skills moves to apps/tools agent_skills.rs (folder, agents, AGENTS), beside agent_mcp, agent_hooks and agent_grokbot; raea skills install and raea doctor read it there. Grok Bot's install step is agent_grokbot::stage: the preface in the staged SKILL.md, refused over the 256 KB Grok Bot's Add new skill takes (MAX_SKILL), and the links; its test moves with it, and raea-cli's skill test checks the shipped SKILL.md with its preface fits. The preface is written in with_preface, its one caller, and ask takes the folder (both were structural twins of other code: dupes). raea-cli 1975 lines; cargo check -p raea-app-tools -p raea-cli --tests passes; the unit tests weren't run here (a debug test build of apps/tools needs the whole engine, about 15 GB, and filled the disk) 2026-11-14 12:09:48 -08:00
shinyobjectz b1b47b7cfa SK13: the manual's raea skill and raea skills pages name grokbot among --agent's values, and say how its copy is staged (regenerated from raea's help with tools/manual-ref/cli.ts gen; L1's manual reference step failed on them) 2026-11-14 12:09:48 -08:00
shinyobjectz c939b27aee SK13: Grok Bot as a raea skills install target. Grok Bot (xAI's desktop agent, /Applications/Grok Bot.app 1.1.0) keeps its skills and MCP servers on a computer of its own in the cloud and has no hooks, CLI or ACP; what reaches this Mac is its Execution on this computer. So raea skills install --agent grokbot stages raea's skill in ~/.raea/grokbot/skills (RAEA_GROKBOT_HOME), stamped, with a preface after the front matter saying raea runs on the person's Mac and how to run it there, and prints Grok Bot's own links that finish it: grokbot://app/v1/settings?id=local-execution and a prompt link, filled in but not sent, asking the Bot to make the skill from the staged file (or Skills, Add new skill, Upload file). No MCP server: Grok Bot would run its command on its own computer. apps/tools agent_grokbot.rs holds the folder, the preface, the links (encoded as Grok Bot encodes its own, within its 1000 and 2048 character limits) and the closing text; engine/cli skill.rs adds the agent and splits install_into for a test. Not built here: cargo test -p raea-app-tools agent_grokbot and the engine/cli skill tests need the integrator's lane build. 2026-11-14 12:09:48 -08:00
shinyobjectz 0ef7287fde HW0a: raea-page-sound's layer (runtime, as raea-page-stage and raea-page-window: it builds on raea-runtime-js and the mixer) 2026-11-14 09:15:19 -08:00
shinyobjectz fce94e630b HW2b: the switches' thumbs centred, 2 px all round, in Chrome and in raea's window (Shane 11-14: "slightly off center"; a thumb has no skirt and its groove is shaded evenly, as a well's lit lip read a pixel low). Shane 11-14: the kit goes into 0.1.4 2026-11-14 09:10:41 -08:00
shinyobjectz 2a38cbc2df HW: docs/hardware.feature's status as built and measured (11-14): HW0 to HW4 built; HW0b 200 presses 0 late on the mixer and 40 presses 0 late in raea's window; HW1b loudest voice -22 dB; HW2b matched by eye, the ui-parity run to do; HW5 open 2026-11-14 08:52:54 -08:00
shinyobjectz 2ce68890b8 HW0b: a fired sound is heard within the mixer's head. systems/mix tests/fire.rs opens the real output device muted (RAEA_AUDIO_MUTE=1) with a tap, fires 200 presses 15 ms apart through Live::fire, the graph with the first only as raea/tone's fire() sends it: 0 of their events reached the audio thread late, and the tap (the limiter's output, before the mute) holds 200 presses. Ignored by default, as it opens a device: cargo test -p raea-sys-mix --release --test fire -- --ignored. Also raea/tone's Meter.getValue is number | Float32Array, so FFT and Waveform (bins) type-check: sdk/audio's tsc had two errors there 2026-11-14 08:44:33 -08:00
shinyobjectz 4c392f60d6 HW0a: a page plays a sound now, on raea's mixer. raea's window has no Web Audio graph (sdk/ui platform audio.ts leaves AudioContext out), so a page's interaction sounds had no way to be heard: only a composition reached the mixer, a frame at a time. Live::fire (systems/mix live/fire.rs) plays raea/tone events at the clock's now plus the head plus their own time, building the graph when it changes; raea-page-sound (engine/page/sound) is the page's sound.fire and sound.report calls, a mixer of the page's own on a thread that opens the device on the first fire and rests its stream after 10 s idle; raea/tone's fire(play) runs play as <Sfx> runs a game's one-shot and sends its events, and the graph when it changed, to sound.fire (a browser gets no sound and one console line). Spec: docs/hardware.feature (Shane 11-14: a dark kit of our own, SPEC-01's idiom, its sounds on raea/tone and Firewheel) 2026-11-14 08:27:12 -08:00
shinyobjectz b4e8310f1f TL13a: where the drag's frame goes with the fine restyle. docs/timeline.feature: RAEA_TWIN_SYNC_LIGHT again gained nothing in four interleaved rounds (drag over still 0.62-0.67 with it, 0.65-0.67 without); a macOS sample of the page host's main thread through a 4 s drag: the page's JavaScript for the pointer event 18%, paint 18%, the snapshot of every element's box 11%, the twins' boxes taken before each event 7% and each frame 5%, Stylo's restyle 2.5% (28% before). The drag adds about 2 ms to an 18-19 ms still frame, so an incremental snapshot and paint are what is left 2026-11-14 08:25:32 -08:00
shinyobjectz 9cffd0bf0a TL13a: raea-page-host restyles finely by default. Each attribute set or cleared restyles what Stylo's snapshot invalidation finds and each ancestor itself, not the element's parent's whole subtree; RAEA_FINE_RESTYLE=0 brings back Blitz's own way, and other binaries keep it off unless set. Proven before it was made the default: ui-parity full with it on is 269/271, the same two cases failing as with it off (p15-media canvas-text and img-downscale); the app's timeline suite in a headless raea window with it on passes 53 of 54 (TL10d skips itself there); the 400-clip drag in that window ran at 48-50 fps against 38-41 without, the window's still rate 52-55. The page host sets it in main before any thread starts, as --root's RAEA_PAGE_ROOT is. docs/timeline.feature TL13a has the numbers 2026-11-14 08:09:22 -08:00
shinyobjectz d190585622 TL13a: under RAEA_FINE_RESTYLE each ancestor of a changed element is matched again, itself only. Stylo's snapshot invalidation doesn't reach an ancestor whose :has() reads the changed element: basecoat's .field > label:has(input:checked) kept its unchecked look under the trial (ui-parity p18-dom/lib-basecoat, 268/271 against 269/271 off). Without the trial the parent's whole subtree restyle hid that. The mutator's set_attribute and clear_attribute now add RESTYLE_SELF to every ancestor under the trial, which re-matches :has() on any of them without restyling their subtrees (a track's every clip, TL13a). Unset, nothing changes 2026-11-14 07:50:17 -08:00
shinyobjectz 912c957c9f TL13a: the page's layout snapshot writes its numbers in place. snapshot.rs num made a String of each number with format! before pushing it; a frame writes every element's 17 numbers (about 50,000 with 400 timeline clips) for the JS's layout. write! into the snapshot gives the same bytes without an allocation each 2026-11-14 07:31:09 -08:00
shinyobjectz 2b9f1ad862 TL13a: under RAEA_FINE_RESTYLE the snapshot names the attribute that changed. blitz-dom's snapshot listed as changed only the attributes the element had when it was taken, so an attribute being added (data-state appearing) or a second one changed before the flush was never among them, and the trial's invalidation, which reads only what changed, left [data-state=open]'s elements unstyled: ui-parity 266/271 with the trial on against 269/271 off (p14-forms/select-keys, p18-dom/lib-basecoat, p18-dom/lib-radix). The mutator adds each set or cleared attribute's name to the snapshot under the trial; unset, nothing changes 2026-11-14 07:25:59 -08:00
shinyobjectz b1bfc9ba41 TL13a: RAEA_TWIN_SYNC_LIGHT read once per twins pass, at its top, in place of a cached closure of its own (the closure was a near copy of material clay.rs's, a new dupes group); the same answer, one env read per event's sync 2026-11-14 07:19:28 -08:00
shinyobjectz d5b8b9ab35 TL13a: a page's rects taken with less work. blitz-dom transformed_rect first walks the containing-block chain without matrix math and answers None at once when no node on it has a transform or projection (the full walk then never multiplies a non-identity in and returns None too, so every answer is the same); it was the busiest leaf of a 400-clip timeline drag in raea's window, as every element's rect is taken each frame for the twins' boxes and the JS layout snapshot. raea-runtime-twins: RAEA_TWIN_SYNC_LIGHT=1 (a trial, off by default) has an event's sync_twins keep a kept twin's box rather than take every element's rect again on each pointer move: layout has not run since the frame's own twins pass took them, and that pass takes them again after this frame's layout; a new twin still takes its box at once. Unset, the sync takes every box as before 2026-11-14 07:14:46 -08:00
shinyobjectz a10d64ab75 TL13a: RAEA_FINE_RESTYLE measured. docs/timeline.feature: the 400-clip drag in a headless raea window, three rounds alternating, 37, 47 and 49 fps with the trial on (median frame 25.0, 19.2, 18.9 ms) against 31, 34 and 38 off (34.6, 30.4, 27.9 ms), the window's still rate 51-57. Not yet the window's rate, and not the default until ui-parity passes with it on (no disk for its build). One profiled drag with it on points at the rect walk next 2026-11-14 07:08:59 -08:00
shinyobjectz 1f3a058ba0 TL9b: the timeline's Send followed to the agent. docs/timeline.feature status: in raea-feed PR #19 (faf00e2) a composition's cutout, on Send, finishes the version on the host and then posts the item's own session a prompt holding the cutout's words, with nothing sent before Send and no prompt when the composition's tell is skipped; live on Claude over ACP (d63098e, e2e/timeline-live.spec.ts), the agent's first act was a search for the v2 composition and its matte 2026-11-14 07:04:31 -08:00
shinyobjectz c4550ad6ba TL7l, TL7m: a composition's footage cut out. raea's <Video> takes a matte (sdk/video media.tsx, VideoMatte exported from raea/video): a folder of PNG mattes in the media folder (m00001.png on), the file's rate, one each every frames and how many; it wears the one its source time is on (data-source-time, so trims, playbackRate, speed curves and loops follow) as its mask-image, sized and placed as its objectFit and objectPosition place the picture, the last past the end, and refuses it with framing or punchIn (the engine places those). Blitz paints raster mask-images as it paints backgrounds, and raea's render loads each frame's: a 3 s face clip's Vision mattes worn this way kept on every frame what that frame's matte keeps (overlap 0.92 at least, 0.972 on average; the uncut composition 0.53). sdk/timeline copies.ts: a media row's cutout (the matte prop's numbers, data-matte, data-brush-at, data-brush-strokes) is its clip's matte props as a film's (matte, matted, and matteFps, matteEvery, matteCount), and a set of those is the host's new cutout edit (raea-feed 2c59ec6: the host mattes the whole of what the <Video> plays into its media folder's matte/ and writes the prop; Stabilise and Retouch are refused while it is on). Conformance: 4 new Video matte tests in cutout.test.tsx. The manual's video, raea, index and editor pages regenerated (pbr.md's drift left out) 2026-11-14 06:50:28 -08:00
shinyobjectz afe2150d19 TL7n: a composition's footage retouched. sdk/timeline's composition copies move into src/copies.ts (heard, steady and now retouch: Copied, CopyEdit, copyProps, copyEdits; read.ts extends and delegates to it, nothing new exported). A media row carries retouch (of and the amounts above 0) when its <Video> plays a retouched copy; its clip's props are its own file, the copy (retouched) and the four amounts, as a film's clip has them, and a set of those is the host's new retouch edit (raea-feed de9a67d: the host retouches the <Video>'s whole file into its media folder's retouch/ and the edit writes src={staticFile(copy)} data-retouch-of and data-retouch-<amount>, the src as it was when off). Held steady too, the retouch is made from the steadied copy and comes off to it, and the clip's steadied prop is that copy (the copy under the retouch); Stabilise is refused while Retouch is on. A real 3 s face clip retouched in 4.3 s, a face on all 90 frames, and raea's render of the edited composition is the copy's own frame (0 apart; the file's is 1.4). Copies, moves and mattes are read and made at the rate the frames' times sit on (a 30/1 clip probed 29.97 had made a copy that drew a frame behind). The manual's editor page regenerated (pbr.md's drift left out) 2026-11-14 06:35:06 -08:00
shinyobjectz a77d68ef93 TL7k: a composition's footage held steady. sdk/timeline: a media row carries steady (of, level) when its <Video> plays a steadied copy; its clip's props are its own file and the copy (file, stabilise, steadied), and a set of those on footage is the host's new steady edit (raea-feed 7600f78: the host reads the <Video>'s whole file, keeps the moves in its media folder's steady/ and has raea render a copy with each frame's move as the player wears it; the edit writes src={staticFile(copy)} data-steady-of data-steady, the src as it was when off). A 2 s clip shaken along a known path steadied for real in 3.4 s, its frame-to-frame shake 7.49 px to 2.12 at 320 px; a copy with no moves is its file's every frame. The manual's editor page regenerated (pbr.md's drift left out) 2026-11-14 06:17:39 -08:00
shinyobjectz fad2dbcbf4 TL8d: a composition's <Audio> has its noise reduced and its voice changed. sdk/timeline: a media row carries its file (its staticFile path) and, when it plays a copy, what the copy was made from and how (heard: of, denoise, voice); its clip's props are its own file and the copy (file, voiced, denoise, voice), as a film's sound clip has them; a set of those props on an <Audio> is the host's new heard edit (raea-feed 9094259 writes src={staticFile(copy)} data-voice-of data-denoise data-voice, and the src as it was when both are off). Each voice's copy is as loud as its source now (the voices had moved a line with pauses -12.5 to +8.6 dB). raea renders the result: a scratch composition's line at 105 Hz voiced, 140 its own. The manual's editor page regenerated (pbr.md's drift is the paint lane's, left out) 2026-11-14 06:05:51 -08:00
shinyobjectz f9129e758c TL13a: the stage clause measured: an edit on the scene's stage by 88 ms (median of 16, sound upper bounds that count a capture's read back; 81 to 113, 15 within 100), against about 1,050 ms when only the file opened again showed it; the playhead kept, a cut clip's length kept; the engine's two gaps (props on a paused stage, the reopen's second on the stage thread) filed 2026-11-14 05:48:42 -08:00
shinyobjectz b95a9fab63 TL13a: a sequence retimed live: the stage's props carry __raeaSequences (each named Sequence's from and length), which a Sequence takes over its own until the file it was written into opens again. domReads listens for raea-props in both runtimes (lite hands its bridge's addEventListener over as __raeaListen, since its entry gives domReads none). raea-feed b7e1514 sends them as an edit is let go and seeks a paused stage again so it draws them (set_props on a paused stage isn't drawn until something steps it, an engine gap); 16 edits on the stage in raea's window by 88 ms (median of sound upper bounds that each count a capture's ~78 ms read back), the playhead held through each reopening 2026-11-14 05:48:18 -08:00
shinyobjectz af752e3a27 TL13a: the window drag told apart: a carried clip lost the pointer's capture (fixed in raea-feed 957f292); what is left is the page host's frame after a step, Blitz's widened restyle first (RAEA_FINE_RESTYLE, not yet measured) 2026-11-14 04:41:00 -08:00
shinyobjectz 85d331898f TL13a: RAEA_FINE_RESTYLE, a trial (off by default): an attribute set or cleared restyles what Stylo's snapshot invalidation finds, not the element's and its parent's whole subtrees
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).
2026-11-14 04:36:00 -08:00
shinyobjectz 8e5f1d449c TL7n: footage retouched (CapCut's Retouch) filed and built: four sliders applied, faces found by Vision and retouched by Core Image on the host into a copy with the part's own sound, which the player shows in the clip's place once it has the frame; counts 49 in Chrome, 47 of 49 in the window; Not yet emptied 2026-11-14 03:44:13 -08:00
shinyobjectz daa81ca944 TL7m: footage cut out by what is brushed over it (CapCut's Custom cutout): strokes on the picture, Vision's subject instances under them followed through the clip; Not yet is Retouch; 48 browser tests 2026-11-14 03:05:22 -08:00
shinyobjectz 03e3b77578 TL7l: footage cut out (CapCut's Auto cutout): Apple's Vision mattes each frame on the host, the player wears them over the clip's own mask; Not yet is brushed cutout and Retouch; 47 browser tests 2026-11-14 02:44:39 -08:00
shinyobjectz c486a7fe16 TL7k: footage held steady (CapCut's Stabilize), filed and marked built (raea-feed PR #19 d440e5e: the clip's shake read by the host from its own file, host/shake.ts phase correlation over a grid of blocks, the path smoothed by its level, each frame's move and one zoom kept under media/stabilise and worn by the player under the clip's placement). The inspector's Not yet is now auto and brushed cutout, and Retouch; 46 Chrome tests, 44 of 46 in the window 2026-11-14 02:22:24 -08:00
shinyobjectz 78cb452725 TL8d: a sound's noise reduced and its voice changed, filed and marked built (raea-feed PR #19 183c005: a copy of the clip's own sound made on the host by host/dsp.ts, kept under media/voice, which the clip plays; both off, its own again). The inspector's Not yet is now stabilise, auto and brushed cutout, and Retouch; 45 Chrome tests, 43 of 45 in the window 2026-11-14 02:02:20 -08:00
shinyobjectz 29a3763ecf TL7j: a text's words read aloud, filed and built in raea-feed PR #19 (raea gen speech on the host, kept by the words' hash, a sound clip from the text's start) 2026-11-14 01:39:32 -08:00
shinyobjectz e4a0552663 TL7i: a mask's handles dragged on the picture, filed and built in raea-feed PR #19; a file from Media over the film takes its own vignette (TL7g) and its key's colour from its own file (TL7h) 2026-11-14 01:27:15 -08:00
shinyobjectz 08c70a8318 TL7h: the key's colour picked from the picture, filed and built in raea-feed PR #19 (read by the host from the clip's file, since raea's window has no canvas to read); TL7g's built entry and its Send line corrected 2026-11-14 01:16:21 -08:00
shinyobjectz d3762acbf1 TL7g: FilterStep's tag and attrs described, the manual regenerated with them 2026-11-14 01:00:22 -08:00
shinyobjectz d0e99b0d46 TL7g: skills pin to raea-skills #70 (9739d8d), the raea/editor exports line naming the Adjust and key exports (ADJUSTS, ADJUST_PROPS, KEY_NAMES, KEYABLE, adjustOf, adjustLook, propsAt and the rest) 2026-11-14 00:59:08 -08:00
shinyobjectz 494b395442 TL7g: a clip's own Adjust in the timeline. sdk/timeline adjust.ts: a clip's Adjust as its props (adjustBrightness..adjustGrain, 0 as shot; ADJUST_PROPS), read as the kinds not 0 (adjustOf), written whole (adjustProps), its errors, and the preview's look (adjustLook: the filter's id and steps, the vignette's background). read.ts: a sequence's <Nudge adjust> read back as the clip's props and written by the set edit with the rest of its placement; each kind keyed as adjust.<kind>. The app (raea-feed PR #19 8cab9ce): the row's adjust panel of twelve sliders, keyed, with reset; the picture wearing it as one filter after the key and a vignette layer; the host reading and writing <Nudge adjust>; Send saying it. Tests: 106 timeline SDK; 40 browser tests in Chrome, 38 of 40 in raea's window, two skipping themselves; the manual regenerated; the inspector bullet's Not yet without Adjust 2026-11-14 00:48:11 -08:00
shinyobjectz fa884594a6 TL5a, TL7g: a mask's, a key's and a crop's numbers keyed, and a part's own Adjust in the SDK. sdk/video nudge.tsx: <Nudge keys> takes dotted names (NUDGE_KEYED: mask.x..mask.round, chroma.strength, chroma.shadow, crop.left..crop.bottom, adjust.<kind>), each set into its still mask, key or crop (a mask or key it keys must be given; an adjustment starts as shot), a curve that overshoots held inside the value's range. sdk/video adjust.ts: CapCut's Adjust (brightness, contrast, saturation, exposure, sharpen, highlights, shadows, temperature, tint, fade, vignette, grain) as one SVG filter (a tone table, saturate and a warmth matrix, a 3x3 sharpen, a fractal noise added about its middle, its seed the frame) and a vignette layer; <Nudge adjust> draws them after its chroma key. A probe in raea and in Chrome: tone, colour, sharpen and vignette within 0.4% RMSE, grain the same strength (sd 0.0307 against 0.0308), its noise pattern raea's own. sdk/timeline: KEY_NAMES and KEYABLE (a clip's prop to its <Nudge keys> name, maskFeather to mask.feather), read back and written by them; propsAt, a clip's props at a frame with its keyed ones there. Tests: 25 Nudge keys and cutout, 12 adjust conformance, 99 timeline SDK; the counts (39 browser tests in Chrome, 37 of 39 in raea's window, raea-feed PR #19 e2d005b); the manual regenerated 2026-11-14 00:37:58 -08:00
shinyobjectz 5b93a70f70 TL7f: the timeline's mask, blend and key in the app (raea-feed PR #19, 4af65e9: a slider of its own track, since raea's window doesn't move a range input), the counts (38 browser tests in Chrome; 36 of the 38 in raea's window, two skipping themselves), maskStyle's prefixed properties set first so Chrome's standard mask-composite wins, and the skills pin to raea-skills #69 (6eb2cf3), the raea/editor reference naming the cutout exports 2026-11-14 00:22:23 -08:00
shinyobjectz a36df13992 TL7f: a part's mask, blend and chroma key, CapCut's Mask, Basic's Blend and Cutout's Chroma key. sdk/video cutout.ts: a mask is an SVG mask image laid over the frame (line, mirror, circle, rect, heart, star; turned, feathered by a blur no larger than the frame and its reach, inverted by excluding it from a solid layer), a blend is CSS's mix-blend-mode (CapCut's modes CSS has, Add as plus-lighter, then difference and exclusion), a chroma key an SVG filter whose colour matrix makes the key's hue transparent (strength, and shadow letting the screen's darker parts through half seen). <Nudge mask blend chroma> draws them; a masked part is placed in a full-frame layer so the mask moves with it. raea's renderer draws all three as Chrome does (a probe of a keyed green panel, a feathered heart, an inverted turned star and a screen blend; an SVG <mask> for inverting overran Vello's buffers, so it is mask-composite). sdk/timeline cutout.ts: a clip's cutout as props (mask, maskX..maskInvert, blend, keyColor, keyStrength, keyShadow), taken off by their plain values, the preview's look (cutoutLook) and its errors; a sequence's <Nudge> read back with them and written whole by the nudge edit. 18 conformance tests, 97 SDK tests; the manual regenerated 2026-11-13 23:52:40 -08:00
shinyobjectz 1190ab6953 TL7e: skills pin to raea-skills #68 (1d6530e), the raea/editor exports line naming COMBOS and COMBO_KINDS 2026-11-13 23:38:52 -08:00
shinyobjectz 5ab9285ed3 FT3e: a session started outside raea opens as a chat in raea (FT3e), and its bubble says who is on what, folded until opened (FT3f), filed with their status: built for 0.1.4 in raea-feed #25, stacked on #24, neither merged 2026-11-13 23:38:12 -08:00
shinyobjectz 3185fa5adb TL7e: the timeline's counts after Combo: 37 browser tests in Chrome, all passing; in a headless raea window 35 pass and the voice test and TL10d skip themselves there with their reasons 2026-11-13 23:07:40 -08:00
shinyobjectz 9f553d6ecc TL7e: a clip's Combo animation, CapCut's third kind. sdk/video edges.ts gains COMBOS, seven waves (pulse, sway, float, shake, swing, spin, flicker), each a property's values over one cycle eased between, comboStyle and joinStyles; <Transition combo={{ kind, frames }}> moves the part throughout with its in and out. sdk/timeline: Clip.combo { kind, length } (a cycle's frames: the clip's length plays it once, fewer loop it), the set op's combo, animStyle drawing it from the palette's combos, a plugin's Combos as data (timeline.combos, checked), and a composition's <Transition combo> as an edge op with side combo, read back. fromSequences now reads a sequence's in and out that no cut's transition takes as the clip's own In and Out (TL7d), so they survive the host's re-read. 90 SDK tests, 5 Transition conformance tests; the manual regenerated 2026-11-13 23:03:35 -08:00
shinyobjectz acb4aa404d TL14b: a sound's own tracks (fromTracks, clipEdits) move from sdk/timeline read.ts to sounds.ts, which keeps read.ts under its 500 lines 2026-11-13 22:49:40 -08:00
shinyobjectz 26d094c341 TL7d: skills pin to raea-skills c98c9d6 (PR 67: reference/sdk.md lists raea/editor's animStyle) 2026-11-13 22:47:46 -08:00
shinyobjectz 773047de9e TL7d: the scenario (a clip's own In and Out, CapCut's Animation tab; Combo not built) and its status; the timeline's counts: 36 in Chrome, 33 of 35 in raea's window, the two left Chrome's alone 2026-11-13 22:47:15 -08:00
shinyobjectz 4a8ad49d60 TL7d: the manual's raea/editor page lists animStyle, Anim, EdgeStyle and a clip's enter and exit 2026-11-13 22:46:14 -08:00
shinyobjectz a393b366ac TL7d: a clip's own In and Out animations (CapCut's Animation tab): Clip.enter and Clip.exit (a kind and its frames), set and taken off by the set operation, never longer than the clip, each kept by its own half when split; in a composition the sequence's <Transition> edge. sdk/video edges.ts holds the kinds and their styles with no React (transitionAt, transitionStyle, edgesStyle), which <Transition> now draws from and sdk/timeline's animStyle previews a film's clip by; CODE_KINDS is its TRANSITION_KINDS. Four tests 2026-11-13 22:45:58 -08:00
shinyobjectz dc148cd3f7 TL7c: the manual's raea/editor page lists captionLines, heard, Said and LineRules (each Said field documented) 2026-11-13 22:36:31 -08:00
shinyobjectz 48c027313d TL7c: skills pin to raea-skills 4f55842 (PR 66: reference/sdk.md lists raea/timeline's captionLines and heard) 2026-11-13 22:35:16 -08:00
shinyobjectz b41c609a02 TL7c: captions made from what is said (CapCut's auto captions): sdk/timeline captions.ts heard() says a film's transcript where the edited cut plays it, captionLines() gathers the words into lines (a sentence's end, a 0.6 s pause, seven words or 42 characters), and the captions operation puts them as caption-style text clips on a Captions track of their own, one edit, undone whole; in a composition each line is a sequence of words (seqEdits). Five tests 2026-11-13 22:32:03 -08:00
shinyobjectz 90975148a0 TL1c, TL2f: the timeline's counts after the window runner's fixes: 34 in Chrome, 31 of 33 in raea's window (the two left Chrome's alone); its keys follow the pointer, since the window matches no :hover for a script 2026-11-13 22:22:34 -08:00
shinyobjectz e658ea89ea TL3j: the project's media added at the playhead, as CapCut's media panel adds it
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.
2026-11-13 21:24:59 -08:00
shinyobjectz 3fc0c43af0 TL4c: status (a clip's own sound taken out with Cmd+Shift+S: sdk/timeline's extract, landed in 173e39711; the host's edit and the film's playback in raea-feed PR #19), and the browser test counts: 28 in Chrome, 22 of 27 in a headless raea window 2026-11-13 21:02:37 -08:00
shinyobjectz 173e397113 TL4c: footage's own sound taken out onto a sound track (Cmd+Shift+S in CapCut). sdk/timeline gains the extract operation: a sound clip over the same span, from the same place in the file at the same speed, curve, direction, level and fades (props.of names the footage it came from), the footage marked muted with its level and fades moved to the sound; refused for sound, words, stills and footage already taken out. A clip's muted is read from a muted <Video> (SeqRow.muted), and seqEdits turns the operation into the host's extract edit (the <Video> muted, an <Audio> of its file in a new sequence from at for frames); a sequence holding footage is pointed at its <Video>. The frame cache's look says muted only when set, so kept ranges' keys are unchanged. Reference page regenerated (Clip.muted, SeqRow.muted). Tests: four for the operation and its inverse, one for the composition's edit and its reading back (75 pass) 2026-11-13 20:55:02 -08:00
shinyobjectz 17fa0e5f31 TL10e: status (built in raea-feed PR #19: drafts and a scene's ranges in the proxy store under its one limit, shown and cleared in Settings, a discarded version's frames gone at once) 2026-11-13 20:39:20 -08:00
shinyobjectz 8df1c72a44 TL5c, TL9c, TL10d: status (built in raea-feed PR #19)
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.
2026-11-13 20:24:03 -08:00
shinyobjectz e3f4c6980e skills pin: raea-skills #65 (the SDK reference follows export *) 2026-11-13 20:01:36 -08:00
shinyobjectz 7ed8faa7a6 TL11b: done (raea/editor, its reference page and example, the skills' SDK reference and the footage guide) 2026-11-13 20:01:21 -08:00
shinyobjectz 283b1ffb87 skills: the SDK reference follows export * (raea/editor, raea/audio, raea/3d and the rest were missing names)
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.
2026-11-13 20:00:08 -08:00
shinyobjectz e060c09fe2 skills pin: raea-skills #64 (raea/editor in the footage guide) 2026-11-13 19:56:45 -08:00
shinyobjectz 9a93709831 TL11b: raea/editor taught in the footage guide (a composition recut as data: fromRender, applyAll, segmentsOf, and what segments can't say), its page's summary and intro written for a reader 2026-11-13 19:54:20 -08:00
shinyobjectz ca0a14e04c TL11b: mesh.md and sprite.md regenerated (a prop's row moves: raea/editor in the program changes the order the checker lists them in) 2026-11-13 19:53:11 -08:00
shinyobjectz 8fefa2922d TL11b: the timeline SDK as raea/editor, with its reference page. sdk/raea/src/editor.ts re-exports @raea/timeline (raea/timeline was already the Sequence module's), now in sdk/tsconfig.base.json so a bundle copies it; its import of the effect table is @raea/video/effects (a relative path across packages didn't survive a bundle). Every field of its types has a doc comment (85 had none), and docs/manual/examples/edits.tsx builds a timeline, splits it, keys a fade, speeds a half up with the magnet closing the gap, and undoes it all from the inverses 2026-11-13 19:51:33 -08:00
shinyobjectz 96f7e64580 PF4, TL13a notes: the draft scale pays where the GPU does the work (the light sample room's two-range redraw 9.4 s to 8.9 s, a ray-traced shot 1.7 times); the window's 400-clip drag can't be helped by drawing only what is in view, since all 400 are on screen at the timeline's opening fit 2026-11-13 19:42:45 -08:00
shinyobjectz d79c0b8cef timeline spec: 19 of the 21 window-runnable tests pass in a headless raea window, a plugin's snap grid among them 2026-11-13 19:36:59 -08:00
shinyobjectz 81cf2e0386 timeline spec: a snap to a plugin's grid is under a browser test (and each e2e run starts with no plugins installed); drafts and a scene's kept frames drawn at a draft scale 2026-11-13 19:34:01 -08:00
shinyobjectz eed69c7bb2 PF4: a draft drawn at a fraction of its size, laid out at its own. <Composition edit={{ scale }}> registers the smaller size and draws the composition in a box laid out at its width and height (useVideoConfig still says them), scaled down, so a 3D view, whole-frame or in a page element's box, traces fewer pixels and a 2D layout in px keeps every place. The same 61-frame ray-traced 1080p shot warm: 2.75 s at full size, 1.6 to 1.7 s at 0.5. The app's drafts and a scene's kept frames write it in their throwaway source; what ships is never scaled. Registry tests: the smaller size, the declared size inside, scale 1 unchanged, out of range refused 2026-11-13 19:27:08 -08:00
shinyobjectz 271376b898 timeline spec: a plugin's additions seen with a plugin installed, and the drafts' size and clear 2026-11-13 18:46:41 -08:00
shinyobjectz e31056b6ad TL11a, TL13: a plugin's tools and snap grids as data in the timeline SDK; the window's drag told apart (a hit test a step, now gone: 27 to 36 frames a second) and what is left 2026-11-13 18:38:29 -08:00
shinyobjectz 0b7a4203b8 TL13: the timeline measured in a headless raea window: a pick 45 to 59 ms, a split 59 to 64 ms, a drag 27 to 31 frames a second with 400 clips (56 with 48), and what that is and isn't 2026-11-13 18:29:44 -08:00
shinyobjectz 95725896a2 TL7c, TL11a: text styles as data in the timeline SDK (raea's four, a plugin's checked), carried by the writer; the spec's status with the 3D scene's frame store seen through an edit in a raea window 2026-11-13 18:21:37 -08:00
shinyobjectz b476ebb82b Specs: the timeline's tests in a headless raea window (16 of 19), and PF4's finding for drafts (a render can't draw a composition smaller than it says: a draft scale is the next lever) 2026-11-13 18:09:57 -08:00
shinyobjectz fd3a75ce72 skills pin: raea-skills #63 (Effect parts in the footage guide and reference/sdk.md) 2026-11-13 17:59:26 -08:00
shinyobjectz f14232a52e TL11a: a plugin's effects as data: <Effect parts> draws an effect from CSS filter functions (amount 0 to amount 1), the timeline's palette reads them from a plugin's manifest (timeline.effects) and its writer carries them to the composition 2026-11-13 17:58:39 -08:00
shinyobjectz 43cc233f99 TL13: the timeline's first measurements (400 clips on 12 tracks, in Chrome): a pick in 9 to 13 ms, a split in 24 to 27 ms, a drag at 63 to 65 frames a second 2026-11-13 17:51:54 -08:00
shinyobjectz 31f7961287 timeline spec: the status as it stands (copy and paste, an item's own timeline, a sequence's placement and a split under a speed curve are built) 2026-11-13 17:48:07 -08:00
shinyobjectz 1918b36f9e TL3h: a composition's sequence mirrored and cropped: <Nudge mirror crop>, and the timeline's writer for a sequence's still placement (its <Nudge>'s props as they now stand) 2026-11-13 17:43:53 -08:00
shinyobjectz 387f91017c TL8c: in progress: a recording made at the timeline is written as a sequence holding an <Audio> of its file (sdk/timeline's writer); the spec's status as it stands: effects, text, voice, mirror, rotate, crop and the 3D scene's frame store built in raea-feed 2026-11-13 17:40:33 -08:00
shinyobjectz d8b51396fa skills pin: raea-skills #62 (Effect in the footage guide and reference/sdk.md) 2026-11-13 17:30:09 -08:00
shinyobjectz 0a7c064b05 TL7b: in progress: an effect as a clip: <Effect kind amount in out> filters the picture under it for its sequence's frames (blur, mono, sepia, vivid, faded, contrast, bright, dark, invert, hue), one table for the engine and the timeline's preview; the timeline reads a sequence holding one as an effect clip and writes one added 2026-11-13 17:27:57 -08:00
shinyobjectz 3620aa1def TL7c: in progress: a composition's sequence of words is a text clip (renamed, its words change; words added are a new sequence), in the timeline's reader and writer 2026-11-13 17:24:02 -08:00
shinyobjectz b938833097 skills pin: raea-skills #61 (speedCurve in the footage guide and reference/sdk.md) 2026-11-13 17:08:31 -08:00
shinyobjectz 75c3b18c22 footage guide: speedCurve for a speed ramp, and speedLength for its Sequence 2026-11-13 17:07:13 -08:00
shinyobjectz 01076723f4 TL6b: a speed curve on a composition's footage: a <Video>'s or an <Audio>'s speedCurve ([place, speed] points over startFrom to endAt, speedLength the frames it takes), its sound carried through the changing rate as one voice (raea-sys-mix Ev::Rate), and the timeline's reader and writer for a sequence's curve 2026-11-13 17:03:07 -08:00
shinyobjectz bd670d9040 TL3h: in progress: a freeze frame and footage played backward (sdk/timeline)
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.
2026-11-13 16:54:15 -08:00
shinyobjectz 5c7dac41c2 docs/manual/whats-new/0.1.3.md: raea 0.1.3's notes as the manual's What's new page (published 2026-11-14 00:15 UTC, promoted from v0.1.3-rc7 at f2d0e0335); raea.io serves it since the 0.1.3 site deploy 2026-11-13 16:40:47 -08:00
shinyobjectz f732061d9d TL11a: in progress: a plugin adds kinds of track (sdk/timeline registry.ts): its head's title and whether it stacks over the picture or under it with the sound; raea's five are listed the same way and can't be taken; 60 tests 2026-11-13 16:38:27 -08:00
shinyobjectz d7e3d8b2b2 TL7c: in progress: a film's captions are clips on a text track over its scenes (sdk/timeline fromRender): each line its words and its span, one line at a time, moved and removed with the scene it sits on; 60 tests 2026-11-13 16:36:10 -08:00
shinyobjectz c4d3900d68 TL0d: in progress: a timeline an item declares is read and checked (sdk/timeline readTimeline): tracks of clips over an item's own data, made whole (whole frames, a kind for each track), with why for what isn't well formed; 59 tests 2026-11-13 16:27:10 -08:00
shinyobjectz f130f35870 TL0: in progress: docs/timeline.feature's status after the day: what is built, what is a code edit, what plays live, what is only decided, what isn't built 2026-11-13 16:25:02 -08:00
shinyobjectz 2b7574de39 TL0c, TL8a: in progress: a composition's <Video> and <Audio> are clips of their own (sdk/timeline read.ts)
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.
2026-11-13 16:22:39 -08:00
shinyobjectz bbd658263e PF6, PF8: the 0.1.4 spec with a scene's frame rate while orbiting (57 to 58 a second on the sample room), the Source view's first visit as it really is (0.59 s, 0.29 s with raea-feed #17; the 2.4 to 3.8 s before was the measuring script), the host's project lookup (raea-feed #16) and library posters (raea-feed #15) 2026-11-13 16:18:33 -08:00
shinyobjectz 91731fab14 TL7a: in progress: Transition classed in the taxonomy as raea's own (the video timeline) 2026-11-13 16:10:14 -08:00
shinyobjectz f36ffb903f TL7a: in progress: skills pinned at raea-skills #60 (reference/sdk.md has Transition) 2026-11-13 16:09:03 -08:00
shinyobjectz 0173108f72 TL7a: in progress: <Transition> brings a part in and takes it out, and a transition on a cut is that code
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>.
2026-11-13 16:05:51 -08:00
shinyobjectz bb4402e45a Fingerprint's frozen encoders are named the Edit Embedding Zoo (Shane, 11-13: the standard name in the docs, the app and what we publish): SigLIP 2, CLAP, YAMNet, EmbeddingGemma 2 and Depth Anything 3, pinned, on-device and the same for every fingerprint; a fingerprint is what a person trains over it. docs/fingerprint.md says so under What a fingerprint is, and the manual's Fingerprint page names it, with Depth Anything 3 added to its list 2026-11-13 15:42:55 -08:00
shinyobjectz 661adee396 TL3g: in progress: compound clips in sdk/timeline: the picked clips made one clip that holds them (each with the kind of track it came from), moved and trimmed as one, and put back where the compound is; 55 tests 2026-11-13 15:34:24 -08:00
shinyobjectz 73c5c93e9b TL6a: in progress: a speed on a sequence is the host's edit to the footage it holds (sdk/timeline read.ts: a row's speed, the speed edit; another field is refused with why); 53 tests 2026-11-13 15:30:25 -08:00
shinyobjectz 2427d7c9ee TL0: in progress: docs/timeline.feature says what is built, decided and not built after the first day 2026-11-13 15:25:54 -08:00
shinyobjectz e3b048e2d9 TL4c: in progress: a film's scene is its picture and its sound together (fromRender has no separate sound clip), so a cut, a move or a speed takes both, as the player plays them from the one file; 53 tests 2026-11-13 15:23:04 -08:00
shinyobjectz 08f6f621d2 TL10a: in progress: an edited film plays from its own frames (sdk/timeline play.ts)
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.
2026-11-13 15:20:49 -08:00
shinyobjectz 7caf1bb596 TL14b: in progress: a sound's tracks as a timeline, and its clip edits (sdk/timeline read.ts)
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.
2026-11-13 15:17:16 -08:00
shinyobjectz 43bfbad61f TL11a: in progress: what the timeline offers by name, and what a plugin adds (sdk/timeline registry.ts)
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.
2026-11-13 15:13:22 -08:00
shinyobjectz beb4ce1200 TL5d: in progress: the SDK reference page with <Nudge>'s keys prop 2026-11-13 15:09:06 -08:00
shinyobjectz 7bfa7f392c TL5d: in progress: <Nudge keys> plays a placed part's properties over time, and a key on a sequence is that edit
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.
2026-11-13 15:07:42 -08:00
shinyobjectz 47cf338cd6 TL10: in progress: what the frame store decides, in sdk/timeline cache.ts
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.
2026-11-13 14:52:34 -08:00
shinyobjectz b2a52f6cc1 TL6b: in progress: a clip under a speed curve keeps how many source frames it shows, so the curve taken off gives its exact length back (every preset, tested); a trimmed or split curve clip keeps its share 2026-11-13 14:47:44 -08:00
shinyobjectz c78ded29e8 TL4a: in progress: a dragged main-track clip swaps by the edge it leads with (past its neighbour's middle), as CapCut's does; 37 tests 2026-11-13 14:36:12 -08:00
shinyobjectz 1c3cb953bd TL0c: in progress: a timeline read from a composition's sequences or a film's scenes (sdk/timeline read.ts); seqEdits maps move, trim, split and remove to the host's sequence edits; a move past the film's first frame stops there; 37 tests 2026-11-13 14:29:37 -08:00
shinyobjectz 53a5cc9ca7 TL0: in progress: sdk/timeline, the timeline's model and every edit as an operation
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.
2026-11-13 14:29:37 -08:00
shinyobjectz 3b670e79a5 TL0: the timeline SDK for 0.1.5 filed as scenarios (CapCut's timeline on the composition, edits sent to the agent, keys and curves, the frame store, TL0 to TL14) 2026-11-13 14:29:37 -08:00
shinyobjectz 530ff8e3de A ray-traced mesh gets MikkTSpace tangents only when its material has a normal map
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).
2026-11-13 14:29:33 -08:00
3620 changed files with 672511 additions and 13924 deletions

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
# vendor/bevy_pbr's shaders keep LF on every checkout. raea replaces some of them with its own forks only after checking
# Bevy's is still the one the fork was taken from, by its bytes' hash (raea_sys_frame::bevy_api::swap_embedded_shader),
# and a Windows checkout turns LF into CRLF: 0.1.9-rc1's Windows build panicked on volumetric_fog.wesl at its first render
vendor/bevy_pbr/**/*.wesl text eol=lf
vendor/bevy_pbr/**/*.wgsl text eol=lf
+54
View File
@@ -0,0 +1,54 @@
name: Bug report
description: Something raea did wrong, with a way to see it happen.
body:
- type: markdown
attributes:
value: |
For a security problem, use the Security tab, not a public issue. Leave out keys and anything private.
- type: input
id: version
attributes:
label: Version
description: What `raea --version` prints, or the app's version from its About screen.
validations:
required: true
- type: dropdown
id: where
attributes:
label: Where
options:
- raea CLI (render, play, check, media, ...)
- SDK (TypeScript, React)
- raea app (desktop)
- Install or update
- Not sure
validations:
required: true
- type: input
id: machine
attributes:
label: Machine
description: OS and version, CPU, and for a picture problem the GPU.
placeholder: macOS 27.2, Apple Silicon
validations:
required: true
- type: textarea
id: ran
attributes:
label: What you ran
description: The command, and the smallest composition that shows it (paste the TSX).
validations:
required: true
- type: textarea
id: happened
attributes:
label: What happened
description: The output as printed. For a picture or sound problem, the frame or time and a screenshot.
validations:
required: true
- type: textarea
id: expected
attributes:
label: What you expected
validations:
required: true
+8
View File
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Security problem
url: https://github.com/shinyobjectz/raea/security/advisories/new
about: Report it privately, not in an issue.
- name: Documentation
url: https://raea.io/docs
about: The CLI and SDK reference and the guides.
@@ -0,0 +1,23 @@
name: Feature request
description: Something you want to make that raea can't do yet, or makes hard.
body:
- type: textarea
id: making
attributes:
label: What you're trying to make
validations:
required: true
- type: textarea
id: today
attributes:
label: What you do today
description: The command, SDK part or app screen you use now, and where it falls short.
validations:
required: true
- type: textarea
id: want
attributes:
label: What you'd like
description: An example of how you'd use it helps most.
validations:
required: true
+11
View File
@@ -0,0 +1,11 @@
## What changes
<!-- What triggered it, what raea did before, and what it does now. Link the issue. -->
## How it was checked
<!-- The commands you ran and what they printed. For a picture or sound change: the composition, the frame, your OS and GPU. -->
## What wasn't checked
<!-- Platforms or paths you couldn't try, and anything a reviewer should look at closely. -->
+21 -1
View File
@@ -68,6 +68,9 @@ jobs:
run: bash tools/layers.sh
- name: names
run: bash tools/names.sh
- name: legacy names
# nothing names what raea's one loop replaced (docs/goal.feature MK41)
run: bash tools/legacy-names.sh
- name: size
run: bash tools/size.sh
- name: one-version
@@ -118,4 +121,21 @@ jobs:
# debug info off: with it the test binaries of the app crates filled 27 GB of a runner's disk (#90)
env:
CARGO_PROFILE_TEST_DEBUG: "0"
run: cargo test --locked -p raea-io-media -p raea-core-fonts -p raea-native -p raea-core-brief -p raea-core-k -p raea-bundle -p raea-app-check -p raea-app-check-flash -p raea-io-ffmpeg -p raea-app-workspace -p raea-app-tools -p raea-app-targets
# raea-bundle in a call of its own: Rolldown's crates turn on serde_json's arbitrary_precision, features unify
# across one cargo call, and with it on an untagged enum can't read a number (raea-core-brief's make dials failed
# here from 11-23 while passing alone). raea itself never links Rolldown: it loads it as a library at run time
run: |
cargo test --locked -p raea-runtime-plugins -p raea-io-media -p raea-core-fonts -p raea-native -p raea-core-brief -p raea-core-k -p raea-app-check -p raea-app-check-flash -p raea-io-ffmpeg -p raea-app-workspace -p raea-app-tools -p raea-app-targets
cargo test --locked -p raea-bundle
- name: Windows' and Linux's own (#169)
# what a Windows or Linux user meets that no other step ran: QuickJS's Intl (raea-runtime-jsengine's
# quickjs_formats_as_javascriptcore_does, on Linux), openh264 at --quality master (raea-io-soft), git found or
# fetched (raea-io-assets), and raea's Node core under the agent shell (raea-native's tests/node.rs: Node's names
# for the system, Windows' paths); tests/node.rs needs raea-native's modules feature and tests/quality.rs
# raea-io-soft's h264
env:
CARGO_PROFILE_TEST_DEBUG: "0"
run: |
cargo test --locked -p raea-native --features modules --test node
cargo test --locked -p raea-io-soft --features h264
cargo test --locked -p raea-runtime-jsengine -p raea-io-assets
+61 -8
View File
@@ -2,6 +2,7 @@
# Apple Silicon, Linux on x86_64 and Windows on x86_64 are built from the tag on GitHub's runners, packed by
# tools/release.sh, checked by tools/release-check.sh, attested (anyone can check a download with
# `gh attestation verify raea-VERSION-macos-arm64.tar.gz -R shinyobjectz/raea`) and attached to the tag's release.
# Linux also packages and checks an AppImage from the same verified archive (tools/release-appimage.sh).
# The skills gate reads the feed app, which is private, so it runs in a maintainer's checkout first
# (tools/skills.sh check), and the tag names the commit it passed on; tools/release.sh checks the gate's inputs haven't
# changed since (tools/release/skills-passed.sh):
@@ -181,6 +182,11 @@ jobs:
v=${TAG#v}
if [ "$RUNNER_OS" = Linux ]; then xvfb-run -a -s "-screen 0 1280x1024x24" bash tools/release.sh "$v" ship HEAD
else bash tools/release.sh "$v" ship HEAD; fi
- name: Package and check the Linux AppImage
if: runner.os == 'Linux'
env:
RAEA_CHECK_DIR: ${{ runner.temp }}/appimage-check
run: xvfb-run -a -s "-screen 0 1280x1024x24" bash tools/release-appimage.sh "${TAG#v}" "dist/raea-${TAG#v}-linux-x86_64.tar.gz"
# a failed check's own files (the app check's frames, every step's log), not the unpacked release
- uses: actions/upload-artifact@v4
if: failure()
@@ -189,6 +195,8 @@ jobs:
path: |
${{ runner.temp }}/release-check/app
${{ runner.temp }}/release-check/**/*.log
${{ runner.temp }}/appimage-check/app
${{ runner.temp }}/appimage-check/**/*.log
retention-days: 7
if-no-files-found: ignore
# the stripped binaries' symbols (#88), for symbolicating a crash report from this release; never published
@@ -202,6 +210,10 @@ jobs:
if: ${{ !inputs.dry_run }}
with:
subject-path: dist/raea-*.tar.gz
- uses: actions/attest-build-provenance@v2
if: ${{ runner.os == 'Linux' && !inputs.dry_run }}
with:
subject-path: dist/raea-*.AppImage
- name: Attach to the release
if: ${{ !inputs.dry_run }}
env:
@@ -209,19 +221,28 @@ jobs:
run: |
gh release view "$TAG" >/dev/null 2>&1 || gh release create "$TAG" ${{ contains(env.TAG, '-') && '--prerelease' || '' }} --title "raea ${TAG#v}" --notes "Built by .github/workflows/release.yml; notes follow."
gh release upload "$TAG" dist/raea-*.tar.gz dist/raea-*.tar.gz.sha256 --clobber
if [ "$RUNNER_OS" = Linux ]; then
gh release upload "$TAG" dist/raea-*.AppImage dist/raea-*.AppImage.sha256 --clobber
fi
- uses: actions/upload-artifact@v4
if: ${{ inputs.dry_run }}
with:
name: dry-run-${{ runner.os }}
path: dist/raea-*.tar.gz*
path: |
dist/raea-*.tar.gz*
dist/raea-*.AppImage*
retention-days: 3
compression-level: 0
# Windows in Git's bash on GitHub's runner, with the Visual Studio Build Tools in its image (their image terms; we
# accept no licence and download no Microsoft files). The C runtime is the DLL one (the VC++ redistributable): ort's
# prebuilt ONNX Runtime is built against it, so crt-static doesn't link (LNK2019 on __imp_ symbols, 10-29).
# Windows in Git's bash on GitHub's runner, with Visual Studio in its image. The C runtime is the DLL one: ONNX
# Runtime is built against it (crt-static didn't link: LNK2019 on __imp_ symbols, 10-29), and Microsoft's
# onnxruntime.dll imports it too, so the VC++ runtime's DLLs ship beside raea.exe from this image's Visual Studio
# (tools/release/win-bundle.sh), as Microsoft documents for app-local deployment.
windows:
runs-on: ${{ (vars.RELEASE_WINDOWS_RUNNER && fromJSON(vars.RELEASE_WINDOWS_RUNNER)) || 'windows-latest' }}
# the signing identity's federated credential trusts this repository's environment "signing" and nothing else
# (Azure app raea-release-signing); with no identity set there is no environment, and the zip is unsigned
environment: ${{ vars.AZURE_SIGN_CLIENT_ID != '' && 'signing' || '' }}
timeout-minutes: 350
env:
# the compile cache, as build's
@@ -307,6 +328,13 @@ jobs:
- name: Use the compile cache
if: env.RAEA_PROMOTED_FROM == '' && env.AWS_ACCESS_KEY_ID != ''
run: bash .workflow/tools/release/compile-cache.sh
# openh264-sys2 is built here every time, never taken whole from the cache volume's target/: a build of it whose
# assembly didn't make it into the rlib (0.1.3-rc4's Chocolatey nasm) stays fresh to cargo on a restored target/,
# and every link after it fails on the same 135 SIMD routines (v0.1.4-rc1, 11-14: only raea-cli compiled, then
# WaverageChromaFilter8_sse2 and the rest unresolved). Its C++ comes back from sccache; the assembly is seconds
- name: openh264 built here, not restored
if: env.RAEA_PROMOTED_FROM == ''
run: rm -rf target/dist/build/openh264-sys2-* target/dist/deps/libopenh264_sys2-* target/dist/.fingerprint/openh264-sys2-*
- name: Build
if: env.RAEA_PROMOTED_FROM == ''
run: |
@@ -322,12 +350,20 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: bash tools/release/promoted-bins.sh "$RAEA_PROMOTED_FROM" target/dist
# which DLLs raea needs from the machine (the CRT's come from the VC++ redistributable)
# ONNX Runtime as Microsoft builds it (MIT), beside raea.exe, which loads it when a model first runs (#110): the
# static runtime ort links by default is built for AVX2 and stopped raea.exe at start on CPUs without it
- name: ONNX Runtime (tools/release/onnxruntime.sh)
run: bash tools/release/onnxruntime.sh target/dist
# and what a PC with nothing installed and no downloads needs beside raea.exe: the VC++ runtime (from this
# runner's Visual Studio), FFmpeg (raea's LGPL build) and uv, each with its licence
- name: The Windows bundle (tools/release/win-bundle.sh)
run: bash tools/release/win-bundle.sh target/dist
# which DLLs raea needs from the machine (the CRT's now ship beside it: win-bundle.sh)
- name: What raea.exe imports
run: |
{ echo '### what raea.exe, raea_bundle.dll and raea-perceive.exe import'; echo '```'
{ echo '### what raea.exe, raea_bundle.dll, raea-perceive.exe and onnxruntime.dll import'; echo '```'
dumpbin=$(ls "/c/Program Files/Microsoft Visual Studio"/*/*/VC/Tools/MSVC/*/bin/HostX64/x64/dumpbin.exe | head -1)
"$dumpbin" -nologo -dependents target/dist/raea.exe target/dist/raea_bundle.dll target/dist/raea-perceive.exe | grep -iE '\.dll$|Dump of' | sed 's/^ *//'
"$dumpbin" -nologo -dependents target/dist/raea.exe target/dist/raea_bundle.dll target/dist/raea-perceive.exe target/dist/onnxruntime.dll target/dist/ffmpeg.exe | grep -iE '\.dll$|Dump of' | sed 's/^ *//'
echo '```'; } | tee -a "$GITHUB_STEP_SUMMARY" || true
# release.sh's checks render on Mesa's lavapipe (software Vulkan, MIT; on the runner only, never in the zip): the
# runner has no GPU, and WARP, Windows' own software DX12, crashes compiling one of Bevy's compute shaders there
@@ -336,9 +372,24 @@ jobs:
run: bash tools/release/lavapipe.sh
- name: Where the skills gate passed
run: bash tools/release/skills-passed.sh "$TAG" "${{ inputs.skills_passed }}"
# raea's own Windows programs signed (#221), once the repository has the signing identity: the variables
# AZURE_SIGN_CLIENT_ID, AZURE_SIGN_TENANT_ID and AZURE_SIGN_SUBSCRIPTION_ID name an Azure app whose federated
# credential trusts this workflow and which holds the Artifact Signing Certificate Profile Signer role on the
# account (no secret is stored: the job's own token is exchanged). Without them the zip is unsigned, as before
- name: Sign in to Azure for signing
if: ${{ vars.AZURE_SIGN_CLIENT_ID != '' }}
uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_SIGN_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_SIGN_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SIGN_SUBSCRIPTION_ID }}
- name: jsign (signs raea's programs)
if: ${{ vars.AZURE_SIGN_CLIENT_ID != '' }}
run: choco install jsign -y --no-progress
- name: Pack and check (tools/release.sh)
env:
RAEA_CHECK_DIR: ${{ runner.temp }}/release-check
RAEA_WIN_SIGN: ${{ vars.AZURE_SIGN_CLIENT_ID != '' && '1' || '' }}
run: bash tools/release.sh "${TAG#v}" target/dist HEAD
# live play on Windows (PT20 left it unproven): bevy-ts's play cases, `play --offscreen` with an input script and
# a snapshot's pixels probed, run by the raea just built; check.sh reads the pixels with ImageMagick, which the
@@ -408,6 +459,7 @@ jobs:
lfs: false
sparse-checkout: |
tools/release-check.sh
tools/release/win-bundle.files
tools/release/lavapipe.sh
sparse-checkout-cone-mode: false
path: check
@@ -421,7 +473,8 @@ jobs:
run: |
set -e
v=${TAG#v}
cp check/tools/release-check.sh "$RUNNER_TEMP/"
# and the list of what bin\ must carry, where release-check.sh looks for it (release/ beside it)
cp check/tools/release-check.sh "$RUNNER_TEMP/" && mkdir -p "$RUNNER_TEMP/release" && cp check/tools/release/win-bundle.files "$RUNNER_TEMP/release/"
rm -rf check
cd "$RUNNER_TEMP/zip"
sha256sum -c "raea-$v-windows-x86_64.zip.sha256"
+49
View File
@@ -0,0 +1,49 @@
# FFmpeg for Windows as raea ships it (tools/release/ffmpeg-win.sh): built on Linux with mingw-w64 and published once
# as the prerelease tools-ffmpeg-<version>-lgpl, with FFmpeg's source tarball, its signature and the script, which are
# its complete source (LGPL 2.1 or later). io/assets/src/setup.rs pins the zip by its
# sha256, so a published zip is never replaced: a run whose release already holds one only builds it and says
# whether its own sha256 differs.
name: tools-ffmpeg
on:
workflow_dispatch:
push:
paths: [tools/release/ffmpeg-win.sh, .github/workflows/tools-ffmpeg.yml]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
lfs: false
# the x86_64 cross compiler only, and non-interactive: an install that asks (needrestart, debconf) waits forever.
# The runner's own EC2 mirror has trickled (35 MB in 11 minutes, 11-19), so apt reads Ubuntu's archive first
# and Azure's mirror after it, gives up on a stalled request and retries.
- name: mingw-w64
env:
DEBIAN_FRONTEND: noninteractive
NEEDRESTART_MODE: a
run: |
printf 'http://archive.ubuntu.com/ubuntu/\tpriority:1\nhttp://azure.archive.ubuntu.com/ubuntu/\tpriority:2\n' | sudo tee /etc/apt/apt-mirrors.txt
o="-o Acquire::Retries=5 -o Acquire::http::Timeout=30"
sudo -E apt-get $o update -q
sudo -E apt-get $o install -y -q --no-install-recommends gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 libz-mingw-w64-dev nasm make pkg-config xz-utils zip
timeout-minutes: 25
- name: build
run: bash tools/release/ffmpeg-win.sh out
- name: publish (once)
env:
GH_TOKEN: ${{ github.token }}
run: |
v=$(sed -n 's/^v=//p' tools/release/ffmpeg-win.sh)
tag=tools-ffmpeg-$v-lgpl; zip=ffmpeg-$v-lgpl-win64.zip
if gh release view "$tag" --json assets -q '.assets[].name' 2>/dev/null | grep -qx "$zip"; then
echo "$tag already has $zip (never replaced); this run's: $(cat out/$zip.sha256)"; exit 0
fi
curl -fsSL -o "out/ffmpeg-$v.tar.xz.asc" "https://ffmpeg.org/releases/ffmpeg-$v.tar.xz.asc"
cp tools/release/ffmpeg-win.sh out/
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."
gh release upload "$tag" "out/$zip" "out/$zip.sha256" "out/ffmpeg-$v.tar.xz" "out/ffmpeg-$v.tar.xz.asc" out/libvpx-*.tar.gz out/ffmpeg-win.sh
+34
View File
@@ -0,0 +1,34 @@
# The complete corresponding source of the Git for Windows the Windows app ships (tools/release/git-sources.sh),
# published once as the prerelease tools-git-<tag>-sources, which the app's git\SOURCE.txt names: GPLv2 section 3
# asks whoever distributes Git to make it available, and dugite-native's own repository isn't all of it (Git for
# Windows' MSYS2 runtime, bash, curl and the rest are built from their own source packages). A run whose release
# already holds the archive changes nothing.
name: tools-git-sources
on:
workflow_dispatch:
push:
paths: [tools/release/git-sources.sh, .github/workflows/tools-git-sources.yml]
permissions:
contents: write
jobs:
sources:
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
lfs: false
- name: publish (once)
run: |
t=$(sed -n 's/^tag=//p' tools/release/git-sources.sh)
tag=tools-git-$t-sources; tar=git-for-windows-$t-sources.tar
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."
gh release upload "$tag" "out/$tar" "out/$tar.sha256" out/git-sources.sh
+175
View File
@@ -0,0 +1,175 @@
# raea built natively for Windows on ARM (#82: a Snapdragon X runs the x64 build under emulation, and asked for its
# own). GitHub's windows-11-arm runner builds what release.yml's windows job builds, for aarch64-pc-windows-msvc, runs
# `raea --version`, packs and checks raea-VERSION-windows-arm64.zip with tools/release.sh (RAEA_WIN_ARCH=arm64)
# without drawing (RAEA_CHECK_NO_GPU=1: WARP segfaults in Bevy's compute shaders here as on x64, and Mesa's lavapipe has
# no ARM64 build; a Snapdragon PC is what draws, #82), and on a v* tag attaches it to that
# release. It runs beside release.yml, not in it, so a release never waits on or fails with the ARM64 build; a
# promoted release (release-go.sh) builds it again from the tag. install.ps1 takes it on an ARM64 PC when it's there.
name: windows-arm
on:
workflow_dispatch:
inputs:
ref:
description: "commit, branch or tag to build"
required: false
version:
description: "the version the zip is named for (raea-VERSION-windows-arm64.zip)"
required: false
push:
branches: [windows-arm64]
tags: ["v*"]
permissions:
contents: write
jobs:
build:
runs-on: windows-11-arm
timeout-minutes: 350
env:
# the release builds' compile cache (tools/release/compile-cache.sh), under this OS and architecture's own prefix
RELEASE_CACHE_ENDPOINT: ${{ secrets.RELEASE_CACHE_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.RELEASE_CACHE_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.RELEASE_CACHE_SECRET }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
submodules: true
lfs: false
- name: Toolchain (rust-toolchain.toml's pin)
run: |
if ! command -v rustup >/dev/null; then
curl -fsSL --retry 3 -o "$RUNNER_TEMP/rustup-init.exe" https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe
"$RUNNER_TEMP/rustup-init.exe" -y --default-toolchain none --profile minimal
echo "$USERPROFILE/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$USERPROFILE/.cargo/bin:$PATH"
fi
rustup show active-toolchain || rustup toolchain install
rustc -vV
# ring builds its aarch64 assembly with clang (and only clang) on Windows
- name: clang (ring's assembly)
run: |
if ! command -v clang >/dev/null; then
for d in "/c/Program Files/LLVM/bin" "/c/Program Files/Microsoft Visual Studio"/*/*/VC/Tools/Llvm/ARM64/bin; do
[ -x "$d/clang.exe" ] && { echo "$d" >> "$GITHUB_PATH"; export PATH="$d:$PATH"; break; }
done
fi
command -v clang >/dev/null || { winget install -e --id LLVM.LLVM --accept-source-agreements --accept-package-agreements --silent; echo "/c/Program Files/LLVM/bin" >> "$GITHUB_PATH"; export PATH="/c/Program Files/LLVM/bin:$PATH"; }
clang --version
- name: jq that writes LF
run: |
mkdir -p "$RUNNER_TEMP/jq"
printf '#!/bin/bash\nexec "%s" -b "$@"\n' "$(command -v jq)" > "$RUNNER_TEMP/jq/jq"
chmod +x "$RUNNER_TEMP/jq/jq"
echo "$RUNNER_TEMP/jq" >> "$GITHUB_PATH"
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- name: The runtime's packages
run: for d in sdk/react/js sdk/react/tw; do (cd "$d" && bun install --frozen-lockfile); done
# (an sccache the action can't fetch for ARM64 Windows leaves the build uncached, as compile-cache.sh does)
- name: Compile cache (sccache, as release.yml's)
if: env.AWS_ACCESS_KEY_ID != ''
continue-on-error: true
uses: mozilla-actions/[email protected]
- name: Use the compile cache
if: env.AWS_ACCESS_KEY_ID != ''
run: bash tools/release/compile-cache.sh
- name: Build
run: |
feat=$(bash tools/bevy-plugins.sh features sdk/raea/bench/bevy-plugins)
t() { s=$SECONDS; "$@"; echo "::notice::Windows ARM64 $(( (SECONDS - s) / 60 )) min: ${*:7}"; }
t cargo build --profile dist --locked -p raea-cli --bin raea --no-default-features --features "$feat"
t cargo build --profile dist --locked -p raea-rune-host
t cargo build --profile dist --locked -p raea-page-host --features window
t cargo build --profile dist --locked -p raea-perceive
- name: What raea.exe is and imports
run: |
file target/dist/raea.exe || true
dumpbin=$(ls "/c/Program Files/Microsoft Visual Studio"/*/*/VC/Tools/MSVC/*/bin/Hostarm64/arm64/dumpbin.exe 2>/dev/null | head -1)
[ -n "$dumpbin" ] && "$dumpbin" -nologo -headers -dependents target/dist/raea.exe | grep -iE 'machine|\.dll$' | sed 's/^ *//' | tee -a "$GITHUB_STEP_SUMMARY" || true
target/dist/raea.exe --version | tee -a "$GITHUB_STEP_SUMMARY"
- name: Models (pinned by URL and sha256 in tools/release/models.tsv)
run: |
while IFS=$'\t' read -r path url sha; do
case $path in ''|'#'*) continue ;; esac
mkdir -p "$HOME/.local/share/raea-models/$(dirname "$path")"
curl -fsSL "$url" -o "$HOME/.local/share/raea-models/$path"
echo "$sha $HOME/.local/share/raea-models/$path" | sha256sum -c -
done < <(tr -d '\r' < tools/release/models.tsv)
# bin\ as release.yml's windows job fills it, with the ARM64 runtime, uv and DXC (RAEA_WIN_ARCH=arm64), then the
# zip packed and checked by tools/release.sh as raea-VERSION-windows-arm64.zip. The skills gate is this commit's
# (public raea has no feed app; cli.md is still checked against this build's help); nothing is drawn
- name: Pack and check (tools/release.sh)
env:
RAEA_WIN_ARCH: arm64
RAEA_CHECK_DIR: ${{ runner.temp }}/release-check
RAEA_CHECK_NO_GPU: "1"
run: |
bash tools/release/onnxruntime.sh target/dist
bash tools/release/win-bundle.sh target/dist
v="${{ inputs.version }}"
case $GITHUB_REF in
refs/tags/v*)
v=${v:-${GITHUB_REF_NAME#v}}
# where the skills gate passed, as release.yml reads it (the tag's skills-passed line)
eval "$(GITHUB_ENV= bash tools/release/skills-passed.sh "$GITHUB_REF_NAME" | grep '^RAEA_SKILLS_PASSED=')" ;;
*) RAEA_SKILLS_PASSED=$(git rev-parse HEAD) ;;
esac
export RAEA_SKILLS_PASSED
bash tools/release.sh "${v:-0.0.0-arm64}" target/dist HEAD
# on a v* tag, beside release.yml's archives (the release made here if release.yml hasn't yet)
- name: Attach to the release
if: startsWith(github.ref, 'refs/tags/v')
env:
GH_TOKEN: ${{ github.token }}
run: |
pre=; case $GITHUB_REF_NAME in *-*) pre=--prerelease ;; esac
gh release view "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1 ||
gh release create "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" $pre --title "raea ${GITHUB_REF_NAME#v}" --notes "Built by .github/workflows/release.yml; notes follow." ||
gh release view "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" >/dev/null
gh release upload "$GITHUB_REF_NAME" -R "$GITHUB_REPOSITORY" dist/raea-*-windows-arm64.zip dist/raea-*-windows-arm64.zip.sha256 --clobber
- uses: actions/upload-artifact@v4
if: always()
with:
name: windows-arm64-zip
path: dist/raea-*-windows-arm64.zip*
retention-days: 7
compression-level: 0
if-no-files-found: ignore
- uses: actions/upload-artifact@v4
if: always()
with:
name: windows-arm64-bins
path: |
target/dist/raea.exe
target/dist/raea_bundle.dll
target/dist/raea-rune-host.exe
target/dist/raea-page-host.exe
target/dist/raea-perceive.exe
retention-days: 7
if-no-files-found: ignore
# vendor/metis-sys's header change reaches release.yml's x64 build too (windows-latest's Visual Studio): metis-sys
# alone, in a scratch crate, compiled there
metis-x64:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref || github.sha }}
sparse-checkout: vendor/metis-sys
- name: metis-sys on x64 MSVC
run: |
c="$RUNNER_TEMP/metis-x64"; mkdir -p "$c/src" && : > "$c/src/lib.rs"
printf '[package]\nname = "metis-x64"\nversion = "0.0.0"\nedition = "2021"\n[dependencies]\nmetis-sys = { path = "%s" }\n[workspace]\n' "$(cygpath -m "$GITHUB_WORKSPACE/vendor/metis-sys")" > "$c/Cargo.toml"
cl 2>&1 | head -1 || true
cd "$c" && cargo build
+7 -1
View File
@@ -5,7 +5,10 @@ target/
meaning/bench/temporal/out/*.npz
__pycache__/
# every package's installed dependencies, wherever bun or npm puts them
node_modules/
# a package folder, or a link to one (sdk/blender and sdk/godot link sdk/raea's)
node_modules
# TypeScript's incremental build record
*.tsbuildinfo
engine/media/golden/
# tools/release.sh writes releases here
@@ -101,5 +104,8 @@ sdk/raea/.scratch-*/
# the Tripo CLI writes its last task id into the directory it runs in
.tripo/
# examples/materials/wear: its house is made by make-house.ts (media/) and baked at render time (assets/wear/)
/examples/materials/wear/media/
/examples/materials/wear/assets/
# tools/bevy-parity links each example folder's assets/ to Bevy's checkout at run time (an absolute, per-machine path)
/sdk/raea/bench/bevy-parity/**/assets
+3 -3
View File
@@ -1,11 +1,11 @@
# gitleaks: the default rules, minus raea's asset ledgers, whose "key" field is a content hash of the made file
# (prompt, seed and model), not a credential; and Bevy's batching code, whose `prev_key = item.sort_key.0` is a
# render-phase sort key.
# render-phase sort key and whose `Opaque3dBinKey` and `Wireframe3dBinKey` (vendor/bevy_pbr) are bin keys' type names.
[extend]
useDefault = true
[allowlist]
description = "asset ledgers and Bevy sort keys"
description = "asset ledgers and Bevy sort and bin keys"
paths = ['''(^|/)assets/made\.jsonl$''']
regexTarget = "line"
regexes = ['''prev_key = item\.sort_key''']
regexes = ['''prev_key = item\.sort_key''', '''(bin_key|BinKey) = [A-Za-z0-9]+BinKey\b''']
+55
View File
@@ -0,0 +1,55 @@
# Code of conduct
raea's issues, pull requests, reviews and other project-managed community spaces
should let people discuss and improve the work without harassment. This applies
to maintainers, contributors and people using automated or AI-assisted tools.
Participants remain responsible for the material they submit through those tools.
## Expected behavior
- Discuss the code, evidence and ideas respectfully. Technical disagreement is
welcome; personal attacks and assumptions about another person's motives are not.
- Give actionable feedback, accept corrections and respect requests to stop a
conversation or move it out of a thread.
- Make room for different experience levels, backgrounds and communication styles.
- Respect privacy. Share only logs, screenshots and other information you have
permission to publish, with credentials and personal information removed.
Harassment, discriminatory insults, threats, sexual harassment, unwanted repeated
contact, disclosure of private information, deliberate disruption and retaliation
against someone raising a concern are unacceptable.
## Reporting a concern
For content on GitHub, use the content menu's **Report content** action where it
is available. Choose **Report to repository admins** if GitHub offers it.
Maintainer reporting depends on repository settings and the reporter's access.
For abuse covered by GitHub's rules, use **Report abuse to GitHub Support** or
[GitHub's abuse-reporting route](https://docs.github.com/en/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam).
GitHub handles those reports under its own policies; it is not the project's
appeal body for every technical or moderation disagreement.
A separate private maintainer inbox for conduct reports has not been designated
in this repository. If GitHub's maintainer-reporting option is unavailable, ask
for a private contact without posting the incident, personal information or
accusations in a public issue. Maintainers can document an additional contact
after confirming who will handle it. Use [the security policy](SECURITY.md) for vulnerabilities,
not as a general conduct-report channel.
Include links, the relevant context and your preferred way to be contacted when
reporting privately. Do not retaliate, publicly investigate the reporter or
pressure someone to disclose an incident.
## Moderation
Repository maintainers may clarify expectations, ask participants to change
behavior, close or remove disruptive content, restrict interactions, or block
continued participation as appropriate to severity and repetition. A technical
disagreement or a rejected contribution alone is not misconduct.
Maintainers should consider context and available evidence, protect sensitive
information, explain decisions when doing so does not compromise privacy, and
allow a participant to provide relevant additional context privately through the
same reporting route. A maintainer involved in a concern should seek an uninvolved
reviewer where one is available. This policy does not promise a response deadline
or confidentiality beyond what the chosen reporting service and process provide.
Generated
+1004 -183
View File
File diff suppressed because it is too large. Load diff
+80 -1
View File
@@ -4,11 +4,15 @@
resolver = "2"
members = [
"core/animate",
"core/ask",
"core/brief",
"core/zfight",
"core/modelbox",
"core/facts",
"core/ease",
"core/fonts",
"core/program",
"core/tables",
"core/scene",
"core/shape",
"core/meshcheck",
@@ -27,6 +31,7 @@ members = [
"systems/phase",
"systems/shader/wgsl",
"systems/sampler",
"systems/memtally",
"systems/parity",
"systems/shader",
"systems/three-shader",
@@ -38,11 +43,15 @@ members = [
"engine/bevy-world",
"engine/bundle",
"engine/cli",
"engine/cli/goal",
"engine/cli/refused",
"engine/neural",
"engine/light",
"engine/modules",
"engine/native",
"io/npm",
"engine/page",
"engine/page/ax",
"engine/page/host",
"engine/rune",
"engine/rune/page",
@@ -53,15 +62,18 @@ members = [
"engine/rune/js",
"engine/rune/layer",
"engine/rune/slots",
"engine/page/sound",
"engine/page/stage",
"engine/page/window",
"io/trace",
"io/codec",
"io/media",
"io/assets",
"io/clef",
"io/gen",
"io/gen-comfy",
"io/gen-core",
"io/gen-fit",
"io/home",
"io/soft",
"io/av1",
@@ -77,12 +89,17 @@ members = [
"systems/k",
"systems/tone",
"systems/mix",
"systems/mix/level",
"systems/mix/device",
"systems/ml",
"systems/mlx",
"systems/kimodo",
"systems/speech",
"systems/layout",
"systems/vision",
"systems/columns",
"systems/index",
"systems/fixes",
"systems/fingerprint",
"systems/fingerprint-use",
"systems/fingerprint-things",
@@ -92,33 +109,54 @@ members = [
"systems/a11y",
"systems/bake",
"systems/contact",
"systems/notice",
"systems/motionfaults",
"systems/light-meter",
"systems/measure",
"systems/canvas",
"systems/tweak",
"systems/filters",
"systems/wear",
"systems/weathering",
"systems/runoff",
"systems/touch",
"systems/exposure",
"systems/damage",
"systems/glb",
"systems/procmat",
"systems/page",
"systems/page-net",
"systems/page-ops",
"systems/frame",
"systems/facetrack",
"systems/engine-shaders",
"systems/shots",
"systems/hold",
"systems/body",
"systems/grab",
"systems/layers",
"systems/splat",
"systems/sprite",
"systems/stage",
"systems/rt",
"systems/gi",
"systems/text3d",
"runtime/gpuframe",
"runtime/scene3d",
"systems/copies",
"systems/share",
"systems/screen",
"systems/matchmove",
"systems/grid",
"systems/lod",
"systems/foliage",
"systems/viewbox",
"systems/rendermap",
"systems/meshseq",
"systems/environment",
"systems/look",
"systems/compose",
"systems/material",
"systems/toon",
"systems/mesh",
"systems/post",
"systems/fog",
@@ -134,19 +172,25 @@ members = [
"runtime/view",
"runtime/world",
"runtime/encode",
"runtime/segments",
"runtime/plugins",
"runtime/input",
"tools/perceive",
"engine/render",
"engine/render/raytrace",
"engine/render/plugins",
"engine/render/denoise/bench",
"engine/seedling",
"engine/web",
"runtime/react",
"runtime/track",
"runtime/pagestore",
"runtime/review",
"runtime/cssurls",
"runtime/pid",
"bench/bridge",
"bench/bevy-parity",
"bench/lightbench",
"bench/bridge/swatch",
"bench/rerender/ios",
"core/alloc",
@@ -155,18 +199,34 @@ members = [
"runtime/bundle/lib",
"engine/shape-web",
"runtime/calls",
"runtime/ecs",
"runtime/shots",
"runtime/wear",
"runtime/canvas",
"runtime/export",
"runtime/endchecks",
"runtime/lod-plan",
"runtime/live",
"runtime/page",
"runtime/appscreen",
"runtime/sound",
"runtime/look",
"runtime/scene",
"runtime/kinds",
"runtime/scene2d",
"runtime/shared",
"apps/ask",
"apps/lightbake",
"systems/lightbake",
"systems/atlas",
"apps/double",
"apps/check",
"apps/check/cause",
"apps/check/flash",
"apps/check/inbox",
"apps/check/make",
"apps/check/read",
"apps/check/text",
"apps/direction",
"apps/notes",
"apps/fingerprint",
@@ -175,16 +235,23 @@ members = [
"apps/workspace/registry",
"apps/ci",
"apps/tools",
"apps/motion",
"apps/engines",
"apps/interchange",
"apps/judge",
"apps/make",
"apps/solid",
"apps/scene",
"apps/voice",
"apps/media",
"apps/targets",
"apps/game",
"apps/capcut",
"apps/layers",
"apps/play",
"apps/playable",
"tools/sdk-props",
"tools/hands-audit",
]
exclude = [
"engine/sandbox/rtools",
@@ -291,10 +358,16 @@ split-debuginfo = "packed"
[patch.crates-io]
# the MP4 muxer, vendored
muxide = { path = "vendor/muxide" }
# metis-sys 0.3.2 (bevy_pbr's meshlets) with GKlib's own stdint.h and inttypes.h stand-ins used only before Visual
# Studio 2013: Visual Studio 18's stdint.h types int_fast16_t differently, and every C file failed (raea#82; the change
# is marked "raea:" in vendor/GKlib/gk_arch.h). Its test graphs, manual and programs are left out
metis-sys = { path = "vendor/metis-sys" }
# usvg 0.48.1 spacing a chunk's last letter as Chrome does (changes marked "raea:", docs/layout-reads.feature LR10)
usvg = { path = "vendor/usvg" }
# bevy_seedling 0.8.0 without its cpal 0.18 paths, ported to Bevy 0.20 (changes marked "raea:")
bevy_seedling = { path = "vendor/bevy_seedling" }
# bevy_rich_text3d 0.8.0 whose glyph that grows the atlas is drawn whole (changes marked "raea:", docs/stage-guards.feature SG3)
bevy_rich_text3d = { path = "vendor/bevy_rich_text3d" }
# bevy_text 0.20.0 on parley 0.12, so one parley builds (changes marked "raea:", docs/bevy-upgrade.md)
bevy_text = { path = "vendor/bevy_text" }
# bevy_ui 0.20.0 on Taffy 0.15, Blitz's, so one Taffy builds (changes marked "raea:", docs/bevy-upgrade.md)
@@ -303,6 +376,8 @@ bevy_ui = { path = "vendor/bevy_ui" }
# uv_transform, and a panorama's sun sampled as a light rather than found by reflection rays alone (changes marked
# "raea:", docs/raytracing.feature RT6). Back to upstream once Solari has these.
bevy_solari = { path = "vendor/bevy_solari" }
# the sun's far shadow map (raea-sys-rt far.rs) bound in Bevy's mesh view group (docs/bevy-upgrade.md, docs/realism.feature LT21)
bevy_pbr = { path = "vendor/bevy_pbr" }
# bevy_ui_widgets 0.20.0 on parley 0.12, Blitz's (docs/blitz-bevy.feature B0a)
bevy_ui_widgets = { path = "vendor/bevy_ui_widgets" }
# blitz-paint 0.3.0-beta.4 with angled gradients in tiles laid out around the tile, many-tile gradient layers drawn
@@ -343,6 +418,10 @@ vello_encoding = { path = "vendor/vello_encoding" }
# (changes marked "raea:"): raea-page blends a bevy_ui page as Bevy does (bevy_ui on Blitz). No upstream
# equivalent yet (linebender/vello blends the encoded values).
vello_shaders = { path = "vendor/vello_shaders" }
# taffy 0.15.0 (Blitz's, Bevy UI's, rune-taffy's) with a flex line whose items overflow its container by less than
# Chrome's layout unit, 1/64 px, kept on one line: f32 rounding wrapped items that add up to the container's width
# (changes marked "raea:", raea #252). Back to upstream once Taffy breaks flex lines with a tolerance.
taffy = { path = "vendor/taffy" }
# Firewheel 0.12 on Bevy 0.20: bevy_reflect 0.20 and a glam-33 feature (BillyDM/Firewheel#144; changes marked "raea:")
firewheel = { path = "vendor/firewheel" }
firewheel-core = { path = "vendor/firewheel-core" }
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,25 +0,0 @@
Copyright (c) 2020 Dario Nieuwenhuis
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.
-202
View File
@@ -1,202 +0,0 @@
SPDX-License-Identifier: ISC AND (Apache-2.0 OR ISC)
Apache 2.0 license
-------------------------------------
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
ISC license
-------------------------------------
Copyright Amazon.com, Inc. or its affiliates.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-316
View File
@@ -1,316 +0,0 @@
AWS Libcrypto (AWS-LC)
AWS-LC is a fork of BoringSSL, which is itself a fork of OpenSSL.
Content from these and other sources retains their original licensing,
as described below. New files from AWS-LC are made available under the Apache-2.0 license OR the ISC
license. These licenses are reproduced at the bottom of this file.
```
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 OR ISC
```
================================================================================
BoringSSL
================================================================================
BoringSSL is a Google-maintained fork of OpenSSL. Historically, code
authored by Google for BoringSSL was licensed under the ISC License.
BoringSSL has since relicensed upstream to Apache License 2.0. Existing
AWS-LC code originating from BoringSSL retains its ISC license, while
newer code taken from BoringSSL is licensed under Apache License 2.0.
```
Copyright (c) 2014-2024 Google Inc.
SPDX-License-Identifier: ISC
```
Additional individual contributions to BoringSSL-derived code are
covered under the ISC license:
- Brian Smith (Copyright 2016)
- Robert Nagy (Copyright 2022)
- Arm Ltd (Copyright 2020)
```
Copyright (c) 2025-2026 Google Inc.
SPDX-License-Identifier: Apache-2.0
```
================================================================================
OpenSSL
================================================================================
Code derived from the OpenSSL project is licensed under the
Apache License, Version 2.0.
```
Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
SPDX-License-Identifier: Apache-2.0
```
Some OpenSSL-derived files also carry the original SSLeay copyright:
```
Copyright (c) 1995-1998 Eric Young ([email protected]). All rights reserved.
SPDX-License-Identifier: Apache-2.0
```
Portions of OpenSSL-derived code include contributions from:
- Sun Microsystems, Inc. (Copyright 2002)
- Nokia (Copyright 2005)
- Intel Corporation (Copyright 2012-2021)
These contributions are covered under the Apache-2.0 license.
================================================================================
mlkem-native
================================================================================
Code from the mlkem-native project is licensed under Apache License 2.0 or MIT or ISC.
```
Copyright (c) The mlkem-native project authors.
SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
```
================================================================================
mldsa-native
================================================================================
Code from the mldsa-native project is licensed under Apache License 2.0 or MIT or ISC
```
Copyright (c) The mldsa-native project authors.
SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
```
================================================================================
Third-Party Libraries (compiled into libcrypto/libssl)
================================================================================
Fiat Cryptography
-----------------
Synthesizing Correct-by-Construction Code for Cryptographic Primitives.
See third_party/fiat/LICENSE.
```
Copyright (c) 2015-2020 the fiat-crypto authors.
SPDX-License-Identifier: MIT
```
s2n-bignum
----------
Integer arithmetic routines for cryptography.
See third_party/s2n-bignum/s2n-bignum-imported/LICENSE.
```
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0
```
Note: ML-KEM/SHA3 code within s2n-bignum is licensed as
Apache-2.0 OR ISC OR MIT (with attribution), sourced from the
mlkem-native project.
Jitter Entropy RNG
-------------------
CPU Jitter Random Number Generator Library.
See third_party/jitterentropy/jitterentropy-library/LICENSE.
The Jitter Entropy library is dual-licensed under a BSD-style license
and the GNU General Public License Version 2. Amazon expressly elects
to distribute the package under the 3-Clause BSD License and NOT under
GNU General Public License Version 2.
```
Copyright (C) 2017 - 2025, Stephan Mueller <[email protected]>.
SPDX-License-Identifier: BSD-3-Clause
```
Keccak / AES Reference Implementations
---------------------------------------
Public domain (CC0) contributions.
https://creativecommons.org/public-domain/cc0
Code from sources and by authors listed in comments on top of the respective files.
================================================================================
Third-Party Libraries (NOT compiled into libcrypto/libssl)
================================================================================
The following are used for testing and build tooling only. Distributing
code linked against AWS-LC (libcrypto/libssl) does NOT trigger these
license obligations.
Google Test
-----------
See third_party/googletest/LICENSE.
```
Copyright 2008 Google Inc.
SPDX-License-Identifier: BSD-3-Clause
```
Go Standard Library
-------------------
Code in ssl/test/runner/ is derived from the Go standard library.
```
Copyright (c) The Go Authors. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
```
Wycheproof Test Vectors
------------------------
Project Wycheproof is a community managed repository of test vectors that can be used by cryptography library
developers to test against known attacks, specification inconsistencies, and other various implementation bugs.
See third_party/wycheproof_testvectors/LICENSE.
```
SPDX-License-Identifier: Apache-2.0
```
================================================================================
Full License Texts
================================================================================
Apache License 2.0
------------------
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
ISC License
-----------
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
MIT License
-----------
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.
BSD 3-Clause License
--------------------
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
MIT No Attribution (MIT-0)
--------------------------
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.
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.
-37
View File
@@ -1,37 +0,0 @@
ctt 0.5.0 ships no licence file of its own. Its Cargo.toml declares MIT OR Apache-2.0 OR Zlib, by The ctt developers.
---- Apache-2.0: the text is LICENSES/texts/Apache-2.0.txt ----
---- MIT ----
Copyright (c) The ctt developers
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.
---- Zlib ----
Copyright (c) The ctt developers
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter
it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If
you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not
required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original
software.
3. This notice may not be removed or altered from any source distribution.
@@ -1,178 +0,0 @@
Copyright (C) 2018-2021 Binomial LLC
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
@@ -1,20 +0,0 @@
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.
@@ -1,19 +0,0 @@
Copyright (c) 2024 Advanced Micro Devices, Inc. All rights reserved.
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.
@@ -1,26 +0,0 @@
etcpak, an extremely fast ETC compression utility (https://github.com/wolfpld/etcpak)
Copyright (c) 2013-2026, Bartosz Taudul <wolf@nereid.pl>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,176 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
@@ -1,19 +0,0 @@
Copyright 2017 Intel Corporation
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.
@@ -1,20 +0,0 @@
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 ----
---- MIT ----
Copyright (c) The ctt developers, Traverse Research <[email protected]>, Graham Wihlidal <[email protected]>, Intel Corporation
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.
-201
View File
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-25
View File
@@ -1,25 +0,0 @@
Copyright (c) 2020-2025 The RustCrypto Project Developers
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.
-176
View File
@@ -1,176 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-23
View File
@@ -1,23 +0,0 @@
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.
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 Kirill Kuzminykh
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.
-176
View File
@@ -1,176 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-25
View File
@@ -1,25 +0,0 @@
Copyright (c) 2023 Thomas Pendock
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.
-202
View File
@@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2017 Denis Kurilenko
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.
-201
View File
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-25
View File
@@ -1,25 +0,0 @@
Copyright (c) 2018 Jorge Aparicio
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.
-201
View File
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-25
View File
@@ -1,25 +0,0 @@
Copyright (c) 2017 Jorge Aparicio
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.
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2020 Andrew Straw
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,25 +0,0 @@
Copyright (c) 2020 Andrew D. Straw
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.
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2020 Andrew Straw
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,25 +0,0 @@
Copyright (c) 2020 Andrew D. Straw
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.
@@ -1,37 +0,0 @@
ispc-build-utils 0.5.0 ships no licence file of its own. Its Cargo.toml declares MIT OR Apache-2.0 OR Zlib, by The ctt developers.
---- Apache-2.0: the text is LICENSES/texts/Apache-2.0.txt ----
---- MIT ----
Copyright (c) The ctt developers
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.
---- Zlib ----
Copyright (c) The ctt developers
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter
it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If
you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not
required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original
software.
3. This notice may not be removed or altered from any source distribution.
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2017 Dzmitry Malyshau
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.
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,25 +0,0 @@
Copyright (c) 2019 Anthony James Munns
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.
-12
View File
@@ -1,12 +0,0 @@
Copyrights in the Rand project are retained by their contributors. No
copyright assignment is required to contribute to the Rand project.
For full authorship information, see the version control history.
Except as otherwise noted (below and/or in individual files), Rand is
licensed under the Apache License, Version 2.0 <LICENSE-APACHE> or
<http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT> or <http://opensource.org/licenses/MIT>, at your option.
The Rand project includes code from the Rust project
published under these same licenses.
-201
View File
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
https://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-26
View File
@@ -1,26 +0,0 @@
Copyright 2018 Developers of the Rand project
Copyright (c) 2014 The Rust Project Developers
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.
@@ -1,10 +0,0 @@
Rustls is distributed under the following three licenses:
- Apache License version 2.0.
- MIT license.
- ISC license.
These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC
respectively. You may use this software under the terms of any
of these licenses, at your option.
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,15 +0,0 @@
ISC License (ISC)
Copyright (c) 2016, Joseph Birr-Pixton <[email protected]>
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
@@ -1,25 +0,0 @@
Copyright (c) 2016 Joseph Birr-Pixton <[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.
@@ -1,201 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,20 +0,0 @@
rustls-platform-verifier-android 0.2.0 ships no licence file of its own. Its Cargo.toml declares MIT OR Apache-2.0, by its authors.
---- Apache-2.0: the text is LICENSES/texts/Apache-2.0.txt ----
---- MIT ----
Copyright (c) its authors
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.
-6
View File
@@ -1,6 +0,0 @@
Copyright 2021 Travis Veazey
Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
http://opensource.org/licenses/MIT>, at your option. This file may not be
copied, modified, or distributed except according to those terms.
-202
View File
@@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-25
View File
@@ -1,25 +0,0 @@
Copyright (c) 2016 The Amethyst Project Developers
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.
-21
View File
@@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) 2014 Mathijs van de Nes
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.
-20
View File
@@ -1,20 +0,0 @@
© 2016 Bertram Truong
© 2021 Kornel Lesiński
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.
-28
View File
@@ -1,28 +0,0 @@
BSD 3-Clause License
Copyright (c) 2026, Alexandre Bury
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-28
View File
@@ -1,28 +0,0 @@
BSD 3-Clause License
Copyright (c) 2026, Alexandre Bury
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,28 +0,0 @@
BSD 3-Clause License
Copyright (c) 2026, Alexandre Bury
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,32 +0,0 @@
The auto-generated bindings are under the 3-clause BSD license:
BSD License
For Zstandard software
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Facebook, nor Meta, nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+16 -36
View File
@@ -20,8 +20,22 @@ animato (MIT OR Apache-2.0), usvg and resvg (Apache-2.0 OR MIT), mediabunny (MPL
The Windows build (docs/ports.feature PT20) adds: junction 1.4.2 (MIT, node_modules' links in io/npm) and windows-sys
0.61.2 (Microsoft, MIT OR Apache-2.0, in io/trace); every build has dunce 1.0.5 (CC0-1.0 OR MIT-0 OR Apache-2.0, plain
paths for Windows in runtime/bundle). It ships none of Microsoft's C runtime or SDK files: the runtime comes from the
Microsoft Visual C++ Redistributable, installed on the machine.
paths for Windows in runtime/bundle). Its bin\ also carries, each with its licence beside it (tools/release/win-bundle.sh):
Microsoft's Visual C++ runtime (vcruntime140.dll, vcruntime140_1.dll, msvcp140.dll, msvcp140_1.dll), redistributed
under Microsoft's Visual Studio licence terms; ONNX Runtime's onnxruntime.dll (Microsoft, MIT);
FFmpeg 9.0.2 (ffmpeg.exe, ffprobe.exe; LGPL-2.1-or-later), built from FFmpeg's release with FFmpeg's own code, zlib
and libvpx 1.17.0's decoders (BSD-3-Clause with the WebM project's patent grant: libvpx-LICENSE.txt,
libvpx-PATENTS.txt) by tools/release/ffmpeg-win.sh, its H.264 encoder Windows' own (Media Foundation), its source
published as the release tools-ffmpeg-9.0.2-lgpl;
uv (uv.exe; Astral, MIT OR Apache-2.0);
Microsoft's DirectX Shader Compiler v1.8.2502 (dxcompiler.dll, dxil.dll), DX12's shader compiler, redistributed under
its licence terms (dxc-LICENSE-MS.txt; its LLVM parts under dxc-LICENSE-LLVM.txt and dxc-LICENSE-MIT.txt).
The Windows app adds Git for Windows with Git LFS (dugite-native; GPLv2 and its parts' licences, in git\), which raea
runs as a separate program; its complete corresponding source is published as the release tools-git-<tag>-sources.
raea.exe, on a PC with no Git, fetches the same build once into its tools cache (io/assets git()).
The Windows and Linux builds' JavaScript engine, QuickJS (rquickjs, MIT), carries FormatJS's Intl polyfills (MIT,
Copyright FormatJS) and the Unicode CLDR locale data they're made with (Unicode-3.0), packed in
runtime/jsengine/js/intl.pack; both licences are in runtime/jsengine/js/intl/LICENSE-FormatJS.md and in the pack.
The native target (engine/rune, docs/targets.feature) builds on Rune (https://github.com/anomalyco/rune, Copyright
2026 Anomaly, MIT; LICENSES/rune-0.0.1/repository-LICENSE): rune, rune-kit and their crates, by a pinned rev.
@@ -54,7 +68,6 @@ LICENSES/<crate>-<version>/.
async-recursion 1.2.0: MIT OR Apache-2.0
async-signal 0.2.14: Apache-2.0 OR MIT
atomic-arena 0.1.2: MIT OR Apache-2.0
atomic-polyfill 1.0.3: MIT OR Apache-2.0
atspi-common 0.13.0: Apache-2.0 OR MIT
atspi-proxies 0.13.0: Apache-2.0 OR MIT
atspi 0.29.0: Apache-2.0 OR MIT
@@ -62,8 +75,6 @@ LICENSES/<crate>-<version>/.
avian_derive 0.2.3: MIT OR Apache-2.0
avian2d 0.8.0: MIT OR Apache-2.0
avian3d 0.8.0: MIT OR Apache-2.0
aws-lc-rs 1.18.2: ISC AND (Apache-2.0 OR ISC)
aws-lc-sys 0.46.0: ISC AND (Apache-2.0 OR ISC) AND Apache-2.0 AND MIT AND BSD-3-Clause AND (Apache-2.0 OR ISC OR MIT) AND (Apache-2.0 OR ISC OR MIT-0)
az 1.3.0: MIT/Apache-2.0
basis-universal-sys 0.3.1: MIT OR Apache-2.0
basis-universal 0.3.1: MIT OR Apache-2.0
@@ -155,27 +166,17 @@ LICENSES/<crate>-<version>/.
cssparser 0.37.0: MPL-2.0
csv-core 0.1.13: Unlicense/MIT
csv 1.4.0: Unlicense/MIT
ctt-astcenc 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND Apache-2.0
ctt-bc7enc-rdo-prebuilt 0.5.0: (MIT OR Apache-2.0) AND Apache-2.0
ctt-bc7enc-rdo 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND Apache-2.0
ctt-compressonator 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND MIT
ctt-etcpak 0.5.0: (MIT OR Apache-2.0 OR Zlib) AND BSD-3-Clause
ctt-intel-texture-compressor-prebuilt 0.5.0: (MIT OR Apache-2.0) AND MIT
ctt-intel-texture-compressor 0.5.0: (MIT OR Apache-2.0) AND MIT
ctt 0.5.0: MIT OR Apache-2.0 OR Zlib
dashmap 6.2.1: MIT
default-struct-builder 0.5.1: MIT OR Apache-2.0
deluxe-core 0.5.0: MIT
deluxe-macros 0.5.0: MIT
deluxe 0.5.0: MIT
der_derive 0.8.0: Apache-2.0 OR MIT
der-parser 10.0.0: MIT OR Apache-2.0
deranged 0.5.9: MIT OR Apache-2.0
derive-getters 0.5.0: MIT
deterministic-hash 1.0.2: MIT
disjoint-sets 0.4.2: MIT/Apache-2.0
dot_vox 5.2.0: MIT
dyn-clone 1.0.20: MIT OR Apache-2.0
dyn-eq 0.1.3: MPL-2.0
dyn-hash 1.0.0: MIT OR Apache-2.0
earcut 0.4.5: ISC
@@ -189,16 +190,12 @@ LICENSES/<crate>-<version>/.
enumflags2 0.7.12: MIT OR Apache-2.0
epaint_default_fonts 0.36.2: (MIT OR Apache-2.0) AND OFL-1.1 AND Ubuntu-font-1.0
epaint 0.36.2: MIT OR Apache-2.0
fast_image_resize 6.1.0: MIT OR Apache-2.0
fastbloom 0.17.0: MIT OR Apache-2.0
fastnoise-lite 1.1.1: MIT
fid-rs 0.2.0: MIT OR Apache-2.0
file-id 0.2.3: MIT OR Apache-2.0
fixed 1.31.0: MIT/Apache-2.0
flagset 0.4.7: Apache-2.0
float_next_after 2.0.0: MIT
float-ord 0.3.2: MIT / Apache-2.0
fs_extra 1.3.0: MIT
fsevent-sys 4.1.0: MIT
futures-timer 3.0.4: MIT/Apache-2.0
fuzzy-matcher 0.3.7: MIT
@@ -211,8 +208,6 @@ LICENSES/<crate>-<version>/.
glam 0.19.0: MIT OR Apache-2.0
gloo-timers 0.3.0: MIT OR Apache-2.0
governor 0.10.4: MIT
hash32 0.2.1: MIT OR Apache-2.0
heapless 0.7.17: MIT OR Apache-2.0
heck 0.4.1: MIT OR Apache-2.0
httlib-huffman 0.3.4: MIT
i_float 1.16.0: MIT
@@ -220,14 +215,11 @@ LICENSES/<crate>-<version>/.
i_overlay 4.5.2: MIT OR Apache-2.0
i_shape 1.18.0: MIT
i_tree 0.18.0: MIT
iana-time-zone-haiku 0.1.2: MIT OR Apache-2.0
iana-time-zone 0.1.65: MIT OR Apache-2.0
ilattice 0.1.0: MIT OR Apache-2.0
imagesize 0.13.0: MIT
inout 0.1.4: MIT OR Apache-2.0
interpolation 0.3.0: MIT
is-terminal 0.4.17: MIT
ispc-build-utils 0.5.0: MIT OR Apache-2.0 OR Zlib
itertools 0.10.5: MIT/Apache-2.0
iyes_progress 0.18.0: MIT OR Apache-2.0
jzon 0.12.5: MIT/Apache-2.0
@@ -277,7 +269,6 @@ LICENSES/<crate>-<version>/.
metis 0.2.2: MIT OR Apache-2.0
metrics-util 0.20.4: MIT
metrics 0.24.6: MIT
mint 0.5.9: MIT
mock_instant 0.6.1: 0BSD
moonshine-save 0.8.0: MIT
moonshine-util 0.6.0: MIT
@@ -317,7 +308,6 @@ LICENSES/<crate>-<version>/.
pollster 1.0.1: Apache-2.0/MIT
poly1305 0.8.0: Apache-2.0 OR MIT
polyanya 0.18.0: MIT OR Apache-2.0
postcard-derive 0.2.2: MIT OR Apache-2.0
powerfmt 0.2.1: MIT OR Apache-2.0
proc-macro-crate 1.3.1: MIT OR Apache-2.0
proc-macro-error-attr 1.0.4: MIT OR Apache-2.0
@@ -329,7 +319,6 @@ LICENSES/<crate>-<version>/.
quick-xml 0.31.0: MIT
quick-xml 0.38.4: MIT
radix_trie 0.2.1: MIT
rand_chacha 0.3.1: MIT OR Apache-2.0
rand_xorshift 0.3.0: MIT OR Apache-2.0
rand_xoshiro 0.7.0: MIT OR Apache-2.0
rapidhash 4.5.1: MIT OR Apache-2.0
@@ -348,13 +337,9 @@ LICENSES/<crate>-<version>/.
rune-staging 0.0.1: MIT
rune 0.0.1: MIT
rusticata-macros 4.1.0: MIT/Apache-2.0
rustls-native-certs 0.8.5: Apache-2.0 OR ISC OR MIT
rustls-pemfile 2.2.0: Apache-2.0 OR ISC OR MIT
rustls-platform-verifier-android 0.2.0: MIT OR Apache-2.0
rustls-platform-verifier 0.7.1: MIT OR Apache-2.0
seahash 4.1.0: MIT
selectors 0.38.0: MPL-2.0
serde_arrays 0.2.0: MIT OR Apache-2.0
serde_flexitos 0.2.2: Apache-2.0
serde_regex 1.2.0: MIT OR Apache-2.0
serde_repr 0.1.21: MIT OR Apache-2.0
@@ -364,7 +349,6 @@ LICENSES/<crate>-<version>/.
sif-itree 0.4.1: MIT OR Apache-2.0
sketches-ddsketch 0.3.1: Apache-2.0
smart-default 0.7.1: MIT
spin 0.9.9: MIT
spinning_top 0.3.0: MIT/Apache-2.0
spki 0.8.1: Apache-2.0 OR MIT
steamworks-sys 0.13.0: MIT / Apache-2.0
@@ -395,7 +379,6 @@ LICENSES/<crate>-<version>/.
unicode-general-category 1.1.0: Apache-2.0
universal-hash 0.5.1: MIT OR Apache-2.0
unsafe-libyaml 0.2.11: MIT
urlencoding 2.1.3: MIT
usvg 0.45.1: Apache-2.0 OR MIT
vleue_navigator 0.17.0: MIT OR Apache-2.0
voracious_radix_sort 1.2.0: MIT
@@ -429,9 +412,6 @@ LICENSES/<crate>-<version>/.
zbus 6.2.1: MIT
zcheapstr 1.1.0: MIT
zruntime 0.2.2: MIT
zstd-safe 7.4.0: BSD-3-Clause
zstd-sys 2.1.2+zstd.1.5.7: BSD-3-Clause
zstd 0.13.4: BSD-3-Clause
zvariant_derive 5.15.0: MIT
zvariant_utils 4.2.0: MIT
zvariant 5.15.0: MIT
+54 -9
View File
@@ -32,14 +32,42 @@
---
> **v0.1.1** is raea's first full release: the engine and, for the first time, the desktop app, on macOS (Apple
> Silicon), Linux (x86_64) and, newest and least tested, Windows (x86_64). raea is young: expect rough edges and gaps
> in the docs.
> raea releases experimentally and often, so the newest release is always on
> [Releases](https://github.com/shinyobjectz/raea/releases). The app is unstable for now, especially on Linux and
> Windows: expect rough edges, and tell us what you hit in an [issue](https://github.com/shinyobjectz/raea/issues), or
> from your agent with `raea bug`.
## The app
The raea app is where you make video and games with your AI. Download it from [raea.io](https://raea.io) for the Mac,
Windows or Linux. It tells you when a new version is out; on the Mac it updates itself.
The raea app is where you make video, 3D and games with your AI. You ask in a chat; your own AI (Claude, ChatGPT, Kimi
or a local model) writes the raea code and renders it; what it makes lands in the project's feed, where you watch it,
scrub it, mark it up and send it back with notes. Download it from [raea.io](https://raea.io) for the Mac, Windows or
Linux. It tells you when a new version is out; on the Mac it updates itself.
<p align="center">
<a href="https://media.raea.io/#goose-learns-raea"><img src="docs/readme/goose-learns-raea.jpg" width="720" alt="The raea app tutorial"></a>
</p>
New to the app? **[Watch the tutorial](https://media.raea.io/#goose-learns-raea)** (5:50).
What the app does now:
- **The chat comes first** (0.1.5): your projects in a rail, the conversation in the middle, and `/goal` to keep an
agent going until a condition you set holds.
- **A timeline you edit by hand** (0.1.4): trim, split and move clips, speed curves, freeze frames and keys, the way
CapCut works, under every film, sound and scene.
- **Scenes you walk around in** (0.1.3): your agent posts a 3D scene and you walk through it, pin comments in it and
move its parts by hand; every change is written into the scene's own code.
- **Index** (0.1.5): your folders, drives and Apple Photos made searchable by what's in them, on your Mac. On an M5 Pro,
10,000 pictures were searchable in under a minute.
- **Review** (0.1.6): each project has a Review tab, every comment you leave reaches the agent, and export is one
window.
- **Lighter** (0.1.6): the window gives back memory it's finished with and rests when nothing changes, 34% less CPU
at rest.
The app and the engine are free. Pro adds cloud storage, search across your computers and publishing; Team puts up to
five people on one plan ([pricing](https://raea.io/pricing/)). Each release's notes are on the
[releases page](https://github.com/shinyobjectz/raea/releases).
## Install
@@ -52,14 +80,21 @@ The installer puts the `raea` command under `~/.raea`, links it into `~/.local/b
work. Run it again to update. The engine is free and needs no account. Tarballs and checksums are on the
[releases page](https://github.com/shinyobjectz/raea/releases).
Linux release builds also package an x86_64 AppImage of the engine command and
attach it and its SHA256 checksum beside the release archives.
Make it executable with `chmod +x raea-*.AppImage`, then run
`./raea-VERSION-linux-x86_64.AppImage --help` or pass the usual `raea` arguments.
See [the AppImage release recipe](tools/release/README.md#linux-appimage) for build
instructions, runtime requirements and running without FUSE.
On Windows 10 or 11, in PowerShell:
```powershell
irm https://raea.io/install.ps1 | iex
```
It does the same under `~\.raea` and adds raea to your PATH. raea needs the Microsoft Visual C++ Redistributable
(x64), which most machines already have, and a DirectX 12 or Vulkan GPU driver.
It does the same under `~\.raea` and adds raea to your PATH. raea needs a DirectX 12 or Vulkan GPU driver; what
else it needs (the Visual C++ runtime, FFmpeg and uv) is in its `bin\` folder.
## Hello
@@ -92,12 +127,19 @@ floor (`raea check hello.mp4`). `raea init` starts a project, and `raea --help`
- **Games.** Input, physics, sound and 3D, played live with `raea play`, and exported as a program of their own
(`raea export-game`).
- **3D.** Scenes in TypeScript drawn by [Bevy](https://bevyengine.org) 0.20: cameras, lights, materials, glTF models,
Gaussian splats, and Bevy plugins compiled into the engine.
Gaussian splats, and Bevy plugins compiled into the engine. three.js work runs as it's written: a React Three Fiber
scene inside `<R3F>`, or a three.js page's script inside `<Three program>`.
- **Sound.** One mixer for live play and offline render, instruments and effects, and local models for foley and
instrument notes (`raea sao`, `raea tokensynth`).
instrument notes (`raea make sao`, `raea make tokensynth`).
- **Built for agents.** Everything it draws stays queryable as data, so an agent can render a frame, look at it, and
fix what's wrong without a person in the loop.
## Made in raea
Films, music videos, a tutorial and a game made with raea are on [media.raea.io](https://media.raea.io). Six of them
come with their source in [raea-films](https://github.com/shinyobjectz/raea-films): each project's code under
Apache-2.0, to read, render and take apart, and its models, textures and sound for anyone with a free raea account.
## Use it from your agent
- **Agent skills.** They live in [raea-skills](https://github.com/shinyobjectz/raea-skills), pinned here as
@@ -108,6 +150,9 @@ floor (`raea check hello.mp4`). `raea init` starts a project, and `raea --help`
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
+24
View File
@@ -0,0 +1,24 @@
[package]
name = "raea-app-ask"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "raea ask: questions about a piece's picture and sound, prepared from what raea knows of it, asked of clef in parallel from the person's plan, and every answer kept"
[dependencies]
# the question format and the standard sets; the one clef client, routed to the person's plan first (docs/ask.feature)
raea-core-ask = { path = "../../core/ask" }
raea-io-clef = { path = "../../io/clef" }
raea-io-home = { path = "../../io/home" }
# the fingerprint's AUC, quantile and gates, so a question is calibrated as an axis is (AK7)
raea-sys-fingerprint = { path = "../../systems/fingerprint" }
# today's date for a calibration
raea-io-trace = { path = "../../io/trace" }
dunce = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
[dev-dependencies]
raea-io-assets = { path = "../../io/assets" }
+214
View File
@@ -0,0 +1,214 @@
//! Calibration (docs/ask.feature AK7): a question's answers held to the person's labels (labels.rs), per version of its
//! words. Clef isn't trained on the labels, so its AUC on them is held out already; the one thing fitted is the
//! threshold, the problem score that flags 10% of the clean labels. The gates are the fingerprint's (16 labels of each
//! kind, from 3 projects, an AUC of 0.8). A question that passes is calibrated at its threshold: its answers are
//! findings, and the person's calibration replaces raea's shipped one. One under 0.6 after 32 labels doesn't separate,
//! and says which labels it missed, so its words can be fixed. `raea ask try` asks new words of the labelled clips and
//! sets both AUCs side by side.
use std::collections::{BTreeMap, BTreeSet, HashMap};
use std::path::PathBuf;
use std::sync::Arc;
use raea_core_ask::{Calibration, Question};
use raea_io_clef::Media;
use raea_sys_fingerprint::head::{auc, quantile};
use raea_sys_fingerprint::train::{GATE_AUC, GATE_LABELS, GATE_PROJECTS};
use serde::Serialize;
use serde_json::Value;
use crate::labels::{self, Label};
use crate::prepare::Piece;
use crate::record;
use crate::runner::{self, Event, Group, Kept, Opts, Summary};
pub const FILE: &str = "calibration.json";
/// An AUC under this after twice the gate's labels: the words don't separate the problem.
const SEPARATES: f64 = 0.6;
/// The person's calibrations that passed the gates, by question version.
pub fn local() -> BTreeMap<String, Calibration> {
std::fs::read_to_string(record::dir().join(FILE)).ok().and_then(|t| serde_json::from_str(&t).ok()).unwrap_or_default()
}
/// A question with the person's calibration in place of raea's, when it has one.
pub fn apply(q: &mut Question, local: &BTreeMap<String, Calibration>) {
if let Some(c) = local.get(&q.version()) {
q.calibration = Some(c.clone());
}
}
/// A label the answers missed: a problem it scored low, or clean work it scored high.
#[derive(Debug, Clone, Serialize)]
pub struct Miss {
pub file: String,
pub span: String,
pub problem: f64,
pub bad: bool,
pub note: Option<String>,
}
/// One version's standing.
#[derive(Debug, Clone, Serialize)]
pub struct Standing {
pub id: String,
pub version: String,
pub ask: String,
pub problems: usize,
pub clean: usize,
pub projects: usize,
pub auc: Option<f64>,
pub threshold: Option<f64>,
/// calibrated, advice or "doesn't separate"
pub state: String,
pub why: String,
pub misses: Vec<Miss>,
/// other eyes' labels on its clips, kept and not counted
pub others: usize,
}
/// Each labelled clip's latest problem score for one version, beside its label.
fn scored<'a>(version: &str, standing: &HashMap<(String, String), &'a Label>, calls: &HashMap<String, Value>) -> Vec<(f64, &'a Label)> {
let mut latest: HashMap<String, (f64, &Label)> = HashMap::new();
for a in record::rows("answers.jsonl").iter().filter(|a| a["version"] == version) {
let (Some(p), Some(call)) = (a["problem"].as_f64(), calls.get(a["call"].as_str().unwrap_or_default())) else { continue };
let key = (a["question"].as_str().unwrap_or_default().to_string(), labels::media_key(call));
if let Some(l) = standing.get(&key) {
latest.insert(key.1, (p, l));
}
}
latest.into_values().collect()
}
/// One version held to its labels.
pub fn standing_of(q: &Question, all: &[Label], calls: &HashMap<String, Value>) -> Standing {
let standing = labels::standing(all);
let s = scored(&q.version(), &standing, calls);
let score = |bad: bool| s.iter().filter(|(_, l)| l.bad == bad).map(|(p, _)| *p as f32).collect::<Vec<f32>>();
let (pos, neg) = (score(true), score(false));
let projects = s.iter().map(|(_, l)| l.project.as_str()).collect::<BTreeSet<_>>().len();
let a = Some(auc(&pos, &neg)).filter(|a| a.is_finite());
let threshold = Some(quantile(&neg, 0.9) as f64).filter(|t| t.is_finite());
let mut why = Vec::new();
if pos.len() < GATE_LABELS || neg.len() < GATE_LABELS {
why.push(format!("{} problem and {} clean labels (needs {GATE_LABELS} of each)", pos.len(), neg.len()));
}
if projects < GATE_PROJECTS {
why.push(format!("labels from {projects} projects (needs {GATE_PROJECTS})"));
}
match a {
Some(v) if v < GATE_AUC => why.push(format!("AUC {v:.2} (needs {GATE_AUC})")),
None => why.push("no AUC yet: it needs labels of both kinds".into()),
_ => {}
}
let stuck = s.len() >= 2 * GATE_LABELS && a.is_some_and(|v| v < SEPARATES);
let mut misses: Vec<Miss> = Vec::new();
if stuck {
let mut by: Vec<&(f64, &Label)> = s.iter().collect();
by.sort_by(|x, y| x.0.total_cmp(&y.0));
let low = by.iter().filter(|(_, l)| l.bad).take(5);
let high = by.iter().rev().filter(|(_, l)| !l.bad).take(5);
misses = low.chain(high).map(|(p, l)| Miss { file: l.file.clone(), span: labels::span(l.from, l.to), problem: *p, bad: l.bad, note: l.note.clone() }).collect();
}
let others = all.iter().filter(|l| !l.counted() && l.question == q.id).count();
let state = match (why.is_empty(), stuck) {
(true, _) => "calibrated",
(false, true) => "doesn't separate",
(false, false) => "advice",
};
let why = if why.is_empty() { format!("earned: {} labels from {projects} projects, flags past {:.2}", s.len(), threshold.unwrap_or(0.0)) } else { why.join("; ") };
Standing { id: q.id.clone(), version: q.version(), ask: q.ask.clone(), problems: pos.len(), clean: neg.len(), projects, auc: a, threshold, state: state.into(), why, misses, others }
}
/// Every labelled question's versions as the record kept them (or only `id`'s), newest wording last.
fn versions(only: Option<&str>, all: &[Label]) -> Vec<Question> {
let labelled: BTreeSet<&str> = all.iter().map(|l| l.question.as_str()).collect();
let mut seen = BTreeSet::new();
let mut out = Vec::new();
for a in record::rows("answers.jsonl") {
let id = a["question"].as_str().unwrap_or_default();
if only.is_some_and(|o| o != id) || !labelled.contains(id) || !seen.insert(a["version"].as_str().unwrap_or_default().to_string()) {
continue;
}
out.push(labels::question_of(&a));
}
out
}
/// `raea ask calibrate [ID]`: the feed's labels read again, then every labelled version held to them. The ones that
/// pass are kept as the person's calibration; one that no longer passes loses it.
pub fn calibrate(only: Option<&str>) -> Result<(Vec<Standing>, (usize, usize)), String> {
let feed = labels::from_feed()?;
let (all, calls) = (labels::all(), labels::calls());
let out: Vec<Standing> = versions(only, &all).iter().map(|q| standing_of(q, &all, &calls)).collect();
let mut keep = local();
for s in &out {
keep.remove(&s.version);
if s.state == "calibrated" {
let n = (s.problems + s.clean) as u32;
let c = Calibration { auc: s.auc.unwrap_or(0.0), n, positives: s.problems as u32, threshold: s.threshold, date: today(), by: "you".into() };
keep.insert(s.version.clone(), c);
}
}
record::write_whole(FILE, &serde_json::to_string_pretty(&keep).map_err(|e| e.to_string())?)?;
Ok((out, feed))
}
/// YYYY-MM-DD, UTC.
fn today() -> String {
raea_io_trace::utc(std::time::SystemTime::now()).0.chars().take(10).collect()
}
/// The groups `raea ask try` sends: the new question on each labelled clip set, with the state it was asked with.
pub fn try_groups(like: &str, words: &str) -> Result<(Question, Question, Vec<Group>), String> {
let all = labels::all();
let standing = labels::standing(&all);
let rows = record::rows("answers.jsonl");
let old = rows.iter().rev().find(|a| a["question"] == like).map(labels::question_of).ok_or_else(|| format!("ask try: no answers to {like} in the record"))?;
let new = Question { ask: words.to_string(), calibration: None, ..old.clone() };
let calls = labels::calls();
let mut groups: Vec<Group> = Vec::new();
let mut sent = BTreeSet::new();
for call in calls.values().filter(|c| standing.contains_key(&(like.to_string(), labels::media_key(c)))) {
let names: Vec<&str> = call["media"].as_array().into_iter().flatten().filter_map(Value::as_str).collect();
let Some(kept) = media(&names) else { continue };
if !sent.insert(labels::media_key(call)) {
continue;
}
let piece = Arc::new(Piece { file: PathBuf::from(call["file"].as_str().unwrap_or_default()), project: call["project"].as_str().map(PathBuf::from), ..Default::default() });
let (from, to) = (call["from"].as_f64().unwrap_or(0.0), call["to"].as_f64());
let seconds = to.map_or(60.0, |t| t - from);
let kept = Kept { video_seconds: if kept.videos.is_empty() { 0.0 } else { seconds }, sound_seconds: if kept.sounds.is_empty() { 0.0 } else { seconds }, media: kept, state: call["state"].as_str().unwrap_or_default().into() };
groups.push(Group { piece, from, to, sees: new.sees, hears: new.hears, with: vec![], questions: vec![new.clone()], kept: Some(Arc::new(kept)) });
}
if groups.is_empty() {
return Err(format!("ask try: none of {like}'s labelled clips are still kept (raea ask calibrate lists its labels)"));
}
Ok((old, new, groups))
}
/// A call's clips from the kept media, in the kinds they were sent as; None when one has been pruned.
fn media(names: &[&str]) -> Option<Media> {
let mut m = Media::default();
for n in names {
let bytes = record::media(n)?;
match n.rsplit('.').next() {
Some("mp4") => m.videos.push(bytes),
Some("mp3") => m.sounds.push(bytes),
_ => m.stills.push(bytes),
}
}
Some(m)
}
/// `raea ask try "WORDS" --like ID`: the new words asked of the old question's labelled clips, and both versions held to
/// the same labels.
pub fn try_words(like: &str, words: &str, o: &Opts, out: &mut dyn FnMut(Event)) -> Result<(Summary, Option<(Standing, Standing)>), String> {
let (old, new, groups) = try_groups(like, words)?;
let sum = runner::run_groups(groups, Vec::new(), o, out);
if o.dry {
return Ok((sum, None));
}
let (all, calls) = (labels::all(), labels::calls());
Ok((sum, Some((standing_of(&old, &all, &calls), standing_of(&new, &all, &calls)))))
}
+236
View File
@@ -0,0 +1,236 @@
//! Labels (docs/ask.feature AK6): whether a question's problem was really there in what one call sent, so the question
//! can be calibrated on the person's own eye (calibrate.rs). A label belongs to a question and to the clips a call sent
//! (by their hashes), never to one answer: the same question reworded, asked again of the same clips, has the same
//! labels, which is what lets `raea ask try` measure new words.
//!
//! Where labels come from:
//! - `raea ask verdict ANSWER WORD`: the person answers the question themselves, in its own terms (yes or no, an option,
//! a level). Theirs counts first.
//! - The feed: a note of the person's on the render (its copy in the project's feed, known by `record::ident`), pinned
//! inside the window or not pinned at all, holding one of the question's label words, is a yes; an approved post (done)
//! with no such note is a no. Read again by every `raea ask calibrate`.
//! - Another eye (`verdict --eye agent`: an agent's own look) is kept as `eye:NAME` and never counted, as the
//! fingerprint keeps another eye's readings (FP6d).
use std::collections::HashMap;
use std::path::{Path, PathBuf};
use raea_core_ask::{Kind, Question};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate::record;
pub const FILE: &str = "labels.jsonl";
/// A note pinned at t covers 1.5 s before it to 0.5 s after (the fingerprint's span).
const BEFORE: f64 = 1.5;
const AFTER: f64 = 0.5;
/// Whether a question's problem is there in one call's clips, and who said so.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct Label {
pub question: String,
/// the clips the call sent, by hash
pub media: String,
pub bad: bool,
/// "verdict" (the person's), "note" or "approval" (read from the feed), or "eye:NAME" (kept, never counted)
pub source: String,
pub project: String,
pub file: String,
pub from: f64,
pub to: Option<f64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub note: Option<String>,
pub at: String,
}
impl Label {
/// The person's own: a verdict, a note or an approval.
pub fn counted(&self) -> bool {
self.rank() > 0
}
fn rank(&self) -> u8 {
match self.source.as_str() {
"verdict" => 3,
"note" => 2,
"approval" => 1,
_ => 0,
}
}
}
/// The clips a call sent, as one key.
pub fn media_key(call: &Value) -> String {
let mut m: Vec<&str> = call["media"].as_array().into_iter().flatten().filter_map(Value::as_str).collect();
m.sort_unstable();
m.join("+")
}
/// The feed a call's render was posted to: its project's, else the nearest one above its file.
fn feed_of(call: &Value) -> Option<PathBuf> {
let file = Path::new(call["file"].as_str().unwrap_or_default());
call["project"].as_str().map(Path::new).into_iter().chain(file.ancestors()).map(|d| d.join(".raea/feed")).find(|d| d.is_dir())
}
/// A call's project: the folder holding its brief, else the folder holding the feed it was posted to, else its file's.
pub fn project_of(call: &Value) -> String {
if let Some(p) = call["project"].as_str() {
return p.to_string();
}
let home = feed_of(call).and_then(|f| f.parent()?.parent().map(Path::to_path_buf));
let file = Path::new(call["file"].as_str().unwrap_or_default());
home.as_deref().or(file.parent()).map(|p| p.display().to_string()).unwrap_or_default()
}
pub fn all() -> Vec<Label> {
record::rows(FILE).into_iter().filter_map(|v| serde_json::from_value(v).ok()).collect()
}
fn write(labels: &[Label]) -> Result<(), String> {
record::write_whole(FILE, &labels.iter().filter_map(|l| serde_json::to_string(l).ok()).map(|l| l + "\n").collect::<String>())
}
/// The label that stands for each question and clips: the person's verdict, else a note, else an approval.
pub fn standing(labels: &[Label]) -> HashMap<(String, String), &Label> {
let mut out: HashMap<(String, String), &Label> = HashMap::new();
for l in labels.iter().filter(|l| l.counted()) {
let key = (l.question.clone(), l.media.clone());
if out.get(&key).is_none_or(|was| l.rank() >= was.rank()) {
out.insert(key, l);
}
}
out
}
/// A question as its answer kept it (the whole question, else its words).
pub fn question_of(answer: &Value) -> Question {
serde_json::from_value(answer["q"].clone()).unwrap_or_else(|_| Question::plain(answer["question"].as_str().unwrap_or("q"), answer["ask"].as_str().unwrap_or_default()))
}
/// Whether the answer the person gives means the problem is there: yes's flagged answer (yes, or no for a question
/// flagged on no), a flagged option, or a grade or rate in its lower half.
pub fn means_problem(q: &Question, said: &str) -> Result<bool, String> {
let said = said.trim().to_lowercase();
let levels = q.levels();
if q.kind == Kind::Yes {
return match said.as_str() {
"yes" | "no" => Ok((said == "yes") != q.flags.first().is_some_and(|f| f == "no")),
_ => Err(format!("{}: answer yes or no", q.id)),
};
}
if q.kind == Kind::Choose && q.flags.is_empty() {
return Err(format!("{} picks without a wrong answer, so it isn't calibrated", q.id));
}
let Some(i) = levels.iter().position(|l| l.to_lowercase() == said) else { return Err(format!("{}: answer one of {}", q.id, levels.join(", "))) };
Ok(match q.kind {
Kind::Choose => q.flags.iter().any(|f| f.to_lowercase() == said),
_ => (i as f64) < (levels.len().max(2) - 1) as f64 / 2.0,
})
}
/// Every call in the record, by id.
pub fn calls() -> HashMap<String, Value> {
record::rows("calls.jsonl").into_iter().filter_map(|c| Some((c["id"].as_str()?.to_string(), c))).collect()
}
fn label(q: &str, call: &Value, bad: bool, source: &str, note: Option<String>) -> Label {
Label {
question: q.to_string(),
media: media_key(call),
bad,
source: source.into(),
project: project_of(call),
file: call["file"].as_str().unwrap_or_default().into(),
from: call["from"].as_f64().unwrap_or(0.0),
to: call["to"].as_f64(),
note,
at: record::now(),
}
}
/// `raea ask verdict ANSWER WORD [--eye NAME]`: the person's answer to the question on that answer's clips (or another
/// eye's, kept and never counted). A verdict given again replaces the last from the same source.
pub fn verdict(answer: &str, said: &str, eye: Option<&str>) -> Result<String, String> {
let row = record::rows("answers.jsonl").into_iter().find(|a| a["id"] == answer).ok_or_else(|| format!("ask verdict: no answer {answer} in {}", record::dir().display()))?;
let call = calls().remove(row["call"].as_str().unwrap_or_default()).ok_or_else(|| format!("ask verdict: answer {answer}'s call isn't in the record"))?;
let q = question_of(&row);
let bad = means_problem(&q, said)?;
let source = eye.map_or_else(|| "verdict".to_string(), |e| format!("eye:{e}"));
let new = label(&q.id, &call, bad, &source, None);
let mut labels = all();
labels.retain(|l| !(l.question == new.question && l.media == new.media && l.source == new.source));
let line = format!("{}: {} on {} ({}){}", q.id, if bad { "the problem is there" } else { "no problem" }, new.file, span(new.from, new.to), if eye.is_some() { format!(", kept as {source} and not counted") } else { String::new() });
labels.push(new);
write(&labels)?;
Ok(line)
}
pub fn span(from: f64, to: Option<f64>) -> String {
match to {
Some(t) => format!("{from:.1}-{t:.1} s"),
None if from > 0.0 => format!("from {from:.1} s"),
None => "the whole file".into(),
}
}
/// One post of a feed: whether it's approved, its person's notes (pinned second or none, words), and its files.
struct Post {
done: bool,
notes: Vec<(Option<f64>, String)>,
files: Vec<PathBuf>,
}
fn posts(feed: &Path) -> Vec<Post> {
let project = feed.parent().and_then(Path::parent).unwrap_or(feed);
let lib = raea_io_home::user_home().unwrap_or_default().join(".raea/feed/media");
let mut out = Vec::new();
for e in std::fs::read_dir(feed).into_iter().flatten().flatten() {
let Some(p) = std::fs::read_to_string(e.path()).ok().and_then(|t| serde_json::from_str::<Value>(&t).ok()) else { continue };
let notes = p["notes"].as_array().into_iter().flatten().filter(|n| n["author"]["kind"] == "person").filter_map(|n| Some((n["pin"]["t"].as_f64(), n["text"].as_str()?.to_lowercase()))).collect();
let files = p["media"].as_array().into_iter().flatten().filter_map(|m| m["path"].as_str()).filter_map(|m| [lib.join(m), project.join(m)].into_iter().find(|f| f.is_file())).collect();
out.push(Post { done: p["status"] == "done", notes, files });
}
out
}
/// Labels read again from the person's notes and approvals, for every recorded answer whose question has label words.
/// The feed's labels replace the last ones read; verdicts and other eyes' stay. Says how many of each it found.
pub fn from_feed() -> Result<(usize, usize), String> {
let calls = calls();
let mut feeds: HashMap<PathBuf, Vec<Post>> = HashMap::new();
let mut idents: HashMap<PathBuf, Option<String>> = HashMap::new();
let mut found: HashMap<(String, String), Label> = HashMap::new();
for row in record::rows("answers.jsonl") {
let q = question_of(&row);
let Some(call) = calls.get(row["call"].as_str().unwrap_or_default()) else { continue };
let (Some(ident), false) = (call["ident"].as_str(), q.label_words.is_empty()) else { continue };
let Some(dir) = feed_of(call) else { continue };
let len = record::ident_len(ident);
let same = |f: &PathBuf, idents: &mut HashMap<PathBuf, Option<String>>| {
std::fs::metadata(f).is_ok_and(|m| Some(m.len()) == len) && idents.entry(f.clone()).or_insert_with(|| record::ident(f)).as_deref() == Some(ident)
};
let (from, to) = (call["from"].as_f64().unwrap_or(0.0), call["to"].as_f64().unwrap_or(f64::INFINITY));
let words: Vec<String> = q.label_words.iter().map(|w| w.to_lowercase()).collect();
for post in feeds.entry(dir.clone()).or_insert_with(|| posts(&dir)).iter().filter(|p| p.files.iter().any(|f| same(f, &mut idents))) {
let inside = |t: &Option<f64>| t.is_none_or(|t| t - BEFORE < to && t + AFTER > from);
let seen = post.notes.iter().find(|(t, text)| inside(t) && words.iter().any(|w| text.contains(w.as_str())));
let l = match (seen, post.done) {
(Some((_, text)), _) => label(&q.id, call, true, "note", Some(text.clone())),
(None, true) => label(&q.id, call, false, "approval", None),
(None, false) => continue,
};
let key = (l.question.clone(), l.media.clone());
if found.get(&key).is_none_or(|was| l.rank() > was.rank()) {
found.insert(key, l);
}
}
}
let mut labels = all();
labels.retain(|l| !matches!(l.source.as_str(), "note" | "approval"));
let yes = found.values().filter(|l| l.bad).count();
let no = found.len() - yes;
labels.extend(found.into_values());
write(&labels)?;
Ok((yes, no))
}
+132
View File
@@ -0,0 +1,132 @@
use std::path::{Path, PathBuf};
use std::sync::{Arc, Mutex};
use raea_core_ask::{Kind, Question, Reading};
use raea_io_clef::{Answered, Call, Fail};
use serde_json::json;
use crate::labels::{self, means_problem};
use crate::prepare::Piece;
use crate::runner::{self, Entry, Opts};
use crate::{calibrate, record};
/// The labels and calibration files are rewritten whole: one test at a time.
static LOCK: Mutex<()> = Mutex::new(());
fn reading(p: f64) -> Reading {
Reading { value: p, problem: Some(p), choice: None, says: format!("{p:.2}") }
}
fn question(id: &str, words: &[&str]) -> Question {
let mut q = Question::plain(id, &format!("Is there a problem the {id} test names?"));
q.label_words = words.iter().map(|w| w.to_string()).collect();
q
}
/// A call and its answer kept, as the runner keeps them; the answer's id.
fn asked(file: &Path, project: &str, clip: &str, q: &Question, p: f64) -> String {
let call = record::call(&file.display().to_string(), Some(project), 0.0, Some(5.0), "a test", &[clip.to_string()], "a test", 0.0, false);
record::answer(&call, &file.display().to_string(), q, &reading(p), p >= 0.5)
}
fn write(p: &Path, bytes: &[u8]) {
std::fs::create_dir_all(p.parent().unwrap()).unwrap();
std::fs::write(p, bytes).unwrap();
}
#[test]
fn a_persons_note_on_the_posted_render_labels_it_and_an_approval_labels_it_clean() {
crate::tests::setup();
let _one = LOCK.lock().unwrap();
let proj = std::env::temp_dir().join(format!("raea-ask-notes-{}", std::process::id()));
let (a, b, other) = (proj.join("out/a.mp4"), proj.join("out/b.mp4"), proj.join("old/a.mp4"));
write(&a, b"render one");
write(&b, b"render two");
write(&other, b"another render, the same name");
let post = |media: &str, status: &str, notes: serde_json::Value| json!({"media": [{"kind": "video", "path": media}], "status": status, "notes": notes});
let person = |text: &str, t: Option<f64>| json!({"author": {"kind": "person", "name": "me"}, "text": text, "pin": t.map(|t| json!({"t": t}))});
write(&proj.join(".raea/feed/1.json"), post("out/a.mp4", "seen", json!([person("The caption runs OVER HER FACE here", Some(2.0))])).to_string().as_bytes());
let agent = json!({"author": {"kind": "agent"}, "text": "over her face"});
write(&proj.join(".raea/feed/2.json"), post("out/b.mp4", "done", json!([agent, person("lovely", None)])).to_string().as_bytes());
let q = question("notes.face", &["over her face"]);
let project = proj.display().to_string();
asked(&a, &project, "na.mp4", &q, 0.7);
asked(&b, &project, "nb.mp4", &q, 0.2);
asked(&other, &project, "nc.mp4", &q, 0.6);
assert_eq!(labels::from_feed().unwrap(), (1, 1));
let mine: Vec<_> = labels::all().into_iter().filter(|l| l.question == "notes.face").collect();
let on = |clip: &str| mine.iter().find(|l| l.media == clip).unwrap_or_else(|| panic!("{clip}: {mine:?}"));
assert!(on("na.mp4").bad && on("na.mp4").source == "note" && on("na.mp4").note.as_deref().is_some_and(|n| n.contains("over her face")));
assert!(!on("nb.mp4").bad && on("nb.mp4").source == "approval", "an agent's note isn't the person's");
assert!(!mine.iter().any(|l| l.media == "nc.mp4"), "another render with the same name isn't the one posted");
}
#[test]
fn a_verdict_reads_in_the_questions_terms_and_another_eyes_isnt_counted() {
crate::tests::setup();
let _one = LOCK.lock().unwrap();
let mut q = question("verdict.logo", &[]);
assert!(means_problem(&q, "Yes").unwrap() && !means_problem(&q, "no").unwrap());
q.flags = vec!["no".into()];
assert!(means_problem(&q, "no").unwrap(), "a question flagged on no: no is the problem");
let mut g = q.clone();
g.kind = Kind::Grade;
assert!(means_problem(&g, "weak").unwrap() && !means_problem(&g, "acceptable").unwrap());
g.kind = Kind::Choose;
g.options = vec!["first".into(), "second".into()];
g.flags = vec![];
assert!(means_problem(&g, "first").is_err(), "a pick has no wrong answer");
let file = std::env::temp_dir().join("raea-ask-verdict.mp4");
let id = asked(&file, "p", "v1.mp4", &q, 0.3);
labels::verdict(&id, "no", Some("agent")).unwrap();
let said = labels::verdict(&id, "no", None).unwrap();
assert!(said.contains("the problem is there"), "{said}");
let all = labels::all();
let standing = labels::standing(&all);
let l = standing.get(&("verdict.logo".to_string(), "v1.mp4".to_string())).unwrap();
assert!(l.bad && l.source == "verdict");
assert!(all.iter().any(|l| l.source == "eye:agent" && !l.counted()));
}
/// clef as a fake: yes to anything sent a clip whose bytes start "bad".
fn sees_bad(call: &Call) -> Result<Answered, Fail> {
let p = if call.media.videos.iter().any(|v| v.starts_with(b"bad")) { 0.9 } else { 0.1 };
let answers = call.questions.iter().map(|q| (q.id.clone(), json!({"noul": p}))).collect();
Ok(Answered { answers, cost: 0.001, cached: false, route: "a test".into(), pool_left: None })
}
#[test]
fn labels_from_three_projects_calibrate_a_question_and_new_words_are_measured_on_the_same_clips() {
crate::tests::setup();
let _one = LOCK.lock().unwrap();
let (good, flat) = (question("cal.good", &[]), question("cal.flat", &[]));
let file = PathBuf::from("/nowhere/cal.mp4");
for i in 0..36 {
let bad = i % 2 == 0;
let clip = record::keep_media(format!("{}{i}", if bad { "bad" } else { "ok" }).as_bytes(), "mp4");
let project = format!("p{}", i % 3);
let call = record::call(&file.display().to_string(), Some(&project), 0.0, Some(3.0), "a test", &[clip], "a test", 0.0, false);
let (p, word) = if bad { (0.6 + i as f64 / 1000.0, "yes") } else { (0.3 + i as f64 / 1000.0, "no") };
for (q, p) in [(&good, p), (&flat, 0.5)] {
let id = record::answer(&call, &file.display().to_string(), q, &reading(p), false);
labels::verdict(&id, word, None).unwrap();
}
}
let (all, _) = calibrate::calibrate(None).unwrap();
let of = |id: &str| all.iter().find(|s| s.id == id).unwrap_or_else(|| panic!("{id}: {all:?}"));
let g = of("cal.good");
assert_eq!((g.state.as_str(), g.problems, g.clean, g.projects, g.auc), ("calibrated", 18, 18, 3, Some(1.0)), "{g:?}");
let f = of("cal.flat");
assert_eq!(f.state, "doesn't separate", "{f:?}");
assert!(!f.misses.is_empty() && f.auc == Some(0.5));
// the person's calibration goes out with the question from now on
let piece = Arc::new(Piece { file: file.clone(), ..Default::default() });
let (groups, _) = runner::plan(&[Entry { piece, window: None, questions: vec![good.clone()], dropped: vec![], with: vec![] }]);
let sent = &groups[0].questions[0];
assert!(sent.calibrated() && sent.calibration.as_ref().is_some_and(|c| c.by == "you"), "{sent:?}");
// new words for the flat question, asked of its labelled clips
let (sum, both) = calibrate::try_words("cal.flat", "Does anything look broken?", &Opts { jobs: 4, dry: false, ask: sees_bad }, &mut |_| {}).unwrap();
let (old, new) = both.unwrap();
assert_eq!(sum.calls, 36);
assert_eq!((old.auc, new.auc, new.problems + new.clean), (Some(0.5), Some(1.0), 36), "{new:?}");
}
+19
View File
@@ -0,0 +1,19 @@
//! `raea ask` (docs/ask.feature AK2-AK3): questions about a piece's picture and sound. `prepare` reads what raea knows
//! of the piece and keeps the questions that apply; `runner` plans the calls, cuts each clip once and asks in parallel;
//! `record` keeps every call and answer; `labels` reads the person's verdicts, notes and approvals into labels, and
//! `calibrate` holds each question to them (AK6-AK7); `verbs` is the command. `raea check`, the app's critique and the
//! fingerprint's double-check go through the same runner.
pub mod calibrate;
pub mod labels;
pub mod prepare;
pub mod record;
pub mod runner;
pub mod verbs;
pub use verbs::{USAGE, cli};
#[cfg(test)]
mod tests;
#[cfg(test)]
mod labels_tests;
+164
View File
@@ -0,0 +1,164 @@
//! Ask understands a question before it spends (docs/ask.feature AK2): what the file holds (ffprobe), what the project's
//! brief says it's for, whether anyone speaks in it, and from those which questions can be asked, which are swapped for
//! their variant (sound for sound-silent) and which are dropped, each with why. The state paragraph tells clef what the
//! piece is, as the app's critique writes it. When it isn't known whether anyone speaks, both variants are kept, the
//! voice question goes in the same call (runner.rs), free, and the variant that doesn't apply is set aside.
use std::path::{Path, PathBuf};
use raea_core_ask::{Facts, Question, library};
use raea_io_clef::media::{self, Probe};
use serde_json::{Value, json};
/// The question asked beside the rest when no one knows yet whether anyone speaks in the piece.
pub const VOICE: &str = "voice-heard";
/// What raea knows of the piece.
#[derive(Debug, Clone, Default)]
pub struct Piece {
pub file: PathBuf,
pub probe: Probe,
/// the brief's fields, as `raea spec brief.ts --as brief` reads them ({} without a brief)
pub brief: Value,
/// the project's folder (the one holding the brief), when there is one
pub project: Option<PathBuf>,
/// the words heard, when a words file was given
pub words: Option<String>,
/// someone speaks: from --voice, or from the words file (none heard is no)
pub voice: Option<bool>,
/// what the caller adds to the state (what raea measured, the platform)
pub extra: Option<String>,
}
/// The brief nearest the file: brief.ts in its folder or any folder above it.
pub fn brief_near(file: &Path) -> Option<PathBuf> {
let abs = dunce::canonicalize(file).ok()?;
abs.ancestors().skip(1).map(|d| d.join("brief.ts")).find(|b| b.is_file())
}
/// A brief's fields, through `raea spec FILE --as brief` (this raea), or {} when it can't be read.
fn brief_of(path: &Path) -> Value {
let Ok(exe) = std::env::current_exe() else { return json!({}) };
let Ok(out) = std::process::Command::new(exe).args(["spec"]).arg(path).args(["--as", "brief"]).output() else { return json!({}) };
let text = String::from_utf8_lossy(&out.stdout);
let v: Value = text.find('{').and_then(|i| serde_json::from_str(&text[i..]).ok()).unwrap_or_else(|| json!({}));
v.get("brief").cloned().unwrap_or(v)
}
/// The words heard, from a words file (a JSON list of words, each a string or {word} or {text}): their text, and
/// whether anyone speaks (an empty list is no one).
pub fn words_of(path: &Path) -> Result<(String, bool), String> {
let v: Value = serde_json::from_str(&std::fs::read_to_string(path).map_err(|e| format!("{}: {e}", path.display()))?).map_err(|e| format!("{}: {e}", path.display()))?;
let list = v.as_array().or(v["words"].as_array()).ok_or_else(|| format!("{}: a list of words", path.display()))?;
let words: Vec<&str> = list.iter().filter_map(|w| w.as_str().or(w["word"].as_str()).or(w["text"].as_str())).collect();
Ok((words.join(" "), !words.is_empty()))
}
impl Piece {
/// The piece as raea finds it: the file probed, its brief (given or the nearest), its words.
pub fn read(file: &Path, brief: Option<&Path>, words: Option<&Path>, voice: Option<bool>, extra: Option<String>) -> Result<Piece, String> {
let probe = media::probe(file)?;
// "none": no brief, even with one near (a caller that writes the whole state itself, as the app's critique does)
let brief_file = match brief {
Some(p) if p.as_os_str() == "none" => None,
Some(p) => Some(p.to_path_buf()),
None => brief_near(file),
};
let (words, heard) = match words {
Some(w) => words_of(w).map(|(t, h)| (Some(t).filter(|t| !t.is_empty()), Some(h)))?,
None => (None, None),
};
Ok(Piece {
file: file.to_path_buf(),
probe,
brief: brief_file.as_deref().map(brief_of).unwrap_or_else(|| json!({})),
project: brief_file.and_then(|b| b.parent().map(Path::to_path_buf)),
words,
voice: voice.or(heard).or((!probe.sound).then_some(false)),
extra,
})
}
pub fn modes(&self) -> Vec<String> {
let m = &self.brief["mode"];
let list: Vec<&str> = m.as_array().map(|a| a.iter().filter_map(Value::as_str).collect()).unwrap_or_else(|| m.as_str().into_iter().collect());
list.iter().flat_map(|s| s.split(',')).map(|s| s.replace("(assumed)", "").trim().to_string()).filter(|s| !s.is_empty()).collect()
}
pub fn facts(&self) -> Facts {
let modes = self.modes();
Facts { game: modes.iter().any(|m| m == "play"), modes, voice: self.voice, sound: self.probe.sound, video: self.probe.video }
}
/// What clef reads before the media: what the piece is and what's known of it.
pub fn state(&self) -> String {
let b = &self.brief;
let modes = self.modes();
let what = if modes.is_empty() { "video".to_string() } else { modes.join(" and ") };
// with no brief and the caller's own state, the caller says what the piece is
let briefless = b.as_object().is_none_or(|o| o.is_empty());
let mut s = match (b["title"].as_str(), briefless && self.extra.is_some()) {
(_, true) => vec![],
(Some(t), _) => vec![format!("A {what} piece: \"{t}\".")],
(None, _) => vec![format!("A {what} piece.")],
};
for (k, say) in [("audience", "It's for"), ("believe", "It should leave them believing"), ("logline", "Its storyboard"), ("voice", "Its voice")] {
if let Some(v) = b[k].as_str().filter(|v| !v.trim().is_empty()) {
s.push(format!("{say}: {}.", v.trim().trim_end_matches('.')));
}
}
if self.voice == Some(false) {
s.push("No one speaks in it: its sound is the music and the effects, with no voice.".into());
}
if let Some(w) = &self.words {
let cut: String = w.chars().take(1200).collect();
s.push(format!("The words heard: \"{cut}{}\"", if cut.len() < w.len() { "..." } else { "" }));
}
if self.probe.seconds > 0.0 {
s.push(format!("It runs {:.0} s.", self.probe.seconds));
}
if let Some(x) = &self.extra {
s.push(x.trim().to_string());
}
s.join(" ")
}
}
/// Is anyone heard speaking: asked beside the questions that depend on it, at no cost (clef costs by media, not by
/// questions), when no one knows yet.
pub fn voice_question() -> Question {
let mut v = Question::plain(VOICE, "Is anyone heard speaking in it (a voice saying words, not singing)?");
v.sees = raea_core_ask::Sees::Nothing;
v
}
/// The questions kept for this piece, and those dropped with why. A question that doesn't apply is swapped for its
/// variant when that one does; not knowing whether anyone speaks, both are kept.
pub fn keep(questions: Vec<Question>, f: &Facts, rubric_md: Option<&str>) -> (Vec<Question>, Vec<(String, String)>) {
let mut asked: Vec<Question> = Vec::new();
let mut dropped = Vec::new();
let add = |q: Question, asked: &mut Vec<Question>| {
if !asked.iter().any(|a| a.id == q.id) {
asked.push(q);
}
};
for q in questions {
let Some(why) = q.not_for(f) else {
// not knowing whether anyone speaks, its variant goes in too: one call answers either way
let twin = (f.voice.is_none() && q.when.voice.is_some()).then(|| q.swap.as_deref().and_then(|s| library::find(s, rubric_md))).flatten();
add(q, &mut asked);
if let Some(t) = twin {
add(t, &mut asked);
}
continue;
};
match q.swap.as_deref().and_then(|s| library::find(s, rubric_md)).filter(|s| s.not_for(f).is_none()) {
Some(s) => {
dropped.push((q.id.clone(), format!("{why}: asked {} instead", s.id)));
add(s, &mut asked);
}
None => dropped.push((q.id.clone(), why)),
}
}
(asked, dropped)
}
+131
View File
@@ -0,0 +1,131 @@
//! Every answer kept (docs/ask.feature AK3), so a question can be labelled, calibrated and reworded later (AK6, AK7):
//! each call in calls.jsonl (the file, the window, the state, the clips it sent by hash, the route and the cost) and each
//! answer in answers.jsonl (the call, the question and its version, the reading). The clips themselves are kept by hash
//! in media/, at most 2 GB, the oldest out first, so new words can be asked of the same media. A call keeps what its
//! file was (`ident`), so a note on the render's copy in the feed labels it (labels.rs), and an answer keeps its whole
//! question, so a verdict reads in its terms and `raea ask try` can reword it.
use std::io::Write as _;
use std::path::{Path, PathBuf};
use raea_core_ask::{Question, Reading};
use serde_json::{Value, json};
use sha2::{Digest, Sha256};
/// How much cut media is kept.
pub const MEDIA_CAP: u64 = 2 << 30;
pub fn dir() -> PathBuf {
raea_io_clef::cache::dir()
}
/// A new id: a prefix and twelve hex digits, from the time, the process and a counter.
pub fn new_id(prefix: &str) -> String {
static N: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0);
let t = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map(|d| d.as_nanos()).unwrap_or(0);
let seed = format!("{t}-{}-{}", std::process::id(), N.fetch_add(1, std::sync::atomic::Ordering::Relaxed));
let h = seed.bytes().fold(0xcbf2_9ce4_8422_2325u64, |h, b| (h ^ b as u64).wrapping_mul(0x0100_0000_01b3));
format!("{prefix}-{:012x}", h & 0xffff_ffff_ffff)
}
pub fn now() -> String {
let s = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map(|d| d.as_secs()).unwrap_or(0);
s.to_string()
}
fn append(file: &str, row: &Value) {
let d = dir();
if std::fs::create_dir_all(&d).is_err() {
return;
}
// one write a row: several runs (a script's, two at once) append to the same file, and a row written in pieces
// could be split by another's
if let Ok(mut f) = std::fs::OpenOptions::new().create(true).append(true).open(d.join(file)) {
let _ = f.write_all(format!("{row}\n").as_bytes());
}
}
fn hex(digest: &[u8]) -> String {
digest.iter().take(16).map(|b| format!("{b:02x}")).collect()
}
/// What a file is, cheaply, and the size an ident names (raea-core-ask, so `raea goal gates` reads the same).
pub use raea_core_ask::ident::{ident, ident_len};
/// One of the record's files written whole, through a temporary file, so a reader never sees half of it.
pub fn write_whole(file: &str, text: &str) -> Result<(), String> {
let d = dir();
let tmp = d.join(format!("{file}.{}.tmp", std::process::id()));
let put = || -> std::io::Result<()> {
std::fs::create_dir_all(&d)?;
std::fs::write(&tmp, text)?;
std::fs::rename(&tmp, d.join(file))
};
put().map_err(|e| format!("{}: {e}", d.display()))
}
/// A clip kept by its hash, as `HASH.EXT` (already kept is left alone).
pub fn keep_media(bytes: &[u8], ext: &str) -> String {
let name = format!("{}.{ext}", hex(&Sha256::digest(bytes)));
let d = dir().join("media");
let p = d.join(&name);
if !p.is_file() && std::fs::create_dir_all(&d).is_ok() {
let _ = std::fs::write(&p, bytes);
prune(MEDIA_CAP);
}
name
}
/// A kept clip's bytes, by its name.
pub fn media(name: &str) -> Option<Vec<u8>> {
std::fs::read(dir().join("media").join(name)).ok()
}
/// The kept media held to `cap` bytes, the least recently written going first.
pub fn prune(cap: u64) {
let Ok(rd) = std::fs::read_dir(dir().join("media")) else { return };
let mut files: Vec<(std::time::SystemTime, u64, PathBuf)> = rd
.flatten()
.filter_map(|e| e.metadata().ok().and_then(|m| Some((m.modified().ok()?, m.len(), e.path()))))
.collect();
let mut total: u64 = files.iter().map(|f| f.1).sum();
files.sort();
for (_, len, p) in files {
if total <= cap {
break;
}
if std::fs::remove_file(&p).is_ok() {
total -= len;
}
}
}
/// One call kept; its id.
#[allow(clippy::too_many_arguments)]
pub fn call(file: &str, project: Option<&str>, from: f64, to: Option<f64>, state: &str, media: &[String], route: &str, cost: f64, cached: bool) -> String {
let id = new_id("c");
let row = json!({
"id": id, "at": now(), "file": file, "ident": ident(Path::new(file)), "project": project, "from": from, "to": to, "state": state,
"media": media, "route": route, "cost": cost, "cached": cached,
});
append("calls.jsonl", &row);
id
}
/// One answer kept; its id.
pub fn answer(call: &str, file: &str, q: &Question, r: &Reading, flagged: bool) -> String {
let id = new_id("a");
let whole = serde_json::to_value(Question { calibration: None, ..q.clone() }).unwrap_or_default();
let row = json!({
"id": id, "at": now(), "call": call, "file": file, "question": q.id, "version": q.version(), "ask": q.ask,
"value": r.value, "problem": r.problem, "choice": r.choice, "says": r.says, "flagged": flagged, "calibrated": q.calibrated(),
"q": whole,
});
append("answers.jsonl", &row);
id
}
/// Every row of one of the record's files.
pub fn rows(file: &str) -> Vec<Value> {
std::fs::read_to_string(dir().join(file)).unwrap_or_default().lines().filter_map(|l| serde_json::from_str(l).ok()).collect()
}
+365
View File
@@ -0,0 +1,365 @@
//! One runner for every caller (docs/ask.feature AK3): a batch planned into calls (grouped by file, window, the files
//! beside it and what of the picture its questions look at, at most 64 questions a call, the voice question added to a
//! call whose questions depend on whether anyone speaks when that isn't known), each clip cut once, the calls
//! made in parallel, the answers streamed back as they come and kept. A pool that's spent partway keeps what came and
//! reports the rest as waiting for it. `dry` cuts the media and says what would be sent, and spends nothing. A group can
//! carry clips kept from an earlier call instead of a file to cut (`raea ask try`), and every question goes out with the
//! person's own calibration when it has earned one (calibrate.rs).
use std::collections::{BTreeSet, HashMap};
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::{Arc, Mutex, mpsc};
use raea_core_ask::{Kind, Picks, Question, Sees, Window, limits};
use raea_io_clef::{Answered, Call, Fail, Media, media};
use serde::Serialize;
use serde_json::{Value, json};
use crate::prepare::{self, Piece, VOICE};
use crate::{calibrate, record};
/// What to ask of one file: its questions (prepared), those dropped with why, a window over all of them (else each
/// question's own), and files set beside it (to pick between, or before and after).
pub struct Entry {
pub piece: Arc<Piece>,
pub window: Option<Window>,
pub questions: Vec<Question>,
pub dropped: Vec<(String, String)>,
pub with: Vec<PathBuf>,
}
/// One call's worth.
pub struct Group {
pub piece: Arc<Piece>,
pub from: f64,
pub to: Option<f64>,
pub sees: Sees,
pub hears: bool,
pub with: Vec<PathBuf>,
pub questions: Vec<Question>,
/// clips kept from an earlier call, sent again in place of cutting the file
pub kept: Option<Arc<Kept>>,
}
/// An earlier call's clips and state, and their seconds of video and sound (for the estimate).
pub struct Kept {
pub media: Media,
pub state: String,
pub video_seconds: f64,
pub sound_seconds: f64,
}
/// One answer, or why a question wasn't asked or still waits: the line `raea ask --json` prints for each.
#[derive(Debug, Clone, Default, Serialize)]
pub struct Answer {
/// its id in the record (`raea ask verdict` takes it)
pub answer: Option<String>,
pub file: String,
pub id: String,
pub version: String,
pub from: f64,
pub to: Option<f64>,
pub says: Option<String>,
pub value: Option<f64>,
pub problem: Option<f64>,
pub choice: Option<String>,
pub flagged: bool,
pub calibrated: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub not_asked: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub waits: Option<String>,
pub route: Option<String>,
pub cached: bool,
}
/// What the run came to.
#[derive(Debug, Clone, Default, Serialize)]
pub struct Summary {
pub asked: usize,
pub answered: usize,
pub calls: usize,
pub cost: f64,
pub estimate: f64,
pub pool_left: Option<f64>,
pub waiting: usize,
pub flagged: usize,
pub flagged_calibrated: usize,
pub routes: BTreeSet<String>,
/// the clips cut (each once, however many calls used it)
pub clips: usize,
}
/// What the runner tells its caller as it goes: an answer, or (dry) a call it would make.
pub enum Event<'a> {
Answer(&'a Answer),
Would(&'a Value),
}
pub struct Opts {
pub jobs: usize,
pub dry: bool,
/// how a call is made: `raea_io_clef::ask` (a test gives its own)
pub ask: fn(&Call) -> Result<Answered, Fail>,
}
impl Opts {
pub fn new(jobs: usize, dry: bool) -> Opts {
Opts { jobs, dry, ask: raea_io_clef::ask }
}
}
const NAMES: [&str; 4] = ["first", "second", "third", "fourth"];
/// A pick's options: the files given, in order (all, or all but the first, the reference).
fn picks(p: Picks, files: usize) -> Vec<String> {
let n = files.min(NAMES.len());
let skip = usize::from(p == Picks::AfterFirst);
NAMES[skip.min(n)..n].iter().map(|s| s.to_string()).collect()
}
/// The batch as calls.
pub fn plan(entries: &[Entry]) -> (Vec<Group>, Vec<Answer>) {
let mut groups: Vec<Group> = Vec::new();
let mut unasked = Vec::new();
let mine = calibrate::local();
for e in entries {
let file = e.piece.file.display().to_string();
for (id, why) in &e.dropped {
unasked.push(Answer { file: file.clone(), id: id.clone(), not_asked: Some(why.clone()), ..Default::default() });
}
for q in &e.questions {
let w = e.window.or(q.window).unwrap_or_default();
let (from, to) = (w.from.unwrap_or(0.0).max(0.0), w.to);
let mut q = q.clone();
calibrate::apply(&mut q, &mine);
if let Some(p) = q.picks {
q.kind = Kind::Choose;
q.options = picks(p, 1 + e.with.len());
}
let compares = q.picks.is_some_and(|_| q.options.len() < 2) || (q.uses.iter().any(|u| u == "with") && e.with.is_empty());
if compares {
unasked.push(Answer { file: file.clone(), version: q.version(), not_asked: Some("it compares files: set one or more beside it (--with)".into()), id: q.id, ..Default::default() });
continue;
}
// one place in each call is kept for the voice question
let same = |g: &&mut Group| Arc::ptr_eq(&g.piece, &e.piece) && g.from == from && g.to == to && g.sees == q.sees && g.with == e.with && g.questions.len() < limits::QUESTIONS - 1;
match groups.iter_mut().find(same) {
Some(g) => {
g.hears |= q.hears;
g.questions.push(q);
}
None => groups.push(Group { piece: e.piece.clone(), from, to, sees: q.sees, hears: q.hears, with: e.with.clone(), questions: vec![q], kept: None }),
}
}
}
for g in &mut groups {
g.hears &= g.piece.probe.sound || g.with.iter().any(|f| media::probe(f).is_ok_and(|p| p.sound));
if g.hears && g.piece.voice.is_none() && g.questions.iter().any(|q| q.when.voice.is_some()) {
g.questions.push(prepare::voice_question());
}
}
(groups, unasked)
}
/// Clips cut once a run, by what they are.
type Cuts = Mutex<HashMap<String, Result<Arc<Vec<u8>>, String>>>;
fn cut(cuts: &Cuts, key: String, make: impl FnOnce() -> Result<Vec<u8>, String>) -> Result<Arc<Vec<u8>>, String> {
if let Some(r) = cuts.lock().unwrap().get(&key) {
return r.clone();
}
let r = make().map(Arc::new);
cuts.lock().unwrap().insert(key, r.clone());
r
}
/// A group's media, and its seconds of video and of sound (for the estimate).
fn media_of(g: &Group, cuts: &Cuts) -> Result<(Media, f64, f64), String> {
if let Some(k) = &g.kept {
return Ok((k.media.clone(), k.video_seconds, k.sound_seconds));
}
let files: Vec<&Path> = std::iter::once(g.piece.file.as_path()).chain(g.with.iter().map(PathBuf::as_path)).collect();
let (from, to) = (g.from, g.to);
let span = |p: &media::Probe| (to.unwrap_or(p.seconds) - from).clamp(0.0, p.seconds.max(0.1));
let mut m = Media::default();
let (mut vs, mut ss) = (0.0, 0.0);
for f in &files {
let p = if *f == g.piece.file.as_path() { g.piece.probe } else { media::probe(f)? };
let k = |what: &str| format!("{what}:{}:{from}:{to:?}", f.display());
match g.sees {
Sees::Video if p.video => {
m.videos.push(cut(cuts, k("video"), || media::video(f, from, to))?.to_vec());
vs += span(&p).min(limits::VIDEO_SECONDS);
}
Sees::Video | Sees::Stills if !p.video => m.stills.push(cut(cuts, k("still"), || media::still(f, None))?.to_vec()),
Sees::Stills if files.len() == 1 => {
let len = span(&p);
for i in 0..limits::STILLS {
let at = from + len * (i as f64 + 0.5) / limits::STILLS as f64;
m.stills.push(cut(cuts, k(&format!("frame{i}")), || media::still(f, Some(at)))?.to_vec());
}
}
Sees::Stills => m.stills.push(cut(cuts, k("frame"), || media::still(f, Some(from + span(&p) / 2.0)))?.to_vec()),
_ => {}
}
if g.hears && p.sound {
m.sounds.push(cut(cuts, k("sound"), || media::sound(f, from, to))?.to_vec());
ss += span(&p).min(limits::SOUND_SECONDS);
}
}
if m.videos.len() > limits::VIDEOS || m.stills.len() > limits::STILLS || m.sounds.len() > limits::SOUNDS {
return Err(format!("too many files for one call: at most {} videos, {} stills and {} sounds", limits::VIDEOS, limits::STILLS, limits::SOUNDS));
}
Ok((m, vs, ss))
}
enum Done {
Asked(Answered, Vec<String>, String),
Would(Value),
Failed(String),
Waits(String),
}
/// Every entry asked, at most `jobs` calls at once, each event told to `out` as it comes (in the caller's thread).
pub fn run(entries: Vec<Entry>, o: &Opts, out: &mut dyn FnMut(Event)) -> Summary {
let (groups, unasked) = plan(&entries);
run_groups(groups, unasked, o, out)
}
/// Planned groups asked, the questions not asked told first.
pub fn run_groups(groups: Vec<Group>, unasked: Vec<Answer>, o: &Opts, out: &mut dyn FnMut(Event)) -> Summary {
let mut sum = Summary::default();
for a in &unasked {
out(Event::Answer(a));
}
let cuts: Cuts = Mutex::default();
let (next, spent) = (AtomicUsize::new(0), AtomicBool::new(false));
let spent_why = Mutex::new(String::new());
let (tx, rx) = mpsc::channel::<(usize, Done)>();
std::thread::scope(|s| {
for _ in 0..o.jobs.clamp(1, 16).min(groups.len().max(1)) {
let (tx, groups, cuts, next, spent, spent_why) = (tx.clone(), &groups, &cuts, &next, &spent, &spent_why);
s.spawn(move || {
loop {
let i = next.fetch_add(1, Ordering::Relaxed);
let Some(g) = groups.get(i) else { break };
let done = if spent.load(Ordering::Relaxed) {
Done::Waits(spent_why.lock().unwrap().clone())
} else {
match media_of(g, cuts) {
Err(e) => Done::Failed(e),
Ok((m, vs, ss)) => {
let state = g.kept.as_ref().map_or_else(|| g.piece.state(), |k| k.state.clone());
let call = Call { state, questions: g.questions.clone(), media: m };
let estimate = limits::estimate(vs, ss, call.media.stills.len(), call.state.len(), call.questions.len());
if o.dry {
Done::Would(would(g, &call, estimate))
} else {
match (o.ask)(&call) {
Ok(a) => Done::Asked(a, kept(&call.media), call.state),
Err(Fail::Spent(why)) => {
spent.store(true, Ordering::Relaxed);
*spent_why.lock().unwrap() = why.clone();
Done::Waits(why)
}
Err(f) => Done::Failed(f.to_string()),
}
}
}
}
};
if tx.send((i, done)).is_err() {
break;
}
}
});
}
drop(tx);
for (i, done) in rx {
told(&groups[i], done, &mut sum, out);
}
});
sum.clips = cuts.lock().unwrap().values().filter(|c| c.is_ok()).count();
sum
}
/// The clips a call sent, kept by hash for `raea ask try`.
fn kept(m: &Media) -> Vec<String> {
let each = |v: &[Vec<u8>], ext: &str| v.iter().map(|b| record::keep_media(b, ext)).collect::<Vec<_>>();
[each(&m.videos, "mp4"), each(&m.stills, "jpg"), each(&m.sounds, "mp3")].concat()
}
fn would(g: &Group, call: &Call, estimate: f64) -> Value {
let sizes = |v: &[Vec<u8>]| v.iter().map(Vec::len).collect::<Vec<_>>();
json!({
"file": g.piece.file.display().to_string(), "from": g.from, "to": g.to,
"questions": call.questions.iter().map(|q| json!({"id": q.id, "ask": q.ask, "type": q.kind})).collect::<Vec<_>>(),
"state": call.state,
"media": {"videos": sizes(&call.media.videos), "stills": sizes(&call.media.stills), "sounds": sizes(&call.media.sounds)},
"estimate_usd": estimate,
})
}
/// A finished call's answers told, kept and counted. When the voice question went along, the variant that doesn't
/// apply (sound where no one speaks, sound-silent where someone does) is set aside.
fn told(g: &Group, done: Done, sum: &mut Summary, out: &mut dyn FnMut(Event)) {
let file = g.piece.file.display().to_string();
// the voice question only decides between variants: it isn't told
let asked: Vec<&Question> = g.questions.iter().filter(|q| q.id != VOICE).collect();
let base = |q: &Question| Answer { file: file.clone(), id: q.id.clone(), version: q.version(), from: g.from, to: g.to, calibrated: q.calibrated(), ..Default::default() };
match done {
Done::Would(v) => {
sum.calls += 1;
sum.estimate += v["estimate_usd"].as_f64().unwrap_or(0.0);
out(Event::Would(&v));
}
Done::Failed(why) | Done::Waits(why) if g.questions.is_empty() => drop(why),
Done::Failed(why) => asked.iter().for_each(|q| out(Event::Answer(&Answer { not_asked: Some(why.clone()), ..base(q) }))),
Done::Waits(why) => {
sum.waiting += asked.len();
asked.iter().for_each(|q| out(Event::Answer(&Answer { waits: Some(format!("waits for the pool: {why}")), ..base(q) })));
}
Done::Asked(a, clips, state) => {
sum.calls += 1;
sum.asked += asked.len();
sum.cost += a.cost;
sum.pool_left = a.pool_left.or(sum.pool_left);
sum.routes.insert(a.route.clone());
let project = g.piece.project.as_ref().map(|p| p.display().to_string());
let call = record::call(&file, project.as_deref(), g.from, g.to, &state, &clips, &a.route, a.cost, a.cached);
let heard = a.answers.get(VOICE).and_then(|v| v["noul"].as_f64());
for q in g.questions.iter().filter(|q| q.id != VOICE) {
let Some(ans) = a.answers.get(&q.id) else {
out(Event::Answer(&Answer { not_asked: Some("no answer came back for it".into()), ..base(q) }));
continue;
};
if let (Some(p), Some(v)) = (heard, q.when.voice) {
if v != (p >= 0.5) {
let who = if p >= 0.5 { "someone speaks" } else { "no one speaks" };
out(Event::Answer(&Answer { not_asked: Some(format!("set aside: {who} ({p:.2})")), ..base(q) }));
continue;
}
}
let r = q.read(ans);
let flagged = q.flagged(&r);
sum.answered += 1;
sum.flagged += usize::from(flagged);
sum.flagged_calibrated += usize::from(flagged && q.calibrated());
let id = record::answer(&call, &file, q, &r, flagged);
out(Event::Answer(&Answer {
answer: Some(id),
says: Some(r.says),
value: Some(r.value),
problem: r.problem,
choice: r.choice,
flagged,
route: Some(a.route.clone()),
cached: a.cached,
..base(q)
}));
}
}
}
}
+174
View File
@@ -0,0 +1,174 @@
use std::path::PathBuf;
use std::sync::Arc;
use std::sync::atomic::{AtomicUsize, Ordering};
use raea_core_ask::{Facts, Kind, Picks, Question, Sees, Window, library};
use raea_io_clef::media::Probe;
use raea_io_clef::{Answered, Call, Fail};
use serde_json::{Map, Value, json};
use crate::prepare::{self, Piece, VOICE};
use crate::runner::{self, Answer, Entry, Event, Opts};
fn rubric() -> String {
std::fs::read_to_string(concat!(env!("CARGO_MANIFEST_DIR"), "/../../sdk/guides/craft/rubric.md")).expect("the craft rubric")
}
pub(crate) fn setup() {
static ONCE: std::sync::Once = std::sync::Once::new();
// SAFETY: set once, before any test reads it, to the same value for every test
ONCE.call_once(|| unsafe { std::env::set_var("RAEA_ASK_DIR", std::env::temp_dir().join(format!("raea-ask-test-{}", std::process::id()))) });
}
fn ids(qs: &[Question]) -> Vec<&str> {
qs.iter().map(|q| q.id.as_str()).collect()
}
fn piece(file: &str, voice: Option<bool>) -> Arc<Piece> {
let probe = Probe { seconds: 10.0, video: true, still: false, sound: true };
Arc::new(Piece { file: PathBuf::from(file), probe, voice, ..Default::default() })
}
fn entry(p: &Arc<Piece>, window: Option<Window>, questions: Vec<Question>) -> Entry {
Entry { piece: p.clone(), window, questions, dropped: vec![], with: vec![] }
}
#[test]
fn no_one_speaking_asks_sound_silent_and_a_file_without_sound_isnt_listened_to() {
let r = rubric();
let sound = library::find("sound", Some(&r)).unwrap();
let silent = Facts { voice: Some(false), sound: true, video: true, ..Default::default() };
let (asked, dropped) = prepare::keep(vec![sound.clone()], &silent, Some(&r));
assert_eq!(ids(&asked), ["sound-silent"]);
assert!(dropped[0].1.contains("no one speaks") && dropped[0].1.contains("sound-silent instead"), "{dropped:?}");
let mut listen = Question::plain("loud", "Is it loud?");
listen.sees = Sees::Nothing;
let (asked, dropped) = prepare::keep(vec![listen], &Facts { video: true, ..Default::default() }, None);
assert!(asked.is_empty() && dropped[0].1.contains("no sound"), "{dropped:?}");
// not knowing whether anyone speaks, both are kept, and the plan adds the voice question to their call
let unknown = Facts { sound: true, video: true, ..Default::default() };
let (asked, _) = prepare::keep(vec![sound], &unknown, Some(&r));
assert_eq!(ids(&asked), ["sound", "sound-silent"]);
let (groups, _) = runner::plan(&[entry(&piece("a.mp4", None), None, asked)]);
assert_eq!(groups.len(), 1);
assert_eq!(ids(&groups[0].questions), ["sound", "sound-silent", VOICE]);
}
#[test]
fn the_state_says_what_the_piece_is() {
let mut p = (*piece("a.mp4", Some(false))).clone();
p.brief = json!({"title": "Spring launch", "mode": ["pitch"], "audience": "busy founders", "believe": "it saves them an hour."});
p.extra = Some("raea measured -14 LUFS.".into());
let s = p.state();
for want in ["A pitch piece: \"Spring launch\".", "It's for: busy founders.", "believing: it saves them an hour.", "No one speaks", "runs 10 s", "-14 LUFS"] {
assert!(s.contains(want), "{want}: {s}");
}
assert_eq!(p.facts().modes, ["pitch"]);
// no brief and the caller's own state: the caller says what the piece is
let own = Piece { extra: Some("A game: \"Rover\".".into()), ..(*piece("a.mp4", None)).clone() };
assert_eq!(own.state(), "It runs 10 s. A game: \"Rover\".");
}
#[test]
fn calls_hold_64_questions_and_split_by_window_and_what_they_look_at() {
let p = piece("a.mp4", Some(true));
let many: Vec<Question> = (0..65).map(|i| Question::plain(&format!("q{i}"), "Is it loud?")).collect();
let (groups, _) = runner::plan(&[entry(&p, None, many)]);
assert_eq!(groups.iter().map(|g| g.questions.len()).collect::<Vec<_>>(), [63, 2], "one place a call is kept for the voice question");
let hook = Window { from: Some(0.0), to: Some(3.0) };
let mut still = Question::plain("s", "Is the text readable?");
still.sees = Sees::Stills;
let (groups, _) = runner::plan(&[entry(&p, None, vec![Question::plain("a", "Is it loud?"), still]), entry(&p, Some(hook), vec![Question::plain("b", "Is it loud?")])]);
assert_eq!(groups.len(), 3);
let mut pick = Question::plain("best", "Which suits the brief best?");
pick.picks = Some(Picks::All);
let (groups, unasked) = runner::plan(&[entry(&p, None, vec![pick])]);
assert!(groups.is_empty() && unasked[0].not_asked.as_deref().is_some_and(|n| n.contains("--with")), "{unasked:?}");
let (groups, unasked) = runner::plan(&[entry(&p, None, vec![library::find("decide.changed", None).unwrap()])]);
assert!(groups.is_empty() && !unasked[0].version.is_empty(), "{unasked:?}");
}
/// clef's answers as a fake gives them: yes 0.8 to every yes question (0.9 to the voice question), the lowest level of
/// a grade.
fn answers(call: &Call) -> Map<String, Value> {
call.questions
.iter()
.map(|q| {
let a = match q.kind {
Kind::Yes => json!({"noul": if q.id == VOICE { 0.9 } else { 0.8 }}),
_ => json!({"choice": q.levels()[0], "probabilities": {q.levels()[0].clone(): 1.0}}),
};
(q.id.clone(), a)
})
.collect()
}
fn answered(call: &Call) -> Answered {
Answered { answers: answers(call), cost: 0.001, cached: false, route: "a test".into(), pool_left: Some(1.5) }
}
/// A 2 s clip with a picture and a tone, made with FFmpeg.
fn clip(name: &str) -> PathBuf {
let out = std::env::temp_dir().join(format!("raea-ask-{}-{name}.mp4", std::process::id()));
let ff = raea_io_assets::ffmpeg_tool("ffmpeg", false).expect("FFmpeg");
let ok = std::process::Command::new(ff)
.args(["-y", "-v", "error", "-f", "lavfi", "-i", "testsrc=size=320x240:rate=10:duration=2", "-f", "lavfi", "-i", "sine=frequency=440:duration=2"])
.args(["-c:v", "mpeg4", "-c:a", "aac", "-shortest"])
.arg(&out)
.status()
.expect("FFmpeg ran");
assert!(ok.success());
out
}
fn run(entries: Vec<Entry>, jobs: usize, ask: fn(&Call) -> Result<Answered, Fail>) -> (runner::Summary, Vec<Answer>) {
setup();
let mut got = Vec::new();
let sum = runner::run(entries, &Opts { jobs, dry: false, ask }, &mut |e| {
if let Event::Answer(a) = e {
got.push(a.clone());
}
});
(sum, got)
}
#[test]
fn each_clip_is_cut_once_and_the_voice_answer_sets_a_variant_aside() {
let file = clip("once");
let p = Arc::new(Piece::read(&file, None, None, None, None).unwrap());
assert!(p.probe.video && p.probe.sound && p.voice.is_none());
let r = rubric();
let (asked, _) = prepare::keep(vec![library::find("sound", Some(&r)).unwrap()], &p.facts(), Some(&r));
let mut listen = Question::plain("loud", "Is it too loud?");
listen.sees = Sees::Nothing;
let (sum, got) = run(vec![entry(&p, None, [asked, vec![listen]].concat())], 4, |c| Ok(answered(c)));
assert_eq!((sum.calls, sum.clips), (2, 2), "the picture's call and the sound's call share one cut of the sound");
let by = |id: &str| got.iter().find(|a| a.id == id).unwrap_or_else(|| panic!("{id}: {got:?}"));
assert!(by("sound").says.is_some() && by("loud").flagged);
assert!(by("sound-silent").not_asked.as_deref().is_some_and(|n| n.contains("someone speaks (0.90)")), "{:?}", by("sound-silent"));
assert!(!got.iter().any(|a| a.id == VOICE), "the voice question isn't told");
assert_eq!((sum.answered, sum.cost, sum.pool_left), (2, 0.002, Some(1.5)));
}
static CALLS: AtomicUsize = AtomicUsize::new(0);
#[test]
fn a_pool_spent_partway_keeps_what_came_and_the_rest_waits() {
let file = clip("spent");
let p = Arc::new(Piece::read(&file, None, None, Some(true), None).unwrap());
let at = |s: f64| Some(Window { from: Some(s), to: Some(s + 0.5) });
let entries = (0..4).map(|i| entry(&p, at(i as f64 * 0.4), vec![Question::plain(&format!("w{i}"), "Is it loud?")])).collect();
let (sum, got) = run(entries, 1, |c| match CALLS.fetch_add(1, Ordering::SeqCst) {
2 => Err(Fail::Spent("this month's pool is used up".into())),
_ => Ok(answered(c)),
});
assert_eq!((sum.calls, sum.answered, sum.waiting), (2, 2, 2));
assert_eq!(got.iter().filter(|a| a.waits.as_deref().is_some_and(|w| w.contains("used up"))).count(), 2);
assert_eq!(CALLS.load(Ordering::SeqCst), 3, "nothing is sent after the pool is spent");
}
#[test]
fn own_words_keep_their_id() {
assert_eq!(crate::verbs::own_id("Does the music fight the voice?"), "own-does-the-music-fight-the-voice");
assert_eq!(crate::verbs::own_id("Does the music fight the voice?"), crate::verbs::own_id("does the MUSIC fight the voice"));
}
+385
View File
@@ -0,0 +1,385 @@
//! `raea ask` (docs/ask.feature AK3): questions about a piece's picture and sound, from the command line or a batch,
//! prepared (prepare.rs), asked in parallel (runner.rs) and kept (record.rs). It prints as answers come: words and a
//! probability a line, or with `--json` one JSON object a line (an answer, a call `--dry` would make, then the summary).
//! `--gate` exits 1 when a calibrated question flags (`--gate any`: when any does), for a pipeline. `verdict`,
//! `calibrate` and `try` label the answers, calibrate the questions on them and measure new words (labels.rs,
//! calibrate.rs; AK6-AK7).
use std::collections::{BTreeMap, HashMap};
use std::io::Read as _;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use raea_core_ask::{Kind, Question, Window, library};
use serde_json::{Value, json};
use crate::labels::{self, span};
use crate::prepare::{self, Piece};
use crate::runner::{self, Entry, Event, Opts};
use crate::{calibrate, record};
pub const USAGE: &str = "raea ask FILE [QUESTION...] [--choose A,B,C] [--grade] [--rate N] [--flag ANSWERS] [--set NAME] [--std ID] [--from S] [--to S] [--at S] [--with FILE2] [--brief brief.ts|none] [--words words.json] [--voice yes|no] [--state TEXT] [--dry] [--json] [--gate [any]] [--jobs N] | ask --batch FILE [--dry] [--json] [--gate [any]] [--jobs N] | ask list [SET] [--json] | ask verdict ANSWER WORD [--eye NAME] | ask calibrate [ID] [--json] | ask try WORDS --like ID [--dry] [--json] [--jobs N] (questions about a piece's picture and sound, answered by clef-omni and paid from your raea plan's pool when the app is signed in, else RAEA_AGENT_KEY's, else your own Cloudflare keys: your own words, or the standard sets (rubric, av, defects, platform, decide, make); every question about one clip goes in one call, --batch (a JSON list or JSON lines, - for stdin) asks many clips in parallel; --dry says what would be sent and spends nothing; answers are advice until a question is calibrated: verdict labels an answer, calibrate holds each question to your verdicts, notes and approvals, try asks new words of its labelled clips)";
const VALUED: [&str; 17] = ["--choose", "--rate", "--flag", "--set", "--std", "--from", "--to", "--at", "--with", "--brief", "--words", "--voice", "--state", "--jobs", "--batch", "--eye", "--like"];
const BARE: [&str; 4] = ["--grade", "--dry", "--json", "--gate"];
/// The arguments: the words that aren't flags, each flag's values, and whether `--gate` is `--gate any`.
#[derive(Default)]
struct Args {
words: Vec<String>,
flags: BTreeMap<String, Vec<String>>,
gate_any: bool,
}
impl Args {
fn parse(args: &[String]) -> Result<Args, String> {
let mut a = Args::default();
let mut i = 0;
while i < args.len() {
let s = args[i].as_str();
if VALUED.contains(&s) {
let v = args.get(i + 1).ok_or_else(|| format!("ask: {s} takes a value\nusage: {USAGE}"))?;
a.flags.entry(s.into()).or_default().push(v.clone());
i += 1;
} else if BARE.contains(&s) {
a.flags.entry(s.into()).or_default();
if s == "--gate" && args.get(i + 1).is_some_and(|v| v == "any") {
a.gate_any = true;
i += 1;
}
} else if s.starts_with("--") {
return Err(format!("ask doesn't take {s}\nusage: {USAGE}"));
} else {
a.words.push(s.into());
}
i += 1;
}
Ok(a)
}
fn has(&self, f: &str) -> bool {
self.flags.contains_key(f)
}
fn one(&self, f: &str) -> Option<&str> {
self.flags.get(f).and_then(|v| v.last()).map(String::as_str)
}
fn num(&self, f: &str) -> Result<Option<f64>, String> {
self.one(f).map(|v| v.parse::<f64>().map_err(|_| format!("ask: {f} takes seconds, got {v:?}"))).transpose()
}
fn list(&self, f: &str) -> Vec<String> {
self.flags.get(f).into_iter().flatten().flat_map(|v| v.split(',')).map(|s| s.trim().to_string()).filter(|s| !s.is_empty()).collect()
}
}
/// The craft rubric's text, where the guides are installed, for the `rubric` set.
pub fn rubric_md() -> Option<String> {
std::fs::read_to_string(raea_io_home::home().join("sdk/guides/craft/rubric.md")).ok()
}
/// A question's id from its words: `own-` and its first words, so the same words keep their id.
pub fn own_id(words: &str) -> String {
let slug: Vec<String> = words.split(|c: char| !c.is_ascii_alphanumeric()).filter(|w| !w.is_empty()).take(6).map(str::to_lowercase).collect();
let mut id = format!("own-{}", slug.join("-"));
id.truncate(raea_core_ask::limits::ID_LEN);
id
}
/// The questions an entry names: its own words (shaped by the kind flags), its sets and its standard ids.
fn named(own: &[Question], sets: &[String], std: &[String], rubric: Option<&str>) -> Result<Vec<Question>, String> {
let mut qs = own.to_vec();
for s in sets {
qs.extend(library::set(s, rubric)?);
}
for id in std {
qs.push(library::find(id, rubric).ok_or_else(|| format!("ask: no standard question {id} (raea ask list)"))?);
}
Ok(qs)
}
fn shaped(words: &str, a: &Args) -> Result<Question, String> {
let mut q = Question::plain(&own_id(words), words);
if let Some(c) = a.one("--choose") {
q.kind = Kind::Choose;
q.options = c.split(',').map(|s| s.trim().to_string()).filter(|s| !s.is_empty()).collect();
} else if let Some(n) = a.one("--rate") {
let n: usize = n.parse().map_err(|_| format!("ask: --rate takes how many levels, got {n:?}"))?;
q.kind = Kind::Rate;
q.options = (1..=n).map(|i| i.to_string()).collect();
} else if a.has("--grade") {
q.kind = Kind::Grade;
}
q.flags = a.list("--flag");
if let Some(why) = raea_core_ask::limits::check(&q) {
return Err(format!("ask: {why}"));
}
Ok(q)
}
/// The window from --from, --to and --at (three seconds around it).
fn window(a: &Args) -> Result<Option<Window>, String> {
if let Some(at) = a.num("--at")? {
return Ok(Some(Window { from: Some((at - 1.5).max(0.0)), to: Some(at + 1.5) }));
}
let (from, to) = (a.num("--from")?, a.num("--to")?);
Ok((from.is_some() || to.is_some()).then_some(Window { from, to }))
}
fn voice(v: Option<&str>) -> Result<Option<bool>, String> {
match v {
None => Ok(None),
Some("yes" | "true") => Ok(Some(true)),
Some("no" | "false") => Ok(Some(false)),
Some(v) => Err(format!("ask: --voice takes yes or no, got {v:?}")),
}
}
/// Pieces read once a run, by what they were read with.
type Pieces = HashMap<String, Arc<Piece>>;
#[allow(clippy::too_many_arguments)]
fn piece(pieces: &mut Pieces, file: &str, brief: Option<&str>, words: Option<&str>, voice: Option<bool>, state: Option<String>) -> Result<Arc<Piece>, String> {
let key = format!("{file}\u{1f}{brief:?}\u{1f}{words:?}\u{1f}{voice:?}\u{1f}{state:?}");
if let Some(p) = pieces.get(&key) {
return Ok(p.clone());
}
let p = Arc::new(Piece::read(Path::new(file), brief.map(Path::new), words.map(Path::new), voice, state).map_err(|e| format!("ask: {e}"))?);
pieces.insert(key, p.clone());
Ok(p)
}
fn entry(p: Arc<Piece>, window: Option<Window>, qs: Vec<Question>, with: Vec<PathBuf>, rubric: Option<&str>) -> Entry {
let (questions, dropped) = prepare::keep(qs, &p.facts(), rubric);
Entry { piece: p, window, questions, dropped, with }
}
/// The command line's one entry.
fn from_args(a: &Args, rubric: Option<&str>, pieces: &mut Pieces) -> Result<Vec<Entry>, String> {
let Some((file, words)) = a.words.split_first() else { return Err(USAGE.into()) };
let own = words.iter().map(|w| shaped(w, a)).collect::<Result<Vec<_>, _>>()?;
let qs = named(&own, &a.list("--set"), &a.list("--std"), rubric)?;
if qs.is_empty() {
return Err(format!("ask: nothing to ask: give a question in words, --set or --std (raea ask list)\nusage: {USAGE}"));
}
let p = piece(pieces, file, a.one("--brief"), a.one("--words"), voice(a.one("--voice"))?, a.one("--state").map(str::to_string))?;
let with = a.flags.get("--with").into_iter().flatten().map(PathBuf::from).collect();
Ok(vec![entry(p, window(a)?, qs, with, rubric)])
}
/// A batch: a JSON list of entries or JSON lines, from a file or stdin (`-`). Each entry is {file, window?, questions?
/// (words or questions), set?, std?, with?, brief?, words?, voice?, state?}.
fn from_batch(path: &str, rubric: Option<&str>, pieces: &mut Pieces) -> Result<Vec<Entry>, String> {
let text = match path {
"-" => {
let mut s = String::new();
std::io::stdin().read_to_string(&mut s).map_err(|e| format!("ask: stdin: {e}"))?;
s
}
p => std::fs::read_to_string(p).map_err(|e| format!("ask: {p}: {e}"))?,
};
let rows: Vec<Value> = match serde_json::from_str::<Value>(text.trim()) {
Ok(Value::Array(a)) => a,
Ok(v @ Value::Object(_)) => vec![v],
_ => text.lines().filter(|l| !l.trim().is_empty()).enumerate().map(|(i, l)| serde_json::from_str(l).map_err(|e| format!("ask: {path} line {}: {e}", i + 1))).collect::<Result<_, _>>()?,
};
let strs = |v: &Value| -> Vec<String> {
match v {
Value::String(s) => s.split(',').map(|s| s.trim().to_string()).collect(),
Value::Array(a) => a.iter().filter_map(Value::as_str).map(str::to_string).collect(),
_ => vec![],
}
};
let mut out = Vec::new();
for (n, r) in rows.iter().enumerate() {
let at = |e: String| format!("ask: {path} entry {}: {e}", n + 1);
let file = r["file"].as_str().ok_or_else(|| at("it has no file".into()))?;
let own = r["questions"].as_array().into_iter().flatten().map(|q| match q {
Value::String(w) => Ok(Question::plain(&own_id(w), w)),
q => serde_json::from_value::<Question>(q.clone()).map_err(|e| e.to_string()),
});
let own = own.collect::<Result<Vec<_>, _>>().map_err(at)?;
let qs = named(&own, &strs(&r["set"]), &strs(&r["std"]), rubric).map_err(at)?;
let window: Option<Window> = serde_json::from_value(r["window"].clone()).ok();
let v = voice(r["voice"].as_str()).map_err(at)?.or(r["voice"].as_bool());
let p = piece(pieces, file, r["brief"].as_str(), r["words"].as_str(), v, r["state"].as_str().map(str::to_string)).map_err(at)?;
out.push(entry(p, window, qs, strs(&r["with"]).into_iter().map(PathBuf::from).collect(), rubric));
}
Ok(out)
}
/// `raea ask list [SET]`: the standard questions.
fn list(a: &Args, rubric: Option<&str>) -> Result<String, String> {
let sets: Vec<String> = match a.words.get(1) {
Some(s) => vec![s.clone()],
None => library::SETS.iter().map(|s| s.to_string()).collect(),
};
let mut out = Vec::new();
let mine = calibrate::local();
for s in &sets {
let mut qs = library::set(s, rubric)?;
qs.iter_mut().for_each(|q| calibrate::apply(q, &mine));
if a.has("--json") {
out.push(json!({"set": s, "questions": qs}).to_string());
continue;
}
out.push(format!("{s}:"));
for q in qs {
let how = if q.calibrated() { "calibrated" } else { "advice" };
out.push(format!(" {:<28} {:<6} {:<10} {}", q.id, format!("{:?}", q.kind).to_lowercase(), how, q.ask));
}
}
Ok(out.join("\n"))
}
/// An event as a line of text.
fn line(e: &Event, files: usize) -> String {
match e {
Event::Would(v) => {
let qs: Vec<&str> = v["questions"].as_array().into_iter().flatten().filter_map(|q| q["id"].as_str()).collect();
let m = &v["media"];
let kb = |k: &str| m[k].as_array().map(|a| a.iter().filter_map(Value::as_u64).map(|b| format!("{} KB", b / 1024)).collect::<Vec<_>>().join(", ")).unwrap_or_default();
format!(
"would ask {} ({}) about {}:\n {}\n videos [{}], stills [{}], sounds [{}], about ${:.4}\n state: {}",
qs.len(),
span(v["from"].as_f64().unwrap_or(0.0), v["to"].as_f64()),
v["file"].as_str().unwrap_or(""),
qs.join(", "),
kb("videos"),
kb("stills"),
kb("sounds"),
v["estimate_usd"].as_f64().unwrap_or(0.0),
v["state"].as_str().unwrap_or("")
)
}
Event::Answer(a) => {
let who = if files > 1 { format!("{}: ", a.file) } else { String::new() };
let what = match (&a.says, &a.not_asked, &a.waits) {
(Some(s), ..) => format!("{s} [{}]{}", span(a.from, a.to), if a.flagged && a.calibrated { " <- finding" } else if a.flagged { " <- flagged" } else { "" }),
(_, Some(n), _) => format!("not asked: {n}"),
(.., Some(w)) => w.clone(),
_ => "no answer".into(),
};
format!("{who}{:<34} {what}", a.id)
}
}
}
/// `raea ask ...` with its exit code: 0, or 1 when it couldn't ask or a gate failed.
pub fn cli(args: &[String]) -> i32 {
match run(args) {
Ok(code) => code,
Err(e) => {
eprintln!("{e}");
1
}
}
}
fn run(args: &[String]) -> Result<i32, String> {
let a = Args::parse(args)?;
let rubric = rubric_md();
let jobs = a.one("--jobs").map(|j| j.parse::<usize>().map_err(|_| format!("ask: --jobs takes a number, got {j:?}"))).transpose()?.unwrap_or(4);
let sub = a.words.first().map(String::as_str).filter(|w| !Path::new(w).exists());
match sub {
Some("list") => {
println!("{}", list(&a, rubric.as_deref())?);
return Ok(0);
}
Some("verdict") => {
let [_, answer, said] = a.words.as_slice() else { return Err(format!("ask verdict ANSWER WORD: the answer's id (from --json or {}) and your answer to its question", record::dir().join("answers.jsonl").display())) };
println!("{}", labels::verdict(answer, said, a.one("--eye"))?);
return Ok(0);
}
Some("calibrate") => return calibrated(&a),
Some("try") => return tried(&a, jobs),
_ => {}
}
let mut pieces = Pieces::new();
let entries = match a.one("--batch") {
Some(b) => from_batch(b, rubric.as_deref(), &mut pieces)?,
None => from_args(&a, rubric.as_deref(), &mut pieces)?,
};
let (json_out, dry) = (a.has("--json"), a.has("--dry"));
let files = pieces.len();
let sum = runner::run(entries, &Opts::new(jobs, dry), &mut |e| {
match (&e, json_out) {
(Event::Answer(r), true) => println!("{}", serde_json::to_string(r).unwrap_or_default()),
(Event::Would(v), true) => println!("{}", json!({"would": v})),
(e, false) => println!("{}", line(e, files)),
}
});
if json_out {
println!("{}", json!({"summary": sum}));
} else if dry {
println!("{} call{}, about ${:.4}; nothing was sent", sum.calls, if sum.calls == 1 { "" } else { "s" }, sum.estimate);
} else if sum.calls > 0 {
let routes: Vec<&str> = sum.routes.iter().map(String::as_str).collect();
let left = sum.pool_left.map(|l| format!(", ${l:.2} left this month")).unwrap_or_default();
let waiting = if sum.waiting > 0 { format!("; {} wait for the pool", sum.waiting) } else { String::new() };
println!(
"asked {} question{} in {} call{} through {}: ${:.4}{left}{waiting}. Answers are advice until a question is calibrated (docs/ask.feature AK7).",
sum.asked,
if sum.asked == 1 { "" } else { "s" },
sum.calls,
if sum.calls == 1 { "" } else { "s" },
routes.join(" and "),
sum.cost
);
}
if !dry && sum.calls == 0 {
return Err("ask: nothing was asked (each question's line says why)".into());
}
// a gate fails on a flag (a calibrated one, or with `any` any), and on questions still waiting for the pool
let flagged = if a.gate_any { sum.flagged } else { sum.flagged_calibrated };
Ok(i32::from(a.has("--gate") && (flagged > 0 || sum.waiting > 0)))
}
/// A version's standing as a line, with its misses below when it doesn't separate.
fn standing_line(s: &calibrate::Standing) -> String {
let auc = s.auc.map_or_else(|| "no AUC".to_string(), |a| format!("AUC {a:.2}"));
let mut out = format!("{} ({}) \"{}\": {}, {auc} on {} labels; {}", s.id, &s.version[..8.min(s.version.len())], s.ask, s.state, s.problems + s.clean, s.why);
if s.others > 0 {
out += &format!(" ({} from other eyes, not counted)", s.others);
}
for m in &s.misses {
let what = if m.bad { "a problem it scored" } else { "clean work it scored" };
out += &format!("\n {what} {:.2}: {} ({}){}", m.problem, m.file, m.span, m.note.as_ref().map(|n| format!(" \"{n}\"")).unwrap_or_default());
}
out
}
/// `raea ask calibrate [ID]`: the feed's labels read again and each labelled question held to its labels.
fn calibrated(a: &Args) -> Result<i32, String> {
let (all, (yes, no)) = calibrate::calibrate(a.words.get(1).map(String::as_str))?;
if a.has("--json") {
println!("{}", json!({"feed": {"problems": yes, "clean": no}}));
all.iter().for_each(|s| println!("{}", serde_json::to_string(s).unwrap_or_default()));
return Ok(0);
}
println!("from the feed: {yes} note{} that saw a problem, {no} approval{} without one", if yes == 1 { "" } else { "s" }, if no == 1 { "" } else { "s" });
if all.is_empty() {
println!("no labelled questions yet: raea ask verdict ANSWER WORD labels one, and your notes on a posted render do too");
}
all.iter().for_each(|s| println!("{}", standing_line(s)));
Ok(0)
}
/// `raea ask try WORDS --like ID`: new words asked of a question's labelled clips, both held to the same labels.
fn tried(a: &Args, jobs: usize) -> Result<i32, String> {
let words = a.words[1..].join(" ");
let like = a.one("--like").ok_or("ask try WORDS --like ID: the question whose labelled clips the new words are asked of")?;
if words.trim().is_empty() {
return Err("ask try WORDS --like ID: the new words".into());
}
let json_out = a.has("--json");
let (sum, both) = calibrate::try_words(like, &words, &Opts::new(jobs, a.has("--dry")), &mut |e| match (&e, json_out) {
(Event::Would(v), true) => println!("{}", json!({"would": v})),
(Event::Answer(r), true) => println!("{}", serde_json::to_string(r).unwrap_or_default()),
(e, false) => println!("{}", line(e, 2)),
})?;
match (both, json_out) {
(None, true) => println!("{}", json!({"summary": sum})),
(None, false) => println!("{} call{}, about ${:.4}; nothing was sent", sum.calls, if sum.calls == 1 { "" } else { "s" }, sum.estimate),
(Some((old, new)), true) => println!("{}", json!({"summary": sum, "old": old, "new": new})),
(Some((old, new)), false) => println!("${:.4} for {} calls\nold words: {}\nnew words: {}", sum.cost, sum.calls, standing_line(&old), standing_line(&new)),
}
Ok(i32::from(!a.has("--dry") && sum.calls == 0))
}
+4 -4
View File
@@ -4,15 +4,15 @@ version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "`raea export capcut`: a composition as a CapCut draft ready in its timeline, its footage and sounds as clips of their files and what raea draws as transparent overlays (docs/capcut.feature)"
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)"
[dependencies]
dunce = "1"
raea-runtime-bundle = { path = "../../runtime/bundle" }
raea-io-capcut = { path = "../../io/capcut" }
raea-io-alpha = { path = "../../io/alpha" }
raea-io-media = { path = "../../io/media", default-features = false, features = ["soft-audio", "apple"] }
raea-io-home = { path = "../../io/home" }
# the renderer's own lookup of a staticFile path (/media/x), so the export finds the files the render drew
raea-core-scene = { path = "../../core/scene" }
serde_json = "1"
# the composition exported in layers (layers.json), which the draft is written from (docs/layers.feature LA4b)
raea-app-layers = { path = "../layers" }
image = { version = "0.25", default-features = false, features = ["jpeg"] }
+82
View File
@@ -0,0 +1,82 @@
//! layers.json as a CapCut timeline (docs/layers.feature LA4b): its tracks bottom first, as CapCut lists them (the
//! first video track is CapCut's main track); footage placed in CapCut's terms (plan::place); a footage clip's own
//! sound, which layers.json links to it, as the clip's volume (CapCut's Extract audio separates it); every layer's
//! movie a full-canvas clip. Pure: the export (lib.rs) makes the layers and writes the draft around it.
use std::path::Path;
use raea_app_layers::model::{FileKind, Layer, Layers};
use raea_io_capcut::{Clip, Kind, Media, MediaKind, Place, Timeline, Track};
use crate::plan;
/// The track names CapCut shows for raea's layers (the overlay's, as the export has always named it).
pub fn track_name(layer: Layer, name: &str) -> String {
match layer {
Layer::Captions => format!("raea {name}"),
Layer::Graphics => name.replacen("graphics", "raea overlay", 1),
Layer::Under | Layer::Backing => format!("raea {name}"),
Layer::Footage | Layer::Sound => name.to_string(),
}
}
/// The timeline, and what it can't carry. `dir` is where layers.json is: its movies' paths are relative to it.
pub fn timeline(l: &Layers, dir: &Path) -> (Timeline, Vec<String>) {
let mut notes = Vec::new();
let media: Vec<Media> = l
.files
.iter()
.map(|f| {
let p = Path::new(&f.path);
Media { path: if p.is_absolute() { p.to_path_buf() } else { dir.join(p) }, kind: if f.kind == FileKind::Audio { MediaKind::Audio } else { MediaKind::Video }, seconds: f.seconds, width: f.width, height: f.height, has_audio: f.has_audio }
})
.collect();
let all = || l.tracks.iter().flat_map(|t| t.clips.iter());
// the sound clips a footage clip carries as its own (their ids)
let carried: Vec<&str> = all().filter(|c| c.r#box.is_some()).filter_map(|c| c.link.as_deref()).collect();
let mut video: Vec<Track> = Vec::new();
let mut audio: Vec<Track> = Vec::new();
for t in &l.tracks {
let clips: Vec<Clip> = t
.clips
.iter()
.filter(|c| !carried.contains(&c.id.as_str()))
.map(|c| {
let base = Clip { media: c.file, start: c.start, frames: c.frames, source_in: c.source_in, speed: c.speed.max(0.01), ..Clip::default() };
match t.layer {
Layer::Sound => Clip { volume: 10f64.powf(c.gain_db / 20.0), fade_in: c.fade_in, fade_out: c.fade_out, ..base },
Layer::Footage => {
let m = &media[c.file];
// (a picture stretched to its box is noted by the layers export already, for every editor)
let (media, canvas) = (((m.width as f64).max(1.0), (m.height as f64).max(1.0)), (l.width as f64, l.height as f64));
let bx = c.r#box.unwrap_or([0.0, 0.0, canvas.0, canvas.1]);
let fit = c.fit.as_deref().unwrap_or("fill");
let (picture, _) = raea_app_layers::plan::picture(&bx, &c.clip, fit, &c.position, media, canvas);
let place = plan::place(&picture, media, canvas, c.opacity);
let (keys, cut_changes) = plan::keys(c, fit, picture.kept, media, canvas);
if cut_changes {
let name = Path::new(&l.files[c.file].path).file_name().map_or_else(String::new, |n| n.to_string_lossy().into_owned());
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
let own = c.link.as_deref().and_then(|id| all().find(|a| a.id == id));
Clip { volume: own.map_or(0.0, |a| 10f64.powf(a.gain_db / 20.0)), place, keys, ..base }
}
Layer::Graphics | Layer::Captions | Layer::Under | Layer::Backing => Clip { volume: 0.0, place: Place::centred(l.width, l.height), ..base },
}
})
.collect();
if clips.is_empty() {
continue;
}
let track = Track { kind: if t.layer == Layer::Sound { Kind::Audio } else { Kind::Video }, name: track_name(t.layer, &t.name), clips };
if t.layer == Layer::Sound { audio.push(track) } else { video.push(track) }
}
// bottom first; CapCut's main track (the first) keeps no name of its own when it's footage
video.reverse();
if let Some(main) = video.first_mut().filter(|t| t.name.starts_with("footage")) {
main.name.clear();
}
video.extend(audio);
(Timeline { width: l.width, height: l.height, fps: l.fps, media, tracks: video }, notes)
}
+35 -192
View File
@@ -1,26 +1,24 @@
//! `raea export capcut EDIT.tsx` (docs/capcut.feature CC2): 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.
//! Three renders of it: as it is, with its manifest (the reference render, and what shows when: each file's runs,
//! each sound clip); with its footage and the backgrounds holding it hidden, transparent (what raea draws over the
//! footage); and with only those backgrounds (what it draws under). The footage and sounds become clips of their own
//! files at their trims and gains; what raea draws becomes clips of transparent movies (raea-io-alpha), cut where the
//! drawing comes and goes, the one under the footage left out when it's black; raea-io-capcut writes the draft.
//! `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.
mod from_layers;
mod media;
pub mod plan;
#[cfg(test)]
mod tests;
use std::path::{Path, PathBuf};
use std::process::Command;
use raea_io_capcut::{Clip, Kind, Media, MediaKind, Place, Timeline, Track};
use raea_app_layers::many;
use raea_io_capcut::Kind;
use raea_runtime_bundle::flag;
use serde_json::Value;
pub type R<T> = Result<T, String>;
pub const USAGE: &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; into CapCut's projects, entered in its project list while CapCut is closed, or a draft folder in DIR; the reference render and the overlay movie kept in out/capcut/NAME)";
pub const USAGE: &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;
/// None for anything else.
@@ -28,7 +26,7 @@ pub fn cli(args: &[String], render: impl Fn(&[String]) -> R<String>) -> Option<R
match args.first().map(String::as_str) {
Some("export") => Some(match args.get(1).map(String::as_str) {
Some("capcut") => export(&args[2..]),
other => Err(format!("raea export takes where to export to{}: capcut\nusage: {USAGE}", other.map_or(String::new(), |o| format!(", not {o:?}")))),
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,
@@ -46,27 +44,11 @@ fn movie(args: &[String], render: impl Fn(&[String]) -> R<String>) -> Option<R<S
Some(raea_io_alpha::render_movie(args, Path::new(&out), flag(args, "--alpha-codec").as_deref(), flag(args, "--manifest").map(PathBuf::from), quality, render))
}
/// `raea render ARGS` by this same program, with `env` set; its output said through, its failure the export's.
fn render(args: &[String], env: &[(&str, &str)]) -> R<()> {
let exe = std::env::current_exe().map_err(|e| e.to_string())?;
let mut c = Command::new(exe);
c.arg("render").args(args);
for (k, v) in env {
c.env(k, v);
}
let out = c.output().map_err(|e| e.to_string())?;
if !out.status.success() {
let said = format!("{}{}", String::from_utf8_lossy(&out.stdout), String::from_utf8_lossy(&out.stderr));
return Err(format!("the render failed:\n{}", said.trim()));
}
Ok(())
}
fn export(args: &[String]) -> R<String> {
let tsx = args.first().filter(|a| !a.starts_with('-')).ok_or(USAGE)?;
let tsx = PathBuf::from(tsx).canonicalize().map_err(|e| format!("{tsx}: {e}"))?;
let tsx = dunce::canonicalize(&PathBuf::from(tsx)).map_err(|e| format!("{tsx}: {e}"))?;
let dir = tsx.parent().unwrap().to_path_buf();
let codec = flag(args, "--alpha-codec").map_or(Ok(raea_io_alpha::Codec::default_here()), |c| raea_io_alpha::Codec::parse(&c))?;
let codec = raea_io_alpha::Codec::chosen(flag(args, "--alpha-codec").as_deref())?;
let (root, in_store) = match flag(args, "-o") {
Some(o) => (PathBuf::from(o), false),
None => {
@@ -87,102 +69,27 @@ fn export(args: &[String]) -> R<String> {
name = (2..).map(|k| format!("{base} {k}")).find(|n| !root.join(n).exists()).unwrap();
}
let work = dir.join("out/capcut").join(&name);
std::fs::create_dir_all(&work).map_err(|e| format!("{}: {e}", work.display()))?;
let comp: Vec<String> = flag(args, "--composition").map(|c| vec!["--composition".into(), c]).unwrap_or_default();
let s = |p: &Path| p.display().to_string();
// 1. as it is: the reference render and its manifest
let (reference, manifest_path) = (work.join("reference.mp4"), work.join("render.json"));
render(&[[s(&tsx), "-o".into(), s(&reference), "--manifest".into(), s(&manifest_path)].as_slice(), &comp].concat(), &[])?;
let manifest: Value = serde_json::from_str(&std::fs::read_to_string(&manifest_path).map_err(|e| e.to_string())?).map_err(|e| e.to_string())?;
let (w, h, fps) = (manifest["width"].as_u64().unwrap_or(0) as u32, manifest["height"].as_u64().unwrap_or(0) as u32, manifest["fps"].as_f64().unwrap_or(30.0));
let (wf, hf) = (w as f64, h as f64);
// 2. its footage hidden, transparent: what raea draws over it
let runs = plan::runs(&manifest, fps);
let frames = work.join(format!("overlay.{}.frames", std::process::id()));
let drawn_result = render(&[[s(&tsx), "-o".into(), format!("{}/", frames.display()), "--alpha".into()].as_slice(), &comp].concat(), &[("RAEA_HIDE_MEDIA", "1")]);
// footage the overlay covers (opaque over most of its box at its middle frame) is drawn over the overlay: what the
// composition draws under it, a background
let covered: Vec<bool> = runs.iter().map(|r| drawn_result.is_ok() && opaque_under(&frames, r)).collect();
let overlay = work.join(format!("overlay.{}.mov", ext_of(codec)));
let made = drawn_result.and_then(|_| raea_io_alpha::encode_dir(&frames, &overlay, codec, fps, 0.9));
// the frames folder this export made, and only it
let _ = std::fs::remove_dir_all(&frames);
let made = made?;
// 3. only the backgrounds holding the footage: what raea draws under it, unless that's black (CapCut's canvas)
let under = if runs.is_empty() {
None
} else {
let frames = work.join(format!("under.{}.frames", std::process::id()));
let out = work.join(format!("under.{}.mov", ext_of(codec)));
let done = render(&[[s(&tsx), "-o".into(), format!("{}/", frames.display()), "--alpha".into()].as_slice(), &comp].concat(), &[("RAEA_HIDE_MEDIA", "under")])
.and_then(|_| if lit(&frames) { raea_io_alpha::encode_dir(&frames, &out, codec, fps, 0.9).map(|m| Some((out, m))) } else { Ok(None) });
let _ = std::fs::remove_dir_all(&frames);
done?
};
// 4. the timeline
let mut notes: Vec<String> = Vec::new();
let mut media: Vec<Media> = Vec::new();
let mut index = std::collections::HashMap::<PathBuf, usize>::new();
let mut sounds = plan::sounds(&manifest);
let (mut main, mut rest, mut above) = (Vec::new(), Vec::new(), Vec::new());
for (r, cov) in runs.iter().zip(&covered) {
let path = plan::resolve(&dir, &r.src);
let m = add(&mut media, &mut index, path.clone(), media::video)?;
let (mw, mh) = (media[m].width as f64, media[m].height as f64);
let (place, warn) = plan::place(&r.bx, &r.fit, mw.max(1.0), mh.max(1.0), wf, hf, r.opacity);
let what = format!("{} (frames {}-{})", r.src, r.start, r.end - 1);
if let Some(wn) = warn {
notes.push(format!("{what}: {wn}"));
}
if r.moved {
notes.push(format!("{what}: moves or scales in its box; placed as its first frame shows it (CapCut keyframes don't carry yet)"));
}
if r.faded {
notes.push(format!("{what}: fades; placed at its first frame's opacity"));
}
// its own sound: the manifest's sound clip of the same file over the same frames from the same time
let own = sounds.iter().position(|c| plan::resolve(&dir, &c.src) == path && (c.from - r.start).abs() <= 1 && (c.to - r.end).abs() <= 1 && (c.at - r.at).abs() <= 1.5 / fps);
let volume = own.map_or(0.0, |k| 10f64.powf(sounds.remove(k).gain_db / 20.0));
let clip = Clip { media: m, start: r.start, frames: r.end - r.start, source_in: r.at, speed: r.rate.unwrap_or(1.0).max(0.01), volume, place, ..Clip::default() };
if *cov {
notes.push(format!("{what}: raea draws over all of it from outside what holds it (a layer before it in the page); placed over the overlay, so the overlay's drawing over it is hidden in CapCut"));
}
match (*cov, plan::full(&r.bx, wf, hf)) {
(true, _) => above.push(clip),
(false, true) => main.push(clip),
(false, false) => rest.push(clip),
}
// 1. the layers and layers.json (raea export layers), in out/capcut/NAME
let mut layer_args = vec![tsx.display().to_string(), "-o".into(), work.display().to_string(), "--name".into(), name.clone(), "--alpha-codec".into(), raea_app_layers::codec_ext(codec).into()];
if let Some(c) = flag(args, "--composition") {
layer_args.extend(["--composition".into(), c]);
}
// the main track first (the clips covering the canvas), the rest above it in the page's order, then the overlay,
// then footage the overlay draws under
let mut tracks: Vec<Track> = Vec::new();
if let Some((path, m)) = &under {
tracks.extend(drawn(&mut media, path, m, fps, "raea under"));
}
tracks.extend(plan::lay(Kind::Video, if under.is_some() { "footage" } else { "" }, main));
tracks.extend(plan::lay(Kind::Video, "footage", rest));
tracks.extend(drawn(&mut media, &overlay, &made, fps, "raea overlay"));
tracks.extend(plan::lay(Kind::Video, "footage over", above));
let mut audio = Vec::new();
for c in sounds {
let m = add(&mut media, &mut index, plan::resolve(&dir, &c.src), media::sound)?;
audio.push(Clip { media: m, start: c.from, frames: c.to - c.from, source_in: c.at, speed: c.rate, volume: 10f64.powf(c.gain_db / 20.0), fade_in: c.fade_in, fade_out: c.fade_out, ..Clip::default() });
}
tracks.extend(plan::lay(Kind::Audio, "sound", audio));
let notes_made = manifest["sounds"]["notes"].as_array().map_or(0, Vec::len);
if notes_made > 0 {
notes.push(format!("the Tone graph's music ({notes_made} notes) has no file to place: it is in the reference render's sound"));
}
let tl = Timeline { width: w, height: h, fps, media, tracks };
let (layers, _) = raea_app_layers::export(&layer_args)?;
let reference = work.join(&layers.reference);
// 5. the draft
// 2. its tracks as CapCut's, and the draft
let (tl, carried) = from_layers::timeline(&layers, &work);
let mut notes = layers.notes.clone();
notes.extend(carried);
let markers = raea_io_capcut::seed(&root);
let written = raea_io_capcut::write(&tl, &root, &name, &markers, media::cover(&reference).as_deref())?;
notes.extend(written.warnings.iter().cloned());
// the reference render in the draft's folder, on no track, to set beside what CapCut plays (LA4b)
let beside = written.dir.join("reference.mp4");
if let Err(e) = std::fs::copy(&reference, &beside) {
return Err(format!("{}: {e}", beside.display()));
}
let listed = if !in_store || args.iter().any(|a| a == "--no-register") {
"not entered in CapCut's project list".to_string()
} else {
@@ -192,17 +99,22 @@ fn export(args: &[String]) -> R<String> {
}
};
let count = |k: Kind, n: &str| tl.tracks.iter().filter(|t| t.kind == k && t.name.starts_with(n)).map(|t| t.clips.len()).sum::<usize>();
let bytes = |layer: &str| std::fs::metadata(work.join(format!("{layer}.{}.mov", raea_app_layers::codec_ext(codec)))).map_or(0.0, |m| m.len() as f64 / 1e6);
let mut said = format!(
"APPLIED CapCut draft \"{name}\" at {}: {} tracks, {}, {} ({}, {:.1} MB){}, {}; {:.2} s at {fps} fps, {w}x{h}; {listed}; markers from {}\n the reference render and the movies raea drew: {}",
"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): {}",
written.dir.display(),
tl.tracks.len(),
many(count(Kind::Video, "") - count(Kind::Video, "raea "), "footage clip"),
many(count(Kind::Video, "raea overlay"), "overlay clip"),
codec.name(),
made.bytes as f64 / 1e6,
under.as_ref().map_or(String::new(), |(_, m)| format!(", {} under the footage ({:.1} MB)", many(count(Kind::Video, "raea under"), "clip"), m.bytes as f64 / 1e6)),
bytes("graphics"),
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_us as f64 / 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()
);
@@ -212,11 +124,6 @@ fn export(args: &[String]) -> R<String> {
Ok(said)
}
/// "1 clip", "4 clips"
fn many(k: usize, what: &str) -> String {
if k == 1 { format!("1 {what}") } else { format!("{k} {what}s") }
}
/// 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).
@@ -226,67 +133,3 @@ fn backups() -> PathBuf {
None => raea_io_home::env_path("RAEA_CAPCUT_BACKUPS", ".raea/capcut/backups"),
}
}
/// A movie raea drew, as clips of it wherever it draws, full frame on tracks named `name`; none when it draws nothing.
fn drawn(media: &mut Vec<Media>, path: &Path, m: &raea_io_alpha::Made, fps: f64, name: &str) -> Vec<Track> {
let spans = plan::spans(&m.drawn);
if spans.is_empty() {
return Vec::new();
}
let k = media.len();
media.push(Media { path: path.to_path_buf(), kind: MediaKind::Video, seconds: m.frames as f64 / fps, width: m.width, height: m.height, has_audio: false });
let clips = spans.iter().map(|&(a, b)| Clip { media: k, start: a, frames: b - a, source_in: a as f64 / fps, volume: 0.0, place: Place::centred(m.width, m.height), ..Clip::default() }).collect();
plan::lay(Kind::Video, name, clips)
}
/// A file's place in the media list, probed the first time it's named.
fn add(media: &mut Vec<Media>, index: &mut std::collections::HashMap<PathBuf, usize>, p: PathBuf, probe: fn(&Path) -> R<Media>) -> R<usize> {
if let Some(i) = index.get(&p) {
return Ok(*i);
}
media.push(probe(&p)?);
index.insert(p, media.len() - 1);
Ok(media.len() - 1)
}
fn ext_of(c: raea_io_alpha::Codec) -> &'static str {
match c {
raea_io_alpha::Codec::ProRes => "prores",
raea_io_alpha::Codec::Hevc => "hevc",
raea_io_alpha::Codec::Rle => "rle",
raea_io_alpha::Codec::Png => "png",
}
}
/// Whether the overlay is opaque over 90% of a run's box at its middle frame (a grid of points inside it).
fn opaque_under(frames: &Path, r: &plan::Run) -> bool {
let mid = (r.start + r.end - 1) / 2;
let Ok((px, w, h)) = raea_io_alpha::read_png(&frames.join(format!("frame-{mid:05}.png"))) else { return false };
let (mut n, mut opaque) = (0, 0);
for j in 0..16 {
for i in 0..16 {
let x = (r.bx[0] + r.bx[2] * (i as f64 + 0.5) / 16.0) as i64;
let y = (r.bx[1] + r.bx[3] * (j as f64 + 0.5) / 16.0) as i64;
if x < 0 || y < 0 || x >= w as i64 || y >= h as i64 {
continue;
}
n += 1;
opaque += usize::from(px[((y as usize) * w as usize + x as usize) * 4 + 3] >= 250);
}
}
n > 0 && opaque * 10 >= n * 9
}
/// Whether any frame in `frames` draws anything but black, at any alpha (a grid of points on each).
fn lit(frames: &Path) -> bool {
raea_io_alpha::frames_in(frames).iter().any(|p| {
let Ok((px, w, h)) = raea_io_alpha::read_png(p) else { return true };
(0..32).any(|j| {
(0..32).any(|i| {
let (x, y) = ((w as usize * (2 * i + 1)) / 64, (h as usize * (2 * j + 1)) / 64);
let k = (y * w as usize + x) * 4;
px[k + 3] >= 8 && px[k..k + 3].iter().any(|&c| c >= 8)
})
})
})
}
+2 -29
View File
@@ -1,35 +1,8 @@
//! The files a draft uses, probed through raea's media backends (a picture's upright size and length, whether it has
//! sound; a sound's length), and the draft's cover: the reference render's first frame as a small JPEG.
//! The draft's cover: the reference render's first frame as a small JPEG. (The files a draft uses are probed by the
//! layers export, raea-app-layers.)
use std::path::Path;
use raea_io_capcut::{Media, MediaKind};
use crate::R;
/// A video file: its display size (rotation applied) and length from the first backend that opens it, and whether a
/// short window of its sound decodes to samples.
pub fn video(path: &Path) -> R<Media> {
let mut why = Vec::new();
for b in raea_io_media::preferred() {
match b.open_video(path) {
Ok(d) => {
let i = d.info();
let has_audio = raea_io_media::decode_audio_window(path, 0.0, 0.05).is_ok_and(|a| a.len() > 0);
return Ok(Media { path: path.to_path_buf(), kind: MediaKind::Video, seconds: i.duration, width: i.width, height: i.height, has_audio });
}
Err(e) => why.push(format!("{}: {e}", b.name())),
}
}
Err(format!("{} didn't open as video ({})", path.display(), why.join("; ")))
}
/// A sound file: its length from its container.
pub fn sound(path: &Path) -> R<Media> {
let seconds = raea_io_media::probe_seconds(path).ok_or_else(|| format!("{}: no sound length", path.display()))?;
Ok(Media { path: path.to_path_buf(), kind: MediaKind::Audio, seconds, width: 0, height: 0, has_audio: true })
}
/// The first frame of `video`, at most 540 pixels on its long side, as a JPEG.
pub fn cover(video: &Path) -> Option<Vec<u8>> {
let mut d = raea_io_media::preferred().into_iter().find_map(|b| b.open_video(video).ok())?;
+39 -175
View File
@@ -1,182 +1,46 @@
//! The render's manifest as a CapCut timeline (docs/capcut.feature CC2): each run of frames showing one file as a
//! clip of it, each sound clip as an audio clip (or as its footage's own sound), each run of frames the overlay draws
//! as a clip of the overlay movie, and the tracks they go on. Pure: the export (lib.rs) renders and probes around it.
//! Where a picture sits in CapCut's terms (docs/capcut.feature CC2a). The manifest is read by raea-app-layers, the same
//! for every editor, and so is where a picture is drawn and what of it is kept (raea_app_layers::plan::picture); this
//! is CapCut's own.
use std::path::{Path, PathBuf};
use raea_app_layers::model::Clip;
use raea_app_layers::plan::{self, Picture};
use raea_io_capcut::Place;
use raea_io_capcut::{Clip, Kind, Place, Track};
use serde_json::Value;
/// One file shown over a run of frames, as the manifest's frames say: its first source time and rate, its box and
/// fit at its first frame, its place in the page's order (lower draws first), and whether it moved or faded.
#[derive(Clone, Debug, PartialEq)]
pub struct Run {
pub src: String,
pub key: String,
pub start: i64,
pub end: i64,
pub at: f64,
pub last_at: f64,
pub rate: Option<f64>,
pub bx: [f64; 4],
pub fit: String,
pub opacity: f64,
pub z: usize,
pub moved: bool,
pub faded: bool,
/// Where a picture of `mw` x `mh` drawn as `p` sits in CapCut's terms on a `w` x `h` canvas: the part of it kept as
/// its crop, which CapCut fits inside the canvas (scale 1), then scaled to the size raea drew it, centred where raea
/// drew that part.
pub fn place(p: &Picture, (mw, mh): (f64, f64), (w, h): (f64, f64), opacity: f64) -> Place {
let [dx, dy, dw, dh] = p.drawn;
let [l, t, r, b] = p.kept;
let (cw, ch) = ((r - l).max(1e-6), (b - t).max(1e-6));
let fit = (w / (mw * cw)).min(h / (mh * ch));
let (x, y) = (dx + dw * (l + r) / 2.0, dy + dh * (t + b) / 2.0);
Place { x, y, scale: dw / (mw * fit), opacity, crop: p.kept }
}
/// One sound clip of the manifest: its file, frames, source time, gain, rate and fades.
#[derive(Clone, Debug, PartialEq)]
pub struct Sound {
pub src: String,
pub from: i64,
pub to: i64,
pub at: f64,
pub gain_db: f64,
pub rate: f64,
pub fade_in: f64,
pub fade_out: f64,
}
/// The footage's runs, frame by frame: a run goes on while the same element shows the same file with its source time
/// advancing at one rate; a jump in source time (a cut within one take) starts another.
pub fn runs(manifest: &Value, fps: f64) -> Vec<Run> {
let mut done: Vec<Run> = Vec::new();
let mut open: Vec<Run> = Vec::new();
let frames = manifest["frames"].as_array().cloned().unwrap_or_default();
for (i, fr) in frames.iter().enumerate() {
let f = fr["frame"].as_i64().unwrap_or(i as i64);
let mut next = Vec::new();
for (z, v) in fr["videos"].as_array().into_iter().flatten().enumerate() {
let src = v["src"].as_str().unwrap_or_default().to_string();
let key = format!("{src}|{}|{}|{}", v["loc"], v["use"], v["index"]);
let at = v["at"].as_f64().unwrap_or(0.0);
let bx: [f64; 4] = std::array::from_fn(|k| v["box"][k].as_f64().unwrap_or(0.0));
let opacity = v["opacity"].as_f64().unwrap_or(1.0);
let continues = |r: &Run| {
let step = at - r.last_at;
r.key == key && r.end == f && step > 0.0 && match r.rate {
Some(rate) => (step - rate / fps).abs() <= 0.6 / fps,
None => step * fps <= 8.0,
}
};
if let Some(k) = open.iter().position(continues) {
let mut r = open.remove(k);
r.rate.get_or_insert((at - r.last_at) * fps);
r.moved |= r.bx.iter().zip(&bx).any(|(a, b)| (a - b).abs() > 1.0);
r.faded |= (r.opacity - opacity).abs() > 0.02;
(r.end, r.last_at) = (f + 1, at);
next.push(r);
} else {
next.push(Run { src, key, start: f, end: f + 1, at, last_at: at, rate: None, bx, fit: v["fit"].as_str().unwrap_or("fill").to_string(), opacity, z, moved: false, faded: false });
}
}
done.append(&mut open);
open = next;
}
done.append(&mut open);
// the rate over the whole run (source times are whole milliseconds, so one step's can be 1% off), to hundredths
for r in &mut done {
if r.end - r.start > 1 {
r.rate = Some(((r.last_at - r.at) * fps / (r.end - r.start - 1) as f64 * 100.0).round() / 100.0);
}
}
done.sort_by_key(|r| (r.start, r.z));
done
}
/// The manifest's sound clips.
pub fn sounds(manifest: &Value) -> Vec<Sound> {
let s = &manifest["sounds"]["clips"];
s.as_array()
.into_iter()
.flatten()
.map(|c| Sound {
src: c["src"].as_str().unwrap_or_default().to_string(),
from: c["from"].as_i64().unwrap_or(0),
to: c["to"].as_i64().unwrap_or(0),
at: c["at"].as_f64().unwrap_or(0.0),
gain_db: c["gainDb"].as_f64().unwrap_or(0.0),
rate: c["rate"].as_f64().unwrap_or(1.0),
fade_in: c["fadeIn"].as_f64().unwrap_or(0.0),
fade_out: c["fadeOut"].as_f64().unwrap_or(0.0),
/// A footage clip's keys in CapCut's terms (frames from its first, each its place there; none when it holds), cut
/// throughout as `first` keeps it (its first frame's): CapCut's crop holds, so its moves, scaling and fades are keyed
/// around that cut. Thinned to what a straight line between can't give, to 0.15 px and half a percent of opacity; and
/// whether what is cut changes over its run, which CapCut can't show.
pub fn keys(c: &Clip, fit: &str, first: [f64; 4], (mw, mh): (f64, f64), canvas: (f64, f64)) -> (Vec<(i64, Place)>, bool) {
let mut changes = false;
let all: Vec<(i64, [f64; 4])> = c
.keys
.iter()
.map(|k| {
let (p, _) = plan::picture(&k.r#box, &k.clip, fit, &k.position, (mw, mh), canvas);
changes |= plan::apart(&p.kept, &first) > 1e-3;
let at = place(&Picture { drawn: p.drawn, kept: first }, (mw, mh), canvas, k.opacity);
(k.frame, [at.x, at.y, at.scale, at.opacity])
})
.filter(|c| c.to > c.from)
.collect()
}
/// Runs of frames that draw something.
pub fn spans(drawn: &[bool]) -> Vec<(i64, i64)> {
let mut out = Vec::new();
let mut f = 0;
while f < drawn.len() {
if !drawn[f] {
f += 1;
continue;
}
let a = f;
while f < drawn.len() && drawn[f] {
f += 1;
}
out.push((a as i64, f as i64));
.collect();
if all.is_empty() {
return (Vec::new(), false);
}
out
}
/// Whether a box covers the whole canvas.
pub fn full(bx: &[f64; 4], w: f64, h: f64) -> bool {
bx[0] <= 1.0 && bx[1] <= 1.0 && bx[0] + bx[2] >= w - 1.0 && bx[1] + bx[3] >= h - 1.0
}
/// Where a picture of `mw` x `mh` sits to show as it does in its box with its object-fit, in CapCut's terms (scale 1:
/// fitted inside the canvas; a crop is fitted as the part it keeps). A warning when CapCut can't show it so.
pub fn place(bx: &[f64; 4], fit: &str, mw: f64, mh: f64, w: f64, h: f64, opacity: f64) -> (Place, Option<String>) {
let (bw, bh) = (bx[2].max(1.0), bx[3].max(1.0));
let (x, y) = (bx[0] + bw / 2.0, bx[1] + bh / 2.0);
let fit0 = (w / mw).min(h / mh);
let mut warn = None;
let contain = (bw / mw).min(bh / mh);
let (scale, crop) = match fit {
"cover" if full(bx, w, h) => ((bw / mw).max(bh / mh) / fit0, [0.0, 0.0, 1.0, 1.0]),
"cover" => {
let s = (bw / mw).max(bh / mh);
let (cw, ch) = (bw / (mw * s), bh / (mh * s));
let fitc = (w / (mw * cw)).min(h / (mh * ch));
(bw / (mw * cw * fitc), [(1.0 - cw) / 2.0, (1.0 - ch) / 2.0, (1.0 + cw) / 2.0, (1.0 + ch) / 2.0])
}
"none" => (1.0 / fit0, [0.0, 0.0, 1.0, 1.0]),
"scale-down" => (contain.min(1.0) / fit0, [0.0, 0.0, 1.0, 1.0]),
"contain" => (contain / fit0, [0.0, 0.0, 1.0, 1.0]),
_ => {
if ((bw / bh) - (mw / mh)).abs() > 0.01 * (mw / mh) {
warn = Some(format!("stretched to its {bw:.0}x{bh:.0} box in raea (object-fit: fill), fitted inside it in CapCut"));
}
(contain / fit0, [0.0, 0.0, 1.0, 1.0])
}
};
(Place { x, y, scale, opacity, crop }, warn)
}
/// Clips laid on as few tracks as hold them without overlap, first come first: `kind` tracks named `name`, `name 2`...
pub fn lay(kind: Kind, name: &str, clips: Vec<Clip>) -> Vec<Track> {
let mut tracks: Vec<Track> = Vec::new();
for c in clips {
let end = |t: &Track| t.clips.last().map_or(i64::MIN, |l| l.start + l.frames);
match tracks.iter_mut().find(|t| end(t) <= c.start) {
Some(t) => t.clips.push(c),
None => {
let n = tracks.len();
tracks.push(Track { kind, name: if n == 0 || name.is_empty() { name.to_string() } else { format!("{name} {}", n + 1) }, clips: vec![c] });
}
}
}
tracks
}
/// A file the manifest names, as a path, found as the renderer finds it: a staticFile path (/media/x) in the edit's
/// media/, then the project's media/ and assets/; else absolute; else relative to the composition's folder.
pub fn resolve(dir: &Path, src: &str) -> PathBuf {
let p = raea_core_scene::media_path(dir, src);
p.canonicalize().unwrap_or(p)
// a scale step a 0.15 px change in the width of what's kept, as CapCut fits it inside the canvas
let (cw, ch) = ((first[2] - first[0]).max(1e-6), (first[3] - first[1]).max(1e-6));
let fitted = mw * cw * (canvas.0 / (mw * cw)).min(canvas.1 / (mh * ch));
let kept = plan::thin(&all, &[0.15, 0.15, 0.15 / fitted, 0.005]);
let keys = kept.into_iter().map(|(f, [x, y, scale, opacity])| (f, Place { x, y, scale, opacity, crop: first })).collect();
(keys, changes)
}
+87 -66
View File
@@ -1,85 +1,106 @@
//! CC2a-c without a render: a manifest's frames as footage runs, its sound clips, the overlay's spans, where a picture
//! sits in CapCut's terms, and clips laid on tracks.
//! CC2a without a render: where a picture sits in CapCut's terms, and layers.json as CapCut's tracks (LA4b). The
//! manifest's runs, sounds and spans are tested where they're read, in raea-app-layers.
use serde_json::json;
use std::path::Path;
use raea_app_layers::model::{self, Clip as LClip, File, FileKind, Layer, Layers, Track as LTrack};
use crate::from_layers;
use crate::plan::*;
use raea_io_capcut::{Clip, Kind};
/// 90 frames at 30 fps: one take cut into two pieces (a jump in its source time at frame 45), another file in a
/// corner from frame 60, moving one pixel at frame 70. Source times in whole milliseconds, as the manifest has them.
fn manifest() -> serde_json::Value {
let ms = |t: f64| (t * 1000.0).round() / 1000.0;
let frames: Vec<_> = (0..90)
.map(|f| {
let mut v = vec![json!({"src": "media/a.mp4", "at": ms(if f < 45 { 0.5 + f as f64 / 30.0 } else { 3.0 + (f - 45) as f64 / 30.0 }), "box": [0.0, 0.0, 1080.0, 1920.0], "fit": "cover", "opacity": 1.0})];
if f >= 60 {
v.push(json!({"src": "media/pip.mp4", "at": ms((f - 60) as f64 / 15.0), "box": [if f >= 70 { 662.0 } else { 660.0 }, 200.0, 360.0, 360.0], "opacity": 1.0}));
}
json!({"frame": f, "videos": v})
})
.collect();
json!({"width": 1080, "height": 1920, "fps": 30.0, "frames": frames, "sounds": {"clips": [{"src": "/m/music.wav", "from": 0, "to": 90, "at": 0.0, "gainDb": -6.0, "fadeOut": 0.5}]}})
}
#[test]
fn footage_runs_break_where_the_source_jumps() {
let r = runs(&manifest(), 30.0);
assert_eq!(r.iter().map(|r| (r.src.as_str(), r.start, r.end)).collect::<Vec<_>>(), [("media/a.mp4", 0, 45), ("media/a.mp4", 45, 90), ("media/pip.mp4", 60, 90)]);
assert!((r[1].at - 3.0).abs() < 1e-9);
assert_eq!((r[0].rate, r[1].rate), (Some(1.0), Some(1.0)), "a take at its own speed, though each step is 33 or 34 ms");
assert!((r[2].rate.unwrap() - 2.0).abs() < 1e-6, "the corner plays at twice its speed");
assert!(r[2].moved && !r[0].moved);
assert_eq!(r[2].fit, "fill");
}
#[test]
fn sounds_keep_gain_and_fades() {
let s = sounds(&manifest());
assert_eq!(s.len(), 1);
assert_eq!((s[0].from, s[0].to, s[0].gain_db, s[0].fade_out), (0, 90, -6.0, 0.5));
}
#[test]
fn overlay_spans_are_runs_of_drawn_frames() {
assert_eq!(spans(&[false, true, true, false, false, true]), [(1, 3), (5, 6)]);
assert!(spans(&[false; 4]).is_empty());
}
#[test]
fn pictures_sit_as_their_fit_shows_them() {
// a landscape take covering a portrait canvas: scaled past the fitted width until it fills the height
let (p, w) = place(&[0.0, 0.0, 1080.0, 1920.0], "cover", 1920.0, 1080.0, 1080.0, 1920.0, 1.0);
let at = |bx: [f64; 4], fit: &str, media: (f64, f64)| {
let (p, note) = raea_app_layers::plan::picture(&bx, &None, fit, &None, media, (1080.0, 1920.0));
(place(&p, media, (1080.0, 1920.0), 1.0), note)
};
// a landscape take covering a portrait canvas: scaled past the fitted width until it fills the height, uncut (the
// canvas cuts it)
let (p, w) = at([0.0, 0.0, 1080.0, 1920.0], "cover", (1920.0, 1080.0));
assert!(w.is_none() && (p.scale - (1920.0 / 1080.0) / 0.5625).abs() < 1e-9 && p.crop == [0.0, 0.0, 1.0, 1.0]);
assert_eq!((p.x, p.y), (540.0, 960.0));
// a square in a corner, contained: a third of the canvas's width
let (p, _) = place(&[660.0, 200.0, 360.0, 360.0], "contain", 640.0, 640.0, 1080.0, 1920.0, 1.0);
let (p, _) = at([660.0, 200.0, 360.0, 360.0], "contain", (640.0, 640.0));
assert!((p.scale - 1.0 / 3.0).abs() < 1e-9 && (p.x, p.y) == (840.0, 380.0));
// a landscape take covering a square box: cropped to its middle square, which then fits as a square
let (p, _) = place(&[0.0, 0.0, 540.0, 540.0], "cover", 1920.0, 1080.0, 1080.0, 1920.0, 1.0);
// a landscape take covering a square box inside the canvas: cropped to its middle square, which then fits as a square
let (p, _) = at([100.0, 100.0, 540.0, 540.0], "cover", (1920.0, 1080.0));
assert!((p.crop[0] - 0.21875).abs() < 1e-9 && (p.crop[2] - 0.78125).abs() < 1e-9 && p.crop[1] == 0.0);
assert!((p.scale - 0.5).abs() < 1e-9);
assert!((p.scale - 0.5).abs() < 1e-9 && ((p.x - 370.0).abs(), (p.y - 370.0).abs()) < (1e-9, 1e-9));
// the same box in the canvas's corner: cut only on its right, the canvas cutting its left; the part kept sits where
// raea drew it, its left past the canvas
let (p, _) = at([0.0, 0.0, 540.0, 540.0], "cover", (1920.0, 1080.0));
assert!(p.crop[0] == 0.0 && (p.crop[2] - 0.78125).abs() < 1e-9);
assert!((p.x - (-210.0 + 750.0 / 2.0)).abs() < 1e-9 && (p.y - 270.0).abs() < 1e-9);
// stretched in raea: said
assert!(place(&[0.0, 0.0, 500.0, 100.0], "fill", 640.0, 640.0, 1080.0, 1920.0, 1.0).1.is_some());
assert!(at([0.0, 0.0, 500.0, 100.0], "fill", (640.0, 640.0)).1.is_some());
}
#[test]
fn clips_go_on_as_few_tracks_as_hold_them() {
let c = |start, frames| Clip { start, frames, ..Clip::default() };
let t = lay(Kind::Audio, "sound", vec![c(0, 90), c(10, 5), c(15, 10), c(90, 5)]);
assert_eq!(t.iter().map(|t| (t.name.as_str(), t.clips.len())).collect::<Vec<_>>(), [("sound", 2), ("sound 2", 2)]);
fn layers_json_goes_bottom_first_with_footage_carrying_its_own_sound() {
let file = |path: &str, kind, w, h| File { path: path.into(), kind, seconds: 3.0, width: w, height: h, has_audio: kind == FileKind::Video, channels: 2, sample_rate: 48_000, rotation: 0 };
let clip = |id: &str, f, start, frames| LClip::new(id.into(), f, start, frames, 0.0);
let t = |layer, name: &str, clips| LTrack { layer, name: name.into(), clips };
let v1 = LClip { r#box: Some([0.0, 0.0, 1080.0, 1920.0]), fit: Some("cover".into()), link: Some("a1".into()), ..clip("v1", 0, 0, 90) };
let a1 = LClip { gain_db: -6.0, link: Some("v1".into()), ..clip("a1", 0, 0, 90) };
let l = Layers {
version: model::VERSION,
name: "edit".into(),
width: 1080,
height: 1920,
fps: 30.0,
frames: 90,
reference: "reference.mp4".into(),
srt: Some("edit.srt".into()),
files: vec![file("/m/a.mp4", FileKind::Video, 1920, 1080), file("captions.prores.mov", FileKind::Video, 1080, 1920), file("graphics.prores.mov", FileKind::Video, 1080, 1920), file("/m/music.wav", FileKind::Audio, 0, 0)],
tracks: vec![
t(Layer::Captions, "captions", vec![clip("c1", 1, 10, 30)]),
t(Layer::Graphics, "graphics", vec![clip("g1", 2, 0, 90)]),
t(Layer::Footage, "footage", vec![v1]),
t(Layer::Sound, "sound", vec![a1, LClip { gain_db: -12.0, fade_out: 0.5, ..clip("a2", 3, 0, 90) }]),
],
notes: vec![],
};
let (tl, _) = from_layers::timeline(&l, Path::new("/out/edit"));
// bottom first: the footage is CapCut's main track (no name), then the overlay, then the captions; sound after
assert_eq!(tl.tracks.iter().map(|t| t.name.as_str()).collect::<Vec<_>>(), ["", "raea overlay", "raea captions", "sound"]);
// a layer's movie is found beside layers.json; the footage where it is
assert_eq!(tl.media[1].path, Path::new("/out/edit/captions.prores.mov"));
assert_eq!(tl.media[0].path, Path::new("/m/a.mp4"));
// the footage carries its own sound at its gain (-6 dB), so that sound isn't a clip of its own; the music is
let foot = &tl.tracks[0].clips[0];
assert!((foot.volume - 10f64.powf(-6.0 / 20.0)).abs() < 1e-9);
assert_eq!(tl.tracks[3].clips.len(), 1);
assert!((tl.tracks[3].clips[0].volume - 10f64.powf(-12.0 / 20.0)).abs() < 1e-9 && tl.tracks[3].clips[0].fade_out == 0.5);
// the layers' movies fill the canvas, silent
let cap = &tl.tracks[2].clips[0];
assert_eq!((cap.start, cap.frames, cap.volume, cap.place.scale, cap.place.x, cap.place.y), (10, 30, 0.0, 1.0, 540.0, 960.0));
// footage with no linked sound plays silent
let mut quiet = l.clone();
quiet.tracks[2].clips[0].link = None;
quiet.tracks[3].clips.remove(0);
assert_eq!(from_layers::timeline(&quiet, Path::new("/out/edit")).0.tracks[0].clips[0].volume, 0.0);
}
/// staticFile("x.mp4") is "/media/x.mp4" in the manifest: the export finds it where the render did, in media/ beside
/// the edit, as it finds a relative path; an absolute path stays as it is
/// CC2f: a footage clip's keys in CapCut's terms, around the cut its first frame shows: a steady move is its two ends,
/// a move inside a card keeps the card's cut, and a cut that changes (the split close) is said
#[test]
fn a_static_file_is_found_in_the_edits_media_folder() {
let dir = std::env::temp_dir().join(format!("raea-capcut-resolve-{}", std::process::id()));
std::fs::create_dir_all(dir.join("media")).unwrap();
std::fs::write(dir.join("media/a.mp4"), "").unwrap();
let want = dir.join("media/a.mp4").canonicalize().unwrap();
assert_eq!(resolve(&dir, "/media/a.mp4"), want);
assert_eq!(resolve(&dir, "media/a.mp4"), want);
assert_eq!(resolve(&dir, want.to_str().unwrap()), want);
std::fs::remove_dir_all(&dir).unwrap();
fn keyed_footage_is_keyed_around_its_first_cut() {
use raea_app_layers::model::Key;
let canvas = (1080.0, 1920.0);
let key = |frame: i64, bx: [f64; 4], clip: Option<[f64; 4]>| Key { frame, r#box: bx, clip, position: None, opacity: 1.0 };
let first = |c: &LClip| raea_app_layers::plan::picture(&c.r#box.unwrap(), &c.clip, "cover", &None, (1080.0, 1920.0), canvas).0.kept;
// a picture in picture sliding right 10 px a frame: its two ends
let slide = LClip { r#box: Some([100.0, 500.0, 400.0, 400.0]), keys: (0..24).map(|f| key(f, [100.0 + 10.0 * f as f64, 500.0, 400.0, 400.0], None)).collect(), ..LClip::new("v".into(), 0, 0, 24, 0.0) };
let (got, changes) = keys(&slide, "cover", first(&slide), (1080.0, 1920.0), canvas);
assert!(!changes && got.len() == 2 && got[1].0 == 23 && (got[1].1.x - got[0].1.x - 230.0).abs() < 1e-6);
// inside a card that moves with it, cutting its sides: the same cut throughout, keyed as it moves
let card = |f: i64| key(f, [80.0 + 4.0 * f as f64, 300.0, 600.0, 1066.7], Some([140.0 + 4.0 * f as f64, 300.0, 480.0, 1066.7]));
let carded = LClip { r#box: Some(card(0).r#box), clip: card(0).clip, keys: (0..24).map(card).collect(), ..LClip::new("v".into(), 0, 0, 24, 0.0) };
let (got, changes) = keys(&carded, "cover", first(&carded), (1080.0, 1920.0), canvas);
assert!(!changes && got.len() == 2 && got.iter().all(|(_, p)| p.crop[0] > 0.09 && p.crop[2] < 0.91));
// the split close: its box shrinking to the seam changes what's cut, which CapCut's crop can't follow
let split = |f: i64, h: f64| key(f, [0.0, -260.0 * (1920.0 - h) / 1060.0, 1080.0, 1920.0], (h < 1920.0).then_some([0.0, 0.0, 1080.0, h]));
let closing = LClip { r#box: Some(split(0, 1920.0).r#box), keys: vec![split(0, 1920.0), split(12, 860.0)], ..LClip::new("v".into(), 0, 0, 24, 0.0) };
let (got, changes) = keys(&closing, "cover", first(&closing), (1080.0, 1920.0), canvas);
assert!(changes && got.len() == 2 && got[1].1.crop == [0.0, 0.0, 1.0, 1.0]);
}
+11
View File
@@ -11,12 +11,23 @@ description = "`raea check`: the floor's measurable lines on an export, ranked P
raea-core-brief = { path = "../../core/brief" }
# a transcript's words, read as `raea world` reads them (docs/direction.feature DR1)
raea-core-facts = { path = "../../core/facts" }
raea-io-home = { path = "../../io/home" }
# a check's record named by when it was (UTC, DR3)
raea-io-trace = { path = "../../io/trace" }
# ffmpeg's flag for every decoded frame, by its version
raea-io-ffmpeg = { path = "../../io/ffmpeg" }
# caption contrast and loudness, measured as `raea world` measures a render (DR2)
raea-sys-measure = { path = "../../systems/measure" }
# what it reads of a video, through FFmpeg or raea's own decoders where it isn't installed
raea-app-check-read = { path = "read" }
# who can fix what it finds: the encode's or the picture's own, carried, a source (split out to keep this crate small)
raea-app-check-cause = { path = "cause" }
# the text rules on a render's manifest (split out: raea render holds its own text to them)
raea-app-check-text = { path = "text" }
# the flashing screen (WCAG 2.3.1), split out to keep this crate small
raea-app-check-flash = { path = "flash" }
# what the person sent from the raea app, handed to the agent (split out to keep this crate small)
raea-app-check-inbox = { path = "inbox" }
# the Stop gate for a `make` job (docs/goal.feature MK2; split out to keep this crate small)
raea-app-check-make = { path = "make" }
serde_json = "1"
+15
View File
@@ -0,0 +1,15 @@
[package]
name = "raea-app-check-cause"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "Who can fix what raea check finds: the encode's or the picture's own, carried from an earlier export, a source rather than a delivery"
[dependencies]
# a project's record of renders and checks (DR3)
raea-core-facts = { path = "../../../core/facts" }
image = { version = "0.25", default-features = false, features = ["png"] }
[dev-dependencies]
serde_json = "1"
+174
View File
@@ -0,0 +1,174 @@
//! Who can fix what `raea check` finds, so a round is spent only on what another render can change (11-19: two
//! Telluride projects took nine renders, five of them for findings no render could move). Three things, for any rule:
//!
//! - **Introduced or there already.** A rule an encode can cause is measured again on the composition's own frames,
//! rendered without encoding (`unencoded`), and the export is set against them (`against`): what the picture already
//! held is the footage's (a note), what the export adds is the encode's (the error, with a fix raea has).
//! - **Carried.** A finding an earlier export of the same composition had at the same moment (`earlier`, `carried`)
//! says since when: the change between them didn't move it, so doing that again won't.
//! - **A source isn't a delivery.** A take or a download checked on its own (`is_source`) isn't held to a delivery's
//! loudness target.
//!
//! None of it changes what a rule measures or where it draws the line.
use std::path::{Path, PathBuf};
use std::process::Command;
use raea_core_facts::{Finding, record};
pub type R<T> = Result<T, String>;
/// Whether a record entry is the render that wrote `out` (a path as the record names it)
fn rendered(e: &record::Entry, out: &str) -> bool {
e.by == "raea render" && e.out.as_deref() == Some(out)
}
/// The composition a video was rendered from, and its project: the newest `raea render` writing it in the project's
/// record (DR3). None outside a project, or for a video no render there wrote (a take, a download).
pub fn composition_of(video: &Path) -> Option<(PathBuf, PathBuf)> {
let project = record::up(video, ".raea/project")?;
let want = record::rel(&project, video);
let made = record::read(&project).into_iter().rev().find(|e| e.kind == "video" && rendered(e, &want))?;
let of = project.join(&made.of);
of.is_file().then_some((project, of))
}
/// Whether a file is one of a project's sources (a take or a download under assets/ or media/ that no render wrote):
/// it isn't a delivery, so a delivery's rules (its loudness target) don't hold it
pub fn is_source(video: &Path) -> bool {
let Some(project) = record::up(video, ".raea/project") else { return false };
let me = record::rel(&project, video);
(me.starts_with("assets/") || me.starts_with("media/")) && !record::read(&project).iter().any(|e| rendered(e, &me))
}
/// Luma as a decoder of raea's export gives it to the check (BT.709, full range: FFmpeg's format=gray of the
/// encoder's limited-range picture), from 8-bit RGBA `width` wide, its top-left `w` x `h`
pub fn luma(rgba: &[u8], width: usize, w: usize, h: usize) -> Vec<u8> {
let mut y = Vec::with_capacity(w * h);
for r in 0..h {
for p in rgba[r * width * 4..][..w * 4].chunks_exact(4) {
y.push((0.2126 * p[0] as f32 + 0.7152 * p[1] as f32 + 0.0722 * p[2] as f32).round().clamp(0.0, 255.0) as u8);
}
}
y
}
/// `frames` as `comp` draws them, never encoded, as luma `w` x `h` (top-left): `raea render COMP --at F,... -o DIR/`
/// (PNG) run by `raea` from the project, kept out of its record as the quick check's stills are
pub fn unencoded(raea: &Path, project: &Path, comp: &Path, frames: &[i64], w: usize, h: usize) -> R<Vec<Vec<u8>>> {
let mut wanted: Vec<i64> = frames.to_vec();
wanted.sort_unstable();
wanted.dedup();
let tmp = std::env::temp_dir().join(format!("raea-unencoded-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&tmp);
std::fs::create_dir_all(&tmp).map_err(|e| format!("{}: {e}", tmp.display()))?;
let at = wanted.iter().map(|f| f.to_string()).collect::<Vec<_>>().join(",");
let read = (|| {
let run = Command::new(raea).arg("render").arg(comp).args(["--at", &at, "-o"]).arg(format!("{}/", tmp.display())).current_dir(project).env("RAEA_RECORD", "off").output().map_err(|e| e.to_string())?;
let mut pngs: Vec<PathBuf> = std::fs::read_dir(&tmp).map_err(|e| e.to_string())?.filter_map(|e| e.ok().map(|e| e.path())).filter(|p| p.extension().is_some_and(|x| x == "png")).collect();
pngs.sort();
if pngs.len() != wanted.len() {
let said = String::from_utf8_lossy(&run.stderr).lines().chain(String::from_utf8_lossy(&run.stdout).lines()).find(|l| l.contains("REFUSED") || l.contains("rror")).unwrap_or("").to_string();
return Err(format!("its render gave {} of {} frames {said}", pngs.len(), wanted.len()).trim_end().to_string());
}
let mut by_frame = std::collections::HashMap::new();
for (f, p) in wanted.iter().zip(&pngs) {
let img = image::open(p).map_err(|e| format!("{}: {e}", p.display()))?.to_rgba8();
let (iw, ih) = (img.width() as usize, img.height() as usize);
if iw < w || ih < h {
return Err(format!("it draws {iw}x{ih}, smaller than the export's {w}x{h}"));
}
by_frame.insert(*f, luma(img.as_raw(), iw, w, h));
}
Ok(frames.iter().map(|f| by_frame[f].clone()).collect())
})();
let _ = std::fs::remove_dir_all(&tmp);
read
}
/// The frame a check reads for each sample taken every `every` seconds from 0: the last frame before the sample's
/// middle, as ffmpeg's fps filter picks it (and raea-app-check-read's readers), held to the picture's `last` frame
pub fn sampled(samples: usize, every: f64, fps: f64, last: i64) -> Vec<i64> {
(0..samples).map(|k| (((k as f64 + 0.5) * every * fps).ceil() as i64 - 1).clamp(0, last.max(0))).collect()
}
/// A sampled measure of the export against the same measure of the unencoded frames.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Against {
/// samples over the rule's line that the export made worse by more than its noise
pub worse: usize,
/// samples over the line before encoding: the picture's own
pub before: usize,
/// samples compared
pub of: usize,
/// the mean of the export's measure less the unencoded one's
pub added: f64,
}
impl Against {
/// Whether the export added to it, beyond what a clean encode moves: at least three samples (and a tenth) worse,
/// and more than half the noise on average
pub fn by_encode(&self, noise: f64) -> bool {
self.worse >= 3usize.max(self.of / 10) && self.added > noise / 2.0
}
/// The first sample the export made worse
pub fn first(out: &[Option<f64>], before: &[Option<f64>], line: f64, noise: f64) -> Option<usize> {
out.iter().zip(before).position(|(o, b)| o.unwrap_or(0.0) > line && o.unwrap_or(0.0) - b.unwrap_or(0.0) > noise)
}
}
/// Per sample, the export's measure against the unencoded frames' (None: nothing to measure, read as 0), over a
/// rule's `line`, where a clean encode moves it at most `noise`
pub fn against(out: &[Option<f64>], before: &[Option<f64>], line: f64, noise: f64) -> Against {
let n = out.len().min(before.len());
let at = |s: &[Option<f64>], i: usize| s[i].unwrap_or(0.0);
let worse = (0..n).filter(|&i| at(out, i) > line && at(out, i) - at(before, i) > noise).count();
let was = (0..n).filter(|&i| at(before, i) > line).count();
let added = (0..n).map(|i| at(out, i) - at(before, i)).sum::<f64>() / n.max(1) as f64;
Against { worse, before: was, of: n, added }
}
/// The newest check, in the project's record, of an earlier export of the composition `video` was rendered from
pub fn earlier(video: &Path) -> Option<record::Entry> {
let project = record::up(video, ".raea/project")?;
let me = record::rel(&project, video);
let entries = record::read(&project);
let made = entries.iter().rposition(|e| rendered(e, &me))?;
// the composition's exports rendered before this one; a versioned copy (NAME-v2.tsx) is the same piece
let stem = |of: &str| piece(&Path::new(of).file_stem().map(|s| s.to_string_lossy().to_string()).unwrap_or_default());
let comp = stem(&entries[made].of);
let exports: Vec<String> = entries[..made].iter().filter(|e| e.by == "raea render" && e.kind == "video" && stem(&e.of) == comp).filter_map(|e| e.out.clone()).filter(|o| *o != me).collect();
entries.into_iter().rev().find(|e| e.by == "raea check" && exports.contains(&e.of))
}
/// A composition's name without its version: walkaround-v2 is walkaround
pub fn piece(stem: &str) -> String {
match stem.rfind("-v") {
Some(i) if i + 2 < stem.len() && stem[i + 2..].bytes().all(|b| b.is_ascii_digit()) => stem[..i].to_string(),
_ => stem.to_string(),
}
}
/// The same finding in another export: the same rule, about the same thing, at the same moment (within a second; a
/// finding about the whole piece matches one about the whole piece). Its words may differ ("worst 13%", "worst 15%").
pub fn alike(a: &Finding, b: &Finding, fps: f64) -> bool {
let about = |f: &Finding| f.about.iter().map(|a| a.key.clone().unwrap_or_else(|| a.name.clone())).collect::<Vec<_>>();
a.check == b.check && about(a) == about(b) && match (a.frames, b.frames) {
(Some([x, _]), Some([y, _])) => ((x - y).abs() as f64) <= fps.max(1.0),
(None, None) => true,
_ => false,
}
}
/// Each finding an earlier check had at the same moment says so, and that its fix hasn't moved it: rank and words
/// otherwise as measured
pub fn carried(now: &mut [Finding], before: &record::Entry, fps: f64) {
for f in now.iter_mut() {
if before.findings.iter().any(|b| alike(b, f, fps)) {
f.says.push_str(&format!(" [also in {} ({}): what changed between them didn't move it]", before.of, before.id));
}
}
}
#[cfg(test)]
mod tests;
+107
View File
@@ -0,0 +1,107 @@
use super::*;
use raea_core_facts::Level;
// The 28 samples `raea check` takes of the 11-16 Telluride walkaround (55.8 s, 24 fps, phone footage), as its
// blotching measures them: rendered to PNG with no encoding (BEFORE), those PNGs through x264 crf 12, and raea's own
// exports at --quality high and master. Blotching's line is 0.009; x264 moved a sample at most 0.005.
const BEFORE: [Option<f64>; 28] = [Some(0.0), None, Some(0.052), Some(0.062), None, Some(0.062), None, None, Some(0.076), Some(0.009), Some(0.03), Some(0.039), Some(0.068), None, None, None, None, Some(0.077), Some(0.062), None, None, Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0)];
const X264: [Option<f64>; 28] = [Some(0.0), None, Some(0.052), Some(0.062), None, Some(0.059), None, None, Some(0.078), Some(0.008), Some(0.028), Some(0.034), Some(0.071), None, None, None, None, Some(0.078), Some(0.062), None, Some(0.039), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0)];
const HIGH: [Option<f64>; 28] = [Some(0.0), None, Some(0.042), Some(0.024), Some(0.052), Some(0.064), Some(0.05), None, Some(0.126), Some(0.063), Some(0.061), Some(0.122), Some(0.088), Some(0.04), Some(0.029), Some(0.047), Some(0.044), Some(0.096), Some(0.09), None, Some(0.029), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0)];
const MASTER: [Option<f64>; 28] = [Some(0.0), None, Some(0.026), Some(0.002), None, Some(0.03), None, None, Some(0.022), None, None, None, None, None, None, None, None, Some(0.071), Some(0.053), None, None, Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0), Some(0.0)];
const LINE: f64 = 0.009;
const NOISE: f64 = 0.005;
/// What the picture already held is told from what the encode added: a clean encode and raea's master add nothing,
/// its high adds to 14 of 28 samples, and 9 samples hold the footage's own either way
#[test]
fn the_picture_s_own_is_told_from_the_encode_s() {
let clean = against(&X264, &BEFORE, LINE, NOISE);
assert!(!clean.by_encode(NOISE), "{clean:?}");
assert!(clean.added.abs() < 0.002, "{clean:?}");
let high = against(&HIGH, &BEFORE, LINE, NOISE);
assert!(high.by_encode(NOISE), "{high:?}");
assert_eq!((high.worse, high.before, high.of), (14, 9, 28));
assert_eq!(Against::first(&HIGH, &BEFORE, LINE, NOISE), Some(4));
let master = against(&MASTER, &BEFORE, LINE, NOISE);
assert!(!master.by_encode(NOISE), "{master:?}");
assert_eq!(master.worse, 0);
// a small, even addition over a clean picture still counts (VideoToolbox over a dark render, 10-25)
assert!(against(&[Some(0.013); 16], &[Some(0.003); 16], LINE, NOISE).by_encode(NOISE));
}
/// The frame read for each sample is the last before its middle, as the fps filter picks it
#[test]
fn the_sampled_frames_are_the_check_s() {
assert_eq!(sampled(3, 2.0, 24.0, 1338), vec![23, 71, 119]);
assert_eq!(sampled(2, 2.0, 30.0, 1000), vec![29, 89]);
assert_eq!(sampled(2, 2.0, 30000.0 / 1001.0, 1000), vec![29, 89]);
assert_eq!(sampled(2, 2.0, 24.0, 50), vec![23, 50]);
}
/// Luma as the check reads raea's export: BT.709 weights, full range, cropped to the top-left
#[test]
fn luma_is_bt709_cropped() {
let px = |r: u8, g: u8, b: u8| [r, g, b, 255];
let rgba: Vec<u8> = [px(255, 255, 255), px(0, 0, 0), px(255, 0, 0), px(0, 255, 0)].concat();
assert_eq!(luma(&rgba, 2, 2, 2), vec![255, 0, 54, 182]);
assert_eq!(luma(&rgba, 2, 1, 2), vec![255, 54]);
}
fn finding(check: &str, frame: Option<i64>, says: &str) -> Finding {
let f = Finding::new(check, Level::Error, says, "raea check");
match frame {
Some(n) => f.frames(n, n + 1),
None => f,
}
}
/// A finding is carried when the same rule finds the same thing at the same moment, whatever its numbers say
#[test]
fn a_carried_finding_is_the_same_rule_at_the_same_moment() {
let fps = 24.0;
assert!(alike(&finding("blotching", Some(96), "worst 13%"), &finding("blotching", Some(96), "worst 15%"), fps));
assert!(alike(&finding("clipping", Some(624), "9 runs"), &finding("clipping", Some(640), "6 runs"), fps));
assert!(!alike(&finding("clipping", Some(624), "9 runs"), &finding("clipping", Some(1104), "11 runs"), fps));
assert!(!alike(&finding("clipping", Some(624), "x"), &finding("dropout", Some(624), "x"), fps));
assert!(alike(&finding("brand", None, "a"), &finding("brand", None, "b"), fps));
assert_eq!(piece("walkaround-v2"), "walkaround");
assert_eq!(piece("edit-video"), "edit-video");
assert_eq!(piece("telluride-v12"), "telluride");
}
/// A project whose record holds two renders of one composition and a check of the first: the second's check finds
/// that one, its blotching carried and its clipping new; a take under assets/ is a source, an export isn't
#[test]
fn the_earlier_check_is_of_the_composition_s_other_export() {
let dir = std::env::temp_dir().join(format!("raea-cause-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&dir);
for d in [".raea/record", "out", "assets/footage", "compositions"] {
std::fs::create_dir_all(dir.join(d)).unwrap();
}
std::fs::write(dir.join(".raea/project"), "[project]\n\tid = pj_test\n").unwrap();
for f in ["out/a-v1.mp4", "out/a-v2.mp4", "assets/footage/take.mov", "compositions/a.tsx", "compositions/a-v2.tsx"] {
std::fs::write(dir.join(f), b"").unwrap();
}
let entry = |id: &str, by: &str, of: &str, out: Option<&str>, kind: &str, findings: Vec<Finding>| record::Entry { id: id.into(), at: 0, by: by.into(), of: of.into(), out: out.map(Into::into), kind: kind.into(), commit: None, findings, despite: vec![] };
let entries = [
entry("20261116-170223-a", "raea render", "compositions/a.tsx", Some("out/a-v1.mp4"), "video", vec![]),
entry("20261116-170252-a-v1", "raea check", "out/a-v1.mp4", None, "check", vec![finding("blotching", Some(96), "worst 13%")]),
entry("20261116-171601-a-v2", "raea render", "compositions/a-v2.tsx", Some("out/a-v2.mp4"), "video", vec![]),
];
for e in &entries {
std::fs::write(dir.join(format!(".raea/record/{}.json", e.id)), serde_json::to_vec(e).unwrap()).unwrap();
}
let v2 = dir.join("out/a-v2.mp4");
assert_eq!(composition_of(&v2).map(|(_, c)| c.ends_with("compositions/a-v2.tsx")), Some(true));
let before = earlier(&v2).expect("the check of a-v1");
assert_eq!(before.of, "out/a-v1.mp4");
let mut now = vec![finding("blotching", Some(96), "worst 15%"), finding("clipping", Some(624), "9 runs")];
carried(&mut now, &before, 24.0);
assert!(now[0].says.contains("also in out/a-v1.mp4 (20261116-170252-a-v1)"), "{}", now[0].says);
assert_eq!(now[1].says, "9 runs");
// nothing was rendered before a-v1, so its check has no earlier one, even with a-v2's check in the record
assert!(earlier(&dir.join("out/a-v1.mp4")).is_none());
assert!(is_source(&dir.join("assets/footage/take.mov")));
assert!(!is_source(&v2));
let _ = std::fs::remove_dir_all(&dir);
}
+12
View File
@@ -0,0 +1,12 @@
[package]
name = "raea-app-check-inbox"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
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"
[dependencies]
serde_json = "1"
# the inbox folder, under the home folder
raea-io-home = { path = "../../../io/home" }
+146
View File
@@ -0,0 +1,146 @@
//! What the person sent from the raea app, handed to the session it's for at its next step (docs/agents.feature A3c;
//! Shane 11-14: a reply in the feed "doesn't confirm, doesn't interrupt the agent", and the app forked a copy of the
//! session so two agents ran). A session that posted with `raea show` has an inbox, ~/.raea/inbox/<inbox>.jsonl, and
//! the app writes there what the person sends on its items or to it in the feed, even while its terminal is busy. This
//! hook reads what was added since it last looked, after any tool call and when a turn is about to end, and hands it
//! over: as the tool's context, or as the reason the turn goes on. How far it has read is kept beside the inbox
//! (<inbox>.read, a byte offset), which the app reads to say the message was read.
use serde_json::Value;
use std::path::{Path, PathBuf};
/// The session's inbox, named as `raea show` names it (engine/cli/src/show.ts posterOf): the harness's name and the
/// first eight of its session id.
pub fn name(agent: &str, v: &Value) -> Option<String> {
let session = v["session_id"].as_str().map(String::from).or_else(|| std::env::var("CLAUDE_CODE_SESSION_ID").ok()).filter(|s| !s.is_empty())?;
let slug = match agent {
"claude" => "claude-code",
"codex" => "codex",
"gemini" => "gemini",
_ => return None,
};
// the id's word characters, dots and dashes, as posterOf's /[^\w.-]/ leaves them
let id: String = session.chars().filter(|c| c.is_ascii_alphanumeric() || "_.-".contains(*c)).take(8).collect();
Some(format!("{slug}-{id}"))
}
/// $RAEA_INBOX_DIR, else ~/.raea/inbox
pub fn dir() -> PathBuf {
raea_io_home::env_path("RAEA_INBOX_DIR", ".raea/inbox")
}
/// The lines added to the inbox since the last look, each read once: the cursor moves past them.
pub fn unread(dir: &Path, inbox: &str) -> Vec<Value> {
let file = dir.join(format!("{inbox}.jsonl"));
let mark = dir.join(format!("{inbox}.read"));
let Ok(all) = std::fs::read(&file) else { return vec![] };
let from = std::fs::read_to_string(&mark).ok().and_then(|s| s.trim().parse::<usize>().ok()).unwrap_or(0).min(all.len());
// only whole lines: one being written stays for the next look
let Some(end) = all[from..].iter().rposition(|&b| b == b'\n').map(|i| from + i + 1) else { return vec![] };
let lines = String::from_utf8_lossy(&all[from..end]).lines().filter_map(|l| serde_json::from_str(l).ok()).collect();
let _ = std::fs::write(&mark, end.to_string());
lines
}
/// One line as the agent reads it: who it's on, what kind, the words.
fn said(l: &Value) -> String {
let s = |k: &str| l[k].as_str().unwrap_or("").trim().to_string();
let on = if s("item").is_empty() { String::new() } else { format!(" on item {} \"{}\"", s("item"), s("title")) };
let kind = s("kind");
let text = s("text");
let what = match kind.as_str() {
"message" => format!("a message{}: {text}", if s("project").is_empty() { String::new() } else { format!(" (project {})", s("project")) }),
"edits" => format!("edits{on}:\n{text}{}", if s("tasks").is_empty() { String::new() } else { format!("\n({})", s("tasks")) }),
"note" => format!("a note{on}: {text}"),
"answer" => format!("answers{on}: {text}"),
"result" => format!("a result{on}: {text}"),
"correction" => format!("a correction{on}: {text}"),
"sign" => format!("a sign-off{on} (ask {})", l["ask"]),
// a show only to be looked at (raea show --fyi), looked at: Got it, with a word or none
"seen" => {
let word = text.strip_prefix("Seen").unwrap_or(&text).trim_start_matches(':').trim();
if word.is_empty() { format!("seen{on}") } else { format!("seen{on}: {word}") }
}
k => format!("{}{on}: {text}", if k.is_empty() { "something" } else { k }),
};
format!("- {what}")
}
/// What the agent is told, or None when nothing's new.
pub fn told(agent: &str, v: &Value) -> Option<String> {
let inbox = name(agent, v)?;
let lines = unread(&dir(), &inbox);
if lines.is_empty() {
return None;
}
let list = lines.iter().map(said).collect::<Vec<_>>().join("\n");
// only Got it on what was shown to look at: nothing to take up
if !lines.iter().any(|l| l["kind"] != "seen") {
return Some(format!("raea: the person has looked at what you showed them (your inbox, ~/.raea/inbox/{inbox}.jsonl):\n{list}\nNothing to do about it; carry on."));
}
// a session started again (resumed) after the person wrote to it while it was closed (Shane 11-28: "notes reach
// closed sessions"): what waited is handed over before anything else
if v["hook_event_name"].as_str() == Some("SessionStart") {
return Some(format!(
"raea: while this session was closed, the person 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 first, before anything else. Answer an item with raea show --on ITEM --note LINE, or post the next version with raea show FILE --replaces ITEM."
));
}
Some(format!(
"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."
))
}
#[cfg(test)]
mod tests {
use super::*;
use serde_json::json;
/// an empty inbox folder of the test's own
fn scratch(tag: &str) -> std::path::PathBuf {
let d = std::env::temp_dir().join(format!("raea-inbox-{tag}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&d);
std::fs::create_dir_all(&d).unwrap();
d
}
#[test]
fn each_line_is_handed_over_once_and_a_half_written_one_waits() {
let d = scratch("once");
let f = d.join("claude-code-abcd1234.jsonl");
std::fs::write(&f, "{\"kind\":\"message\",\"text\":\"more epic\"}\n{\"kind\":\"no").unwrap();
let first = unread(&d, "claude-code-abcd1234");
assert_eq!(first.len(), 1);
assert_eq!(said(&first[0]), "- a message: more epic");
assert!(unread(&d, "claude-code-abcd1234").is_empty());
std::fs::write(&f, "{\"kind\":\"message\",\"text\":\"more epic\"}\n{\"kind\":\"note\",\"item\":\"i-1\",\"title\":\"Board\",\"text\":\"hills taller\"}\n").unwrap();
let next = unread(&d, "claude-code-abcd1234");
assert_eq!(next.len(), 1);
assert_eq!(said(&next[0]), "- a note on item i-1 \"Board\": hills taller");
assert_eq!(std::fs::read_to_string(d.join("claude-code-abcd1234.read")).unwrap(), std::fs::metadata(&f).unwrap().len().to_string());
let _ = std::fs::remove_dir_all(&d);
}
#[test]
fn seen_is_said_as_seen_and_asks_nothing() {
assert_eq!(said(&json!({"kind": "seen", "item": "i-2", "title": "Lobby", "text": "Seen"})), "- seen on item i-2 \"Lobby\"");
assert_eq!(said(&json!({"kind": "seen", "item": "i-2", "title": "Lobby", "text": "Seen: lovely"})), "- seen on item i-2 \"Lobby\": lovely");
}
#[test]
fn what_waited_while_it_was_closed_is_handed_over_as_it_starts_again() {
let d = scratch("start");
std::fs::write(d.join("claude-code-5e55a0ff.jsonl"), "{\"kind\":\"edits\",\"item\":\"i-9\",\"title\":\"Cut\",\"text\":\"tighter open\"}\n").unwrap();
// SAFETY: tests in this crate don't read RAEA_INBOX_DIR concurrently
unsafe { std::env::set_var("RAEA_INBOX_DIR", &d) };
let start = told("claude", &json!({"hook_event_name": "SessionStart", "source": "resume", "session_id": "5e55a0ff-1"})).unwrap();
assert!(start.starts_with("raea: while this session was closed") && start.contains("- edits on item i-9 \"Cut\":\ntighter open"), "{start}");
assert_eq!(told("claude", &json!({"hook_event_name": "UserPromptSubmit", "session_id": "5e55a0ff-1"})), None, "handed over once");
unsafe { std::env::remove_var("RAEA_INBOX_DIR") };
let _ = std::fs::remove_dir_all(&d);
}
#[test]
fn the_inbox_is_named_as_raea_show_names_it() {
assert_eq!(name("claude", &json!({"session_id": "15cd6bb0-8829-466f-a28a-bbca3d35be92"})).as_deref(), Some("claude-code-15cd6bb0"));
assert_eq!(name("kimi", &json!({"session_id": "x"})), None);
}
}
+16
View File
@@ -0,0 +1,16 @@
[package]
name = "raea-app-check-make"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "`raea hook`'s Stop gate for a `make` job (docs/goal.feature MK36): an agent can't end its turn until `raea goal check --at done` passes"
[dependencies]
serde_json = "1"
# brief.ts found as raea finds a project (plain paths on Windows)
dunce = "1"
# the project's folder (record.rs `up`)
raea-core-facts = { path = "../../../core/facts" }
# the guard's counts, under the home folder
raea-io-home = { path = "../../../io/home" }
+125
View File
@@ -0,0 +1,125 @@
//! raea-app-check-make: the Stop hook's moment of the loop (docs/goal.feature MK36): an agent working in a project with a
//! brief.ts can't end its turn until `raea goal check --at done` passes: every goal the brief holds (or, with none, the
//! floor) and every raea file reached from the brief (`registered`). Run by `raea goal check`, a child process, so this
//! crate carries none of the rules. A session blocked three times with the same open items goes through: it's going in
//! circles, and the person is better told than the agent looped.
use std::hash::{DefaultHasher, Hash, Hasher};
use std::path::{Path, PathBuf};
use serde_json::Value;
/// How many times the same open items may block one session before the stop goes through.
pub const SAME_BLOCKS: u32 = 3;
/// The project's brief.ts, at or above `cwd` inside its raea project: every brief is held, none is an outlier.
pub fn brief_with_job(cwd: &Path) -> Option<PathBuf> {
let project = raea_core_facts::record::up(cwd, ".raea/project");
for d in dunce::canonicalize(cwd).ok()?.ancestors() {
let p = d.join("brief.ts");
if p.is_file() {
return Some(p);
}
if project.as_deref() == Some(d) {
return None;
}
}
None
}
fn hash(parts: &[&str]) -> u64 {
let mut h = DefaultHasher::new();
parts.hash(&mut h);
h.finish()
}
/// Counts this session's blocks on the same open items in `guard` ("<items hash> <count>"); true while it may block.
pub fn may_block(guard: &Path, items: &str) -> bool {
let key = hash(&[items]).to_string();
let count = std::fs::read_to_string(guard).ok().and_then(|t| {
let (k, n) = t.trim().split_once(' ')?;
(k == key).then(|| n.parse::<u32>().ok()).flatten()
});
let next = count.unwrap_or(0) + 1;
let _ = std::fs::create_dir_all(guard.parent().unwrap_or(Path::new(".")));
let _ = std::fs::write(guard, format!("{key} {next}"));
next <= SAME_BLOCKS
}
/// What the agent is told when its turn may not end, or None to let it end: no job here, the job passes, the runner
/// didn't run (never block on raea's own failure), or the same items have blocked it three times already.
pub fn stop(v: &Value) -> Option<String> {
let cwd = PathBuf::from(v["cwd"].as_str()?);
let brief = brief_with_job(&cwd)?;
let exe = std::env::current_exe().ok()?;
let out = std::process::Command::new(exe).args(["goal", "check", "--at", "done", "--json"]).current_dir(brief.parent()?).env("RAEA_RECORD", "off").output().ok()?;
let r: Value = serde_json::from_slice(&out.stdout).ok()?;
let home = raea_io_home::user_home()?;
let session = v["session_id"].as_str().unwrap_or("");
let guard = home.join(".raea/hooks/goal").join(format!("{:x}", hash(&[session, &brief.display().to_string()])));
if r["passed"] == true {
let _ = std::fs::remove_file(&guard);
return None;
}
let items = open_items(&r);
if !may_block(&guard, &items) {
return None;
}
let goals: Vec<String> = r["goals"].as_array().into_iter().flatten().filter(|g| g["passed"] != true).filter_map(|g| g["name"].as_str().map(String::from)).collect();
let open = if goals.is_empty() { String::new() } else { format!("goal {}, ", goals.join(", ")) };
Some(format!("Not done ({open}{}): {items}. Keep going: `raea goal check` lists each with its fix; review/goal.json holds them all.", brief.display()))
}
/// The open items, one line each: each error-level finding (its check and file), then each check that broke.
pub fn open_items(r: &Value) -> String {
let mut items: Vec<String> = r["findings"]
.as_array()
.into_iter()
.flatten()
.filter(|x| x["level"] == "error")
.map(|x| format!("{}{}: {}", x["check"].as_str().unwrap_or(""), x["file"].as_str().map(|f| format!(" {f}")).unwrap_or_default(), x["says"].as_str().unwrap_or("")))
.collect();
for b in r["broke"].as_array().into_iter().flatten() {
items.push(format!("{} broke: {}", b["check"].as_str().unwrap_or(""), b["says"].as_str().unwrap_or("")));
}
items.join("; ")
}
#[cfg(test)]
mod tests {
use super::*;
use serde_json::json;
fn tmp(name: &str) -> PathBuf {
let d = std::env::temp_dir().join(format!("raea-goal-gate-{name}-{}", std::process::id()));
let _ = std::fs::remove_dir_all(&d);
std::fs::create_dir_all(d.join("compositions")).unwrap();
d
}
#[test]
fn every_brief_is_held_with_or_without_a_goal() {
let d = tmp("job");
assert_eq!(brief_with_job(&d.join("compositions")), None, "no brief, nothing held");
std::fs::write(d.join("brief.ts"), "export default brief({ title: \"x\" })").unwrap();
assert_eq!(brief_with_job(&d.join("compositions")).map(|p| p.file_name().unwrap().to_owned()), Some("brief.ts".into()), "a brief without a goal is held to the floor and registered");
}
#[test]
fn the_same_open_items_block_three_times_then_go_through() {
let g = tmp("guard").join("g");
assert!(may_block(&g, "a") && may_block(&g, "a") && may_block(&g, "a"));
assert!(!may_block(&g, "a"), "a fourth stop on the same items goes through");
assert!(may_block(&g, "a; b"), "new items start the count again");
}
#[test]
fn open_items_list_each_error_then_each_broken_check() {
let r = json!({"findings": [
{"check": "deliverables", "level": "error", "file": null, "says": "missing: out/kit/lineup.png"},
{"check": "cta", "level": "error", "file": "out/cuts/a_9x16.mp4", "says": "no CTA in its last 8 s"},
{"check": "place", "level": "warn", "file": "out/cuts/a_9x16.mp4", "says": "a warning holds nothing"}],
"broke": [{"check": "mine", "says": "x is undefined"}]});
assert_eq!(open_items(&r), "deliverables: missing: out/kit/lineup.png; cta out/cuts/a_9x16.mp4: no CTA in its last 8 s; mine broke: x is undefined");
}
}
+21
View File
@@ -0,0 +1,21 @@
[package]
name = "raea-app-check-read"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "What `raea check` reads of a video: FFmpeg's probe, and raea's own decoders standing in for FFmpeg where it isn't installed"
[dependencies]
serde_json = "1"
raea-io-home = { path = "../../../io/home" }
raea-io-media = { path = "../../../io/media", default-features = false }
raea-app-media = { path = "../../media" }
# ffmpeg's flag for every decoded frame, by its version (the one read's flashing frames)
raea-io-ffmpeg = { path = "../../../io/ffmpeg" }
# caption contrast, as `raea world` measures it (DR2)
raea-sys-measure = { path = "../../../systems/measure" }
[target.'cfg(unix)'.dependencies]
# the one read's named pipes
libc = "0.2"
+219
View File
@@ -0,0 +1,219 @@
//! What `raea check` reads of a video: through FFmpeg where it's on the PATH (the reference its rules were tuned on),
//! else through raea's own decoders (raea-app-media), so `raea check` works wherever `raea media probe` and `raea media
//! loudness` do, with nothing to install. 0.1.7 refused any video without FFmpeg, which Windows never has (Shane 11-18:
//! "can we make it so ffmpeg does work the way we need it?"). RAEA_CHECK_NATIVE=1 reads natively with FFmpeg there too;
//! tests/parity.rs holds the two to the same answers. Each reader names the FFmpeg command it stands in for.
pub mod once;
pub use once::{log_level, showinfo_base, showinfo_frame};
use raea_io_media::VideoDecoder;
use serde_json::Value;
use std::path::Path;
use std::process::Command;
pub type R<T> = Result<T, String>;
/// Whether to read natively: FFmpeg's ffmpeg or ffprobe isn't on the PATH, or RAEA_CHECK_NATIVE is on
pub fn native() -> bool {
raea_io_home::env_on("RAEA_CHECK_NATIVE") || !(on_path("ffmpeg") && on_path("ffprobe"))
}
fn on_path(tool: &str) -> bool {
let exe = if cfg!(windows) { format!("{tool}.exe") } else { tool.to_string() };
std::env::var_os("PATH").is_some_and(|p| std::env::split_paths(&p).any(|d| d.join(&exe).is_file()))
}
fn open(video: &str) -> R<(Box<dyn VideoDecoder>, raea_io_media::Info)> {
let d = raea_app_media::open_video(Path::new(video))?;
let info = d.info().clone();
Ok((d, info))
}
/// A luma byte as FFmpeg's format=gray gives it from a limited-range picture: full range, 16-235 spread to 0-255 and
/// rounded (FFmpeg 9: 16 is 0, 126 is 128, 235 is 255)
fn gray(y: u8) -> u8 {
(((y.clamp(16, 235) as u32 - 16) * 255 + 109) / 219) as u8
}
/// What `raea check` needs to know of a video before it reads it
pub struct Probe {
pub w: f64,
pub h: f64,
pub duration: f64,
/// when the picture ends, on the clock FFmpeg's filters read: it starts at the file's first stream, sound can run on
/// past the picture, and the container's duration counts that
pub picture: f64,
pub audio: bool,
/// the picture's frames a second (0 when it doesn't say)
pub fps: f64,
}
/// The picture's size, the file's duration, where the picture ends and whether there's sound: ffprobe's stream and
/// format entries, or raea's own probe without FFmpeg
pub fn probe(video: &str) -> R<Probe> {
if native() {
let p = raea_app_media::probe_of(Path::new(video))?;
let v = p.video.as_ref().ok_or("no video stream")?;
let picture = p.track.as_ref().map_or(v.duration, |t| t.duration);
return Ok(Probe { w: v.width as f64, h: v.height as f64, duration: p.duration.max(picture), picture, audio: p.audio.is_some(), fps: v.fps });
}
let entries = "stream=codec_type,width,height,r_frame_rate,duration,start_time:format=duration,start_time";
let out = Command::new("ffprobe").args(["-v", "error", "-show_entries", entries, "-of", "json", video]).output().map_err(|e| format!("ffprobe: {e}"))?;
let v: Value = serde_json::from_slice(&out.stdout).map_err(|e| format!("ffprobe: {e}"))?;
let streams = v["streams"].as_array().cloned().unwrap_or_default();
let vid = streams.iter().find(|s| s["codec_type"] == "video").ok_or("no video stream")?;
let seconds = |field: &Value| -> Option<f64> { field.as_str()?.parse().ok() };
let duration = seconds(&v["format"]["duration"]).unwrap_or(0.0);
let origin = seconds(&v["format"]["start_time"]).unwrap_or(0.0);
let picture = match seconds(&vid["duration"]) {
Some(length) => seconds(&vid["start_time"]).unwrap_or(origin) - origin + length,
None => last_packet_end(video).map_or(duration, |end| end - origin),
};
let audio = streams.iter().any(|s| s["codec_type"] == "audio");
let fps = vid["r_frame_rate"].as_str().and_then(|r| {
let (n, d) = r.split_once('/').unwrap_or((r, "1"));
Some(n.parse::<f64>().ok()? / d.parse::<f64>().ok().filter(|d| *d > 0.0)?)
});
Ok(Probe { w: vid["width"].as_f64().unwrap_or(1920.0), h: vid["height"].as_f64().unwrap_or(1080.0), duration, picture, audio, fps: fps.unwrap_or(0.0) })
}
/// Where the picture's last packet ends, for a container that doesn't state the video stream's own length (Matroska)
fn last_packet_end(video: &str) -> Option<f64> {
let out = Command::new("ffprobe").args(["-v", "error", "-select_streams", "v:0", "-show_entries", "packet=pts_time,duration_time", "-of", "csv=p=0", video]).output().ok()?;
String::from_utf8_lossy(&out.stdout)
.lines()
.filter_map(|l| {
let mut parts = l.split(',');
let t: f64 = parts.next()?.trim().parse().ok()?;
Some(t + parts.next().and_then(|d| d.trim().parse::<f64>().ok()).unwrap_or(0.0))
})
.max_by(f64::total_cmp)
}
/// `ffmpeg -i V -vf scale=32:18:flags=area,format=gray -f rawvideo -` averaged a frame, and the rate `ffmpeg -i` says
/// (defects.rs lumas): each frame's mean light, 0 to 1, and the frames a second
pub fn lumas(video: &str) -> R<(Vec<f32>, f64)> {
let (mut d, info) = open(video)?;
let mut out = Vec::new();
for (_, at) in raea_app_media::frames_of(Path::new(video), &info, None, None) {
let (y, ..) = raea_app_media::yuv(d.frame_nv12_at(at)?);
out.push(y.iter().map(|&p| gray(p) as f32).sum::<f32>() / (y.len().max(1) as f32 * 255.0));
}
Ok((out, raea_app_media::standard_fps(info.fps)))
}
/// `ffmpeg -i V -vf fps=0.5,crop=W:H:0:0,format=gray -f rawvideo -` (picture.rs blotching): every 2 s, the picture's
/// top-left W x H in grey
pub fn crops(video: &str, w: usize, h: usize, mut each: impl FnMut(&[u8])) -> R<()> {
let (mut d, info) = open(video)?;
let frames = raea_app_media::frames_of(Path::new(video), &info, None, None);
for (tick, _) in raea_app_media::times(raea_app_media::video_span(Path::new(video), &info), None, None, 0.5) {
// the last frame before the tick's middle, as the fps filter picks it (by the frames' own times: a read at the
// middle less a microsecond came back a frame late)
let Some(&(_, at)) = frames.iter().take_while(|(pts, _)| *pts < tick + 1.0).last() else { continue };
let f = d.frame_nv12_at(at)?;
let fw = f.width as usize;
let (y, ..) = raea_app_media::yuv(f);
let crop: Vec<u8> = (0..h.min(y.len() / fw.max(1))).flat_map(|r| y[r * fw..r * fw + w.min(fw)].iter().map(|&p| gray(p))).collect();
each(&crop);
}
Ok(())
}
/// flash.rs's graph (showinfo, the picture at W x H area-sampled beside it point-sampled, rgb24): every frame with
/// its time, until `each` says stop. How many frames were read.
pub fn flash_frames(video: &str, w: usize, h: usize, mut each: impl FnMut(f64, &[u8])) -> R<usize> {
let (mut d, info) = open(video)?;
let mut buf = vec![0u8; w * 2 * h * 3];
let mut n = 0;
for (pts, at) in raea_app_media::frames_of(Path::new(video), &info, None, None) {
let f = d.frame_at(at)?;
let (sw, sh) = (f.width as usize, f.height as usize);
for y in 0..h {
let (y0, y1) = (y * sh / h, ((y + 1) * sh / h).max(y * sh / h + 1));
for x in 0..w {
let (x0, x1) = (x * sw / w, ((x + 1) * sw / w).max(x * sw / w + 1));
let mut sum = [0u32; 3];
for sy in y0..y1 {
for p in f.rgba[(sy * sw + x0) * 4..(sy * sw + x1) * 4].chunks_exact(4) {
(0..3).for_each(|c| sum[c] += p[c] as u32);
}
}
let count = ((y1 - y0) * (x1 - x0)) as u32;
let near = ((y * sh + sh / 2) / h * sw + (x * sw + sw / 2) / w) * 4;
for c in 0..3 {
buf[(y * w * 2 + x) * 3 + c] = ((sum[c] + count / 2) / count) as u8;
buf[(y * w * 2 + w + x) * 3 + c] = f.rgba[near + c];
}
}
}
each(pts, &buf);
n += 1;
}
Ok(n)
}
/// `ffmpeg -i V -vn -ac 1 -ar RATE -f f32le -` (sound.rs sound): the sound folded to mono at `rate`
pub fn mono(video: &str, rate: u32) -> R<Vec<f32>> {
if native() {
return Ok(raea_app_media::audio_folded(Path::new(video), rate, true, None, None, false)?.channels.swap_remove(0));
}
ffmpeg_f32(video, 1, rate)
}
/// `ffmpeg -i V -vn -ac N -ar R -f f32le -`: the sound as N interleaved channels of floats
fn ffmpeg_f32(video: &str, channels: u32, rate: u32) -> R<Vec<f32>> {
let out = Command::new("ffmpeg").args(["-v", "error", "-i", video, "-vn", "-ac", &channels.to_string(), "-ar", &rate.to_string(), "-f", "f32le", "-"]).output().map_err(|e| format!("ffmpeg: {e}"))?;
if !out.status.success() {
return Err(format!("ffmpeg couldn't read the sound of {video}: {}", String::from_utf8_lossy(&out.stderr).trim()));
}
Ok(out.stdout.chunks_exact(4).map(|b| f32::from_le_bytes([b[0], b[1], b[2], b[3]])).collect())
}
/// `ffmpeg -i V -vn -ac 2 -ar R -f f32le -` (defects.rs clipping): each channel at its own level. Clipping is a
/// channel's: on the mono fold (L + R) * 0.707 a centred voice reads 3 dB hotter than either side, and a master at
/// -1.6 dBTP read as full scale (11-19, the walkaround's flat tops).
pub fn channels(video: &str, rate: u32) -> R<Vec<Vec<f32>>> {
if native() {
return Ok(raea_app_media::audio_folded(Path::new(video), rate, false, None, None, false)?.channels);
}
let x = ffmpeg_f32(video, 2, rate)?;
Ok(vec![x.iter().step_by(2).copied().collect(), x.iter().skip(1).step_by(2).copied().collect()])
}
/// `ffmpeg -i V -vn -af ebur128=metadata=1,ametadata=print:key=lavfi.r128.M:file=- -f null -` (sound.rs sound): the
/// momentary loudness (400 ms) every 100 ms, each time and its LUFS
pub fn meter(video: &str) -> R<(Vec<f64>, Vec<f64>)> {
let a = raea_app_media::audio_folded(Path::new(video), raea_io_media::audio::RATE, false, None, None, false)?;
let n = (a.duration() * 10.0).floor() as usize;
Ok(((0..n).map(|i| i as f64 / 10.0).collect(), raea_io_media::audio::momentary(&a, 10.0, n)))
}
/// `ffmpeg -i V -an -vf freezedetect=n=NOISE_DB:d=MIN -f null -`'s log (sound.rs freezes reads it either way)
pub fn freezes(video: &str, noise_db: f64, min: f64) -> R<String> {
let found = raea_app_media::freezes(Path::new(video), 10f64.powf(noise_db / 20.0), min)?;
Ok(found.into_iter().map(|(s, end)| match end {
Some((d, e)) => format!("freeze_start: {s}\nfreeze_duration: {d}\nfreeze_end: {e}\n"),
None => format!("freeze_start: {s}\n"),
}).collect())
}
/// raea_sys_measure::contrast's read (`ffmpeg -ss AT -i V -frames:v 1 -vf crop=... -pix_fmt rgb24`): a text's contrast
/// against what's behind it, None when the crop falls outside the frame
pub fn contrast(video: &str, at: f64, crop: [u32; 4], color: &str) -> Option<f64> {
let [x, y, w, h] = [crop[0] & !1, crop[1] & !1, crop[2].max(2) & !1, crop[3].max(2) & !1].map(|v| v as usize);
let (mut d, _) = open(video).ok()?;
let f = d.frame_at(at).ok()?;
let fw = f.width as usize;
if x + w > fw || y + h > f.height as usize {
return None;
}
let rgb: Vec<u8> = (y..y + h).flat_map(|r| f.rgba[(r * fw + x) * 4..(r * fw + x + w) * 4].chunks_exact(4).flat_map(|p| [p[0], p[1], p[2]]).collect::<Vec<_>>()).collect();
raea_sys_measure::ratio_behind(&rgb, raea_sys_measure::lum(raea_sys_measure::rgb_of(color)))
}
/// raea_sys_measure::loudness's read (`ffmpeg -i V -vn -af ebur128=peak=true -f null -`): the integrated loudness and
/// true peak, None when there's no sound
pub fn loudness(video: &str) -> Option<(f64, Option<f64>)> {
let a = raea_app_media::audio_folded(Path::new(video), raea_io_media::audio::RATE, false, None, None, false).ok().filter(|a| a.len() > 0)?;
Some((raea_io_media::audio::lufs(&a), Some(raea_io_media::audio::true_peak_db(&a))))
}
+205
View File
@@ -0,0 +1,205 @@
//! The picture read once for four of raea check's rules (11-19: flashing, freezes, flash frames and blotching each
//! decoded the whole file, 3.7 s apiece on a 56 s export, and decoding is the machine's whole CPU, so reading them at
//! the same time saved nothing). One FFmpeg decodes it and splits the frames into the four filter chains the rules
//! were tuned on, each to its own output with its own options as when it ran alone, so each rule reads the same bytes:
//!
//! - the flashing screen's area- and point-sampled frames (showinfo, rgb24, passthrough) to stdout, their times on stderr;
//! - freezedetect into a null output, its findings on stderr;
//! - each frame's 32x18 grey (the flash-frame rule) to a named pipe;
//! - every 2 s the grey crop blotching scores, to another.
//!
//! Unix only (named pipes); elsewhere, and where FFmpeg isn't installed, the rules read on their own as before.
#[cfg(unix)]
use std::io::{BufRead, Read};
#[cfg(unix)]
use std::path::Path;
#[cfg(unix)]
use std::process::{Command, Stdio};
use crate::R;
/// What the one read gave the rules beside the frames it handed on
pub struct Once {
/// the flashing screen's frames read, and whether one came without its time (the read was stopped)
pub frames: usize,
pub lost: bool,
/// FFmpeg ran to its end
pub ok: bool,
/// errors decoding the picture, and the first of them
pub errors: usize,
pub first: String,
/// freezedetect's lines
pub freezes: String,
/// each frame's mean brightness, 0 to 1 (defects.rs lumas)
pub lumas: Vec<f32>,
}
/// A frame's number and time from showinfo's log, exact: its `pts` in ticks of the time base. `pts_time` is rounded to six
/// significant digits, which is enough to push a legal third flash across the one-second line.
pub fn showinfo_frame(line: &str, base: Option<(i64, i64)>) -> Option<(usize, f64)> {
let rest = line.split(" n:").nth(1)?;
let n = rest.split_whitespace().next()?.parse().ok()?;
let pts: i64 = rest.split("pts:").nth(1)?.split_whitespace().next()?.parse().ok()?;
let (num, den) = base?;
Some((n, pts as f64 * num as f64 / den as f64))
}
pub fn showinfo_base(line: &str) -> Option<(i64, i64)> {
let (num, den) = line.split("config in time_base:").nth(1)?.split(',').next()?.trim().split_once('/')?;
Some((num.parse().ok()?, den.parse().ok()?))
}
/// A line's severity under `-loglevel level+`: the first bracket after any `[context @ address]`. Searching the whole line
/// would take a file's own metadata for an error when its title happens to say one.
pub fn log_level(line: &str) -> Option<&str> {
let mut rest = line.trim_start();
if rest.starts_with('[') && rest[..rest.find(']')?].contains(" @ ") {
rest = rest[rest.find(']')? + 1..].trim_start();
}
let rest = rest.strip_prefix('[')?;
Some(&rest[..rest.find(']')?])
}
/// Each 32x18 grey frame's mean brightness, 0 to 1 (`scale=32:18:flags=area,format=gray`, defects.rs lumas)
pub fn lumas_of(grey: &[u8]) -> Vec<f32> {
let mut out = Vec::with_capacity(grey.len() / (32 * 18));
for f in grey.as_chunks::<{ 32 * 18 }>().0 {
let mut sum = 0f32;
for &p in f {
sum += p as f32;
}
out.push(sum / (32.0 * 18.0 * 255.0));
}
out
}
/// Whether the four rules can read in one: FFmpeg is the reader, and the system has named pipes
pub fn can() -> bool {
cfg!(unix) && !crate::native()
}
/// The one read: the flashing screen's frames (`flash`, w x h each side) to `screen` with their times, the grey crop
/// (`crop`, w x h; None when blotching doesn't read) every 2 s to `crops`, freezedetect at `still` seconds
#[cfg(not(unix))]
pub fn picture(_: &str, _: (usize, usize), _: Option<(usize, usize)>, _: f64, _: impl FnMut(f64, &[u8]) + Send, _: impl FnMut(&[u8]) + Send) -> R<Once> {
Err("one read needs named pipes".into())
}
#[cfg(unix)]
pub fn picture(video: &str, flash: (usize, usize), crop: Option<(usize, usize)>, still: f64, mut screen: impl FnMut(f64, &[u8]) + Send, mut crops: impl FnMut(&[u8]) + Send) -> R<Once> {
let dir = std::env::temp_dir().join(format!("raea-once-{}-{}", std::process::id(), std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map_or(0, |d| d.as_nanos())));
std::fs::create_dir_all(&dir).map_err(|e| format!("{}: {e}", dir.display()))?;
let (lumas_at, crops_at) = (dir.join("lumas"), dir.join("crops"));
let read = (|| {
fifo(&lumas_at)?;
if crop.is_some() {
fifo(&crops_at)?;
}
let (w, h) = flash;
let mut graph = format!(
"[0:v:0]split={}[f][z][l]{};[f]showinfo,split=2[area][point];[area]scale={w}:{h}:flags=area[a];[point]scale={w}:{h}:flags=neighbor[p];[a][p]hstack=inputs=2,format=rgb24[fo];[z]freezedetect=n=-60dB:d={still}[zo];[l]scale=32:18:flags=area,format=gray[lo]",
if crop.is_some() { 4 } else { 3 },
if crop.is_some() { "[b]" } else { "" }
);
if let Some((cw, ch)) = crop {
graph.push_str(&format!(";[b]fps=0.5,crop={cw}:{ch}:0:0,format=gray[bo]"));
}
let sync = raea_io_ffmpeg::passthrough();
let mut args: Vec<String> = ["-hide_banner", "-nostats", "-nostdin", "-y", "-loglevel", "level+info", "-i", video, "-filter_complex", &graph].map(String::from).to_vec();
args.extend(["-map", "[fo]", sync[0], sync[1], "-f", "rawvideo", "pipe:1", "-map", "[zo]", "-f", "null", "-", "-map", "[lo]", "-f", "rawvideo"].map(String::from));
args.push(lumas_at.display().to_string());
if crop.is_some() {
args.extend(["-map", "[bo]", "-f", "rawvideo"].map(String::from));
args.push(crops_at.display().to_string());
}
let mut child = Command::new("ffmpeg").args(&args).stdin(Stdio::null()).stdout(Stdio::piped()).stderr(Stdio::piped()).spawn().map_err(|e| format!("ffmpeg: {e}"))?;
let (mut out, err) = (child.stdout.take().unwrap(), child.stderr.take().unwrap());
let (times, clock) = std::sync::mpsc::channel();
std::thread::scope(|s| {
// each output read apart from the others, so that none can fill while another is being waited on
let log = s.spawn(move || {
let (mut err, mut line) = (std::io::BufReader::new(err), Vec::new());
let (mut base, mut errors, mut first, mut freezes) = (None, 0usize, String::new(), String::new());
while err.read_until(b'\n', &mut line).is_ok_and(|n| n > 0) {
let text = String::from_utf8_lossy(&line);
if matches!(log_level(&text), Some("error" | "fatal" | "panic")) {
errors += 1;
if first.is_empty() {
first = text.trim().to_string();
}
} else if text.trim_start().starts_with("[Parsed_showinfo") {
base = showinfo_base(&text).or(base);
if let Some(frame) = showinfo_frame(&text, base) {
let _ = times.send(frame);
}
} else if text.contains("freezedetect") {
freezes.push_str(&text);
}
line.clear();
}
(errors, first, freezes)
});
let lumas = s.spawn(|| {
let mut b = Vec::new();
let _ = std::fs::File::open(&lumas_at).and_then(|mut f| f.read_to_end(&mut b));
lumas_of(&b)
});
let crop_reader = crop.map(|(cw, ch)| {
let at = &crops_at;
let crops = &mut crops;
s.spawn(move || {
if let Ok(mut f) = std::fs::File::open(at) {
let mut buf = vec![0u8; cw * ch];
while f.read_exact(&mut buf).is_ok() {
crops(&buf);
}
}
})
});
let mut buf = vec![0u8; w * 2 * h * 3];
let (mut frames, mut lost) = (0usize, false);
while out.read_exact(&mut buf).is_ok() {
// the frame's own line is written before its pixels, so one that doesn't come isn't going to
match clock.recv_timeout(std::time::Duration::from_secs(60)) {
Ok((n, t)) if n == frames => screen(t, &buf),
_ => {
lost = true;
let _ = child.kill();
break;
}
}
frames += 1;
}
drop(out);
let ok = child.wait().is_ok_and(|s| s.success());
// a pipe FFmpeg never opened (it stopped first) would hold its reader in open(): opening it to write lets go
for p in [&lumas_at, &crops_at] {
let _ = unblock(p);
}
let (errors, first, freezes) = log.join().unwrap_or_default();
let lumas = lumas.join().unwrap_or_default();
if let Some(c) = crop_reader {
let _ = c.join();
}
Ok(Once { frames, lost, ok, errors, first, freezes, lumas })
})
})();
let _ = std::fs::remove_dir_all(&dir);
read
}
#[cfg(unix)]
fn fifo(p: &Path) -> R<()> {
let c = std::ffi::CString::new(p.as_os_str().as_encoded_bytes()).map_err(|e| e.to_string())?;
// SAFETY: a NUL-terminated path, and mkfifo reads nothing else
if unsafe { libc::mkfifo(c.as_ptr(), 0o600) } != 0 {
return Err(format!("{}: {}", p.display(), std::io::Error::last_os_error()));
}
Ok(())
}
#[cfg(unix)]
fn unblock(p: &Path) -> std::io::Result<()> {
use std::os::unix::fs::OpenOptionsExt;
std::fs::OpenOptions::new().write(true).custom_flags(libc::O_NONBLOCK).open(p).map(drop)
}
+165
View File
@@ -0,0 +1,165 @@
//! Each native reader against the FFmpeg read it stands in for (lib.rs names the command), on a clip FFmpeg makes: a
//! moving test picture that freezes for its last 4 s, over stereo sound whose level swells. `raea check` without FFmpeg
//! must reach the verdicts it reaches with it, so each answer is held to FFmpeg's within what a rule could notice.
//! Skipped where FFmpeg isn't installed (there is nothing to compare against).
use std::path::Path;
use std::process::Command;
fn ffmpeg(args: &[&str]) -> (Vec<u8>, String) {
let out = Command::new("ffmpeg").args(["-hide_banner", "-nostats", "-nostdin"]).args(args).output().expect("ffmpeg runs");
assert!(out.status.success(), "ffmpeg {args:?}: {}", String::from_utf8_lossy(&out.stderr));
(out.stdout, String::from_utf8_lossy(&out.stderr).into_owned())
}
fn clip(dir: &Path) -> String {
let file = dir.join("clip.mp4").to_string_lossy().into_owned();
let picture = "testsrc2=size=320x180:rate=30:duration=5,tpad=stop_mode=clone:stop_duration=4";
let sound = "aevalsrc=0.4*sin(2*PI*440*t)*(0.55+0.45*sin(2*PI*0.25*t))|0.25*sin(2*PI*660*t):s=48000:d=9";
ffmpeg(&["-y", "-f", "lavfi", "-i", picture, "-f", "lavfi", "-i", sound, "-c:v", "libx264", "-pix_fmt", "yuv420p", "-c:a", "aac", "-b:a", "192k", "-shortest", &file]);
file
}
/// The mean absolute difference of two byte runs, in levels
fn apart(a: &[u8], b: &[u8]) -> f64 {
a.iter().zip(b).map(|(x, y)| x.abs_diff(*y) as u64).sum::<u64>() as f64 / a.len().max(1) as f64
}
/// Root-mean-square level in dB of each 100 ms of `x` at `rate`
fn levels(x: &[f32], rate: usize) -> Vec<f64> {
x.chunks_exact(rate / 10).map(|c| 10.0 * (c.iter().fold(0.0, |s, v| s + v * v) as f64 / c.len() as f64 + 1e-12).log10()).collect()
}
/// Each measure's name, how far the native read is from FFmpeg's, and how far it may be: all printed, then held
struct Off(Vec<(String, f64, f64)>);
impl Off {
fn by(&mut self, what: impl Into<String>, off: f64, most: f64) {
self.0.push((what.into(), off, most));
}
}
#[test]
fn the_native_reads_match_ffmpeg_s() {
if Command::new("ffmpeg").arg("-version").output().is_err() {
eprintln!("skipped: no FFmpeg to compare against");
return;
}
let dir = std::env::temp_dir().join(format!("raea-check-read-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let v = &clip(&dir);
let mut off = Off(vec![]);
let by_ffmpeg = raea_app_check_read::probe(v).unwrap();
// SAFETY: set before any reader runs, on this test's only thread
unsafe { std::env::set_var("RAEA_CHECK_NATIVE", "1") };
assert!(raea_app_check_read::native());
let p = raea_app_check_read::probe(v).unwrap();
assert_eq!((p.w, p.h, p.audio), (by_ffmpeg.w, by_ffmpeg.h, by_ffmpeg.audio));
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);
// flash-frame's light per frame
let (gray, _) = ffmpeg(&["-v", "error", "-i", v, "-map", "0:v:0", "-vf", "scale=32:18:flags=area,format=gray", "-f", "rawvideo", "-"]);
let theirs: Vec<f64> = gray.chunks_exact(32 * 18).map(|f| f.iter().map(|&b| b as f64).sum::<f64>() / (32.0 * 18.0 * 255.0)).collect();
let (ours, fps) = raea_app_check_read::lumas(v).unwrap();
assert_eq!((ours.len(), fps), (theirs.len(), 30.0));
off.by("a frame's light, of 1", ours.iter().zip(&theirs).map(|(a, b)| (*a as f64 - b).abs()).fold(0.0, f64::max), 0.01);
// blotching's dark crops every 2 s
let (w, h) = (320, 176);
let (gray, _) = ffmpeg(&["-v", "error", "-i", v, "-vf", &format!("fps=0.5,crop={w}:{h}:0:0,format=gray"), "-f", "rawvideo", "-"]);
let mut crops = vec![];
raea_app_check_read::crops(v, w, h, |c| crops.push(c.to_vec())).unwrap();
assert_eq!(crops.len(), gray.len() / (w * h));
for (i, (a, b)) in crops.iter().zip(gray.chunks_exact(w * h)).enumerate() {
let bias = a.iter().zip(b).map(|(x, y)| *x as f64 - *y as f64).sum::<f64>() / a.len() as f64;
off.by(format!("blotching crop {i}, levels (bias {bias:+.2})"), apart(a, b), 3.0);
}
// the flashing screen's frames: area-sampled beside point-sampled RGB
let (fw, fh) = (192, 108);
let graph = format!("split=2[area][point];[area]scale={fw}:{fh}:flags=area[a];[point]scale={fw}:{fh}:flags=neighbor[b];[a][b]hstack=inputs=2,format=rgb24");
let (rgb, _) = ffmpeg(&["-v", "error", "-i", v, "-map", "0:v:0", "-vf", &graph, "-f", "rawvideo", "-"]);
let (mut frames, mut times) = (vec![], vec![]);
let n = raea_app_check_read::flash_frames(v, fw, fh, |t, buf| {
times.push(t);
frames.push(buf.to_vec());
})
.unwrap();
assert_eq!(n, rgb.len() / (fw * 2 * fh * 3));
assert!(times.windows(2).all(|t| (t[1] - t[0] - 1.0 / 30.0).abs() < 1e-3), "frame times step by a frame");
off.by("a flash frame, levels", frames.iter().zip(rgb.chunks_exact(fw * 2 * fh * 3)).map(|(a, b)| apart(a, b)).fold(0.0, f64::max), 6.0);
// the sound folded to mono, 100 ms at a time
let (pcm, _) = ffmpeg(&["-v", "error", "-i", v, "-vn", "-ac", "1", "-ar", "24000", "-f", "f32le", "-"]);
let theirs = levels(&pcm.chunks_exact(4).map(|b| f32::from_le_bytes([b[0], b[1], b[2], b[3]])).collect::<Vec<_>>(), 24000);
let ours = levels(&raea_app_check_read::mono(v, 24000).unwrap(), 24000);
assert!(ours.len().abs_diff(theirs.len()) <= 1, "{} windows vs {}", ours.len(), theirs.len());
off.by("100 ms of mono sound, dB", ours.iter().zip(&theirs).skip(1).map(|(a, b)| (a - b).abs()).fold(0.0, f64::max), 0.5);
// momentary loudness every 100 ms
let (log, _) = ffmpeg(&["-i", v, "-vn", "-af", "ebur128=metadata=1,ametadata=print:key=lavfi.r128.M:file=-", "-f", "null", "-"]);
let theirs: Vec<f64> = String::from_utf8_lossy(&log).lines().filter_map(|l| l.strip_prefix("lavfi.r128.M=")?.trim().parse().ok()).collect();
let (at, ours) = raea_app_check_read::meter(v).unwrap();
assert!(ours.len().abs_diff(theirs.len()) <= 2 && at.len() == ours.len(), "{} readings vs {}", ours.len(), theirs.len());
off.by("a momentary loudness, LU", ours.iter().zip(&theirs).skip(4).map(|(a, b)| (a - b).abs()).fold(0.0, f64::max), 0.5);
// the freeze: 5 s in, to the end
let (_, log) = ffmpeg(&["-i", v, "-an", "-vf", "freezedetect=n=-60dB:d=3", "-f", "null", "-"]);
let starts = |log: &str| log.lines().filter_map(|l| l.split("freeze_start: ").nth(1)?.trim().parse::<f64>().ok()).collect::<Vec<_>>();
let (theirs, ours) = (starts(&log), starts(&raea_app_check_read::freezes(v, -60.0, 3.0).unwrap()));
assert!(ours.len() == 1 && theirs.len() == 1, "freezes from {ours:?} vs {theirs:?}");
off.by("the freeze's start, s", (ours[0] - theirs[0]).abs(), 0.1);
// the mix's loudness and a caption's contrast, against raea-sys-measure's FFmpeg reads
let (i, tp) = raea_app_check_read::loudness(v).unwrap();
let (fi, ftp) = raea_sys_measure::loudness(Path::new(v)).unwrap();
off.by("integrated loudness, LU", (i - fi).abs(), 0.3);
off.by("true peak, dB", (tp.unwrap() - ftp.unwrap()).abs(), 0.5);
let ours = raea_app_check_read::contrast(v, 1.0, [40, 60, 120, 60], "rgb(255, 255, 255)").unwrap();
let theirs = raea_sys_measure::contrast(Path::new(v), 1.0, [40, 60, 120, 60], "rgb(255, 255, 255)").unwrap();
off.by("a caption's contrast, share", (ours / theirs - 1.0).abs(), 0.05);
let _ = std::fs::remove_dir_all(&dir);
for (what, by, most) in &off.0 {
eprintln!("{} {what}: {by:.4} (at most {most})", if by < most { "ok " } else { "OVER" });
}
assert!(off.0.iter().all(|(_, by, most)| by < most), "a native read is further from FFmpeg's than a rule allows");
}
/// The one read (once.rs) against the four reads it stands in for, each run alone as raea check ran it: each rule gets
/// the same bytes, frames and log lines. Away from Unix the rules read alone (no named pipes), and this is skipped.
#[test]
fn one_read_gives_each_rule_what_its_own_read_gave() {
if !raea_app_check_read::once::can() {
eprintln!("skipped: the rules read alone here");
return;
}
let dir = std::env::temp_dir().join(format!("raea-once-test-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let file = dir.join("clip.mp4").to_string_lossy().into_owned();
ffmpeg(&["-y", "-f", "lavfi", "-i", "testsrc2=size=320x180:rate=30:duration=5,tpad=stop_mode=clone:stop_duration=4", "-c:v", "libx264", "-pix_fmt", "yuv420p", &file]);
let (w, h, cw, ch) = (192usize, 108usize, 320usize, 176usize);
let (mut frames, mut crops) = (Vec::new(), Vec::new());
let once = raea_app_check_read::once::picture(&file, (w, h), Some((cw, ch)), 3.0, |t, b| frames.push((t, b.to_vec())), |b| crops.extend_from_slice(b)).unwrap();
assert!(once.ok && !once.lost && once.errors == 0);
// the flashing screen's frames, as flash.rs read them alone
let sync = raea_io_ffmpeg::passthrough();
let graph = format!("showinfo,split=2[area][point];[area]scale={w}:{h}:flags=area[a];[point]scale={w}:{h}:flags=neighbor[b];[a][b]hstack=inputs=2,format=rgb24");
let (alone, log) = ffmpeg(&["-loglevel", "level+info", "-i", &file, "-map", "0:v:0", "-vf", &graph, sync[0], sync[1], "-f", "rawvideo", "-"]);
assert_eq!(frames.len(), alone.len() / (w * 2 * h * 3));
assert_eq!(frames.iter().flat_map(|f| f.1.iter().copied()).collect::<Vec<u8>>(), alone);
let base = log.lines().find_map(raea_app_check_read::showinfo_base);
let times: Vec<f64> = log.lines().filter(|l| l.trim_start().starts_with("[Parsed_showinfo")).filter_map(|l| raea_app_check_read::showinfo_frame(l, base)).map(|f| f.1).collect();
assert_eq!(frames.iter().map(|f| f.0).collect::<Vec<f64>>(), times);
// each frame's brightness, as defects.rs read it
let (grey, _) = ffmpeg(&["-v", "error", "-i", &file, "-map", "0:v:0", "-vf", "scale=32:18:flags=area,format=gray", "-f", "rawvideo", "-"]);
assert_eq!(once.lumas, raea_app_check_read::once::lumas_of(&grey));
// blotching's crops, as picture.rs read them
let (alone, _) = ffmpeg(&["-v", "error", "-i", &file, "-vf", &format!("fps=0.5,crop={cw}:{ch}:0:0,format=gray"), "-f", "rawvideo", "-"]);
assert_eq!(crops, alone);
// and freezedetect's freeze, as sound.rs read it
let (_, log) = ffmpeg(&["-i", &file, "-an", "-vf", "freezedetect=n=-60dB:d=3", "-f", "null", "-"]);
let starts = |s: &str| s.lines().filter_map(|l| l.split("freeze_start: ").nth(1).map(|x| x.trim().to_string())).collect::<Vec<_>>();
assert_eq!(starts(&once.freezes), starts(&log));
assert!(!starts(&log).is_empty());
let _ = std::fs::remove_dir_all(&dir);
}
+30 -11
View File
@@ -11,8 +11,12 @@ pub(crate) const FULL: f32 = 0.999;
pub(crate) const FLAT_LEVEL: f32 = 0.05;
pub(crate) const CLIP_RUNS: usize = 3;
pub(crate) fn clipped(x: &[f32]) -> Vec<(f64, String)> {
let mut per: Vec<usize> = vec![0; x.len() / SR + 1];
pub(crate) fn clipped(channels: &[Vec<f32>]) -> Vec<(f64, String)> {
let len = channels.iter().map(Vec::len).max().unwrap_or(0);
let mut per: Vec<usize> = vec![0; len / SR + 1];
// each channel's runs, a second's count the most any channel had: clipping is a channel's
for x in channels {
let mut own: Vec<usize> = vec![0; len / SR + 1];
let mut i = 0;
while i < x.len() {
let v = x[i];
@@ -22,18 +26,22 @@ pub(crate) fn clipped(x: &[f32]) -> Vec<(f64, String)> {
j += 1;
}
if j - i >= 3 {
per[i / SR] += 1;
own[i / SR] += 1;
}
} else if v.abs() >= FLAT_LEVEL {
while j < x.len() && x[j].to_bits() == v.to_bits() {
j += 1;
}
if j - i >= 4 {
per[i / SR] += 1;
own[i / SR] += 1;
}
}
i = j;
}
for (p, o) in per.iter_mut().zip(own) {
*p = (*p).max(o);
}
}
let mut out = Vec::new();
let mut s = 0;
while s < per.len() {
@@ -113,6 +121,9 @@ pub(crate) fn flash_frames(luma: &[f32], fps: f64) -> Vec<(f64, String)> {
/// Each frame's mean brightness (0-1), decoded small and grey
fn lumas(video: &str) -> R<(Vec<f32>, f64)> {
if crate::read::native() {
return crate::read::lumas(video);
}
let out = Command::new("ffmpeg")
.args(["-v", "error", "-nostdin", "-i", video, "-map", "0:v:0", "-vf", "scale=32:18:flags=area,format=gray", "-f", "rawvideo", "-"])
.output()
@@ -120,20 +131,28 @@ fn lumas(video: &str) -> R<(Vec<f32>, f64)> {
if !out.status.success() {
return Err(format!("ffmpeg couldn't read the picture of {video}: {}", String::from_utf8_lossy(&out.stderr).trim()));
}
let l = out.stdout.as_chunks::<{ 32 * 18 }>().0.iter().map(|f| f.iter().map(|&p| p as f32).sum::<f32>() / (32.0 * 18.0 * 255.0)).collect();
Ok((crate::read::once::lumas_of(&out.stdout), ffmpeg_rate(video)?))
}
/// The frame rate `ffmpeg -i` says
pub(crate) fn ffmpeg_rate(video: &str) -> R<f64> {
let rate = ffmpeg_stderr(&["-hide_banner", "-i", video])?;
let fps = rate.split(" fps").next().and_then(|s| s.rsplit(", ").next()).and_then(|s| s.trim().parse().ok()).unwrap_or(30.0);
Ok((l, fps))
Ok(rate.split(" fps").next().and_then(|s| s.rsplit(", ").next()).and_then(|s| s.trim().parse().ok()).unwrap_or(30.0))
}
pub(crate) fn flash_frame_rule(video: &str, issues: &mut Vec<Issue>, passed: &mut Vec<String>) -> R<()> {
let (l, fps) = lumas(video)?;
let found = flash_frames(&l, fps);
flash_frame_from(&l, fps, issues, passed);
Ok(())
}
/// The stray frames each frame's brightness shows
pub(crate) fn flash_frame_from(l: &[f32], fps: f64, issues: &mut Vec<Issue>, passed: &mut Vec<String>) {
let found = flash_frames(l, fps);
if found.is_empty() {
passed.push("flash-frame: no stray black or white frame".into());
}
issues.extend(moments("flash-frame", 1, found));
Ok(())
}
/// Each moment a rule found, as an issue of that priority
@@ -142,8 +161,8 @@ pub(crate) fn moments(rule: &'static str, p: u8, found: Vec<(f64, String)>) -> i
}
/// The sound's defects on the decoded mix (sound.rs decodes it once)
pub(crate) fn sound_defects(x: &[f32], issues: &mut Vec<Issue>, passed: &mut Vec<String>) {
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")] {
pub(crate) fn sound_defects(x: &[f32], channels: &[Vec<f32>], issues: &mut Vec<Issue>, passed: &mut Vec<String>) {
for (rule, found, ok) in [("clipping", clipped(channels), "clipping: no flat-topped runs"), ("dropout", dropouts(x), "dropout: the sound never drops to silence and back")] {
if found.is_empty() {
passed.push(ok.into());
}
+48 -24
View File
@@ -5,35 +5,54 @@ use raea_app_check_flash::FlashScreen;
/// the area sample and the point sample side by side
const FLASH_W: usize = 192;
/// A frame's number and time from showinfo's log, exact: its `pts` in ticks of the time base. `pts_time` is rounded to six
/// significant digits, which is enough to push a legal third flash across the one-second line.
pub(crate) fn showinfo_frame(line: &str, base: Option<(i64, i64)>) -> Option<(usize, f64)> {
let rest = line.split(" n:").nth(1)?;
let n = rest.split_whitespace().next()?.parse().ok()?;
let pts: i64 = rest.split("pts:").nth(1)?.split_whitespace().next()?.parse().ok()?;
let (num, den) = base?;
Some((n, pts as f64 * num as f64 / den as f64))
pub(crate) use crate::read::{log_level, showinfo_base, showinfo_frame};
/// The flashing screen's frame height for the picture's shape
fn flash_h(probe: &Probe) -> usize {
(((FLASH_W as f64 * probe.h / probe.w.max(1.0)) / 2.0).round() as usize * 2).max(6)
}
pub(crate) fn showinfo_base(line: &str) -> Option<(i64, i64)> {
let (num, den) = line.split("config in time_base:").nth(1)?.split(',').next()?.trim().split_once('/')?;
Some((num.parse().ok()?, den.parse().ok()?))
}
/// A line's severity under `-loglevel level+`: the first bracket after any `[context @ address]`. Searching the whole line
/// would take a file's own metadata for an error when its title happens to say one.
pub(crate) fn log_level(line: &str) -> Option<&str> {
let mut rest = line.trim_start();
if rest.starts_with('[') && rest[..rest.find(']')?].contains(" @ ") {
rest = rest[rest.find(']')? + 1..].trim_start();
/// Freezes, flashing, flash frames and blotching, in that order, from one read of the picture (raea-app-check-read
/// once.rs: one decode where there were four); each reads on its own where one read can't be had
pub(crate) fn picture_rules(video: &str, probe: &Probe, taste: Option<&Taste>, issues: &mut Vec<Issue>, passed: &mut Vec<String>) -> R<()> {
if !crate::read::once::can() {
freezes(video, probe, taste, issues, passed)?;
flashing(video, probe, issues, passed)?;
flash_frame_rule(video, issues, passed)?;
return blotching(video, probe, issues, passed);
}
let rest = rest.strip_prefix('[')?;
Some(&rest[..rest.find(']')?])
let (w, h) = (FLASH_W, flash_h(probe));
let kept = x264_kept(video);
let (cw, ch) = (probe.w as usize / 8 * 8, probe.h as usize / 8 * 8);
let mut screen = FlashScreen::new(w, h);
let mut scores = Vec::new();
let once = crate::read::once::picture(video, (w, h), kept.is_none().then_some((cw, ch)), taste.map_or(3.0, |t| t.value), |t, buf| screen.push(buf, t), scorer(&mut scores, cw, ch))?;
freezes_from(&once.freezes, probe, taste, issues, passed);
if once.lost {
return Err(format!("{video}: flashing can't be screened, frame {} has no timestamp of its own", once.frames));
}
if !once.ok || once.frames == 0 {
return Err(format!("{video}: flashing can't be screened, FFmpeg decoded {} frames ({})", once.frames, once.first));
}
screened(screen, once.errors, &once.first, issues, passed);
flash_frame_from(&once.lumas, ffmpeg_rate(video)?, issues, passed);
match kept {
Some(crf) => passed.push(format!("blotching: encoded by x264 at crf {crf}, which keeps the darks")),
None => blotching_from(video, probe, &scores, issues, passed),
}
Ok(())
}
pub(crate) fn flashing(video: &str, probe: &Probe, issues: &mut Vec<Issue>, passed: &mut Vec<String>) -> R<()> {
let w = FLASH_W;
let h = (((w as f64 * probe.h / probe.w.max(1.0)) / 2.0).round() as usize * 2).max(6);
let (w, h) = (FLASH_W, flash_h(probe));
if crate::read::native() {
let mut screen = FlashScreen::new(w, h);
if crate::read::flash_frames(video, w, h, |t, buf| screen.push(buf, t))? == 0 {
return Err(format!("{video}: flashing can't be screened, no frame decoded"));
}
screened(screen, 0, "", issues, passed);
return Ok(());
}
let graph = format!("showinfo,split=2[area][point];[area]scale={w}:{h}:flags=area[a];[point]scale={w}:{h}:flags=neighbor[b];[a][b]hstack=inputs=2,format=rgb24");
let sync = raea_io_ffmpeg::passthrough();
let mut child = Command::new("ffmpeg")
@@ -92,6 +111,12 @@ pub(crate) fn flashing(video: &str, probe: &Probe, issues: &mut Vec<Issue>, pass
if !status.success() || frames == 0 {
return Err(format!("{video}: flashing can't be screened, FFmpeg decoded {frames} frames ({first})"));
}
screened(screen, errors, &first, issues, passed);
Ok(())
}
/// What the screen found, after `errors` errors decoding the picture (`first` the first of them)
fn screened(screen: FlashScreen, errors: usize, first: &str, issues: &mut Vec<Issue>, passed: &mut Vec<String>) {
if errors > 0 {
issues.push(Issue {
rule: "decode",
@@ -110,5 +135,4 @@ pub(crate) fn flashing(video: &str, probe: &Probe, issues: &mut Vec<Issue>, pass
None if errors == 0 => passed.push("flashing: no more than 3 flashes a second found (a screen, not a certification)".to_string()),
None => {}
}
Ok(())
}
+40 -8
View File
@@ -3,8 +3,10 @@
//! --agent A` adds them, and they hold inside the raea app too, which leaves each agent its own shell). Before a shell
//! command: media opened in the Mac's viewer or a browser is stopped once while the raea app is installed, the reason
//! naming `raea show`; the same command tried again goes through, so an agent that means it says so twice. After a
//! file is saved: the quick check on a composition. A stop is exit 2 with the reason on stderr, which every harness
//! hands its agent; the quick check's findings go back in the shape each one reads.
//! file is saved: `raea goal check --at edit` on a composition, or on a file under a brief. As a turn ends: `raea
//! goal check --at done` on the brief's goals (apps/check/make). After any tool, and as a turn ends: what the person sent from
//! the raea app (inbox.rs). A stop is exit 2 with the reason on stderr, which every harness hands its agent; the edit
//! moment's findings go back in the shape each one reads.
use serde_json::{Value, json};
use std::path::{Path, PathBuf};
@@ -123,6 +125,12 @@ fn saved(v: &Value) -> Vec<String> {
patch.lines().filter_map(|l| ["*** Add File: ", "*** Update File: "].iter().find_map(|head| l.strip_prefix(head))).map(str::trim).map(String::from).collect()
}
/// Whether a saved file is held at the edit moment: a composition (a .tsx that registers a root), or any file under a
/// brief.ts
fn held_at_edit(p: &Path) -> bool {
(p.extension().is_some_and(|e| e == "tsx") && std::fs::read_to_string(p).is_ok_and(|t| t.contains("registerRoot"))) || p.parent().is_some_and(|d| raea_app_check_make::brief_with_job(d).is_some())
}
/// Findings for the agent in the shape its harness reads after a tool: Gemini CLI's AfterTool context, Kimi Code's
/// plain stdout, Claude Code's and Codex's PostToolUse context.
fn after(agent: &str, text: &str) -> String {
@@ -144,8 +152,24 @@ pub fn hook(args: &[String]) -> R<String> {
std::io::Read::read_to_string(&mut std::io::stdin(), &mut input).map_err(|e| e.to_string())?;
let v: Value = serde_json::from_str(&input).unwrap_or_default();
let agent = named.unwrap_or_else(|| agent_of(&v));
if let Some(cmd) = shell_command(&v) {
let home = std::env::var("HOME").unwrap_or_default();
let event = v["hook_event_name"].as_str().unwrap_or("");
// what the person sent from the raea app since the last look (inbox.rs): handed over after any tool, and a turn about
// to end goes on to take it up
let sent = if matches!(event, "PostToolUse" | "AfterTool" | "Stop" | "SessionStart" | "UserPromptSubmit") { crate::inbox::told(agent, &v) } else { None };
// a session starting again, or the person writing to it in its terminal: what they sent from raea while it was
// closed or idle goes in as context first (Claude Code's and Codex's SessionStart and UserPromptSubmit read
// hookSpecificOutput.additionalContext)
if matches!(event, "SessionStart" | "UserPromptSubmit") {
return Ok(sent.map(|t| json!({"hookSpecificOutput": {"hookEventName": event, "additionalContext": t}}).to_string()).unwrap_or_default());
}
if event == "Stop" {
// what the person sent, and a brief whose goals don't pass at done (docs/goal.feature MK36): either keeps the turn going
let reasons: Vec<String> = [sent, raea_app_check_make::stop(&v)].into_iter().flatten().collect();
return Ok(if reasons.is_empty() { String::new() } else { json!({"decision": "block", "reason": reasons.join("\n\n")}).to_string() });
}
let after_tool = matches!(event, "PostToolUse" | "AfterTool");
if let Some(cmd) = shell_command(&v).filter(|_| !after_tool) {
let home = raea_io_home::user_home().unwrap_or_default().display().to_string();
let files = opened_media(cmd);
let key = format!("{}\n{}\n{cmd}", v["session_id"].as_str().unwrap_or(""), v["cwd"].as_str().unwrap_or(""));
if !files.is_empty() && app_installed(&home) && !tried_before(&PathBuf::from(&home).join(".raea/hooks/again"), &key) {
@@ -154,12 +178,20 @@ pub fn hook(args: &[String]) -> R<String> {
}
return Ok(String::new());
}
// the edit moment of the loop (docs/goal.feature MK33): `raea goal check FILE --at edit` on a saved composition, or
// on any file under a brief; a save that passes says nothing
let me = std::env::current_exe().map_err(|e| e.to_string())?;
let mut found = Vec::new();
for path in saved(&v).iter().filter(|p| p.ends_with(".tsx") && std::fs::read_to_string(p).is_ok_and(|t| t.contains("registerRoot"))) {
let (report, _) = crate::quick::quick(std::slice::from_ref(path), Vec::new())?;
found.extend(report.lines().skip(1).filter(|l| !l.starts_with("ok ")).map(String::from));
for path in saved(&v).iter().filter(|p| held_at_edit(Path::new(p))) {
let dir = Path::new(path).parent().filter(|d| d.is_dir()).map(Path::to_path_buf).unwrap_or_else(|| PathBuf::from(v["cwd"].as_str().unwrap_or(".")));
let Ok(out) = std::process::Command::new(&me).args(["goal", "check", "--at", "edit"]).arg(path).current_dir(dir).env("RAEA_RECORD", "off").output() else { continue };
if out.status.code() == Some(1) {
found.extend(String::from_utf8_lossy(&out.stdout).lines().filter(|l| !l.starts_with("PASSED")).map(String::from));
}
}
Ok(if found.is_empty() { String::new() } else { after(agent, &format!("raea check --quick after this save:\n{}", found.join("\n"))) })
let edit = (!found.is_empty()).then(|| format!("raea goal check --at edit after this save:\n{}", found.join("\n")));
let text = [sent, edit].into_iter().flatten().collect::<Vec<_>>().join("\n\n");
Ok(if text.is_empty() { String::new() } else { after(agent, &text) })
}
#[cfg(test)]
+27 -70
View File
@@ -22,22 +22,18 @@ mod flash;
use flash::*;
mod defects;
use defects::*;
mod text;
use text::*;
/// what a render's text breaks, from its manifest (split out: a render holds its own text to it)
use raea_app_check_text::*;
/// who can fix what it finds: the encode's or the picture's own, carried from an earlier export, a source
use raea_app_check_cause as cause;
/// a video read through FFmpeg, or raea's own decoders where it isn't installed
use raea_app_check_read::{self as read, Probe};
pub mod quick;
pub mod hook;
pub use raea_app_check_inbox as inbox;
#[cfg(test)]
mod tests;
type R<T> = Result<T, String>;
#[derive(Clone)]
struct Issue {
rule: &'static str,
p: u8,
at: Option<f64>,
says: String,
}
/// `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.
@@ -80,9 +76,10 @@ struct Taste {
line: String,
}
/// The checks among a person's taste rules (taste.ts and its kinds), each with the line it stands for.
/// The checks among a person's taste rules (taste.ts and its kinds) that a video alone shows (the six forms), each
/// with the line it stands for.
fn taste_rules(tastes: &[raea_core_brief::Taste]) -> Vec<Taste> {
tastes.iter().flat_map(|t| &t.sections).flat_map(|s| &s.rules).filter_map(|r| r.check.map(|c| Taste { form: c.form(), value: c.value(), line: r.text.clone() })).collect()
tastes.iter().flat_map(|t| t.checks()).map(|(line, c)| Taste { form: c.form(), value: c.value(), line: line.to_string() }).collect()
}
fn taste_of<'a>(rules: &'a [Taste], form: &str) -> Option<&'a Taste> {
@@ -144,7 +141,7 @@ fn measured(args: &[String], taste: Vec<Taste>) -> R<(String, Vec<Issue>, Vec<St
if !std::path::Path::new(&video).exists() {
return Err(format!("no file at {video}\n{USAGE}"));
}
let probe = Probe::of(&video)?;
let probe = read::probe(&video)?;
let (mut issues, mut passed) = (Vec::new(), Vec::new());
let manifest: Option<Value> = match flag(args, "--manifest") {
Some(m) => Some(serde_json::from_str(&std::fs::read_to_string(m).map_err(|e| format!("{m}: {e}"))?).map_err(|e| format!("{m}: {e}"))?),
@@ -156,14 +153,17 @@ fn measured(args: &[String], taste: Vec<Taste>) -> R<(String, Vec<Issue>, Vec<St
loudness(&video, taste_of(&taste, "loudness"), &mut issues, &mut passed)?;
sound(&video, words.as_deref(), &mut issues, &mut passed)?;
}
freezes(&video, &probe, taste_of(&taste, "still-max"), &mut issues, &mut passed)?;
flashing(&video, &probe, &mut issues, &mut passed)?;
flash_frame_rule(&video, &mut issues, &mut passed)?;
blotching(&video, &probe, &mut issues, &mut passed)?;
picture_rules(&video, &probe, taste_of(&taste, "still-max"), &mut issues, &mut passed)?;
brand_kit(&[flag(args, "--manifest").unwrap_or(""), video.as_str()], &mut issues, &mut passed);
if let Some(p) = flag(args, "--things") {
things(p, &mut issues, &mut passed)?;
}
// a take or a download isn't a delivery: the mix sets the delivery's level, so its own is said, not held to the target
if cause::is_source(std::path::Path::new(&video)) {
for i in issues.iter_mut().filter(|i| i.rule == "loudness") {
(i.p, i.says) = (3, format!("a source, not a delivery: {} (the mix sets the delivery's level)", i.says));
}
}
if let Some(manifest) = &manifest {
let runs = text_runs(manifest);
let (w, h) = (manifest["width"].as_f64().unwrap_or(probe.w), manifest["height"].as_f64().unwrap_or(probe.h));
@@ -201,73 +201,30 @@ fn things(p: &str, issues: &mut Vec<Issue>, passed: &mut Vec<String>) -> R<()> {
/// `fps`), with `more` (a render's own), worst first then by time.
fn findings_of(mut issues: Vec<Issue>, more: Vec<Finding>, fps: f64) -> Vec<Finding> {
issues.sort_by(|a, b| a.p.cmp(&b.p).then(a.at.unwrap_or(0.0).total_cmp(&b.at.unwrap_or(0.0))));
let mut found = Vec::new();
for i in &issues {
// an issue at a second is about the frame it falls on
let (f, fr) = (Finding::new(i.rule, Level::of_rank(i.p), &i.says, "raea check"), (i.at.unwrap_or(0.0) * fps).round() as i64);
found.push(if i.at.is_some() { f.frames(fr, fr + 1) } else { f });
}
finding::ranked(found.into_iter().chain(more).collect())
finding::ranked(issues.iter().map(|i| i.finding("raea check", fps)).chain(more).collect())
}
/// The findings (`findings_of`), written to -o as JSON when asked, and the report's text with the count last. True
/// when an error is among them.
fn report(video: &str, issues: Vec<Issue>, more: Vec<Finding>, passed: Vec<String>, out: Option<&str>, fps: f64) -> R<(String, bool)> {
let found = findings_of(issues, more, fps);
let mut found = findings_of(issues, more, fps);
// what an earlier export of the same composition already had says so: the change between them didn't move it
if let Some(e) = cause::earlier(std::path::Path::new(video)) {
cause::carried(&mut found, &e, fps);
}
let bad = found.iter().any(|f| f.level == Level::Error);
if let Some(out) = out {
let j = json!({"file": video, "fps": fps, "findings": found, "passed": passed});
std::fs::write(out, serde_json::to_string_pretty(&j).unwrap()).map_err(|e| format!("{out}: {e}"))?;
}
let mut s = format!("raea check {video}\n");
// kept in its project's record beside its renders (DR3), what `raea findings` and `raea next` read
// kept in its project's record beside its renders (DR3), what `raea findings` and `raea goal next` read
let kept = raea_core_facts::record::keep("raea check", std::path::Path::new(video), out.map(std::path::Path::new), &found, vec![], &raea_io_trace::utc(std::time::SystemTime::now()).1);
let kept = kept.map(|e| format!("raea check: kept in the project's record as {} (raea findings reads it)", e.id));
for line in found.iter().map(Finding::line).chain(passed.iter().map(|p| format!("ok {p}"))).chain(kept) {
s.push_str(&line);
s.push('\n');
}
Ok((s + &format!("raea check: {}", finding::count(&found)), bad))
}
struct Probe {
w: f64,
h: f64,
duration: f64,
/// when the picture ends, on the clock FFmpeg's filters read: it starts at the file's first stream, sound can run on
/// past the picture, and the container's duration counts that
picture: f64,
audio: bool,
}
/// Where the picture's last packet ends, for a container that doesn't state the video stream's own length (Matroska)
fn last_packet_end(video: &str) -> Option<f64> {
let out = Command::new("ffprobe").args(["-v", "error", "-select_streams", "v:0", "-show_entries", "packet=pts_time,duration_time", "-of", "csv=p=0", video]).output().ok()?;
String::from_utf8_lossy(&out.stdout)
.lines()
.filter_map(|l| {
let mut parts = l.split(',');
let t: f64 = parts.next()?.trim().parse().ok()?;
Some(t + parts.next().and_then(|d| d.trim().parse::<f64>().ok()).unwrap_or(0.0))
})
.max_by(f64::total_cmp)
}
impl Probe {
fn of(video: &str) -> R<Probe> {
let entries = "stream=codec_type,width,height,r_frame_rate,duration,start_time:format=duration,start_time";
let out = Command::new("ffprobe").args(["-v", "error", "-show_entries", entries, "-of", "json", video]).output().map_err(|e| format!("ffprobe: {e}"))?;
let v: Value = serde_json::from_slice(&out.stdout).map_err(|e| format!("ffprobe: {e}"))?;
let streams = v["streams"].as_array().cloned().unwrap_or_default();
let vid = streams.iter().find(|s| s["codec_type"] == "video").ok_or("no video stream")?;
let seconds = |field: &Value| field.as_str().and_then(|d| d.parse::<f64>().ok());
let duration = seconds(&v["format"]["duration"]).unwrap_or(0.0);
let origin = seconds(&v["format"]["start_time"]).unwrap_or(0.0);
let picture = match seconds(&vid["duration"]) {
Some(length) => seconds(&vid["start_time"]).unwrap_or(origin) - origin + length,
None => last_packet_end(video).map_or(duration, |end| end - origin),
};
let audio = streams.iter().any(|s| s["codec_type"] == "audio");
Ok(Probe { w: vid["width"].as_f64().unwrap_or(1920.0), h: vid["height"].as_f64().unwrap_or(1080.0), duration, picture, audio })
}
s.push_str(&format!("raea check: {}", finding::count(&found)));
Ok((s, bad))
}
Loaded 100 of 3620 files, more files were not shown because too many files have changed in this diff. Show more