cos_promote
Promotes a validated pattern into a rule or feedback memory, returning file content and filename for the caller to save.
Instructions
Promote a validated pattern to a rule or feedback memory file.
Requires confidence >= 0.3. Creates file content but does NOT write to disk (caller writes the returned content to the appropriate location).
Args: pattern_id: ID in learned_patterns table. target: Output type — "feedback" or "rule".
Returns: str: JSON with status, filename, and file content to write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | feedback | |
| pattern_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |