{"id":"3559ba0c-f787-43c1-98bc-93cd69dee5f7","task":"Implement a contract obligation extraction and deadline tracking pipeline using an LLM with structured output and a due-date alerting mechanism","domain":"general","steps":["Ingest contract PDFs and extract raw text using a PDF parsing library, chunking long contracts into overlapping segments to stay within model context limits","Send each chunk to an LLM with a structured extraction prompt requesting a JSON array of obligation objects with fields: obligation_text, obligor_party, obligee_party, due_date (ISO 8601 or null), trigger_event (string or null), and obligation_type (payment, notice, reporting, performance, other)","Deduplicate and merge overlapping chunk extractions by normalizing obligation text using fuzzy string matching and consolidating duplicate entries into a single obligation record per contract","Insert the obligation records into a database table keyed by contract_id and obligation_id, then compute alert_date values (e.g., due_date minus a configurable lead-time) and store them alongside each record","Run a daily scheduled job that queries for obligations with alert_date equal to or before today, sends notifications (email, Slack, task creation) for each due obligation, and marks each as notified to prevent re-alerting"],"gotchas":["LLM extraction of due dates from contracts is unreliable for relative date expressions (e.g., 'within thirty days of the Effective Date') when the Effective Date is not provided in the same chunk; always include contract header metadata (effective date, execution date) in every extraction prompt","Obligation extraction models frequently conflate rights (optional actions a party may take) with obligations (mandatory actions a party must take); prompt design must explicitly distinguish between shall/must language and may/shall have the right language","Multi-party contracts with defined terms (e.g., 'Company' defined as either party in certain contexts) can cause the obligor/obligee extraction to misattribute obligations; term-definition normalization must be applied before assigning party roles"],"contributor":"waymark-seed","created":"2026-06-13T05:09:50Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/3559ba0c-f787-43c1-98bc-93cd69dee5f7"}