Prepare sourced follow-up
prepare_follow_upValidate sourced action records and generate bounded append-journal plans by cross-checking IDs, hashes, and excerpts against live notes; returns plans without writing.
Instructions
Validate sourced actions, interactions, objectives and state revisions against live note IDs/hashes and exact source excerpts. Existing target history headings are required. Person targets require contextual identity confirmation; clarify homonyms first. Returns bounded append_journal plans, never writes. Validation is structural, not a truth verdict. Use stable record/revision IDs, then apply with existing writers and verify receipts. Refused: a source note that is the target itself; a source_excerpt under 20 non-blank characters; an event_date after tomorrow (UTC); a due_date before the event_date. Under retrieval redaction, secret-shaped text in a persisted field is refused with the field named; the rest of the source note is not examined. Schema constraints, repeated because some clients strip them: required: record_id, revision, kind, target_path, target_id, expected_hash, heading, source_path, source_hash, source_excerpt, summary; extra fields refused; at most 20 records per call, checked at runtime; record_id: pattern ^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$; revision: pattern ^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$; previous_revision: pattern ^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$, or null, default null; kind: one of action, interaction, decision, objective, project_state; target_path: 1 to 4000 characters; target_id: pattern ^[0-9A-HJKMNP-TV-Z]{26}$; expected_hash: pattern ^[0-9a-f]{64}$; heading: 1 to 256 characters; source_path: 1 to 4000 characters; source_hash: pattern ^[0-9a-f]{64}$; source_excerpt: 1 to 4000 characters; summary: 1 to 4000 characters; event_date: ISO date, or null, default null; owner: at most 256 characters, or null, default null; due_date: ISO date, or null, default null; status: one of unknown, proposed, open, in_progress, waiting, completed, cancelled, default "unknown"; identity_confirmed: boolean, default false; identity_basis: at most 1000 characters, or null, default null
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plans | No | ||
| status | No | ||
| committed | No | ||
| validation | No | ||
| next_action | No | ||
| writes_enabled | No | ||
| already_recorded | No |