{"at":"2026-11-23T04:54:37.448Z","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:54:38.515Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"ddflow","title":"ddflow work-queue kernel","version":"0.2.9"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false},"tools":{"listChanged":false}},"instructions":"This connection lists the `lean` profile (16 tools of 136). The rest are NOT in `tools/list` but stay callable: every tool by its own name, and every family tool by `action` (`ddflow_gate action=record`); `ddflow_help` names them. To list more, set `[mcp].tools` to `families`, `hot+families` or `all` in .ddflow/config.toml (or `DDFLOW_MCP_TOOLS`) and restart the server; the profile is read once at start.\n\nThis repository does not use ddflow yet.\nIf the user wants a managed work queue, offer the `onboard` prompt (`ddflow_prompts` action `show`, name `onboard`), or call `ddflow_setup` once. Then `ddflow_import` if the project has history. Do not call other tools before `ddflow_setup`.\nIf the user has not asked for any of this, say nothing about it and carry on.","resultType":"complete","supportedVersions":["2026-07-28","2025-11-25","2025-06-18","2025-03-26","2024-11-05"],"ttlMs":0}}}
{"at":"2026-11-23T04:54:38.515Z","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:54:38.518Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"ddflow","title":"ddflow work-queue kernel","version":"0.2.9"}},"cacheScope":"private","resultType":"complete","tools":[{"description":"START HERE every session. Returns a budgeted pack: work recoverable after a crash, the current item, what is ready to start now, why everything else is blocked, and the past lessons ranked as relevant to this task. Use this INSTEAD of reading the project's lesson or rule files: the same information, ranked for the task at hand, at a fraction of the tokens.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"check_recovery":{"description":"Scan for crashed agents' worktrees and lead with them: know it BEFORE new work.","type":"boolean"},"for_agent":{"description":"Render this subagent's launch brief for item.","type":"string"},"item":{"description":"Focus on this phase or task id (optional).","type":"string"},"phase":{"description":"Restrict the ready set to this phase (optional).","type":"string"}},"type":"object"},"name":"ddflow_brief"},{"description":"Bug records. Set `action`; required arguments in brackets: fixed(id), invalid(id,reason), found(summary), file_tasks.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["fixed","invalid","found","file_tasks"],"type":"string"},"all":{"description":"File a fix task for EVERY open bug that has none, other agents' too. Without it and without `id`, only a preview.","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"changelog":{"description":"Optional 'Fixed: text' (any category), or skip.","type":"string"},"check_only":{"description":"Dry run: write nothing, return the `candidates`.","type":"boolean"},"dry_run":{"description":"List what would be filed; write nothing.","type":"boolean"},"evidence":{"description":"The probe command or test node id that showed it false.","type":"string"},"globs":{"description":"The fix task's files; default: the item's globs.","type":"string"},"id":{"description":"Stable id, e.g. 'B1'. You will cite it when closing.","type":"string"},"item":{"description":"The task it was found in or affects.","type":"string"},"landed":{"description":"A commit already on the base that holds the fix (the fix task was claimed after it landed): the test must fail on its first parent and pass on it; the fix task is ended naming it.","type":"string"},"lesson":{"description":"Id of an existing lesson this bug belongs to.","type":"string"},"lesson_rule":{"description":"The lesson in full: the transferable rule, not the incident.","type":"string"},"lesson_title":{"description":"Capture a lesson at the same time.","type":"string"},"lint_exempt":{"description":"For a CI-filed LINT bug (a check that is not a test, e.g. ruff format --check): why it needs no regression test (what made the check green). Recorded as regression_verified=exempt-lint; instead of regression_test.","type":"string"},"mutation":{"description":"Test-only fix: JSON {\"file\",\"old\",\"new\"} disabling it; the test must FAIL.","type":"string"},"no_task":{"description":"File no fix task (fixed in the same commit).","type":"boolean"},"reason":{"description":"Why the finding is false (with reopen: why reopen).","type":"string"},"regression_test":{"description":"Test that now guards this. Several: separate with ',' or ';'.","type":"string"},"regression_tests":{"description":"The tests guarding this, one per element: the list form of regression_test.","items":{"type":"string"},"type":"array"},"relation":{"description":"Answer to a 'possible duplicate' refusal: new | extends:ID | duplicate_of:ID | related:ID | merge_into:ID. Omit at first.","type":"string"},"reopen":{"description":"Reopen the closed bug instead.","type":"boolean"},"scope":{"description":"project (default) or ddflow.","type":"string"},"severity":{"description":"low|medium|high|critical.","type":"string"},"skip_regression_verify":{"description":"Skip the pre-fix check (the test must FAIL pre-fix, PASS fixed). Needs verify_reason.","type":"boolean"},"summary":{"description":"What is wrong, in one line.","type":"string"},"title":{"description":"Short headline.","type":"string"},"verify_reason":{"description":"Why the pre-fix check is skipped (recorded); required with skip_regression_verify.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_bug"},{"description":"Lease an item and create its isolated git worktree. Refuses (exit 3) if another agent holds it or an overlapping item, and names what you could take instead. NEVER steals an expired lease: a crashed agent's tree often holds finished work.","inputSchema":{"additionalProperties":false,"properties":{"approval":{"description":"An agent's way past a refusal --force would override: 'request' asks the operator, then the approval id they answered.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"break":{"description":"Break a contended, idle lease (work kept).","type":"boolean"},"force":{"description":"Override a refusal; only to retry after `ddflow_recover` said a crashed agent's tree holds nothing. Forcing past a dependency or live lease lets two agents write one file. Recorded.","type":"boolean"},"globs":{"description":"Comma-separated path globs this work will write.","type":"string"},"id":{"description":"Item id to claim, or an open bug id (its fix task is claimed, filed first if none).","type":"string"},"no_worktree":{"description":"Lease the item without creating a worktree. For work that is not a code change — a research or review task.","type":"boolean"},"note":{"description":"What you intend to do.","type":"string"},"queue":{"description":"Queue a refused request (FIFO per file).","type":"boolean"},"resources":{"description":"Physical resources this claim holds, e.g. 'gpu:2'; they REPLACE the item's declared ones. Refused (exit 3) when live claims already use the capacity ([schedule] resources), every holder counted.","type":"string"}},"required":["id"],"type":"object"},"name":"ddflow_claim"},{"description":"Finish an item. Refuses (exit 3) when a required gate has not passed, a phase has open tasks, or no reviewer came from a different model family than the author. Pass your own 'model'.","inputSchema":{"additionalProperties":false,"properties":{"approval":{"description":"An agent's way past unmet conditions: 'request' asks the operator, then the approval id they answered.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"changelog":{"description":"Optional 'Added|Changed|Deprecated|Removed|Fixed|Security: text', or skip.","type":"string"},"force":{"description":"Complete over unmet conditions, each recorded as overridden forever. Prefer `ddflow_gate_skip` with a reason.","type":"boolean"},"id":{"description":"Item id.","type":"string"},"model":{"description":"The AUTHOR's model.","type":"string"},"mutation":{"description":"Test-only fix: JSON {\"file\",\"old\",\"new\"} disabling it; the test must FAIL.","type":"string"},"regression_test":{"description":"Fix task: the test guarding its bug(s); closes them.","type":"string"},"sha":{"description":"Commit sha this shipped as.","type":"string"}},"required":["id"],"type":"object"},"name":"ddflow_complete"},{"description":"Quality gates of a work item. Set `action`; required arguments in brackets: status(id), list, run(id,gate), record(id,gate,outcome), verify(id,gate), skip(id,gate,reason), ci, tests.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["status","list","run","record","verify","skip","ci","tests"],"type":"string"},"approval":{"description":"An operator approval id (Q...) for this exact override; a refusal names it.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"base":{"description":"Compare against this ref instead of the item's base.","type":"string"},"command":{"description":"The command you ran. With `exit_code` it makes an outcome evidence; a gate in `gates.evidence_required` is rejected without them.","type":"string"},"evidence":{"description":"What you ran and what it said. Required by some gates.","type":"string"},"exit_code":{"description":"That command's exit code.","type":"string"},"full":{"description":"Whole suite (run).","type":"boolean"},"gate":{"description":"Gate id. Must be a command gate.","type":"string"},"id":{"description":"Item whose worktree to mutate in.","type":"string"},"item":{"description":"The item whose worktree and base to use.","type":"string"},"model":{"description":"REVIEWER's model, e.g. 'gemini-2.5-pro'.","type":"string"},"op":{"description":"ci: run | status (default).","type":"string"},"outcome":{"description":"passed | failed | unavailable | partial | skipped","type":"string"},"output_file":{"description":"Path to its full output; a digest is recorded.","type":"string"},"reason":{"description":"Why this step does not apply HERE. 'n/a' is not a reason: the next person reads this to decide whether you were right.","type":"string"},"ref":{"description":"Commit to check (run).","type":"string"},"refuted":{"description":"List the gates passed on refutation instead.","type":"boolean"},"reviewed_sha":{"description":"Commit reviewed (roborev review <sha>); must be the branch.","type":"string"},"reviewer_model":{"description":"Like `model`; says it IS the reviewer.","type":"string"},"since":{"description":"With refuted: since this ISO date.","type":"string"},"timeout":{"description":"run: seconds this run may take (at most [gates].max_run_timeout_s).","type":"integer"}},"required":["action"],"type":"object"},"name":"ddflow_gate"},{"description":"Renew the lease on an item. Call periodically during long work, or the lease expires and another agent may take the item.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"id":{"description":"Item id.","type":"string"}},"type":"object"},"name":"ddflow_heartbeat"},{"description":"What ddflow IS, what it can do, and what the workflow is. Call this first if you have not used it before: the other descriptions explain one tool each and the connection instructions describe THIS repository; neither answers 'how am I meant to work here'. No argument: the loop from picking work to landing it, the exit codes, and every capability grouped by purpose. `topic`: workflow, import, gates, parallel, memory, recovery, config. Read-only; the pages are templates a project may override.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"topic":{"description":"workflow | import | gates | parallel | memory | recovery | config. Omit for the overview, which lists them.","type":"string"}},"type":"object"},"name":"ddflow_help"},{"description":"Declare WHO you are on this connection before anything that writes. Call it first when 2+ agents or subagents work this repository at once: identity attributes every claim, gate outcome and review, and the tree-derived default merges several agents in one tree into one identity with no error (a review would pass independence against itself). Pick a short stable name (your role), distinct from the others'. Idempotent. A SUBAGENT sharing its parent's connection must NOT call this; it passes `as_agent` on each call instead (the CLI's `--agent`). Stateless 2026-07-28 requests: persists nothing; name yourself per call (as_agent or _meta ddflow/agent).","inputSchema":{"additionalProperties":false,"properties":{"agent":{"description":"A short stable name, e.g. 'reviewer-2' (letters, digits, . _ -; max 64; it names your log file). OMIT to reset to the tree-derived default.","type":"string"}},"type":"object"},"name":"ddflow_identify"},{"description":"Lessons, memories, recall and record links. Set `action`; required arguments in brackets: lesson_verify, lesson_add(title), lesson_search(query), recall(query), similar(text), dupes, link(subject,relation,target), add(text), list, forget(id,reason).","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["lesson_verify","lesson_add","lesson_search","recall","similar","dupes","link","add","list","forget"],"type":"string"},"all":{"description":"Include forgotten memories, with why they were forgotten.","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"check_only":{"description":"Dry run: write nothing, return the `candidates`.","type":"boolean"},"floor":{"description":"Minimum score to report (default: [dedupe].show_floor).","type":"number"},"globs":{"description":"Comma-separated globs to scan for `pattern`. Default: every tracked file.","type":"string"},"how":{"description":"How to apply or detect it.","type":"string"},"id":{"description":"Stable id you choose. Referenced by `supersedes`, by commit messages and by the reconstruction; a generated id cannot be cited in advance.","type":"string"},"item":{"description":"Only the pairs this record is in.","type":"string"},"kind":{"description":"Comma-separated subset of the configured kinds to look in: bug,task,phase,lesson,decision,research,memory. Default: all of them.","type":"string"},"limit":{"description":"At most this many (default: all).","type":"integer"},"max_chars":{"description":"Total budget for the answer. The point of a budget is that recall is called at the START of work, where a long answer costs the context the work itself needs.","type":"integer"},"open_only":{"description":"Only pairs where both records are still live (the dedupe_sweep pass).","type":"boolean"},"pattern":{"description":"A regex naming the mistake in CODE. Scans now and stores WHICH sites match, so `ddflow_lesson_verify` can name those that reappear. Prefer it to a remembered rule when mechanical: a count says 'worse', never 'which'. Refused if it does not compile.","type":"string"},"query":{"description":"Rank by relevance to this instead of by recency.","type":"string"},"reason":{"description":"Why, recorded with the link.","type":"string"},"relation":{"description":"Answer to a 'possible duplicate' refusal: new | extends:ID | duplicate_of:ID | related:ID | merge_into:ID. Omit at first.","type":"string"},"rule":{"description":"The rule in full.","type":"string"},"seen_in":{"description":"Comma-separated item ids where this was hit. What makes a lesson checkable later instead of merely memorable.","type":"string"},"sources":{"description":"Comma-separated subset: decisions,lessons,memories,research,bugs,items,prompts. Default: all.","type":"string"},"subject":{"description":"The record being related (the duplicate, for a merge).","type":"string"},"summary":{"description":"The lesson in ONE paragraph, for a reader who will not open the full rule. Rendered into docs/ddflow/LESSONS-SUMMARY.md.","type":"string"},"supersedes":{"description":"Comma-separated lesson ids this replaces. The old one is retired, not deleted: the corpus stops growing without losing what was once believed.","type":"string"},"tags":{"description":"Comma-separated tags, e.g. 'gpu,machine'.","type":"string"},"target":{"description":"The record it is related to.","type":"string"},"text":{"description":"The title or summary of the record you are about to file.","type":"string"},"title":{"description":"The rule as a one-line statement.","type":"string"},"why":{"description":"Why it is true / what went wrong.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_memory"},{"description":"Land an item's branch without ever switching a checkout's branch. With [flow].integration = 'pr' it pushes and opens (or updates) a pull request instead, releases your lease and parks the item in REVIEW — take the next item; `ddflow_pr_sync` completes it once a person merges it.","inputSchema":{"additionalProperties":false,"properties":{"allow_dirty":{"description":"Merge although the worktree is dirty; uncommitted changes are NOT included. Only once you know it is build output.","type":"boolean"},"allow_empty":{"description":"Land a branch with no commits ahead of its target (refused by default: usually the wrong tree; rebind with ddflow_update worktree).","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"branch":{"description":"no_worktree items: the branch to land (default: the one checked out where this runs). Changes outside the item's globs come back as outside_globs.","type":"string"},"id":{"description":"Item id.","type":"string"},"keep":{"description":"Keep the worktree after merging, for inspection.","type":"boolean"},"message":{"description":"Merge commit message.","type":"string"},"model":{"description":"The AUTHOR's model. In PR mode the item completes at `ddflow_pr_sync`, which needs it for reviewer independence.","type":"string"},"queue":{"description":"Enqueue (ddflow_queue add) instead of landing.","type":"boolean"}},"required":["id"],"type":"object"},"name":"ddflow_merge"},{"description":"What may be started RIGHT NOW, and for everything that may not, the reason. Independent items in the ready set can be run in parallel worktrees by separate agents. Returns ready=[] when nothing is actionable — that is a result, not an error, and it never means 'pick something anyway'.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"kind":{"description":"'task' (default) or 'phase'.","type":"string"},"phase":{"description":"Restrict to one phase (the 'implement phase X' entry point).","type":"string"}},"type":"object"},"name":"ddflow_next"},{"description":"Project rules. Set `action`; required arguments in brackets: add(id,title), list, search(query), edit(id), remove(id), sync, show(id).","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["add","list","search","edit","remove","sync","show"],"type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"check":{"description":"Dry run: list duplicates only.","type":"boolean"},"content":{"description":"Rule text (may be empty for check_only).","type":"string"},"duplicate_of":{"description":"Dedup answer: same as record ID.","type":"string"},"enforcement":{"description":"advisory | warn | block: how hard the rule binds (default advisory).","type":"string"},"exact":{"description":"Exact phrase.","type":"boolean"},"extends":{"description":"Dedup answer: extends record ID.","type":"string"},"globs":{"description":"Comma-separated globs it governs.","type":"string"},"id":{"description":"Rule id, e.g. r-naming.","type":"string"},"json":{"description":"","type":"boolean"},"limit":{"description":"Maximum results to return (default 10).","type":"integer"},"new":{"description":"Dedup answer: a different record.","type":"boolean"},"priority":{"description":"Priority 0-100 (default 50).","type":"integer"},"query":{"description":"Search query (keywords or regex).","type":"string"},"reason":{"description":"","type":"string"},"regex":{"description":"Query is a regex.","type":"boolean"},"related":{"description":"Dedup answer: related to ID.","type":"string"},"scope":{"description":"project (default) | phase | task | global.","type":"string"},"tag":{"description":"Filter results by this tag.","type":"string"},"tags":{"description":"Comma-separated tags.","type":"string"},"title":{"description":"One-line rule statement.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_rule"},{"description":"The session log. Set `action`; required arguments in brackets: note(text), end(session), prompt(text), start.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["note","end","prompt","start"],"type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"item":{"description":"Item it concerns.","type":"string"},"model":{"description":"Your model id.","type":"string"},"session":{"description":"Session id; omit for the latest open.","type":"string"},"summary":{"description":"What this session achieved.","type":"string"},"text":{"description":"The prompt, verbatim.","type":"string"},"tool":{"description":"Your harness, e.g. 'claude-code'.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_session"},{"description":"Everything known about one phase, task, bug or research note: state, dependencies, globs, the lease holder, the worktree path, and every gate's outcome with evidence. Check your work with it before ddflow_complete.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"brief":{"description":"With report: the 8-line form.","type":"boolean"},"id":{"description":"Item, bug or research-note id.","type":"string"},"report":{"description":"Its completion report.","type":"boolean"}},"required":["id"],"type":"object"},"name":"ddflow_show"},{"description":"Tasks, phases and research notes. Set `action`; required arguments in brackets: phase_add(id), split(id,into), add(id), research_add(question,verdict), update(id), remove(id), resolve(id,keep), phase_close(id,imported), batch, fold(dup,keep), rename(old,new).","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["phase_add","split","add","research_add","update","remove","resolve","phase_close","batch","fold","rename"],"type":"string"},"append_body":{"description":"Text to ADD after the item's current body (a blank line between); the original is kept. Use it for a note or a decision instead of re-sending the body.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"body":{"description":"New detail / acceptance criteria. REPLACES the body.","type":"string"},"budget":{"description":"What you allowed yourself, e.g. '30 min, no GPU'.","type":"string"},"check_only":{"description":"Dry run: write nothing, return the `candidates`.","type":"boolean"},"claim":{"description":"The falsifiable claim.","type":"string"},"dry_run":{"description":"Plan and show the diff; record nothing.","type":"boolean"},"dup":{"description":"The duplicate to abandon.","type":"string"},"edits":{"description":"JSON array of edit objects, each with an 'id'.","type":"string"},"falsifier":{"description":"The single observation that would kill it.","type":"string"},"force":{"description":"Remove although it still has open children or dependents. Both leave the queue inconsistent in a way the scheduler reports; read the refusal before overriding.","type":"boolean"},"globs":{"description":"Path globs this item writes, comma-separated or a JSON array. REPLACES the list (a claimed item's lease too); the result names what it dropped. Empty: none, and a fix task then takes none from its bug.","type":"string"},"id":{"description":"Stable id you choose. Referenced by `supersedes`, by commit messages and by the reconstruction; a generated id cannot be cited in advance.","type":"string"},"imported":{"description":"Required: closes an IMPORTED phase; its imported source is the evidence recorded.","type":"boolean"},"into":{"description":"Comma-separated 'sub-id=title' pairs. At least two.","type":"string"},"item":{"description":"The task this research is for.","type":"string"},"keep":{"description":"Event id (or a 6+ character prefix), agent, or lease holder to keep.","type":"string"},"kind":{"description":"Work kind: task, doc, research or job (its gate pipeline).","type":"string"},"landed":{"description":"Record work already on main: a commit, or <before>..<after>; verified as ancestors of the base touching the item's globs. For work merged outside `ddflow merge`.","type":"string"},"line":{"description":"Release line this lands on (a name from [flow.lines], or the current line). Omit for the current line; tasks inherit a phase's line.","type":"string"},"lines":{"description":"Release lines a FIX must reach, e.g. '1,2,3': written where [flow].port_strategy says, plus a port task `<id>@<line>` per other line.","type":"string"},"mechanism":{"description":"WHY it would work in this repo. The middle field of the triple — claim, mechanism, falsifier — and the one most often skipped.","type":"string"},"needs":{"description":"Comma-separated ids it depends on. Pass an EMPTY string to clear them — that is how you break a dependency cycle the loop detector found.","type":"string"},"new":{"description":"Its new id.","type":"string"},"old":{"description":"The task to rename.","type":"string"},"parent":{"description":"Move the task under this phase (or task); empty makes it top level. Refused for a finished item, a missing parent, or a dependency cycle.","type":"string"},"phase":{"description":"Owning phase id. Give this OR `parent`.","type":"string"},"port_of":{"description":"Earlier fix this follows up: reuses the lines it reached.","type":"string"},"priority":{"description":"Lower is offered first (default 100; a DX or bug-fix task: its band).","type":"integer"},"probe":{"description":"The command you ran.","type":"string"},"probe_output":{"description":"Its output, verbatim.","type":"string"},"question":{"description":"What was asked.","type":"string"},"queue":{"description":"Queue a refused request (FIFO per file).","type":"boolean"},"readd":{"description":"File a REMOVED item's id again with this definition. An id still in the queue is always refused -- change that item with ddflow_update.","type":"boolean"},"reason":{"description":"Why (recorded on the abandonment).","type":"string"},"refile_as":{"description":"Comma-separated new ids, one per definition NOT kept, in `show` order: each is re-added under its new id in the same transaction.","type":"string"},"relation":{"description":"Answer to a 'possible duplicate' refusal: new | extends:ID | duplicate_of:ID | related:ID | merge_into:ID. Omit at first.","type":"string"},"resources":{"description":"Physical resources the work RUNS on, beside its files: 'gpu:4,vllm-fleet'. `next` withholds and `claim` refuses while live claims use up the capacity ([schedule] resources). Declare for a GPU job, model server or long run. Empty clears.","type":"string"},"sources":{"description":"Comma-separated URLs/DOIs you actually opened.","type":"string"},"tags":{"description":"Comma-separated tags.","type":"string"},"title":{"description":"One-line description.","type":"string"},"verdict":{"description":"CONFIRMED | REFUTED | THEORETICAL","type":"string"},"worktree":{"description":"Rebind the item and your live lease to this linked worktree (absolute, or repo-relative) and its branch: the way out of a wrong-tree binding, since re-claiming keeps the recorded tree and merge lands that tree's branch.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_task"},{"description":"Read the queue, history and reports. Set `action`; required arguments in brackets: queue, board, progress, loops, status, render, list(kind), history, cadence, pins(document), lanes, metrics, health, docs.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["queue","board","progress","loops","status","render","list","history","cadence","pins","lanes","metrics","health","docs"],"type":"string"},"after_merge":{"description":"regenerate: the post-merge hook entry.","type":"boolean"},"all":{"description":"kind=bug|lesson: include fixed/invalid/superseded.","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"by_agent":{"description":"Only this agent's events.","type":"string"},"check":{"description":"regenerate: list stale pins only.","type":"boolean"},"diff":{"description":"check: a git base; report only the extracted surface added since it.","type":"string"},"document":{"description":"Instruction file path; or `regenerate`.","type":"string"},"group_by":{"description":"Group the outcome rates by gate (default), reviewer, agent, kind or phase.","type":"string"},"id":{"description":"One item, with its per-attempt detail.","type":"string"},"install":{"description":"regenerate: install merge driver + hook.","type":"boolean"},"item":{"description":"The item to look back on; with view=retro.","type":"string"},"kind":{"description":"Comma-separated event kinds or families: 'gate', 'lease.acquired', 'decision,bug'.","type":"string"},"lane":{"description":"Lane name (or a unique part); with view=brief.","type":"string"},"limit":{"description":"Rows returned, most effort first (default 25; 0 = all).","type":"integer"},"max_batch":{"description":"run: max entries.","type":"integer"},"min_needle":{"description":"Shortest string literal that counts as a pin (default 12).","type":"integer"},"mode":{"description":"search: ranked|exact|regex.","type":"string"},"note":{"description":"What the pass did, recorded with it.","type":"string"},"offset":{"description":"Skip this many rows (paging; a cut list says `next`).","type":"integer"},"only":{"description":"regenerate: just this pin.","type":"string"},"op":{"description":"queue: add|run|status (default)|remove.","type":"string"},"out":{"description":"Directory for the generated views (default: docs/ddflow).","type":"string"},"owner":{"description":"Only this agent's rows.","type":"string"},"phase":{"description":"Limit to one phase (and, for forecast, its critical path).","type":"string"},"query":{"description":"kind=search: text to find.","type":"string"},"ran":{"description":"Record that this cadence just ran.","type":"string"},"run":{"description":"Correct per mode.","type":"boolean"},"show":{"description":"Print ONE view instead of writing files: lessons, lessons-summary, research, or board. This is what the ddflow:// resources are served from.","type":"string"},"since":{"description":"Only what happened since: a duration back from now (7d, 12h) or a date YYYY-MM-DD.","type":"string"},"source":{"description":"search: comma-separated search sources (default all).","type":"string"},"sources":{"description":"search: comma-separated record kinds.","type":"string"},"state":{"description":"Only this state.","type":"string"},"tag":{"description":"Only this tag.","type":"string"},"tail":{"description":"Last N entries, oldest first (overrides limit).","type":"integer"},"tests":{"description":"Comma-separated test dirs (default: tests,test).","type":"string"},"timeout":{"description":"run: ci seconds.","type":"integer"},"top":{"description":"How many free stretches to return (default 10).","type":"integer"},"unit_tests":{"description":"Also run unit_tests.","type":"boolean"},"verb":{"description":"check (default).","type":"string"},"view":{"description":"summary (default), forecast, retro, skips or lanes.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_view"}],"ttlMs":3600000}}}
{"at":"2026-11-23T04:54:38.719Z","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:54:39.733Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false},"tools":{"listChanged":false}},"instructions":"This connection lists the `lean` profile (16 tools of 136). The rest are NOT in `tools/list` but stay callable: every tool by its own name, and every family tool by `action` (`ddflow_gate action=record`); `ddflow_help` names them. To list more, set `[mcp].tools` to `families`, `hot+families` or `all` in .ddflow/config.toml (or `DDFLOW_MCP_TOOLS`) and restart the server; the profile is read once at start.\n\nThis repository does not use ddflow yet.\nIf the user wants a managed work queue, offer the `onboard` prompt (`ddflow_prompts` action `show`, name `onboard`), or call `ddflow_setup` once. Then `ddflow_import` if the project has history. Do not call other tools before `ddflow_setup`.\nIf the user has not asked for any of this, say nothing about it and carry on.","protocolVersion":"2025-11-25","serverInfo":{"name":"ddflow","title":"ddflow work-queue kernel","version":"0.2.9"}}}}
{"at":"2026-11-23T04:54:39.734Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:54:39.734Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:54:39.736Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"START HERE every session. Returns a budgeted pack: work recoverable after a crash, the current item, what is ready to start now, why everything else is blocked, and the past lessons ranked as relevant to this task. Use this INSTEAD of reading the project's lesson or rule files: the same information, ranked for the task at hand, at a fraction of the tokens.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"check_recovery":{"description":"Scan for crashed agents' worktrees and lead with them: know it BEFORE new work.","type":"boolean"},"for_agent":{"description":"Render this subagent's launch brief for item.","type":"string"},"item":{"description":"Focus on this phase or task id (optional).","type":"string"},"phase":{"description":"Restrict the ready set to this phase (optional).","type":"string"}},"type":"object"},"name":"ddflow_brief"},{"description":"Bug records. Set `action`; required arguments in brackets: fixed(id), invalid(id,reason), found(summary), file_tasks.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["fixed","invalid","found","file_tasks"],"type":"string"},"all":{"description":"File a fix task for EVERY open bug that has none, other agents' too. Without it and without `id`, only a preview.","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"changelog":{"description":"Optional 'Fixed: text' (any category), or skip.","type":"string"},"check_only":{"description":"Dry run: write nothing, return the `candidates`.","type":"boolean"},"dry_run":{"description":"List what would be filed; write nothing.","type":"boolean"},"evidence":{"description":"The probe command or test node id that showed it false.","type":"string"},"globs":{"description":"The fix task's files; default: the item's globs.","type":"string"},"id":{"description":"Stable id, e.g. 'B1'. You will cite it when closing.","type":"string"},"item":{"description":"The task it was found in or affects.","type":"string"},"landed":{"description":"A commit already on the base that holds the fix (the fix task was claimed after it landed): the test must fail on its first parent and pass on it; the fix task is ended naming it.","type":"string"},"lesson":{"description":"Id of an existing lesson this bug belongs to.","type":"string"},"lesson_rule":{"description":"The lesson in full: the transferable rule, not the incident.","type":"string"},"lesson_title":{"description":"Capture a lesson at the same time.","type":"string"},"lint_exempt":{"description":"For a CI-filed LINT bug (a check that is not a test, e.g. ruff format --check): why it needs no regression test (what made the check green). Recorded as regression_verified=exempt-lint; instead of regression_test.","type":"string"},"mutation":{"description":"Test-only fix: JSON {\"file\",\"old\",\"new\"} disabling it; the test must FAIL.","type":"string"},"no_task":{"description":"File no fix task (fixed in the same commit).","type":"boolean"},"reason":{"description":"Why the finding is false (with reopen: why reopen).","type":"string"},"regression_test":{"description":"Test that now guards this. Several: separate with ',' or ';'.","type":"string"},"regression_tests":{"description":"The tests guarding this, one per element: the list form of regression_test.","items":{"type":"string"},"type":"array"},"relation":{"description":"Answer to a 'possible duplicate' refusal: new | extends:ID | duplicate_of:ID | related:ID | merge_into:ID. Omit at first.","type":"string"},"reopen":{"description":"Reopen the closed bug instead.","type":"boolean"},"scope":{"description":"project (default) or ddflow.","type":"string"},"severity":{"description":"low|medium|high|critical.","type":"string"},"skip_regression_verify":{"description":"Skip the pre-fix check (the test must FAIL pre-fix, PASS fixed). Needs verify_reason.","type":"boolean"},"summary":{"description":"What is wrong, in one line.","type":"string"},"title":{"description":"Short headline.","type":"string"},"verify_reason":{"description":"Why the pre-fix check is skipped (recorded); required with skip_regression_verify.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_bug"},{"description":"Lease an item and create its isolated git worktree. Refuses (exit 3) if another agent holds it or an overlapping item, and names what you could take instead. NEVER steals an expired lease: a crashed agent's tree often holds finished work.","inputSchema":{"additionalProperties":false,"properties":{"approval":{"description":"An agent's way past a refusal --force would override: 'request' asks the operator, then the approval id they answered.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"break":{"description":"Break a contended, idle lease (work kept).","type":"boolean"},"force":{"description":"Override a refusal; only to retry after `ddflow_recover` said a crashed agent's tree holds nothing. Forcing past a dependency or live lease lets two agents write one file. Recorded.","type":"boolean"},"globs":{"description":"Comma-separated path globs this work will write.","type":"string"},"id":{"description":"Item id to claim, or an open bug id (its fix task is claimed, filed first if none).","type":"string"},"no_worktree":{"description":"Lease the item without creating a worktree. For work that is not a code change — a research or review task.","type":"boolean"},"note":{"description":"What you intend to do.","type":"string"},"queue":{"description":"Queue a refused request (FIFO per file).","type":"boolean"},"resources":{"description":"Physical resources this claim holds, e.g. 'gpu:2'; they REPLACE the item's declared ones. Refused (exit 3) when live claims already use the capacity ([schedule] resources), every holder counted.","type":"string"}},"required":["id"],"type":"object"},"name":"ddflow_claim"},{"description":"Finish an item. Refuses (exit 3) when a required gate has not passed, a phase has open tasks, or no reviewer came from a different model family than the author. Pass your own 'model'.","inputSchema":{"additionalProperties":false,"properties":{"approval":{"description":"An agent's way past unmet conditions: 'request' asks the operator, then the approval id they answered.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"changelog":{"description":"Optional 'Added|Changed|Deprecated|Removed|Fixed|Security: text', or skip.","type":"string"},"force":{"description":"Complete over unmet conditions, each recorded as overridden forever. Prefer `ddflow_gate_skip` with a reason.","type":"boolean"},"id":{"description":"Item id.","type":"string"},"model":{"description":"The AUTHOR's model.","type":"string"},"mutation":{"description":"Test-only fix: JSON {\"file\",\"old\",\"new\"} disabling it; the test must FAIL.","type":"string"},"regression_test":{"description":"Fix task: the test guarding its bug(s); closes them.","type":"string"},"sha":{"description":"Commit sha this shipped as.","type":"string"}},"required":["id"],"type":"object"},"name":"ddflow_complete"},{"description":"Quality gates of a work item. Set `action`; required arguments in brackets: status(id), list, run(id,gate), record(id,gate,outcome), verify(id,gate), skip(id,gate,reason), ci, tests.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["status","list","run","record","verify","skip","ci","tests"],"type":"string"},"approval":{"description":"An operator approval id (Q...) for this exact override; a refusal names it.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"base":{"description":"Compare against this ref instead of the item's base.","type":"string"},"command":{"description":"The command you ran. With `exit_code` it makes an outcome evidence; a gate in `gates.evidence_required` is rejected without them.","type":"string"},"evidence":{"description":"What you ran and what it said. Required by some gates.","type":"string"},"exit_code":{"description":"That command's exit code.","type":"string"},"full":{"description":"Whole suite (run).","type":"boolean"},"gate":{"description":"Gate id. Must be a command gate.","type":"string"},"id":{"description":"Item whose worktree to mutate in.","type":"string"},"item":{"description":"The item whose worktree and base to use.","type":"string"},"model":{"description":"REVIEWER's model, e.g. 'gemini-2.5-pro'.","type":"string"},"op":{"description":"ci: run | status (default).","type":"string"},"outcome":{"description":"passed | failed | unavailable | partial | skipped","type":"string"},"output_file":{"description":"Path to its full output; a digest is recorded.","type":"string"},"reason":{"description":"Why this step does not apply HERE. 'n/a' is not a reason: the next person reads this to decide whether you were right.","type":"string"},"ref":{"description":"Commit to check (run).","type":"string"},"refuted":{"description":"List the gates passed on refutation instead.","type":"boolean"},"reviewed_sha":{"description":"Commit reviewed (roborev review <sha>); must be the branch.","type":"string"},"reviewer_model":{"description":"Like `model`; says it IS the reviewer.","type":"string"},"since":{"description":"With refuted: since this ISO date.","type":"string"},"timeout":{"description":"run: seconds this run may take (at most [gates].max_run_timeout_s).","type":"integer"}},"required":["action"],"type":"object"},"name":"ddflow_gate"},{"description":"Renew the lease on an item. Call periodically during long work, or the lease expires and another agent may take the item.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"id":{"description":"Item id.","type":"string"}},"type":"object"},"name":"ddflow_heartbeat"},{"description":"What ddflow IS, what it can do, and what the workflow is. Call this first if you have not used it before: the other descriptions explain one tool each and the connection instructions describe THIS repository; neither answers 'how am I meant to work here'. No argument: the loop from picking work to landing it, the exit codes, and every capability grouped by purpose. `topic`: workflow, import, gates, parallel, memory, recovery, config. Read-only; the pages are templates a project may override.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"topic":{"description":"workflow | import | gates | parallel | memory | recovery | config. Omit for the overview, which lists them.","type":"string"}},"type":"object"},"name":"ddflow_help"},{"description":"Declare WHO you are on this connection before anything that writes. Call it first when 2+ agents or subagents work this repository at once: identity attributes every claim, gate outcome and review, and the tree-derived default merges several agents in one tree into one identity with no error (a review would pass independence against itself). Pick a short stable name (your role), distinct from the others'. Idempotent. A SUBAGENT sharing its parent's connection must NOT call this; it passes `as_agent` on each call instead (the CLI's `--agent`). Stateless 2026-07-28 requests: persists nothing; name yourself per call (as_agent or _meta ddflow/agent).","inputSchema":{"additionalProperties":false,"properties":{"agent":{"description":"A short stable name, e.g. 'reviewer-2' (letters, digits, . _ -; max 64; it names your log file). OMIT to reset to the tree-derived default.","type":"string"}},"type":"object"},"name":"ddflow_identify"},{"description":"Lessons, memories, recall and record links. Set `action`; required arguments in brackets: lesson_verify, lesson_add(title), lesson_search(query), recall(query), similar(text), dupes, link(subject,relation,target), add(text), list, forget(id,reason).","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["lesson_verify","lesson_add","lesson_search","recall","similar","dupes","link","add","list","forget"],"type":"string"},"all":{"description":"Include forgotten memories, with why they were forgotten.","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"check_only":{"description":"Dry run: write nothing, return the `candidates`.","type":"boolean"},"floor":{"description":"Minimum score to report (default: [dedupe].show_floor).","type":"number"},"globs":{"description":"Comma-separated globs to scan for `pattern`. Default: every tracked file.","type":"string"},"how":{"description":"How to apply or detect it.","type":"string"},"id":{"description":"Stable id you choose. Referenced by `supersedes`, by commit messages and by the reconstruction; a generated id cannot be cited in advance.","type":"string"},"item":{"description":"Only the pairs this record is in.","type":"string"},"kind":{"description":"Comma-separated subset of the configured kinds to look in: bug,task,phase,lesson,decision,research,memory. Default: all of them.","type":"string"},"limit":{"description":"At most this many (default: all).","type":"integer"},"max_chars":{"description":"Total budget for the answer. The point of a budget is that recall is called at the START of work, where a long answer costs the context the work itself needs.","type":"integer"},"open_only":{"description":"Only pairs where both records are still live (the dedupe_sweep pass).","type":"boolean"},"pattern":{"description":"A regex naming the mistake in CODE. Scans now and stores WHICH sites match, so `ddflow_lesson_verify` can name those that reappear. Prefer it to a remembered rule when mechanical: a count says 'worse', never 'which'. Refused if it does not compile.","type":"string"},"query":{"description":"Rank by relevance to this instead of by recency.","type":"string"},"reason":{"description":"Why, recorded with the link.","type":"string"},"relation":{"description":"Answer to a 'possible duplicate' refusal: new | extends:ID | duplicate_of:ID | related:ID | merge_into:ID. Omit at first.","type":"string"},"rule":{"description":"The rule in full.","type":"string"},"seen_in":{"description":"Comma-separated item ids where this was hit. What makes a lesson checkable later instead of merely memorable.","type":"string"},"sources":{"description":"Comma-separated subset: decisions,lessons,memories,research,bugs,items,prompts. Default: all.","type":"string"},"subject":{"description":"The record being related (the duplicate, for a merge).","type":"string"},"summary":{"description":"The lesson in ONE paragraph, for a reader who will not open the full rule. Rendered into docs/ddflow/LESSONS-SUMMARY.md.","type":"string"},"supersedes":{"description":"Comma-separated lesson ids this replaces. The old one is retired, not deleted: the corpus stops growing without losing what was once believed.","type":"string"},"tags":{"description":"Comma-separated tags, e.g. 'gpu,machine'.","type":"string"},"target":{"description":"The record it is related to.","type":"string"},"text":{"description":"The title or summary of the record you are about to file.","type":"string"},"title":{"description":"The rule as a one-line statement.","type":"string"},"why":{"description":"Why it is true / what went wrong.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_memory"},{"description":"Land an item's branch without ever switching a checkout's branch. With [flow].integration = 'pr' it pushes and opens (or updates) a pull request instead, releases your lease and parks the item in REVIEW — take the next item; `ddflow_pr_sync` completes it once a person merges it.","inputSchema":{"additionalProperties":false,"properties":{"allow_dirty":{"description":"Merge although the worktree is dirty; uncommitted changes are NOT included. Only once you know it is build output.","type":"boolean"},"allow_empty":{"description":"Land a branch with no commits ahead of its target (refused by default: usually the wrong tree; rebind with ddflow_update worktree).","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"branch":{"description":"no_worktree items: the branch to land (default: the one checked out where this runs). Changes outside the item's globs come back as outside_globs.","type":"string"},"id":{"description":"Item id.","type":"string"},"keep":{"description":"Keep the worktree after merging, for inspection.","type":"boolean"},"message":{"description":"Merge commit message.","type":"string"},"model":{"description":"The AUTHOR's model. In PR mode the item completes at `ddflow_pr_sync`, which needs it for reviewer independence.","type":"string"},"queue":{"description":"Enqueue (ddflow_queue add) instead of landing.","type":"boolean"}},"required":["id"],"type":"object"},"name":"ddflow_merge"},{"description":"What may be started RIGHT NOW, and for everything that may not, the reason. Independent items in the ready set can be run in parallel worktrees by separate agents. Returns ready=[] when nothing is actionable — that is a result, not an error, and it never means 'pick something anyway'.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"kind":{"description":"'task' (default) or 'phase'.","type":"string"},"phase":{"description":"Restrict to one phase (the 'implement phase X' entry point).","type":"string"}},"type":"object"},"name":"ddflow_next"},{"description":"Project rules. Set `action`; required arguments in brackets: add(id,title), list, search(query), edit(id), remove(id), sync, show(id).","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["add","list","search","edit","remove","sync","show"],"type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"check":{"description":"Dry run: list duplicates only.","type":"boolean"},"content":{"description":"Rule text (may be empty for check_only).","type":"string"},"duplicate_of":{"description":"Dedup answer: same as record ID.","type":"string"},"enforcement":{"description":"advisory | warn | block: how hard the rule binds (default advisory).","type":"string"},"exact":{"description":"Exact phrase.","type":"boolean"},"extends":{"description":"Dedup answer: extends record ID.","type":"string"},"globs":{"description":"Comma-separated globs it governs.","type":"string"},"id":{"description":"Rule id, e.g. r-naming.","type":"string"},"json":{"description":"","type":"boolean"},"limit":{"description":"Maximum results to return (default 10).","type":"integer"},"new":{"description":"Dedup answer: a different record.","type":"boolean"},"priority":{"description":"Priority 0-100 (default 50).","type":"integer"},"query":{"description":"Search query (keywords or regex).","type":"string"},"reason":{"description":"","type":"string"},"regex":{"description":"Query is a regex.","type":"boolean"},"related":{"description":"Dedup answer: related to ID.","type":"string"},"scope":{"description":"project (default) | phase | task | global.","type":"string"},"tag":{"description":"Filter results by this tag.","type":"string"},"tags":{"description":"Comma-separated tags.","type":"string"},"title":{"description":"One-line rule statement.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_rule"},{"description":"The session log. Set `action`; required arguments in brackets: note(text), end(session), prompt(text), start.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["note","end","prompt","start"],"type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"item":{"description":"Item it concerns.","type":"string"},"model":{"description":"Your model id.","type":"string"},"session":{"description":"Session id; omit for the latest open.","type":"string"},"summary":{"description":"What this session achieved.","type":"string"},"text":{"description":"The prompt, verbatim.","type":"string"},"tool":{"description":"Your harness, e.g. 'claude-code'.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_session"},{"description":"Everything known about one phase, task, bug or research note: state, dependencies, globs, the lease holder, the worktree path, and every gate's outcome with evidence. Check your work with it before ddflow_complete.","inputSchema":{"additionalProperties":false,"properties":{"as_agent":{"description":"Subagent name, this call only.","type":"string"},"brief":{"description":"With report: the 8-line form.","type":"boolean"},"id":{"description":"Item, bug or research-note id.","type":"string"},"report":{"description":"Its completion report.","type":"boolean"}},"required":["id"],"type":"object"},"name":"ddflow_show"},{"description":"Tasks, phases and research notes. Set `action`; required arguments in brackets: phase_add(id), split(id,into), add(id), research_add(question,verdict), update(id), remove(id), resolve(id,keep), phase_close(id,imported), batch, fold(dup,keep), rename(old,new).","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["phase_add","split","add","research_add","update","remove","resolve","phase_close","batch","fold","rename"],"type":"string"},"append_body":{"description":"Text to ADD after the item's current body (a blank line between); the original is kept. Use it for a note or a decision instead of re-sending the body.","type":"string"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"body":{"description":"New detail / acceptance criteria. REPLACES the body.","type":"string"},"budget":{"description":"What you allowed yourself, e.g. '30 min, no GPU'.","type":"string"},"check_only":{"description":"Dry run: write nothing, return the `candidates`.","type":"boolean"},"claim":{"description":"The falsifiable claim.","type":"string"},"dry_run":{"description":"Plan and show the diff; record nothing.","type":"boolean"},"dup":{"description":"The duplicate to abandon.","type":"string"},"edits":{"description":"JSON array of edit objects, each with an 'id'.","type":"string"},"falsifier":{"description":"The single observation that would kill it.","type":"string"},"force":{"description":"Remove although it still has open children or dependents. Both leave the queue inconsistent in a way the scheduler reports; read the refusal before overriding.","type":"boolean"},"globs":{"description":"Path globs this item writes, comma-separated or a JSON array. REPLACES the list (a claimed item's lease too); the result names what it dropped. Empty: none, and a fix task then takes none from its bug.","type":"string"},"id":{"description":"Stable id you choose. Referenced by `supersedes`, by commit messages and by the reconstruction; a generated id cannot be cited in advance.","type":"string"},"imported":{"description":"Required: closes an IMPORTED phase; its imported source is the evidence recorded.","type":"boolean"},"into":{"description":"Comma-separated 'sub-id=title' pairs. At least two.","type":"string"},"item":{"description":"The task this research is for.","type":"string"},"keep":{"description":"Event id (or a 6+ character prefix), agent, or lease holder to keep.","type":"string"},"kind":{"description":"Work kind: task, doc, research or job (its gate pipeline).","type":"string"},"landed":{"description":"Record work already on main: a commit, or <before>..<after>; verified as ancestors of the base touching the item's globs. For work merged outside `ddflow merge`.","type":"string"},"line":{"description":"Release line this lands on (a name from [flow.lines], or the current line). Omit for the current line; tasks inherit a phase's line.","type":"string"},"lines":{"description":"Release lines a FIX must reach, e.g. '1,2,3': written where [flow].port_strategy says, plus a port task `<id>@<line>` per other line.","type":"string"},"mechanism":{"description":"WHY it would work in this repo. The middle field of the triple — claim, mechanism, falsifier — and the one most often skipped.","type":"string"},"needs":{"description":"Comma-separated ids it depends on. Pass an EMPTY string to clear them — that is how you break a dependency cycle the loop detector found.","type":"string"},"new":{"description":"Its new id.","type":"string"},"old":{"description":"The task to rename.","type":"string"},"parent":{"description":"Move the task under this phase (or task); empty makes it top level. Refused for a finished item, a missing parent, or a dependency cycle.","type":"string"},"phase":{"description":"Owning phase id. Give this OR `parent`.","type":"string"},"port_of":{"description":"Earlier fix this follows up: reuses the lines it reached.","type":"string"},"priority":{"description":"Lower is offered first (default 100; a DX or bug-fix task: its band).","type":"integer"},"probe":{"description":"The command you ran.","type":"string"},"probe_output":{"description":"Its output, verbatim.","type":"string"},"question":{"description":"What was asked.","type":"string"},"queue":{"description":"Queue a refused request (FIFO per file).","type":"boolean"},"readd":{"description":"File a REMOVED item's id again with this definition. An id still in the queue is always refused -- change that item with ddflow_update.","type":"boolean"},"reason":{"description":"Why (recorded on the abandonment).","type":"string"},"refile_as":{"description":"Comma-separated new ids, one per definition NOT kept, in `show` order: each is re-added under its new id in the same transaction.","type":"string"},"relation":{"description":"Answer to a 'possible duplicate' refusal: new | extends:ID | duplicate_of:ID | related:ID | merge_into:ID. Omit at first.","type":"string"},"resources":{"description":"Physical resources the work RUNS on, beside its files: 'gpu:4,vllm-fleet'. `next` withholds and `claim` refuses while live claims use up the capacity ([schedule] resources). Declare for a GPU job, model server or long run. Empty clears.","type":"string"},"sources":{"description":"Comma-separated URLs/DOIs you actually opened.","type":"string"},"tags":{"description":"Comma-separated tags.","type":"string"},"title":{"description":"One-line description.","type":"string"},"verdict":{"description":"CONFIRMED | REFUTED | THEORETICAL","type":"string"},"worktree":{"description":"Rebind the item and your live lease to this linked worktree (absolute, or repo-relative) and its branch: the way out of a wrong-tree binding, since re-claiming keeps the recorded tree and merge lands that tree's branch.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_task"},{"description":"Read the queue, history and reports. Set `action`; required arguments in brackets: queue, board, progress, loops, status, render, list(kind), history, cadence, pins(document), lanes, metrics, health, docs.","inputSchema":{"additionalProperties":false,"properties":{"action":{"description":"What to do; see the tool description for each action's arguments.","enum":["queue","board","progress","loops","status","render","list","history","cadence","pins","lanes","metrics","health","docs"],"type":"string"},"after_merge":{"description":"regenerate: the post-merge hook entry.","type":"boolean"},"all":{"description":"kind=bug|lesson: include fixed/invalid/superseded.","type":"boolean"},"as_agent":{"description":"Subagent name, this call only.","type":"string"},"by_agent":{"description":"Only this agent's events.","type":"string"},"check":{"description":"regenerate: list stale pins only.","type":"boolean"},"diff":{"description":"check: a git base; report only the extracted surface added since it.","type":"string"},"document":{"description":"Instruction file path; or `regenerate`.","type":"string"},"group_by":{"description":"Group the outcome rates by gate (default), reviewer, agent, kind or phase.","type":"string"},"id":{"description":"One item, with its per-attempt detail.","type":"string"},"install":{"description":"regenerate: install merge driver + hook.","type":"boolean"},"item":{"description":"The item to look back on; with view=retro.","type":"string"},"kind":{"description":"Comma-separated event kinds or families: 'gate', 'lease.acquired', 'decision,bug'.","type":"string"},"lane":{"description":"Lane name (or a unique part); with view=brief.","type":"string"},"limit":{"description":"Rows returned, most effort first (default 25; 0 = all).","type":"integer"},"max_batch":{"description":"run: max entries.","type":"integer"},"min_needle":{"description":"Shortest string literal that counts as a pin (default 12).","type":"integer"},"mode":{"description":"search: ranked|exact|regex.","type":"string"},"note":{"description":"What the pass did, recorded with it.","type":"string"},"offset":{"description":"Skip this many rows (paging; a cut list says `next`).","type":"integer"},"only":{"description":"regenerate: just this pin.","type":"string"},"op":{"description":"queue: add|run|status (default)|remove.","type":"string"},"out":{"description":"Directory for the generated views (default: docs/ddflow).","type":"string"},"owner":{"description":"Only this agent's rows.","type":"string"},"phase":{"description":"Limit to one phase (and, for forecast, its critical path).","type":"string"},"query":{"description":"kind=search: text to find.","type":"string"},"ran":{"description":"Record that this cadence just ran.","type":"string"},"run":{"description":"Correct per mode.","type":"boolean"},"show":{"description":"Print ONE view instead of writing files: lessons, lessons-summary, research, or board. This is what the ddflow:// resources are served from.","type":"string"},"since":{"description":"Only what happened since: a duration back from now (7d, 12h) or a date YYYY-MM-DD.","type":"string"},"source":{"description":"search: comma-separated search sources (default all).","type":"string"},"sources":{"description":"search: comma-separated record kinds.","type":"string"},"state":{"description":"Only this state.","type":"string"},"tag":{"description":"Only this tag.","type":"string"},"tail":{"description":"Last N entries, oldest first (overrides limit).","type":"integer"},"tests":{"description":"Comma-separated test dirs (default: tests,test).","type":"string"},"timeout":{"description":"run: ci seconds.","type":"integer"},"top":{"description":"How many free stretches to return (default 10).","type":"integer"},"unit_tests":{"description":"Also run unit_tests.","type":"boolean"},"verb":{"description":"check (default).","type":"string"},"view":{"description":"summary (default), forecast, retro, skips or lanes.","type":"string"}},"required":["action"],"type":"object"},"name":"ddflow_view"}]}}}
