{
  "answers": {
    "c00": {
      "noul": 0.99,
      "type": "noul"
    },
    "c01": {
      "noul": 0.99,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 0.99,
      "type": "noul"
    },
    "c04": {
      "noul": 0.99,
      "type": "noul"
    },
    "c05": {
      "noul": 0.06,
      "type": "noul"
    },
    "c06": {
      "noul": 0.98,
      "type": "noul"
    },
    "c07": {
      "noul": 0.91,
      "type": "noul"
    },
    "w00": {
      "noul": 0.31,
      "type": "noul"
    },
    "w01": {
      "noul": 0.31,
      "type": "noul"
    },
    "w02": {
      "noul": 0.08,
      "type": "noul"
    },
    "w03": {
      "noul": 0.07,
      "type": "noul"
    },
    "w04": {
      "noul": 0.1,
      "type": "noul"
    },
    "w05": {
      "noul": 0.09,
      "type": "noul"
    },
    "w06": {
      "noul": 0.95,
      "type": "noul"
    },
    "w07": {
      "noul": 0.91,
      "type": "noul"
    },
    "w08": {
      "noul": 0.97,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T04:49:59Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.99,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.99,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 0.99,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.99,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 0.06,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 0.98,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 0.91,
      "question": "c07"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 36688,
  "method": "0.15.0",
  "model": "jev-1.14.0",
  "model_asked": "jev-1.14.0",
  "request": {
    "model": "jev-1.14.0",
    "questions": {
      "c00": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get-prompt: Required at name",
          "tool": "get-prompt"
        },
        "type": "noul"
      },
      "c01": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "name": {}
          },
          "parameter": "name",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get-prompt: Expected string, received object at name",
          "tool": "get-prompt"
        },
        "type": "noul"
      },
      "c02": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "businessRules": {}
          },
          "parameter": "businessRules",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool build-system-prompt: Expected string, received object at businessRules",
          "tool": "build-system-prompt"
        },
        "type": "noul"
      },
      "c03": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool validate-prompt: Required at prompt",
          "tool": "validate-prompt"
        },
        "type": "noul"
      },
      "c04": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "prompt": {}
          },
          "parameter": "prompt",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool validate-prompt: Expected string, received object at prompt",
          "tool": "validate-prompt"
        },
        "type": "noul"
      },
      "c05": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get-doc: Required at path",
          "tool": "get-doc"
        },
        "type": "noul"
      },
      "c06": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "path": {}
          },
          "parameter": "path",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "MCP error -32602: Input validation error: Invalid arguments for tool get-doc: Expected string, received object at path",
          "tool": "get-doc"
        },
        "type": "noul"
      },
      "c07": {
        "criteria": {
          "false": "The reply does not say the tool is missing: for example a generic failure, a crash, or a normal answer.",
          "true": "The reply says the tool is unknown, not found, or does not exist."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` tell the caller that there is no tool named `tool`?",
          "reply": "MCP error -32602: Tool didrun_unknown_tool not found",
          "tool": "didrun_unknown_tool"
        },
        "type": "noul"
      },
      "w00": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The MDMA specification returned by the tool identifies **version 0.2.0** and the language tag `mdma`. The tool response I received was truncated partway through the form schema, so I can show the portions available, but not the complete component schemas or authoring rules.\n\n## Component types\n\nMDMA supports:\n\n`form`, `button`, `tasklist`, `table`, `callout`, `approval-gate`, `webhook`, `chart`, `thinking`, and `custom`.\n\n## Common component fields\n\nEvery component has a required `id` and `type`. The common optional fields are:\n\n- `label`: string.\n- `sensitive`: boolean; defaults to `false`. When true, values are redacted in logs.\n- `disabled`: boolean or binding expression; defaults to `false`.\n- `visible`: boolean or binding expression; defaults to `true`.\n- `meta`: object for additional metadata.\n\nThe base schema disallows additional properties.\n\n## Bindings\n\nBindings reference values from other components using double braces:\n\n```text\n{{component-id.field}}\n```\n\nThere must be no whitespace inside the braces, and component IDs must be kebab-case. Examples include:\n\n```text\n{{contact-form.email}}\n{{order-table.selected}}\n{{approval-gate.status}}\n```\n\n## External data sources\n\nAn external source is referenced with a **source reference**:\n\n```json\n{\n  \"source\": \"source-name\",\n  \"params\": {\n    \"region\": \"north\"\n  }\n}\n```\n\n`source` is required; `params` is optional. The source-reference schema shown for form options permits string, number, boolean, and null parameter values and disallows other properties.\n\nThe supported data-source kinds are:\n\n| Kind | Used for |\n|---|---|\n| `rows` | `table.data` |\n| `series` | `chart.data` |\n| `options` | Form select options |\n\n## Form schema shown\n\nA form has a nonempty `fields` array. Each field requires `name`, `type`, and `label`. Supported field types are `text`, `number`, `email`, `date`, `select`, `checkbox`, `textarea`, and `file`.\n\nFields can also specify `required`, `sensitive`, `defaultValue`, `validation`, and `bind`. Se",
          "done_when": "The tool reply contains the MDMA specification with the external source reference syntax and the rows, series, and options kinds.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "{\n  \"specVersion\": \"0.2.0\",\n  \"langTag\": \"mdma\",\n  \"componentTypes\": [\n    \"form\",\n    \"button\",\n    \"tasklist\",\n    \"table\",\n    \"callout\",\n    \"approval-gate\",\n    \"webhook\",\n    \"chart\",\n    \"thinking\",\n    \"custom\"\n  ],\n  \"baseFields\": {\n    \"$ref\": \"#/definitions/ComponentBase\",\n    \"definitions\": {\n      \"ComponentBase\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"description\": \"Unique component identifier within the document\"\n          },\n          \"type\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"description\": \"Component type name\"\n          },\n          \"label\": {\n            \"type\": \"string\"\n          },\n          \"sensitive\": {\n            \"type\": \"boolean\",\n            \"default\": false,\n            \"description\": \"If true, values are redacted in logs\"\n          },\n          \"disabled\": {\n            \"anyOf\": [\n              {\n                \"type\": \"boolean\"\n              },\n              {\n                \"type\": \"string\",\n                \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n              }\n            ],\n            \"default\": false\n          },\n          \"visible\": {\n            \"anyOf\": [\n              {\n                \"type\": \"boolean\"\n              },\n              {\n                \"$ref\": \"#/definitions/ComponentBase/properties/disabled/anyOf/1\"\n              }\n            ],\n            \"default\": true\n          },\n          \"meta\": {\n            \"type\": \"object\",\n            \"additionalProperties\": {}\n          }\n        },\n        \"required\": [\n          \"id\",\n          \"type\"\n        ],\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"bindingSyntax\": {\n    \"schema\": {\n      \"$ref\": \"#/definitions/BindingExpression\",\n      \"definitions\": {\n        \"BindingExpression\": {\n          \"type\": \"string\",\n          \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n        }\n      }\n    },\n    \"description\": \"Bindings use {{component-id.field}} syntax to reference values from other components. Double braces required, no whitespace inside. Component IDs must be kebab-case.\",\n    \"examples\": [\n      \"{{contact-form.email}}\",\n      \"{{order-table.selected}}\",\n      \"{{approval-gate.status}}\"\n    ]\n  },\n  \"components\": {\n    \"form\": {\n      \"$ref\": \"#/definitions/form\",\n      \"definitions\": {\n        \"form\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"minLength\": 1,\n              \"description\": \"Unique component identifier within the document\"\n            },\n            \"type\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"form\"\n              ]\n            },\n            \"label\": {\n              \"type\": \"string\"\n            },\n            \"sensitive\": {\n              \"type\": \"boolean\",\n              \"default\": false,\n              \"description\": \"If true, values are redacted in logs\"\n            },\n            \"disabled\": {\n              \"anyOf\": [\n                {\n                  \"type\": \"boolean\"\n                },\n                {\n                  \"type\": \"string\",\n                  \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n                }\n              ],\n              \"default\": false\n            },\n            \"visible\": {\n              \"anyOf\": [\n                {\n                  \"type\": \"boolean\"\n                },\n                {\n                  \"$ref\": \"#/definitions/form/properties/disabled/anyOf/1\"\n                }\n              ],\n              \"default\": true\n            },\n            \"meta\": {\n              \"type\": \"object\",\n              \"additionalProperties\": {}\n            },\n            \"fields\": {\n              \"type\": \"array\",\n              \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"minLength\": 1\n                  },\n                  \"type\": {\n                    \"type\": \"string\",\n                    \"enum\": [\n                      \"text\",\n                      \"number\",\n                      \"email\",\n                      \"date\",\n                      \"select\",\n                      \"checkbox\",\n                      \"textarea\",\n                      \"file\"\n                    ]\n                  },\n                  \"label\": {\n                    \"type\": \"string\"\n                  },\n                  \"required\": {\n                    \"type\": \"boolean\",\n                    \"default\": false\n                  },\n                  \"sensitive\": {\n                    \"type\": \"boolean\",\n                    \"default\": false\n                  },\n                  \"defaultValue\": {},\n                  \"options\": {\n                    \"anyOf\": [\n                      {\n                        \"type\": \"array\",\n                        \"items\": {\n                          \"type\": \"object\",\n                          \"properties\": {\n                            \"label\": {\n                              \"type\": \"string\"\n                            },\n                            \"value\": {\n                              \"type\": \"string\"\n                            }\n                          },\n                          \"required\": [\n                            \"label\",\n                            \"value\"\n                          ],\n                          \"additionalProperties\": false\n                        }\n                      },\n                      {\n                        \"type\": \"string\",\n                        \"minLength\": 1\n                      },\n                      {\n                        \"type\": \"object\",\n                        \"properties\": {\n                          \"source\": {\n                            \"type\": \"string\",\n                            \"minLength\": 1\n                          },\n                          \"params\": {\n                            \"type\": \"object\",\n                            \"additionalProperties\": {\n                              \"anyOf\": [\n                                {\n                                  \"type\": \"string\"\n                                },\n                                {\n                                  \"type\": \"number\"\n                                },\n                                {\n                                  \"type\": \"boolean\"\n                                },\n                                {\n                                  \"enum\": [\n                                    \"null\"\n                                  ],\n                                  \"nullable\": true\n                                }\n                              ]\n                            }\n                          }\n                        },\n                        \"required\": [\n                          \"source\"\n                        ],\n                        \"additionalProperties\": false\n                      }\n                    ]\n                  },\n                  \"validation\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"pattern\": {\n                        \"type\": \"string\"\n                      },\n                      \"min\": {\n                        \"type\": \"number\"\n                      },\n                      \"max\": {\n                        \"type\": \"number\"\n                      },\n                      \"message\": {\n                        \"type\": \"string\"\n                      }\n                    },\n                    \"additionalProperties\": false\n                  },\n                  \"bind\": {\n                    \"$ref\": \"#/definitions/form/properties/disabled/anyOf/1\"\n                  }\n                },\n                \"required\": [\n                  \"name\",\n                  \"type\",\n                  \"label\"\n                ],\n                \"additionalProperties\": false\n              },\n              \"minItems\": 1\n            },\n            \"onSub",
              "tool": "get-spec"
            }
          ],
          "task": "Show me the MDMA specification, including how external data sources are referenced and which data-source kinds are supported."
        },
        "type": "noul"
      },
      "w01": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "I retrieved the MDMA specification, version **0.2.0**, from the server. The response was truncated partway through the form schema, so I can show the portions returned but cannot reproduce the complete specification.\n\n## Components and common fields\n\nThe specification lists these component types:\n\n`form`, `button`, `tasklist`, `table`, `callout`, `approval-gate`, `webhook`, `chart`, `thinking`, and `custom`.\n\nComponents share these base fields:\n\n| Field | Description |\n|---|---|\n| `id` | Required, nonempty identifier, unique within the document. |\n| `type` | Required, nonempty component type. |\n| `label` | Optional string. |\n| `sensitive` | Boolean; defaults to `false`. When true, values are redacted in logs. |\n| `disabled` | Boolean or binding expression; defaults to `false`. |\n| `visible` | Boolean or binding expression; defaults to `true`. |\n| `meta` | Optional object for additional metadata. |\n\nThe base schema disallows other properties.\n\n## Bindings\n\nBindings reference values from other components using double braces, with no whitespace inside. Component IDs must be kebab-case:\n\n```text\n{{contact-form.email}}\n{{order-table.selected}}\n{{approval-gate.status}}\n```\n\n## External data sources\n\nAn external source is referenced by an object with a required `source` name and optional `params`:\n\n```json\n{\n  \"source\": \"source-name\",\n  \"params\": {\n    \"region\": \"west\"\n  }\n}\n```\n\nThe returned form schema permits `params` values that are strings, numbers, booleans, or null. The supported data-source kinds are:\n\n| Kind | Used for |\n|---|---|\n| `rows` | `table.data` |\n| `series` | `chart.data` |\n| `options` | Form select options |\n\n## Form fields\n\nThe returned schema requires a form to have at least one field. Each field requires `name`, `type`, and `label`. Supported field types are `text`, `number`, `email`, `date`, `select`, `checkbox`, `textarea`, and `file`.\n\nA field can also specify `required`, `sensitive`, `defaultValue`, `options`, `validation`, and `bind`. Options ca",
          "done_when": "The tool reply contains the MDMA specification with the external source reference syntax and the rows, series, and options kinds.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "{\n  \"specVersion\": \"0.2.0\",\n  \"langTag\": \"mdma\",\n  \"componentTypes\": [\n    \"form\",\n    \"button\",\n    \"tasklist\",\n    \"table\",\n    \"callout\",\n    \"approval-gate\",\n    \"webhook\",\n    \"chart\",\n    \"thinking\",\n    \"custom\"\n  ],\n  \"baseFields\": {\n    \"$ref\": \"#/definitions/ComponentBase\",\n    \"definitions\": {\n      \"ComponentBase\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"description\": \"Unique component identifier within the document\"\n          },\n          \"type\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"description\": \"Component type name\"\n          },\n          \"label\": {\n            \"type\": \"string\"\n          },\n          \"sensitive\": {\n            \"type\": \"boolean\",\n            \"default\": false,\n            \"description\": \"If true, values are redacted in logs\"\n          },\n          \"disabled\": {\n            \"anyOf\": [\n              {\n                \"type\": \"boolean\"\n              },\n              {\n                \"type\": \"string\",\n                \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n              }\n            ],\n            \"default\": false\n          },\n          \"visible\": {\n            \"anyOf\": [\n              {\n                \"type\": \"boolean\"\n              },\n              {\n                \"$ref\": \"#/definitions/ComponentBase/properties/disabled/anyOf/1\"\n              }\n            ],\n            \"default\": true\n          },\n          \"meta\": {\n            \"type\": \"object\",\n            \"additionalProperties\": {}\n          }\n        },\n        \"required\": [\n          \"id\",\n          \"type\"\n        ],\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"bindingSyntax\": {\n    \"schema\": {\n      \"$ref\": \"#/definitions/BindingExpression\",\n      \"definitions\": {\n        \"BindingExpression\": {\n          \"type\": \"string\",\n          \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n        }\n      }\n    },\n    \"description\": \"Bindings use {{component-id.field}} syntax to reference values from other components. Double braces required, no whitespace inside. Component IDs must be kebab-case.\",\n    \"examples\": [\n      \"{{contact-form.email}}\",\n      \"{{order-table.selected}}\",\n      \"{{approval-gate.status}}\"\n    ]\n  },\n  \"components\": {\n    \"form\": {\n      \"$ref\": \"#/definitions/form\",\n      \"definitions\": {\n        \"form\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"minLength\": 1,\n              \"description\": \"Unique component identifier within the document\"\n            },\n            \"type\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"form\"\n              ]\n            },\n            \"label\": {\n              \"type\": \"string\"\n            },\n            \"sensitive\": {\n              \"type\": \"boolean\",\n              \"default\": false,\n              \"description\": \"If true, values are redacted in logs\"\n            },\n            \"disabled\": {\n              \"anyOf\": [\n                {\n                  \"type\": \"boolean\"\n                },\n                {\n                  \"type\": \"string\",\n                  \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n                }\n              ],\n              \"default\": false\n            },\n            \"visible\": {\n              \"anyOf\": [\n                {\n                  \"type\": \"boolean\"\n                },\n                {\n                  \"$ref\": \"#/definitions/form/properties/disabled/anyOf/1\"\n                }\n              ],\n              \"default\": true\n            },\n            \"meta\": {\n              \"type\": \"object\",\n              \"additionalProperties\": {}\n            },\n            \"fields\": {\n              \"type\": \"array\",\n              \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"minLength\": 1\n                  },\n                  \"type\": {\n                    \"type\": \"string\",\n                    \"enum\": [\n                      \"text\",\n                      \"number\",\n                      \"email\",\n                      \"date\",\n                      \"select\",\n                      \"checkbox\",\n                      \"textarea\",\n                      \"file\"\n                    ]\n                  },\n                  \"label\": {\n                    \"type\": \"string\"\n                  },\n                  \"required\": {\n                    \"type\": \"boolean\",\n                    \"default\": false\n                  },\n                  \"sensitive\": {\n                    \"type\": \"boolean\",\n                    \"default\": false\n                  },\n                  \"defaultValue\": {},\n                  \"options\": {\n                    \"anyOf\": [\n                      {\n                        \"type\": \"array\",\n                        \"items\": {\n                          \"type\": \"object\",\n                          \"properties\": {\n                            \"label\": {\n                              \"type\": \"string\"\n                            },\n                            \"value\": {\n                              \"type\": \"string\"\n                            }\n                          },\n                          \"required\": [\n                            \"label\",\n                            \"value\"\n                          ],\n                          \"additionalProperties\": false\n                        }\n                      },\n                      {\n                        \"type\": \"string\",\n                        \"minLength\": 1\n                      },\n                      {\n                        \"type\": \"object\",\n                        \"properties\": {\n                          \"source\": {\n                            \"type\": \"string\",\n                            \"minLength\": 1\n                          },\n                          \"params\": {\n                            \"type\": \"object\",\n                            \"additionalProperties\": {\n                              \"anyOf\": [\n                                {\n                                  \"type\": \"string\"\n                                },\n                                {\n                                  \"type\": \"number\"\n                                },\n                                {\n                                  \"type\": \"boolean\"\n                                },\n                                {\n                                  \"enum\": [\n                                    \"null\"\n                                  ],\n                                  \"nullable\": true\n                                }\n                              ]\n                            }\n                          }\n                        },\n                        \"required\": [\n                          \"source\"\n                        ],\n                        \"additionalProperties\": false\n                      }\n                    ]\n                  },\n                  \"validation\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"pattern\": {\n                        \"type\": \"string\"\n                      },\n                      \"min\": {\n                        \"type\": \"number\"\n                      },\n                      \"max\": {\n                        \"type\": \"number\"\n                      },\n                      \"message\": {\n                        \"type\": \"string\"\n                      }\n                    },\n                    \"additionalProperties\": false\n                  },\n                  \"bind\": {\n                    \"$ref\": \"#/definitions/form/properties/disabled/anyOf/1\"\n                  }\n                },\n                \"required\": [\n                  \"name\",\n                  \"type\",\n                  \"label\"\n                ],\n                \"additionalProperties\": false\n              },\n              \"minItems\": 1\n            },\n            \"onSub",
              "tool": "get-spec"
            }
          ],
          "task": "Show me the MDMA specification, including how external data sources are referenced and which data-source kinds are supported."
        },
        "type": "noul"
      },
      "w02": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The MDMA specification tool returned **version 0.2.0**, with language tag `mdma`. Its response was truncated, so I can show the portion available below, but not the complete JSON schemas or authoring rules.\n\n## Component types\n\nMDMA defines 10 component types:\n\n`form`, `button`, `tasklist`, `table`, `callout`, `approval-gate`, `webhook`, `chart`, `thinking`, and `custom`.\n\n### Common component fields\n\n| Field | Type | Description |\n|---|---|---|\n| `id` | string | Required; unique within the document. |\n| `type` | string | Required; component type name. |\n| `label` | string | Display label. |\n| `sensitive` | boolean | Defaults to `false`; when true, values are redacted in logs. |\n| `disabled` | boolean or binding | Defaults to `false`. |\n| `visible` | boolean or binding | Defaults to `true`. |\n| `meta` | object | Additional metadata. |\n\nBindings reference values using `{{component-id.field}}`, with double braces, no internal whitespace, and kebab-case component IDs. Examples include `{{contact-form.email}}`, `{{order-table.selected}}`, and `{{approval-gate.status}}`.\n\n## External data sources\n\nReference an external data source by name using an object with a required `source` and optional `params`:\n\n```json\n{\n  \"source\": \"source-name\",\n  \"params\": {\n    \"region\": \"north\"\n  }\n}\n```\n\nThe supported data-source kinds are:\n\n| Kind | Used for |\n|---|---|\n| `rows` | `table.data` |\n| `series` | `chart.data` |\n| `options` | Form select options |\n\nFor form-field `options`, the returned schema permits an inline array of `{ \"label\", \"value\" }` objects, a nonempty string, or a `{ \"source\", \"params\" }` reference. In that reference, parameter values may be strings, numbers, booleans, or null.\n\n## Form fields\n\nThe visible part of the form schema requires a nonempty `fields` array. Each field requires `name`, `type`, and `label`; supported field types are `text`, `number`, `email`, `date`, `select`, `checkbox`, `textarea`, and `file`. Optional fields include `required`, `sensitive`, `",
          "done_when": "The tool reply contains the MDMA specification with the external source reference syntax and the rows, series, and options kinds.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "{\n  \"specVersion\": \"0.2.0\",\n  \"langTag\": \"mdma\",\n  \"componentTypes\": [\n    \"form\",\n    \"button\",\n    \"tasklist\",\n    \"table\",\n    \"callout\",\n    \"approval-gate\",\n    \"webhook\",\n    \"chart\",\n    \"thinking\",\n    \"custom\"\n  ],\n  \"baseFields\": {\n    \"$ref\": \"#/definitions/ComponentBase\",\n    \"definitions\": {\n      \"ComponentBase\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"description\": \"Unique component identifier within the document\"\n          },\n          \"type\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"description\": \"Component type name\"\n          },\n          \"label\": {\n            \"type\": \"string\"\n          },\n          \"sensitive\": {\n            \"type\": \"boolean\",\n            \"default\": false,\n            \"description\": \"If true, values are redacted in logs\"\n          },\n          \"disabled\": {\n            \"anyOf\": [\n              {\n                \"type\": \"boolean\"\n              },\n              {\n                \"type\": \"string\",\n                \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n              }\n            ],\n            \"default\": false\n          },\n          \"visible\": {\n            \"anyOf\": [\n              {\n                \"type\": \"boolean\"\n              },\n              {\n                \"$ref\": \"#/definitions/ComponentBase/properties/disabled/anyOf/1\"\n              }\n            ],\n            \"default\": true\n          },\n          \"meta\": {\n            \"type\": \"object\",\n            \"additionalProperties\": {}\n          }\n        },\n        \"required\": [\n          \"id\",\n          \"type\"\n        ],\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"bindingSyntax\": {\n    \"schema\": {\n      \"$ref\": \"#/definitions/BindingExpression\",\n      \"definitions\": {\n        \"BindingExpression\": {\n          \"type\": \"string\",\n          \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n        }\n      }\n    },\n    \"description\": \"Bindings use {{component-id.field}} syntax to reference values from other components. Double braces required, no whitespace inside. Component IDs must be kebab-case.\",\n    \"examples\": [\n      \"{{contact-form.email}}\",\n      \"{{order-table.selected}}\",\n      \"{{approval-gate.status}}\"\n    ]\n  },\n  \"components\": {\n    \"form\": {\n      \"$ref\": \"#/definitions/form\",\n      \"definitions\": {\n        \"form\": {\n          \"type\": \"object\",\n          \"properties\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"minLength\": 1,\n              \"description\": \"Unique component identifier within the document\"\n            },\n            \"type\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"form\"\n              ]\n            },\n            \"label\": {\n              \"type\": \"string\"\n            },\n            \"sensitive\": {\n              \"type\": \"boolean\",\n              \"default\": false,\n              \"description\": \"If true, values are redacted in logs\"\n            },\n            \"disabled\": {\n              \"anyOf\": [\n                {\n                  \"type\": \"boolean\"\n                },\n                {\n                  \"type\": \"string\",\n                  \"pattern\": \"^\\\\{\\\\{.+\\\\}\\\\}$\"\n                }\n              ],\n              \"default\": false\n            },\n            \"visible\": {\n              \"anyOf\": [\n                {\n                  \"type\": \"boolean\"\n                },\n                {\n                  \"$ref\": \"#/definitions/form/properties/disabled/anyOf/1\"\n                }\n              ],\n              \"default\": true\n            },\n            \"meta\": {\n              \"type\": \"object\",\n              \"additionalProperties\": {}\n            },\n            \"fields\": {\n              \"type\": \"array\",\n              \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                  \"name\": {\n                    \"type\": \"string\",\n                    \"minLength\": 1\n                  },\n                  \"type\": {\n                    \"type\": \"string\",\n                    \"enum\": [\n                      \"text\",\n                      \"number\",\n                      \"email\",\n                      \"date\",\n                      \"select\",\n                      \"checkbox\",\n                      \"textarea\",\n                      \"file\"\n                    ]\n                  },\n                  \"label\": {\n                    \"type\": \"string\"\n                  },\n                  \"required\": {\n                    \"type\": \"boolean\",\n                    \"default\": false\n                  },\n                  \"sensitive\": {\n                    \"type\": \"boolean\",\n                    \"default\": false\n                  },\n                  \"defaultValue\": {},\n                  \"options\": {\n                    \"anyOf\": [\n                      {\n                        \"type\": \"array\",\n                        \"items\": {\n                          \"type\": \"object\",\n                          \"properties\": {\n                            \"label\": {\n                              \"type\": \"string\"\n                            },\n                            \"value\": {\n                              \"type\": \"string\"\n                            }\n                          },\n                          \"required\": [\n                            \"label\",\n                            \"value\"\n                          ],\n                          \"additionalProperties\": false\n                        }\n                      },\n                      {\n                        \"type\": \"string\",\n                        \"minLength\": 1\n                      },\n                      {\n                        \"type\": \"object\",\n                        \"properties\": {\n                          \"source\": {\n                            \"type\": \"string\",\n                            \"minLength\": 1\n                          },\n                          \"params\": {\n                            \"type\": \"object\",\n                            \"additionalProperties\": {\n                              \"anyOf\": [\n                                {\n                                  \"type\": \"string\"\n                                },\n                                {\n                                  \"type\": \"number\"\n                                },\n                                {\n                                  \"type\": \"boolean\"\n                                },\n                                {\n                                  \"enum\": [\n                                    \"null\"\n                                  ],\n                                  \"nullable\": true\n                                }\n                              ]\n                            }\n                          }\n                        },\n                        \"required\": [\n                          \"source\"\n                        ],\n                        \"additionalProperties\": false\n                      }\n                    ]\n                  },\n                  \"validation\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                      \"pattern\": {\n                        \"type\": \"string\"\n                      },\n                      \"min\": {\n                        \"type\": \"number\"\n                      },\n                      \"max\": {\n                        \"type\": \"number\"\n                      },\n                      \"message\": {\n                        \"type\": \"string\"\n                      }\n                    },\n                    \"additionalProperties\": false\n                  },\n                  \"bind\": {\n                    \"$ref\": \"#/definitions/form/properties/disabled/anyOf/1\"\n                  }\n                },\n                \"required\": [\n                  \"name\",\n                  \"type\",\n                  \"label\"\n                ],\n                \"additionalProperties\": false\n              },\n              \"minItems\": 1\n            },\n            \"onSub",
              "tool": "get-spec"
            },
            {
              "arguments": {},
              "reply": "[\n  {\n    \"path\": \"README.md\",\n    \"title\": \"README\",\n    \"description\": \"Project overview, install, basic usage, packages list, and roadmap\"\n  },\n  {\n    \"path\": \"docs/getting-started/quick-start.md\",\n    \"title\": \"Quick Start\",\n    \"description\": \"End-to-end walkthrough: parse markdown, create a store, render with React\"\n  },\n  {\n    \"path\": \"docs/getting-started/architecture.md\",\n    \"title\": \"Architecture\",\n    \"description\": \"Package dependency graph and the role of each MDMA package\"\n  },\n  {\n    \"path\": \"docs/getting-started/concepts.md\",\n    \"title\": \"Concepts\",\n    \"description\": \"Core MDMA concepts: components, bindings, events, policy, audit log\"\n  },\n  {\n    \"path\": \"docs/guides/creating-documents.md\",\n    \"title\": \"Creating Documents\",\n    \"description\": \"How to author MDMA markdown documents by hand\"\n  },\n  {\n    \"path\": \"docs/guides/creating-attachables.md\",\n    \"title\": \"Creating Attachables\",\n    \"description\": \"How to write custom component handlers for non-builtin types\"\n  },\n  {\n    \"path\": \"docs/guides/creating-blueprints.md\",\n    \"title\": \"Creating Blueprints\",\n    \"description\": \"How to package a domain-specific MDMA blueprint\"\n  },\n  {\n    \"path\": \"docs/guides/external-data-sources.md\",\n    \"title\": \"External Data Sources\",\n    \"description\": \"Reference external API-backed data with { source, params }: descriptors, resolvers, kinds, and prompt catalog\"\n  },\n  {\n    \"path\": \"docs/guides/enterprise-features.md\",\n    \"title\": \"Enterprise Features\",\n    \"description\": \"PII redaction, tamper-evident audit logs, policy engine\"\n  },\n  {\n    \"path\": \"docs/reference/component-catalog.md\",\n    \"title\": \"Component Catalog\",\n    \"description\": \"Reference for all 10 built-in component types and their fields\"\n  },\n  {\n    \"path\": \"blueprints/README.md\",\n    \"title\": \"Blueprints Index\",\n    \"description\": \"List of starter blueprints (clinical-ops, kyc-case, incident-triage, etc.)\"\n  },\n  {\n    \"path\": \"CONTRIBUTING.md\",\n    \"title\": \"Contributing\",\n    \"description\": \"How to contribute to the MDMA project\"\n  }\n]",
              "tool": "list-docs"
            },
            {
              "arguments": {
                "path": "docs/guides/external-data-sources.md"
              },
              "reply": "error: Network error fetching https://raw.githubusercontent.com/MobileReality/mdma/main/docs/guides/external-data-sources.md: fetch failed",
              "tool": "get-doc"
            },
            {
              "arguments": {
                "path": "docs/reference/component-catalog.md"
              },
              "reply": "error: Network error fetching https://raw.githubusercontent.com/MobileReality/mdma/main/docs/reference/component-catalog.md: fetch failed",
              "tool": "get-doc"
            },
            {
              "arguments": {
                "path": "docs/guides/creating-documents.md"
              },
              "reply": "error: Network error fetching https://raw.githubusercontent.com/MobileReality/mdma/main/docs/guides/creating-documents.md: fetch failed",
              "tool": "get-doc"
            }
          ],
          "task": "Show me the MDMA specification, including how external data sources are referenced and which data-source kinds are supported."
        },
        "type": "noul"
      },
      "w03": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The prompt builder was called with the requested components, fields, rule, and external source. It returned the base MDMA specification, but its response was truncated before the custom section. Here is a usable custom system prompt based on the supplied requirements:\n\n```text\nYou are an expert MDMA document author creating an expense-approval workflow. Follow the MDMA component schemas and authoring rules.\n\nUse a form and an approval-gate. The form must include:\n- A required number field named `amount`, labeled `Amount`.\n- A required select field named `category`, labeled `Category`, with options `Travel` and `Supplies`.\n\nExpenses with an amount strictly greater than 1000 require manager approval. Configure the approval gate to allow the manager role. Ensure the host workflow enforces this threshold; do not assume MDMA bindings support comparison expressions.\n\nExternal data source catalog:\n- `expenses`: kind `rows`\n  - Column: `amount` (number)\n  - Required parameter: `department` (string)\n\nWhen using the external source for table data, reference it with\n`{ source: expenses, params: { department: ... } }`, supplying a department value. Do not invent expense rows.\n\nOutput the MDMA document directly as Markdown, with components in fenced `mdma` blocks and no enclosing Markdown fence.\n```",
          "done_when": "The tool reply contains the generated prompt reflecting the expense approval requirements and the expenses data-source catalog with its column and parameter.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "businessRules": "Expenses over 1000 require manager approval.",
                "components": [
                  "form",
                  "approval-gate"
                ],
                "dataSources": [
                  {
                    "columns": [
                      {
                        "key": "amount",
                        "type": "number"
                      }
                    ],
                    "kind": "rows",
                    "name": "expenses",
                    "params": [
                      {
                        "name": "department",
                        "required": true,
                        "type": "string"
                      }
                    ]
                  }
                ],
                "domain": "expense approval",
                "fields": [
                  {
                    "label": "Amount",
                    "name": "amount",
                    "required": true,
                    "type": "number"
                  },
                  {
                    "label": "Category",
                    "name": "category",
                    "options": [
                      "Travel",
                      "Supplies"
                    ],
                    "required": true,
                    "type": "select"
                  }
                ]
              },
              "reply": "You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\nCRITICAL: Your output IS the Markdown document — write headings, paragraphs, and ```mdma blocks directly. NEVER wrap your response in ```markdown code fences. Your response is already rendered as Markdown.\n\n## Document Format\n\nAn MDMA document is a standard Markdown file that contains one or more interactive component blocks. Each component block is a YAML snippet inside a fenced code block tagged with `mdma`. Here is an example of what your output should look like — note there are NO outer ```markdown fences:\n\n# My Document Title\n\nSome regular Markdown content here.\n\n```mdma\ntype: form\nid: contact-form\nfields:\n  - name: email\n    type: email\n    label: Email Address\n    required: true\n```\n\nMore Markdown content can follow.\n\n## Component Types\n\nMDMA supports 10 component types. Every component shares these base fields:\n\n- **id** (string, required) — Unique identifier within the document\n- **type** (string, required) — Component type name\n- **label** (string, optional) — Display label\n- **sensitive** (boolean, default: false) — If true, values are redacted in logs\n- **disabled** (boolean | binding, default: false) — accepts `true`, `false`, or a quoted binding like `\"{{checklist.completed}}\"`\n- **visible** (boolean | binding, default: true) — accepts `true`, `false`, or a quoted binding like `\"{{form.field}}\"`\n- **meta** (object, optional) — Arbitrary metadata\n\n### 1. form\n\nCollects user input via structured fields.\n\n```mdma\ntype: form\nid: <unique-id>\nfields:\n  - name: <field-name>           # required, string\n    type: text | number | email | date | select | checkbox | textarea | file\n    label: <display-label>       # required, string\n    required: true | false       # default: false\n    sensitive: true | false      # default: false — set true for PII\n    defaultValue: <any>          # optional\n    options:                     # required when type is \"select\" — a list, OR { source, params } from a data-source catalog\n      - label: <label>\n        value: <value>           # string — quote numeric-looking values, e.g. \"1\" not 1\n    validation:                  # optional\n      pattern: <regex>\n      min: <number>\n      max: <number>\n      message: <error-message>\n    bind: \"{{variable.path}}\"    # optional binding\nonSubmit: <action-id>            # required — action triggered on submit\n```\n\n### 2. button\n\nTriggers an action when clicked.\n\n```mdma\ntype: button\nid: <unique-id>\ntext: <button-label>             # required, string\nvariant: primary | secondary | danger | ghost   # default: primary\nonAction: <action-id>           # required — action triggered on click\nconfirm:                         # optional confirmation dialog\n  title: <dialog-title>\n  message: <dialog-message>\n  confirmText: <confirm-label>   # default: \"Confirm\"\n  cancelText: <cancel-label>     # default: \"Cancel\"\n```\n\n### 3. tasklist\n\nA checklist of items that can be individually checked off.\n\n```mdma\ntype: tasklist\nid: <unique-id>\nitems:\n  - id: <item-id>               # required, unique within tasklist\n    text: <item-description>    # required, string\n    checked: true | false       # default: false\n    required: true | false      # default: false\n    bind: \"{{variable.path}}\"   # optional binding\nonComplete: <action-id>         # optional — triggered when all items checked\n```\n\n### 4. table\n\nDisplays tabular data with optional sorting, filtering, and pagination.\n\n```mdma\ntype: table\nid: <unique-id>\ncolumns:\n  - key: <field-key>            # required, string\n    header: <column-header>     # required, string\n    sortable: true | false      # default: false\n    sensitive: true | false     # default: false\n    width: <css-width>          # optional, e.g. \"200px\"\ndata:                           # array of row objects OR a binding OR a data-source ref\n  - { key1: value1, key2: value2 }\n# OR: data: \"{{variable.path}}\"\n# OR: data: { source: <source-name>, params: { <param>: <value> } }   # source from the data-source catalog\nsortable: true | false          # default: false (table-level)\nfilterable: true | false        # default: false\npageSize: <number>              # optional, positive integer\n```\n\n### 5. callout\n\nDisplays a highlighted message block.\n\n```mdma\ntype: callout\nid: <unique-id>\nvariant: info | warning | error | success   # default: info\ntitle: <optional-title>\ncontent: <message-text>          # required, string\ndismissible: true | false        # default: false\n```\n\n### 6. approval-gate\n\nBlocks workflow progression until required approvals are received.\n\n```mdma\ntype: approval-gate\nid: <unique-id>\ntitle: <gate-title>              # required, string\ndescription: <details>           # optional\nrequiredApprovers: <number>      # default: 1, positive integer\nallowedRoles:                    # optional — restrict who can approve\n  - <role-name>\nonApprove: <action-id>          # optional\nonDeny: <action-id>             # optional\nrequireReason: true | false      # default: false — require reason on denial\n```\n\n### 7. webhook\n\nMakes an HTTP request when triggered by an action.\n\n```mdma\ntype: webhook\nid: <unique-id>\nurl: <endpoint-url>              # required, valid URL or binding\nmethod: GET | POST | PUT | PATCH | DELETE   # default: POST\nheaders:                         # optional, key-value pairs\n  Content-Type: application/json\nbody:                            # optional, object or binding\n  key: value\ntrigger: <action-id>            # required — action ID that triggers this webhook\nretries: <0-5>                  # default: 0\ntimeout: <milliseconds>         # default: 30000\n```\n\n### 8. chart\n\nDisplays data as a visual chart. Data is provided as a compact CSV-like multiline string where the first row contains column headers and subsequent rows contain comma-separated values.\n\n```mdma\ntype: chart\nid: <unique-id>\nvariant: line | bar | area | pie            # default: line\nlabel: <chart-title>                         # optional\ndata: |                                      # required — CSV multiline string, binding, or { source, params } data-source ref\n  <col1>, <col2>, <col3>\n  <val1>, <val2>, <val3>\n  <val1>, <val2>, <val3>\nxAxis: <column-name>                         # optional — column for x-axis (default: first column)\nyAxis: <column-name> | [<col1>, <col2>]      # optional — column(s) for y-axis (default: all numeric non-xAxis columns)\ncolors:                                      # optional — custom color palette\n  - \"<hex-color>\"\nshowLegend: true | false                     # default: true\nshowGrid: true | false                       # default: true\nheight: <number>                             # default: 300 (pixels)\nstacked: true | false                        # default: false (for bar/area)\n```\n\n**Data format rules:**\n- First line of `data` = column headers (comma-separated, trimmed)\n- Subsequent lines = data rows (comma-separated, trimmed)\n- Numeric values are auto-detected and coerced\n- Use YAML `|` block scalar for multi-line data\n\n**Example — line chart:**\n```mdma\ntype: chart\nid: revenue-chart\nvariant: line\nlabel: Revenue Trend\ndata: |\n  month, revenue, costs\n  Jan, 45000, 32000\n  Feb, 52000, 35000\n  Mar, 48000, 31000\n  Apr, 61000, 38000\nxAxis: month\n```\n\n**Example — pie chart:**\n```mdma\ntype: chart\nid: market-share\nvariant: pie\nlabel: Market Share\ndata: |\n  company, share\n  Ours, 35\n  Competitor A, 25\n  Competitor B, 20\n  Others, 20\nxAxis: company\n```\n\n### 9. thinking\n\nDisplays a collapsible block that shows AI reasoning or thinking process. Useful for transparency about how the AI arrived at conclusions or recommendations.\n\n```mdma\ntype: thinking\nid: <unique-id>\nlabel: <header-text>              # optional — default: \"Thinking\"\ncontent: |                        # req",
              "tool": "build-system-prompt"
            }
          ],
          "task": "Build an MDMA system prompt for expense approval using a form and an approval-gate. Include a required number field named amount labeled Amount, a required select field named category with options Travel and Supplies, and the business rule that expenses over 1000 require manager approval. Include an external rows source named expenses with a number column amount and a required string parameter department."
        },
        "type": "noul"
      },
      "w04": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The prompt-building tool generated a system prompt and an external-source catalog. Its returned base specification was truncated, so the complete tool-generated prompt is not available in the response. The following is a self-contained system prompt covering the requested requirements:\n\n````text\nYou are an expert MDMA document author. Generate a Markdown document with\ninteractive components defined as YAML in fenced code blocks tagged `mdma`.\nWrite the document directly; do not wrap the whole response in an outer\nMarkdown fence.\n\nCreate an expense-approval workflow using a form and an approval-gate.\n\nThe form must have:\n- A required number field named `amount`, labeled `Amount`.\n- A required select field named `category`, labeled `Category`, with\n  options `Travel` and `Supplies`.\n- An `onSubmit` action ID.\n\nBusiness rule:\n- Expenses with an amount strictly greater than 1000 require approval by\n  a manager. An amount of exactly 1000 does not trigger this rule.\n- Do not represent the threshold as automatically enforced unless the\n  workflow or its host application actually evaluates it. MDMA bindings\n  alone should not be assumed to support comparison expressions.\n\nUse an approval-gate restricted to the manager role for expenses that\nrequire manager approval. Give each component a unique ID.\n\nExternal data-source catalog:\n- Name: `expenses`\n- Kind: `rows`\n- Columns:\n  - `amount`: number\n- Parameters:\n  - `department`: string, required\n\nIf displaying expense rows, reference the external source in a table using\n`data: { source: expenses, params: { department: <value> } }`. Supply the\nrequired department parameter; do not invent expense rows. Do not assume\na department value if none has been provided.\n\nUse valid MDMA component fields and YAML syntax. Select options must be\nobjects with string `label` and `value` properties.\n````",
          "done_when": "The tool reply contains the generated prompt reflecting the expense approval requirements and the expenses data-source catalog with its column and parameter.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "businessRules": "Expenses over 1000 require manager approval.",
                "components": [
                  "form",
                  "approval-gate"
                ],
                "dataSources": [
                  {
                    "columns": [
                      {
                        "key": "amount",
                        "type": "number"
                      }
                    ],
                    "kind": "rows",
                    "name": "expenses",
                    "params": [
                      {
                        "name": "department",
                        "required": true,
                        "type": "string"
                      }
                    ]
                  }
                ],
                "domain": "expense approval",
                "fields": [
                  {
                    "label": "Amount",
                    "name": "amount",
                    "required": true,
                    "type": "number"
                  },
                  {
                    "label": "Category",
                    "name": "category",
                    "options": [
                      "Travel",
                      "Supplies"
                    ],
                    "required": true,
                    "type": "select"
                  }
                ]
              },
              "reply": "You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\nCRITICAL: Your output IS the Markdown document — write headings, paragraphs, and ```mdma blocks directly. NEVER wrap your response in ```markdown code fences. Your response is already rendered as Markdown.\n\n## Document Format\n\nAn MDMA document is a standard Markdown file that contains one or more interactive component blocks. Each component block is a YAML snippet inside a fenced code block tagged with `mdma`. Here is an example of what your output should look like — note there are NO outer ```markdown fences:\n\n# My Document Title\n\nSome regular Markdown content here.\n\n```mdma\ntype: form\nid: contact-form\nfields:\n  - name: email\n    type: email\n    label: Email Address\n    required: true\n```\n\nMore Markdown content can follow.\n\n## Component Types\n\nMDMA supports 10 component types. Every component shares these base fields:\n\n- **id** (string, required) — Unique identifier within the document\n- **type** (string, required) — Component type name\n- **label** (string, optional) — Display label\n- **sensitive** (boolean, default: false) — If true, values are redacted in logs\n- **disabled** (boolean | binding, default: false) — accepts `true`, `false`, or a quoted binding like `\"{{checklist.completed}}\"`\n- **visible** (boolean | binding, default: true) — accepts `true`, `false`, or a quoted binding like `\"{{form.field}}\"`\n- **meta** (object, optional) — Arbitrary metadata\n\n### 1. form\n\nCollects user input via structured fields.\n\n```mdma\ntype: form\nid: <unique-id>\nfields:\n  - name: <field-name>           # required, string\n    type: text | number | email | date | select | checkbox | textarea | file\n    label: <display-label>       # required, string\n    required: true | false       # default: false\n    sensitive: true | false      # default: false — set true for PII\n    defaultValue: <any>          # optional\n    options:                     # required when type is \"select\" — a list, OR { source, params } from a data-source catalog\n      - label: <label>\n        value: <value>           # string — quote numeric-looking values, e.g. \"1\" not 1\n    validation:                  # optional\n      pattern: <regex>\n      min: <number>\n      max: <number>\n      message: <error-message>\n    bind: \"{{variable.path}}\"    # optional binding\nonSubmit: <action-id>            # required — action triggered on submit\n```\n\n### 2. button\n\nTriggers an action when clicked.\n\n```mdma\ntype: button\nid: <unique-id>\ntext: <button-label>             # required, string\nvariant: primary | secondary | danger | ghost   # default: primary\nonAction: <action-id>           # required — action triggered on click\nconfirm:                         # optional confirmation dialog\n  title: <dialog-title>\n  message: <dialog-message>\n  confirmText: <confirm-label>   # default: \"Confirm\"\n  cancelText: <cancel-label>     # default: \"Cancel\"\n```\n\n### 3. tasklist\n\nA checklist of items that can be individually checked off.\n\n```mdma\ntype: tasklist\nid: <unique-id>\nitems:\n  - id: <item-id>               # required, unique within tasklist\n    text: <item-description>    # required, string\n    checked: true | false       # default: false\n    required: true | false      # default: false\n    bind: \"{{variable.path}}\"   # optional binding\nonComplete: <action-id>         # optional — triggered when all items checked\n```\n\n### 4. table\n\nDisplays tabular data with optional sorting, filtering, and pagination.\n\n```mdma\ntype: table\nid: <unique-id>\ncolumns:\n  - key: <field-key>            # required, string\n    header: <column-header>     # required, string\n    sortable: true | false      # default: false\n    sensitive: true | false     # default: false\n    width: <css-width>          # optional, e.g. \"200px\"\ndata:                           # array of row objects OR a binding OR a data-source ref\n  - { key1: value1, key2: value2 }\n# OR: data: \"{{variable.path}}\"\n# OR: data: { source: <source-name>, params: { <param>: <value> } }   # source from the data-source catalog\nsortable: true | false          # default: false (table-level)\nfilterable: true | false        # default: false\npageSize: <number>              # optional, positive integer\n```\n\n### 5. callout\n\nDisplays a highlighted message block.\n\n```mdma\ntype: callout\nid: <unique-id>\nvariant: info | warning | error | success   # default: info\ntitle: <optional-title>\ncontent: <message-text>          # required, string\ndismissible: true | false        # default: false\n```\n\n### 6. approval-gate\n\nBlocks workflow progression until required approvals are received.\n\n```mdma\ntype: approval-gate\nid: <unique-id>\ntitle: <gate-title>              # required, string\ndescription: <details>           # optional\nrequiredApprovers: <number>      # default: 1, positive integer\nallowedRoles:                    # optional — restrict who can approve\n  - <role-name>\nonApprove: <action-id>          # optional\nonDeny: <action-id>             # optional\nrequireReason: true | false      # default: false — require reason on denial\n```\n\n### 7. webhook\n\nMakes an HTTP request when triggered by an action.\n\n```mdma\ntype: webhook\nid: <unique-id>\nurl: <endpoint-url>              # required, valid URL or binding\nmethod: GET | POST | PUT | PATCH | DELETE   # default: POST\nheaders:                         # optional, key-value pairs\n  Content-Type: application/json\nbody:                            # optional, object or binding\n  key: value\ntrigger: <action-id>            # required — action ID that triggers this webhook\nretries: <0-5>                  # default: 0\ntimeout: <milliseconds>         # default: 30000\n```\n\n### 8. chart\n\nDisplays data as a visual chart. Data is provided as a compact CSV-like multiline string where the first row contains column headers and subsequent rows contain comma-separated values.\n\n```mdma\ntype: chart\nid: <unique-id>\nvariant: line | bar | area | pie            # default: line\nlabel: <chart-title>                         # optional\ndata: |                                      # required — CSV multiline string, binding, or { source, params } data-source ref\n  <col1>, <col2>, <col3>\n  <val1>, <val2>, <val3>\n  <val1>, <val2>, <val3>\nxAxis: <column-name>                         # optional — column for x-axis (default: first column)\nyAxis: <column-name> | [<col1>, <col2>]      # optional — column(s) for y-axis (default: all numeric non-xAxis columns)\ncolors:                                      # optional — custom color palette\n  - \"<hex-color>\"\nshowLegend: true | false                     # default: true\nshowGrid: true | false                       # default: true\nheight: <number>                             # default: 300 (pixels)\nstacked: true | false                        # default: false (for bar/area)\n```\n\n**Data format rules:**\n- First line of `data` = column headers (comma-separated, trimmed)\n- Subsequent lines = data rows (comma-separated, trimmed)\n- Numeric values are auto-detected and coerced\n- Use YAML `|` block scalar for multi-line data\n\n**Example — line chart:**\n```mdma\ntype: chart\nid: revenue-chart\nvariant: line\nlabel: Revenue Trend\ndata: |\n  month, revenue, costs\n  Jan, 45000, 32000\n  Feb, 52000, 35000\n  Mar, 48000, 31000\n  Apr, 61000, 38000\nxAxis: month\n```\n\n**Example — pie chart:**\n```mdma\ntype: chart\nid: market-share\nvariant: pie\nlabel: Market Share\ndata: |\n  company, share\n  Ours, 35\n  Competitor A, 25\n  Competitor B, 20\n  Others, 20\nxAxis: company\n```\n\n### 9. thinking\n\nDisplays a collapsible block that shows AI reasoning or thinking process. Useful for transparency about how the AI arrived at conclusions or recommendations.\n\n```mdma\ntype: thinking\nid: <unique-id>\nlabel: <header-text>              # optional — default: \"Thinking\"\ncontent: |                        # req",
              "tool": "build-system-prompt"
            }
          ],
          "task": "Build an MDMA system prompt for expense approval using a form and an approval-gate. Include a required number field named amount labeled Amount, a required select field named category with options Travel and Supplies, and the business rule that expenses over 1000 require manager approval. Include an external rows source named expenses with a number column amount and a required string parameter department."
        },
        "type": "noul"
      },
      "w05": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The prompt builder returned an MDMA system prompt, but its response was truncated before the external-source catalog and custom instructions appeared. Here is a compact prompt containing the requested requirements; it is not the complete builder output:\n\n```text\nYou are an expert MDMA document author. Produce an expense-approval\ndocument using MDMA form and approval-gate components.\n\nUse a form with these required fields:\n- amount: number, labeled \"Amount\"\n- category: select, labeled \"Category\", with options \"Travel\" and \"Supplies\"\n\nExpenses with an amount greater than 1000 require manager approval.\nConfigure the approval gate to allow the manager role. Ensure the host\nworkflow enforces this threshold; do not represent the approval as completed\nor bypass the gate for expenses above 1000.\n\nExternal data-source catalog:\n- Name: expenses\n- Kind: rows\n- Column: amount, number\n- Required parameter: department, string\n\nWhen displaying data from this source in a table, reference it using\n{ source: expenses, params: { department: <department> } } rather than\ninventing rows. Obtain a department value before using the source.\n\nWrite the MDMA document directly as Markdown with YAML component definitions\nin fenced mdma blocks. Follow the MDMA component schemas and authoring rules.\n```",
          "done_when": "The tool reply contains the generated prompt reflecting the expense approval requirements and the expenses data-source catalog with its column and parameter.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "businessRules": "Expenses over 1000 require manager approval.",
                "components": [
                  "form",
                  "approval-gate"
                ],
                "dataSources": [
                  {
                    "columns": [
                      {
                        "key": "amount",
                        "type": "number"
                      }
                    ],
                    "kind": "rows",
                    "name": "expenses",
                    "params": [
                      {
                        "name": "department",
                        "required": true,
                        "type": "string"
                      }
                    ]
                  }
                ],
                "domain": "expense approval",
                "fields": [
                  {
                    "label": "Amount",
                    "name": "amount",
                    "required": true,
                    "type": "number"
                  },
                  {
                    "label": "Category",
                    "name": "category",
                    "options": [
                      "Travel",
                      "Supplies"
                    ],
                    "required": true,
                    "type": "select"
                  }
                ]
              },
              "reply": "You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\nCRITICAL: Your output IS the Markdown document — write headings, paragraphs, and ```mdma blocks directly. NEVER wrap your response in ```markdown code fences. Your response is already rendered as Markdown.\n\n## Document Format\n\nAn MDMA document is a standard Markdown file that contains one or more interactive component blocks. Each component block is a YAML snippet inside a fenced code block tagged with `mdma`. Here is an example of what your output should look like — note there are NO outer ```markdown fences:\n\n# My Document Title\n\nSome regular Markdown content here.\n\n```mdma\ntype: form\nid: contact-form\nfields:\n  - name: email\n    type: email\n    label: Email Address\n    required: true\n```\n\nMore Markdown content can follow.\n\n## Component Types\n\nMDMA supports 10 component types. Every component shares these base fields:\n\n- **id** (string, required) — Unique identifier within the document\n- **type** (string, required) — Component type name\n- **label** (string, optional) — Display label\n- **sensitive** (boolean, default: false) — If true, values are redacted in logs\n- **disabled** (boolean | binding, default: false) — accepts `true`, `false`, or a quoted binding like `\"{{checklist.completed}}\"`\n- **visible** (boolean | binding, default: true) — accepts `true`, `false`, or a quoted binding like `\"{{form.field}}\"`\n- **meta** (object, optional) — Arbitrary metadata\n\n### 1. form\n\nCollects user input via structured fields.\n\n```mdma\ntype: form\nid: <unique-id>\nfields:\n  - name: <field-name>           # required, string\n    type: text | number | email | date | select | checkbox | textarea | file\n    label: <display-label>       # required, string\n    required: true | false       # default: false\n    sensitive: true | false      # default: false — set true for PII\n    defaultValue: <any>          # optional\n    options:                     # required when type is \"select\" — a list, OR { source, params } from a data-source catalog\n      - label: <label>\n        value: <value>           # string — quote numeric-looking values, e.g. \"1\" not 1\n    validation:                  # optional\n      pattern: <regex>\n      min: <number>\n      max: <number>\n      message: <error-message>\n    bind: \"{{variable.path}}\"    # optional binding\nonSubmit: <action-id>            # required — action triggered on submit\n```\n\n### 2. button\n\nTriggers an action when clicked.\n\n```mdma\ntype: button\nid: <unique-id>\ntext: <button-label>             # required, string\nvariant: primary | secondary | danger | ghost   # default: primary\nonAction: <action-id>           # required — action triggered on click\nconfirm:                         # optional confirmation dialog\n  title: <dialog-title>\n  message: <dialog-message>\n  confirmText: <confirm-label>   # default: \"Confirm\"\n  cancelText: <cancel-label>     # default: \"Cancel\"\n```\n\n### 3. tasklist\n\nA checklist of items that can be individually checked off.\n\n```mdma\ntype: tasklist\nid: <unique-id>\nitems:\n  - id: <item-id>               # required, unique within tasklist\n    text: <item-description>    # required, string\n    checked: true | false       # default: false\n    required: true | false      # default: false\n    bind: \"{{variable.path}}\"   # optional binding\nonComplete: <action-id>         # optional — triggered when all items checked\n```\n\n### 4. table\n\nDisplays tabular data with optional sorting, filtering, and pagination.\n\n```mdma\ntype: table\nid: <unique-id>\ncolumns:\n  - key: <field-key>            # required, string\n    header: <column-header>     # required, string\n    sortable: true | false      # default: false\n    sensitive: true | false     # default: false\n    width: <css-width>          # optional, e.g. \"200px\"\ndata:                           # array of row objects OR a binding OR a data-source ref\n  - { key1: value1, key2: value2 }\n# OR: data: \"{{variable.path}}\"\n# OR: data: { source: <source-name>, params: { <param>: <value> } }   # source from the data-source catalog\nsortable: true | false          # default: false (table-level)\nfilterable: true | false        # default: false\npageSize: <number>              # optional, positive integer\n```\n\n### 5. callout\n\nDisplays a highlighted message block.\n\n```mdma\ntype: callout\nid: <unique-id>\nvariant: info | warning | error | success   # default: info\ntitle: <optional-title>\ncontent: <message-text>          # required, string\ndismissible: true | false        # default: false\n```\n\n### 6. approval-gate\n\nBlocks workflow progression until required approvals are received.\n\n```mdma\ntype: approval-gate\nid: <unique-id>\ntitle: <gate-title>              # required, string\ndescription: <details>           # optional\nrequiredApprovers: <number>      # default: 1, positive integer\nallowedRoles:                    # optional — restrict who can approve\n  - <role-name>\nonApprove: <action-id>          # optional\nonDeny: <action-id>             # optional\nrequireReason: true | false      # default: false — require reason on denial\n```\n\n### 7. webhook\n\nMakes an HTTP request when triggered by an action.\n\n```mdma\ntype: webhook\nid: <unique-id>\nurl: <endpoint-url>              # required, valid URL or binding\nmethod: GET | POST | PUT | PATCH | DELETE   # default: POST\nheaders:                         # optional, key-value pairs\n  Content-Type: application/json\nbody:                            # optional, object or binding\n  key: value\ntrigger: <action-id>            # required — action ID that triggers this webhook\nretries: <0-5>                  # default: 0\ntimeout: <milliseconds>         # default: 30000\n```\n\n### 8. chart\n\nDisplays data as a visual chart. Data is provided as a compact CSV-like multiline string where the first row contains column headers and subsequent rows contain comma-separated values.\n\n```mdma\ntype: chart\nid: <unique-id>\nvariant: line | bar | area | pie            # default: line\nlabel: <chart-title>                         # optional\ndata: |                                      # required — CSV multiline string, binding, or { source, params } data-source ref\n  <col1>, <col2>, <col3>\n  <val1>, <val2>, <val3>\n  <val1>, <val2>, <val3>\nxAxis: <column-name>                         # optional — column for x-axis (default: first column)\nyAxis: <column-name> | [<col1>, <col2>]      # optional — column(s) for y-axis (default: all numeric non-xAxis columns)\ncolors:                                      # optional — custom color palette\n  - \"<hex-color>\"\nshowLegend: true | false                     # default: true\nshowGrid: true | false                       # default: true\nheight: <number>                             # default: 300 (pixels)\nstacked: true | false                        # default: false (for bar/area)\n```\n\n**Data format rules:**\n- First line of `data` = column headers (comma-separated, trimmed)\n- Subsequent lines = data rows (comma-separated, trimmed)\n- Numeric values are auto-detected and coerced\n- Use YAML `|` block scalar for multi-line data\n\n**Example — line chart:**\n```mdma\ntype: chart\nid: revenue-chart\nvariant: line\nlabel: Revenue Trend\ndata: |\n  month, revenue, costs\n  Jan, 45000, 32000\n  Feb, 52000, 35000\n  Mar, 48000, 31000\n  Apr, 61000, 38000\nxAxis: month\n```\n\n**Example — pie chart:**\n```mdma\ntype: chart\nid: market-share\nvariant: pie\nlabel: Market Share\ndata: |\n  company, share\n  Ours, 35\n  Competitor A, 25\n  Competitor B, 20\n  Others, 20\nxAxis: company\n```\n\n### 9. thinking\n\nDisplays a collapsible block that shows AI reasoning or thinking process. Useful for transparency about how the AI arrived at conclusions or recommendations.\n\n```mdma\ntype: thinking\nid: <unique-id>\nlabel: <header-text>              # optional — default: \"Thinking\"\ncontent: |                        # req",
              "tool": "build-system-prompt"
            }
          ],
          "task": "Build an MDMA system prompt for expense approval using a form and an approval-gate. Include a required number field named amount labeled Amount, a required select field named category with options Travel and Supplies, and the business rule that expenses over 1000 require manager approval. Include an external rows source named expenses with a number column amount and a required string parameter department."
        },
        "type": "noul"
      },
      "w06": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Available author prompt variants\n\nThe server returned the following complete variant IDs, grouped by provider:\n\n- **General:** `default`\n- **Anthropic:** `anthropic/haiku`, `anthropic/sonnet`, `anthropic/opus-4.8`, `anthropic/fable-5`, `anthropic/opus-4.7`, `anthropic/opus-4.6`, `anthropic/sonnet-5.5`, `anthropic/sonnet-5`\n- **Google:** `google/gemini-3.5-flash`, `google/gemini-2.5-pro`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `google/gemini-3.1-pro-preview`, `google/gemma`, `google/gemini-3.1-pro-preview-customtools`, `google/gemini-3-flash-preview`, `google/gemini-3.1-flash-lite-preview`\n- **Mobile Reality:** `mobile-reality/mdma-il`\n- **OpenAI:** `openai/gpt-5`, `openai/gpt-5.6-sol`, `openai/gpt-5.6-terra`, `openai/gpt-5.6-luna`, `openai/gpt-5.5`, `openai/gpt-5.4`, `openai/gpt-5.2`, `openai/gpt-5.1`, `openai/gpt-5-mini`, `openai/gpt-5-nano`, `openai/gpt-5.4-mini`, `openai/gpt-5.4-nano`, `openai/gpt-4.1`, `openai/gpt-4.1-mini`, `openai/gpt-4.1-nano`\n- **xAI:** `x-ai/grok-4.3`, `x-ai/grok-4.20`, `x-ai/grok-4.5`\n\nThe listing ended partway through an additional `anthropic/opus-5.5` entry, so the returned list may be incomplete.\n\n## Retrieved prompt: `openai/gpt-5`\n\nI retrieved the `mdma-author` prompt for `openai/gpt-5`. It instructs the author to output an MDMA document directly, use only requested component types, give select options string values, and use custom components only when registered. It also begins a component reference with schemas and examples.\n\nThe tool response ended partway through the component reference, at the beginning of the callout section, so I cannot reproduce the complete prompt from the returned result.",
          "done_when": "The transcript shows the variant list and a get-prompt reply for mdma-author using an ID from that list.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "[\n  {\n    \"id\": \"default\",\n    \"label\": \"Default\",\n    \"description\": \"Canonical prompt without any model-specific tuning. A strong generalist, but newer models may benefit from the tuned variants below.\"\n  },\n  {\n    \"id\": \"anthropic/haiku\",\n    \"label\": \"Anthropic — Claude Haiku\",\n    \"description\": \"XML-tagged framing (<output_format>, <self_check>) tuned for Claude Haiku.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet\",\n    \"label\": \"Anthropic — Claude Sonnet\",\n    \"description\": \"Same Anthropic-styled framing as Haiku — placeholder for Sonnet-specific tuning.\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.8\",\n    \"label\": \"Anthropic — Claude Opus 4.8\",\n    \"description\": \"Flagship Opus — same Anthropic-styled framing as opus-4.7 (<scope_discipline>).\"\n  },\n  {\n    \"id\": \"anthropic/fable-5\",\n    \"label\": \"Anthropic — Fable 5\",\n    \"description\": \"Fable 5 — Anthropic flagship composition (<output_format> + <scope_discipline>).\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.7\",\n    \"label\": \"Anthropic — Claude Opus 4.7\",\n    \"description\": \"Flagship Opus — Anthropic-styled framing + <scope_discipline>.\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.6\",\n    \"label\": \"Anthropic — Claude Opus 4.6\",\n    \"description\": \"Older Opus tier — same framing as opus-4.7.ts (<scope_discipline> + Anthropic wrapping).\"\n  },\n  {\n    \"id\": \"google/gemini-3.5-flash\",\n    \"label\": \"Google — Gemini 3.5 Flash\",\n    \"description\": \"Flash tier — Gemini-native framing with all negative-constraint blocks plus <emit_component> (forces the ```mdma block instead of describing it in prose during multi-turn flows).\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-pro\",\n    \"label\": \"Google — Gemini 2.5 Pro\",\n    \"description\": \"Previous-generation Pro — same Gemini-native composition as Gemini 3.1 Pro (Markdown framing, end-placed constraints).\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-flash\",\n    \"label\": \"Google — Gemini 2.5 Flash\",\n    \"description\": \"Previous-generation mid-tier Flash — all three negative-constraint blocks (fence closing + scope + select options) as defensive default.\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-flash-lite\",\n    \"label\": \"Google — Gemini 2.5 Flash-Lite\",\n    \"description\": \"Previous-generation smallest-tier Flash-Lite — same defensive composition as 2.5 Flash; reserved its own file in case eval data later requires a divergent tuning.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-pro-preview\",\n    \"label\": \"Google — Gemini 3.1 Pro (Preview)\",\n    \"description\": \"Gemini-native framing — Markdown headers (no XML), constraints placed at the END per Google's Gemini 3 prompting guide.\"\n  },\n  {\n    \"id\": \"google/gemma\",\n    \"label\": \"Google — Gemma\",\n    \"description\": \"Open-weights Gemma family (Gemma 4 26B-a4b / 31B, Gemma 3n 4B). Gemini-native Markdown framing with all defensive blocks bundled (fence closing, scope discipline, string select values) for the open-model tier.\"\n  },\n  {\n    \"id\": \"mobile-reality/mdma-il\",\n    \"label\": \"Mobile Reality — MDMA-IL model\",\n    \"description\": \"Our self-hosted MDMA-IL DSL models (E4B mdma-v3 / 31B mdma-31b). Reads an MDMA-IL DSL intent (grammar + worked examples are in the prompt) and returns MDMA. The DSL grammar section is required — a prompt without it is out-of-distribution. Endpoint also requires temperature 0 + chat_template_kwargs.enable_thinking=false.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-pro-preview-customtools\",\n    \"label\": \"Google — Gemini 3.1 Pro Custom Tools (Preview)\",\n    \"description\": \"Pro tuning that prefers user-defined tools — re-exports the Pro variant since MDMA authoring does not use tool calling.\"\n  },\n  {\n    \"id\": \"google/gemini-3-flash-preview\",\n    \"label\": \"Google — Gemini 3 Flash (Preview)\",\n    \"description\": \"Mid-tier Gemini — all three negative-constraint blocks (fence closing + scope + select options) as defensive default.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-flash-lite-preview\",\n    \"label\": \"Google — Gemini 3.1 Flash-Lite (Preview)\",\n    \"description\": \"Smaller-tier Gemini — same Markdown framing as Pro plus all three negative-constraint blocks (fence closing + scope + select options).\"\n  },\n  {\n    \"id\": \"openai/gpt-5\",\n    \"label\": \"OpenAI — GPT-5\",\n    \"description\": \"Flagship-tier framing: <scope_discipline> + <select_options>. No <fence_closing>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-sol\",\n    \"label\": \"OpenAI — GPT-5.6 Sol\",\n    \"description\": \"GPT-5.6 sibling — proven gpt-5.5 flagship framing (<scope_discipline> + <component_types> + <single_interactive> + <select_options>) plus <custom_usage>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-terra\",\n    \"label\": \"OpenAI — GPT-5.6 Terra\",\n    \"description\": \"GPT-5.6 sibling — same flagship baseline as gpt-5.6-sol.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-luna\",\n    \"label\": \"OpenAI — GPT-5.6 Luna\",\n    \"description\": \"GPT-5.6 sibling — same flagship baseline as gpt-5.6-sol.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.5\",\n    \"label\": \"OpenAI — GPT-5.5\",\n    \"description\": \"Same flagship-tier framing as GPT-5: <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4\",\n    \"label\": \"OpenAI — GPT-5.4\",\n    \"description\": \"Adds <scope_discipline> to push back on adding components beyond what the user listed.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.2\",\n    \"label\": \"OpenAI — GPT-5.2\",\n    \"description\": \"Older base-tier — <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.1\",\n    \"label\": \"OpenAI — GPT-5.1\",\n    \"description\": \"Older base-tier — same framing as GPT-5.2: <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5-mini\",\n    \"label\": \"OpenAI — GPT-5-mini\",\n    \"description\": \"Mini tier of GPT-5 — needs all three: <fence_closing> + <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5-nano\",\n    \"label\": \"OpenAI — GPT-5-nano\",\n    \"description\": \"Smallest tier of GPT-5 — same all-three framing as GPT-5.4-nano and GPT-5-mini.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4-mini\",\n    \"label\": \"OpenAI — GPT-5.4-mini\",\n    \"description\": \"Adds <fence_closing> reminding the model to close ```mdma blocks before the next component.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4-nano\",\n    \"label\": \"OpenAI — GPT-5.4-nano\",\n    \"description\": \"Smallest tier — combines <fence_closing> + <scope_discipline> for maximum guidance.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1\",\n    \"label\": \"OpenAI — GPT-4.1\",\n    \"description\": \"Non-reasoning flagship from the gpt-4.x family — adds <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1-mini\",\n    \"label\": \"OpenAI — GPT-4.1-mini\",\n    \"description\": \"Mini tier of GPT-4.1 — same framing as GPT-5.4-mini: <fence_closing> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1-nano\",\n    \"label\": \"OpenAI — GPT-4.1-nano\",\n    \"description\": \"Smallest tier of GPT-4.1 — all three framing blocks for maximum guidance.\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.3\",\n    \"label\": \"xAI — Grok 4.3\",\n    \"description\": \"Minimal composition — scope_discipline + select_options only. Empirically, every additional framing block regresses Grok (see grok-4.3.ts docblock).\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.20\",\n    \"label\": \"xAI — Grok 4.20\",\n    \"description\": \"Same minimal composition as Grok 4.3 — same family, no eval-driven reason to diverge yet.\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.5\",\n    \"label\": \"xAI — Grok 4.5\",\n    \"description\": \"Minimal composition (scope_discipline + select_options). A hidden-reasoning model; its residual reasoning-token leak is handled at the API layer (reasoning.exclude), not the prompt.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet-5.5\",\n    \"label\": \"Anthropic — Claude Sonnet 5.5\",\n    \"description\": \"Sonnet composition with the `thinking` component described as a plan summary — the shared wording (\\\"AI reasoning\\\") draws `reasoning_extraction` refusals from this model.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet-5\",\n    \"label\": \"Anthropic — Claude Sonnet 5\",\n    \"description\": \"Same Anthropic-styled framing as Sonnet (<scope_discipline> + <fence_closing>).\"\n  },\n  {\n    \"id\": \"anthropic/opus-5.5\",\n    \"label\": \"Anthropic — Claude Opu",
              "tool": "list-prompt-variants"
            },
            {
              "arguments": {
                "name": "mdma-author",
                "variantId": "openai/gpt-5"
              },
              "reply": "You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\nCRITICAL: Your output IS the Markdown document — write headings, paragraphs, and ```mdma blocks directly. NEVER wrap your response in ```markdown code fences. Your response is already rendered as Markdown.\n\n<scope_discipline>\n1. Emit only the component types the user has explicitly listed or provided in a blueprint. If the user lists \"form, tasklist, button, thinking\", do not also emit webhooks, callouts, charts, approval-gates, or any other type. Note: when a blueprint lists multiple interactive components, the <single_interactive> limit still applies — emit only the first interactive component from the list.\n\n2. When the user provides a YAML blueprint of one component, output exactly that one component (plus the standard thinking block). Action-id values inside the blueprint — `onApprove`, `onDeny`, `onSubmit`, `onAction`, `trigger`, `onComplete` — are opaque string labels. Do NOT generate webhook, button, callout, or any other handler components to \"complete\" or \"wire up\" the workflow.\n\n3. When a non-listed component is mentioned in prose context (e.g., \"after submission this fires a webhook\"), describe the integration in prose only. Do not emit the component.\n\n4. The blueprint or component list is complete as given. Do not add components to fill out a workflow that you think looks incomplete. The user has chosen the scope deliberately.\n</scope_discipline>\n\n<select_options>\nFor `type: select` fields, every `options` entry has a string `value` — even when the user describes options as numbers (e.g., \"rating 1-5\") or booleans. The schema rejects numeric and boolean values.\n\nCorrect:\n\n```mdma\ntype: form\nid: rating-form\nfields:\n  - name: rating\n    type: select\n    label: Rating\n    options:\n      - label: \"1 — Poor\"\n        value: \"1\"\n      - label: \"5 — Excellent\"\n        value: \"5\"\n```\n\nThe label can read naturally to the user; the value is the stable string identifier sent on submit. `value: 1` (number) and `value: true` (boolean) fail validation.\n</select_options>\n\n<custom_usage>\n1. Only emit a `custom` block when its `name` is listed in \"Available Custom Components\". If the request needs something NOT listed there, do NOT invent a custom variant — use a built-in component instead. With no rating variant registered, a \"star rating 1-5\" is a `select` (or `number`) form field, NEVER `name: star-rating`.\n\n2. A `custom` component is ALWAYS its own standalone, top-level ```mdma block. It is NEVER a `form` field: `custom` is not a valid field `type` (the only field types are text, number, email, date, select, checkbox, textarea, file), and a variant is never nested under `fields` or a `custom:` key. A listed variant stands on its own with its own `props` and `actions` — it needs no wrapping form.\n\n3. Emit each custom variant exactly once. Do NOT also produce a `form`-field version of it \"for clarity\".\n\nIncorrect — inventing a variant that is not in the catalog:\n\n```mdma\ntype: custom\nname: star-rating\n```\n\nCorrect — no rating variant exists, so use a built-in:\n\n```mdma\ntype: form\nid: service-rating\nfields:\n  - name: rating\n    type: select\n    label: \"Rate our service\"\n    options:\n      - label: \"1 — Poor\"\n        value: \"1\"\n      - label: \"5 — Excellent\"\n        value: \"5\"\nonSubmit: rating-submitted\n```\n\nIncorrect — a listed variant embedded as a form field (this FAILS validation):\n\n```mdma\ntype: form\nid: contract-form\nfields:\n  - name: signature\n    type: custom\nonSubmit: submit-contract\n```\n\nCorrect — the listed variant as its own standalone block, no wrapping form:\n\n```mdma\ntype: custom\nid: customer-signature\nname: signature-pad\nprops:\n  penColor: \"#000000\"\n  required: true\nactions:\n  onCapture: signature-captured\n```\n</custom_usage>\n\n## Document Format\n\nAn MDMA document is a standard Markdown file that contains one or more interactive component blocks. Each component block is a YAML snippet inside a fenced code block tagged with `mdma`. Here is an example of what your output should look like — note there are NO outer ```markdown fences:\n\n# My Document Title\n\nSome regular Markdown content here.\n\n```mdma\ntype: form\nid: contact-form\nfields:\n  - name: email\n    type: email\n    label: Email Address\n    required: true\n```\n\nMore Markdown content can follow.\n\n## Component Types\n\nMDMA supports 10 component types. Every component shares these base fields:\n\n- **id** (string, required) — Unique identifier within the document\n- **type** (string, required) — Component type name\n- **label** (string, optional) — Display label\n- **sensitive** (boolean, default: false) — If true, values are redacted in logs\n- **disabled** (boolean | binding, default: false) — accepts `true`, `false`, or a quoted binding like `\"{{checklist.completed}}\"`\n- **visible** (boolean | binding, default: true) — accepts `true`, `false`, or a quoted binding like `\"{{form.field}}\"`\n- **meta** (object, optional) — Arbitrary metadata\n\n### 1. form\n\nCollects user input via structured fields.\n\n```mdma\ntype: form\nid: <unique-id>\nfields:\n  - name: <field-name>           # required, string\n    type: text | number | email | date | select | checkbox | textarea | file\n    label: <display-label>       # required, string\n    required: true | false       # default: false\n    sensitive: true | false      # default: false — set true for PII\n    defaultValue: <any>          # optional\n    options:                     # required when type is \"select\" — a list, OR { source, params } from a data-source catalog\n      - label: <label>\n        value: <value>           # string — quote numeric-looking values, e.g. \"1\" not 1\n    validation:                  # optional\n      pattern: <regex>\n      min: <number>\n      max: <number>\n      message: <error-message>\n    bind: \"{{variable.path}}\"    # optional binding\nonSubmit: <action-id>            # required — action triggered on submit\n```\n\n### 2. button\n\nTriggers an action when clicked.\n\n```mdma\ntype: button\nid: <unique-id>\ntext: <button-label>             # required, string\nvariant: primary | secondary | danger | ghost   # default: primary\nonAction: <action-id>           # required — action triggered on click\nconfirm:                         # optional confirmation dialog\n  title: <dialog-title>\n  message: <dialog-message>\n  confirmText: <confirm-label>   # default: \"Confirm\"\n  cancelText: <cancel-label>     # default: \"Cancel\"\n```\n\n### 3. tasklist\n\nA checklist of items that can be individually checked off.\n\n```mdma\ntype: tasklist\nid: <unique-id>\nitems:\n  - id: <item-id>               # required, unique within tasklist\n    text: <item-description>    # required, string\n    checked: true | false       # default: false\n    required: true | false      # default: false\n    bind: \"{{variable.path}}\"   # optional binding\nonComplete: <action-id>         # optional — triggered when all items checked\n```\n\n### 4. table\n\nDisplays tabular data with optional sorting, filtering, and pagination.\n\n```mdma\ntype: table\nid: <unique-id>\ncolumns:\n  - key: <field-key>            # required, string\n    header: <column-header>     # required, string\n    sortable: true | false      # default: false\n    sensitive: true | false     # default: false\n    width: <css-width>          # optional, e.g. \"200px\"\ndata:                           # array of row objects OR a binding OR a data-source ref\n  - { key1: value1, key2: value2 }\n# OR: data: \"{{variable.path}}\"\n# OR: data: { source: <source-name>, params: { <param>: <value> } }   # source from the data-source catalog\nsortable: true | false          # default: false (table-level)\nfilterable: true | false        # default: false\npageSize: <number>              # optional, positive integer\n```\n\n### 5. callout\n\nDisplays a highlighted message block.\n\n```",
              "tool": "get-prompt"
            }
          ],
          "task": "List the available MDMA author prompt variants, then retrieve the author prompt for one of the listed variants."
        },
        "type": "noul"
      },
      "w07": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Available author prompt variants\n\nThe server returned the following complete variant IDs:\n\n- `default`\n- Anthropic: `anthropic/haiku`, `anthropic/sonnet`, `anthropic/opus-4.8`, `anthropic/fable-5`, `anthropic/opus-4.7`, `anthropic/opus-4.6`, `anthropic/sonnet-5.5`, `anthropic/sonnet-5`\n- Google: `google/gemini-3.5-flash`, `google/gemini-2.5-pro`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `google/gemini-3.1-pro-preview`, `google/gemma`, `google/gemini-3.1-pro-preview-customtools`, `google/gemini-3-flash-preview`, `google/gemini-3.1-flash-lite-preview`\n- Mobile Reality: `mobile-reality/mdma-il`\n- OpenAI: `openai/gpt-5`, `openai/gpt-5.6-sol`, `openai/gpt-5.6-terra`, `openai/gpt-5.6-luna`, `openai/gpt-5.5`, `openai/gpt-5.4`, `openai/gpt-5.2`, `openai/gpt-5.1`, `openai/gpt-5-mini`, `openai/gpt-5-nano`, `openai/gpt-5.4-mini`, `openai/gpt-5.4-nano`, `openai/gpt-4.1`, `openai/gpt-4.1-mini`, `openai/gpt-4.1-nano`\n- xAI: `x-ai/grok-4.3`, `x-ai/grok-4.20`, `x-ai/grok-4.5`\n\nThe returned list was truncated during the `anthropic/opus-5.5` entry, so it may not be exhaustive.\n\n## Retrieved prompt\n\nI retrieved **`mdma-author` for `x-ai/grok-4.3`**. It begins:\n\n> You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\nThe returned prompt describes the document format and component schemas, including forms, buttons, tasklists, tables, callouts, approval gates, webhooks, charts, and thinking blocks. The response was truncated during the thinking component, so I cannot reproduce the complete prompt from the tool result.",
          "done_when": "The transcript shows the variant list and a get-prompt reply for mdma-author using an ID from that list.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "[\n  {\n    \"id\": \"default\",\n    \"label\": \"Default\",\n    \"description\": \"Canonical prompt without any model-specific tuning. A strong generalist, but newer models may benefit from the tuned variants below.\"\n  },\n  {\n    \"id\": \"anthropic/haiku\",\n    \"label\": \"Anthropic — Claude Haiku\",\n    \"description\": \"XML-tagged framing (<output_format>, <self_check>) tuned for Claude Haiku.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet\",\n    \"label\": \"Anthropic — Claude Sonnet\",\n    \"description\": \"Same Anthropic-styled framing as Haiku — placeholder for Sonnet-specific tuning.\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.8\",\n    \"label\": \"Anthropic — Claude Opus 4.8\",\n    \"description\": \"Flagship Opus — same Anthropic-styled framing as opus-4.7 (<scope_discipline>).\"\n  },\n  {\n    \"id\": \"anthropic/fable-5\",\n    \"label\": \"Anthropic — Fable 5\",\n    \"description\": \"Fable 5 — Anthropic flagship composition (<output_format> + <scope_discipline>).\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.7\",\n    \"label\": \"Anthropic — Claude Opus 4.7\",\n    \"description\": \"Flagship Opus — Anthropic-styled framing + <scope_discipline>.\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.6\",\n    \"label\": \"Anthropic — Claude Opus 4.6\",\n    \"description\": \"Older Opus tier — same framing as opus-4.7.ts (<scope_discipline> + Anthropic wrapping).\"\n  },\n  {\n    \"id\": \"google/gemini-3.5-flash\",\n    \"label\": \"Google — Gemini 3.5 Flash\",\n    \"description\": \"Flash tier — Gemini-native framing with all negative-constraint blocks plus <emit_component> (forces the ```mdma block instead of describing it in prose during multi-turn flows).\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-pro\",\n    \"label\": \"Google — Gemini 2.5 Pro\",\n    \"description\": \"Previous-generation Pro — same Gemini-native composition as Gemini 3.1 Pro (Markdown framing, end-placed constraints).\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-flash\",\n    \"label\": \"Google — Gemini 2.5 Flash\",\n    \"description\": \"Previous-generation mid-tier Flash — all three negative-constraint blocks (fence closing + scope + select options) as defensive default.\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-flash-lite\",\n    \"label\": \"Google — Gemini 2.5 Flash-Lite\",\n    \"description\": \"Previous-generation smallest-tier Flash-Lite — same defensive composition as 2.5 Flash; reserved its own file in case eval data later requires a divergent tuning.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-pro-preview\",\n    \"label\": \"Google — Gemini 3.1 Pro (Preview)\",\n    \"description\": \"Gemini-native framing — Markdown headers (no XML), constraints placed at the END per Google's Gemini 3 prompting guide.\"\n  },\n  {\n    \"id\": \"google/gemma\",\n    \"label\": \"Google — Gemma\",\n    \"description\": \"Open-weights Gemma family (Gemma 4 26B-a4b / 31B, Gemma 3n 4B). Gemini-native Markdown framing with all defensive blocks bundled (fence closing, scope discipline, string select values) for the open-model tier.\"\n  },\n  {\n    \"id\": \"mobile-reality/mdma-il\",\n    \"label\": \"Mobile Reality — MDMA-IL model\",\n    \"description\": \"Our self-hosted MDMA-IL DSL models (E4B mdma-v3 / 31B mdma-31b). Reads an MDMA-IL DSL intent (grammar + worked examples are in the prompt) and returns MDMA. The DSL grammar section is required — a prompt without it is out-of-distribution. Endpoint also requires temperature 0 + chat_template_kwargs.enable_thinking=false.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-pro-preview-customtools\",\n    \"label\": \"Google — Gemini 3.1 Pro Custom Tools (Preview)\",\n    \"description\": \"Pro tuning that prefers user-defined tools — re-exports the Pro variant since MDMA authoring does not use tool calling.\"\n  },\n  {\n    \"id\": \"google/gemini-3-flash-preview\",\n    \"label\": \"Google — Gemini 3 Flash (Preview)\",\n    \"description\": \"Mid-tier Gemini — all three negative-constraint blocks (fence closing + scope + select options) as defensive default.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-flash-lite-preview\",\n    \"label\": \"Google — Gemini 3.1 Flash-Lite (Preview)\",\n    \"description\": \"Smaller-tier Gemini — same Markdown framing as Pro plus all three negative-constraint blocks (fence closing + scope + select options).\"\n  },\n  {\n    \"id\": \"openai/gpt-5\",\n    \"label\": \"OpenAI — GPT-5\",\n    \"description\": \"Flagship-tier framing: <scope_discipline> + <select_options>. No <fence_closing>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-sol\",\n    \"label\": \"OpenAI — GPT-5.6 Sol\",\n    \"description\": \"GPT-5.6 sibling — proven gpt-5.5 flagship framing (<scope_discipline> + <component_types> + <single_interactive> + <select_options>) plus <custom_usage>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-terra\",\n    \"label\": \"OpenAI — GPT-5.6 Terra\",\n    \"description\": \"GPT-5.6 sibling — same flagship baseline as gpt-5.6-sol.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-luna\",\n    \"label\": \"OpenAI — GPT-5.6 Luna\",\n    \"description\": \"GPT-5.6 sibling — same flagship baseline as gpt-5.6-sol.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.5\",\n    \"label\": \"OpenAI — GPT-5.5\",\n    \"description\": \"Same flagship-tier framing as GPT-5: <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4\",\n    \"label\": \"OpenAI — GPT-5.4\",\n    \"description\": \"Adds <scope_discipline> to push back on adding components beyond what the user listed.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.2\",\n    \"label\": \"OpenAI — GPT-5.2\",\n    \"description\": \"Older base-tier — <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.1\",\n    \"label\": \"OpenAI — GPT-5.1\",\n    \"description\": \"Older base-tier — same framing as GPT-5.2: <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5-mini\",\n    \"label\": \"OpenAI — GPT-5-mini\",\n    \"description\": \"Mini tier of GPT-5 — needs all three: <fence_closing> + <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5-nano\",\n    \"label\": \"OpenAI — GPT-5-nano\",\n    \"description\": \"Smallest tier of GPT-5 — same all-three framing as GPT-5.4-nano and GPT-5-mini.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4-mini\",\n    \"label\": \"OpenAI — GPT-5.4-mini\",\n    \"description\": \"Adds <fence_closing> reminding the model to close ```mdma blocks before the next component.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4-nano\",\n    \"label\": \"OpenAI — GPT-5.4-nano\",\n    \"description\": \"Smallest tier — combines <fence_closing> + <scope_discipline> for maximum guidance.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1\",\n    \"label\": \"OpenAI — GPT-4.1\",\n    \"description\": \"Non-reasoning flagship from the gpt-4.x family — adds <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1-mini\",\n    \"label\": \"OpenAI — GPT-4.1-mini\",\n    \"description\": \"Mini tier of GPT-4.1 — same framing as GPT-5.4-mini: <fence_closing> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1-nano\",\n    \"label\": \"OpenAI — GPT-4.1-nano\",\n    \"description\": \"Smallest tier of GPT-4.1 — all three framing blocks for maximum guidance.\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.3\",\n    \"label\": \"xAI — Grok 4.3\",\n    \"description\": \"Minimal composition — scope_discipline + select_options only. Empirically, every additional framing block regresses Grok (see grok-4.3.ts docblock).\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.20\",\n    \"label\": \"xAI — Grok 4.20\",\n    \"description\": \"Same minimal composition as Grok 4.3 — same family, no eval-driven reason to diverge yet.\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.5\",\n    \"label\": \"xAI — Grok 4.5\",\n    \"description\": \"Minimal composition (scope_discipline + select_options). A hidden-reasoning model; its residual reasoning-token leak is handled at the API layer (reasoning.exclude), not the prompt.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet-5.5\",\n    \"label\": \"Anthropic — Claude Sonnet 5.5\",\n    \"description\": \"Sonnet composition with the `thinking` component described as a plan summary — the shared wording (\\\"AI reasoning\\\") draws `reasoning_extraction` refusals from this model.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet-5\",\n    \"label\": \"Anthropic — Claude Sonnet 5\",\n    \"description\": \"Same Anthropic-styled framing as Sonnet (<scope_discipline> + <fence_closing>).\"\n  },\n  {\n    \"id\": \"anthropic/opus-5.5\",\n    \"label\": \"Anthropic — Claude Opu",
              "tool": "list-prompt-variants"
            },
            {
              "arguments": {
                "name": "mdma-author",
                "variantId": "x-ai/grok-4.3"
              },
              "reply": "You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\n## Document Format\n\nAn MDMA document is a standard Markdown file that contains one or more interactive component blocks. Each component block is a YAML snippet inside a fenced code block tagged with `mdma`. Here is an example of what your output should look like — note there are NO outer ```markdown fences:\n\n# My Document Title\n\nSome regular Markdown content here.\n\n```mdma\ntype: form\nid: contact-form\nfields:\n  - name: email\n    type: email\n    label: Email Address\n    required: true\n```\n\nMore Markdown content can follow.\n\n## Component Types\n\nMDMA supports 10 component types. Every component shares these base fields:\n\n- **id** (string, required) — Unique identifier within the document\n- **type** (string, required) — Component type name\n- **label** (string, optional) — Display label\n- **sensitive** (boolean, default: false) — If true, values are redacted in logs\n- **disabled** (boolean | binding, default: false) — accepts `true`, `false`, or a quoted binding like `\"{{checklist.completed}}\"`\n- **visible** (boolean | binding, default: true) — accepts `true`, `false`, or a quoted binding like `\"{{form.field}}\"`\n- **meta** (object, optional) — Arbitrary metadata\n\n### 1. form\n\nCollects user input via structured fields.\n\n```mdma\ntype: form\nid: <unique-id>\nfields:\n  - name: <field-name>           # required, string\n    type: text | number | email | date | select | checkbox | textarea | file\n    label: <display-label>       # required, string\n    required: true | false       # default: false\n    sensitive: true | false      # default: false — set true for PII\n    defaultValue: <any>          # optional\n    options:                     # required when type is \"select\" — a list, OR { source, params } from a data-source catalog\n      - label: <label>\n        value: <value>           # string — quote numeric-looking values, e.g. \"1\" not 1\n    validation:                  # optional\n      pattern: <regex>\n      min: <number>\n      max: <number>\n      message: <error-message>\n    bind: \"{{variable.path}}\"    # optional binding\nonSubmit: <action-id>            # required — action triggered on submit\n```\n\n### 2. button\n\nTriggers an action when clicked.\n\n```mdma\ntype: button\nid: <unique-id>\ntext: <button-label>             # required, string\nvariant: primary | secondary | danger | ghost   # default: primary\nonAction: <action-id>           # required — action triggered on click\nconfirm:                         # optional confirmation dialog\n  title: <dialog-title>\n  message: <dialog-message>\n  confirmText: <confirm-label>   # default: \"Confirm\"\n  cancelText: <cancel-label>     # default: \"Cancel\"\n```\n\n### 3. tasklist\n\nA checklist of items that can be individually checked off.\n\n```mdma\ntype: tasklist\nid: <unique-id>\nitems:\n  - id: <item-id>               # required, unique within tasklist\n    text: <item-description>    # required, string\n    checked: true | false       # default: false\n    required: true | false      # default: false\n    bind: \"{{variable.path}}\"   # optional binding\nonComplete: <action-id>         # optional — triggered when all items checked\n```\n\n### 4. table\n\nDisplays tabular data with optional sorting, filtering, and pagination.\n\n```mdma\ntype: table\nid: <unique-id>\ncolumns:\n  - key: <field-key>            # required, string\n    header: <column-header>     # required, string\n    sortable: true | false      # default: false\n    sensitive: true | false     # default: false\n    width: <css-width>          # optional, e.g. \"200px\"\ndata:                           # array of row objects OR a binding OR a data-source ref\n  - { key1: value1, key2: value2 }\n# OR: data: \"{{variable.path}}\"\n# OR: data: { source: <source-name>, params: { <param>: <value> } }   # source from the data-source catalog\nsortable: true | false          # default: false (table-level)\nfilterable: true | false        # default: false\npageSize: <number>              # optional, positive integer\n```\n\n### 5. callout\n\nDisplays a highlighted message block.\n\n```mdma\ntype: callout\nid: <unique-id>\nvariant: info | warning | error | success   # default: info\ntitle: <optional-title>\ncontent: <message-text>          # required, string\ndismissible: true | false        # default: false\n```\n\n### 6. approval-gate\n\nBlocks workflow progression until required approvals are received.\n\n```mdma\ntype: approval-gate\nid: <unique-id>\ntitle: <gate-title>              # required, string\ndescription: <details>           # optional\nrequiredApprovers: <number>      # default: 1, positive integer\nallowedRoles:                    # optional — restrict who can approve\n  - <role-name>\nonApprove: <action-id>          # optional\nonDeny: <action-id>             # optional\nrequireReason: true | false      # default: false — require reason on denial\n```\n\n### 7. webhook\n\nMakes an HTTP request when triggered by an action.\n\n```mdma\ntype: webhook\nid: <unique-id>\nurl: <endpoint-url>              # required, valid URL or binding\nmethod: GET | POST | PUT | PATCH | DELETE   # default: POST\nheaders:                         # optional, key-value pairs\n  Content-Type: application/json\nbody:                            # optional, object or binding\n  key: value\ntrigger: <action-id>            # required — action ID that triggers this webhook\nretries: <0-5>                  # default: 0\ntimeout: <milliseconds>         # default: 30000\n```\n\n### 8. chart\n\nDisplays data as a visual chart. Data is provided as a compact CSV-like multiline string where the first row contains column headers and subsequent rows contain comma-separated values.\n\n```mdma\ntype: chart\nid: <unique-id>\nvariant: line | bar | area | pie            # default: line\nlabel: <chart-title>                         # optional\ndata: |                                      # required — CSV multiline string, binding, or { source, params } data-source ref\n  <col1>, <col2>, <col3>\n  <val1>, <val2>, <val3>\n  <val1>, <val2>, <val3>\nxAxis: <column-name>                         # optional — column for x-axis (default: first column)\nyAxis: <column-name> | [<col1>, <col2>]      # optional — column(s) for y-axis (default: all numeric non-xAxis columns)\ncolors:                                      # optional — custom color palette\n  - \"<hex-color>\"\nshowLegend: true | false                     # default: true\nshowGrid: true | false                       # default: true\nheight: <number>                             # default: 300 (pixels)\nstacked: true | false                        # default: false (for bar/area)\n```\n\n**Data format rules:**\n- First line of `data` = column headers (comma-separated, trimmed)\n- Subsequent lines = data rows (comma-separated, trimmed)\n- Numeric values are auto-detected and coerced\n- Use YAML `|` block scalar for multi-line data\n\n**Example — line chart:**\n```mdma\ntype: chart\nid: revenue-chart\nvariant: line\nlabel: Revenue Trend\ndata: |\n  month, revenue, costs\n  Jan, 45000, 32000\n  Feb, 52000, 35000\n  Mar, 48000, 31000\n  Apr, 61000, 38000\nxAxis: month\n```\n\n**Example — pie chart:**\n```mdma\ntype: chart\nid: market-share\nvariant: pie\nlabel: Market Share\ndata: |\n  company, share\n  Ours, 35\n  Competitor A, 25\n  Competitor B, 20\n  Others, 20\nxAxis: company\n```\n\n### 9. thinking\n\nDisplays a collapsible block that shows AI reasoning or thinking process. Useful for transparency about how the AI arrived at conclusions or recommendations.\n\n```mdma\ntype: thinking\nid: <unique-id>\nlabel: <header-text>              # optional — default: \"Thinking\"\ncontent: |                        # required — free-form reasoning text\n  <reasoning text>\nstatus: thinking | done           # default: done — \"thinking\" shows pulsing animation\ncollapsed: true | false           # default: true — starts collapsed",
              "tool": "get-prompt"
            }
          ],
          "task": "List the available MDMA author prompt variants, then retrieve the author prompt for one of the listed variants."
        },
        "type": "noul"
      },
      "w08": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "## Available author prompt variants\n\nThe variants list returned these complete IDs:\n\n- **Default:** `default`\n- **Anthropic:** `anthropic/haiku`, `anthropic/sonnet`, `anthropic/opus-4.8`, `anthropic/fable-5`, `anthropic/opus-4.7`, `anthropic/opus-4.6`, `anthropic/sonnet-5.5`, `anthropic/sonnet-5`\n- **Google:** `google/gemini-3.5-flash`, `google/gemini-2.5-pro`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `google/gemini-3.1-pro-preview`, `google/gemma`, `google/gemini-3.1-pro-preview-customtools`, `google/gemini-3-flash-preview`, `google/gemini-3.1-flash-lite-preview`\n- **Mobile Reality:** `mobile-reality/mdma-il`\n- **OpenAI:** `openai/gpt-5`, `openai/gpt-5.6-sol`, `openai/gpt-5.6-terra`, `openai/gpt-5.6-luna`, `openai/gpt-5.5`, `openai/gpt-5.4`, `openai/gpt-5.2`, `openai/gpt-5.1`, `openai/gpt-5-mini`, `openai/gpt-5-nano`, `openai/gpt-5.4-mini`, `openai/gpt-5.4-nano`, `openai/gpt-4.1`, `openai/gpt-4.1-mini`, `openai/gpt-4.1-nano`\n- **xAI:** `x-ai/grok-4.3`, `x-ai/grok-4.20`, `x-ai/grok-4.5`\n\nThe tool output was truncated after the ID `anthropic/opus-5.5`, so the list may contain further entries.\n\n## Retrieved prompt: `default`\n\nI retrieved the `mdma-author` prompt for the `default` variant. It instructs the author to produce a Markdown document directly, with interactive components expressed as YAML in fenced `mdma` blocks. The visible portion describes shared component fields and schemas for forms, buttons, tasklists, tables, callouts, approval gates, webhooks, charts, and the beginning of the thinking component.\n\nThe prompt response was also truncated by the tool, so I can’t reproduce its complete contents reliably.",
          "done_when": "The transcript shows the variant list and a get-prompt reply for mdma-author using an ID from that list.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "[\n  {\n    \"id\": \"default\",\n    \"label\": \"Default\",\n    \"description\": \"Canonical prompt without any model-specific tuning. A strong generalist, but newer models may benefit from the tuned variants below.\"\n  },\n  {\n    \"id\": \"anthropic/haiku\",\n    \"label\": \"Anthropic — Claude Haiku\",\n    \"description\": \"XML-tagged framing (<output_format>, <self_check>) tuned for Claude Haiku.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet\",\n    \"label\": \"Anthropic — Claude Sonnet\",\n    \"description\": \"Same Anthropic-styled framing as Haiku — placeholder for Sonnet-specific tuning.\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.8\",\n    \"label\": \"Anthropic — Claude Opus 4.8\",\n    \"description\": \"Flagship Opus — same Anthropic-styled framing as opus-4.7 (<scope_discipline>).\"\n  },\n  {\n    \"id\": \"anthropic/fable-5\",\n    \"label\": \"Anthropic — Fable 5\",\n    \"description\": \"Fable 5 — Anthropic flagship composition (<output_format> + <scope_discipline>).\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.7\",\n    \"label\": \"Anthropic — Claude Opus 4.7\",\n    \"description\": \"Flagship Opus — Anthropic-styled framing + <scope_discipline>.\"\n  },\n  {\n    \"id\": \"anthropic/opus-4.6\",\n    \"label\": \"Anthropic — Claude Opus 4.6\",\n    \"description\": \"Older Opus tier — same framing as opus-4.7.ts (<scope_discipline> + Anthropic wrapping).\"\n  },\n  {\n    \"id\": \"google/gemini-3.5-flash\",\n    \"label\": \"Google — Gemini 3.5 Flash\",\n    \"description\": \"Flash tier — Gemini-native framing with all negative-constraint blocks plus <emit_component> (forces the ```mdma block instead of describing it in prose during multi-turn flows).\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-pro\",\n    \"label\": \"Google — Gemini 2.5 Pro\",\n    \"description\": \"Previous-generation Pro — same Gemini-native composition as Gemini 3.1 Pro (Markdown framing, end-placed constraints).\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-flash\",\n    \"label\": \"Google — Gemini 2.5 Flash\",\n    \"description\": \"Previous-generation mid-tier Flash — all three negative-constraint blocks (fence closing + scope + select options) as defensive default.\"\n  },\n  {\n    \"id\": \"google/gemini-2.5-flash-lite\",\n    \"label\": \"Google — Gemini 2.5 Flash-Lite\",\n    \"description\": \"Previous-generation smallest-tier Flash-Lite — same defensive composition as 2.5 Flash; reserved its own file in case eval data later requires a divergent tuning.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-pro-preview\",\n    \"label\": \"Google — Gemini 3.1 Pro (Preview)\",\n    \"description\": \"Gemini-native framing — Markdown headers (no XML), constraints placed at the END per Google's Gemini 3 prompting guide.\"\n  },\n  {\n    \"id\": \"google/gemma\",\n    \"label\": \"Google — Gemma\",\n    \"description\": \"Open-weights Gemma family (Gemma 4 26B-a4b / 31B, Gemma 3n 4B). Gemini-native Markdown framing with all defensive blocks bundled (fence closing, scope discipline, string select values) for the open-model tier.\"\n  },\n  {\n    \"id\": \"mobile-reality/mdma-il\",\n    \"label\": \"Mobile Reality — MDMA-IL model\",\n    \"description\": \"Our self-hosted MDMA-IL DSL models (E4B mdma-v3 / 31B mdma-31b). Reads an MDMA-IL DSL intent (grammar + worked examples are in the prompt) and returns MDMA. The DSL grammar section is required — a prompt without it is out-of-distribution. Endpoint also requires temperature 0 + chat_template_kwargs.enable_thinking=false.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-pro-preview-customtools\",\n    \"label\": \"Google — Gemini 3.1 Pro Custom Tools (Preview)\",\n    \"description\": \"Pro tuning that prefers user-defined tools — re-exports the Pro variant since MDMA authoring does not use tool calling.\"\n  },\n  {\n    \"id\": \"google/gemini-3-flash-preview\",\n    \"label\": \"Google — Gemini 3 Flash (Preview)\",\n    \"description\": \"Mid-tier Gemini — all three negative-constraint blocks (fence closing + scope + select options) as defensive default.\"\n  },\n  {\n    \"id\": \"google/gemini-3.1-flash-lite-preview\",\n    \"label\": \"Google — Gemini 3.1 Flash-Lite (Preview)\",\n    \"description\": \"Smaller-tier Gemini — same Markdown framing as Pro plus all three negative-constraint blocks (fence closing + scope + select options).\"\n  },\n  {\n    \"id\": \"openai/gpt-5\",\n    \"label\": \"OpenAI — GPT-5\",\n    \"description\": \"Flagship-tier framing: <scope_discipline> + <select_options>. No <fence_closing>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-sol\",\n    \"label\": \"OpenAI — GPT-5.6 Sol\",\n    \"description\": \"GPT-5.6 sibling — proven gpt-5.5 flagship framing (<scope_discipline> + <component_types> + <single_interactive> + <select_options>) plus <custom_usage>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-terra\",\n    \"label\": \"OpenAI — GPT-5.6 Terra\",\n    \"description\": \"GPT-5.6 sibling — same flagship baseline as gpt-5.6-sol.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.6-luna\",\n    \"label\": \"OpenAI — GPT-5.6 Luna\",\n    \"description\": \"GPT-5.6 sibling — same flagship baseline as gpt-5.6-sol.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.5\",\n    \"label\": \"OpenAI — GPT-5.5\",\n    \"description\": \"Same flagship-tier framing as GPT-5: <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4\",\n    \"label\": \"OpenAI — GPT-5.4\",\n    \"description\": \"Adds <scope_discipline> to push back on adding components beyond what the user listed.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.2\",\n    \"label\": \"OpenAI — GPT-5.2\",\n    \"description\": \"Older base-tier — <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.1\",\n    \"label\": \"OpenAI — GPT-5.1\",\n    \"description\": \"Older base-tier — same framing as GPT-5.2: <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5-mini\",\n    \"label\": \"OpenAI — GPT-5-mini\",\n    \"description\": \"Mini tier of GPT-5 — needs all three: <fence_closing> + <scope_discipline> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-5-nano\",\n    \"label\": \"OpenAI — GPT-5-nano\",\n    \"description\": \"Smallest tier of GPT-5 — same all-three framing as GPT-5.4-nano and GPT-5-mini.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4-mini\",\n    \"label\": \"OpenAI — GPT-5.4-mini\",\n    \"description\": \"Adds <fence_closing> reminding the model to close ```mdma blocks before the next component.\"\n  },\n  {\n    \"id\": \"openai/gpt-5.4-nano\",\n    \"label\": \"OpenAI — GPT-5.4-nano\",\n    \"description\": \"Smallest tier — combines <fence_closing> + <scope_discipline> for maximum guidance.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1\",\n    \"label\": \"OpenAI — GPT-4.1\",\n    \"description\": \"Non-reasoning flagship from the gpt-4.x family — adds <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1-mini\",\n    \"label\": \"OpenAI — GPT-4.1-mini\",\n    \"description\": \"Mini tier of GPT-4.1 — same framing as GPT-5.4-mini: <fence_closing> + <select_options>.\"\n  },\n  {\n    \"id\": \"openai/gpt-4.1-nano\",\n    \"label\": \"OpenAI — GPT-4.1-nano\",\n    \"description\": \"Smallest tier of GPT-4.1 — all three framing blocks for maximum guidance.\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.3\",\n    \"label\": \"xAI — Grok 4.3\",\n    \"description\": \"Minimal composition — scope_discipline + select_options only. Empirically, every additional framing block regresses Grok (see grok-4.3.ts docblock).\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.20\",\n    \"label\": \"xAI — Grok 4.20\",\n    \"description\": \"Same minimal composition as Grok 4.3 — same family, no eval-driven reason to diverge yet.\"\n  },\n  {\n    \"id\": \"x-ai/grok-4.5\",\n    \"label\": \"xAI — Grok 4.5\",\n    \"description\": \"Minimal composition (scope_discipline + select_options). A hidden-reasoning model; its residual reasoning-token leak is handled at the API layer (reasoning.exclude), not the prompt.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet-5.5\",\n    \"label\": \"Anthropic — Claude Sonnet 5.5\",\n    \"description\": \"Sonnet composition with the `thinking` component described as a plan summary — the shared wording (\\\"AI reasoning\\\") draws `reasoning_extraction` refusals from this model.\"\n  },\n  {\n    \"id\": \"anthropic/sonnet-5\",\n    \"label\": \"Anthropic — Claude Sonnet 5\",\n    \"description\": \"Same Anthropic-styled framing as Sonnet (<scope_discipline> + <fence_closing>).\"\n  },\n  {\n    \"id\": \"anthropic/opus-5.5\",\n    \"label\": \"Anthropic — Claude Opu",
              "tool": "list-prompt-variants"
            },
            {
              "arguments": {
                "name": "mdma-author",
                "variantId": "default"
              },
              "reply": "You are an expert MDMA document author. MDMA (Markdown Document with Mounted Applications) extends standard Markdown with interactive components defined in fenced code blocks using the `mdma` language tag. Think before you generate content, and ensure it adheres to the MDMA format and authoring rules.\n\nCRITICAL: Your output IS the Markdown document — write headings, paragraphs, and ```mdma blocks directly. NEVER wrap your response in ```markdown code fences. Your response is already rendered as Markdown.\n\n## Document Format\n\nAn MDMA document is a standard Markdown file that contains one or more interactive component blocks. Each component block is a YAML snippet inside a fenced code block tagged with `mdma`. Here is an example of what your output should look like — note there are NO outer ```markdown fences:\n\n# My Document Title\n\nSome regular Markdown content here.\n\n```mdma\ntype: form\nid: contact-form\nfields:\n  - name: email\n    type: email\n    label: Email Address\n    required: true\n```\n\nMore Markdown content can follow.\n\n## Component Types\n\nMDMA supports 10 component types. Every component shares these base fields:\n\n- **id** (string, required) — Unique identifier within the document\n- **type** (string, required) — Component type name\n- **label** (string, optional) — Display label\n- **sensitive** (boolean, default: false) — If true, values are redacted in logs\n- **disabled** (boolean | binding, default: false) — accepts `true`, `false`, or a quoted binding like `\"{{checklist.completed}}\"`\n- **visible** (boolean | binding, default: true) — accepts `true`, `false`, or a quoted binding like `\"{{form.field}}\"`\n- **meta** (object, optional) — Arbitrary metadata\n\n### 1. form\n\nCollects user input via structured fields.\n\n```mdma\ntype: form\nid: <unique-id>\nfields:\n  - name: <field-name>           # required, string\n    type: text | number | email | date | select | checkbox | textarea | file\n    label: <display-label>       # required, string\n    required: true | false       # default: false\n    sensitive: true | false      # default: false — set true for PII\n    defaultValue: <any>          # optional\n    options:                     # required when type is \"select\" — a list, OR { source, params } from a data-source catalog\n      - label: <label>\n        value: <value>           # string — quote numeric-looking values, e.g. \"1\" not 1\n    validation:                  # optional\n      pattern: <regex>\n      min: <number>\n      max: <number>\n      message: <error-message>\n    bind: \"{{variable.path}}\"    # optional binding\nonSubmit: <action-id>            # required — action triggered on submit\n```\n\n### 2. button\n\nTriggers an action when clicked.\n\n```mdma\ntype: button\nid: <unique-id>\ntext: <button-label>             # required, string\nvariant: primary | secondary | danger | ghost   # default: primary\nonAction: <action-id>           # required — action triggered on click\nconfirm:                         # optional confirmation dialog\n  title: <dialog-title>\n  message: <dialog-message>\n  confirmText: <confirm-label>   # default: \"Confirm\"\n  cancelText: <cancel-label>     # default: \"Cancel\"\n```\n\n### 3. tasklist\n\nA checklist of items that can be individually checked off.\n\n```mdma\ntype: tasklist\nid: <unique-id>\nitems:\n  - id: <item-id>               # required, unique within tasklist\n    text: <item-description>    # required, string\n    checked: true | false       # default: false\n    required: true | false      # default: false\n    bind: \"{{variable.path}}\"   # optional binding\nonComplete: <action-id>         # optional — triggered when all items checked\n```\n\n### 4. table\n\nDisplays tabular data with optional sorting, filtering, and pagination.\n\n```mdma\ntype: table\nid: <unique-id>\ncolumns:\n  - key: <field-key>            # required, string\n    header: <column-header>     # required, string\n    sortable: true | false      # default: false\n    sensitive: true | false     # default: false\n    width: <css-width>          # optional, e.g. \"200px\"\ndata:                           # array of row objects OR a binding OR a data-source ref\n  - { key1: value1, key2: value2 }\n# OR: data: \"{{variable.path}}\"\n# OR: data: { source: <source-name>, params: { <param>: <value> } }   # source from the data-source catalog\nsortable: true | false          # default: false (table-level)\nfilterable: true | false        # default: false\npageSize: <number>              # optional, positive integer\n```\n\n### 5. callout\n\nDisplays a highlighted message block.\n\n```mdma\ntype: callout\nid: <unique-id>\nvariant: info | warning | error | success   # default: info\ntitle: <optional-title>\ncontent: <message-text>          # required, string\ndismissible: true | false        # default: false\n```\n\n### 6. approval-gate\n\nBlocks workflow progression until required approvals are received.\n\n```mdma\ntype: approval-gate\nid: <unique-id>\ntitle: <gate-title>              # required, string\ndescription: <details>           # optional\nrequiredApprovers: <number>      # default: 1, positive integer\nallowedRoles:                    # optional — restrict who can approve\n  - <role-name>\nonApprove: <action-id>          # optional\nonDeny: <action-id>             # optional\nrequireReason: true | false      # default: false — require reason on denial\n```\n\n### 7. webhook\n\nMakes an HTTP request when triggered by an action.\n\n```mdma\ntype: webhook\nid: <unique-id>\nurl: <endpoint-url>              # required, valid URL or binding\nmethod: GET | POST | PUT | PATCH | DELETE   # default: POST\nheaders:                         # optional, key-value pairs\n  Content-Type: application/json\nbody:                            # optional, object or binding\n  key: value\ntrigger: <action-id>            # required — action ID that triggers this webhook\nretries: <0-5>                  # default: 0\ntimeout: <milliseconds>         # default: 30000\n```\n\n### 8. chart\n\nDisplays data as a visual chart. Data is provided as a compact CSV-like multiline string where the first row contains column headers and subsequent rows contain comma-separated values.\n\n```mdma\ntype: chart\nid: <unique-id>\nvariant: line | bar | area | pie            # default: line\nlabel: <chart-title>                         # optional\ndata: |                                      # required — CSV multiline string, binding, or { source, params } data-source ref\n  <col1>, <col2>, <col3>\n  <val1>, <val2>, <val3>\n  <val1>, <val2>, <val3>\nxAxis: <column-name>                         # optional — column for x-axis (default: first column)\nyAxis: <column-name> | [<col1>, <col2>]      # optional — column(s) for y-axis (default: all numeric non-xAxis columns)\ncolors:                                      # optional — custom color palette\n  - \"<hex-color>\"\nshowLegend: true | false                     # default: true\nshowGrid: true | false                       # default: true\nheight: <number>                             # default: 300 (pixels)\nstacked: true | false                        # default: false (for bar/area)\n```\n\n**Data format rules:**\n- First line of `data` = column headers (comma-separated, trimmed)\n- Subsequent lines = data rows (comma-separated, trimmed)\n- Numeric values are auto-detected and coerced\n- Use YAML `|` block scalar for multi-line data\n\n**Example — line chart:**\n```mdma\ntype: chart\nid: revenue-chart\nvariant: line\nlabel: Revenue Trend\ndata: |\n  month, revenue, costs\n  Jan, 45000, 32000\n  Feb, 52000, 35000\n  Mar, 48000, 31000\n  Apr, 61000, 38000\nxAxis: month\n```\n\n**Example — pie chart:**\n```mdma\ntype: chart\nid: market-share\nvariant: pie\nlabel: Market Share\ndata: |\n  company, share\n  Ours, 35\n  Competitor A, 25\n  Competitor B, 20\n  Others, 20\nxAxis: company\n```\n\n### 9. thinking\n\nDisplays a collapsible block that shows AI reasoning or thinking process. Useful for transparency about how the AI arrived at conclusions or recommendations.\n\n```mdma\ntype: thinking\nid: <unique-id>\nlabel: <header-text>              # optional — default: \"Thinking\"\ncontent: |                        # req",
              "tool": "get-prompt"
            }
          ],
          "task": "List the available MDMA author prompt variants, then retrieve the author prompt for one of the listed variants."
        },
        "type": "noul"
      }
    },
    "state": {
      "about": "Replies of an MCP server to tool calls that were sent with bad input on purpose, to see whether its error messages help a caller fix the call."
    }
  },
  "run_id": "01M838ZMRJE5VZEW6QNHRGBDZ1",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.31,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.31,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.08,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.07,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.1,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.09,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.95,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.91,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.97,
      "question": "w08"
    }
  ]
}
