@lalalic/markcut 3.2.34 → 3.2.36
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/AGENTS.md +17 -302
- package/README.md +9 -0
- package/docs/developer-reference.md +311 -0
- package/package.json +1 -1
- package/skills/markcut/SKILL.md +56 -107
- package/skills/markcut/docs/markdown-descriptive.md +2 -2
- package/skills/markcut/evals/README.md +29 -0
- package/skills/markcut/evals/cases.json +227 -0
- package/skills/markcut/evals/check.mjs +80 -0
- package/skills/markcut/evals/check.selftest.mjs +48 -0
- package/skills/markcut/evals/run-codex.mjs +87 -0
- package/skills/markcut/references/mcp-preview-lifecycle.md +14 -0
- package/skills/markcut/references/preview-troubleshooting.md +21 -49
- package/skills/markcut/review.md +52 -465
- package/src/config.mjs +3 -1
- package/src/render/cli.mjs +5 -2
- package/src/render/validate-assets.mjs +19 -0
- package/src/vision/cli.mjs +79 -28
- package/src/vision/vision_prompts.md +5 -3
- package/tests/validate-assets.test.ts +26 -0
- package/tests/vision-generic-vtt-hooks.test.ts +77 -0
- package/tests/vitest.publish.config.ts +1 -0
package/skills/markcut/review.md
CHANGED
|
@@ -1,480 +1,67 @@
|
|
|
1
|
-
# Markcut
|
|
1
|
+
# Markcut video review contract
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use when judging an authored Markcut video against the user's request, or when interpreting human feedback on `markcut.preview`. This is a **video-quality** contract, not an evaluation of whether an agent Skill was selected correctly; Skill behavior is tested separately under `evals/`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Evidence and stages
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
1. Record the user's intended audience, story/message, required content, platform, target duration and style. Do not invent requirements absent from the request or its selected template.
|
|
8
|
+
2. Inspect the source `video.md`: scenes, media references, narration, music, transitions, captions, variants and timing. Use the compiled tree to examine resolved structure when needed.
|
|
9
|
+
3. **Watch/listen to the actual playable video** (native preview, hosted MCP player, or rendered MP4) before scoring sound, visuals, subtitles, timing and narrative impact. A `compiled.json` is not a substitute for seeing/hearing output. If playback is inaccessible, mark those dimensions `not_verified`, do not fabricate a score, and do not approve the video.
|
|
10
|
+
4. Compare the observed result to the original request and the chosen template. Flag only meaningful, observable defects. Distinguish authored-document defects from engine, environment, and asset-generation failures.
|
|
11
|
+
5. For `changes_requested`, provide scene/time context and concrete corrections to the source Markdown or its referenced assets, then re-preview the changed file. Human `approved` applies only to the original revision/content hash; only the reviewer may approve the new revision.
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
- **VIDEO_MD** — the Markdown generated by the agent
|
|
11
|
-
- **VIDEO** — the rendered video
|
|
13
|
+
## Critical checks
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
| Area | Failure to look for | Evidence / action |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| Visual coverage | Blank scene or narration outlasting a visual | Inspect scene start/end frames; make a single scene-filling visual `isBackground:true` when appropriate. Intentional blank scenes are allowed. |
|
|
18
|
+
| Media availability | Missing, white, broken or unrelated visual | Confirm the referenced asset was loaded and represents the requested concept; distinguish bad path from failed renderer. |
|
|
19
|
+
| Speech | Cut-off final words, missing voice, wrong narration | Listen through scene endings; compare with `script` and actual TTS output. |
|
|
20
|
+
| Music and sound | BGM missing, overpowering speech, abrupt cutoff | Listen in real playback and ensure the project's Markdown template music rules were preserved. Browser speech mode may differ from final audio. |
|
|
21
|
+
| Captions | Missing, stale or poorly timed text | Compare displayed captions to actual heard narration, not just stored VTT. |
|
|
22
|
+
| Scene/story | Missing message, incoherent transitions, inappropriate pacing | Judge against the user's goal, not a universal 'viral' formula. |
|
|
23
|
+
| Maps/GPS | Empty map, badly framed route, mislabeled GPS provenance | Inspect real rendered frames, stops, movements, and source provenance. |
|
|
24
|
+
| Delivery | Rendering succeeded but output unplayable/incomplete | Inspect MP4 existence, duration, visuals and sound; compilation alone is insufficient. |
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
Affecting the viewer's core goal is more important than minor aesthetics. Avoid duplicating a root defect across several categories. Do not penalize intentional metaphors, silent scenes or stylized pacing when aligned with the request.
|
|
16
27
|
|
|
17
|
-
|
|
18
|
-
2. Read the generated Markdown and understand its scenes, media, narration, timing, layouts, subtitles, and effects.
|
|
19
|
-
3. Watch the **entire rendered video** or compiled.json before making a final judgment if available.
|
|
20
|
-
4. Compare the video with the user's intent.
|
|
21
|
-
5. Identify only meaningful, observable problems.
|
|
22
|
-
6. For each problem, determine whether it is caused by AUTHORING, CONTENT, DESIGN, ENGINE, ENVIRONMENT, or is UNKNOWN.
|
|
23
|
-
7. For AUTHORING problems, provide a concrete rule that could improve the Markcut skill.
|
|
28
|
+
## Finding classification
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
- **Source:** `AUTHORING` (Markdown choice/path/timing), `CONTENT` (incorrect facts/story), `DESIGN` (visual language), `ENGINE` (reasonable input rendered incorrectly), `ENVIRONMENT` (unavailable resource/runtime), or `UNKNOWN` (insufficient evidence).
|
|
31
|
+
- **Severity:** `critical` unusable; `high` strongly harms goal; `medium` meaningful defect; `low` cosmetic.
|
|
32
|
+
- **Category:** `STORY`, `VISUAL`, `TIMING`, `AUDIO`, `SUBTITLE`, `STRUCTURE`, `AUTHORING`, `ENGINE`.
|
|
26
33
|
|
|
27
|
-
|
|
34
|
+
Each finding needs: category/code, severity, source, affected scene, approximate timestamp if observed, evidence, impact, and an actionable recommendation. Never fabricate frame-level timestamps or imply a suggested fix has been verified without replay.
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
## Output contract
|
|
30
37
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
The following checks are especially important because they represent common failures observed when agents generate Markcut video Markdown.
|
|
34
|
-
|
|
35
|
-
## 1. No dark scene tail
|
|
36
|
-
|
|
37
|
-
**Problem:** A scene becomes black near the end while narration continues.
|
|
38
|
-
|
|
39
|
-
Typical symptom:
|
|
40
|
-
|
|
41
|
-
- the scene image/video ends before the scene narration;
|
|
42
|
-
- the final frames of the scene are black or empty;
|
|
43
|
-
- narration continues over the black tail.
|
|
44
|
-
|
|
45
|
-
This is a high-priority timing/authoring problem because the viewer sees an unintended blank screen while still hearing narration.
|
|
46
|
-
|
|
47
|
-
**Preferred authoring pattern:** When a scene has one primary visual that should remain visible for the whole scene, make the scene image a background using `isBackground` so it plays for the entire scene.
|
|
48
|
-
|
|
49
|
-
**Review question:**
|
|
50
|
-
|
|
51
|
-
> Does the visual remain intentionally present for the entire narration, especially at the end of the scene?
|
|
52
|
-
|
|
53
|
-
If the narration continues after the visible content has ended, report the issue.
|
|
54
|
-
|
|
55
|
-
Typical classification:
|
|
56
|
-
|
|
57
|
-
- `TIMING-001` or `TIMING-003`
|
|
58
|
-
- source: `AUTHORING`
|
|
59
|
-
|
|
60
|
-
Do not report this if the black/empty tail is clearly intentional and appropriate.
|
|
61
|
-
|
|
62
|
-
## 2. Every scene should have an intentional visual
|
|
63
|
-
|
|
64
|
-
**Problem:** A whole scene is black because the scene contains narration but no image/video/component that produces visible content.
|
|
65
|
-
|
|
66
|
-
Typical symptom:
|
|
67
|
-
|
|
68
|
-
```md
|
|
69
|
-
## Scene
|
|
70
|
-
|
|
71
|
-
- script: ...
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
with no visual content.
|
|
75
|
-
|
|
76
|
-
For normal video scenes, the default expectation is that narration should have a meaningful visual supporting it.
|
|
77
|
-
|
|
78
|
-
**Preferred authoring pattern:** Add an image prompt when appropriate, for example:
|
|
79
|
-
|
|
80
|
-
```md
|
|
81
|
-
- image prompt: "..."
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
The prompt should describe a visual that supports the narration, not merely repeat the narration.
|
|
85
|
-
|
|
86
|
-
**Review question:**
|
|
87
|
-
|
|
88
|
-
> Is any scene unintentionally blank because the agent forgot to provide visual content?
|
|
89
|
-
|
|
90
|
-
Typical classification:
|
|
91
|
-
|
|
92
|
-
- `VISUAL-009` or `STRUCTURE-001`
|
|
93
|
-
- source: `AUTHORING`
|
|
94
|
-
|
|
95
|
-
Do not flag intentionally audio-only content when the user's request or video style clearly calls for it.
|
|
96
|
-
|
|
97
|
-
## 3. Visuals actually display
|
|
98
|
-
|
|
99
|
-
**Problem:** The Markdown contains a visual reference, but the rendered video shows white, empty, missing, or broken content.
|
|
100
|
-
|
|
101
|
-
Common causes:
|
|
102
|
-
|
|
103
|
-
- 404 media source;
|
|
104
|
-
- invalid URL;
|
|
105
|
-
- absolute local path that is not portable;
|
|
106
|
-
- media path resolved relative to the wrong directory;
|
|
107
|
-
- generated asset does not exist;
|
|
108
|
-
- stale/corrupt cached asset.
|
|
109
|
-
|
|
110
|
-
**Preferred authoring pattern:** Media paths should normally be portable and relative to the Markdown file's folder, for example:
|
|
111
|
-
|
|
112
|
-
```md
|
|
113
|
-
- image src: assets/example.jpg
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
rather than relying on an environment-specific absolute path.
|
|
117
|
-
|
|
118
|
-
**Review question:**
|
|
119
|
-
|
|
120
|
-
> Does every referenced visual actually appear correctly in the rendered video?
|
|
121
|
-
|
|
122
|
-
If the Markdown requests a visual and the rendered result is blank/white/404, report it.
|
|
123
|
-
|
|
124
|
-
Typical classification:
|
|
125
|
-
|
|
126
|
-
- `VISUAL-002` or `VISUAL-008`
|
|
127
|
-
- source: `ENGINE` if the path is reasonable but Markcut fails to render it;
|
|
128
|
-
- source: `AUTHORING` if the agent generated an invalid/non-portable path;
|
|
129
|
-
- source: `ENVIRONMENT` if the resource genuinely cannot be accessed in the evaluation environment.
|
|
130
|
-
|
|
131
|
-
## 4. Audio must not be cut off
|
|
132
|
-
|
|
133
|
-
**Problem:** The final part of the narration is missing or truncated.
|
|
134
|
-
|
|
135
|
-
Typical symptom:
|
|
136
|
-
|
|
137
|
-
- the script contains more text than the generated speech;
|
|
138
|
-
- STT/transcription ends before the script ends;
|
|
139
|
-
- the last sentence or words are missing from the audio;
|
|
140
|
-
- the scene appears visually complete but the spoken narration is cut off.
|
|
141
|
-
|
|
142
|
-
**Preferred authoring principle:** Apply the same timing principle as the scene-tail check: visual and scene duration must accommodate the complete narration.
|
|
143
|
-
|
|
144
|
-
**Review question:**
|
|
145
|
-
|
|
146
|
-
> Does the generated audio contain the complete intended narration, including the final words of the script?
|
|
147
|
-
|
|
148
|
-
If the rendered audio cuts off the script tail, report it.
|
|
149
|
-
|
|
150
|
-
Typical classification:
|
|
151
|
-
|
|
152
|
-
- `AUDIO-006` or `TIMING-001`
|
|
153
|
-
- source: `AUTHORING` when scene timing/authoring causes the truncation;
|
|
154
|
-
- source: `ENGINE` when reasonable Markdown is rendered incorrectly.
|
|
155
|
-
|
|
156
|
-
## 5. Subtitles must match narration
|
|
157
|
-
|
|
158
|
-
**Problem:** Subtitles are missing, stale, or no longer correspond to the actual narration.
|
|
159
|
-
|
|
160
|
-
Check for:
|
|
161
|
-
|
|
162
|
-
- no subtitles when subtitles are expected;
|
|
163
|
-
- subtitle cues missing from the narration;
|
|
164
|
-
- stale VTT generated from an earlier script;
|
|
165
|
-
- subtitle text different from the current script/audio;
|
|
166
|
-
- subtitle timing that clearly does not match speech.
|
|
167
|
-
|
|
168
|
-
**Preferred resolution:** Regenerate stale VTT/subtitle data whenever the narration changes. Do not preserve cached subtitle data that corresponds to an older script.
|
|
169
|
-
|
|
170
|
-
**Review question:**
|
|
171
|
-
|
|
172
|
-
> Do the subtitles represent the narration that the viewer actually hears?
|
|
173
|
-
|
|
174
|
-
Typical classification:
|
|
175
|
-
|
|
176
|
-
- `SUBTITLE-003` or `SUBTITLE-004`
|
|
177
|
-
- source: `AUTHORING` when stale/generated artifacts are knowingly reused;
|
|
178
|
-
- source: `ENGINE` when Markcut fails to regenerate or synchronize subtitles correctly.
|
|
179
|
-
|
|
180
|
-
## 6. Content must match user intent
|
|
181
|
-
|
|
182
|
-
**Problem:** The video technically works, but the imagery or content does not communicate what the user asked for.
|
|
183
|
-
|
|
184
|
-
Examples:
|
|
185
|
-
|
|
186
|
-
- narration says "a child learning to ride a bicycle" but the image is unrelated;
|
|
187
|
-
- a financial explanation uses generic unrelated office imagery;
|
|
188
|
-
- the visual suggests a different meaning from the narration;
|
|
189
|
-
- an important concept is never visually represented;
|
|
190
|
-
- the generated story drifts away from the requested topic.
|
|
191
|
-
|
|
192
|
-
This is generally **advisory** rather than a rendering failure.
|
|
193
|
-
|
|
194
|
-
**Preferred resolution:** Improve the image/media prompt, scene decomposition, or narration. If the incorrect media is caused by a stale generated asset, invalidate the cache and regenerate it.
|
|
195
|
-
|
|
196
|
-
**Review question:**
|
|
197
|
-
|
|
198
|
-
> If a viewer watches the visuals while listening to the narration, do the two communicate the same intended idea?
|
|
199
|
-
|
|
200
|
-
Typical classification:
|
|
201
|
-
|
|
202
|
-
- `VISUAL-001`, `VISUAL-008`, or `VISUAL-009`
|
|
203
|
-
- source: `AUTHORING` or `CONTENT`
|
|
204
|
-
|
|
205
|
-
Do not fail a case merely because the image is metaphorical rather than literal, provided it supports the intended message.
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
# General Review Dimensions
|
|
210
|
-
|
|
211
|
-
Score each applicable dimension from 1 to 5.
|
|
212
|
-
|
|
213
|
-
## Storytelling / Communication
|
|
214
|
-
|
|
215
|
-
Check:
|
|
216
|
-
|
|
217
|
-
- Is there a clear purpose?
|
|
218
|
-
- Is the opening effective?
|
|
219
|
-
- Does each scene move the message forward?
|
|
220
|
-
- Is the information ordered logically?
|
|
221
|
-
- Is the main message understandable?
|
|
222
|
-
- Is there unnecessary repetition?
|
|
223
|
-
- Does the ending provide an appropriate conclusion or payoff?
|
|
224
|
-
|
|
225
|
-
## Narration / Visual Alignment
|
|
226
|
-
|
|
227
|
-
Check whether visuals support the narration.
|
|
228
|
-
|
|
229
|
-
A visual does not need to literally illustrate every word. Conceptual visuals, examples, diagrams, and metaphors are acceptable when they improve understanding.
|
|
230
|
-
|
|
231
|
-
## Visual Quality
|
|
232
|
-
|
|
233
|
-
Check:
|
|
234
|
-
|
|
235
|
-
- readability;
|
|
236
|
-
- cropping;
|
|
237
|
-
- overlap;
|
|
238
|
-
- empty space;
|
|
239
|
-
- visual clutter;
|
|
240
|
-
- media relevance;
|
|
241
|
-
- repetition;
|
|
242
|
-
- excessive effects;
|
|
243
|
-
- overall coherence.
|
|
244
|
-
|
|
245
|
-
## Timing / Pacing
|
|
246
|
-
|
|
247
|
-
Check:
|
|
248
|
-
|
|
249
|
-
- narration vs visual duration;
|
|
250
|
-
- static visuals that last too long;
|
|
251
|
-
- visuals that disappear too early;
|
|
252
|
-
- important content shown too briefly;
|
|
253
|
-
- awkward cuts;
|
|
254
|
-
- excessive transitions;
|
|
255
|
-
- unnatural pacing.
|
|
256
|
-
|
|
257
|
-
## Audio
|
|
258
|
-
|
|
259
|
-
Check:
|
|
260
|
-
|
|
261
|
-
- narration speed;
|
|
262
|
-
- pronunciation;
|
|
263
|
-
- unnatural pauses;
|
|
264
|
-
- missing/truncated narration;
|
|
265
|
-
- volume consistency;
|
|
266
|
-
- background music competing with speech.
|
|
267
|
-
|
|
268
|
-
## Subtitles
|
|
269
|
-
|
|
270
|
-
Check:
|
|
271
|
-
|
|
272
|
-
- presence when expected;
|
|
273
|
-
- synchronization;
|
|
274
|
-
- stale content;
|
|
275
|
-
- readability;
|
|
276
|
-
- line breaks;
|
|
277
|
-
- density;
|
|
278
|
-
- visual overlap.
|
|
279
|
-
|
|
280
|
-
## Platform Suitability
|
|
281
|
-
|
|
282
|
-
If the user specifies a platform, judge against it.
|
|
283
|
-
|
|
284
|
-
For short-form video, pay particular attention to the hook, pacing, mobile readability, and visual changes.
|
|
285
|
-
|
|
286
|
-
For tutorials, pay particular attention to step ordering, demonstrations, and sufficient time to understand each step.
|
|
287
|
-
|
|
288
|
-
Do not impose platform-specific requirements when the user did not specify a platform.
|
|
289
|
-
|
|
290
|
-
## Markcut Authoring Quality
|
|
291
|
-
|
|
292
|
-
Evaluate whether the agent uses Markcut appropriately.
|
|
293
|
-
|
|
294
|
-
Look for:
|
|
295
|
-
|
|
296
|
-
- poor scene decomposition;
|
|
297
|
-
- poor duration choices;
|
|
298
|
-
- unnecessary complexity;
|
|
299
|
-
- unnecessary components/effects;
|
|
300
|
-
- poor media instructions;
|
|
301
|
-
- narration packed into one visual beat;
|
|
302
|
-
- missing visuals;
|
|
303
|
-
- non-portable media references.
|
|
304
|
-
|
|
305
|
-
Prefer the simplest Markcut structure that produces a strong result.
|
|
306
|
-
|
|
307
|
-
---
|
|
308
|
-
|
|
309
|
-
# Issue Taxonomy
|
|
310
|
-
|
|
311
|
-
Use these IDs when applicable.
|
|
312
|
-
|
|
313
|
-
### STORY
|
|
314
|
-
|
|
315
|
-
- `STORY-001` — weak-hook
|
|
316
|
-
- `STORY-002` — no-progression
|
|
317
|
-
- `STORY-003` — repetitive-content
|
|
318
|
-
- `STORY-004` — unclear-message
|
|
319
|
-
- `STORY-005` — weak-ending
|
|
320
|
-
- `STORY-006` — unnecessary-introduction
|
|
321
|
-
- `STORY-007` — poor-information-order
|
|
322
|
-
|
|
323
|
-
### VISUAL
|
|
324
|
-
|
|
325
|
-
- `VISUAL-001` — narration-visual-mismatch
|
|
326
|
-
- `VISUAL-002` — missing-or-broken-visual
|
|
327
|
-
- `VISUAL-003` — repetitive-visual
|
|
328
|
-
- `VISUAL-004` — text-too-small
|
|
329
|
-
- `VISUAL-005` — text-overflow
|
|
330
|
-
- `VISUAL-006` — excessive-empty-space
|
|
331
|
-
- `VISUAL-007` — visual-clutter
|
|
332
|
-
- `VISUAL-008` — poor-media-selection
|
|
333
|
-
- `VISUAL-009` — insufficient-visual-explanation
|
|
334
|
-
|
|
335
|
-
### TIMING
|
|
336
|
-
|
|
337
|
-
- `TIMING-001` — narration-too-long-for-scene
|
|
338
|
-
- `TIMING-002` — narration-too-short-for-scene
|
|
339
|
-
- `TIMING-003` — static-visual-too-long
|
|
340
|
-
- `TIMING-004` — visual-too-short
|
|
341
|
-
- `TIMING-005` — awkward-cut
|
|
342
|
-
- `TIMING-006` — transition-too-long
|
|
343
|
-
- `TIMING-007` — excessive-transitions
|
|
344
|
-
- `TIMING-008` — poor-pacing
|
|
345
|
-
|
|
346
|
-
### AUDIO
|
|
347
|
-
|
|
348
|
-
- `AUDIO-001` — narration-too-fast
|
|
349
|
-
- `AUDIO-002` — narration-too-slow
|
|
350
|
-
- `AUDIO-003` — unnatural-narration
|
|
351
|
-
- `AUDIO-004` — awkward-pause
|
|
352
|
-
- `AUDIO-005` — music-too-loud
|
|
353
|
-
- `AUDIO-006` — narration-cut-off
|
|
354
|
-
|
|
355
|
-
### SUBTITLE
|
|
356
|
-
|
|
357
|
-
- `SUBTITLE-001` — too-dense
|
|
358
|
-
- `SUBTITLE-002` — bad-line-break
|
|
359
|
-
- `SUBTITLE-003` — timing-mismatch
|
|
360
|
-
- `SUBTITLE-004` — missing-or-stale-subtitles
|
|
361
|
-
- `SUBTITLE-005` — visual-overlap
|
|
362
|
-
|
|
363
|
-
### STRUCTURE
|
|
364
|
-
|
|
365
|
-
- `STRUCTURE-001` — missing-content
|
|
366
|
-
- `STRUCTURE-002` — unnecessary-scene
|
|
367
|
-
- `STRUCTURE-003` — wrong-order
|
|
368
|
-
- `STRUCTURE-004` — inappropriate-layout
|
|
369
|
-
- `STRUCTURE-005` — poor-scene-decomposition
|
|
370
|
-
|
|
371
|
-
### AUTHORING
|
|
372
|
-
|
|
373
|
-
- `AUTHORING-001` — unnecessary-complexity
|
|
374
|
-
- `AUTHORING-002` — poor-duration-selection
|
|
375
|
-
- `AUTHORING-003` — poor-media-instruction
|
|
376
|
-
- `AUTHORING-004` — unnecessary-component
|
|
377
|
-
- `AUTHORING-005` — unnecessary-effect
|
|
378
|
-
- `AUTHORING-006` — non-portable-media-path
|
|
379
|
-
- `AUTHORING-007` — stale-generated-artifact
|
|
380
|
-
|
|
381
|
-
### ENGINE
|
|
382
|
-
|
|
383
|
-
Use only when the Markdown contains a reasonable instruction and Markcut appears not to implement it correctly.
|
|
384
|
-
|
|
385
|
-
---
|
|
386
|
-
|
|
387
|
-
# Severity
|
|
388
|
-
|
|
389
|
-
- `critical` — unusable or fails the core purpose
|
|
390
|
-
- `high` — substantially damages viewer experience
|
|
391
|
-
- `medium` — noticeable and worth fixing
|
|
392
|
-
- `low` — minor improvement or polish
|
|
393
|
-
|
|
394
|
-
---
|
|
395
|
-
|
|
396
|
-
# Evidence Rules
|
|
397
|
-
|
|
398
|
-
Every issue must contain concrete evidence.
|
|
399
|
-
|
|
400
|
-
Reference, when possible:
|
|
401
|
-
|
|
402
|
-
- scene name;
|
|
403
|
-
- approximate timestamp;
|
|
404
|
-
- narration;
|
|
405
|
-
- visible content;
|
|
406
|
-
- duration;
|
|
407
|
-
- subtitle behavior;
|
|
408
|
-
- Markdown instruction.
|
|
409
|
-
|
|
410
|
-
Do not invent exact timestamps. Use approximate timestamps when necessary.
|
|
411
|
-
|
|
412
|
-
Do not report the same underlying problem multiple times. Report the root problem and mention related symptoms in the evidence.
|
|
413
|
-
|
|
414
|
-
---
|
|
415
|
-
|
|
416
|
-
# Output Format
|
|
417
|
-
|
|
418
|
-
Return the following structure.
|
|
419
|
-
|
|
420
|
-
## Overall
|
|
38
|
+
Return this information, omitting scores for dimensions not observed:
|
|
421
39
|
|
|
422
40
|
```yaml
|
|
423
|
-
score:
|
|
424
|
-
summary:
|
|
41
|
+
score: 1-5 # only if video playback was verified; average observed applicable scores
|
|
42
|
+
summary: "..."
|
|
43
|
+
verified_artifacts: [video_md, compiled_tree, video_playback] # list only those actually verified
|
|
44
|
+
scores:
|
|
45
|
+
storytelling: 1-5
|
|
46
|
+
visual_quality: 1-5
|
|
47
|
+
narration_visual_alignment: 1-5
|
|
48
|
+
timing_pacing: 1-5
|
|
49
|
+
audio: 1-5
|
|
50
|
+
subtitles: 1-5
|
|
51
|
+
platform_suitability: 1-5
|
|
52
|
+
issues:
|
|
53
|
+
- id: "AUDIO-001"
|
|
54
|
+
severity: high
|
|
55
|
+
source: ENGINE
|
|
56
|
+
scene: "Opening"
|
|
57
|
+
timestamp: "approximately 00:03"
|
|
58
|
+
evidence: "..."
|
|
59
|
+
impact: "..."
|
|
60
|
+
recommendation: "..."
|
|
61
|
+
confidence: high
|
|
62
|
+
strengths: []
|
|
63
|
+
priority_improvements: []
|
|
64
|
+
status: changes_requested # or approved, not_verified; never infer human approval
|
|
425
65
|
```
|
|
426
66
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
```yaml
|
|
430
|
-
storytelling: <1-5>
|
|
431
|
-
visual_quality: <1-5>
|
|
432
|
-
narration_visual_alignment: <1-5>
|
|
433
|
-
timing_pacing: <1-5>
|
|
434
|
-
audio: <1-5>
|
|
435
|
-
subtitles: <1-5>
|
|
436
|
-
platform_suitability: <1-5>
|
|
437
|
-
markcut_authoring: <1-5>
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
Use the average of applicable dimensions for the overall score.
|
|
441
|
-
|
|
442
|
-
## Issues
|
|
443
|
-
|
|
444
|
-
For each meaningful issue:
|
|
445
|
-
|
|
446
|
-
```yaml
|
|
447
|
-
- id: VISUAL-001
|
|
448
|
-
severity: medium
|
|
449
|
-
source: AUTHORING
|
|
450
|
-
scene: "Solution"
|
|
451
|
-
timestamp: "approximately 00:18-00:25"
|
|
452
|
-
evidence: "..."
|
|
453
|
-
impact: "..."
|
|
454
|
-
recommendation: "..."
|
|
455
|
-
confidence: high
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
If there are no meaningful issues:
|
|
459
|
-
|
|
460
|
-
```yaml
|
|
461
|
-
issues: []
|
|
462
|
-
```
|
|
463
|
-
|
|
464
|
-
## Strengths
|
|
465
|
-
|
|
466
|
-
List the most important things the video does well.
|
|
467
|
-
|
|
468
|
-
## Priority Improvements
|
|
469
|
-
|
|
470
|
-
List the three most valuable improvements, in priority order.
|
|
471
|
-
|
|
472
|
-
---
|
|
473
|
-
|
|
474
|
-
# Final Principle
|
|
475
|
-
|
|
476
|
-
Answer this question above all others:
|
|
477
|
-
|
|
478
|
-
> **If a user installed the Markcut skill and asked an LLM to create this video, did the skill enable the LLM to make good decisions?**
|
|
479
|
-
|
|
480
|
-
Evaluate the actual viewer experience, use the Markdown to understand authoring intent, distinguish authoring mistakes from engine failures, and provide actionable evidence-based feedback.
|
|
67
|
+
`status: approved` is only for a verified human-approved revision; a reviewer agent's favorable score does **not** create human approval. If video playback is not available, report `not_verified`, with the specific blocked gate. In a live MCP review, follow the returned `decision` and revision identity rather than interpreting prose alone.
|
package/src/config.mjs
CHANGED
|
@@ -3,7 +3,9 @@ import { fileURLToPath } from "node:url";
|
|
|
3
3
|
/**
|
|
4
4
|
* Default CLI templates and constants for the markcut pipeline.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* CLIs support {input}, {prompt}, {output}. Image/video hooks also support
|
|
7
|
+
* {prompt_quoted}, a shell-quoted prompt. Use it without surrounding quotes
|
|
8
|
+
* for untrusted project context.
|
|
7
9
|
* These can be overridden at runtime via --itt, --vtt, --stt, --tts, --agent flags,
|
|
8
10
|
* or via MARKCUT_*_CLI environment variables.
|
|
9
11
|
*
|
package/src/render/cli.mjs
CHANGED
|
@@ -403,7 +403,7 @@ edit=${DEFAULT_EDIT_CLI}`);
|
|
|
403
403
|
// render publicDir). Absolute paths or ".." escapes would 404 in Remotion
|
|
404
404
|
// (staticFile serves --public-dir), so fail fast with actionable errors.
|
|
405
405
|
if (renderPublicDir) {
|
|
406
|
-
const { validateAssetsRelative } = await import("./validate-assets.mjs");
|
|
406
|
+
const { validateAssetsRelative, validateLocalAssetsExist } = await import("./validate-assets.mjs");
|
|
407
407
|
const assetErrors = validateAssetsRelative(streamTree, renderPublicDir);
|
|
408
408
|
if (assetErrors.length > 0) {
|
|
409
409
|
for (const e of assetErrors) emitError(e);
|
|
@@ -529,13 +529,16 @@ function hasScript(root) {
|
|
|
529
529
|
// (the render publicDir). Absolute paths, "/..." and ".." escapes would
|
|
530
530
|
// 404 in render / break media in preview.
|
|
531
531
|
{
|
|
532
|
-
const { validateAssetsRelative } = await import("./validate-assets.mjs");
|
|
532
|
+
const { validateAssetsRelative, validateLocalAssetsExist } = await import("./validate-assets.mjs");
|
|
533
533
|
const baseDir = dirname(filePath);
|
|
534
534
|
// Descriptive trees: include.src may point outside baseDir legitimately
|
|
535
535
|
// (it is compiled against its own baseDir, then relativized).
|
|
536
536
|
for (const e of validateAssetsRelative(descriptive, baseDir, { skipIncludeSrc: true })) {
|
|
537
537
|
errors.push(e);
|
|
538
538
|
}
|
|
539
|
+
if (errors.length === 0) {
|
|
540
|
+
errors.push(...validateLocalAssetsExist(descriptive, baseDir, { skipIncludeSrc: true }));
|
|
541
|
+
}
|
|
539
542
|
}
|
|
540
543
|
|
|
541
544
|
// ── Results ─────────────────────────────────────────────────────────
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* - `markcut render` — guards the compiled tree right before rendering
|
|
17
17
|
*/
|
|
18
18
|
import { isAbsolute, relative, resolve } from "node:path";
|
|
19
|
+
import { existsSync } from "node:fs";
|
|
19
20
|
|
|
20
21
|
const REMOTE_RE = /^(https?:|data:|blob:|file:)/i;
|
|
21
22
|
/** Subtitle `src` is only a file when it points at a .vtt — otherwise it is inline caption text. */
|
|
@@ -138,3 +139,21 @@ export function validateAssetsRelative(tree, baseDir, opts = {}) {
|
|
|
138
139
|
}
|
|
139
140
|
return errors;
|
|
140
141
|
}
|
|
142
|
+
|
|
143
|
+
/** Optional verify-time existence check for local source assets.
|
|
144
|
+
* Remote, inline, generated template paths and include nodes are not checked here.
|
|
145
|
+
* Runtime-generated media is validated after it has been resolved by the pipeline.
|
|
146
|
+
*/
|
|
147
|
+
export function validateLocalAssetsExist(tree, baseDir, opts = {}) {
|
|
148
|
+
const errors = [];
|
|
149
|
+
for (const ref of collectTreeAssets(tree, opts)) {
|
|
150
|
+
const kind = classifyAssetPath(ref.value, { subtitle: ref.subtitle });
|
|
151
|
+
if (kind !== "relative" || ref.value.includes("${")) continue;
|
|
152
|
+
const path = resolve(baseDir, ref.value);
|
|
153
|
+
if (relative(baseDir, path).startsWith("..")) continue;
|
|
154
|
+
if (!existsSync(path)) {
|
|
155
|
+
errors.push(`Missing local asset: ${ref.path}.${ref.field} = "${ref.value}" (expected at ${path})`);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return errors;
|
|
159
|
+
}
|