Skip to content

feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.3.1) - #146

Open
Lumos-789 wants to merge 1 commit into
zai-org:mainfrom
Lumos-789:feat/delivery-video
Open

Lumos-789 wants to merge 1 commit into
zai-org:mainfrom
Lumos-789:feat/delivery-video

Conversation

@Lumos-789

@Lumos-789 Lumos-789 commented Oct 31, 2026 •

Copy link
Copy Markdown

Plugin type (required) / 插件类型(必填)

  • UI Plugin / 是 UI 插件 — provides MCP Apps interactive pages / 提供 MCP Apps 交互页面
  • Standard plugin / 普通插件(非 UI) — does not provide MCP Apps interactive pages / 不提供 MCP Apps 交互页面
  • Not applicable / 不适用 — repository-only changes; no plugin content changed / 仅仓库级改动,不涉及插件内容

Affected plugin name(s) / 涉及的插件名称:delivery-video

What / 改动内容

EN — Adds delivery-video, which turns a real screen recording of working software into a delivery video with narration, karaoke subtitles and a deterministic quality gate — plus a feedback mode that binds a defect report to one specific cut of that video.

  • preflight.py / render.py / verify_delivery.py are real commands. render.py enforces the same validation as preflight.py and synthesizes every narration before it renders a frame.
  • The evidence chain is mechanical: quality_gate/report.json binds the artifact SHA256, episode.json, timeline.json, the generated note and each take's SHA256, and verify_delivery.py recomputes all of them — anything edited after rendering fails verification.
  • Every render writes a review/ packet (start/mid/end frames per segment, contact sheets, a review skeleton). verify_delivery.py requires the completed visual-critic.json and checks that it covers every segment and the ending.
  • kind: "card" segments add renderer-made title cards; the gate exempts their intervals from the freeze and silence scans and fails (C301) when cards exceed a quarter of the video, or 8 seconds in a short video, or run longer than the real footage.
  • Playback speed is disclosed: each segment's real rate is recorded in timeline.json and the generated note.

中文 — 新增 delivery-video:把真实录屏做成带旁白、逐字高亮字幕与确定性质量闸的交付视频,并支持把缺陷反馈绑定到某个具体成片。1.3.x:渲染强制执行与预检同一套校验;脚本、时间轴、素材指纹与自动说明一并绑进质量报告并由核验逐项复核;每次渲染产出审片包,核验必须有完整的 visual-critic.json;支持标题卡片并按时间轴豁免其静止与静音;变速倍速写进时间轴与自动说明。

Visible behavior and testing / 可见行为与测试

  • python3 -B -m unittest discover -s tests → 142 passed on Python 3.14.4 and again on Python 3.9.6; node --test tests/test_plugin.mjs → 3 passed.
  • An offline end-to-end suite drives the real renderer with a stub narration service: delivery and feedback episodes, cards, the review packet, the evidence bindings (an edited script, timeline, take or note each fails verification), mandatory review coverage, and the failure paths.
  • Playback direction is asserted on frame content with a time-coded take: a 1.54x segment shows source seconds 2 and 4 where the previous formula showed 1 and 2.
  • Take safety: a segment id equal to its take's file name, a take reached through a case variant or a symlink into an output folder, a truncated take, ids that differ only by case — each is rejected and the take stays byte-identical.
  • Two independent audit rounds (1 high / 2 medium / 10 low, then 1 high / 1 medium / 2 low) were each closed with a regression test.
  • One live call to the edge-tts endpoint: 13 word boundaries aligned to the text, and the content-addressed cache was reused on the second call.

Not covered by this round / 本轮未覆盖:

  • Not verified: Windows behaviour, real variable-frame-rate takes (the fixtures are constant-frame-rate), and the live narration service beyond one sentence.

Version and marketplace registration / 版本与市场注册

  • Plugin directory external_plugins/delivery-video/ (25 files), manifest and marketplace.json entry both at 1.3.1.
  • Category productivity; icon added at the repo-root path the entry uses (assets/delivery-video/icon.png, 512×512).
  • description_i18n carries en and zh-CN, identical in both files; README.md / README_CN.md both present and equivalent.

Dependencies, network, permissions, side effects / 依赖、网络、权限与副作用

  • Python 3.9+ for the bundled scripts (no Node needed to run them); ffmpeg/ffprobe for rendering and the video checks; pip install "edge-tts>=7.3.1" Pillow.
  • edge-tts for narration uses Microsoft's public TTS endpoint over the network — this is the only network dependency, and it is documented in both READMEs.
  • Writes the artifact, timeline.json, the generated note, quality_gate/report.json, the review/ packet and per-segment clips under the build directory passed to it. It never writes visual-critic.json and never writes into the plugin directory.
  • No credentials, no telemetry, no bundled binaries.

