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 or PR; there are deliberately no update or delete tools for them. Returns: object {submitted: true, lesson_id: string, status: 'pending_review', quality_score: number, issue_url: string, dedup_key: string}; a repeat of the SAME content returns {submitted: false, duplicate: true, lesson_id, issue_url, dedup_key} instead of filing a second issue; a refused submission returns {submitted: false, error}. Timeouts and retries: the outbound call to GitHub has an 8 s deadline, so a submission can time out AFTER its issue was created. The response therefore carries dedup_key (8 chars, derived from title+problem+root_cause+fix), and re-sending identical text is idempotent — you get the original issue back instead of a duplicate. To check its review status without re-submitting, call misakanet_me_inbox(dedup_key=): it reports pending / converted and names the lesson once a maintainer merges it. The key is kept for 7 days; past that a resubmission files a new issue. Example: misakanet_write_lesson(title='pip timeout behind proxy', domain='python', problem='...', root_cause='...', fix='...')
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"domain": "<domain>",
"problem": "<problem>",
"root_cause": "<root_cause>",
"fix": "<fix>"
},
"name": "misakanet_write_lesson"
}
}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, dsh, curl, cindy, etc. | |
| problem | Yes | What failed (required). | |
| root_cause | Yes | Why it failed (required). | |
| contributor | No | Optional: contributor identity (GitHub username, agent name, or email). Included in lesson frontmatter for attribution. | |
| 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 |