Skip to content

Packs / legal-ops-public

contract-deadlines

Turn a contract's term, renewal-notice and payment periods into a dated deadline list and a calendar file

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-legal-ops-public

Install

logicpacks pack use legal-ops-public/contract-deadlines
get_pack legal-ops-public/contract-deadlines

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-python
  • Checks: 2 in outcome/checks.yaml
  • Code: deadlines.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A CSV and .ics of key dates from a contract: term end, last day to give non-renewal notice, payment due offset, confidentiality end, computed from the effective date.

Verified by: Fixture MSA effective 2026-03-01: term ends 2027-03-01, non-renewal notice deadline 2026-12-31, payment net 45.

Steps

  1. Run python3 code/deadlines.py contract.txt 2026-03-01 out/deadlines.ics.
  2. Check each date against the clause text printed next to it.
  3. Import the .ics into the team calendar with a reminder 14 days before each notice deadline.

Edge cases

  • Business-day vs calendar-day notice periods: this computes calendar days; adjust if the contract says business days.
  • Month arithmetic clamps to the last day of shorter months.

Don'ts

  • Don't present the output as legal advice; a qualified lawyer reviews anything that will be signed.
  • Don't rely on the calendar alone for termination notices; diarise them with an owner.