{
  "answers": {
    "c00": {
      "noul": 0.06,
      "type": "noul"
    },
    "c01": {
      "noul": 0.96,
      "type": "noul"
    },
    "c02": {
      "noul": 0.94,
      "type": "noul"
    },
    "w00": {
      "noul": 0.98,
      "type": "noul"
    },
    "w01": {
      "noul": 0.98,
      "type": "noul"
    },
    "w02": {
      "noul": 0.98,
      "type": "noul"
    },
    "w03": {
      "noul": 0.64,
      "type": "noul"
    },
    "w04": {
      "noul": 0.54,
      "type": "noul"
    },
    "w05": {
      "noul": 0.86,
      "type": "noul"
    },
    "w06": {
      "noul": 0.99,
      "type": "noul"
    },
    "w07": {
      "noul": 0.99,
      "type": "noul"
    },
    "w08": {
      "noul": 0.99,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T04:48:49Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.06,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.96,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.94,
      "question": "c02"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 7858,
  "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 scan: Required at path",
          "tool": "scan"
        },
        "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": {
            "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 scan: Expected string, received object at path",
          "tool": "scan"
        },
        "type": "noul"
      },
      "c02": {
        "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 scan found **2 API endpoints** in `/home/lab/work/nextapp`:\n\n| Endpoint | Methods | Findings |\n|---|---|---|\n| `/api/users` | GET, POST | Uses Zod validation; no authentication or rate limiting detected |\n| `/api/health` | GET | Public exception; no rate limiting detected |\n\nThe scanner reported one unprotected endpoint, excluding the public health-check exception.",
          "done_when": "The reply lists the API endpoints /api/health and /api/users.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "api",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🔌 API Endpoints\n   Total: 2  Unprotected: 1\n   Public exceptions: /api/health\n   ├─ GET,POST /api/users [val:zod | ⚠ no-auth,no-rate-limit]\n   └─ GET /api/health [⚠ no-rate-limit]\n",
              "tool": "scan"
            }
          ],
          "task": "Scan the Next.js project at /home/lab/work/nextapp and report its API endpoints."
        },
        "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": "Scanned `/home/lab/work/nextapp` and found **2 API endpoints**:\n\n| Endpoint | Methods | Scan findings |\n|---|---|---|\n| `/api/users` | GET, POST | Uses Zod validation; no authentication or rate limiting detected |\n| `/api/health` | GET | Listed as a public exception; no rate limiting detected |",
          "done_when": "The reply lists the API endpoints /api/health and /api/users.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "api",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🔌 API Endpoints\n   Total: 2  Unprotected: 1\n   Public exceptions: /api/health\n   ├─ GET,POST /api/users [val:zod | ⚠ no-auth,no-rate-limit]\n   └─ GET /api/health [⚠ no-rate-limit]\n",
              "tool": "scan"
            }
          ],
          "task": "Scan the Next.js project at /home/lab/work/nextapp and report its API endpoints."
        },
        "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": "Scanned `/home/lab/work/nextapp`. The project has **2 API endpoints**:\n\n| Endpoint | Methods | Scanner findings |\n|---|---|---|\n| `/api/users` | GET, POST | Uses Zod validation; no authentication or rate limiting detected |\n| `/api/health` | GET | Listed as a public exception; no rate limiting detected |",
          "done_when": "The reply lists the API endpoints /api/health and /api/users.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "api",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🔌 API Endpoints\n   Total: 2  Unprotected: 1\n   Public exceptions: /api/health\n   ├─ GET,POST /api/users [val:zod | ⚠ no-auth,no-rate-limit]\n   └─ GET /api/health [⚠ no-rate-limit]\n",
              "tool": "scan"
            }
          ],
          "task": "Scan the Next.js project at /home/lab/work/nextapp and report its API endpoints."
        },
        "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 schema scan found three Prisma models: **User**, **Post**, and **Tag**.",
          "done_when": "The reply names the models User, Post and Tag.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "schema",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🗄️  Schema\n   Models: 3  Relations: 2\n   ⚠ Missing indexes: Post.authorId\n   User ─< Post (1:N)\n   Post >─< Tag (N:N)\n",
              "tool": "scan"
            }
          ],
          "task": "Run scan with focus 'schema' on /home/lab/work/nextapp and name the models."
        },
        "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 schema scan found three Prisma models: **User**, **Post**, and **Tag**.\n\nIt also flagged a missing index on `Post.authorId`.",
          "done_when": "The reply names the models User, Post and Tag.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "schema",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🗄️  Schema\n   Models: 3  Relations: 2\n   ⚠ Missing indexes: Post.authorId\n   User ─< Post (1:N)\n   Post >─< Tag (N:N)\n",
              "tool": "scan"
            }
          ],
          "task": "Run scan with focus 'schema' on /home/lab/work/nextapp and name the models."
        },
        "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 schema scan found **3 Prisma models**: `User`, `Post`, and `Tag`.\n\nIt also reported a missing index on `Post.authorId`.",
          "done_when": "The reply names the models User, Post and Tag.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "schema",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🗄️  Schema\n   Models: 3  Relations: 2\n   ⚠ Missing indexes: Post.authorId\n   User ─< Post (1:N)\n   Post >─< Tag (N:N)\n",
              "tool": "scan"
            }
          ],
          "task": "Run scan with focus 'schema' on /home/lab/work/nextapp and name the models."
        },
        "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": "The security scan of `/home/lab/work/nextapp` returned a **score of 35/100** and reported these findings:\n\n- 🔴 **Stripe test secret key in source code:** `src/lib/config.ts:1`\n- 🟠 **Unauthenticated API route:** `GET` and `POST` on `/api/users` (`app/api/users/route.ts`)\n- 🟡 **No `.gitignore` file found**\n- 🟡 **No security headers configured** in the Next.js configuration\n- 🔵 **No `middleware.ts` found:** route protection may be missing",
          "done_when": "The reply contains a security section with at least one finding (for example the hardcoded secret in src/lib/config.ts or no auth on an API route).",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "security",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🔒 Security\n   Score: 35/100  Headers: ✗  Middleware: ✗\n   🔴 Stripe test secret key found in source code (src/lib/config.ts:1)\n   🟠 API route /api/users has no auth: [GET, POST] (app/api/users/route.ts)\n   🟡 No .gitignore file found\n   🟡 No security headers configured in next.config\n   🔵 No middleware.ts found (route protection may be missing)\n",
              "tool": "scan"
            }
          ],
          "task": "Run scan with focus 'security' on /home/lab/work/nextapp and report any security finding."
        },
        "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": "The security scan of `/home/lab/work/nextapp` returned a **score of 35/100** and reported these findings:\n\n- 🔴 A Stripe **test secret key** was found in source code at `src/lib/config.ts:1`.\n- 🟠 The `/api/users` API route has no authentication for `GET` or `POST` (`app/api/users/route.ts`).\n- 🟡 No `.gitignore` file was found.\n- 🟡 No security headers were configured in `next.config`.\n- 🔵 No `middleware.ts` was found; route protection may be missing.",
          "done_when": "The reply contains a security section with at least one finding (for example the hardcoded secret in src/lib/config.ts or no auth on an API route).",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "security",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🔒 Security\n   Score: 35/100  Headers: ✗  Middleware: ✗\n   🔴 Stripe test secret key found in source code (src/lib/config.ts:1)\n   🟠 API route /api/users has no auth: [GET, POST] (app/api/users/route.ts)\n   🟡 No .gitignore file found\n   🟡 No security headers configured in next.config\n   🔵 No middleware.ts found (route protection may be missing)\n",
              "tool": "scan"
            }
          ],
          "task": "Run scan with focus 'security' on /home/lab/work/nextapp and report any security finding."
        },
        "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": "The security scan of `/home/lab/work/nextapp` reported a score of **35/100** and these findings:\n\n- 🔴 **Stripe test secret key in source code:** `src/lib/config.ts:1`\n- 🟠 **Unauthenticated API route:** `GET` and `POST` on `/api/users` (`app/api/users/route.ts`)\n- 🟡 **No `.gitignore` file found**\n- 🟡 **No security headers configured** in `next.config`\n- 🔵 **No `middleware.ts` found:** route protection may be missing",
          "done_when": "The reply contains a security section with at least one finding (for example the hardcoded secret in src/lib/config.ts or no auth on an API route).",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "focus": "security",
                "path": "/home/lab/work/nextapp"
              },
              "reply": "📦 nextscan — demo-app\n────────────────────────────────────────\n📁 Root: /home/lab/work/nextapp\n   src/ : ✓  app/ : ✓  middleware: ✗\n   ORM  : prisma\n\n🔒 Security\n   Score: 35/100  Headers: ✗  Middleware: ✗\n   🔴 Stripe test secret key found in source code (src/lib/config.ts:1)\n   🟠 API route /api/users has no auth: [GET, POST] (app/api/users/route.ts)\n   🟡 No .gitignore file found\n   🟡 No security headers configured in next.config\n   🔵 No middleware.ts found (route protection may be missing)\n",
              "tool": "scan"
            }
          ],
          "task": "Run scan with focus 'security' on /home/lab/work/nextapp and report any security finding."
        },
        "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": "01M838ZMPN0D0QKP5A7NTCVWNH",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.98,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.98,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.98,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.64,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.54,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.86,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.99,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.99,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.99,
      "question": "w08"
    }
  ]
}
