Suggest
Change
Contribute on
GitHub

Lindy Collection Engineering Wishlist

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

  1. CLI Linter Script (scripts/lint_clips.py):
    • Inspects modified _clips/*.md files (or all _clips/*.md with --all).
    • Contained-Segment Tag Propagation: Detects when an enclosing segment [start_outer, end_outer] carries people or 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_time across clips and segments:.
      • Checks that referenced slugs in people, aerials, routines, jazz, historical_clips, and events match existing collection documents (or flags missing stub pages).
      • Detects duplicate youtube_id files that could be consolidated into segments:.
  2. GitHub Actions PR Review Bot Integration:
    • Runs in under 1 second on changed _clips/*.md files in Pull Requests.
    • Posts inline GitHub PR review suggestion blocks (one-click committable in the GitHub UI) proposing propagated tags or timestamp fixes for maintainer review.