Agent Skillsopensquilla/opensquilla › short-drama-delivery-audit

short-drama-delivery-audit

GitHub

短剧发布前的确定性交付审计门控,校验媒体凭证、付费提交状态及视频可播放性和时长合规性。

src/opensquilla/skills/bundled/short-drama-delivery-audit/SKILL.md opensquilla/opensquilla

Trigger Scenarios

短剧最终视频发布前验证 检查媒体收据和付费处置状态

Install

npx skills add opensquilla/opensquilla --skill short-drama-delivery-audit -g -y
More Options

Non-standard path

npx skills add https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/bundled/short-drama-delivery-audit -g -y

Use without installing

npx skills use opensquilla/opensquilla@short-drama-delivery-audit

指定 Agent (Claude Code)

npx skills add opensquilla/opensquilla --skill short-drama-delivery-audit -a claude-code -g -y

安装 repo 全部 skill

npx skills add opensquilla/opensquilla --all -g -y

预览 repo 内 skill

npx skills add opensquilla/opensquilla --list

SKILL.md

Frontmatter
{
    "name": "short-drama-delivery-audit",
    "metadata": {
        "platform": {
            "install": [
                {
                    "id": "media-ffmpeg",
                    "os": [
                        "darwin",
                        "linux",
                        "windows"
                    ],
                    "bins": [
                        "ffprobe"
                    ],
                    "kind": "toolchain",
                    "label": "Install verified FFmpeg toolchain"
                }
            ],
            "requires": {
                "bins": [
                    "ffprobe"
                ],
                "anyBins": [
                    "python",
                    "python3"
                ]
            }
        },
        "opensquilla": {
            "risk": "medium",
            "capabilities": [
                "filesystem-read",
                "process-control"
            ]
        }
    },
    "entrypoint": {
        "args": [
            "--run-dir",
            "{{ with.run_dir }}"
        ],
        "parse": "json",
        "stdin": "{{ with.runtime | tojson }}",
        "command": "python {baseDir}\/scripts\/audit_delivery.py",
        "timeout": 30
    },
    "provenance": {
        "origin": "opensquilla-original",
        "license": "Apache-2.0"
    },
    "description": "Internal deterministic delivery gate for meta-short-drama. Verifies real-provider image\/video receipts, parent-owned paid-submission dispositions, runtime fallback evidence, decodability, and content-versus-final duration with ffprobe.",
    "user-invocable": false,
    "disable-model-invocation": true
}

short-drama-delivery-audit

Internal machine-owned gate used immediately before meta-short-drama publishes its final video. It does not call a model and never contacts a media provider.

The helper parses the canonical script.txt to identify active shots and their content durations. It then requires sanitized real-provider receipts for the reference image, every active shot image, and every active shot video; rejects placeholders, missing provider request/job IDs, and any runtime fallback substitution; and uses ffprobe to confirm that shot MP4s and the final MP4 are decodable and have the promised durations.

When Seedance rejects a shot under provider policy, its sidecar contains only the bounded reason provider_policy_rejected and an allowlisted policy code. The audit preserves those two fields, marks the shot not generated, and reports VIDEO_POLICY_REJECTED; raw provider text, signed URLs, request IDs, and secrets are discarded before this boundary.

The parent scheduler supplies one bounded disposition per paid step. The only accepted values are safe_no_submit, maybe_accepted, and receipt. It also supplies a separate bounded SHA-256 proof only when the exact bundled paid subprocess emitted a sanitized receipt on this invocation and the emitted JSON matched the resulting sidecar. A conclusive generated/policy receipt upgrades the public asset disposition to confirmed only when that current-run proof matches. The reserved runtime slots cannot be declared as plan steps.

When safe_no_submit accompanies a missing receipt and local fallback, the audit preserves the degraded provenance but does not claim that the provider may have billed the user. A maybe_accepted, receipt, missing, or malformed disposition without a conclusive, current-run-proven receipt remains fail-closed: the audit emits PAID_SUBMISSION_STATUS_UNKNOWN, a sanitized asset-name list, and a static instruction to check provider history before starting a replacement. Raw fallback output, child failure text, and provider text never cross into the verdict. A stale or forged workspace sidecar by itself is reported as RECEIPT_NOT_PROVEN_CURRENT_RUN and can never become confirmed.

Receipt or media evidence for a shot absent from the canonical script is reported as UNEXPECTED_PAID_ASSET and listed in unexpected_paid_assets. An incomplete receipt for that unexpected asset also carries the same fail-closed unknown-billing warning.

OVERVIEW.DURATION_S is story-content duration. The meta workflow adds a fixed two-second title and two-second ending, so the expected final duration is content duration plus four seconds. Small encoder timestamp differences are tolerated, but a three-second final file cannot satisfy a seven-second expected delivery.

Inputs

  • with.run_dir: runtime-owned short-drama output directory.
  • with.runtime.paid_submission_dispositions: bounded JSON object produced by the parent scheduler under its reserved output key. It contains only static step IDs and fixed disposition values.
  • with.runtime.paid_submission_receipt_proofs: bounded JSON object produced by the parent scheduler under a second reserved output key. It contains only static step IDs and canonical sha256:<hex> receipt digests from exact bundled subprocess output captured during this run.
  • with.runtime.fallback_outputs: mapping of shot number to the corresponding fallback step output. A non-empty value proves that local substitution ran.

Output

One JSON verdict with status (verified, degraded, or blocked), verified, media_provenance, active shots, content/final durations, whitelisted provider identifiers, per-asset paid_submission_dispositions, safe_no_submit_assets, may_have_been_billed, paid_submission_status_unknown_assets, unexpected_paid_assets, billing_guidance, and bounded issue codes. Raw prompts, provider responses, fallback output, signed URLs, and credentials are never emitted.

Version History

  • 95673be Current 2026-08-07 00:59

Same Skill Collection

src/opensquilla/skills/bundled/advanced-dubbing-studio/SKILL.md
src/opensquilla/skills/bundled/ai-video-script/SKILL.md
src/opensquilla/skills/bundled/audio-cog/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-image-download/SKILL.md
src/opensquilla/skills/bundled/awesome-webpage-research/SKILL.md
src/opensquilla/skills/bundled/AwesomeWebpageMetaSkill/SKILL.md
src/opensquilla/skills/bundled/cron/SKILL.md
src/opensquilla/skills/bundled/docx/SKILL.md
src/opensquilla/skills/bundled/filesystem/SKILL.md
src/opensquilla/skills/bundled/git-diff/SKILL.md
src/opensquilla/skills/bundled/github/SKILL.md
src/opensquilla/skills/bundled/history-explorer/SKILL.md
src/opensquilla/skills/bundled/html-coder/SKILL.md
src/opensquilla/skills/bundled/html-to-pdf/SKILL.md
src/opensquilla/skills/bundled/http-fetch/SKILL.md
src/opensquilla/skills/bundled/latex-compile/SKILL.md
src/opensquilla/skills/bundled/memory/SKILL.md
src/opensquilla/skills/bundled/meta-kid-project-planner/SKILL.md
src/opensquilla/skills/bundled/multi-search-engine/SKILL.md
src/opensquilla/skills/bundled/music-and-singing-studio/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro-openrouter/SKILL.md
src/opensquilla/skills/bundled/nano-banana-pro/SKILL.md
src/opensquilla/skills/bundled/nano-pdf/SKILL.md
src/opensquilla/skills/bundled/openrouter-video-generator/SKILL.md
src/opensquilla/skills/bundled/paper-abstract-author/SKILL.md
src/opensquilla/skills/bundled/paper-artifact-runtime/SKILL.md
src/opensquilla/skills/bundled/paper-citation-integrity-gate/SKILL.md
src/opensquilla/skills/bundled/paper-citation-planner/SKILL.md
src/opensquilla/skills/bundled/paper-delivery-summary/SKILL.md
src/opensquilla/skills/bundled/paper-experiment-stub/SKILL.md
src/opensquilla/skills/bundled/paper-latex-sanitizer/SKILL.md
src/opensquilla/skills/bundled/paper-length-gate/SKILL.md
src/opensquilla/skills/bundled/paper-outline-author/SKILL.md
src/opensquilla/skills/bundled/paper-preference-planner/SKILL.md
src/opensquilla/skills/bundled/paper-quality-gate/SKILL.md
src/opensquilla/skills/bundled/paper-refbib-stub/SKILL.md
src/opensquilla/skills/bundled/paper-revision-author/SKILL.md
src/opensquilla/skills/bundled/paper-section-author/SKILL.md
src/opensquilla/skills/bundled/paper-source-curator/SKILL.md
src/opensquilla/skills/bundled/paper-source-readiness-gate/SKILL.md
src/opensquilla/skills/bundled/pptx/SKILL.md
src/opensquilla/skills/bundled/seedance-2-prompt/SKILL.md
src/opensquilla/skills/bundled/short-drama-review-normalizer/SKILL.md
src/opensquilla/skills/bundled/skill-creator-linter/SKILL.md
src/opensquilla/skills/bundled/skill-creator-proposals/SKILL.md
src/opensquilla/skills/bundled/skill-creator-smoke-test/SKILL.md
src/opensquilla/skills/bundled/srt-from-script/SKILL.md
src/opensquilla/skills/bundled/stack-trace-generic-probe/SKILL.md
src/opensquilla/skills/bundled/stack-trace-go-probe/SKILL.md

Metadata

Files
0
Version
95673be
Hash
635796da
Indexed
2026-08-07 00:59

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 04:23
浙ICP备14020137号-1 $bản đồ khách truy cập$