{"at":"2026-11-23T04:30:58.866Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:30:59.769Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"twinmeup","version":"0.2.1"}},"cacheScope":"private","capabilities":{"tools":{"listChanged":false}},"instructions":"Twin Me Up protocol. At the start of work in a workflow, call twin_brief and follow it: it holds the principal's confirmed guidance, hard limits, your authority and stop conditions. Call twin_authorise before any consequential action and obey 'ask': prepare a draft, call twin_request_approval, and act only once twin_approval_status says approved. When the principal corrects you, call twin_record_correction. Propose new guidance with twin_propose_lesson; it is never authoritative until the principal confirms it. Give write tools a request_id so a retry never records twice. You cannot confirm learning, approve requests or grant yourself authority.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T04:30:59.769Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:30:59.770Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"twinmeup","version":"0.2.1"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Call at the start of work in a workflow. Returns the principal's confirmed guidance, hard limits, your authority, stop conditions and how to report back. Embed and follow it.","inputSchema":{"additionalProperties":false,"properties":{"actions":{"description":"Actions you expect to need, for example email.send.","items":{"pattern":"^[a-z][a-z0-9_.:-]{0,63}$","type":"string"},"type":"array"},"include_hypotheses":{"default":false,"description":"Also list unconfirmed proposals, clearly labelled.","type":"boolean"},"objective":{"description":"What you are about to do, in one sentence.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"description":"Workflow slug, for example quote-review.","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","objective"],"type":"object"},"name":"twin_brief","title":"Get the operating brief"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Call before any consequential action (sending, paying, committing, writing to live systems). 'allow' means an active grant covers it. 'ask' means stop, prepare a draft and request approval with twin_request_approval.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"The action you intend to take, for example email.send.","pattern":"^[a-z][a-z0-9_.:-]{0,63}$","type":"string"},"attempt_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"For enforcement hooks only: the id of the tool call about to run. It spends one use of an approval; repeating the same attempt_id is safe. Agents leave this unset."},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","action"],"type":"object"},"name":"twin_authorise","title":"Check authority for an action"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Call when twin_authorise says 'ask' and the work needs that action. Records one request the principal approves or declines in their own terminal. Do not act until twin_approval_status says approved; an approval covers one attempt unless they say more.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"The one action you need approved, for example repo.push.","pattern":"^[a-z][a-z0-9_.:-]{0,63}$","type":"string"},"details":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"description":"Anything that helps them decide: recipients, amounts, a diff summary."},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"sources":{"items":{"additionalProperties":false,"description":"Where knowledge came from. A locator points at the source; it does not copy it.","properties":{"kind":{"enum":["interview","document","decision_record","correction","system_record","other"],"type":"string"},"locator":{"maxLength":200,"minLength":1,"type":"string"},"note":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null}},"required":["kind","locator"],"type":"object"},"maxItems":50,"type":"array"},"summary":{"description":"What you will do and why, in a sentence or two. The principal decides on this.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","action","summary"],"type":"object"},"name":"twin_request_approval","title":"Ask the principal to approve an action"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Whether the principal has approved, declined or not yet decided a request, and whether the approval is still unused. Poll this while you wait; it changes nothing.","inputSchema":{"additionalProperties":false,"properties":{"approval_id":{"description":"The approval_id twin_request_approval returned.","type":"string"}},"required":["approval_id"],"type":"object"},"name":"twin_approval_status","title":"Check an approval request"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Find the principal's confirmed guidance relevant to a question within a workflow.","inputSchema":{"additionalProperties":false,"properties":{"limit":{"default":8,"maximum":50,"minimum":1,"type":"integer"},"query":{"description":"What you need guidance on.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","query"],"type":"object"},"name":"twin_search","title":"Search confirmed guidance"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Unconfirmed lessons to present to the principal for confirmation, revision or rejection.","inputSchema":{"additionalProperties":false,"properties":{"workflow":{"anyOf":[{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},{"type":"null"}],"default":null}},"type":"object"},"name":"twin_review_queue","title":"List proposals awaiting the principal"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Evidence and stage for a workflow: confirmed learning, corrections, evaluation results, grants and the recommended next step. It recommends; only the principal promotes.","inputSchema":{"additionalProperties":false,"properties":{"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow"],"type":"object"},"name":"twin_track_record","title":"Show how well the twin knows a workflow"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"The most valuable unanswered questions about a recorded decision. Ask them, then amend.","inputSchema":{"additionalProperties":false,"properties":{"episode_id":{"type":"string"},"limit":{"default":3,"maximum":10,"minimum":1,"type":"integer"}},"required":["episode_id"],"type":"object"},"name":"twin_next_questions","title":"Get follow-up questions for a decision"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Capture a real decision: situation, options, choice, reasons for rejected options, cues, what would change it and when to escalate. Returns follow-up questions.","inputSchema":{"additionalProperties":false,"properties":{"chosen":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The option id the principal chose."},"cues":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"escalation_triggers":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"goal":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null},"missing_information":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"options":{"items":{"additionalProperties":false,"properties":{"id":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"}},"required":["id","label"],"type":"object"},"maxItems":50,"type":"array"},"outcome":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null},"rationale":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null},"rejected":{"additionalProperties":{"maxLength":4000,"minLength":1,"type":"string"},"description":"Option id to the principal's reason for rejecting it.","type":"object"},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"reversal_conditions":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"situation":{"maxLength":4000,"minLength":1,"type":"string"},"sources":{"items":{"additionalProperties":false,"description":"Where knowledge came from. A locator points at the source; it does not copy it.","properties":{"kind":{"enum":["interview","document","decision_record","correction","system_record","other"],"type":"string"},"locator":{"maxLength":200,"minLength":1,"type":"string"},"note":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null}},"required":["kind","locator"],"type":"object"},"maxItems":50,"type":"array"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","situation"],"type":"object"},"name":"twin_record_decision","title":"Record a decision the principal made"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Merge the principal's answers to follow-up questions into a recorded decision.","inputSchema":{"additionalProperties":false,"properties":{"changes":{"additionalProperties":true,"description":"Fields to merge into the recorded decision, using record_decision names.","type":"object"},"episode_id":{"type":"string"},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."}},"required":["episode_id","changes"],"type":"object"},"name":"twin_amend_decision","title":"Add answers to a recorded decision"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Call whenever the principal edits, overrides or rejects your work. Captures both versions and the reason as learning material.","inputSchema":{"additionalProperties":false,"properties":{"agent_proposal":{"description":"What you proposed or did.","maxLength":4000,"minLength":1,"type":"string"},"human_decision":{"description":"What the principal chose instead.","maxLength":4000,"minLength":1,"type":"string"},"reason":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"description":"The principal's reason, if given."},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"situation":{"description":"What the task was.","maxLength":4000,"minLength":1,"type":"string"},"sources":{"items":{"additionalProperties":false,"description":"Where knowledge came from. A locator points at the source; it does not copy it.","properties":{"kind":{"enum":["interview","document","decision_record","correction","system_record","other"],"type":"string"},"locator":{"maxLength":200,"minLength":1,"type":"string"},"note":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null}},"required":["kind","locator"],"type":"object"},"maxItems":50,"type":"array"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","situation","agent_proposal","human_decision"],"type":"object"},"name":"twin_record_correction","title":"Record a correction from the principal"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Propose a lesson for the principal to confirm. It is never authoritative until confirmed.","inputSchema":{"additionalProperties":false,"properties":{"conditions":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null},"episode_ids":{"items":{"type":"string"},"maxItems":50,"type":"array"},"kind":{"enum":["fact","criterion","exception","escalation","procedure","boundary","preference"],"type":"string"},"origin":{"default":"inferred","description":"elicited: the principal said it. inferred: your generalisation. correction: drawn from a correction.","enum":["elicited","inferred","correction"],"type":"string"},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"review_by":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"default":null},"statement":{"description":"One clear, testable rule or fact.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","kind","statement"],"type":"object"},"name":"twin_propose_lesson","title":"Propose new guidance"}],"ttlMs":0}}}
{"at":"2026-11-23T04:30:59.921Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T04:31:00.804Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":false}},"instructions":"Twin Me Up protocol. At the start of work in a workflow, call twin_brief and follow it: it holds the principal's confirmed guidance, hard limits, your authority and stop conditions. Call twin_authorise before any consequential action and obey 'ask': prepare a draft, call twin_request_approval, and act only once twin_approval_status says approved. When the principal corrects you, call twin_record_correction. Propose new guidance with twin_propose_lesson; it is never authoritative until the principal confirms it. Give write tools a request_id so a retry never records twice. You cannot confirm learning, approve requests or grant yourself authority.","protocolVersion":"2025-11-25","serverInfo":{"name":"twinmeup","version":"0.2.1"}}}}
{"at":"2026-11-23T04:31:00.804Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:31:00.804Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:31:00.806Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Call at the start of work in a workflow. Returns the principal's confirmed guidance, hard limits, your authority, stop conditions and how to report back. Embed and follow it.","inputSchema":{"additionalProperties":false,"properties":{"actions":{"description":"Actions you expect to need, for example email.send.","items":{"pattern":"^[a-z][a-z0-9_.:-]{0,63}$","type":"string"},"type":"array"},"include_hypotheses":{"default":false,"description":"Also list unconfirmed proposals, clearly labelled.","type":"boolean"},"objective":{"description":"What you are about to do, in one sentence.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"description":"Workflow slug, for example quote-review.","pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","objective"],"type":"object"},"name":"twin_brief","title":"Get the operating brief"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Call before any consequential action (sending, paying, committing, writing to live systems). 'allow' means an active grant covers it. 'ask' means stop, prepare a draft and request approval with twin_request_approval.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"The action you intend to take, for example email.send.","pattern":"^[a-z][a-z0-9_.:-]{0,63}$","type":"string"},"attempt_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"For enforcement hooks only: the id of the tool call about to run. It spends one use of an approval; repeating the same attempt_id is safe. Agents leave this unset."},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","action"],"type":"object"},"name":"twin_authorise","title":"Check authority for an action"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Call when twin_authorise says 'ask' and the work needs that action. Records one request the principal approves or declines in their own terminal. Do not act until twin_approval_status says approved; an approval covers one attempt unless they say more.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"The one action you need approved, for example repo.push.","pattern":"^[a-z][a-z0-9_.:-]{0,63}$","type":"string"},"details":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"description":"Anything that helps them decide: recipients, amounts, a diff summary."},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"sources":{"items":{"additionalProperties":false,"description":"Where knowledge came from. A locator points at the source; it does not copy it.","properties":{"kind":{"enum":["interview","document","decision_record","correction","system_record","other"],"type":"string"},"locator":{"maxLength":200,"minLength":1,"type":"string"},"note":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null}},"required":["kind","locator"],"type":"object"},"maxItems":50,"type":"array"},"summary":{"description":"What you will do and why, in a sentence or two. The principal decides on this.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","action","summary"],"type":"object"},"name":"twin_request_approval","title":"Ask the principal to approve an action"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Whether the principal has approved, declined or not yet decided a request, and whether the approval is still unused. Poll this while you wait; it changes nothing.","inputSchema":{"additionalProperties":false,"properties":{"approval_id":{"description":"The approval_id twin_request_approval returned.","type":"string"}},"required":["approval_id"],"type":"object"},"name":"twin_approval_status","title":"Check an approval request"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Find the principal's confirmed guidance relevant to a question within a workflow.","inputSchema":{"additionalProperties":false,"properties":{"limit":{"default":8,"maximum":50,"minimum":1,"type":"integer"},"query":{"description":"What you need guidance on.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","query"],"type":"object"},"name":"twin_search","title":"Search confirmed guidance"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Unconfirmed lessons to present to the principal for confirmation, revision or rejection.","inputSchema":{"additionalProperties":false,"properties":{"workflow":{"anyOf":[{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},{"type":"null"}],"default":null}},"type":"object"},"name":"twin_review_queue","title":"List proposals awaiting the principal"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Evidence and stage for a workflow: confirmed learning, corrections, evaluation results, grants and the recommended next step. It recommends; only the principal promotes.","inputSchema":{"additionalProperties":false,"properties":{"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow"],"type":"object"},"name":"twin_track_record","title":"Show how well the twin knows a workflow"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"The most valuable unanswered questions about a recorded decision. Ask them, then amend.","inputSchema":{"additionalProperties":false,"properties":{"episode_id":{"type":"string"},"limit":{"default":3,"maximum":10,"minimum":1,"type":"integer"}},"required":["episode_id"],"type":"object"},"name":"twin_next_questions","title":"Get follow-up questions for a decision"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Capture a real decision: situation, options, choice, reasons for rejected options, cues, what would change it and when to escalate. Returns follow-up questions.","inputSchema":{"additionalProperties":false,"properties":{"chosen":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"The option id the principal chose."},"cues":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"escalation_triggers":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"goal":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null},"missing_information":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"options":{"items":{"additionalProperties":false,"properties":{"id":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"label":{"maxLength":200,"minLength":1,"type":"string"}},"required":["id","label"],"type":"object"},"maxItems":50,"type":"array"},"outcome":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null},"rationale":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null},"rejected":{"additionalProperties":{"maxLength":4000,"minLength":1,"type":"string"},"description":"Option id to the principal's reason for rejecting it.","type":"object"},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"reversal_conditions":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"situation":{"maxLength":4000,"minLength":1,"type":"string"},"sources":{"items":{"additionalProperties":false,"description":"Where knowledge came from. A locator points at the source; it does not copy it.","properties":{"kind":{"enum":["interview","document","decision_record","correction","system_record","other"],"type":"string"},"locator":{"maxLength":200,"minLength":1,"type":"string"},"note":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null}},"required":["kind","locator"],"type":"object"},"maxItems":50,"type":"array"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","situation"],"type":"object"},"name":"twin_record_decision","title":"Record a decision the principal made"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Merge the principal's answers to follow-up questions into a recorded decision.","inputSchema":{"additionalProperties":false,"properties":{"changes":{"additionalProperties":true,"description":"Fields to merge into the recorded decision, using record_decision names.","type":"object"},"episode_id":{"type":"string"},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."}},"required":["episode_id","changes"],"type":"object"},"name":"twin_amend_decision","title":"Add answers to a recorded decision"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Call whenever the principal edits, overrides or rejects your work. Captures both versions and the reason as learning material.","inputSchema":{"additionalProperties":false,"properties":{"agent_proposal":{"description":"What you proposed or did.","maxLength":4000,"minLength":1,"type":"string"},"human_decision":{"description":"What the principal chose instead.","maxLength":4000,"minLength":1,"type":"string"},"reason":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"description":"The principal's reason, if given."},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"situation":{"description":"What the task was.","maxLength":4000,"minLength":1,"type":"string"},"sources":{"items":{"additionalProperties":false,"description":"Where knowledge came from. A locator points at the source; it does not copy it.","properties":{"kind":{"enum":["interview","document","decision_record","correction","system_record","other"],"type":"string"},"locator":{"maxLength":200,"minLength":1,"type":"string"},"note":{"anyOf":[{"maxLength":4000,"minLength":1,"type":"string"},{"type":"null"}],"default":null}},"required":["kind","locator"],"type":"object"},"maxItems":50,"type":"array"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","situation","agent_proposal","human_decision"],"type":"object"},"name":"twin_record_correction","title":"Record a correction from the principal"},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Propose a lesson for the principal to confirm. It is never authoritative until confirmed.","inputSchema":{"additionalProperties":false,"properties":{"conditions":{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null},"episode_ids":{"items":{"type":"string"},"maxItems":50,"type":"array"},"kind":{"enum":["fact","criterion","exception","escalation","procedure","boundary","preference"],"type":"string"},"origin":{"default":"inferred","description":"elicited: the principal said it. inferred: your generalisation. correction: drawn from a correction.","enum":["elicited","inferred","correction"],"type":"string"},"request_id":{"anyOf":[{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.:@/|+=-]{0,255}$","type":"string"},{"type":"null"}],"default":null,"description":"Optional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice."},"review_by":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"default":null},"statement":{"description":"One clear, testable rule or fact.","maxLength":4000,"minLength":1,"type":"string"},"workflow":{"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["workflow","kind","statement"],"type":"object"},"name":"twin_propose_lesson","title":"Propose new guidance"}]}}}
