misakanet_write_lesson
[STRUCTURED COMMIT / VALIDATED SUBMISSION] Submit a complete, structured failure lesson (title/domain/problem/root_cause/fix) as a formal submission. Requires authentication (Bearer token in header) — this is the 'validated author' path, not open triage. Output goes through lesson-gate/lint/review and becomes a versioned lesson in the git repo. For quick open reports when you only have a partial failure description, use misakanet_submit_intake instead (no Bearer). Lessons are immutable once merged — corrections go through a new intake/PR, so there is intentionally no misakanet_update_lesson/misakanet_delete_lesson. Returns: object {lesson_id: string, status: 'pending_review', quality_score: number}; or {submitted: false, error}. Example: misakanet_write_lesson(title='pip timeout behind proxy', domain='python', problem='...', root_cause='...', fix='...')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | Yes | How to fix it (required). | |
| tags | No | Comma-separated tags. | |
| title | Yes | Short descriptive title. | |
| domain | Yes | Domain: devops, python, network, feishu, rag, fanuc, mcp, etc. | |
| source | No | Source: codex, claude-code, cursor, etc. | |
| problem | Yes | What failed (required). | |
| root_cause | Yes | Why it failed (required). | |
| verification | No | How to confirm the fix works. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| lesson_id | No | ||
| submitted | No | ||
| quality_score | No |