mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 05:33:38 -10:00
84864ba4e7763bea4e573e0b58f582036397a34f
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d80966354c |
Poteto audit: 4,478 lines, 34 files, 2 crates and 4 dead checks removed; 4 checks made to run (#351)
* A cloud render's check is proved by a test, and the old verb names are refused in one message or not at all
offload.ts's check step is checkRender(), exported and tested in sdk/cloud/test/units.ts against a stand-in raea: an ERROR in the cut fails the render with exit 1, and a check that can't run fails it with its own exit, never passing it unchecked. engine/cli's tests check the argv offload sends passes regroup() and gone() untouched.
regroup() answers `raea make check|seen|look|judge|gates` with one message naming `raea check`, instead of pointing at goal verbs gone() refuses. The part, next and make-plan arms, the controller tombstone and the craft alias of `raea guide` are deleted, with their tests and the docs that promised `raea part` still answers. The conformance test that ran `raea part add` now runs `raea make component add`, and its guide-name scan no longer accepts `raea craft`.
Poteto audit F01.
* The judge, make's gates and raea ask's verbs are deleted, since gone() already refused every way in
apps/judge, apps/make's gates and asked ledger, apps/ask's verbs, sdk/raea's raea/ask module and its drift test, and `scene faults --ask` (which spawned the refused `raea ask`) are deleted, with their Cargo edges, the lock, the layers entry and scene's now-unused image dependency. lod-plan's gate() and held() go with gates.rs, their only caller. why_refused moves into apps/make, its one reader.
In the CLI, gone() runs before the flag check, so `raea judge x` gets gone()'s reason and not a stray-flag error. Judge and ask leave the help, and a new test checks that no `raea X Y` form the help teaches is one gone() refuses. gone() names `--quick` and `--taste` apart.
core/brief's ROUNDS had no reader left and is deleted; the rounds field's doc says nothing reads it and that it stays so old briefs parse. The critic's comments name its one caller, `raea fingerprint read`. The manual and specs stop teaching the removed verbs and packs (seen, stills, critic, record, notes, and the surprise pack that was already gone), and the brief examples use montage instead.
Poteto audit F02.
* The three-stills quick check is deleted: a render checks its own output, and raea check OUT.mp4 checks it again
apps/check's quick.rs and the floor packs' stillsPack (never registered) are deleted; every helper quick.rs used has another caller. The `check EDIT.tsx --quick` help line and flag row are gone, and gone() still refuses --quick with where it went. Comments that cited the quick check's stills are rewritten, Grok Bot's preface tells the agent a render checks its own output, and the sizes test fixture no longer switches off the stills and seen packs, which no longer exist.
Poteto audit F03.
* Every description of raea's hooks says what they do: raea show for media, and raea check as a turn ends
The README, both plugin descriptions, the hook, index, skill, skills, goal and install pages, the CLI help, skill.rs and agent_hooks' module doc said a hook runs the quick check after a save. They now say what hook.rs does: before a shell command, media opened in the Mac's viewer goes to raea show; as a turn ends (Claude Code and Codex), `raea check --at done` holds the brief's goals; nothing is checked after a save, since a render checks its own output. goal.md's moments table says the edit moment is run by the agent or a person, and the raea/check and raea/brief doc comments no longer say a rule runs on every save.
Poteto audit F05.
* The critique guide holds the craft questions, and the floor says what raea check measures instead of repeating it
rubric.md is merged into verbs/critique.md, which now holds the questions in the same `- id (modes):` lines core/ask parses, the generated-music tells and the P0-P3 table. The model-judged pass, its level mapping and the gate's Passing section are dropped. floor.md's Verify list opens with one line naming what `raea check` measures and keeps only what no check holds. Everything that read rubric.md reads critique.md: core/ask, apps/ask's tests, the guide list and its test, and tools/skills.sh's copies.
The montage guide and pack header say who holds emotion and story (the person, in review), and the bevy NOTICE stops crediting the deleted gates and per-kind critic rubrics.
Poteto audit F06.
* The legacy-names gate catches the removed checks, and the manual renders first and checks the export
tools/legacy-names.sh has entries for `raea ask`, `raea judge`, `raea goal seen|judge|gates`, `check --quick`, the quick check, raea/ask and `raea controller`, each pointing at `raea check`. A word boundary is spelled as the characters around it, because a Mac's git grep -E has no \b and every entry with one matched nothing there. The script skips the check and ask specs, the refusals themselves and the cloud image's sdk-overlay.
The manual's quick-check steps now render, then run `raea check OUT.mp4`: first-video, agents (its step 4 is gone and the rest renumbered), rendering, check and findings. The specs that named the quick check, `raea judge` or `raea part` are updated, and the `says` field's doc says nothing checks it and to hold it with a `run` or `file` rule.
Poteto audit F04.
* The farm's volume gate is a module of its own, and its test exercises the real class
The Gate class moved out of farm.py's api() into deploy/modal/farm_gate.py, with the volume and the log as constructor arguments; nothing else in its body changed. farm.py builds farm_gate.Gate(vol), ships farm_gate with its other Python sources and drops the contextlib import only the Gate used. The moved comments say why the gate exists without dates or customer names.
test/farm_gate.py imports the module instead of slicing farm.py's source. Its stand-in volume records how many requests are inside the volume at every reload's start and end (always 0), and each request records whether a reload was running. The first case counts reloads and late entries rather than timing them, and a new case covers a refused reload tried again while requests are held back.
Poteto audit F14.
* The farm planner handles a run's answer, its budget check and its ending in one place each
spread() and hedged() each had a full copy of the code that takes a run's answer: log an exception, bill the run, send a failed or 3D run back for a GPU, keep it in got and log the result. That is now one helper, _landed(), which returns the run's code (1 for an exception), or None when the call goes back for a GPU. spread() keeps its map of calls still out, because a starmap exception doesn't say which call raised it; hedged() appends the call it already holds.
raea_render() and blender() each had their own max_usd check and their own join-or-keep ending; those are now over_budget() and finish(). blender()'s usage string sat after its first statement, so it was never the docstring; it is now.
Poteto audit F15.
* Every raea cloud deploy names the raea release it installs; none falls back to a stale default
image/Dockerfile's RAEA_VERSION has no default and its install step stops with --build-arg RAEA_VERSION when it is missing, as fly/Dockerfile already did. compose.yaml requires the variable, fly.toml drops its build arg (the deploy line passes one), the k8s files tag YOUR-RAEA-VERSION, and wrangler.jsonc passes image_vars so its build hits the same guard. raea_cloud.py stops at deploy time when RAEA_VERSION is unset. farm.py's RAEA_FALLBACK and its local parameter are gone: a deploy that can't read raea's newest release stops and asks for RAEA_VERSION. test/smoke.sh takes the release as its argument (or IMAGE for an image already built) instead of package.json's version.
bench/gpus.py defaulted to 0.1.6 and never passed the version into its containers, so every result file recorded 0.1.6 whatever was installed. A local run now stops without RAEA_VERSION, and the image carries it to the containers.
Poteto audit F09.
* The Sprite box scripts and box.sh move are deleted; box.sh list reads raea cloud's list itself
Every agent box is a Fly Machine now, so deploy/sprites/box.sh and setup.sh are deleted, and so is fly/box.sh's move, which copied a Sprite box onto Fly. box.sh list no longer runs the Sprite script: it reads raea cloud's admin list and prints the same lines, through a staff() helper it shares with register. Comments in the box image, start.sh, login.sh, org.sh, tools/linux-box.sh and the server, and the CL16 and rerender specs, no longer name the deleted scripts or move. org.sh and login.sh stay for the Linux test machine, which is still a Sprite.
The client's onSprite and spriteToken stay: raea-platform still passes spriteToken, so they go only after it stops.
Poteto audit F11.
* Deploying the farm again keeps its token, and box.sh up gives every box the farm's current settings
workspace.sh minted a new farm token on every run, which cut off every box that held the old one. It now keeps the token beside the farm's URL in modal-PROFILE.env (mode 600) and reuses it; a workspace deployed before that takes farm.env's token when farm.env points at this workspace's farm. A new token is made only on the first run or with the new workspace.sh rotate.
box.sh up now requires farm.env on every run and rewrites each box's RAEA_CLOUD_GPU_* settings from it, so a farm made again reaches every box, not only new ones. On an existing Machine it runs fly secrets deploy (one restart) only when those settings changed. box.sh key does nothing when the box already has that key, and writes the key to the local settings file only after Fly has taken it, so a failed import exits 1 and is tried again on the next run.
Poteto audit F10.
* Reading a job's files no longer removes the job; the client drops it once the files have arrived
GET /v1/jobs/ID/out removed the job before its answer was sent, so an answer lost on the way lost the render. It is now a plain read on both the farm and the single server, and a new DELETE /v1/jobs/ID removes a finished job (jobs.drop() and main.ts on the server; on the farm, under the volume gate with a commit, its logs popped after). The farm sweeps jobs whose changed.txt is more than an hour old on each POST /v1/jobs, inside the same gate use and commit, matching jobs.ts's KEEP_MS, so a job nobody drops still goes.
The client's jobFiles asks again on any failure but a final 4xx (408 and 429 are asked again), then sends DELETE and ignores the answer, so an older farm's 404 or 405 is harmless. The retry is one helper, again(), which jobMedia and sendMedia use too: the farm answers 503 to both while its volume is busy, and a job could fail after its render had finished. Sending media twice is safe, since each is a signed PUT that leaves the same object.
units.ts covers the server's read-twice-then-drop (with GNU tar) and the client against a stand-in that cuts its first answer off and answers 503 once to each media call. smoke.ts reads a real job's files twice, drops it, and then gets 404. Deploy the farm before the boxes.
Poteto audit F12.
* A box refuses to hand a render to a GPU worker on another raea version
offload.ts now asks the worker's health before it packs the project or sends any media, and compares the worker's raea with the box's own raea --version through a new otherRaea(). On a mismatch the render fails at once, naming both versions and the two ways out: deploy the farm with the box's RAEA_VERSION, or set RAEA_CLOUD_GPU_ANY_VERSION=1. A worker still reporting 'reading' or 'unknown' is let through. Before, a farm on a full release drew an rc box's compositions with another engine.
An rc box needs the farm deployed on the same rc, or the override, once boxes take an image with this.
Poteto audit F13.
* CI runs sdk/cloud's local tests on every pull request
sdk/cloud/package.json has a test script: units.ts, memguard.ts, unused-media.ts and farm-blobs.ts on node, then farm_plan.py, farm_media.py and farm_gate.py on python3, stopping at the first failure. ci.yml has a cloud job on ubuntu-24.04 (10 minutes): Node 24, the box image's, and ffmpeg from apt, since farm_plan's stand-in GPUs encode with libx264 and aac, then npm ci and npm test in sdk/cloud. The README's Test it section says what npm test covers.
Poteto audit F16.
* Kept buffers and shapes stay under 4 GB: the least recently used go, never one used in the last two hours
buffers/ (a BufferMesh's kept text) and shapes/ (kept solids' meshes) were never pruned, and an animated BufferMesh adds about 10 MB a frame. Each process's first write into either folder now removes its least recently used files while it holds more than 4 GB, stopping at the first file read or written in the last two hours. Every read touches its file, so a buffer a running scene names stays.
A test sets old file times and checks the order, the budget and the two-hour floor.
Poteto audit F51.
* A render's flags are carried by that render, so two renders in one process each keep their own
raea render's flags (--keys, --manifest, --stage, --10bit, --aov, --alpha, --kbps, --quality and the composition's --props/--scale/--hold) went through ten process globals, and what the end checks saw went through another. They are now one RenderArgs, read once in render() and owned by the render's Ctx; the end checks' seen parts are returned with their findings and written by write_manifest. render_bundle keeps its signature for the iPhone and render --bundle, as a wrapper over render_bundle_as. program, program_of and scene_program_checked take alpha. Live play's 3D no longer reads --aov: one live_frame helper in bevy_frame.rs turns it on for a render's game frames.
The same leak, in the same places:
- --clay is set for each render, so one with --clay no longer leaves every later render in the process clay.
- The bundled JS of render, review and world reads is named by process and thread, as the work folder is, so renders on two threads don't write and delete one file.
- The composition's folder is one global (ASSET_DIR), not two kept in sync: ml.rs's own copy is gone, and composition_dir answers in every build, so baked play and builds without ml find /media/ and the physics and contact files.
BEVY_3D_PROBE, LIVE_CLIPS and FED_CLIPPING stay globals.
Poteto audit F48.
* styles.gen is compiled into each bundle's own work folder, never written beside the edit
Every render wrote styles.gen.ts into the edit's folder when it looked older than the code, so renders of one folder side by side (a farm's parts on one volume) truncated the file under each other, and bundles in one process waited on one mutex for the process's one work folder. Each bundle_fresh now has its own work folder (raea-cli-b{pid}-{n}), and styles::module(dir) only reads the edit's folder and returns the module, which is written into the bundle's copy. A project's styles.gen.ts (the template's, pong's and seedling's) is now a declaration for the type-checker. The bundle cache's temp file is named per thread.
release-check proves the compile by the styled render drawing and nothing being written beside the edit. The guides and the P26 stub follow. A new test bundles eight folders on eight threads and finds only each one's own class in its bundle.
The same write-then-move rule, beside it: a baked solid's .obj is written to a .part file and renamed (a second thread could read half of it), and the bake cache's temp file is named per thread.
tools/dupes.max: one group moves from exact to near (292/58, the same 350 groups). The deleted file-time closure was half of an exact pair; the other half now matches by shape only.
The farm probe's vol.commit() in sdk/cloud/deploy/modal/farm.py stays until a farm render of 14 or more parts passes without it.
Poteto audit F49.
* RAEA_FRAME_LOG writes the four columns it measures: frame, react, sync and gpu
The frame log went through a process global and wrote four columns that have always been 0 since the bevy_ui page (draw3d, gpu3d, page, gpupage), with sync computed as the snapshot's time less those zeros. render_fed now keeps the rows in a local Vec and writes frame, react, sync and gpu. The readers follow: bench/rerender's bench.sh and ios/bench.sh read gpu from the fourth column, and sdk/cloud's gpus.py names three value columns. bench.ps1 reads by header name and fog-score.py sums every value column, so both were already right.
Poteto audit F50.
* Every bench script that scores two frames by SSIM sources one comparator, bench/lib/compare.sh
Twenty-six copies of the ffmpeg SSIM pipeline in 23 sh, bash and zsh scripts become calls to one POSIX-sh function, ssim A B [FILTER_A [FILTER_B]]: both sides read as 8-bit RGB with an optional crop each, the six-decimal All value printed, nothing when the frames can't be compared. Eleven local ssim() definitions are deleted. encode/check.sh's metric() keeps only its PSNR half. The header records what the number can and can't see. Left as they were: rr3.sh's per-frame stats from two MP4s, media-vs-ffmpeg.sh's four YUV video-to-video sites (moving them to RGB would move their numbers), and the three Python scorers.
The function gives the same value to six decimals as every old variant on 49 PNG pairs, sourced from sh, bash and zsh. Converted scripts run against their HEAD copies with the same raea give the same verdicts and numbers.
Poteto audit F21.
* P26 fails a frame under SSIM 0.999, between what a run repeats at and a one-frame slip
The bar was 0.98, which passed a frame drawn one frame late (0.986 in stage-guards SG0, 0.9985 on a slow 60 fps film). 0.999 sits above both and below the run-to-run floor (0.99998) and an incremental build's rounding (0.99997). The header says why, notes that a few-pixel fault such as SG0's cut glyph (0.9996) needs a pixel measure rather than a higher bar, names L2 instead of a CI gate that doesn't exist, and says a row that differs for a good reason is taken again with recapture.sh, which writes the reason into its row. capture.sh's header gives the same bar.
Against a stand-in raea serving real frames: frame N+1 scored against frame N's baseline (0.9985-0.9987) passed before and fails now, and still passes with MIN=0.98.
Poteto audit F19.
* bevy-parity times Bevy's example and raea's port with one estimator, the probe's steady median
The Bevy side took the last line at frame f, whose frame_ms was the mean since the line before and so held the load or a screenshot's readback, while the raea side took its own jq median after the first five. Both now read the probe's frame_ms (systems/parity), which records every update's time and reports the median after the App's first five updates. tools/bevy-parity's raea side reads the last line as the Bevy side does, and the report says how the time is measured. docs/bevy-parity.md keeps its old numbers until the next run rewrites it.
steady_median, compiled alone, keeps a load and a readback stall out, moves 4.0 to 6.0 ms when 2 ms is added to every update, and equals jq's median over .[5:]. With stand-in binaries a raea at 6 ms against an example at 4 ms turns the time column to false and the row to no.
Poteto audit F20.
* L2 runs every bench check, not a hand list of five
bench/l2-checks.txt named 5 checks; about 50 others were run by nothing. L2 now runs every tracked bench/**/check.sh and sdk/**/check.sh, plus tools/settle-nudge.sh and tools/frame-pure-3d.sh (60 on this tree), less what bench/l2-skip.txt names with a reason (none yet). Checks that run the plugin build go after that build; when it isn't made they are reported as not run and still count in the total. Each check runs in its own process group with L2_CHECK_SECONDS (default 1800): past it, the group is killed and the check is a miss, and anything a check leaves running is killed when it ends. "bench checks: ok/N" prints after the plugin step.
Four sdk/react checks (ml, speech, timelines, tone) looked for raea in sdk/react/target, which no longer exists; they now take RAEA_BIN, and settle-nudge reads it too, so L2 tests the candidate's raea. speech.md and stage-guards SG17 follow.
The bench block, run alone against stub checks: nested paths selected, a skip line honoured, the plugin check deferred, a hanging check stopped at its budget with its child gone, a passing check's leftover child killed, RAEA_BIN passed through. The next release candidate's L2 is the first full run; budget one round of triage for checks nobody has run since they landed.
Poteto audit F17.
* CI tests every crate that needs no GPU, listed from the lock file instead of by hand
The unit-test step named about 15 crates, so a new crate's tests ran only if someone added it, and runtime/live's stage_guards.rs never ran. The crate list now comes from cargo metadata and cargo tree: every workspace crate that links neither wgpu nor Rolldown (98 on macOS), less raea-sys-mlx (its tests need MLX's Metal device, which hosted runners lack), plus the six wgpu-linked crates whose tests need no GPU, now including raea-runtime-live. raea-bundle keeps its own call for Rolldown's feature unification. jsengine and io-assets leave the feature step, since the main step runs them, and ffmpeg is installed on both OSes for app-double's and app-ask's tests. All of wgpu's side can't join: its test binaries would fill the runner's disk (#90).
Locally the selection gives the same 98 crates as an independent cargo-metadata count, and cargo test on 96 of them passes 521 tests (17 ignored).
Poteto audit F18.
* The README stops claiming renders run faster than they play, and bench/speed measures it
bench/speed/run.sh renders each L2 composition whole to an MP4, one warm-up then RUNS=5 timed runs with the export cache off, and prints two speeds in seconds of video per wall second with their median and range: the frames alone (the render's own frame and encode time) and the whole command, spawn to exit. Measured here: 57 of 58 compositions make their frames faster than they play (median about 4x, 2.2x to 35x), bevy/volume-light at 0.51x, but the whole render is slower than playback for 43 of 58, held back by the 3.2 to 10 s spent outside the frames (bundle, page start, sound, end checks, signing). So the tagline now ends at "rendered on your own GPU". The script is a measurement, not a check: it is named run.sh so L2's check glob leaves it out, and one pass takes over an hour.
Poteto audit F22.
* raea-sys-foliage is removed until a verb, native call or SDK module calls it
systems/foliage (1,904 lines) had no Cargo dependent and no code caller: nothing in raea could grow a plant with it. The crate, its workspace member, its lock entry and its two tools/layers.toml entries go. docs/foliage.feature says how it comes back with FO10's caller (git checkout
|
||
|
|
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]> |
||
|
|
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. |
||
|
|
96d2820589 | A ShaderMaterial's shader is its colour pass's only: a prepass keeps Bevy's own fragment, which writes the normals and motion the prepass targets expect. Under Solari the camera has a normal and motion prepass, and the colour shader in it failed validation ("Error matching ShaderStages(FRAGMENT) ... prepass_pipeline") and Stay's fern dropped out. The three.js host draws <Instances> at each placement its data-at gives (sdk/render instances.tsx), as one InstancedMesh, instead of one mesh at the origin (sdk/r3f test/instances.test.tsx). docs/linux.feature is Shane's 11-11 plan for a faster Linux engine in the cloud: where a frame's time goes on Modal's GPUs, and the scenarios to test, validate and improve it (none started) |