11 Commits
Author SHA1 Message Date
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 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
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 b8d38aa2c0 Fingerprint's YAMNet is fetched once where perception's copy isn't (systems/columns models.rs), from the public repo's models-1 release (Google's model, Apache-2.0, as ONNX; perception's copy, sha256 8e4e21d5) and checked against that sha256, so every machine has the same encoders. Before, only machines with perception's copy had YAMNet: a fingerprint trained on one (Shane's) refused a fresh install's columns ('trained on other encoders'), so a fingerprint kept with a project didn't judge on a teammate's machine. A fingerprint trained without YAMNet takes it as an encoder added since. raea-sys-ml models.rs gains ensure_url, a file from a URL of its own 2026-11-13 10:29:16 -08:00
shinyobjectz c65baf2c81 FP12a: patch heads say where in the frame a picture defect is. raea fingerprint bootstrap also puts FP0f's local defects in a random box of up to 6 frames a source (a blurred patch, a black hole, heavy grain, flat grey, a local glow; one that changes its box by under 6 levels is left out) and fits a logistic on SigLIP 2's 196 patch tokens per axis. Held out by source from 8 frames on 27 real renders: barren 0.92, glitch 0.90, blur 0.88 (0.79 before the visible rule), glow 0.49; an axis says where only at 0.85. score gives a flagged moment its place and the layers under it, by name (raea-sys-layers reads names); --json has at, the sheet boxes it in amber 2026-11-12 22:08:25 -08:00
shinyobjectz 6c106fb8f4 FP1b: an axis judges only what a file has. A script scored with raea's own taxonomy came back blurry, glowing and frozen, because picture heads scored its empty picture columns; now each axis needs rows of its own modality, and a script's windows say nothing until an axis reads text (tested) 2026-11-12 21:22:19 -08:00
shinyobjectz 9eb649bf98 FP1b: scripts, briefs and pages get EmbeddingGemma 2 rows, a passage a step on their timeline (raea-sys-columns gemma.rs on ort with the q8 export the app's library keeps in ~/.raea/models, the same vectors transformers.js gives), and an axis with modality "text" scores its words as EmbeddingGemma 2 queries against 24 ordinary passages; a still or storyboard frame is one frame through SigLIP 2. Evidence written before the text column reads as the same rows with no text, and a fingerprint pinned before EmbeddingGemma 2 was on the machine keeps working 2026-11-12 20:28:08 -08:00
shinyobjectz c6acc16633 FP11a, FP11b: a note's marks teach. learn-notes makes a defect note's mark, box and lasso its row's region, grown and tracked over the label's span by EdgeTAM (raea-perceive track, from the note's frame forward and back; frames it loses dropped; grow.rs in raea-sys-fingerprint-use), and a span pin the row's time. The review player's marks and the agent's reading of arrows and strikes are in raea-feed 2026-11-12 19:20:35 -08:00
shinyobjectz 28fd448ea2 FP2c: fingerprint folded into what it copied, as L1's duplicate check asks. The ledger says its rows' labels, counts and projects once for training, inheritance, pairs and the bootstrap; one half-float codec serves the column cache and a fingerprint's words and evidence; a verb's files and a list's lines are read once; raea check's defects and its sound rules share their level in dB and their moments as issues; Encoders::pins is a map; the bootstrap names its own rows and each sense's defects once 2026-11-12 18:33:37 -08:00
shinyobjectz 64dfd63cd7 FP2e, FP4b, FP6a, FP6d, FP8a, FP8b, FP14b, FP14c: a test that word heads score the spike's noise and clipping from words alone (0.987, 0.975); every mechanical axis carries a cheat (darkened half as much, a white flash, a gap a third as long, clipping a third as hard, beside the de-rez sharpened after, half glow, quiet noise and a zoomed freeze); raea fingerprint approve makes approved work clean on every axis away from its notes; another eye's readings teach a head but never count toward its gate; a project's or workspace's fingerprint keeps its evidence a folder a person and each machine trains its own heads (raea fingerprint share); raea fingerprint diff A B lists the axes two tastes rank the same evidence most differently on; a fingerprint that extends another inherits its axes and evidence, its own labels counted twice and measured against each alone, an override learning from its own only and the parent never from the child; raea fingerprint which PATH and use NAME --in project|workspace pick the one that judges a piece (the project's that applies to its kind, its default, the workspace's, then the person's) 2026-11-12 18:14:51 -08:00
shinyobjectz fb11b58f6f FP1-FP4, FP14a: raea fingerprint. raea-sys-columns turns a video into one-second windows read by encoders that run on this Mac (SigLIP 2 for pictures, CLAP for sound, YAMNet for sound events, on ort; SigLIP never on Core ML's GPU), cached by content hash. raea-sys-fingerprint holds the taxonomy (each axis with its words, a fingerprint saying what it's for and what it builds on), the evidence ledger, small heads trained held out by source, scoring and the contact sheet. apps/fingerprint is the verb: new, bootstrap (known defects put into windows of real work), teach, score (--json, --sheet, --timeline), report, and a service that keeps the encoders loaded. raea check finds clipping, dropouts and flash frames as its own findings. sdk/raea types a fingerprint. 2026-11-12 18:14:51 -08:00