propose_contract
Turns an agreed plan into a versioned execution contract with tasks, budget and scope, then collects participant consent before freezing so workers can build in parallel.
Instructions
Turn an agreed plan into a heads-down contract: a draft v1 in a new execution, which workers build in parallel once every participant consents and you freeze it. The structure comes from, in order: contract (an explicit object with tasks: the most reliable route), the last ```roundtable-tasks JSON block in plan or in the archived from_session (an ultraplan started with execution_ready: true ends with one), or a structuring call on the plan text (one retry quoting the validation errors). A contract object without tasks overlays the structure (budget, sandbox, workers, authority, scope.paths, ...). original_prompt is the human's request, verbatim (default: the session's task). repo_dir (default the workspace) resolves to its git top level and base_ref (default HEAD) to a commit. Participants default to the session's agents plus every task persona. consent: true asks each participant for Consent: AGREE | OBJECT (an unclear answer is re-asked once, then counts as an objection). Nothing is written to the repository: the contract lives under ROUNDTABLE_HOME/executions. Returns the contract as markdown and a JSON summary (contract_id, version, status, warnings, consent, next). Show the contract to the human before freezing.
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": {
"goal": "<goal>",
"orchestrator": "<orchestrator>"
},
"name": "propose_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | The ultimate goal the contract delivers. | |
| plan | No | Plan text: its last roundtable-tasks block is used, else a structuring call turns it into tasks. | |
| model | No | Model id. Defaults: claude-sonnet-5-5 (anthropic), gpt-5.6-luna (openai), zai-org/GLM-5.3 (together), qwen/qwen3-235b-a22b-instruct-2507 (replicate), qwen3:14b (ollama), default (openai_compatible). Model aliases: "opus" (claude-opus-5-5), "sonnet" (claude-sonnet-5-5), "haiku" (claude-haiku-5-5). Replicate accepts owner/name, owner/name:version, or a https://replicate.com/owner/name URL. | |
| title | No | Short title; default the goal's first line. | |
| consent | No | Default false. True: ask every participant for consent right away. | |
| base_ref | No | The commit or ref the run starts from; default HEAD. Stored as the resolved sha. | |
| base_url | No | Only with provider "openai_compatible": base URL of an OpenAI-compatible /v1 endpoint (e.g. http://localhost:1234/v1). Overrides OPENAI_COMPATIBLE_BASE_URL. OPENAI_COMPATIBLE_API_KEY, if set, is sent only to the OPENAI_COMPATIBLE_BASE_URL origin or one listed in ROUNDTABLE_OPENAI_COMPATIBLE_TRUSTED_ORIGINS; any other base URL gets no Authorization header and must be https (http only to loopback, or to private addresses with ROUNDTABLE_ALLOW_PRIVATE_BASE_URLS=1), never a cloud metadata or (without that setting) private address. | |
| contract | No | An explicit contract (roundtable.contract/1 fields: title, scope.paths, participants, teams, tasks, interfaces, decisions, dissents, validation {commands, final}, budget, authority, sandbox, workers, connectors). id, version, status and consent are set for you. | |
| provider | No | LLM provider. Default: anthropic. Options: anthropic, openai, together, replicate, ollama (local, when reachable), openai_compatible (set OPENAI_COMPATIBLE_BASE_URL or pass base_url). | |
| repo_dir | No | A directory inside the repository to build in; default ROUNDTABLE_WORKSPACE_DIR. | |
| artifacts | No | Repository paths or URLs the goal refers to. | |
| draft_plan | No | Duel from_session only, default true: when neither contract (with tasks) nor plan is given, draft a task plan from the winning artifact, the judges' reasons and the dissents (deterministic, no model call). False imports only the decision and dissents, and then contract or plan is required. A tie, no winner or no artifact drafts no plan. | |
| parent_task | No | For a child contract: the parent's subcontract task this contract carries out. | |
| from_session | No | Id of an archived session (an ultraplan, collaboration or meeting that has ended) whose roundtable-tasks block or plan to build from, or of an archived duel (duel-<id>): its winning artifact title becomes a decision and its dissents become draft concerns (a tie or no winner imports no decision). A duel has no task list, so by default a deterministic task plan is drafted from the winning artifact (see draft_plan); an explicit contract (with tasks) or plan replaces it. | |
| orchestrator | Yes | Your name as this contract's orchestrator (e.g. main). Only the orchestrator that proposed a contract can amend or freeze it. | |
| participants | No | Agents who must consent (names or .md paths); task personas are always added. | |
| original_prompt | No | The human's request, verbatim (default: from_session's task or topic). Workers see it on every task card. | |
| parent_contract | No | For a child contract: the parent contract id (with parent_task, a subcontract task of it). |