Licensing / provenance / 许可与来源

  • MIT (LICENSE ships in the plugin directory); code written for this submission.
  • Narration is synthesised by edge-tts (MIT) at run time; no voice assets are redistributed.

Self-check / 自查清单

  • Plugin name is unique kebab-case; new external plugin directory is external_plugins/delivery-video/; existing fixes retain ownership / 插件名唯一且 kebab-case,外部新增插件位于 external_plugins/delivery-video/,已有插件修复保留原归属
  • Usage category is set independently of publisher ownership / 用途分类 category 已填写,与维护归属分开:productivity
  • Plugin type and affected names are declared above / 已在上方声明插件类型与涉及的插件名称
  • version bumped in BOTH plugin.json and marketplace.json (artifacts are immutable) / plugin.json 与 marketplace.json 两处版本号已同步升级:1.3.1
  • README.md (EN) and README_CN.md (中文) both updated and equivalent / 中英文 README 均已更新且语义一致
  • description_i18n has both en and zh-CN / description_i18n 包含 en 与 zh-CN
  • No secrets, machine-specific paths, or private dependencies / 不含密钥、机器专属路径或私有依赖
  • Model/API/network dependencies documented / 模型、API、网络依赖已写明(见上方依赖小节与两个 README)
  • python3 scripts/validate.py passes on this branch, and the plugin artifact was built through the same build_zip() code path CI uses (size and sha256 in the comment below). The full python3 scripts/build_dist.py needs the repo's UI-plugin pnpm build and fails identically on upstream main (excalidraw: incomplete build), so CI runs it here — see the note above. / 本地 validate.py 通过,本插件产物用 CI 同一条 build_zip() 路径打出(体积与 sha256 见下方评论);完整 build_dist.py 依赖仓库自带 UI 插件的 pnpm build,在 main 上同样失败,交由 CI 执行

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.0 feat(delivery-video): add delivery-video plugin v1.0.1 Nov 2, 2026
@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.1 feat(delivery-video): add delivery-video plugin v1.0.2 Nov 2, 2026
@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.2 feat(delivery-video): add delivery-video plugin v1.0.3 Nov 2, 2026
@panda920

panda920 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@panda920

panda920 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.3 feat(delivery-video): add delivery-video plugin v1.0.4 Nov 2, 2026
@jacksonliuyn

jacksonliuyn commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

The current verification notes mainly cover DeepSeek Harness. Could you also document testing in ZCode? Has the full flow been tested successfully in ZCode: plugin installation → Skill invocation → recording → video generation and verification?

Please include the ZCode version, operating system, and results for each step, and explicitly note any steps that have not yet been verified.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.4 feat(delivery-video): add delivery-video plugin v1.0.5 Nov 2, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Added the requested ZCode acceptance matrix to the PR body. The tested environment was ZCode CLI 0.17.1 on macOS 27.0.1 (26A434, arm64), Node v24.15.0, Python 3.14.4 and FFmpeg 8.1.1.

  • Plugin installation: PASS via a local development marketplace. delivery-video@dev-delivery-video-local 1.0.5 reported skillCount=1, skillRootCount=1 and no diagnostics.
  • Skill invocation: PASS with delivery-video:delivery-video; it resolved to the installed cache path, not the old ~/.agents copy.
  • Recording: PASS. A fresh headless Playwright capture produced a 1920x1080, 313-frame, 10.433s browser take with matching evidence.
  • Video generation: PASS using the installed plugin's render.py render; output was 11.800s, 1920x1080, 30fps, h264 + AAC, SHA256 eecf8d6d599a46a03352177b4cf92e1ce7324a0eee33b86fddc099916544f516.
  • Verification: PASS with verify_delivery.py; score 100, zero hard failures, zero warnings, three shots. M111 remains an informational notice.

The full recording → render → verify chain ran in one ZCode Agent session. Not verified in ZCode: installation/update from the public marketplace index, Windows/Linux, an independent visual-critic.json review, and upload/publish. The ZCode CLI headless runner on this app bundle needed a local built-in-provider path shim; that is a launcher/environment issue, not plugin code. No video was uploaded or published.

