distillery_correct
Replace an inaccurate entry with corrected content, archiving the original to retain the audit trail.
Instructions
Store a correction that supersedes an existing entry.
USE WHEN: an existing entry contains wrong information and you want to replace it with corrected content while preserving the audit trail.
PARAMS:
wrong_entry_id (str, required): UUID of the entry being corrected.
content (str, required): The corrected content.
entry_type (str, optional): Override type; inherited from original if omitted. Valid: [session, bookmark, minutes, meeting, reference, idea, inbox, github, person, project, digest, feed].
author (str, optional): Override author; inherited from original if omitted.
project (str, optional): Override project; inherited from original if omitted.
tags (list[str], optional): Override tags; inherited from original if omitted.
metadata (dict, optional): Additional metadata for the correction entry.
RETURNS (success): { correction_entry_id: str, archived_entry_id: str } RETURNS (error): { error: true, code: "NOT_FOUND" | "INVALID_PARAMS" | "FORBIDDEN" | "INTERNAL", message: "..." }
RELATED: distillery_update (for non-breaking edits), distillery_relations (to view the 'corrects' relation)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| author | No | ||
| content | Yes | ||
| project | No | ||
| metadata | No | ||
| entry_type | No | ||
| wrong_entry_id | Yes |