gooseworks 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -11
- package/dist/commands/doctor.d.ts +29 -5
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +107 -63
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/fetch.d.ts +1 -0
- package/dist/commands/fetch.d.ts.map +1 -1
- package/dist/commands/fetch.js +64 -29
- package/dist/commands/fetch.js.map +1 -1
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +37 -4
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +8 -3
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/skills.d.ts +34 -0
- package/dist/commands/skills.d.ts.map +1 -0
- package/dist/commands/skills.js +109 -0
- package/dist/commands/skills.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +17 -6
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/video-local.d.ts +9 -0
- package/dist/commands/video-local.d.ts.map +1 -0
- package/dist/commands/video-local.js +83 -0
- package/dist/commands/video-local.js.map +1 -0
- package/dist/commands/video-save.d.ts +3 -0
- package/dist/commands/video-save.d.ts.map +1 -0
- package/dist/commands/video-save.js +83 -0
- package/dist/commands/video-save.js.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/video-local-captions.d.ts +83 -0
- package/dist/lib/video-local-captions.d.ts.map +1 -0
- package/dist/lib/video-local-captions.js +261 -0
- package/dist/lib/video-local-captions.js.map +1 -0
- package/dist/lib/video-local-runtime.d.ts +8 -0
- package/dist/lib/video-local-runtime.d.ts.map +1 -0
- package/dist/lib/video-local-runtime.js +201 -0
- package/dist/lib/video-local-runtime.js.map +1 -0
- package/dist/lib/video-save-mcp.d.ts +9 -0
- package/dist/lib/video-save-mcp.d.ts.map +1 -0
- package/dist/lib/video-save-mcp.js +162 -0
- package/dist/lib/video-save-mcp.js.map +1 -0
- package/dist/lib/video-save.d.ts +77 -0
- package/dist/lib/video-save.d.ts.map +1 -0
- package/dist/lib/video-save.js +440 -0
- package/dist/lib/video-save.js.map +1 -0
- package/dist/skills/custom-video-skill.d.ts +3 -0
- package/dist/skills/custom-video-skill.d.ts.map +1 -0
- package/dist/skills/custom-video-skill.js +6 -0
- package/dist/skills/custom-video-skill.js.map +1 -0
- package/dist/skills/installer.d.ts +12 -6
- package/dist/skills/installer.d.ts.map +1 -1
- package/dist/skills/installer.js +41 -15
- package/dist/skills/installer.js.map +1 -1
- package/dist/skills/master-skill.d.ts +22 -19
- package/dist/skills/master-skill.d.ts.map +1 -1
- package/dist/skills/master-skill.js +1472 -551
- package/dist/skills/master-skill.js.map +1 -1
- package/dist/skills/package-freshness.d.ts +16 -0
- package/dist/skills/package-freshness.d.ts.map +1 -0
- package/dist/skills/package-freshness.js +36 -0
- package/dist/skills/package-freshness.js.map +1 -0
- package/dist/skills/releases.d.ts +12 -0
- package/dist/skills/releases.d.ts.map +1 -0
- package/dist/skills/releases.js +152 -0
- package/dist/skills/releases.js.map +1 -0
- package/dist/skills/routes.d.ts.map +1 -1
- package/dist/skills/routes.js +7 -1
- package/dist/skills/routes.js.map +1 -1
- package/dist/utils/browser-preflight.d.ts +29 -0
- package/dist/utils/browser-preflight.d.ts.map +1 -0
- package/dist/utils/browser-preflight.js +338 -0
- package/dist/utils/browser-preflight.js.map +1 -0
- package/package.json +2 -2
- package/skills/goose-ads/SKILL.md +124 -16
- package/skills/goose-product-photos/SKILL.md +55 -3
- package/skills/goose-video/SKILL.md +322 -253
- package/skills/goose-video-local/SKILL.md +1199 -234
- package/skills/gooseworks/SKILL.md +199 -13
- package/skills/make-custom-video/SKILL.md +490 -0
- package/skills/manifest.json +12 -0
- package/skills/routes.json +8 -1
|
@@ -2,307 +2,376 @@
|
|
|
2
2
|
name: goose-video
|
|
3
3
|
slug: goose-video
|
|
4
4
|
description: >
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
real spend. It renders on the GooseWorks server, returns the video in the chat, and works in
|
|
10
|
-
hosted connectors too. For an existing app video project or batch, it hands off to
|
|
11
|
-
goose-video-local.
|
|
5
|
+
Start a video ad in the same chat. Resolve the brand and suggest supported formats with a
|
|
6
|
+
picker or the returned text choices. An agent with a verified shell makes the video with
|
|
7
|
+
goose-video-local; a chat host hands the same project to the GooseWorks coworker. Review
|
|
8
|
+
one complete template plan and total credits before production. Custom videos retain two authenticated review gates in this chat.
|
|
12
9
|
category: ads
|
|
13
|
-
version:
|
|
10
|
+
version: 3.0.0
|
|
14
11
|
author: GooseWorks
|
|
15
|
-
tags: [gooseworks, ads, video,
|
|
12
|
+
tags: [gooseworks, ads, video, local-render, coworker, chat]
|
|
16
13
|
---
|
|
17
14
|
|
|
18
|
-
# GooseWorks Video Ads —
|
|
15
|
+
# GooseWorks Video Ads — choose, review, make
|
|
16
|
+
|
|
17
|
+
## How to talk to the customer (applies to every message you send them)
|
|
18
|
+
|
|
19
|
+
The customer is a marketer or founder, not an engineer. Everything in this skill about tools,
|
|
20
|
+
fields, files, polling, models and pipeline steps is for YOU. Never pass it on to them.
|
|
21
|
+
|
|
22
|
+
- **Say what they get and what they need to decide, never how it's made.**
|
|
23
|
+
Bad: "Checking the media-proxy helpers for voiceover timestamps and lipsync." / "Generated with
|
|
24
|
+
gpt-image-2 at high quality, mouth closed, passes QC."
|
|
25
|
+
Good: "Recording the voices now." / "Here are your two hosts."
|
|
26
|
+
- **Never mention** tool, file or field names, ids, JSON, commands, scripts, installed software,
|
|
27
|
+
uploads, model or vendor names, timings in seconds or frames, retries, polling, internal statuses
|
|
28
|
+
or your own quality checks. Fix what you can quietly. If they ask how something works, explain it
|
|
29
|
+
simply.
|
|
30
|
+
- **Update them only at milestones they care about**: choices confirmed, script and voices done,
|
|
31
|
+
visuals done, ready to review, finished. One short line each, then stay quiet until the next
|
|
32
|
+
milestone. No update for setup, downloads, uploads or saving.
|
|
33
|
+
- **Money is in credits, with a number**: "the full video uses about N credits". Never "the cheap
|
|
34
|
+
pieces" or "the expensive render".
|
|
35
|
+
- **Problems:** say what it means for them and what they can do, in one or two sentences. No error
|
|
36
|
+
codes or stack traces. Only raise a problem that changes something for them.
|
|
37
|
+
- **Use their words**: script, voice, hook, scene, host, ending, logo, the product shot.
|
|
38
|
+
- **No filler**: no "Great question!", "Certainly!", "I hope this helps!", no restating what they
|
|
39
|
+
just said at length.
|
|
40
|
+
|
|
41
|
+
Example. Instead of a dozen lines about render tools, scripts, uploads and portraits, send:
|
|
42
|
+
"Got it: warm tone, home podcast studio, Brielle as the skeptic and Mark as the believer." then
|
|
43
|
+
"Script and voices are done (about 34 seconds)." then "Ready for you to review: the script, voices,
|
|
44
|
+
both hosts and the ending. You can also review your recipe ingredients in the app: <link>. Say go
|
|
45
|
+
here and I'll make the full video (about N credits)."
|
|
46
|
+
|
|
47
|
+
## Use current instructions for new work
|
|
48
|
+
|
|
49
|
+
Before a new task in a terminal host, run `gooseworks skills status` once. It compares the
|
|
50
|
+
installed entry files, running CLI and published npm release. An older CLI needs a package
|
|
51
|
+
upgrade before `gooseworks update`; update alone only uses that CLI's bundled instructions.
|
|
52
|
+
Preserve local edits or unknown install provenance. Review/back up before explicitly replacing
|
|
53
|
+
modified files; never quietly reinstall over them. If the release check is unavailable, report
|
|
54
|
+
that freshness is unknown rather than claiming the local copy is latest.
|
|
55
|
+
|
|
56
|
+
For a new recipe run, fetch its package from the connected catalog. Retain the returned
|
|
57
|
+
`version` / `contentHash` and every dependency's hash with the saved package. When reusing a
|
|
58
|
+
saved fetch JSON, `gooseworks fetch <slug> --saved-package <file>` returns the current package
|
|
59
|
+
and a hash comparison without changing that file. With MCP, if the advertised `catalog_fetch`
|
|
60
|
+
schema accepts them, send `saved_content_hash` and `saved_dependency_hashes`; otherwise fetch
|
|
61
|
+
normally and compare the returned hashes yourself. Missing hashes mean unknown, not current.
|
|
62
|
+
The server cannot inspect a client's saved files; hash metadata does not certify later edits.
|
|
63
|
+
Fetch current packages into a new run directory and report stale saved instructions. Preserve
|
|
64
|
+
an existing approved run's recorded package; changing that harness requires a reviewed change
|
|
65
|
+
and approval before spending. Hosted installed snapshots use the existing Skills Update action.
|
|
66
|
+
Skill content and a host's cached MCP tool schemas are separate: refreshing one does not refresh
|
|
67
|
+
the other. Check the actual advertised tools before using new fields.
|
|
19
68
|
|
|
20
69
|
## Purpose
|
|
21
70
|
|
|
22
|
-
|
|
71
|
+
Resolve the brand, show supported formats and create one saved project. An agent with a verified
|
|
72
|
+
shell follows **`goose-video-local`**. A chat host delegates that same project to the GooseWorks
|
|
73
|
+
coworker, which renders in its sandbox. This is agent execution, not a recipe server-order API.
|
|
23
74
|
|
|
24
|
-
**
|
|
75
|
+
**Cards and execution are separate capabilities.** A terminal may render without drawing a
|
|
76
|
+
picker; a chat host may draw a picker while the coworker renders. Follow `card.display_hint`
|
|
77
|
+
and `available_here`, never a guess from the host's name. Template-remix review stays in this
|
|
78
|
+
chat. Custom videos use separate authenticated script and ingredient approvals in this same chat.
|
|
79
|
+
Studio is an optional review surface.
|
|
25
80
|
|
|
26
|
-
|
|
81
|
+
## Custom videos: route before formats
|
|
27
82
|
|
|
28
|
-
|
|
83
|
+
For an original brief without a reference template, an Instagram reel/post URL or a direct video URL to study, fetch `catalog_fetch { type: "skill", slug: "make-custom-video" }` and follow it in this same session. It creates format:"custom", custom_mode:"generate" with the brief and optional reference_url. Growth executes in its managed sandbox; connected agents use their shell. Script and actual ingredients are reviewed and separately approved in the same chat before paid production; Studio is optional. Do not force a template choice or import the reference as a finished video.
|
|
29
84
|
|
|
85
|
+
## Route first: is this a new video?
|
|
30
86
|
|
|
31
|
-
|
|
87
|
+
Hand off to **`goose-video-local`** now, and stop following this skill, for:
|
|
32
88
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- a **video batch** id ("for video batch <id>");
|
|
89
|
+
- an existing **project** id or a **video batch** id;
|
|
36
90
|
- the app's copy-for-Claude command (it names `goose-video-local`);
|
|
37
91
|
- "remix this video ad template" for a specific app template.
|
|
38
92
|
|
|
39
|
-
|
|
93
|
+
Use `goose-video-local` if it is installed; otherwise load it with
|
|
94
|
+
`catalog_fetch { type: "skill", slug: "goose-video-local" }` on the GooseWorks MCP (older clients:
|
|
95
|
+
`fetch_skill("goose-video-local")`). It reads the project first and says what to do with it.
|
|
40
96
|
|
|
41
|
-
|
|
97
|
+
When they ask **what** to make ("give me video ad ideas", "what angles should I use?", "what's
|
|
98
|
+
working for my competitors?"), fetch **`ad-angle-miner`** (`catalog_fetch { type: "skill", slug: "ad-angle-miner" }`,
|
|
99
|
+
using its advertised tools) and run it with the **video** output. It returns ranked
|
|
100
|
+
video ideas mapped to formats and hands the picked ones to `goose-video-local`.
|
|
42
101
|
|
|
43
102
|
Everything else, including "make me a video ad for <brand>", starts at step 1 below.
|
|
44
103
|
|
|
45
|
-
##
|
|
46
|
-
|
|
47
|
-
- A brand, usually named in the opening sentence. Resolved to `brand_id`; with one brand in the org it needs no input.
|
|
48
|
-
- What the ad is for, in the customer's words (optional; asked once, never forced). **It is sent with the order** as `brief.prompt` and reaches the script. It is not only for sorting the table.
|
|
49
|
-
- Anything else they volunteer about the ad: who it's for, names or terms it must say, things to stay away from. These are never asked for; they're kept when the customer offers them.
|
|
50
|
-
- The picked format's own answers (voice, music, angle…). The catalogue says which apply; some formats ask nothing.
|
|
51
|
-
|
|
52
|
-
Never an input: a reference video (these formats don't use one), or a promo code (it comes from the brand).
|
|
53
|
-
|
|
54
|
-
## Composed Atoms
|
|
55
|
-
|
|
56
|
-
MCP tools; the work happens in the app.
|
|
57
|
-
|
|
58
|
-
- `brand_list`: brand NAME → `brand_id`. Pass `query` when they named one.
|
|
59
|
-
- `brand_create { name, website_url }`: only when the customer asks to add a brand that isn't there. Free.
|
|
60
|
-
- `video_catalog_list { kind: "formats", brand_id }`: what can be ordered. Each format has `card.description`, `card.best_for`, `card.needs`, `ask[]`, `brand_requirements[]`, `default_credits` and `examples[]` (demo videos: a curated sample first, then real runs). The response also carries `brief_fields`: the intent fields every format's `brief` accepts on top of its `ask[]` (`prompt`, `audience`, `must_mention`, `avoid`, `notes`).
|
|
61
|
-
- `video_catalog_list { kind: "voices" }`: voices with playable `preview_url`s, for formats that speak.
|
|
62
|
-
- `video_project_upsert`: the free draft. Returns `project_id`, `quote`, `ready`, `missing` and `questions` (0–2 things worth asking before the script is written; usually none).
|
|
63
|
-
- `video_project_upsert { project_id, patch: { brief } }`: changes the brief, checked the same way as when it was created. A key replaces its value, `null` removes it. Free. Once ordered, only the brief fields change (never the format's own answers), and they reach the script on the next `redraft`. A brief change never moves the quote.
|
|
64
|
-
- `video_render_run { dry_run: true }`: re-reads the price. Free.
|
|
65
|
-
- `video_render_run { kind: "partial" }`: **writes the script and stops.** Reserves the quote and shows the script before the expensive work. Works for every orderable format, chat or voiceover.
|
|
66
|
-
- `video_render_run { kind: "full" }`: finishes an approved preview.
|
|
67
|
-
- `video_render_run { kind: "edit", edit: { script } }`: puts the customer's OWN words into the draft, verbatim, through the format's own guards. Free before approval, and the **only** route that keeps their copy. Offered where the format's `edits.script` is non-empty; refused as `script_not_editable` elsewhere.
|
|
68
|
-
- `video_render_run { kind: "redraft", reason }`: another draft, before approval, written from why they turned this one down, or with no `reason` after a brief change (the change is the reason). It **re-runs the writer** either way, so every word (and the picture on a character format) is replaced — it does not keep copy the customer supplied. Same order, **no new hold**, but **not free**: it adds a few credits of model spend inside the hold already placed. Up to 3, and refused if it would pass the hold. `dry_run: true` says what it would add.
|
|
69
|
-
- `video_project_read { brand_id, project_id }`: status, the drafted script while previewing, and the finished video. Returns an `order` object for recipe projects.
|
|
70
|
-
- `job_cancel { job_id }`: declines a preview. `job_id` is the order id (the project id also works). Releases the whole hold.
|
|
71
|
-
|
|
72
|
-
## Workflow
|
|
73
|
-
|
|
74
|
-
The opening is fixed: **brand → what it's for → suggested formats → first question.** Do each step without waiting for the customer to ask for it.
|
|
75
|
-
|
|
76
|
-
### 1. Resolve the brand, quietly when you can
|
|
77
|
-
|
|
78
|
-
Call `brand_list`, with `query` when they named a brand. `query` is a case-insensitive substring match, so "Kolkata Chai" also finds "Kolkata Chai Co". If it finds nothing, call `brand_list` once more with no query before deciding.
|
|
79
|
-
|
|
80
|
-
- **The org has exactly one brand** → use it. Say which in one line ("Making this for **Bioma**.") and move on. Don't ask.
|
|
81
|
-
- **The name they said matches exactly one brand** → use it. Say which.
|
|
82
|
-
- **Several match, or they named none and the org has several** → show a table (name, website) and ask. The wrong brand is a wasted order.
|
|
83
|
-
- **Nothing matches** → say so, list the brands they do have in a table, and offer to add the new one here: "Or send me its website and I'll add it." With a website, call `brand_create { name, website_url }` (free). It starts brand research, which fills in the logo and colours in a few minutes. Say so, then carry on from step 2 while it runs. Before step 5, check `brand_get_context` shows `research_status: complete`; until then drafts are blocked. Adding a brand is not a trip to the app. Never create a brand they didn't ask for, and never guess the website.
|
|
84
|
-
|
|
85
|
-
If the GooseWorks MCP's own instructions have you check onboarding first and it turns out unfinished, finish it, then come back here with the customer's original sentence.
|
|
86
|
-
|
|
87
|
-
### 2. Ask what the ad is for, in one open question
|
|
88
|
-
|
|
89
|
-
Unless the opening sentence already said it, ask **one** plain question and wait:
|
|
90
|
-
|
|
91
|
-
> What's this ad for? For example: launching something, a sale, explaining how it works, or showing real results. Anything you tell me helps me pick the right format.
|
|
92
|
-
|
|
93
|
-
This is a free-text question: **no menu, no table, no list of formats yet.** Take whatever they say, even "not sure" or "just something good". Never ask it twice, and never block on it: a vague answer is an answer.
|
|
94
|
-
|
|
95
|
-
**Keep the answer. It goes into the order in step 5**, not just into the table's order. Write it down as they said it; that becomes `brief.prompt`. If their words (here or in the opening) also say who the ad is for, a name or term the ad must say, or something to stay away from, note those too:
|
|
96
|
-
|
|
97
|
-
| They said | Goes in | Example |
|
|
98
|
-
|---|---|---|
|
|
99
|
-
| What the ad is for (the whole answer) | `prompt` | "creative is the bottleneck for small teams, make it a problem-solver" |
|
|
100
|
-
| Who it's for | `audience` | "heads of growth at seed-stage startups" |
|
|
101
|
-
| A name or term it must say | `must_mention` (a list) | `["Claude", "ChatGPT"]` |
|
|
102
|
-
| Something to keep out | `avoid` (a list) | `["no villain", "don't talk down to marketers"]` |
|
|
103
|
-
|
|
104
|
-
Never ask for the last three and never fill them with a guess. A `must_mention` term the customer didn't say is a claim we made for them.
|
|
105
|
-
|
|
106
|
-
Skip the question when the opening already names a goal ("…a video ad for our summer sale") or a format ("…an iMessage video ad"). With a format named, go to the table with that format first and marked, then step 4.
|
|
107
|
-
|
|
108
|
-
### 3. Suggest formats in a table, best fit first
|
|
109
|
-
|
|
110
|
-
`video_catalog_list { kind: "formats", brand_id }`, then **always a markdown table in your message**.
|
|
111
|
-
|
|
112
|
-
Order the rows by how well each format fits their answer. Judge fit from `card.description`, `card.best_for` **and the format's `ask[]` options** against what they said. An option can make a format fit: a cartoon explainer whose `ask[]` offers `arc: hero-helper` fits "a friendly hero mascot, no villain"; one without that option does not, because its card says the character is the problem and loses. **A format whose card contradicts what they asked for is never Suggested**, however well its keywords match. When nothing fits, say so before the table ("None of our formats does X; the closest is Y, which gives up Z") and still show the table. Mark **exactly one** row **Suggested** with a few words on why ("real results → before/after"); a close second can be **Also good**. One suggestion keeps "the suggested one" unambiguous. With no goal given, put the formats that have demos first.
|
|
113
|
-
|
|
114
|
-
| | Format | What it looks like | Price | Demo |
|
|
115
|
-
|---|---|---|---|---|
|
|
116
|
-
| **Suggested** | iMessage chat reveal | Two friends texting; ends on your product | ~60 credits | [watch](https://…) |
|
|
117
|
-
| **Also good** | Apple Notes reveal | A diary-style note typed out; ends on your product | ~15 credits | [watch](https://…) |
|
|
118
|
-
| | Kinetic type explainer | Bold on-brand text timed to a voiceover | ~80 credits | [watch](https://…) |
|
|
119
|
-
|
|
120
|
-
- **Demo** is `examples[].output_url`. When a format has none, write "no demo yet" in the cell; never leave it blank.
|
|
121
|
-
- **"What it looks like" is `card.description`, quoted.** Copy it word for word; you may cut it at a sentence boundary, never re-word it. A paraphrase once turned "narrates how it gets beaten" into "narrates the fix", which made a villain format look right for a no-villain brief. `card.best_for` often carries a dollar figure; never copy it into the table.
|
|
122
|
-
- **When the pick depends on an option, say which.** "Cartoon explainer (as a friendly helper)" in the Format cell, and pre-fill that answer in step 4.
|
|
123
|
-
- **Price** is `default_credits`, written approximately ("~60 credits"). It is a guide for choosing. The price they agree to is the server's quote in step 5.
|
|
124
|
-
- **Say which formats won't take their words.** A format whose `edits.script` is empty writes its own copy and accepts no hand edit; the only lever is a redraft, which rewrites everything. Put "writes its own words" in that row's "What it looks like" cell. A customer who arrives with a script already written needs to know this **before** they pick, not after they hand it over.
|
|
125
|
-
- **Formats the brand may not be able to run** go last, with `card.needs` in plain words, e.g. "needs real before/after photos". Don't hide them; don't suggest them. Judge logo and product photos from the `brand_list` row. For anything else (before/after photos, say) you can't see, treat it as missing rather than make extra calls. `video_project_upsert` returns `ready`/`missing`, which is the real check.
|
|
126
|
-
|
|
127
|
-
**Print the table in your message, THEN ask which one** ("Want the suggested one, or another?"). Never put the formats only inside a structured question control: it renders plain option labels, not links, so the customer would be picking a format they were never able to watch. That happened on the first real run: the picker appeared, the demos didn't, and the customer had to ask where they were. A question control may follow the table to capture the answer; it never replaces it.
|
|
128
|
-
|
|
129
|
-
### 4. Ask the picked format's questions (only these)
|
|
130
|
-
|
|
131
|
-
Its `ask[]` list is the whole question set. Anything with `source: "recipe"` is the recipe's call, never the customer's. **An empty `ask[]` means no questions**: say so ("This one needs nothing else from you") and go straight to step 5.
|
|
132
|
-
|
|
133
|
-
Ask them all in **one message**, the choice tables first. Put yes/no questions that have a default at the end as a statement they can override ("Music on and a selfie in the thread; say if you want either off"). Every question with an optional answer gets a "leave it to the writer" option.
|
|
104
|
+
## Keep the selected connection for the whole run
|
|
134
105
|
|
|
135
|
-
|
|
106
|
+
Call `account_whoami` on the connection that owns the brand/project before the first write.
|
|
107
|
+
Keep `environment.name` and the public `environment.api_origin` with this run. Respect the
|
|
108
|
+
user's selected production or staging connection. If multiple connections are available and
|
|
109
|
+
none was selected, resolve that once. Missing or unknown identity is uncertainty, not
|
|
110
|
+
permission to switch. Never infer the environment from credits, billing links or Node mode.
|
|
136
111
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
| swap-moment | You quit something worse for this | [watch](…) |
|
|
142
|
-
| feature-as-punchline | The product's own mechanic is the reveal | [watch](…) |
|
|
112
|
+
Reads, project creation, uploads, generation, polling and final updates all use that same
|
|
113
|
+
connection. If a production request fails, resume or report the failure on production;
|
|
114
|
+
never retry it on staging or recreate the project there. Before retrying a timed-out write,
|
|
115
|
+
read back the existing project or paid request on the selected connection.
|
|
143
116
|
|
|
144
|
-
|
|
117
|
+
Local/CLI proxy origin must match `environment.api_origin`. If it differs, use the MCP
|
|
118
|
+
relay on the selected connection (`GW_MEDIA_VIA=mcp`) before paid calls. Do not change
|
|
119
|
+
credentials or API origins to recover a failed write. An explicit user-requested move is
|
|
120
|
+
a separate operation, with the existing project and paid requests reconciled first.
|
|
145
121
|
|
|
146
|
-
|
|
122
|
+
## Check assets for the selected format before spending
|
|
147
123
|
|
|
148
|
-
|
|
124
|
+
For a template, read its structured `asset_readiness` from
|
|
125
|
+
`video_catalog_list { kind: "formats", brand_id }`. `missing` names gaps;
|
|
126
|
+
`needs_review` means suitability is unverified, including older recipes without
|
|
127
|
+
structured requirements. `ready` describes assets only, not script or budget approval.
|
|
128
|
+
For a custom video, derive requirements from its actual approved scenes.
|
|
149
129
|
|
|
150
|
-
|
|
130
|
+
Inspect candidate files for the chosen product and format. A catalog photo can contain
|
|
131
|
+
multiple objects, other products or a person; its existence or approved status does not
|
|
132
|
+
make it a standalone image of the selected product. Check object count, framing, readable
|
|
133
|
+
print and real image bytes. A service conversation has no automatic packshot requirement.
|
|
151
134
|
|
|
152
|
-
|
|
135
|
+
Reuse a suitable approved image first. A free crop or cutout is a new file: keep the
|
|
136
|
+
original, inspect the result and include it in the normal ingredient review. When no
|
|
137
|
+
usable input exists, explain the gap before generation. Estimate any paid preparation
|
|
138
|
+
separately before spending. Record the selected asset and inspection in the project
|
|
139
|
+
review set; do not add a separate approval round.
|
|
153
140
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
**If `questions` is not empty, ask them now, in one message, before showing the price.** Each one says which brief field its answer fills (`fills`). Save the answers with `video_project_upsert { project_id, patch: { brief: { <fills>: <their answer> } } }`. The bounds:
|
|
157
|
-
- **One round.** Never ask a follow-up, and never ask the same thing twice.
|
|
158
|
-
- **Never required.** If they skip them or say "just make it", carry on with the draft as it is.
|
|
159
|
-
- **Empty `questions` means ask nothing.** The server skips it when the brief already says what the ad is for and who it's for, and never asks what the brand record already knows. "Make me a video ad for X" stays a complete request.
|
|
160
|
-
|
|
161
|
-
Show the price the draft returned (the `quote`), **never a number from this page or the catalogue**. If it differs from the table's "~N", the quote is right. Convert at **100 credits = $1**.
|
|
162
|
-
|
|
163
|
-
### 6. Write the script and show it, before the expensive work
|
|
164
|
-
|
|
165
|
-
`video_render_run { brand_id, project_id, kind: "partial" }`.
|
|
166
|
-
|
|
167
|
-
This reserves the credits and writes the script only: **no video is rendered.** It returns immediately with `status: "previewing"` and no script yet; the writing happens in the background. Poll `video_project_read` every 20 seconds (it lands in about 40) and read `order.preview`. Calling `kind: "full"` while it is still `previewing` is refused with `preview_in_progress`.
|
|
168
|
-
|
|
169
|
-
`order.preview` is shaped by the format, and **every** orderable format has one. A preview was chat-only until 2026-09-25, and a kinetic-type customer approved a price and first saw the copy in the finished video.
|
|
170
|
-
|
|
171
|
-
**A chat format** (iMessage / ChatGPT / Notes) fills `thread` (the message list), `angle`, `cta_text` and `selfie_url`. Show it as a readable transcript, not JSON:
|
|
172
|
-
|
|
173
|
-
> **them:** wait why do you look so into your phone rn 😭
|
|
174
|
-
> **me:** I literally just chose to betray the duke
|
|
175
|
-
> **them:** omg is this a game or a book
|
|
176
|
-
|
|
177
|
-
**`selfie_url` is a generated face — show it as a link.** These formats draw the selfie INSIDE the script step, so it never appears in `anchor_images` and `stage` stays `"script"`. It is still a face that will be in the ad, so it still needs their yes.
|
|
178
|
-
|
|
179
|
-
**Any preview with `order.preview.stage: "image"`** stopped after the **picture**, not just the words, so they judge the face before paying for the video. Go by that field, never by a list of format names — it follows what the recipe's steps produce, so a format joins this branch without a skill edit. Today: the animated character, the reaction selfie, the podcast hosts, the UGC creator, and the voiceless dance story (four to six stills, and no spoken script at all — its stills and `detail` ARE the draft, so say that rather than reporting an empty script).
|
|
180
|
-
|
|
181
|
-
Show every URL in `order.preview.anchor_images` as a link (the podcast format has two, one per host), alongside the script. Then say plainly, in this order: what they are looking at; that **nothing has been rendered yet and the pause is deliberate**, because the video is generated FROM this picture and changing the face now is cheap; that **approving starts the render and commits the credits already held**; and that cancelling instead releases the whole hold, so the picture costs them nothing. A pause with no reason given reads as a broken order.
|
|
182
|
-
|
|
183
|
-
**A voiceover format** (kinetic type) fills `beats` instead, and `thread` is null. Each beat has `vo_lines` (what is spoken) and a `beat` label. `detail.hyperframe.plan.slates[].props` holds the words that go **on screen**, which for this format is most of the ad. Show both columns, in order:
|
|
184
|
-
|
|
185
|
-
| # | On screen | Voiceover |
|
|
186
|
-
|---|---|---|
|
|
187
|
-
| 1 | Sunscreen that pills | Most sunscreens pill under makeup. |
|
|
188
|
-
| 2 | Myth: all SPF is greasy → Fact: not a fluid one | This one is a fluid. It sinks in. |
|
|
189
|
-
|
|
190
|
-
Read the spoken lines out as one paragraph underneath, so they can hear the pacing.
|
|
191
|
-
|
|
192
|
-
Whatever the format, **quote it back verbatim.** Do not paraphrase, tidy or shorten the copy; they are approving the exact words that will be rendered.
|
|
193
|
-
|
|
194
|
-
If `order.preview.brief_check` is present, read it before asking for approval:
|
|
195
|
-
- `missing_mentions`: terms they asked for that the script never says. Tell them which, plainly ("It doesn't mention ChatGPT yet").
|
|
196
|
-
- `endorsement_flags`: lines that make another brand sound like it endorses, partners with or ranks theirs. Show the line and say it has to change: a listed name may appear as "works with", never as "recommends" or "#1 for".
|
|
197
|
-
|
|
198
|
-
If `order.brief_changed_since_draft` is present, the brief was changed after this draft was written. **Approving renders the draft as shown**, so redraft first (no reason needed), or tell them the change won't be in this video.
|
|
199
|
-
|
|
200
|
-
Then ask: **use this, change it, or stop?**
|
|
201
|
-
|
|
202
|
-
**One question decides how to change it: did they give you the actual WORDS, or did they tell you what is wrong?** Only the first route below keeps their words. The other two write new ones — which is right when the customer wants something different, and is a silent rewrite when they wanted what they wrote.
|
|
203
|
-
|
|
204
|
-
- **They gave you the words** ("use these lines", "the end card must say Meet Goose", "keep this but change the second bubble") → `video_render_run { kind: "edit", edit: { script: { … } } }`. **This is the only route that keeps copy verbatim.** It puts their text through the format's own guards and costs nothing extra before approval. Send the shape the preview handed you: `script.thread` for a chat format, `script.beats[i].vo_lines` (one entry per beat, `{}` for a beat you are not changing) for a voiceover format, `script.slates[{ beat_idx, props }]` for on-screen words, `script.cta_text` for the end card, `ingredient: "character"` + `script.character.description` for the character itself.
|
|
205
|
-
- **An edit before approval IS the approval**: it applies the copy and starts the render at once (status → `running`). So show the exact words you are about to send, get a yes, and only then send it. An unapproved fix stays a proposal in the chat.
|
|
206
|
-
- Refused with `script_not_editable` → this format writes its own copy and takes no hand edit. **Say so, and do not paraphrase their lines into a redraft** — that hands them a video that is not what they wrote. Their real options are a redraft (new words, not theirs), a re-order with different answers, or cancel.
|
|
207
|
-
- Refused with `script_rejected` → a line makes a claim the brand's facts don't support. Relay the reason and offer a rewrite; never argue it through.
|
|
208
|
-
- **They changed the BRIEF, not the copy** — the problem it shows, who it's for, a name to say, something to avoid, a note like "keep it dry" → save it with `video_project_upsert { project_id, patch: { brief } }` (use `notes` for anything that isn't one of the other fields; keep their original `prompt`), then `video_render_run { kind: "redraft" }` with no `reason`. The new draft is written from the updated brief, so **the words will be new** — this changes the instructions, not the script. Same cost wording as below: no new order, no new hold, a few credits inside the hold.
|
|
209
|
-
- **They only said what's wrong** ("too salesy", "the character looks like a mug") → ask **why** in one line, then `video_render_run { kind: "redraft", reason: <their words> }`. **A redraft RE-RUNS the writer: every word, and the picture on a character format, is replaced.** Their reason steers the next draft; it is not copied into it. Never put exact lines in `reason` expecting them back. Say what it costs, precisely: "no new order and no new hold; it adds about N credits to what this video costs, inside the hold" (N from the response's `redraft.credits_estimate`). **Never call it free.** Poll `video_project_read` until `preview` again and show the new draft plus `order.spend` (what each draft added, how much of the hold is left). A `redraft_exceeds_hold` or `redraft_limit` refusal means: approve a draft or cancel.
|
|
210
|
-
- Different answers altogether (another format, another angle) → a fresh project, and cancel this one.
|
|
211
|
-
- Stop → `job_cancel { job_id: <order id> }`. The whole hold is released and they pay nothing. Cancel only works while the order is `queued`, `previewing` or `preview`; once they approve and it is `running`, it is being made and cannot be refunded.
|
|
212
|
-
|
|
213
|
-
This is the review. It happens here, not in the app.
|
|
214
|
-
|
|
215
|
-
**If the server answers `preview_not_available`,** that is a bug: every sold format has a script preview. Say plainly "I can't show you the script for this one before it's made", and stop. Do not quietly skip the step and charge as if the gate had passed.
|
|
216
|
-
|
|
217
|
-
### 7. Finish it
|
|
218
|
-
|
|
219
|
-
Only after they approve the script: `video_render_run { brand_id, project_id, kind: "full" }`.
|
|
141
|
+
## Inputs
|
|
220
142
|
|
|
221
|
-
|
|
143
|
+
- A brand, usually named in the request. Resolve it from the accessible brands; one brand needs no question.
|
|
144
|
+
- The customer's goal, occasion, audience, selected angle and constraints when supplied; otherwise propose defaults from the verified kit.
|
|
145
|
+
- The selected format's required assets. Presence does not prove suitability; uncertain assets remain “needs review.”
|
|
146
|
+
|
|
147
|
+
## Save durable brand answers, then verify them
|
|
148
|
+
|
|
149
|
+
Read the selected brand with `brand_read { brand_id, sections: ["summary", "kit", "products", "learnings", "onboarding"] }`
|
|
150
|
+
(fallback: `brand_get_context` with the same sections). Keep founder answers, user corrections,
|
|
151
|
+
research and your own hypotheses distinct. Reuse matching saved answers; ask only about gaps.
|
|
152
|
+
|
|
153
|
+
When the user asks to remember a rule, answers a brand interview, or explicitly corrects a
|
|
154
|
+
standing fact, save that answer in the same turn. The capture request authorizes those answers;
|
|
155
|
+
do not ask for approval again. A direction for this one video stays in its brief. If the scope
|
|
156
|
+
is genuinely ambiguous, ask whether it applies to future videos before saving a standing rule.
|
|
157
|
+
|
|
158
|
+
Use the **live registered schema**. Where supported, call `brand_update` with
|
|
159
|
+
`knowledge_intent: "user_correction"` and `user_statement` containing the user's exact,
|
|
160
|
+
verbatim answer, not your paraphrase or researched text.
|
|
161
|
+
For an inference or suggested improvement, use `knowledge_intent: "agent_proposal"`. Show the
|
|
162
|
+
before/after change from your prior read and proposed value; retain the returned proposal IDs
|
|
163
|
+
and say the user must accept it in the app. Link only a review surface actually returned by a
|
|
164
|
+
tool; the compact `knowledge_updates` response does not itself contain a diff or URL.
|
|
165
|
+
A pending proposal is not a saved fact. Never call an unavailable
|
|
166
|
+
tool or silently relabel research or your inference as something the user said.
|
|
167
|
+
|
|
168
|
+
The safe structured shape is `patch: { knowledge: { positioning?, audience?, voice?,
|
|
169
|
+
instructions?, brandType?, tagline?, valueProps? } }`, using only fields present in the live
|
|
170
|
+
schema. Inferred rules/taste go in an `instructions` proposal with a rationale, never in
|
|
171
|
+
`patch.facts`. Prefix every video-only preference in that proposed text with "Video preference:"
|
|
172
|
+
so it remains production direction after acceptance. Preserve unrelated instructions when
|
|
173
|
+
proposing a merged replacement.
|
|
174
|
+
|
|
175
|
+
| User answer | Canonical write |
|
|
176
|
+
| --- | --- |
|
|
177
|
+
| Primary audience, positioning or voice correction | `patch.knowledge: { audience/positioning/voice: <answer> }` (one actual key). During onboarding, `brand_onboarding { action: "review_research", review: { action: "correct", field, value } }` writes these existing corrections with provenance. |
|
|
178
|
+
| Founder story, customer pains, objections, buying trigger or useful audience detail without a structured field | `patch.facts: [{ kind: "insight", text }]`; retain attribution such as "Founder reports: …" rather than turn a belief into a verified result. |
|
|
179
|
+
| Required wording or pronunciation | `patch.facts: [{ kind: "must", text }]`; pronunciation is exactly `Pronounce "<term>" as "<say_as>"`. |
|
|
180
|
+
| Forbidden claim, word or visual | `patch.facts: [{ kind: "dont", text }]`. |
|
|
181
|
+
| Durable visual, voice or pacing preference | `patch.facts: [{ kind: "do", text }]` for a preference; `dont` for an avoidance; `template_hint` for a preferred format. Prefix video-only preferences with "Video preference:". |
|
|
182
|
+
|
|
183
|
+
Facts are existing `ad_brand_learning` rows with user provenance; they are not a second profile.
|
|
184
|
+
Update a matching rule by its returned `id` instead of adding duplicates. Preserve unrelated
|
|
185
|
+
rules and the user's exact meaning. Only use the legacy facts shape for explicitly user-authored
|
|
186
|
+
answers when the live schema lacks intent fields; agent suggestions still need a proposal path.
|
|
187
|
+
|
|
188
|
+
**Claims and plans have separate gates.** A founder assertion or proof point is not an approved,
|
|
189
|
+
evidence-backed claim or consent to quote a customer. Use the existing evidence/claims and
|
|
190
|
+
operating-plan tools only if registered, following their proposal, evidence and confirmation
|
|
191
|
+
requirements. Never encode a spend cap, approver or emergency stop as a learning. If that write
|
|
192
|
+
path is missing, report the specific unsaved item and keep it pending for the supported review
|
|
193
|
+
surface; do not claim it was saved or create a parallel local profile.
|
|
194
|
+
|
|
195
|
+
After every write, **read back before saying saved**: use `brand_read` with `kit`, `learnings`
|
|
196
|
+
or `onboarding` as appropriate, or `brand_onboarding { action: "status", brand_id }` after an
|
|
197
|
+
onboarding answer. Verify the intended field/rule, its source and the absence of a conflicting
|
|
198
|
+
duplicate. A generic success response, pending proposal, ignored key or truncated result is not
|
|
199
|
+
proof. Report partial saves honestly. Carry the verified rules into the current task and the
|
|
200
|
+
routed skill; claims still pass their own safety gate.
|
|
201
|
+
|
|
202
|
+
## Video taste — reuse examples and preferences
|
|
203
|
+
|
|
204
|
+
When asked to capture video taste, or when the user volunteers a durable video preference,
|
|
205
|
+
first read the saved learnings and `media_list { brand_id, scope: "brand", scope_id: brand_id,
|
|
206
|
+
tags: ["video-taste"], limit: 100 }`. Follow `next_cursor` before deciding an example is absent.
|
|
207
|
+
Do not force a taste interview before an unrelated task or ask again for an existing preference.
|
|
208
|
+
|
|
209
|
+
Save what the user has already supplied first. Then ask only the missing useful question, for
|
|
210
|
+
example: "What do you like about this video—its pace, voice, captions, or look?" An inaccessible
|
|
211
|
+
link can still be saved as a link with the user's explanation; do not pretend you watched it.
|
|
212
|
+
|
|
213
|
+
- **Direct clip or video file:** register with `media_upload { brand_id, scope: "brand",
|
|
214
|
+
scope_id: brand_id, kind: "video", source: { type: "url", url }, tags: ["video-taste", "reference-only"],
|
|
215
|
+
metadata: { purpose: "video_taste", source_url: url, provenance: "user", captured_at: <ISO timestamp>,
|
|
216
|
+
preference: <the user's explanation> } }`. For a file use the live file/bytes upload flow and
|
|
217
|
+
`media_confirm` after a presigned upload. Registration of a URL does not copy or inspect it.
|
|
218
|
+
- **Instagram/post/page link:** the same registration with `kind: "document"`; it is a link
|
|
219
|
+
bookmark, not downloadable footage or an indexed transcript. Do not fabricate a direct clip URL.
|
|
220
|
+
- **Preferences:** save the user's reasons, likes and dislikes through the facts mapping above.
|
|
221
|
+
Read and preserve existing facts before updating one. Do not invent `video_preferences` or
|
|
222
|
+
new `video_lab` keys; the live kit patch accepts only its documented asset fields.
|
|
223
|
+
- **Deduplicate:** reuse a matching returned media row, then `media_update` its title/tags/metadata
|
|
224
|
+
if needed; preserve existing metadata and tags. Do not create another row for the same example.
|
|
225
|
+
Read back with `media_list` and `brand_read` learnings before claiming it was saved.
|
|
226
|
+
Check the returned row belongs to this brand: URL deduplication may return another brand's
|
|
227
|
+
existing row. Do not relabel that row or claim success unless the current brand's scoped read
|
|
228
|
+
actually returns it. Report an unsaved association if no supported attach path is available.
|
|
229
|
+
|
|
230
|
+
Never put third-party taste examples into kit reference images: `kind: "reference"` at brand
|
|
231
|
+
scope writes there. The tags and metadata above record purpose and provenance; **they do not
|
|
232
|
+
grant or enforce usage rights**. Study the structure, pacing and look only. Never use the example's
|
|
233
|
+
footage, face, product, testimonial or claims in a new ad without independently verified permission.
|
|
234
|
+
|
|
235
|
+
Read video-only entries prefixed `Video preference:` from both saved learnings and
|
|
236
|
+
`kit.instructions`, including accepted proposals. Keep them out of required or forbidden
|
|
237
|
+
dialogue. Build a brief from the verified readback: preferred pace, voice, caption treatment, visual style,
|
|
238
|
+
formats to favour/avoid, reference links and the user's reasons. Say what is still unknown.
|
|
239
|
+
Pass it with the brand rules into the existing video workflow. A one-video request overrides a
|
|
240
|
+
default for that project; it does not silently rewrite the brand's standing preference.
|
|
222
241
|
|
|
223
|
-
|
|
242
|
+
## Composed Atoms
|
|
224
243
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
| Kinetic type explainer | **~10 min** | 20 min | Two AI b-roll clips, a voiceover, a music bed, HTML slides and a stitch |
|
|
244
|
+
Use the live canonical schemas: brand_read, brand_create, video_catalog_list,
|
|
245
|
+
video_project_upsert, video_project_read, catalog_fetch, goose_run_task and job_cancel.
|
|
246
|
+
An old tool name in a recipe is not grounds for terminal-update advice in a chat host.
|
|
229
247
|
|
|
230
|
-
|
|
248
|
+
## Paid media: images, clips, voice
|
|
231
249
|
|
|
232
|
-
|
|
250
|
+
**No FAL_KEY, ElevenLabs key or `fal_client` is ever needed.** Use
|
|
251
|
+
`data_post_provider { provider: "fal", path: <model id, e.g. "fal-ai/nano-banana/edit">, body: <model input>, project_id }`
|
|
252
|
+
then `job_get { job_id }`; voice/music use provider:"elevenlabs". Upload local inputs through
|
|
253
|
+
media_upload first. **A missing key is never a blocker.** `photos_generate` is **not** a general
|
|
254
|
+
image tool: it photographs physical catalog products only. Use goose-video-local for the
|
|
255
|
+
runtime, paid approval, asset saving and quality checks.
|
|
233
256
|
|
|
234
|
-
|
|
257
|
+
## Workflow
|
|
235
258
|
|
|
236
|
-
|
|
259
|
+
### 1. Resolve the brand, quietly when you can
|
|
237
260
|
|
|
238
|
-
|
|
261
|
+
Call brand_read without brand_id to list accessible brands. Resolve the customer's name from
|
|
262
|
+
actual returned names. One brand, or exactly one match: state it and continue. Several possible
|
|
263
|
+
brands: show names and websites and ask once. No match: show accessible brands and offer to add
|
|
264
|
+
one only when the customer asks and supplies its website; never guess the URL.
|
|
265
|
+
|
|
266
|
+
Read `brand_read { brand_id, sections: ["summary","kit","products","learnings"] }` before
|
|
267
|
+
choosing a format. Reconcile explicit brand corrections through the durable capture rules.
|
|
268
|
+
A direct video request does not require first-campaign acceptance. Follow any returned
|
|
269
|
+
request-specific setup requirement; never mark research complete or accept a campaign to
|
|
270
|
+
bypass setup. Keep the original request.
|
|
271
|
+
|
|
272
|
+
### 2. Keep the goal and propose defaults
|
|
273
|
+
|
|
274
|
+
Never ask what the ad is for before showing formats. Keep the customer's exact direction.
|
|
275
|
+
Otherwise propose defaults from the verified kit's products, audience, offer and voice. Show
|
|
276
|
+
those defaults in the saved plan so any can be changed. Never invent proof or product facts.
|
|
277
|
+
Idea requests still follow ad-angle-miner with the video output.
|
|
278
|
+
|
|
279
|
+
### 3. Show the picker or its text fallback
|
|
280
|
+
|
|
281
|
+
Call `video_catalog_list { kind: "formats", brand_id }`. On the customer's computer, when you
|
|
282
|
+
can actually execute shell commands, include `client: { shell: true }`; in a chat host omit
|
|
283
|
+
that claim. Inside a coworker sandbox follow its reported capabilities, never claim to be the
|
|
284
|
+
customer's computer. Respect requested limit and next_cursor for more item pages; the card may
|
|
285
|
+
contain a full picker independently of the item page.
|
|
286
|
+
|
|
287
|
+
- **card.display_hint:"widget"**: the picker replaces a format table. Write at most one short
|
|
288
|
+
acknowledgement, print no table or list of the formats, and wait for the selection.
|
|
289
|
+
- **Otherwise**: print card.text_summary as returned. Without a card, show returned rows with
|
|
290
|
+
names, faithful descriptions, needs and demo links, respecting the requested page size.
|
|
291
|
+
Write "no demo yet" when absent. Never put links only in a question control.
|
|
292
|
+
- A format whose card contradicts what they asked for is never Suggested. Never offer
|
|
293
|
+
available_here:false as an executable choice. Relay not_available_here in one short line.
|
|
294
|
+
- Missing required assets are missing; unknown suitability is “needs review.” Inspect the
|
|
295
|
+
selected format's candidates before spending. Never promise an unverified asset is ready.
|
|
296
|
+
- Template formats use **one plan, one approval with the total in credits**, not approval for
|
|
297
|
+
each paid step. Custom videos retain separate authenticated script/ingredient/budget gates in this chat.
|
|
298
|
+
|
|
299
|
+
### 4. Check this machine can render it
|
|
300
|
+
|
|
301
|
+
- **Chat host without a shell:** skip local checks and delegate an available format in Step 5.
|
|
302
|
+
Never tell a chat host it needs Claude Code to start. Browser-only formats remain unavailable
|
|
303
|
+
here; give computer setup guidance only if asked how to make one.
|
|
304
|
+
- **Local shell:** run `gooseworks doctor --no-browser` for common setup (auth/MCP, Node 18+,
|
|
305
|
+
ffmpeg with libx264 + libass, ffprobe). Then fetch the selected template and its capabilities,
|
|
306
|
+
and install documented dependencies in its fetched folder. Do not guess a renderer from a
|
|
307
|
+
format name. For each Node renderer using default Playwright Chromium, run
|
|
308
|
+
`gooseworks doctor --renderer-script "/absolute/path/to/the/fetched/scripts/record.js"` with
|
|
309
|
+
the exact environment used to render, including NODE_PATH and PLAYWRIGHT_BROWSERS_PATH.
|
|
310
|
+
Use the actual script path. Custom browser launch settings need their equivalent exact-runtime
|
|
311
|
+
check. Non-browser capabilities need only their documented runtime checks.
|
|
312
|
+
Never create paid ingredients before the selected renderer passes. Repair and recheck under
|
|
313
|
+
existing setup permissions. If it cannot be fixed, re-list with client:{shell:false} and
|
|
314
|
+
delegate only a format available to the coworker; never silently change the selected format.
|
|
315
|
+
- **Coworker sandbox:** you are the renderer. Follow goose-video-local's sandbox checks; never
|
|
316
|
+
hand off recursively or claim browser capability that the sandbox lacks.
|
|
317
|
+
|
|
318
|
+
### 5. Create the project and hand it off, in this session
|
|
319
|
+
|
|
320
|
+
1. `video_project_upsert { brand_id, name, format: <template_id> }` with no brief (a brief creates
|
|
321
|
+
a concept batch). Include client:{shell:true} only for real local execution. Default
|
|
322
|
+
creation_intent:"format" keeps the style with this brand's content; source_remix requires an
|
|
323
|
+
explicit choice to use source content.
|
|
324
|
+
If they already chose a campaign/concept, include its verified campaign_id and optional
|
|
325
|
+
campaign_concept_id. Read the IDs from that brand's saved campaign; the concept must belong
|
|
326
|
+
to it. Omit unknown IDs and never infer a link or create a campaign solely to file a video.
|
|
327
|
+
2. **Verified local shell or coworker sandbox:** load
|
|
328
|
+
`catalog_fetch { type: "skill", slug: "goose-video-local" }` and follow it on the same project_id.
|
|
329
|
+
Carry the customer's words, verified defaults, campaign and selected angle into its brief.
|
|
330
|
+
3. **Chat host:** `goose_run_task { brand_id, project_id, message }` with the request, selected
|
|
331
|
+
format and defaults. Keep task_id. Continue questions/edits with the same task and project.
|
|
332
|
+
A saved free draft is not a started worker or a complete plan. Follow actual saved state.
|
|
333
|
+
4. When follow.card_follows is true, the card follows progress: do not re-read it in a loop.
|
|
334
|
+
Read again on a customer reply, card action or requested update. A failure or missing saved
|
|
335
|
+
plan needs the returned recovery action; never claim completion or approve an empty plan.
|
|
336
|
+
Approval requires the current complete plan and total. Insufficient balance: offer a shorter
|
|
337
|
+
video or top-up. “Not now” keeps the saved plan.
|
|
338
|
+
|
|
339
|
+
Do not hand the customer a command to paste somewhere else.
|
|
239
340
|
|
|
240
341
|
## Decision Rules
|
|
241
342
|
|
|
242
|
-
-
|
|
243
|
-
-
|
|
244
|
-
-
|
|
245
|
-
-
|
|
246
|
-
- **More than two options → table in the message.** Every time. Options with a sample or demo the customer can't hear or see are not really choices. A question control may capture the answer after the table, never instead of it.
|
|
247
|
-
- **`ready: false` → stop.** Ordering anyway fails and wastes their time.
|
|
248
|
-
- **Unsure whether an order went through → read `video_project_read` first.** Never use the charging tool as a status probe. Only if the project shows nothing at all, re-call `video_render_run` on the SAME `project_id` (idempotent per project). Never create a second project; that is a second charge.
|
|
249
|
-
- **Quote cards, never paraphrase them.** The card is the server's promise about the format. A reworded card can promise something the format cannot do.
|
|
250
|
-
- **A contradiction with the card outranks every keyword match.** Check what they asked for against what the card and the `ask[]` options say the format does; a format that can't do the ask is never Suggested.
|
|
251
|
-
- **They asked for a format that isn't in the catalogue** → it isn't available yet. Say so, show the table, and don't improvise a lab recipe.
|
|
252
|
-
- **Run failed → say so plainly.** The credits are released automatically. Offer a retry; never retry unasked.
|
|
253
|
-
- **Their words go in an `edit`, never in a `redraft` reason.** A `reason` steers the next draft; it is not copied into it. The moment a customer gives you actual copy, the only honest routes are `kind: "edit"` or telling them this format will not take it.
|
|
254
|
-
- **Deliver the page, not the file.** `video_url` leads, `mp4_url` follows. A bare CloudFront link is not a delivery.
|
|
255
|
-
- **The brief is the customer's words, not yours.** `prompt` is their answer, verbatim or close to it. `audience`, `must_mention` and `avoid` hold only what they said. Another brand in `must_mention` means they asked for it; it can be named as "works with", never as an endorsement or ranking.
|
|
343
|
+
- One sentence is a complete request. Resolve the brand and show formats without a goal interview.
|
|
344
|
+
- One brand in the org: never ask which brand. Cards decide presentation; checks decide execution.
|
|
345
|
+
- Use canonical tools. Preserve campaign context, selected script angles and custom authenticated review gates.
|
|
346
|
+
- Never fabricate readiness, completion, approval or a second project.
|
|
256
347
|
|
|
257
348
|
## Output
|
|
258
349
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
350
|
+
One project, one current saved plan in this chat, then the finished video. With a widget write one
|
|
351
|
+
line and do not add app_url, brand_url or duplicate video links. A text host gets text_summary
|
|
352
|
+
and its usable delivery link.
|
|
262
353
|
|
|
263
354
|
## Quality Checks
|
|
264
355
|
|
|
265
|
-
-
|
|
266
|
-
- The
|
|
267
|
-
-
|
|
268
|
-
-
|
|
269
|
-
- Only the picked format's `ask[]` questions were asked.
|
|
270
|
-
- The step-2 answer went into the order as `brief.prompt`, and no intent field held anything the customer didn't say.
|
|
271
|
-
- They approved the **script**, not just the price, before the expensive work ran: the thread for a chat format, the on-screen words *and* the voiceover for a kinetic-type one.
|
|
272
|
-
- You told them how long the render would take **for the format they picked**, and said something at the halfway mark instead of going quiet.
|
|
273
|
-
- The quote you showed came from the server, never from memory or the catalogue.
|
|
274
|
-
- Every line of copy the customer wrote is in the finished video word for word — it went through `kind: "edit"`, or you told them plainly that this format would not take it. No supplied copy was ever paraphrased into a `redraft` reason.
|
|
275
|
-
- The video was delivered in the chat as `video_url` first and `mp4_url` second. You did not send them to the app for anything but payment.
|
|
276
|
-
- You asked for no promo code or reference video, and made no product claim the brand's own facts don't support.
|
|
356
|
+
- No forced goal question, duplicate table or unsupported shell claim.
|
|
357
|
+
- The exact renderer passed before local paid ingredients; uncertain assets stay uncertain.
|
|
358
|
+
- Selected campaign and angle survive; a single template project has no brief.
|
|
359
|
+
- Current complete plan and total precede approval. Custom script and ingredient gates remain independent; Studio is optional.
|
|
277
360
|
|
|
278
361
|
## Failure Modes
|
|
279
362
|
|
|
280
363
|
| Symptom | Cause | Fix |
|
|
281
364
|
| --- | --- | --- |
|
|
282
|
-
|
|
|
283
|
-
|
|
|
284
|
-
|
|
|
285
|
-
|
|
|
286
|
-
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
| **The customer wrote the script and the finished video says something else** | Their lines went into a `redraft` `reason`. A redraft re-runs the writer: the reason steers the next draft, it is never copied into it. Seen on staging — "Keep this exact draft, use these lines: …" came back paraphrased, twice, and was paid for both times | Copy goes in `kind: "edit"`. If the format refuses it (`script_not_editable`), say so and let them choose a redraft, a re-order or cancel — knowing the words will be new |
|
|
294
|
-
| Video started rendering before the customer approved | `kind: "edit"` on a preview applies the copy **and** starts the full render (status → `running`) | Show the exact words you're about to send, get a yes, then send the edit. An unapproved fix stays a proposal in the chat |
|
|
295
|
-
| `draft_is_your_copy` on a redraft | The current draft is the customer's own edited copy; another draft would replace their words | Correct behaviour. Edit their copy again with `kind: "edit"`, approve it, or cancel |
|
|
296
|
-
| `script_rejected` on an edit | A line makes a claim the brand's facts don't support | Relay the reason verbatim and offer a rewrite; nothing was charged |
|
|
297
|
-
| The customer was sent a raw `cloudfront.net/….mp4` | Delivered `mp4_url` (or `order.output_url`) instead of `video_url` | `video_url` leads and `mp4_url` follows. Both come back from `video_project_read` once `order.status` is `done` |
|
|
298
|
-
| `recipe_brief_locked` | You patched `script_drafts` raw on a format project, which would have skipped the brief's checks | Send the change as `patch.brief` instead |
|
|
299
|
-
| `format_answers_locked` | After ordering, you tried to change the format's own answer (voice, angle, selfie) through the brief | Those change what the run costs. Use `kind: "edit"` where the format lists it, or start a new project |
|
|
300
|
-
| Asked the customer three rounds of questions before anything was made | Treated `questions` as a form, or asked your own follow-ups | Ask what `questions` holds, once, in one message. Nothing else. Skipping is fine |
|
|
301
|
-
| `preview_in_progress` | You called `full` while the script was still being written | Keep polling `video_project_read` until `order.preview` appears |
|
|
302
|
-
| Cancel refused | The order is already `running`; they approved it | Say it's being made; a refund isn't possible now |
|
|
303
|
-
| No render after the format's budget (10 min chat, 20 min kinetic) | The worker didn't pick the run up | Credits are held, not spent. Say it's queued and you'll follow up; don't re-order |
|
|
304
|
-
| `preview_not_available` on an orderable format | A bug; every sold format has a script preview | Say so and stop. Do not order without showing the script |
|
|
305
|
-
| An edited script is refused (`script_not_editable`) | This format's writer takes no hand edit (its `edits.script` is empty). Only some formats do | Should have been said at the table. Their words cannot be rendered verbatim here: offer a redraft (new words), a re-order with different answers, or cancel — and never quietly paraphrase their copy into the redraft reason |
|
|
306
|
-
| A "hero, no villain" brief got the villain cartoon | The card was paraphrased ("narrates the fix") and the fit check never read what the format can't do | Quote `card.description`; check the ask against the card and `ask[]`; never Suggest a contradiction |
|
|
307
|
-
| Two videos, two charges | A second project was created instead of continuing the first | Continue on the SAME `project_id` |
|
|
365
|
+
| Picker plus table | Ignored display_hint | Widget: one line; otherwise text_summary |
|
|
366
|
+
| Terminal loses formats | Confused cards with execution | Declare real shell capability and check renderer |
|
|
367
|
+
| Chat told it cannot start | Only local execution considered | Create once and delegate to coworker |
|
|
368
|
+
| Worker ends without a plan | Assumed completion means ready | Follow actual failure/recovery state |
|
|
369
|
+
| Two projects for one video | Recreated instead of resuming | Continue same project and task |
|
|
370
|
+
|
|
371
|
+
## Use uploaded footage
|
|
372
|
+
|
|
373
|
+
When the customer asks to use existing footage, check the actual advertised schemas. Use `media_search` with purpose `production`, kind `video`, the brand and current project when needed. Omit query spend for free retrieval. Read facts/scenes with `media_analyze`, then use `media_excerpt` action `inspect` to review actual bounded frames and timed transcript before selecting. A description or thumbnail URL alone is not visual review.
|
|
374
|
+
|
|
375
|
+
Freeze `source_excerpt:{asset_id,analysis_revision,scene_id,start_ms,end_ms,audio_mode}`. Revision is the original-byte SHA, scene may be null for a known user trim, bounds use integer milliseconds, and audio is original or muted. Call `media_excerpt` action `attach` with that exact selection and a stable idempotency key. The returned project remains unfinished and unapproved. Open its existing Studio review; preserve user locks and requested format, and keep footage separate from image packshot indexes. An incompatible format requires an explicit choice before changing it.
|
|
308
376
|
|
|
377
|
+
For custom production, fetch the current shared `video-production-harness` and follow script/ingredient gates. Download the verified original and trim its exact selected window at normal speed with the approved audio. Recheck current revision and production permission before consumption and final upload/completion. Save excerpt lineage in plan and ingredient readback. Missing optional semantics does not require another upload; known user-selected stored footage remains usable. Research and competitor references never become production footage. Selected originals require no paid generation; only newly generated/replaced ingredients consume the approved budget.
|