One ZCode-specific usability note is documented: when ~/.agents/skills/delivery-video already exists, unqualified /skill delivery-video selects the older user copy. Select delivery-video:delivery-video or use /skill delivery-video:delivery-video <task> to invoke the installed plugin.

@Lumos-789

Copy link
Copy Markdown
Author

ZCode acceptance v2: full lifecycle, failure paths, and sample renders

Tested on 2026-11-02 with ZCode CLI 0.17.1 on macOS 27.0.1 (26A434, arm64), Node v24.15.0, Python 3.14.4 and FFmpeg 8.1.1, plus one Linux run inside python:3.11-slim with Debian ffmpeg and fonts-noto-cjk. The plugin was the 1.0.5 build installed from a local development marketplace; every command below ran against the installed cache path, not the source tree.

Install lifecycle

Scenario Result Evidence
Fresh install (1.0.5) PASS Installed plugin delivery-video@dev-delivery-video-local (1.0.5) [enabled]; plugins list reports skills: 1; skills list shows exactly one delivery-video:delivery-video at .../cache/dev-delivery-video-local/delivery-video/1.0.5/skills/delivery-video/SKILL.md
Manifest validation PASS zcode plugins validate succeeds on both the marketplace copy and the installed cache
Update 1.0.4 → 1.0.5 PASS Installed 1.0.4 from a second local market, bumped that market to 1.0.5, plugins update reported Updated ... from 1.0.4 to 1.0.5 and the cache path moved to 1.0.5
Disable / enable PASS plugins disable removes the delivery-video:delivery-video entry from skills list (count 1 → 0); enable restores it (0 → 1)
Uninstall PASS plugins uninstall --force removes the plugin from plugins list and from skills list

Skill selection

Scenario Result Evidence
Qualified invocation PASS Session asked to use delivery-video:delivery-video resolved .../cache/dev-delivery-video-local/delivery-video/1.0.5/skills/delivery-video/SKILL.md and .../scripts/render.py, with a working directory containing Chinese characters and spaces
Bare name with an older ~/.agents/skills/delivery-video present Expected The unqualified name loads ~/.agents/skills/delivery-video/SKILL.md; this matches the README note, so the qualified name is required when both copies exist
Natural-language trigger with both copies present Observation "record a delivery video for the feature we just finished" also selects the older user copy, because its description matches better and it owns the bare name. On a machine without that manual copy, the plugin Skill is the only match. No plugin change made; README already tells users to use delivery-video:delivery-video

Recording → render → verify (real ZCode Agent session)

One headless ZCode session ran the installed plugin end to end in .../zcode-matrix-.../中文 空格 工作区:

Step Result Evidence
Real recording PASS Headless Playwright capture of the test page: 1920x1080, 314 frames, 10.467s, evidence SHA256 95c17137cf5b3bd7fccdb32a727ec694f65857736ee94f0d06f3960553633d89
preflight.py PASS 3 segments OK; one expected warning that TTS was not cached yet
render.py render PASS 11.800s, 1920x1080, 30fps, h264 + AAC, gate=pass, score 100
verify_delivery.py PASS DELIVERY=PASS, 3 shots, 0 hard failures, 0 warnings; M111 stays informational (607 kbps bitrate density)
Re-render determinism PASS Second render produced a byte-identical artifact: 1491fe00db39c6947128f016bc360333bc5c61d3e624e29098446d7ad42194f5
Independent render.py gate on the mp4 PASS GATE=PASS ... score=100 profile=delivery-v1
Key-frame review PASS Frames at 1.5s / 5.0s / 9.0s inspected at 1080p: labels, subtitles and the read-back state are all legible

Failure paths

Scenario Result Evidence
--require-critic without visual-critic.json Fails as designed FAIL: missing independent visual review: .../visual-critic.json, exit 1
Tampered artifact Detected Appending bytes to a copy of the mp4 gives FAIL: quality report is not bound to this artifact (video_sha256 missing or mismatched), exit 1
No ffmpeg / ffprobe on PATH Clean failure preflight.py, render.py gate and verify_delivery.py each exit 1 with actionable messages such as FAIL: ffmpeg is not on PATH and missing required executable(s): ffmpeg, ffprobe; no Python traceback

Linux host

The same episode was rendered inside python:3.11-slim with Debian ffmpeg and fonts-noto-cjk:

  • preflight.py: PASS (3 segments)
  • render.py render: PASS, 11.800s, score 100
  • verify_delivery.py: PASS, 3 shots, 0 hard failures, 0 warnings
  • SHA256: 2e464f799db469e70bbeb890d2487ef2a4df68173c0f493506565746017b3e42

