58 Commits
Author SHA1 Message Date
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 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 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 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 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 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 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 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
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 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 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 55d9eeaa50 raea component, raea part's new name in 0.1.3 (Layout LY1-LY4), in what teaches it: each ready component's header (examples/parts, the registry the CLI copies from), the edit template, the craft guides (motion.md, motion/parts.md, motion/footage.md) and the manual's raea part page, now the old name of raea component. The graphics router in raea-skills teaches component list, add and --shared (raea-skills component-name 278f4ff); the skills check's coverage no longer finds raea component untaught 2026-11-12 20:36:08 -08:00
shinyobjectz db58ead2c9 FP14a: room for fingerprint in L1's checks. raea/fingerprint gets its SDK reference page under Tools, every field of a fingerprint.ts described; the four crates have their layers; raea-sys-fingerprint-use drops serde_json, which it never used; and raea-cli's hook and check dispatch are one line each, as world, findings and notes are, keeping the crate at its 2000 lines with raea fingerprint in it 2026-11-12 18:21:27 -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
shinyobjectz c7e857b243 Layout L1: the CLI crate back to 2000 lines (component and part's checks in one), workspace_of is shared_of (the loader only wanted shared/, and it duplicated godot_run's nearest_project), and the manual's raea component page (Projects group, --shared and --force described) 2026-11-12 15:19:50 -08:00
shinyobjectz cb87e0cd59 Layout LY1-LY4: a project's compositions/, components/, controllers/, assets/ and artifacts/, and the workspace's shared/ (docs/layout.feature)
Shane 11-12: reorganize the default project around compositions, components, controllers, assets and artifacts, with a workspace library any project can call on. It's named shared/ and @shared/ so it isn't confused with raea's media libraries.
- LY1: raea project new makes the five folders (each with a .gitkeep), out/, brief.ts, AGENTS.md and a tsconfig mapping @shared/* to the workspace's shared/. raea workspace init makes shared/ with the same five, and .gitattributes keeps assets/** and out/** in LFS.
- LY2: the engine's loader resolves @shared/<kind>/<name> by walking up to .raea/workspace, with a relative import's extensions and index files; outside a workspace it's refused with what to do. PJ8's lint takes @shared/ imports and names @shared/ as the fix for a climb into shared/.
- LY3: the scan reads compositions from compositions/ and components from components/ (and from shared/), lints a composition elsewhere as misplaced, says once that a project is in the old layout, and reads controllers as the project's over shared/controllers/ by id.
- LY4: raea component list/add [--shared] replaces raea part, which still answers this release.
2026-11-12 15:07:16 -08:00
shinyobjectz ee171c4f85 LR1: room for the layout reads in crates at their 2000-line limit. Matchmove (raea track, matchmove.solve) moves out of raea-runtime-react into raea-runtime-track, which react re-exports as scene::track; the frame pages' asset writer (store_page, store_clear, the writer pool) moves out of raea-runtime-export into raea-runtime-pagestore. page-layout installs itself on import, so the entry adds one line. A pass with no page answers NOTHING_DRAWN, and wait_flush takes the runtime's ask. page-layout and dom-reads are installed by the entry, so the manual's and the skill's references skip them as they skip canvas2d 2026-11-12 14:09:19 -08:00
shinyobjectz 09ee785138 raea cut takes a sound-only take (#89, item 2)
A take under media/ with sound alone (wav, mp3, m4a, aac, flac, aif, aiff, ogg, opus) was no take at all: `raea cut
take.wav --at 0-1` refused it, and a video's shot detection would have opened it as a picture. Such a take is listed
with the videos, cut on its words or spans as a video is, with no jump cuts to keep off and the edit's 30 fps grid; its
clips carry kind "audio" in cuts.ts (and no face is looked for in perception.json), and the project template plays
them as <Audio> under whatever the edit puts in their place. Found and shaped by SirSicard's report; items 3, 5, 6
and 7 stay open.
2026-11-12 10:32:22 -08:00
shinyobjectz b85ce4f97d BL36, BL37, BL38, BL39, GD11, GD12, GD13: Blender and Godot in a raea project: shots drawn by them, the scene sent to them and its changes read back. raea scene export EDIT.tsx -o DIR [--frame N | --at A-B] writes the composition's 3D as scene.json (each part's id, kind, name, TSX line from the bundle's source stamps, placement, material, primitive sizes; other meshes as .glb, models copied with their sidecars; lights, camera, ambient, background; what doesn't cross listed in left) (new crate apps/interchange). raea blender open builds it in Blender through raea/blender (sdk/blender scene.ts: Blender's own meshes, Principled BSDFs, lights and camera keyed on --at, raea_id on each object) and opens the .blend; raea blender back and raea godot back read the file back and say each move, colour, light, camera and deletion as an edit at its TSX line, and write objects made there as media/NAME.glb. raea godot export writes a Godot project that runs (native meshes, StandardMaterial3D, an AnimationPlayer for --at, still channels left out, nodes named for their parts); raea godot run takes --scene with no script (host/none.ts). <BlenderShot> and <GodotShot> (raea/blender/shot, raea/godot/shot) render their frames once per bundle, file, props, size, fps and length, sized from their Sequence's end, kept in the asset store (native calls blender.shot, godot.shot; raea blender shot, raea godot shot). register_natives() gathers every native call a composition's thread answers, so raea types lists them all. Tests: apps/interchange (9), apps/engines 2026-11-11 09:35:16 -08:00
shinyobjectz 07cd85e663 CC1, CC2: raea render -o OUT.mov --alpha writes a transparent movie natively, and raea export capcut EDIT.tsx writes the composition as a CapCut draft ready in its timeline (docs/capcut.feature)
raea-io-alpha encodes --alpha PNG frames (straight alpha) as a QuickTime movie: ProRes 4444 or HEVC with alpha through AVAssetWriter on the Mac, and QuickTime Animation (32-bit ARGB run-length, FFmpeg's qtrle layout) or PNG frames on every platform. `--alpha-codec prores|hevc|rle|png` picks one; prores is the Mac's default, rle elsewhere. CC1a, on a 3 s 1080x1920 graphic: 12.3 MB, 0.34 MB, 0.84 MB and 7.4 MB; rle and png decode identical to the PNGs, prores and hevc alpha within 61 dB, and a frame that draws nothing decodes fully transparent in all four.

raea-io-capcut writes CapCut 8.5.0's draft as CapCut writes it (an empty project and one with a clip placed by hand give its skeleton and a video segment's companion materials): one material per segment, times on the frame grid, media copied into its assets/, version markers from the newest draft CapCut made, and the entry in root_meta_info.json (backed up first, refused while CapCut runs). raea-app-capcut renders the composition three times: as it is with --manifest (footage runs, sound clips); with its footage and the backgrounds holding it hidden (RAEA_HIDE_MEDIA=1, the overlay); and with only those backgrounds (RAEA_HIDE_MEDIA=under, kept unless black). Footage becomes clips of the original files at their trims and rates, placed by object-fit (cover, contain, a cover crop), keeping their own sound at the composition's gain; sounds become audio clips with gains and fades; the overlay becomes clips cut where it draws. The manifest gains each video's object-fit and each sound's rate and fades, and the export cache is skipped under RAEA_HIDE_*. Checked on two fixtures: the draft's layers composited in ffmpeg match raea's render (31-33 dB against its H.264). Not yet checked: the draft opened in CapCut itself (CC3a). The CLI reference gains export (in Make) and --alpha-codec.
2026-11-11 06:43:39 -08:00
shinyobjectz 4dc3083c6e apps/engines: Blender's TypeScript runner and Godot in a crate of their own, so apps/tools and engine/cli stay under the 2,000-line crate limit (tools/size.sh)
The lane's first commit put apps/tools at 2,192 lines and engine/cli at 2,041, and L1 refused it. raea-app-engines
(apps/engines, layer apps) now holds godot.rs, godot_run.rs and blender_bridge.rs unchanged, and `raea blender run
SCRIPT.ts` (blender_ts.rs, moved out of engine/cli's cli.rs). Its cli(args) answers `setup blender|godot`, `blender ...`
and `godot ...`, so cli.rs calls it once where it had five branches. Finding and setting up Blender stays in
apps/tools/src/blender.rs, whose run and sha256 are now pub for Godot's setup; zip and dunce moved with Godot.
Sizes now: apps/tools 1,496, apps/engines 777, engine/cli 1,996 (main has 1,999).

tools/layers.toml gives the crate its layer; tools/skills.sh's stale-help check also watches apps/engines/src, where
Godot's usage now lives; docs/godot.feature, sdk/godot/README.md, sdk/godot/tools/gen.sh and runtime/calls/src/blender.rs
name the new paths.

Proven: cargo test -p raea-app-engines -p raea-app-tools (10 and 12 pass, among them a new test that cli() takes only its
own verbs and leaves the rest to the CLI); raea built with it runs `raea godot`, `raea setup godot --check` and
`raea blender run` on a .ts script as before.
2026-11-10 21:42:49 -08:00
shinyobjectz b2631ff5b6 raea/blender and raea/godot: Blender's and Godot's whole APIs from TypeScript (docs/blender.feature BL22-BL35, docs/godot.feature GD1-GD10)
Shane, 11-10: "include natively a blender api package in raea/blender using samchon/blendia as good starting place and
get us to a solid scripting parity to the official blender python api. we will own this ourselves", and "make sure to
add GodotJS which should add a more complete integration and bindings for godot integration".

raea/blender (sdk/blender, started from samchon/blendia, MIT, and rewritten): bpy, bmesh, mathutils, bpy_extras and
gpu typed from Blender 5.2.1's own RNA and docstrings (tools/gen.sh: 1809 structs, 2498 operators, 41 modules outside
RNA; 102 of about 12 900 members any), run against a real Blender. Paths are lazy as Python's attribute access is
(writes and calls sent in order, reads awaited, py.pin for a stable handle), errors are Python's (BlenderError),
mathutils is computed in TypeScript with Blender's maths (1450 values within 1e-5 of Blender's), float arrays are
the value Blender gives (Vector, Matrix, Euler, Quaternion, Color), a call that makes a thing by its type returns
that class (tools/refine.py), node sockets are typed by name, and every argument can be given by keyword.
`raea blender run SCRIPT.ts [FILE.blend] [ARGS...]` runs a script on raea's engine against a headless Blender
(apps/tools blender_bridge.rs, runtime/calls blender.post); under Bun or Node it starts its own, or joins the person's
Blender through raea's add-on (python/raea_blender).

raea/godot (sdk/godot) on GodotJS (MIT): Godot 4.6.1's every class, singleton, enum and builtin typed from GodotJS's
codegen, JavaScriptCore on the Mac and QuickJS-ng on Windows and Linux (no V8). `raea setup godot` downloads GodotJS's
editor build pinned by size and sha256 (apps/tools godot.rs); `raea godot run SCRIPT.ts` bundles the script and runs
its default export (a function given the SceneTree and ARGS, or a SceneTree subclass as the main loop) headless or
with --window, --movie recording with Godot's Movie Maker (the window kept on top, the frame size from the project),
a callback that throws stopping the run, RAEA_CWD with cwd() and resolve() for paths; `raea godot types` and
`raea godot open` (godot_run.rs).

The guides: raea guide bevy/blender gains "A step in TypeScript" and bevy/godot is new, each example type-checked
with its SDK's tests (sdk/blender/test/guide.ts, sdk/godot/test/guide.ts) and run as shown; raea guide bevy routes to
bevy/godot. Their raea-skills copies are 7497067 (branch blender-godot-ts, not pushed). sdk/tsconfig.base.json maps
raea/blender and raea/godot; tools/release.sh ships @raea/blender's python/.

Proven: sdk/blender's tsc and bun tests against Blender 5.2.1; sdk/godot's tsc and its 7 bun tests against the
installed GodotJS; apps/tools godot_run's unit tests; post 07b's film (releases/0.1.1/src/engines), its left half
built and keyed by raea/blender and its right half recorded by raea/godot.
2026-11-10 21:42:49 -08:00
shinyobjectz d412678357 DR6: done. Each ask of a note is held by a check that must fail on the work as it stands before the work changes, or by a clip the person signs. An ask names its check (raea's by name or a .ts check by its path), its values, its composition (Ask.of; Rule.of runs a rule only there) and, where it can't be measured, proof { shot | frames, sign }. raea notes check runs the asks through raea check's run (apps/direction, lent by the CLI): a first run that passes is refused (exit 1), a failure is kept with its check and values in .raea/notes-checks.json, a check changed after it failed is to check again, and each finding's by is its ask, so two asks on one check are counted apart; raea check runs the notes' checks beside the rules. Each clip is cut with ffmpeg from the composition's newest render, never from one the composition changed after; the person's sign comes back from the app with the render's sha256 and is kept by raea notes take. An ask reads to check, failing, to sign, passing or signed (the agent's move until there is a clip of the work as it stands), the note its worst; raea notes ls says each and raea notes post sends the badge, each ask's state and each clip (raea show --status --states, --sign --clip --render). raea/check gains a per-rule memo, after, named, turned and inside; six worked checks ship in sdk/guides/craft/checks and in the skill as craft/checks (rides, flat-type, faces, stands-on, shot-length, no-part), with their pieces and cheats in bench/direction/asks (asks.sh: 35 cases as expected). A plain element that covers another is named by the component that drew it (runtime/world). Proved end to end in a copy of the raea app (1109.87): a note sent, taken, restated, failing, the work changed and passing, the clip signed in the page, --done refused, and the sign reopened by a changed composition. Tests: raea-core-facts 16, raea-app-notes 10, raea-app-direction 16, raea-runtime-world 15, engine/cli show.test.ts 5. The craft router says the order, and the manual's notes, show and raea/check pages say what's new. The worked checks' table moves "low poly" to DR14 and "the light at the cut" to DR19, each with why. 2026-11-10 15:34:46 -08:00
shinyobjectz a4fd51bebe DR5: a person's notes become files the work is held to, restated as asks before anything changes. raea notes take writes each note sent from the raea app (each edit comment, with its pin) or said in a session (--said) to notes/ROUND/nN.ts, the words verbatim and no asks; a note already taken isn't taken again. raea notes ls says where each stands (to restate, to check) and what its restatement still owes: a second reading where one ask came from several sentences, each medium its words name (2D, 3D, flat, extruded, real, modelled, voxel) that no ask asks for or turns down, and what a redesign keeps. raea notes post shows a restated note's asks on its comment in the app (raea show --on ITEM --working ID --ask TEXT...), once per restatement, and none that still owes something; the person's correction comes back with the next take as a new line of the note, kept, with its ask in corrected until restated. Note, Ask, Pin and Proof are world facts (core/facts note.rs) with their TS types, and sdk/raea/src/note.ts gives note({...}). The notes are a crate of their own (apps/notes), not apps/direction, which is near its size; the feature file says why. 2026-11-10 14:03:56 -08:00
shinyobjectz 973ee00acc DR4: a check is a system, and raea's own are written the same way. raea check PROJECT|EDIT.tsx runs every rule that applies to each composition: raea's floor on its newest render, the person's taste, and the workspace's and the project's controller rule fields. It reads the frames each check ranges over (all, cuts, lines, once or a list) into worlds once, runs raea's named checks in Rust (apps/direction systems.rs) and a project's .ts checks in the JS host (raea/check: check({ id, text, needs, level, frames }, (world, frame, values) => ...) and found(...), with the components' types generated from core/facts), and keeps the findings in the project's record. A check that needs a render and has none waits, and says what for; a check that throws, or a rule file raea can't read, is a finding. raea check VIDEO.mp4 is the floor as before.
Proved by bench/direction/proof/proof.sh: five checks that import nothing of Bevy's (a lyric layer over footage, a footage cut, a cue in a mix, a caption in a vertical ad, a rider on a 3D seat), each passing its piece and failing its cheat, and a taste line failing the ad's cheat as the named check of its form.

Fixed on the way: a text's box grows over words drawn past it (the caption cheat passed); a word a cut passes through is in each clip's words (the cut cheat passed); a Part carries its own box before its transform, so a turned part is tested as turned; the help reads `[A|B]` as one argument. Copies folded rather than added: a command's words (apps/check, now also raea workspace's), the printed report and exit code, the person's taste folder, a controller read from JSON (core/brief, now also apps/workspace's), and a path made plain (runtime/bundle's). The spec's lines that the code showed wrong are fixed beside them: --stage moves to DR10, a note's checks to DR6, and the rule field from DR8 to DR4.
2026-11-10 12:14:15 -08:00
shinyobjectz fc274e2870 DR3: under the size and copy limits: gen check's fitted-fix wording moves to raea-core-meshcheck (said_fix, tested there), Finding::read replaces four copies of reading a kept finding, the export cache prune is one pass over the folder, and the closures cargo-dupes matched by shape are written another way 2026-11-10 09:54:02 -08:00
shinyobjectz bf7fed1817 DR3: done. raea findings in raea's help and the manual (its page, the reference regenerated); the room checks' guide says their finding shape; the status written in docs/direction.feature 2026-11-10 09:18:27 -08:00
shinyobjectz aebbdb2d4a DR3: the project's record keeps what each render and check found; raea findings reads it, raea next steps by it
A render, or raea check, of a file in a raea project keeps its findings in .raea/record/, one file apiece named by
when (UTC) and what, with the project's commit ("+" when the file has changes not committed), what --despite let
through, and at most 500 entries. raea findings [PROJECT | EDIT.tsx] [--about NAME] [--check ID] [--open] [--since
RENDER] [--json] compares each thing's latest entry with the one before (or RENDER): what was fixed, what is new and
what is carried, and since which render; a finding is the same across renders by its check and what it is about, not
its frames. raea next reads the record, not out/ and a check.json's time: a render's errors are the next step, then
its video's check and what that found. A render's manifest has all its findings (the exposure's too). The record lives
in core/facts beside Finding, since the render, raea check and raea next all use it (the scenario says why); the
registry's up() moved with it. raea findings is dispatched; its help line follows the lane changing help.
2026-11-10 08:56:09 -08:00
shinyobjectz 1c49f37e06 Merge branch 'raea-root' 2026-11-10 08:54:56 -08:00
shinyobjectz 4ca98b13a3 Workspaces go in ~/Documents/raea when no raea.root is set
~/Studio didn't say whose folder it was. With no raea.root, default_root: ~/Studio where workspaces are already (the root before 11-10), else ~/Documents/raea, or ~/raea when iCloud keeps the Documents folder (a workspace's git history and footage don't belong in a synced folder). The feed's host says the same (raea-feed host/workspace.ts defaultRoot). raea's usage and the manual's CLI pages name the new default; the skill's files.md follows in raea-skills.
2026-11-10 08:54:10 -08:00
shinyobjectz 9f3ffa7b1c DR3: raea render's usage names --despite CHECK WHY 2026-11-10 08:25:40 -08:00
shinyobjectz 898a0068df DR3: raea render counts its findings last and exits 1 on an error not let through
A render's findings (the clipping check's, as it says them) are kept for the end: the last line it prints is their
count, and an error not let through makes it exit 1 once its output is written. RAEA_DESPITE="CHECK: why" (a check's
name, or all) lets a check's errors through and writes the reason into the manifest, for a harness that renders many
pieces and compares pixels: P26's compare and recapture set it; a raea before this ignores it. The --despite CHECK WHY
flag is read the same way; its line in render's usage follows once the lane changing that line lands. raea check
--quick judges its stills' render by the manifest it wrote, not its exit, and reads their findings.
2026-11-10 08:17:29 -08:00
shinyobjectz 1b55218328 raea render -o OUT.wav renders the sound alone, and --audio OUT.wav writes a video's sound beside it from the same pass
Shane 11-10: "we should add an audio-only render and also be able to render video and audio at the same time".

apps/sound (raea-app-sound, new): `raea render EDIT.tsx -o OUT.wav` bundles the composition as a render does (its --composition and flags), steps React through every frame for its sounds with no frame drawn (raea_runtime_export::sound_only, which live play already mixes from), masters it by its <Mix> as the video's sound is mastered, writes a 48 kHz WAV and prints its length, loudness and true peak. `--audio OUT.wav` on a video render sets RAEA_AUDIO_BOUNCE, which every render path already writes from its own bounce (export sound.rs and fed.rs, encode sound.rs), so the WAV is the very sound the video carries before AAC, with nothing rendered twice. engine/cli: the render line names OUT.wav and --audio, and run() hands a render to apps/sound first (one line; raea-cli is at its size limit). runtime/export, at its 2,000-line limit, is unchanged. docs/manual/reference/cli/render.md regenerated, with --audio described.

Checked: the Orientation film's sound alone, 125.8 s in 22.3 s, -14.0 LUFS, true peak -1.7 dBTP; a 2 s test with -o t.mp4 --audio t.wav wrote both, the WAV 2.000 s and the MP4's audio track 1.961 s (AAC).
2026-11-10 08:01:17 -08:00
shinyobjectz ca54307223 DR1: raea world reads a frame into one world of facts
runtime/world (raea-runtime-world) steps a composition's React to the asked frames, as raea scene lint steps it,
and reads each into raea-core-facts entities: the 3D layer with its Camera (velocity from the next frame) and
Parts measured from their triangles, Text3D as Text and Part; the page laid out by the render's own Blitz page with
nothing painted (BevyPage::lay_out), so text has its box, size, font and line count; Sequences as Shots (from and
to; Sequence now stamps data-raea-end), footage as Clips with SHA-256 and their take's words, sounds as Cues, the
project transcript's lines and <Speech> lines; each entity's Source from the code stamps. <style>/<script> text is
not read as words.

apps/direction: raea world EDIT.tsx [--frame N | --at A-B|A,B] [--find JSON] [--no-layout] [--json]; --find spans
media (with, without, where Comp.field).

Folds: raea_runtime_react::scene::surface, raea_runtime_bake::runs, raea_core_facts::Word/transcript_words (raea
check's). Stamps name Audio. The time a layout-only page update gets is sent as a drawn update sends it.
2026-11-10 07:47:50 -08:00
shinyobjectz b30ef6adca raea show posts quietly, and asks everything in one item with previews
Shane 11-10: "any time you make an update to the feed it takes me out of the thing im currently doing", and the questions should be "a single thing that allows me to actually preview things while answering questions and all in one feed item rather than a bunch of them".

show.ts: --question repeats, each starting a question whose --choice's follow; --preview FILE after a --choice is that choice's (a still, a video, a sound, a NAME.script.ts or a .md), after the --question the question's own. Several questions, or any preview, go to the app's host as one item (questions); one question without previews is sent as before. The CLI opens the item's raea:// link (which brings the window up) only with --open or when it just started the app; otherwise the page finds the post (raea-feed f03b4e7, /host/shown) and says so in a notice. An app from before that route never finds an unsent item, so there the link is opened as before.

app.ts: the app-host verbs (show, harness, task, library) and their host lookup move out of native.ts, which was over the 500-line limit (514; now 407). cli.rs: the help line says so. docs/manual/reference/cli/show.md: regenerated, with --open and --preview described and the prose saying posts are quiet.

Checked: the parser on seven argument lists (old one-question stills, three questions with previews and --open, a --preview before any question, two previews on one choice, a stray file beside questions: refused with why); tsc --strict on native.ts, app.ts and show.ts; tools/manual-ref/cli.ts check clean for show.
2026-11-10 07:17:47 -08:00
shinyobjectz 794769e15b raea show --on against a raea app from before it says so (quit and reopen to update), not the old host's bare "not found"; the host's own refusals still pass through 2026-11-09 21:07:12 -08:00
shinyobjectz f0e01210c2 PV3c: raea's help names media lod; two copied closures folded (L1 dupes) 2026-11-09 21:03:59 -08:00
shinyobjectz 7198060ab9 PV1: raea play --seek takes --pick X,Y and --view YAW,PITCH,DISTANCE (its help line and manual page) 2026-11-09 21:03:59 -08:00
shinyobjectz a7e5b6c1d1 raea show --on ITEM --working ID / --done ID [--note LINE] [--sub NAME]: an outside session marks the person's edit comments as tasks in the raea app (POST /host/task); FILE --replaces ITEM --done ID settles them with that version; docs/review.feature R3; the show page's flags (Shane 11-09) 2026-11-09 20:03:00 -08:00
shinyobjectz e9e0fba83e raea hook for every agent: media opened in Preview goes to raea show (a second try goes through), and every harness gets the hooks (Shane 11-09)
Shane 11-09, on a hook that steers an agent's open of a still to raea show: "yes lets do that or at least make it double
confirm then push and confirm. again also make sure all hooks and usages are acp agnostic not just claude".

apps/check/src/hook.rs: raea hook [claude|codex|gemini|kimi] reads any of the four harnesses' hook input (the harness
named, or told apart: Gemini's BeforeTool/AfterTool, Kimi's client_type). Before a shell command (Bash, shell,
shell_command, exec_command, run_shell_command; not Codex's apply_patch), a still, video or sound opened with open,
open -a Preview, xdg-open or qlmanage -p while the raea app is installed is stopped once: exit 2 with the reason on
stderr, which every harness hands its agent, naming the raea show command for those files. The same command in the
same session within ten minutes goes through (~/.raea/hooks/again), so an agent that means it says so twice. open -a
raea, open -R, links and PDFs are never stopped. After a save (file_path, path, or the files an apply_patch adds or
updates), the quick check on a composition, its findings in the shape each harness reads (Kimi's plain stdout,
Gemini's AfterTool context, Claude Code's and Codex's PostToolUse context). quick.rs loses its Claude-only hook.

apps/tools/src/agent_hooks.rs: raea skills install --agent A adds both hooks to that harness's own config:
~/.claude/settings.json, Codex's hooks.json (trusted in its /hooks), ~/.gemini/settings.json (milliseconds, named),
Kimi Code's config.toml [[hooks]] (only the four keys it allows). An event with a raea hook entry is left alone.
agent_mcp.rs loses claude_hook. engine/cli/src/skill.rs: hooks for every agent; a skill folder that's a link (a
raea-skills checkout) is left as it is instead of replaced by a stamped copy.

engine/cli/src/show.ts, native.ts: raea show names its poster from the harness that started it, found up its parent
processes (HARNESSES: Claude Code, Codex, Gemini, Kimi, OpenCode, Goose, Cursor, Amp, Qwen Code, Crush, Aider) when
its shell carries no mark, with an inbox per harness process.

docs/agents.feature A5d, A5e; the manual's hook and skills pages.
2026-11-09 19:33:35 -08:00
shinyobjectz 397d502f67 raea show: in the manual's CLI groups, and raea-cli back to its 2,000 lines
tools/manual-ref/cli.ts: show is in Agents and setup (what an agent reads and shows the person). engine/cli: the show
comments fold into library's, so the crate is 2,000 lines again (rask's crate limit).
2026-11-09 19:11:35 -08:00
shinyobjectz cbc763ef8d raea show usage: each flag names one value, so the skills reference counts them right
engine/cli/src/cli.rs: the help line reads --ask LINE and --question Q --choice A --choice B [STILL...] instead of
quoted phrases and a parenthesised choice, which tools/skills.sh read as extra values.
2026-11-09 19:05:25 -08:00
shinyobjectz 890e51afc5 raea show: what a session shows the person goes to the raea app as an item they can use, not Preview (Shane 11-09)
Shane 11-09: "my agent working raea keeps making sheets in preview and not in raea how do we make it so when using
raea and raea app is installed new edits new sheets or examples or questions are pulled up in the raea app and not
preview. we should see them as interactive too. the whole point of raea is interactive artifacts and things and
recording them after making an answer."

engine/cli/src/show.ts (a SHELL verb): raea show FILE... [--title --ask --project --replaces --as --role --inbox] and
raea show --question Q (--choice A ... | STILL...). native.ts finds the running app (RAEA_FEED_HOST, else the address
the installed app leaves in ~/.raea/app-host.json, raea-feed host-file.ts), starts it when it's installed and not
running, POSTs /host/show (raea-feed host/show.ts makes the item: stills a look, several a storyboard, a video a
watch, a sound a listen, a script or .md a read, a .tsx an artifact or the project's composition in its editor, a
question an ask), then opens raea://item/<project>/<id> so the window comes up on it. It prints the session's inbox
file, where what the person sends comes back (docs/agents.feature A3b). Without the app, the files open in the Mac's
viewer and it says nothing was posted. raea library finds the app the same way now. The poster's name and inbox come
from the harness (CLAUDE_CODE_SESSION_ID, ...) unless given.

docs/agents.feature: the file (rules A1 to A4 from 11-09) with A5, raea show.
2026-11-09 19:00:23 -08:00
shinyobjectz 7a3e87dddb Layer pass, the page's half (docs/review.feature R2b, R2c, R2e; work in progress, parked with the source stamps): raea render --layers writes NAME.layers v1 (systems/layers, raea-sys-layers: gzip of RAEALAYR, the header's table of layers, each frame's quarter-size mask as runs) and render.json's "layers" names it. The page is painted a second time once the frame's update has laid it out: blitz-paint now names the node each paint call draws for (painting()), and an ID scene on vello_cpu draws that node's layer index as a flat colour with antialiasing off (edges counted above 12/255 coverage, glyphs emboldened as the page draws them). bench/layers/compare.sh scores each layer's mask (its own pixels plus those of the layers inside it) against oracle.sh's: all 12 page layers pass at IoU >= 0.977 at frames 10, 45 and 80. The 2 mesh layers come with the 3D half. key_of moved to raea-sys-layers (systems/frame re-exports it). 2026-11-09 12:45:05 -08:00
shinyobjectz 151de4ba63 Project registry in its own crate, raea-app-registry (apps/workspace/registry), so raea-app-workspace stays under the crate limit (L1 size: 2060 lines)
The registry depends on nothing of the workspace crate. It now owns up() and slug(), which the workspace crate re-exports, and takes the controller ids named by the project's overrides as an argument. raea-app-workspace's registry module wraps scan() with them, read from .raea/project. raea context takes both the workspace's sections (controllers, project files) from one call, raea_app_workspace::context(), which keeps raea-cli at 1997 lines. Folded the copies L1 counted: Registry::warnings() and composition_files() replace the filters and sort in doctor and next, resolve() builds its candidates in a loop, and a line number is counted from the newlines before it (stamp.rs had the same line_starts). New test: an override naming a missing controller is linted once. raea-app-registry has 6 tests and raea-app-workspace 6.
2026-11-09 12:28:18 -08:00
shinyobjectz 9aaf3f21e6 Project registry (docs/projects.feature PJ8): one static reading of a project's compositions, components and controllers, and lint for what isn't connected
apps/workspace src/registry: each .tsx and .ts is parsed with oxc (the version engine/bundle uses), without running it. A composition is each <Composition> that a registerRoot registers, with its id, component, size, fps and length read from the source. A prop written as a top-level constant, or simple arithmetic on constants (const FPS = 30; 15 * FPS; edit.w; Math.round), is read as its value; anything else is kept as the expression. A .tsx whose default export no other file imports is registered under its file's name, sized from its newest render manifest. A component is a .tsx that a composition imports, directly or through another file. A controller is a module whose default export is controller({...}) from raea/brief.

Lint (each finding has a file:line and its fix): not-a-project, broken, orphan, unresolved, outside, duplicate-id, computed (info), unregistered (info; fixable when a manifest gives the size), controller-home (fixable: moved to controllers/<id>.ts), controller-duplicate, override-missing.

CLI: raea project scan [DIR] [--json]. raea doctor lists the warnings, and --fix registers a default export and moves a stray controller, committing only the files it touched. raea next reads compositions from the scan (no more grepping for registerRoot) and puts unconnected files first. raea context gains a PROJECT FILES section. Tests: 11 pass.
2026-11-09 12:03:32 -08:00
shaneandshinyobjectz 8b5f153ec5 surface: a guide's raea export-game is the command it names, not raea export (#76)
The check that every `raea <command>` in the agent's context exists matched \w+, which stops at a hyphen, so the
delivery and games guides' raea export-game read as raea export and failed every lane's L1 since #73. It matches commands
as the help list is read ([a-z][\w-]*); export-game and setup-audio are the hyphenated ones the guides name, both real.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-09 09:54:55 -05:00
shaneandshinyobjectz eaf5406f39 One raea skill, in raea-skills (skills/): raea pins it, and its release ships it from the pin (#58)
The raea skill moves from sdk/skills to the raea-skills submodule, in its framework (skills/skills/raea/SKILL.md
with raea-tested-against and raea-verbs, checked by its skillcheck), and raea-bevy is folded into it: its router
is the skill's 3d.md and its topic files are in 3d/. An agent loads one skill for everything raea does.

- `raea skill` and `raea skills install` find a checkout's skill in skills/skills (an install's share/raea/skills is
  unchanged) and skip raea-skills' _template. `raea skill raea-bevy` says where its text went, and install removes
  an older raea's raea-bevy copy.
- tools/skills.sh gen writes the references into skills/skills/raea/reference and copies the Bevy craft guides
  (sdk/guides/craft/bevy) in as the 3D topic files, which were links: a clone of raea-skills, or GitHub, reads them
  whole. check fails on a copy that differs from its guide, on one whose guide is gone, and on an uninitialised
  submodule.
- tools/release.sh gates on the pointer (skills in the gate inputs), adds raea-skills at the pin to the gate's tree,
  packs share/raea/skills from it, and lists raea-skills' own commits in the skills notes.
- The core-rules test reads the skill from the submodule, and the surface test checks it.
- The Claude Code plugin names the one skill folder; README, the guides and the SDK docs say raea's 3D guide.

Co-authored-by: shinyobjectz <[email protected]>
2026-11-08 14:36:53 -05:00
shinyobjectz 3fcd4e56f3 raea song builds and runs off Apple (fixes #43). raea-sys-vision compiled modules that use Core ML and Apple Vision on every platform. depth and object are now Apple-only, and AppleVision with its text_lines moved into apple_vision.rs. The Vision trait and the portable helpers stay in vision.rs, and image becomes a dependency everywhere. raea-sys-layout's motion module (pure Rust) is no longer gated. raea-perceive gates the eyes, vad, track and hands commands to Apple, and read-lines and faces to builds that have a backend. Footage's store and content_hash (beats --store) move out of the Apple-only ingest module into store.rs. Off Apple, song and beats decode in process with the soft backend (Symphonia), since a Windows install has no ffmpeg: on a 163 s mp3 the map matches the ffmpeg backend's (264 beats, the same sections; strengths within 0.003). Models live in raea_io_home::models(): %LOCALAPPDATA%\raea\models on Windows, which has no HOME, and ~/.local/share/raea-models elsewhere as before. raea-perceive is found as raea-perceive.exe on Windows (io/assets perceive_bin, and the CLI's native.ts, whose PATH lookup now splits on the platform's delimiter). raea-perceive checks for Linux and Windows except opus's C build, which the soft backend brings and only a native toolchain compiles. The release doesn't ship raea-perceive for Windows or Linux yet 2026-11-08 02:17:06 -08:00