dwlf_revise_thesis
Revise a thesis by saving a new version while preserving earlier revisions; submit expectedRevision plus only changed fields, and run dryRun first to check conflicts before writing.
Instructions
Change a thesis: writes a new revision and keeps the earlier ones. Send expectedRevision (the currentRevision you read; 409 REVISION_CONFLICT if it moved) and only the fields to change. steps/invalidation, when sent, replace the whole list: keep each unchanged condition's id so it keeps its arming and result. A changed or new condition is armed from now (nothing before counts). Same refusals as create (422 CANNOT_OCCUR / ALREADY_MET), for the changed conditions only. Use dryRun: true first: the same check for the revision (only the changed conditions, listed in changed, are judged; an unchanged condition already met is fine), writing nothing; show it to the user. Condition types: pivot_confirmed (the next confirmed cycle low/high, optionally inside a level), close_vs_level (a daily/weekly close or intraday trade beyond a level), window_opens, window_closes (invalidation only: the stored window closes with no pivot of its side; only when the user asks to void the thesis by time), trendline_break, engine_event (a short allow-list), manual. Full parameters and definitions: dwlf_list_thesis_condition_types.
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": {
"thesisId": "<thesisId>",
"expectedRevision": "<expectedRevision>"
},
"name": "dwlf_revise_thesis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Ordered: step n+1 is checked only after step n is met. Limits: dwlf_list_thesis_condition_types. | |
| title | No | One line: what you are waiting for. | |
| dryRun | No | Check the revision as it would be saved; nothing is written. | |
| context | No | Your assessment, why you are waiting. Replayed verbatim in every alert. | |
| nextStep | No | What you intend to look at when it fires (your words). | |
| thesisId | Yes | Thesis ID | |
| invalidation | No | Any one of these happening marks the thesis challenged (review it). Optional. window_closes goes only here. | |
| allowAlreadyMet | No | ||
| expectedRevision | Yes | The currentRevision you read. |