Sample renders for review

Both files come from the same three-segment episode and were gated at score 100:

  • screen_demo-macos.mp4 — macOS arm64, sha256 1491fe00db39c6947128f016bc360333bc5c61d3e624e29098446d7ad42194f5
  • screen_demo-linux.mp4 — Linux container, sha256 2e464f799db469e70bbeb890d2487ef2a4df68173c0f493506565746017b3e42

These are attached as a pre-release on my fork purely as review evidence, not as a plugin release. Both URLs were re-downloaded and hashed after upload; the hashes above match the rendered files.

ZCode CLI observations (not plugin defects)

  • Two marketplaces exposing the same plugin name can both be enabled, which produces two identical delivery-video:delivery-video entries. plugins update delivery-video then requires the qualified delivery-video@<marketplace> form.
  • In a non-interactive shell plugins uninstall requires --force; even then, versioned cache directories for a removed development market remain on disk.
  • The CLI inside the macOS app bundle needs a built-in-provider config path shim to run headless on this machine. That is a launcher/environment issue, not plugin code, and it is absent on the normal desktop path.

Still not verified in ZCode

Install or update from the public marketplace index (this round used local development marketplaces only), Windows, the desktop GUI flow (all runs above used the CLI headless runner), an independent visual-critic.json review, delivery.md generation, and upload/publish of user videos.

@Lumos-789

Copy link
Copy Markdown
Author

Session IDs behind the matrix above

ZCode persists every CLI run as a session. These are the exact session IDs behind the acceptance table, recorded on 2026-11-02 (times Asia/Shanghai) in /Users/black-wood/IdeaProjects/oss-projects/.agents/zcode-matrix-20261102-183213/中文 空格 工作区:

Session ID Started What it covered Result
sess_c9dc2a1a-ce2f-4254-a92e-a15e98aa4ec0 18:33:52 CLI/auth sanity prompt, /private/tmp PASS: PING-OK
sess_8725d5ea-7cc6-44ce-9982-486235fde7be 18:34:13 Qualified invocation delivery-video:delivery-video PASS: resolved the installed cache path and its scripts/render.py
sess_dc957781-c2dd-4723-b6ee-4bb0daba6470 18:34:37 Unqualified name with the older ~/.agents copy present Expected: resolved the user-level copy
sess_58d5ae5f-b7a1-44e8-813c-908095f82cba 18:35:47 Full chain with the installed plugin: preflight → render → verify PASS: 11.800s, 1920x1080, 30fps, h264+AAC, score 100, sha256 1491fe00db39c6947128f016bc360333bc5c61d3e624e29098446d7ad42194f5
sess_752cab8b-b9a6-4d6d-af7b-b801bef7f3b8 18:40:03 Natural-language trigger with both copies present Observation: selected the user-level copy; the qualified name selects the plugin

Prior round (the earlier single-session evidence, recorded 18:08 in zcode-e2e.Qx5Y8G): sess_9d5551b4-4d0a-42a3-9026-8d3beb007931 — 11.800s, 1920x1080, 30fps, h264+AAC, score 100, sha256 eecf8d6d599a46a03352177b4cf92e1ce7324a0eee33b86fddc099916544f516.

Full index with the same table: zcode-session-index.md.

To inspect locally, ZCode stores sessions in ~/.zcode/cli/db/db.sqlite (table session, columns id, title, directory, time_created) and writes per-session model I/O to ~/.zcode/cli/rollout/model-io-<session-id>.jsonl.

Two caveats: session IDs are local to the machine that ran the test (-p headless runs are not resumable remotely), and the lifecycle/failure-path checks (zcode plugins ..., missing-ffmpeg runs, tamper test) ran outside Agent sessions, so they have no session id. Those are reproducible with the commands listed in the previous comment.

@Lumos-789

Copy link
Copy Markdown
Author

@jacksonliuyn the ZCode verification you asked for is in the two comments above; linking them here so they are easy to find:

Short version: yes, the full chain passes in ZCode CLI 0.17.1 on macOS 27.0.1 (26A434, arm64) — plugin installation → Skill invocation → recording → video generation → verification, plus a Linux container run. Install/update/disable/enable/uninstall and the failure paths (missing ffmpeg, tampered artifact, --require-critic) behave as designed.

Not verified: install/update from the public marketplace index, Windows, the desktop GUI flow, an independent visual-critic.json, delivery.md generation, and upload/publish.

