Lindy Collection Engineering Wishlist
PR-Time Clip & Segment Linting / Tag-Propagation Workflow
Context
Currently, Jekyll Liquid templates propagate category tags (people, aerials, routines, jazz, historical_clips, events) from enclosing segments into strictly shorter, fully contained inner segments at build time (e.g., if irina_rafal spans 2:20–2:40 and frankie_flip spans 2:33–2:37, frankie_flip inherits irina_amzashvili and rafal_pustelny).
As the number of multi-segment videos grows, shifting consistency checks and tag propagation into a fast Python pre-build linter / GitHub Actions PR review workflow will keep Jekyll Liquid templates lightweight and make frontmatter self-contained and explicit.
Proposed Design for Future Implementation
- CLI Linter Script (
scripts/lint_clips.py):- Inspects modified
_clips/*.mdfiles (or all_clips/*.mdwith--all). - Contained-Segment Tag Propagation: Detects when an enclosing segment
[start_outer, end_outer]carriespeopleor topic tags missing on a fully contained inner segment[start_inner, end_inner], and generates a minimal YAML frontmatter diff propagating those tags explicitly onto the inner segment. - Validation Checks:
- Verifies
start_time < end_timeacross clips andsegments:. - Checks that referenced slugs in
people,aerials,routines,jazz,historical_clips, andeventsmatch existing collection documents (or flags missing stub pages). - Detects duplicate
youtube_idfiles that could be consolidated intosegments:.
- Verifies
- Inspects modified
- GitHub Actions PR Review Bot Integration:
- Runs in under 1 second on changed
_clips/*.mdfiles in Pull Requests. - Posts inline GitHub PR review
suggestionblocks (one-click committable in the GitHub UI) proposing propagated tags or timestamp fixes for maintainer review.
- Runs in under 1 second on changed