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.
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.
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.
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.
- 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).
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.
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.
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.
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.
A video draws its 3D live, and a mesh's row keyed only the emissive strength, and only where the first frame glowed:
a part dark on its first frame stayed black for the whole video, and a change of hue was ignored (stills were
right, since their first frame is the frame). The full path now sends the colour whenever it differs from what was
sent (none is black), with the strength (0 once black); the fast path hands such a frame to the full one, and its
strength rule reads the sent colour, not the first frame's. runtime/live/tests/live_emissive.rs steps a ball from
dark to blue to orange to dark, under RAEA_LIVE3D_CHECK.
stage.inspect {id} on a part's element answered the holder's raw props (data-3d, data-props as a string), so the
feed's game inspector lost a picked part's props on its next refresh; it answers the part's kind and its own props
now, as the pick does. The feature file: what was built after the first landing (the card that changes code, every
kind of file, a level of detail by size on screen, notes to agents), and each scenario's @done.
A selection's box and a note's pin follow what they are on as the camera turns, a prop moves or the frame plays
(systems/frame pick.rs locate: a part's meshes' bounds and each point through the frame's camera). The stage's host
calls move to calls.rs (lib.rs was past 500 lines); the bundle's raea-props lines are two shorter (its crate was at
2002).
stage.pick answers what is under a point of the stage, the page and its 3D as one picture: a 3D part (its layer key,
name, JSX props, box, the point hit and its distance; the nearest mesh along the pointer's ray, skinned meshes as
posed: systems/frame pick.rs) or the page's element, with the part behind it. stage.view draws the 3D from an orbit
until it is given back (systems/frame view.rs, FreeView). stage.props sets a composition's props over its defaults
as it plays (the entry's raea-props). What the stage opens is stamped, so every pick has its place in the code.
stage.seek (written 11-07 for the editor's Live, never committed) lands with it. raea media still takes --width.
Proof: raea play shapes.tsx --offscreen --seek 10 --pick 640,330 answers shape-2 at shapes.tsx:28:11#2 with its
props; --view 1.2,0.9,9 draws it from above. docs/preview.feature is the plan.
core/scene's media_path joined an https src to the composition's folder, so a remote clip was refused as
"<dir>/https:/…: no video track" (seven snapcn components in #13: hero-launch, laptop-frame, phone-frame,
phone-stack, reel-collage, reel-wall, screen-recording).
raea_io_net::cache::remote(src) gives an http(s) src's file through cache::fetch (keyed by the URL, which is in
the composition's source, so a render stays a function of its code; under $RAEA_CACHE beside the render cache)
and None for a file. The page's video elements, the export's sounds and live play's video list ask it first.
A src that can't be fetched refuses the frame saying why: "video <url>: HTTP 404 Not Found", or "(not in
raea's cache): not sent, because RAEA_OFFLINE is set". The cache's status errors no longer name the URL twice.
bench/remote-media/check.sh: a local server's red clip plays (centre 252,0,0), plays again offline from the
cache, an uncached URL offline refuses, a 404 refuses with its status. Before: all four read the URL as a path.
laptop-frame (snapcn) renders its remote clip, 240 frames at 7.0 ms a frame.
The bar can now drive an interactive example. A row of bench/bevy-parity/runs.tsv may name an input script, in the format `raea play --input-script` takes ({"FRAME": ["Pointer:X:Y:down"]}). The example gets it as RAEA_PARITY_INPUT: systems/parity input.rs writes bevy_picking's PointerInput messages on the picture the cameras draw into. The port's pictures then come from `raea play` under the same script; cost still comes from the render.
Gaps found and patched on the way:
- raea play sent its pointer only to useInput, never to page elements, so a composition's onClick never ran. The live step now hit tests the pointer on the page (BevyPage::hit_path) and sends its React handlers the events a browser fires, in a browser's order: over/out, enter/leave, move, down/up, and click on what both the press and the release were over (runtime/live pointer.rs).
- bevy_ui_widgets' Popover: Node takes `popover` ({positions: [{side, align, gap}], window_margin}). raea's Blitz places the popup after layout beside its parent's box (inside its border), at the first placement the window hides least, as position_popover does (vendor/blitz-dom bevy_popover.rs). It's drawn and hit tested there. Node also takes bevy_picking's handlers (onClick, onPointerDown/Up/Over/Out/Enter/Leave/Move; sdk/render ui-pick.ts). The page bridge keeps data-raea-bevy-popover.
- After any state change in play, bevy text was drawn broken at min-content width: raea's bevy_text min-content measure breaks lines at width 0, and a box whose layout taffy kept from its cache never broke them back. A measure now puts back the lines a laid-out box keeps (blitz-dom inline.rs, TextLayout::performed_width).
The port's Button reads "Hover" and "Press" as set_button_style has it; the menu button toggles spawn_menu's popup of four items, each lit while hovered; activating an item closes the menu. Under a click on Menu, then the pointer on the first item: 0.994691, worst tile 17. Without the toggle, the popover, GlobalZIndex or hover, with the side flipped, a 6 px gap, three items or 90% width, the bar fails; a gray border passes it and the probe catches it (7217 px off against 6465). conformance/ui-pick.test.tsx; blitz-dom bevy_popover tests; runtime/live pointer test.