No code changes were needed; the head is still 0806be8.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.5 feat(delivery-video): add delivery-video plugin v1.0.6 Nov 2, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Case-driven delivery demo (1.0.6 guidance, real run)

1.0.6 adds optional case-driven recording guidance: when a video covers two or more acceptance cases, write the case list first, record one real run per case, and give each case its own result segment. It is guidance only — no new gate.

We exercised this flow on a real local project (an after-sales ticket handover desk, iterated v1 → v2: bulk assignment, closed-ticket guard, audit log) and recorded two acceptance cases with the installed plugin:

  • C-01 bulk assignment (21.7s): 3 tickets assigned to one owner, owner read back after refresh, 3 audit entries shown.
  • C-02 closed-ticket guard (19.3s): 2 tickets assigned normally, 1 closed ticket skipped with the reason stated on screen; the audit log shows both outcomes.

Both renders passed the built-in delivery gate at score 100 and verify_delivery.py. Each case ran with its own port and its own SQLite database, so one case's result state cannot bleed into the next.

Videos and the case list (prerelease release assets, not committed to git):

Both SHA256 values were re-verified against the downloaded release assets. Demo data is synthetic; no independent visual critic was run for these two renders.

@panda920

panda920 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789
Lumos-789 force-pushed the feat/delivery-video branch from a7307ec to 37ee64c Compare November 3, 2026 06:35
@panda920

panda920 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.0.6 feat(delivery-video): add delivery-video plugin v1.1.1 Nov 4, 2026
@Lumos-789

Copy link
Copy Markdown
Author

1.1.1 feedback report videos — ZCode verification (2026-11-04)

Updated this PR in place to 1.1.1: full payload re-sync, marketplace.json version/description/description_i18n matching plugin.json verbatim, new examples/feedback-episode.example.json.

Environment: ZCode CLI 0.17.1, macOS arm64, Python 3.14.4, FFmpeg 8.1.1. Installed with zcode plugins update delivery-video@dev-oss-projects → 1.0.6 → 1.1.1, then ran two real Agent sessions with zcode -p --mode yolo, forcing the qualified skill name delivery-video:delivery-video.

Session Episode Steps Artifact
sess_093bf999-816a-452d-9a8b-a4ad5d7e259a feedback (intent: "feedback") preflight PASS → render gate=pass score 100, 13.500s → verify DELIVERY=PASS SHA256 1c09efecbcb5758a1fab876176b7c4cb0eeab1a2849271c45a14d382928185a6
sess_56fa275f-98f3-402f-a9e6-19690b6fc9d2 delivery (regression) preflight PASS → render gate=pass score 100, 12.600s → verify DELIVERY=PASS SHA256 375f1bd830db2fca55d09d35c72a39bebbebdc4bf20799c0038bd5abcdb7a005

In both sessions the agent resolved the scripts from the installed cache ~/.zcode/cli/plugins/cache/dev-oss-projects/delivery-video/1.1.1/skills/delivery-video/scripts/, not from the repo checkout.

Feedback artifacts: feedback.json (issue ZCODE-VERIFY-1, severity critical) and feedback.generated.md. Frame inspection confirmed P1 CRITICAL + REPRO chips with the repro panel on segment 1 and P1 CRITICAL + ACTUAL on segment 2.

Repo-side gates for the same commit: npm test PASS (12 Python + 3 Node), plugin_acceptance.py PASS delivery-video@1.1.1, marketplace_check.py OK, public release gate 0 blocking findings.

Not covered: uploading/publishing to a customer channel (none was performed), external visual-critic.json review, and a Windows/Linux host re-run.

@panda920

panda920 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789
Lumos-789 force-pushed the feat/delivery-video branch from ca69516 to f1e0601 Compare November 4, 2026 18:20
@Lumos-789 Lumos-789 changed the title feat(delivery-video): add delivery-video plugin v1.1.1 feat(delivery-video): add delivery-video plugin v1.1.2 Nov 4, 2026
@Lumos-789
Lumos-789 force-pushed the feat/delivery-video branch from f1e0601 to a3377d7 Compare November 4, 2026 18:23
@Lumos-789

Copy link
Copy Markdown
Author

Third round — review & simplification (2026-11-05)

No new features. Most of what this round fixed is documentation that described behaviour the code does not have — worth flagging because a reviewer reading only the docs would draw the wrong conclusions:

