Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

ST8a: the skill carries craft/story (raea-skills #115, pin to 4a77a0b): the launch page, typed questions and the launch lens in score, meant in check, any length and story lines in write. The story models are paused (Shane, 11-22); docs say where things stand.

shinyobjectza57228814890
diff --git a/docs/story.feature b/docs/story.feature
index 30f49373..a91e4aa8 100644
--- a/docs/story.feature
+++ b/docs/story.feature
@@ -169,6 +169,7 @@ Feature: Story: a story as ECS data, read through many frameworks, generated wit
| sdk | sdk/story/src/mutate.ts | 300 | every way a story told one way can be broken, labelled |
| sdk | sdk/story/test/mutate.test.ts | 120 | every mutant with an expected check is found by it |
+ # Paused 11-22 (Shane: "screw the model, just finish and wrap the sdk"); models/ keeps the code and ~/.vd/story the data.
Scenario: ST6b. The extractor, the generator and the critic
Given small bases (about 2B parameters or less), trained with MLX on this Mac and exported to ONNX for ort
Then the extractor turns a transcript into story data, the generator proposes what a brief wants as data that
diff --git a/docs/story.md b/docs/story.md
index 7e143630..c7c191e9 100644
--- a/docs/story.md
+++ b/docs/story.md
@@ -8,7 +8,14 @@ beats in the code or across themes, ideas, etc. ill look to you to see how SOTA
This is the one plan for `raea/story`: what it is, how it sits on `script.ts`, the frameworks it reads stories
through, how a story is generated without being fixed, how it's tested, what's state of the art and what's new
-here, and the build order, with a confidence for each step. No code exists yet.
+here, and the build order, with a confidence for each step.
+
+**Where it stands (11-22):** `sdk/story` is built: the ECS, the systems, 12 lenses (the launch lens's priors measured),
+seeded sampling, the mutations, story as data and as story lines, the state at a beat and windows (any length),
+typed questions about a beat (story as decisions), and checks in `raea check`. The skill carries it as
+`craft/story/`. Shane paused the small story models the same day ("screw the model, just finish and wrap the sdk"):
+the code that built their data and trained them stays in `sdk/story/models/` with its corpus in `~/.vd/story`, not
+part of the package, for whenever they're picked up again.
## In one paragraph
diff --git a/sdk/guides/craft/story/check.md b/sdk/guides/craft/story/check.md
index 37b0a0b8..95da76b9 100644
--- a/sdk/guides/craft/story/check.md
+++ b/sdk/guides/craft/story/check.md
@@ -36,5 +36,9 @@ beat's line isn't spoken inside its shot.
| `rhythm` | note | four beats in a row turn the same way | break the run with a reversal |
| `dead-end` | note | an event causes nothing | let something follow from it, or cut it |
+A beat can say it means a finding: `meant: ["mckee:complications"]` (or one string, `meant: "rhythm"`) takes those
+findings about that beat out of what checks and lenses report, for a breather the journey wants or a run of losses
+that's the point. `surprise: "meant"` is the same for a surprise. Write it where you decided, not to quiet a check.
+
A lens adds its own (`mckee:crisis`, `bernays:invented`, ...), each explained on its page. A lens error is as real as an
exact one when the brief names that lens.
diff --git a/sdk/guides/craft/story/launch.md b/sdk/guides/craft/story/launch.md
new file mode 100644
index 00000000..5d21f8f3
--- /dev/null
+++ b/sdk/guides/craft/story/launch.md
@@ -0,0 +1,36 @@
+# Launch: the shape of a product's launch film
+
+A launch film is the post that says a product exists: the trouble in the viewer's own words, the product's name, the
+product doing its job, a named proof (a number, a benchmark, a customer, a raise), and how to start. That's the form
+most launch films share, from consumer hardware to developer tools.
+
+In our words, and from our own data: raea measured 156 pairs of launch films on X, each pair the best and the worst
+launch of one account, so the audience is the same (11-22, the whatships catalog of 3,328 launch videos).
+
+- The one thing that separated the better film was **length**: it was the longer film in 104 of 155 pairs (67%,
+ p < 0.001); the medians were 50.5 s against 33.1 s. Films of 40 to 60 s were the better of their pair 55% of the
+ time; 20 to 40 s, 35%; over 90 s, 73%.
+- A voice speaking leaned the same way (40% of the better films, 29% of the worse) but didn't survive correcting for
+ the 23 measures tested. Nothing about the cut (cuts a second, motion, sync to music, colour, the first cut) separated
+ them at all.
+- A blind read of 30 pairs picked the better film 23 times, but always picking the longer one gets 25. What the reader
+ went on was the size of the news: a flagship release over a variant, a raise, a famous face.
+
+So length is a marker of big news, not a lever. Don't pad a film to reach 50 seconds, and don't cut one that needs a
+minute. Make the news big and the film as long as it needs.
+
+## The lens (`launch`)
+
+Stages: `trouble` (a beat that turns something down for the viewer, before the product), `name` (the first beat with
+the brand's agent), `works` (the product turning things up), `proof` (an event that makes a claim's proof true),
+`start` (the last beat).
+
+It finds: no trouble (warn), trouble later than the first third (note), no agent with the brand role (note), a product
+that never does its job on screen (warn), no named proof (note), and the measured priors as notes: a telling shorter
+than three in four of the better launches (when every beat has `seconds`), and nobody speaking. `LAUNCH_PRIORS` holds
+the numbers.
+
+Reach for it with `storynomics` (the customer is the hero) or `pas` on a short one. Hold a top real launch's shape
+against yours with `raea fingerprint` too, never its beats.
+
+Source: raea's own measure of the whatships.com launch catalog, docs/story.md ("What it found").
diff --git a/sdk/guides/craft/story/router.md b/sdk/guides/craft/story/router.md
index 6dd933c8..2a917318 100644
--- a/sdk/guides/craft/story/router.md
+++ b/sdk/guides/craft/story/router.md
@@ -9,7 +9,8 @@ causes, the tension) and checks it before anything is drawn. Read this page firs
| writing a story for a film, an ad, a game or dialogue | [write](write.md) (`raea guide story/write`) |
| finding out why it doesn't hold, or making `raea check` hold it | [check](check.md) |
| making several versions, or one pattern across many premises | [sample](sample.md) |
-| judging a story: lenses, the critic, the launch shape | [score](score.md) |
+| judging a story: lenses, typed questions, the launch shape | [score](score.md) |
+| telling a long story (a feature, a game): windows, scenes, story lines | [write](write.md), "Any length" |
| shaping it after a framework | the framework's page, below |
## The frameworks, as lenses
@@ -30,6 +31,7 @@ says where it breaks and proposes what's missing. Pick by what you're making, no
| `kishotenketsu` | a piece with no villain: a turn of perspective, not a fight | [kishotenketsu](kishotenketsu.md) |
| `propp` | a folk tale, a quest, a game's mission | [propp](propp.md) |
| `bernays` | any piece that makes a claim: proof shown, never invented | [bernays](bernays.md) |
+| `launch` | a product's launch film: trouble, name, it works, proof, start; priors measured on 156 pairs | [launch](launch.md) |
Two or three lenses at most. A story that passes every framework is usually a story no one remembers: the lenses find
holes, they don't write the film.
diff --git a/sdk/guides/craft/story/score.md b/sdk/guides/craft/story/score.md
index a490564b..91ce7d17 100644
--- a/sdk/guides/craft/story/score.md
+++ b/sdk/guides/craft/story/score.md
@@ -8,21 +8,24 @@ A story that passes its checks holds together. Whether it's good is a different
findings and its proposals: what's missing, as a beat to add (`{ stage, after, onScreen, feel, why }`). A proposal is
a starting point for a beat, not a beat. Read [router](router.md) to pick the lens.
-## 2. Ask the critic
+## 2. Ask typed questions
-The critic is a small model (about 0.6B parameters, on this machine) trained on exact labels: valid stories, and the
-same stories with a beat cut, two beats swapped or a stranger's beat spliced in, each labelled by `checkStory`. It
-reads a script as prose, numbered by beat, and answers `{ breaks: [{ beat, check, level }] }` under a schema, so its
-answer is always data. Use it where there's no story data yet: a script someone wrote, a transcript, a cut you were
-handed. Its held-out numbers against an untrained model and a frontier judge are in docs/story.md.
+`questionsAt(story, telling, k)` (or `asker(story, telling)` for many beats) gives one beat's window as a state and
+twenty typed questions about that beat, in the request format of decision models like Clef and Jev: `noul` (yes or
+no), `choice` (one of named options) and `score` (an ordered scale). Each comes with its exact answer from the checks,
+the systems and the lenses: does this beat break cause, which event does it show, which way does it turn, does it
+continue the last shot, does the audience learn something, how tense is it, which McKee, Pixar and Campbell stage it is.
-The generator is its partner: given a story with a beat missing, it writes the beat under that story's own schema
-(its references can only be the story's keys), and the beat it writes is checked like any other.
+The window is story lines (`as: "lines"`) or a plain script (`as: "script"`). Hand the script form to raea cloud's
+`judge` (Clef) to read a script that has no story data yet, and compare its answers with the exact ones on a story
+that has. Measured 11-22 on 300 windows: Clef named the event a beat shows 86% of the time and its turn 74%, but
+couldn't see a break in the story (AUC 0.54 to 0.69): the checks are the judge of structure, Clef of what's on screen.
## 3. Hold it to a real shape
-A fingerprint of real films that did well (raea fingerprint) says what their shape was: how fast the problem
-arrives, when the product is first seen, how long the proof holds. A story's telling can be scored against it before
+The `launch` lens holds a story to what 156 real launch pairs measured ([launch](launch.md)), and a fingerprint of
+real films that did well (raea fingerprint) says what their shape was: how fast the problem arrives, when the product
+is first seen, how long the proof holds. A story's telling can be scored against it before
anything is drawn. Shape is evidence, not a rule: hold it loosely, and never copy a film's beats.
## What none of these can tell you
diff --git a/sdk/guides/craft/story/write.md b/sdk/guides/craft/story/write.md
index a17a2728..94466f69 100644
--- a/sdk/guides/craft/story/write.md
+++ b/sdk/guides/craft/story/write.md
@@ -55,3 +55,32 @@ The brief imports the story explicitly: `brief({ ..., story })` (raea keeps it a
- A value is a pair of poles ("buried", "free"), not a topic. The `idea.value` is the one the story is about.
- Facts are keys, not sentences: `believes`, `needs`, `sets`, `proof`, `asks` all name declared facts.
- A claim (`claim`) names its `proof`, facts an event makes true. Never write proof nothing shows.
+
+## Any length
+
+A story has no length cap: the checks and lenses run over 55 beats or 2,000 alike. For a feature or a game, give each
+beat a `scene` (consecutive beats with one scene are its shots) and write top-down: the world, then the scenes, then
+the shots a scene at a time, checking each level before the next.
+
+- `stateAt(story, telling, k)` is everything the story holds just before beat k: what the audience knows, open
+ questions, suspense, each value's level, tension, setups not yet paid, wants and needs not yet settled, events not
+ yet shown. It's about the same size at minute 3 or minute 100, so a step that writes or judges beat k (a person, an
+ agent, a model) reads that and the beats around it, never the whole telling.
+- `windowAt(story, telling, k)` is that state plus the events still usable and three beats before and two after, as
+ story lines: what to hand an agent writing the beat between.
+
+## Story lines
+
+`toLines(story)` writes a story as one keyword-led line per value, fact, agent, event and beat, the way Fountain
+writes a screenplay, and `fromLines(text)` reads it back exactly (a broken line says which):
+
+```
+VALUE nerve: afraid / bold
+EVENT pitch: june with tent -- pulls the tent up in one go | because dusk | sets pitched | turns nerve+3 | ends june:need
+BEAT pull: shows pitch | reveals pitched | pays how | feel delight
+ SAYS june (quietly): Okay. // she's talking herself into it
+```
+
+It's for skimming a long story whole, diffing two versions, and anything that writes a story a line at a time. The
+TypeScript stays the story; `toData` / `fromData` are the same story as JSON, with `storySchema()` and a story's own
+`beatSchema(story)` for anything that must answer in that shape.
diff --git a/skills b/skills
index 6c7cbf0f..4a77a0b0 160000
--- a/skills
+++ b/skills
@@ -1 +1 @@
-Subproject commit 6c7cbf0fcc6fc06a8f427928247bad1f537cf452
+Subproject commit 4a77a0b00ee02e713fc7ce8b80769ba6600e2f8f