@spec Feature: Direction that holds: one world of facts, findings and rules, so a person's notes become checks and a project is built in an order that can't skip modelling, blocking or review Shane, 11-10, after a two-minute film went through eleven passes and was abandoned ("the video is dead in the water"): "i think the problem is you have kept reworking the same scenes again and again, the whole video is now broken ... i will have to make sure we instead of even fixing understand". Then: "take time to put all of the pieces together from my notes into one large spec and feature. how do we truly fix all of these at the core." His findings, in his words: 1. Notes. "the inability to understand my notes as imperative thoughts that need further design. When I leave a note on a comment, I could be encapsulating a lot of things. Why is it that these notes become kind of like not seen or not heard, or when I say something in one round, it doesn't get heard in another ... The first step of taking these notes should be converting them to basically some sort of TypeScript test that we can validate against. What is it that they're asking for? Can we create a rule? Can we create a controller? How do controllers become rules? These are things that need to be inked into our skills." 2. Looks. "we have an overreliance on our shaders that we wrote for sample projects in raea ... the paint and other looks ... are really hurting us because the point should be that you design your own shader for every project, for every video, or if you're saving it, you're saving it as a controller across the project, or a component across the project". 3. Components. "this project was bound to fail because we didn't build a component library at the very beginning that was highly organized. Every prop should be a component. Every component has props that we animate. Those are rigs. We need to have a much more structured approach". 4. Blocking. "blocking first was actually really good ... we got the best results when we didn't even worry about camera angles and we just thought about blocking ... make sure that we understand clipping and rigs within blocking scenes ... the computer jumps on the chair. In almost every scene, the chair and the computer would then be misaligned or broken, and it would be clipping through the chair. And then we wouldn't get the same telemetry back about clipping. Where did that telemetry go? It used to be there. Those kind of controllers should help with clipping. How we measure clipping, what components are attached". 5. Medium. "I kept saying I want 2D animated text with occlusion, and you kept putting in 3D text extrusion ... if I want 3D text, I'll say 3D text. If I want 2D text, I'll say 2D text ... you're not over relying on oh it's a 3D project so it's 3D text ... we are compositing layers and good content leverages 2D and 3D in composites". And of the lyrics: "think of how a lyric video would be and we want all lyrics like that". 6. Sense and detail. "the desks are all facing the wrong direction and why is there kitchen props on the desk? That makes no sense. We need semantic layers ... we should be very focused on the taxonomies of these procedural elements ... we need to over detail the scenes, meaning detail that the camera might not ever see ... If the goal is to create a cityscape outside ... graffiti and billboards and cars ... medians and sidewalks and people and windows and fire escapes ... plastering a billboard over a street because I said I want a billboard there, it just doesn't make any sense. Things have to look good." Of the places it flew through: "all the worlds you keep featuring are like voxel low poly. i dont want that. i want highly defined and highly modeled scenes and world of varying style ... you have put zero time into any world modeling work i asked for." 7. Review. "there's clearly a lack of checking any of the check systems, like how we match up, first of all camera angle consistency ... The visualization of a shot is not working because there's so much movement going on ... we're losing a lot of quality in the movement that the stills aren't showing you. Same with the audio since you can't listen to the audio, you're not seeing any of that." 8. One system. "check files and controllers and the cli results and data should all be intertwined somehow. maybe theres a better way to use the ecs system for all of these at least in format and standard but checks should apply to raea as a whole not just bevy". What the agent on that film did, as the failure each part below is tested against: - It patched each note and logged a row with a still. Nothing kept checking it. Asks made in one round (2D type, modelled places, real meshes, not primitives) were re-read or dropped in a later one. It never restated what a note held, so a note holding three asks got one answered. - Asked for "our own shader", it added options to the stock paint look. - Its props were one-off meshes inside scene files, placed by loops with no idea what a prop is or where it goes. Fourteen "worlds" were loops of spheres, boxes and cones. - raea printed its clipping lines on every render and it filtered them out of every run (`grep -v clipping`). Its own rider-and-seat check measured the seat's angle, not whether the rider was in the chair's back. - It judged from single frames. A value that changes over a shot was right in every still and frozen in the film (a camera column the continuous render doesn't refresh): only the full render showed it. - It wrote eight check scripts inside the project (motion, framing, seat, light, clipping, lyric placement, frame jumps, cue sheet). Each had its own output; none fed another; three were left with flags unread. - It never heard the mix. What raea already has (read 11-10; each is built on, none is replaced), and the gap in each: | what | where | the gap | | an entity-component world, TS or engine | sdk/app/src/ecs.ts (raea/ecs: spawn, find, relations, resources, systems; JsStore under bun) | used by games only; a composition isn't read into one | | a composition stepped with no engine | runtime/export/src/fed.rs scene_frames (each frame's 3D items), runtime/export/src/scene.rs | 3D items only; the page's text and layers aren't in it | | an edit as rows and keyed columns | core/program (ir, eval, timeline) | the renderer's own; nothing queries it for checks | | what each frame shows, as laid out | `raea render --manifest` (runtime/export/src/lib.rs write_manifest): each text's words and box, each video's source and time, the 3D's clipping, the sounds heard, the layers | written only when asked for; read by `raea check` alone; its clipping list is a second copy of what was printed | | parts that clip, float, sink | systems/contact (every render), `raea scene lint` | findings are printed text or loose JSON `{check, level, says}` | | an export's floor | apps/check (`raea check`: text, picture, flash, sound; `--quick`; `--taste`) | its own `Issue {rule, p, at, says}`; exports only | # `raea check` reads a video through FFmpeg where it's installed and through raea's own decoders where it isn't # (apps/check/read; RAEA_CHECK_NATIVE=1 forces them): the same findings either way, held there by tests/parity.rs. # 0.1.7 refused any video without FFmpeg, though `raea media probe` and `loudness` never needed it. | a person's standing rules with checks | core/brief/src/taste.rs (`Rule { text, check }`), the taste loop (docs/craft-system.md J) | six closed forms, all about an export's text and sound; a rule is proposed only when a correction repeats; nothing per project or per note | | notes as tasks | review.feature R3 (to do, working, done), a pin's `part` | "done" is the agent's word; nothing proves it or keeps it | | notes mapped to a verb | skills/skills/raea/craft/verbs | one verb a note; a note that holds several asks loses the rest | | a plan frozen before building | core/brief/src/plan.rs (parts, levels, counts, `seen_from`), `raea make solid info --expect` | one object at a time; not a place, not a project | | rooms that know what things are | raea/room (`layRun` roles, `faceToward` from a model's measured front, `checkLayout`, `checkDecor`) | interiors against walls only; a set built any other way gets none of it | | placement by relation | scene.feature (``; surfaces by name and a contact model per asset are "next") | still next | | a shader over a whole scene | shaders.feature SH4 (``) | the skill offers `` first (3d.md); nothing says a project should have its own | | every drawn thing's layer key and mask | review.feature R2, systems/layers (page built, 3D next) | made for selecting in the player; not used to mask one layer by another | | text behind a subject | standing-goal.feature Track G: "depth-based text layering (G5, measured; not rendered yet)" | not rendered | | measures per frame, per cut, over time | standing-goal.feature Track G's catalogue (previz columns) | for footage edits; reported, not enforced; not run on a 3D or React piece | | controllers | core/brief/src/controller.rs, apps/workspace/src/controllers.rs | settings only (choice, list, agents, workflow); no rule, no check | | components registered and linted | projects.feature PJ8 (`raea project scan`) | a component is "a .tsx a composition imports"; it carries no meaning | | the order of work | skills/skills/raea/craft/ROUTER.md | storyboard and camera map before anything is blocked; no component or blocking step | | the next step | apps/workspace/src/next.rs | says "render ...: stills to look at first" | | skill evals | skills.feature SK7 | no task takes notes over two rounds | The rules this plan sets: 1. One world. A project is read into one world of entities and components in raea/ecs's form, the same under bun and in the engine: its layers, text, parts, shots, cuts, cues; its notes; its rules; and every finding. A check is a system over that world. A rule is a resource in it. A command's result is what it added to it. Nothing in the format is 3D's or Bevy's: a caption, a cut and a cue are entities a check asks about as it does a mesh. 2. One finding. Every result raea gives has one shape, is kept (in the render's manifest and the project's record), and can be asked for again. No command only prints. 3. A note is an ask to be designed. It is first restated (everything it holds, its medium, what it doesn't ask for) and given a check that fails now. Nothing changes before that. 4. A check is code where the ask can be measured, and a named clip the person signs where it can't; it says which. A row with a still is neither. 5. Rounds hold. Every earlier round's checks run in every later round; a regression names the note it breaks. 6. A rule climbs: a note's check, kept for the project, becomes a project rule (a line in its taste.ts); kept across projects, the person's taste. It is the same check at each level, moved, never rewritten. 7. The order of work is components, blocking, look, cameras, sound, each reviewed before the next. A later stage is refused on a failing earlier one. 8. Every prop is a component whose typed props are its rig, and which says what it is and where it belongs. Nothing is placed by code that can't read that. Modelling is a stage, with a floor, and comes first. 9. A project's look is its own, kept in the project. raea's sample looks are examples to read. 10. The medium of an element is the person's word for it. A piece is a composite of 2D and 3D layers. 11. What moves is reviewed moving; what sounds is measured; what was not seen or heard is said. 12. A finding is fixed or carried with its reason. An agent never filters raea's findings out of a run. 13. A measure an agent can satisfy cheaply is found first: every kind of check ships with cheats that must fail. 14. Each of these lands in the raea skill through raea-skills, and an eval shows an agent with only the skill follows it. Background: Given the raea skill is raea-skills' (the skills/ submodule); a change to it is a raea-skills PR and a pin bump And a project is a folder in raea's format (projects.feature), its rules in its own and its workspace's taste.ts And raea/ecs is the format: `spawn(components)`, `find({ with, without, where })`, relations as components, resources by name, a system `(world, frame) => void`, `world.at(frame)` the same whenever it's asked for # ===================================================================================================================== Rule: Part 0. Decisions @done Scenario: DR0. The decisions this plan needs (decided 11-10; Shane can veto any line later) # Status 11-10: decided. Shane set the goal to build this file with "DR0 first (write my recommended decisions # into the file as decided; I can veto later)". Each line below is now what the later scenarios build on; a # veto changes the line here and the scenarios that read it, in one commit. Then the world is raea/ecs's (sdk/app/src/ecs.ts), grown, not a second store: the reading of a project into it is Rust (it reuses scene_frames and the page's layout), exposed to TS checks through the same Store calls And a finding's shape is `Finding { check, level: "error" | "warn" | "note", about: Entity[], frames: [a, b] | null, says, measure: { name, value, unit, limit } | null, fix: string | null, by: string }`, and the two ranks in use today map onto it (apps/check's P0 and P1 are errors, P2 a warn, P3 a note; lint's levels as they are) And a project's notes and their checks live in the project, in git: notes//.ts, one file a note, `export default note({ words, from, pin, asks: [...] })` with each ask's check beside its words; no Markdown And a check is a TS function, typed from the world's components, run by `raea check` with no flag for where it came from; raea's own checks stay in Rust and are registered under the same names And a controller gains one field type, `rule`: `{ text, check, level }`, the check a name (one of raea's) with its values or a path to a project check; a project rule is a controller with rule fields # Fixed in the code (DR4): the field's words are its `label`, as every controller field's are, and its values are # a field of their own: `{ label, type: "rule", check, values?, level? }`. # 11-20 (projects.feature PJ9): controllers are gone; a rule is a taste line `{ text, check, values?, level? }`, # its check one of the six forms, a name or a path, in the person's, the workspace's or the project's taste.ts. And the taste file's six forms become six of raea's named checks (same names, same values), so `{ form: "text-above", value: 62 }` still reads and no taste file changes And the stages are recorded in .raea/project (`[stage] components = passed ` ...), set by the stage's review, read by `raea goal next` and by the refusals And what the stock paint look gained on 11-10 (light as a gradient; worlds cut per pixel with styles; the camera columns it needs each frame) is taken out of systems/look into the worked example of a project look (DR24), not landed as part of the stock look And every scenario below gets its plan table (crate, file, lines, job) when it is claimed; the tables given here are for Parts 1 and 2, which everything else stands on # ===================================================================================================================== Rule: Part 1. One world: a project read into raea/ecs, for every kind of piece (finding 8) @needs:DR0 @done Scenario: DR1. A composition's frame as a world, with no render # Status 11-10: built. `raea world` reads any composition's frames into raea-core-facts worlds, each entity's # Source from the code stamps. Real reads (release binary, M5 Pro): content/rome/film.tsx frame 900 is the 3D # layer (camera moving, parts measured, the caesar-bg model "not measured": raea can't read its triangles), four # cues with their sources, a picture at 7% and seven runs of laid-out type ("49 BC" 34 px, "The Dictator" 72 px, # the caption at the bottom); content/reel/edit.tsx at 314-318 shows the cut from shot noir-lamp (221-316) to the # next at 316; examples/games/breakout.tsx frame 60 has its 34 parts and "SCORE 10" at 60 px. Layout costs 0.33 s # on Rome's frame (0.39 s against 0.06 s with --no-layout) and 80 ms a frame on the reel (1.02 s against 0.21 s # for ten frames). Proved by 8 tests in # raea-runtime-world (a page read as shots, footage, cues and text in document order, a