Doc said Code does
speed is "clamped" to 0.3x–3x it is hard-checked: preflight FAIL / RenderError, never silently adjusted
output must be "h264 + AAC" only h264 / 1080p30 are hard; non-AAC is warning E102 and the run still reports DELIVERY=PASS
--require-critic enforces E401 E401 does not exist; the real message is missing independent visual review: …
the AI-tone red line catches "this is not X, it's Y" the only pattern is the Chinese 这…不是…而是/是
demo-stage defaults to crop [260,64,1340,780] window captures default to that; demo-stage evidence is validated against the full 1920×1080 frame

Also removed: the quality_gate-reviewed fallback (no producer, no test, no docs — it could only fire for a directory nobody creates), a set of constants preflight.py had copied from render.py while already importing from it, and three duplicated blocks (case list, feedback rules, browser-evidence contract) that now point at their single source.

Verification: 18 Python + 3 Node tests pass (re-run), tools/plugin_acceptance.py and the public-release gate are clean, and the install lifecycle matrix passes for 1.1.2.

Payload: re-synced, 18 files, verified blob-by-blob against Lumos-789/delivery-video-plugin@1a32ddd. Note the payload lives at external_plugins/delivery-video/ (plugin name) even though the repo is delivery-video-plugin — the marketplace entry's source points there.

Not verified this round: no new recording was produced; the quality-gate logic and thresholds are byte-identical to 1.1.2 as reviewed above.

@Lumos-789

Copy link
Copy Markdown
Author

A real render was run on 1.1.2 (2026-11-05)

Not a new recording for delivery, but a live exercise of the whole pipeline with a genuine 1920×1080@30 take captured from a real browser session:

preflight.py → PREFLIGHT=PASS (2 segments, both in range) → render.py render → edge-tts narration synthesized, subtitles word-synced, segments concatenated, gate executed → verify_delivery.py.

The gate rejected my footage, correctly. Four attempts against the same static source:

Attempt Gate
full frame, 2 segments gate=fail score 80 — T301 longest freeze 4.7 s, T304 frozen frames 87 %
tighter crop score 80 — same two
shorter narration (0.36x → 0.71x) score 88 — T301 cleared, T304 68 %
1.4 s windows, +80 % narration rate score 90 — T304 62 %

verify_delivery.py reported DELIVERY=FAIL issues=2 and exit 1 every time. The source was a scripted fixture scene that holds still for 2.5 s per step, so it cannot pass a "no long static stretches" rule — the rule doing its job rather than a defect.

What this confirms: the render path, TTS, subtitle timing and both gate implementations run end-to-end on 1.1.2; the hard-failure thresholds fire and are not advisory.

What it does not confirm: a passing sample on 1.1.2. Producing one needs footage with sustained motion (real interaction, scrolling, typing), which this round did not have.

@panda920

panda920 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789

Copy link
Copy Markdown
Author

Update: payload bumped to 1.2.1 (head 7f2edf8). Payload refreshed to the current main repo (byte-identical, verified MATCH). This round is a behavior-preserving cleanup: redundant comments and dead code removed, docs re-aligned with the code. Full test suite, packaging gates (plugin acceptance / simplify / public release) and the install lifecycle matrix all pass locally.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.1) feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.2) Nov 12, 2026
@Lumos-789

Copy link
Copy Markdown
Author

1.2.2 — fresh-eyes review round, every defect reproduced with real ffmpeg 8.1.1 first.

  • The black-frame hard check never fired: blackdetect prints black_start:6 (no space after the colon) and the parser required one — a 12s clip ending in 6s of black passed clean → now FAIL with the span reported.
  • A freeze running to end-of-video produces no freeze_end and the span was dropped → now closed at the total duration and gated.
  • The feedback tamper binding is now enforced whenever the binding fields exist in report.json, not only while episode.json keeps intent: feedback (deleting the intent no longer disarms it).
  • demo-stage evidence follows the documented contract — no invented size requirement; the build-name rejection names preflight, which is the component that actually rejects.
    Tests: 29 passed (was 21) + node 3. Manifest + marketplace entry at 1.2.2.

@panda920

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! This PR no longer applies cleanly on top of the latest main (conflicts in: marketplace.json). Please rebase onto main and push again; it will be picked up automatically.

🤖 Copy this prompt into Claude Code / Codex to fix it
You are updating my pull request #146 to github.com/zai-org/zcode-plugins (the ZCode plugin marketplace).
The maintainers' automated intake reported: the PR conflicts with the latest main

Conflicting files: marketplace.json

