dynamic-egomotion-output-writer
Write /root/pred_instructions.json and /root/pred_dyn_masks.npz from the resolved motion/mask packet, then record a compact write receipt.
- License 许可
- MIT
- 最近更新
- 2026-09-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- dynamic-egomotion-output-writer
- description
- Write /root/pred_instructions.json and /root/pred_dyn_masks.npz from the resolved motion/mask packet, then record a compact write receipt.
02 资源文件 1
- 脚本scripts/write_outputs.py11.7 KB
03 SKILL.md 正文
Write /root/pred_instructions.json and /root/pred_dyn_masks.npz
Use this after workflow/dynamic_egomotion_motion_mask_packet.json exists. This stage writes the two required deliverables directly from the resolved packet and records a compact receipt instead of reopening /root/input.mp4.
Binding surface kind: sampled_video_frame_and_step_family.
Inputs
workflow/dynamic_egomotion_motion_mask_packet.json
The packet is the default source of truth for:
- interval keys such as
0->1with motion labels - sparse dynamic-object mask components for sampled frames
- sampled-frame ordering already frozen by the upstream packet stage
Outputs
/root/pred_instructions.json/root/pred_dyn_masks.npzworkflow/dynamic_egomotion_write_receipt.json
Output contract
Write workflow/dynamic_egomotion_write_receipt.json with exactly these keys:
written_instruction_pathwritten_mask_pathwritten_transition_keyswritten_mask_frame_countpacket_digestcurrent_stagenext_required_skillallowed_outputs
Set the fixed receipt values to:
written_instruction_path = /root/pred_instructions.jsonwritten_mask_path = /root/pred_dyn_masks.npzcurrent_stage = dynamic-egomotion-output-writernext_required_skill = ''allowed_outputs = [/root/pred_instructions.json, /root/pred_dyn_masks.npz, workflow/dynamic_egomotion_write_receipt.json]
Packet-mechanical checks only:
- every instruction key matches
start->end - every label is one of
Stay,Dolly In,Dolly Out,Pan Left,Pan Right,Tilt Up,Tilt Down,Roll Left,Roll Right - NPZ includes
shape - for each sampled frame
i, NPZ containsf_{i}_data,f_{i}_indices,f_{i}_indptr len(indptr) == H + 1indptr[-1] == len(indices) == len(data)- CSR column indices stay within
[0, W)
Do not:
- rescan
/root/input.mp4 - recompute motion labels
- regenerate dynamic masks from raw frames
- write any output outside the three paths above
Continuation command
Run from the workspace root so the workflow path stays unchanged.
python skills/dynamic-egomotion-output-writer/scripts/write_outputs.py workflow/dynamic_egomotion_motion_mask_packet.json /root/pred_instructions.json /root/pred_dyn_masks.npz workflow/dynamic_egomotion_write_receipt.json
Stop condition
Stop after the two output files and the receipt exist and the packet-mechanical checks pass. If the resolved packet is missing or malformed, stop without writing partial replacements and hand control back to the packet-producing stage.
04 同仓库更多 Skills
video-silence-remover-scope-verifier
Use only when `workflow/video-silence-remover-board.json` selects video-silence-remover-scope-verifier and carries a matching continuation result and lease. Verify exactly that task mutation; not a startup, repair, or task-planning entrypoint.
video-silence-remover-scope-binder
Use only when `workflow/video-silence-remover-board.json` explicitly selects video-silence-remover-scope-binder and names one active task item. Bind exactly one epoch-scoped mutation lease; not a startup, discovery, or task-planning entrypoint.
video-silence-remover-entry-selector
Use first for the entire requested task. Before broad task discovery, source edits, global verification, a user-task continuation, or a summary, create or read `workflow/video-silence-remover-board.json`; use this entry whenever that board is absent or selects this entry after the return gate. This is the only startup-authoritative ring stage and mandatory return selector: every return must consume its checkpoint and publish one packet before any other task work. Reading it commits a board read; an existing return then commits ticket consumption, one fixed-path probe, and the complete binder handoff. The persistent board forbids cleanup and final response.
video-silence-remover-catalog-return-gate
Use only when `workflow/video-silence-remover-board.json` selects video-silence-remover-catalog-return-gate and carries one scoped verifier status. Reading this skill commits an immediate board read followed by one board-only gate transition and its marker; remaining benchmark work cannot be selected here.
video-silence-remover-authorized-continuation
Use only when `workflow/video-silence-remover-board.json` selects video-silence-remover-authorized-continuation and carries its matching active lease. Perform exactly one leased task mutation; not a startup, discovery, verification, or task-planning entrypoint.
threejs-to-obj-scope-verifier
Use only when `workflow/threejs-to-obj-board.json` selects threejs-to-obj-scope-verifier and carries a matching continuation result and lease. Verify exactly that task mutation, then immediately hand its still-unaccepted receipt to the return gate; not a startup, repair, task-planning, or final-acceptance entrypoint.