Boundary Snap
Use When
- A candidate span is promising but may start or end mid-thought.
- The next tool will cut media and needs exact boundaries.
- You want deterministic local timing cleanup before rendering.
Invocation
cat skills/boundary-snap/examples/request.json | \
node --import tsx scripts/harness/boundary-snap.ts
Output Contract
- Reads
highlight-candidates.v1.jsonandtimestamps.json. - Writes
boundary-snap.v1.json. - Each candidate includes original and snapped start/end times plus
reasons for the adjustment.
Validation Checklist
- Snapped boundaries stay within the source timestamps.
- Duration limits remain respected after snapping.
- Reasons explain why each boundary changed or was retained.