Fix it in this repository:
- New external plugins belong under external_plugins/<my-plugin>/; keep existing plugins in their current directory;
  never modify .github/, scripts/, tests/, .gitignore, .gitattributes or AGENTS.md.
- Follow CONTRIBUTING.md and AGENTS.md: the manifest lives at <plugin-directory>/.zcode-plugin/plugin.json,
  its name/version must match marketplace.json, names are kebab-case, keep the required i18n fields.
- Fetch the latest main of zai-org/zcode-plugins and rebase onto it; if marketplace.json conflicts,
  keep every existing entry and re-add mine.
- Run `python scripts/validate.py` until it passes, then force-push my PR branch.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.2) feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.3) Nov 17, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Payload refreshed to 1.2.3: new 1-bit monochrome pixel icon (a shared pixel-art family across our six plugins) plus version bump; rebased as a single commit onto current upstream main, payload blobs reused byte-for-byte. Source: Lumos-789/delivery-video.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.3) feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.4) Nov 18, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Review-fix round — 1.2.4 (9 items from the audit, payload refreshed to Lumos-789/delivery-video-plugin@3368240):

  • Doc/threshold mismatch: episode-and-review.md claimed a static stretch is only worth cutting past ~8s, while the gate hard-fails at 2s (T301, T304 at 20% of the video). The doc now says ~2s, matching what the gate actually enforces.
  • Malformed episode input no longer crashes with a bare traceback: invalid JSON, non-object episodes/segments, duplicate ids and non-numeric start/end all raise RenderError and print the usual FAIL: line; verify_delivery.py likewise records a FAIL: entry instead of dying on segment.get.
  • Fixed a real deadlock window: both ffmpeg processes ran with stderr=PIPE that nobody read until after the frame loop — a >64KB log froze both pipes. stderr now goes to temp files read after both processes exit.
  • Honest loudness reporting: a failed ebur measurement is no longer silently skipped; the gate prints a WARN and records loudness_lufs: null in checks.
  • One fps judgment, not two: verify_delivery.py now reads avg_frame_rate like the render gate does, instead of r_frame_rate.
  • Zero npm dependencies: index.js parses the SKILL.md frontmatter with a small hand-rolled parser (flat scalars + one metadata nesting level); the yaml dependency is gone. Also: .codex-plugin description aligned with current wording, the retired pi keyword dropped, and the official example no longer crops all three segments (full frame is the documented recommendation).

Tests: 29 passed (python3 -m pytest tests/ -q, re-run for this release). Release gates (plugin acceptance / simplify / public release) all green. Version: 1.2.4.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789

Copy link
Copy Markdown
Author

Rebased onto the latest main (five new official plugins landed upstream): single-commit rebuild, payload blobs reused byte-for-byte, marketplace entry re-inserted with every upstream entry kept. Payload verified against the source repo (byte-identical) and scripts/validate.py passes on the new head. No plugin behaviour changed — same version, same content.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.4) feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.5) Nov 24, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Payload refreshed to 1.2.5. The previously noted local fixes are folded into a released version (no new behavior beyond them):

  • An unparsable avg_frame_rate (0/0) no longer escapes as a bare traceback: the quality gate records an M102 failure and verify_delivery.py prints a FAIL: line; the same division in render.py is guarded (regression tests 29 → 31).
  • Preflight/verify size-error wording says evidence-backed source/shot instead of browser, matching the source values the evidence rule covers.
  • A redundant narration check dropped.

CHANGELOG documents the round. Branch rebuilt as a single commit on current upstream main; verify_pr_payload MATCH (18 files).

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.2.5) feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.3.0) Nov 27, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Updated to 1.3.0 — verification (2026-11-27)

Behavior changes since 1.2.5 (full list in CHANGELOG.md):

  • The evidence chain is closed: quality_gate/report.json binds episode.json, timeline.json, the generated note and every take's SHA256 next to the artifact, and verify_delivery.py recomputes all of them — anything edited after rendering fails verification.
  • render.py enforces the same validation as preflight.py and synthesizes every narration before rendering a frame. It can no longer write over a take: per-segment clips live in clips/, and a take may not sit in the renderer's output locations, however its path is spelled.
  • Every render writes a review/ packet. verify_delivery.py now requires a completed visual-critic.json; the --require-critic flag is gone.
  • New kind: "card" segments (title cards). The gate leaves their intervals out of the freeze and silence scans and fails with C301 when cards cover more than a quarter of the video.
  • Default layout is fullbleed; subtitles light up character by character; the macOS font face is the Simplified-Chinese one.
  • Fixed a defect present since 1.0: playback speed was inverted, so a "fast-forwarded" segment was actually slowed down.
  • The narration cache is content-addressed, and a failed loudness measurement is now a hard failure (L102).

Branch checks

  • python3 scripts/validate.py on this branch's full tree: OK: 59 plugin(s) validated.
  • build_zip() (the CI code path) for external_plugins/delivery-video: 25 files, 234,971 bytes, sha256 e36724259361ab050f383dd4c4a221f8d29eb2c1077354dc9ff680962e85d62f.
  • The payload matches source commit 0ac3300 blob for blob (25 files); plugin.json and marketplace.json are both at 1.3.0.

Tests: 138 Python tests pass on 3.14.4 and again on 3.9.6; 3 Node tests pass. The suite includes an offline end-to-end render driven by a stub narration service and frame-content assertions for playback direction.

Real run from the installed plugin (installed 1.3.0 from a directory marketplace, scripts resolved from the install cache, live edge-tts narration). The take is a synthetic test pattern, not a real screen recording.

Step Result
Render: opening card, three shots, closing card gate=pass score=100, 21.500 s, h264 1920x1080 30 fps with AAC, sha256 83e2562aa4c11bf24cc3acc0e08594730d20b965f6d60fda609114180af52423
Verify without a review record DELIVERY=FAIL: missing visual review
Verify with the completed visual-critic.json DELIVERY=PASS; bindings present for episode, timeline, delivery and the card intervals
episode.json edited after rendering DELIVERY=FAIL: episode.json was edited after rendering
Attachment gate without --timeline GATE=FAIL with T301 on the static card and a pointer to --timeline; with --timeline it is GATE=PASS
Cards over a quarter of the video C301 hard failure; the material had to be rebalanced, as designed

The install lifecycle (install, disable, enable, uninstall, reinstall) passes for 1.3.0. A read-only headless session invoking delivery-video:delivery-video loaded the skill from the 1.3.0 install cache and answered from it without running any command.

Not covered: a real screen recording as the take, Windows, real variable-frame-rate recordings, the live narration service beyond a few sentences, and an independent second-model visual review — the review above was recorded in the same session.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

@Lumos-789 Lumos-789 changed the title feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.3.0) feat(delivery-video): add the delivery-demo and feedback-recorder plugin (1.3.1) Nov 27, 2026
@Lumos-789

Copy link
Copy Markdown
Author

Updated to 1.3.1 — verification (2026-11-27)

One change since 1.3.0: C301 no longer blocks a normal narrated opening card and closing card in a short video. 1.3.0 failed any video whose cards exceeded 25% of its length, which a 5–6 second narrated opening plus a closing card does in everything under about 30 seconds. Cards may now take up to 8 seconds regardless of the share, provided the real footage runs at least as long as the cards; a slideshow still fails. SKILL.md and the reference state the rule.

Branch checks

  • python3 scripts/validate.py on this branch's full tree: OK: 59 plugin(s) validated.
  • build_zip() (the CI code path) for external_plugins/delivery-video: 25 files, 235,544 bytes, sha256 4e8b58461c8626112eacc36dbc826398b4e08bd1beae1c0cc31a03ab6152bc76.
  • The payload matches source commit b0e5793 blob for blob; plugin.json and marketplace.json are both at 1.3.1.

Tests: 142 Python tests pass on 3.14.4 and again on 3.9.6; 3 Node tests pass.

Real run from the installed plugin (installed 1.3.1 from a directory marketplace, scripts resolved from the install cache, live edge-tts narration). The take is a synthetic test pattern, not a real screen recording.

Case Result
Narrated opening card (6.2 s), two shots and a closing card — a 20.2 s video with 38% cards, the configuration 1.3.0 rejected gate=pass score=100; verify_delivery.py → DELIVERY=PASS; sha256 fe65dde07709e01a65ab5e620b75bcb55b774130e629822dffdca0846a8b2305
The same video with the closing card stretched to 3 s (9.2 s of cards) C301: the cards take 9.2 s of a 21.7 s video, over the 8 s allowance
The take replaced after rendering DELIVERY=FAIL: take changed after rendering

The install lifecycle (install, disable, enable, uninstall, reinstall) passes for 1.3.1. A read-only headless session invoking the skill loaded it from the 1.3.1 install cache and stated the card rule from it without running any command.

Not covered: a real screen recording as the take, Windows, real variable-frame-rate recordings, and an independent second-model visual review.

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants