{
  "answers": {
    "c00": {
      "noul": 0.99,
      "type": "noul"
    },
    "c01": {
      "noul": 0.95,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 0.98,
      "type": "noul"
    },
    "c04": {
      "noul": 0.99,
      "type": "noul"
    },
    "c05": {
      "noul": 0.97,
      "type": "noul"
    },
    "c06": {
      "noul": 0.99,
      "type": "noul"
    },
    "c07": {
      "noul": 0.97,
      "type": "noul"
    },
    "c08": {
      "noul": 0.99,
      "type": "noul"
    },
    "c09": {
      "noul": 0.97,
      "type": "noul"
    },
    "c10": {
      "noul": 0.99,
      "type": "noul"
    },
    "c11": {
      "noul": 0.94,
      "type": "noul"
    },
    "c12": {
      "noul": 0.83,
      "type": "noul"
    },
    "w00": {
      "noul": 0.6,
      "type": "noul"
    },
    "w01": {
      "noul": 0.62,
      "type": "noul"
    },
    "w02": {
      "noul": 0.51,
      "type": "noul"
    },
    "w03": {
      "noul": 0.99,
      "type": "noul"
    },
    "w04": {
      "noul": 0.98,
      "type": "noul"
    },
    "w05": {
      "noul": 0.99,
      "type": "noul"
    },
    "w06": {
      "noul": 0.93,
      "type": "noul"
    },
    "w07": {
      "noul": 0.93,
      "type": "noul"
    },
    "w08": {
      "noul": 0.91,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T01:26:21Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.99,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.95,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 0.98,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.99,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 0.97,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 0.99,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 0.97,
      "question": "c07"
    },
    {
      "call": 8,
      "noul": 0.99,
      "question": "c08"
    },
    {
      "call": 9,
      "noul": 0.97,
      "question": "c09"
    },
    {
      "call": 10,
      "noul": 0.99,
      "question": "c10"
    },
    {
      "call": 11,
      "noul": 0.94,
      "question": "c11"
    },
    {
      "call": 12,
      "noul": 0.83,
      "question": "c12"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 48905,
  "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": "blind_spots requires a non-empty 'instrument' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
          "tool": "blind_spots"
        },
        "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": {
            "instrument": {}
          },
          "parameter": "instrument",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "blind_spots requires a non-empty 'instrument' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
          "tool": "blind_spots"
        },
        "type": "noul"
      },
      "c02": {
        "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": "get_instrument requires a non-empty 'id' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
          "tool": "get_instrument"
        },
        "type": "noul"
      },
      "c03": {
        "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": {
            "id": {}
          },
          "parameter": "id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "get_instrument requires a non-empty 'id' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
          "tool": "get_instrument"
        },
        "type": "noul"
      },
      "c04": {
        "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": "search requires a non-empty 'query' string.",
          "tool": "search"
        },
        "type": "noul"
      },
      "c05": {
        "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": {
            "query": {}
          },
          "parameter": "query",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "search requires a non-empty 'query' string.",
          "tool": "search"
        },
        "type": "noul"
      },
      "c06": {
        "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": "get_entry requires a non-empty 'id' string, e.g. 'NS-001'.",
          "tool": "get_entry"
        },
        "type": "noul"
      },
      "c07": {
        "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": {
            "id": {}
          },
          "parameter": "id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "get_entry requires a non-empty 'id' string, e.g. 'NS-001'.",
          "tool": "get_entry"
        },
        "type": "noul"
      },
      "c08": {
        "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": "from_symptom requires a non-empty 'description' string — what you are observing, e.g. 'the deploy ran but the site is unchanged'.",
          "tool": "from_symptom"
        },
        "type": "noul"
      },
      "c09": {
        "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": {
            "description": {}
          },
          "parameter": "description",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "from_symptom requires a non-empty 'description' string — what you are observing, e.g. 'the deploy ran but the site is unchanged'.",
          "tool": "from_symptom"
        },
        "type": "noul"
      },
      "c10": {
        "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": "before_claiming requires a non-empty 'task' string — what you just did, e.g. 'restarted the service' or 'deployed the site'.",
          "tool": "before_claiming"
        },
        "type": "noul"
      },
      "c11": {
        "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": {
            "task": {}
          },
          "parameter": "task",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "before_claiming requires a non-empty 'task' string — what you just did, e.g. 'restarted the service' or 'deployed the site'.",
          "tool": "before_claiming"
        },
        "type": "noul"
      },
      "c12": {
        "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": "Unknown tool: didrun_unknown_tool {\"available_tools\":[\"before_claiming\",\"blind_spots\",\"from_symptom\",\"get_entry\",\"get_instrument\",\"get_protocol\",\"list_instruments\",\"search\"]}",
          "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": "## Available verification instruments\n\n| Instrument | What it observes | Used when |\n|---|---|---|\n| **screenshot** | A rendered image | You capture a page and look at it. |\n| **exit-code** | A command’s return status | A command exits zero and you move on. |\n| **http-response** | An HTTP status code | You request a URL and receive 200. |\n| **file-on-disk** | A file’s contents | You read a config, stylesheet, or source file. |\n| **process-list** | What is running | You check `ps`, `pgrep`, or `systemctl status`. |\n| **log-output** | Logs and stdout | You read output that appears normal. |\n\n## Exit-code: blind spots\n\nThe instrument captures **whether the process believed it completed the operation it chose to attempt**. It cannot establish:\n\n- **Semantics:** zero means no reported error, not that the desired result is true.\n- **No-ops:** a command can succeed while doing nothing because of the current state.\n- **Partial completion:** early steps can leave convincing artifacts before a later step aborts.\n- **Target identity:** an argument may resolve to a different target than intended.\n- **Non-returning commands:** a hung command produces no exit code to inspect.\n\n## Exit-code dossier\n\nThe registry reports **16 recorded failures**, but the `get_instrument` tool’s returned dossier was truncated partway through the seventh entry. I retrieved the rest of that entry and two subsequent exit-code entries individually. The nine available entries are summarized below; the remaining seven were not identifiable from the returned output, so I cannot show the full dossier.\n\n| ID | Failure and misleading result | Discriminating check |\n|---|---|---|\n| **NS-005** | `systemctl enable --now` exits zero but does not restart an already-running unit; the old process can remain live. | Compare `systemctl show -p ExecStart NAME` with `ps -p $MAINPID -o args=`. |\n| **NS-008** | A script under `set -e` writes a config but aborts at an unrelated validation failure before reloading it. | Ins",
          "done_when": "The transcript shows the instrument list, exit-code blind spots, and its full dossier with recorded failures.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "6 verification instruments (registry v7.2.0, updated 2026-08-24)\n\nscreenshot  —  A rendered image\n  used when: You captured the page and looked at it.\n  recorded failures: 15\n\nexit-code  —  A command's return status\n  used when: The command exited zero, so you moved on.\n  recorded failures: 16\n\nhttp-response  —  A status code\n  used when: You requested the URL and got 200.\n  recorded failures: 16\n\nfile-on-disk  —  The file's contents\n  used when: You read the config, the stylesheet, or the source and confirmed it says the right thing.\n  recorded failures: 14\n\nprocess-list  —  What is running\n  used when: You checked ps, pgrep, or systemctl status.\n  recorded failures: 14\n\nlog-output  —  Logs and stdout\n  used when: You read the output and it looked normal.\n  recorded failures: 15\n\nNext: blind_spots(instrument=<id>) for what it cannot see.",
              "tool": "list_instruments"
            },
            {
              "arguments": {
                "instrument": "exit-code"
              },
              "reply": "exit-code (A command's return status) is blind to:\n  - Semantics. Zero means 'no error', never 'the thing you wanted is now true'.\n  - No-ops. A command whose behaviour depends on current state can succeed by doing nothing.\n  - Partial completion, where early steps left convincing artifacts before a later step aborted.\n  - Which target was acted on, when the argument resolved differently than intended.\n  - Commands that never return at all, which produce no exit code to inspect.\n\n16 recorded failure(s) this instrument missed. get_instrument(id='exit-code') for each one's discriminating check.",
              "tool": "blind_spots"
            },
            {
              "arguments": {
                "id": "exit-code"
              },
              "reply": "INSTRUMENT: exit-code — A command's return status\nUSED WHEN:  The command exited zero, so you moved on.\nCAPTURES:   Whether the process believed it completed the operation it chose to attempt.\n\nBLIND TO:\n  - Semantics. Zero means 'no error', never 'the thing you wanted is now true'.\n  - No-ops. A command whose behaviour depends on current state can succeed by doing nothing.\n  - Partial completion, where early steps left convincing artifacts before a later step aborted.\n  - Which target was acted on, when the argument resolved differently than intended.\n  - Commands that never return at all, which produce no exit code to inspect.\n\nRECORDED FAILURES (16):\n\nNS-005  [exit-code]  (no-op-reported-as-action)\n  enable --now does not restart an already-running unit\n  FALSE READING: The command exits zero and the service is active. Conclusion drawn: the new code is live.\n  TRUE STATE:    systemctl enable --now starts a stopped unit. On a running one it is a no-op. The old process, with the old ExecStart, survives.\n  WHY BLIND:     Exit code zero and `active (running)` are true statements about the wrong process.\n  CHECK:         Compare the unit's ExecStart on disk against the live process: systemctl show -p ExecStart NAME and ps -p $MAINPID -o args=\n  COST:          A deploy is reported as complete twice while the previous binary keeps serving.\n  GENERALISES:   Any idempotent-looking command whose semantics differ by current state.\n\nNS-008  [exit-code]  (unrelated-precondition)\n  set -e aborts a script at a validation step that concerns something else\n  FALSE READING: The install script ran and the config file is in place. Conclusion drawn: the change is active.\n  TRUE STATE:    A validation step covering the whole configuration failed on an unrelated block that needed an environment variable the script did not load. Under set -e the script exited before the reload.\n  WHY BLIND:     The steps before the failure completed and left visible artifacts. Partial success looks like success when only the artifacts are inspected.\n  CHECK:         Ask the running service what it loaded, not the filesystem what it holds. For Caddy: the admin API's live config.\n  COST:          The config is correct on disk and absent from the process, an inconsistency that survives inspection of either side alone.\n  GENERALISES:   Any pipeline where a global check gates a local change.\n\nNS-013  [exit-code]  (self-terminating-action)\n  A teardown script destroys the environment it is executing inside\n  FALSE READING: Several long-running sessions vanish at once with no error output. Conclusion drawn: the tool crashed, or the machine failed.\n  TRUE STATE:    A rebuild script ran `kill-session` against the multiplexer session it was itself running in. It killed its own parent, taking four unrelated sessions with it. There is no crash and no error because the script did exactly what it was told.\n  WHY BLIND:     A process that is killed cannot report that it was killed, and cannot report why. The absence of an error reads as an unexplained crash rather than a successful destructive command.\n  CHECK:         Before any teardown, compare the target against the environment you occupy: for tmux, test whether $TMUX is set and whether its session name equals the target. Refuse if they match.\n  COST:          Work in progress across every session in the environment, lost with no diagnostic trail.\n  GENERALISES:   Any tool that can destroy a container, session, service, or host that it might itself be running inside.\n\nNS-014  [exit-code]  (no-signal-at-all)\n  A privilege prompt with nowhere to appear hangs instead of failing\n  FALSE READING: A deploy step produces no output and does not return. Conclusion drawn: the operation is slow, or the network is stalling.\n  TRUE STATE:    The command needed a password. There is no terminal to prompt on, so it waits indefinitely. No error, no exit code, no timeout.\n  WHY BLIND:     Exit codes only exist for processes that exit. An instrument that reads return status has nothing at all to read, and silence resembles work in progress.\n  CHECK:         Ask whether credentials are needed before running the real command: sudo -n true returns non-zero immediately when a password would be required.\n  COST:          An agent waits on a command that will never return, and a task that needed a human is reported as in progress.\n  MITIGATION:    Wrap anything that might prompt in a timeout, so a hang converts into a failure you can observe.\n  GENERALISES:   Every interactive prompt reached from a non-interactive context: credentials, confirmations, pagers, editors.\n\nNS-015  [exit-code]  (status-from-the-wrong-process)\n  A pipeline returns the status of its last command, not its failing one\n  FALSE READING: `npm test | tee build.log` exits zero and the log file is written. Conclusion drawn: the tests passed.\n  TRUE STATE:    A shell reports the exit status of the last command in a pipeline. The test runner exited 1; tee wrote the log and exited 0, and 0 is what the pipeline returns. `set -e` does not intervene, because the pipeline as a whole succeeded.\n  WHY BLIND:     One number is produced for a chain of processes. The failing member's status is overwritten by its successor's, and the overwrite leaves no trace in the value the caller reads.\n  CHECK:         Read the whole vector rather than the summary: `false | true; echo \"${PIPESTATUS[@]}\"` prints `1 0` where `$?` prints `0`. Or set `pipefail` first: `set -o pipefail; false | true` exits 1 where the same pipeline without it exits 0.\n  COST:          Every failure inside a command piped into tee, grep, jq, head or a formatter is recorded as success. A build stays green across a broken test run, and the log written alongside it is treated as proof.\n  MITIGATION:    `set -euo pipefail` at the top of any script whose exit status will be believed by something else.\n  GENERALISES:   Any composition that collapses several results into one and keeps the last rather than the worst.\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  WHY BLIND:     The exit code describes the transfer, not the response. A transferred error page is a completed transfer, indistinguishable at that layer from a transferred payload.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n  COST:          A downstream step parses an HTML error page as the config, dataset or credential file it expected. The failure surfaces at the parser, far from the request that caused it.\n  GENERALISES:   Every client whose success criterion is that the protocol completed, rather than that the answer was the one asked for.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  WHY BLIND:     An uncollected test produces",
              "tool": "get_instrument"
            },
            {
              "arguments": {
                "id": "NS-017"
              },
              "reply": "NS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  WHY BLIND:     An uncollected test produces no pass line and no fail line. The summary counts what ran; it has no term for what was skipped by never being seen.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n  COST:          The behaviour the test was written to protect is unprotected, and the suite's green status is subsequently cited as evidence that it is protected.\n  GENERALISES:   Any convention-driven runner where registration is implicit and non-registration is silent: test discovery, plugin loaders, autoloaded fixtures, route decorators.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-018"
              },
              "reply": "NS-018  [exit-code]  (test-double-without-a-contract)\n  A bare mock answers to method names the real object no longer has\n  FALSE READING: The suite is green after a collaborator's method is renamed. Conclusion drawn: nothing depended on the old name.\n  TRUE STATE:    `Mock()` manufactures an attribute on first access and returns another Mock, which is callable and truthy. Code calling `client.charge_card(...)` against the double passes although the real class now exposes only `charge`. The test exercises an interface that no longer exists, and will keep passing however far the real object drifts.\n  WHY BLIND:     The assertion is satisfied by the double's auto-created child. Green is a true statement about the mock, and the exit code cannot say which object the statement was about.\n  CHECK:         Derive the double from the real class: `create_autospec(Client)` or `Mock(spec=Client)` raises AttributeError on exactly the call a bare `Mock()` accepted. Observed on 3.12: `Mock().exsits()` returns a truthy Mock; `create_autospec(Real).exsits()` raises AttributeError.\n  COST:          A rename is shipped with a fully green suite whose coverage of the renamed path is zero. The regression appears in production, in code the tests appeared to cover.\n  GENERALISES:   Every test double whose surface is invented rather than derived from the thing it replaces.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-019"
              },
              "reply": "NS-019  [exit-code]  (silent-coercion)\n  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n  FALSE READING: The INSERT returns `Query OK, 1 row affected` and the client exits 0. Conclusion drawn: the row was stored as supplied.\n  TRUE STATE:    With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n  WHY BLIND:     Warnings are a separate channel that must be asked for. Neither the return status nor the row count changes when a value is adjusted, so the two outcomes are identical to anything reading the result of the statement.\n  CHECK:         `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n  COST:          Truncated identifiers and coerced numbers are indistinguishable from real data once written, and the originals are gone. Corruption is discovered by a later join that finds nothing.\n  MITIGATION:    Assert the mode rather than assume it: `SELECT @@SESSION.sql_mode` should contain STRICT_TRANS_TABLES before any load is trusted.\n  GENERALISES:   Any writer that repairs input rather than rejecting it: lenient parsers, schema-on-read stores, spreadsheet imports.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-020"
              },
              "reply": "NS-020  [http-response]  (status-committed-before-outcome)\n  S3 sends 200 OK before it knows whether the upload completed\n  FALSE READING: CompleteMultipartUpload returns HTTP 200. Conclusion drawn: the object is assembled and present.\n  TRUE STATE:    S3 sends the 200 header first, then keeps the connection alive with whitespace while assembly runs, which can take minutes. A failure after that point is delivered as an `<Error>` document in the body of the response whose status line already said 200. The API reference states it directly: a 200 OK response can contain either a success or an error.\n  WHY BLIND:     The status line is written before the outcome is known, so it cannot encode the outcome. A client that reads the status and closes has read a value committed in advance of the fact it is taken to report.\n  CHECK:         Parse the body even on 200 and look for an `<Error>` root element; or confirm independently with HeadObject and compare ContentLength and ETag against what was uploaded. Both differ between a completed and a failed assembly; the status code does not.\n  COST:          An upload pipeline records success for an object that does not exist. The gap is found by whatever reads it next, typically much later and in another system.\n  GENERALISES:   Any protocol that must acknowledge before it can know: streamed responses, long-polling, 202-style accepted work, write-behind caches.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-021"
              },
              "reply": "NS-021  [http-response]  (partial-success-as-success)\n  A batch write returns 200 while handing back the items it did not write\n  FALSE READING: BatchWriteItem returns HTTP 200 and the SDK raises no exception. Conclusion drawn: all 25 items were written.\n  TRUE STATE:    The individual puts and deletes are atomic but the batch is not. Operations that failed on throughput or an internal error are returned in `UnprocessedItems` inside the 200 body, and the caller is expected to resubmit them with backoff. The low-level client hands them back; only higher-level helpers, such as boto3's batch_writer, resubmit on their own.\n  WHY BLIND:     Total success and partial success share a status code, an exception-free return and a well-formed body. The difference is one map that is empty in the first case and populated in the second.\n  CHECK:         Assert the map is empty rather than assuming it: `sum(len(v) for v in resp.get('UnprocessedItems', {}).values()) == 0`. It is 0 on a full write and non-zero whenever items were dropped.\n  COST:          Rows go missing from a bulk load in proportion to how throttled the table was, with no error recorded anywhere, and the load is reported complete.\n  GENERALISES:   Every bulk endpoint that reports transport success while carrying per-item failure in its payload.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-022"
              },
              "reply": "NS-022  [http-response]  (fallback-route-answers-for-everything)\n  A single-page app's catch-all rewrite answers 200 for URLs that do not exist\n  FALSE READING: `curl -o /dev/null -w '%{http_code}' https://site/docs/pricing` returns 200. Conclusion drawn: the page exists and the link is good.\n  TRUE STATE:    The host rewrites every unmatched path to index.html so the client-side router can handle it. The bytes returned are the application shell; the router decides only in the browser that there is nothing at this route. Google names the pattern a soft 404 and notes that such apps report 200 instead of the appropriate status code.\n  WHY BLIND:     The status is produced by the server before any router exists. Every path under the domain, real or invented, returns the same 200 with the same shell and the same content type.\n  CHECK:         Compare against a path that certainly does not exist: `curl -s $BASE/zzz-not-a-real-path | md5sum` and `curl -s $URL | md5sum`. Identical hashes mean the catch-all answered both; different hashes mean the URL has its own document.\n  COST:          Link checks, sitemap validation and 'the page is live' claims all pass against URLs with nothing behind them.\n  GENERALISES:   Any fallback that answers on behalf of everything unmatched: wildcard DNS, default vhosts, permissive proxy routes.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-023"
              },
              "reply": "NS-023  [file-on-disk]  (first-writer-wins)\n  sshd takes the first value for a keyword, so an appended directive loses to an include\n  FALSE READING: /etc/ssh/sshd_config ends with `PasswordAuthentication no`, and sshd reloaded without error. Conclusion drawn: password logins are disabled.\n  TRUE STATE:    The man page states that unless noted otherwise, for each keyword the first obtained value will be used. On a stock Ubuntu image `Include /etc/ssh/sshd_config.d/*.conf` sits at line 12 of a 131-line file, so a drop-in such as 50-cloud-init.conf that sets the same keyword is read first and wins. The line appended at the bottom is parsed and discarded.\n  WHY BLIND:     The file says what was intended, and it is the file that was edited. Precedence is a property of the merge order across several files, and the include that pre-empts the edit sits above it, out of the region being read.\n  CHECK:         `sudo sshd -T | grep -i passwordauthentication` prints the effective merged value the daemon will use, which differs from the authored line whenever an earlier occurrence won. Run it with root privileges: as an unprivileged user it silently omits unreadable drop-ins.\n  COST:          A hardening change is recorded as applied while the setting it was meant to change is untouched, and the evidence for the claim is the file that lost.\n  GENERALISES:   Every first-wins configuration system, which fails in exactly the opposite direction to the last-wins ones and therefore defeats the habit built on them.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-024"
              },
              "reply": "NS-024  [file-on-disk]  (rendering-diverges-from-bytes)\n  Bidirectional control characters make source read differently than it compiles\n  FALSE READING: A reviewer reads the diff and the early return is plainly inside a comment. Conclusion drawn: the change is inert.\n  TRUE STATE:    Unicode bidirectional overrides (U+202A to U+202E, U+2066 to U+2069) reorder the display of tokens without changing their logical order. Compilers and interpreters adhere to the logical ordering of source code, not the visual order, so the code executed is not the code rendered. Catalogued as CVE-2021-42574, with a homoglyph variant as CVE-2021-42694.\n  WHY BLIND:     Reading a file means reading a rendering of it. The terminal, the editor and the diff viewer all apply the same bidi algorithm as the attack, so the instrument and the exploit agree with each other and disagree with the compiler.\n  CHECK:         Search for the characters instead of reading the text: `grep -rlP '[\\x{202A}-\\x{202E}\\x{2066}-\\x{2069}]' path/` names files containing them and prints nothing for files that do not. Verified against a planted sample and a clean file.\n  COST:          Code is reviewed and approved on the strength of behaviour no reviewer ever saw.\n  MITIGATION:    Compilers now detect this where asked: rustc's text_direction_codepoint_in_literal lint and gcc's -Wbidi-chars. Enable them rather than relying on reading.\n  GENERALISES:   Any check performed on a rendering of an artifact rather than on its bytes.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "query": "exit-code"
              },
              "reply": "No entries match 'exit-code' in title/false_reading/true_state/class.\nSearchable entries: 90. Try a broader term, or list_instruments to browse by instrument.",
              "tool": "search"
            }
          ],
          "task": "List the available verification instruments, then show the blind spots and full dossier for the exit-code instrument."
        },
        "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": "## Available verification instruments\n\n| Instrument | What it observes | Recorded failures |\n|---|---|---:|\n| **screenshot** | A rendered image | 15 |\n| **exit-code** | A command’s return status | 16 |\n| **http-response** | An HTTP status code | 16 |\n| **file-on-disk** | A file’s contents | 14 |\n| **process-list** | What is running | 14 |\n| **log-output** | Logs and standard output | 15 |\n\n## Exit-code instrument\n\n**Captures:** Whether the process believed it completed the operation it chose to attempt.\n\n### Blind spots\n\n- **Semantics:** Zero means “no error,” not that the intended outcome is true.\n- **No-ops:** A state-dependent command may succeed by doing nothing.\n- **Partial completion:** Early steps may leave convincing artifacts before a later step aborts.\n- **Target selection:** The command may have acted on a different target than intended.\n- **Hangs:** A command that never returns produces no exit code to inspect.\n\n### Recorded failure cases\n\nThe server reports **16 cases**, but its dossier response was truncated during case NS-017. I retrieved NS-017 through NS-019 separately; the other seven case IDs were not exposed in the response. The nine cases available are:\n\n1. **NS-005 — `enable --now` does not restart an already-running unit.** A zero exit and active service can leave the old process serving old code. Compare `systemctl show -p ExecStart NAME` with `ps -p $MAINPID -o args=`. The general problem is a state-dependent command that succeeds as a no-op.\n\n2. **NS-008 — `set -e` aborts at an unrelated validation step.** A config file can be written before a global validation failure prevents reload. Ask the running service what it loaded—for Caddy, inspect its admin API’s live config—rather than relying on the file. The risk applies to pipelines where a global check gates a local change.\n\n3. **NS-013 — A teardown script destroys its own environment.** A script running inside a tmux session can kill that same session and its parent before it can report wh",
          "done_when": "The transcript shows the instrument list, exit-code blind spots, and its full dossier with recorded failures.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "6 verification instruments (registry v7.2.0, updated 2026-08-24)\n\nscreenshot  —  A rendered image\n  used when: You captured the page and looked at it.\n  recorded failures: 15\n\nexit-code  —  A command's return status\n  used when: The command exited zero, so you moved on.\n  recorded failures: 16\n\nhttp-response  —  A status code\n  used when: You requested the URL and got 200.\n  recorded failures: 16\n\nfile-on-disk  —  The file's contents\n  used when: You read the config, the stylesheet, or the source and confirmed it says the right thing.\n  recorded failures: 14\n\nprocess-list  —  What is running\n  used when: You checked ps, pgrep, or systemctl status.\n  recorded failures: 14\n\nlog-output  —  Logs and stdout\n  used when: You read the output and it looked normal.\n  recorded failures: 15\n\nNext: blind_spots(instrument=<id>) for what it cannot see.",
              "tool": "list_instruments"
            },
            {
              "arguments": {
                "instrument": "exit-code"
              },
              "reply": "exit-code (A command's return status) is blind to:\n  - Semantics. Zero means 'no error', never 'the thing you wanted is now true'.\n  - No-ops. A command whose behaviour depends on current state can succeed by doing nothing.\n  - Partial completion, where early steps left convincing artifacts before a later step aborted.\n  - Which target was acted on, when the argument resolved differently than intended.\n  - Commands that never return at all, which produce no exit code to inspect.\n\n16 recorded failure(s) this instrument missed. get_instrument(id='exit-code') for each one's discriminating check.",
              "tool": "blind_spots"
            },
            {
              "arguments": {
                "id": "exit-code"
              },
              "reply": "INSTRUMENT: exit-code — A command's return status\nUSED WHEN:  The command exited zero, so you moved on.\nCAPTURES:   Whether the process believed it completed the operation it chose to attempt.\n\nBLIND TO:\n  - Semantics. Zero means 'no error', never 'the thing you wanted is now true'.\n  - No-ops. A command whose behaviour depends on current state can succeed by doing nothing.\n  - Partial completion, where early steps left convincing artifacts before a later step aborted.\n  - Which target was acted on, when the argument resolved differently than intended.\n  - Commands that never return at all, which produce no exit code to inspect.\n\nRECORDED FAILURES (16):\n\nNS-005  [exit-code]  (no-op-reported-as-action)\n  enable --now does not restart an already-running unit\n  FALSE READING: The command exits zero and the service is active. Conclusion drawn: the new code is live.\n  TRUE STATE:    systemctl enable --now starts a stopped unit. On a running one it is a no-op. The old process, with the old ExecStart, survives.\n  WHY BLIND:     Exit code zero and `active (running)` are true statements about the wrong process.\n  CHECK:         Compare the unit's ExecStart on disk against the live process: systemctl show -p ExecStart NAME and ps -p $MAINPID -o args=\n  COST:          A deploy is reported as complete twice while the previous binary keeps serving.\n  GENERALISES:   Any idempotent-looking command whose semantics differ by current state.\n\nNS-008  [exit-code]  (unrelated-precondition)\n  set -e aborts a script at a validation step that concerns something else\n  FALSE READING: The install script ran and the config file is in place. Conclusion drawn: the change is active.\n  TRUE STATE:    A validation step covering the whole configuration failed on an unrelated block that needed an environment variable the script did not load. Under set -e the script exited before the reload.\n  WHY BLIND:     The steps before the failure completed and left visible artifacts. Partial success looks like success when only the artifacts are inspected.\n  CHECK:         Ask the running service what it loaded, not the filesystem what it holds. For Caddy: the admin API's live config.\n  COST:          The config is correct on disk and absent from the process, an inconsistency that survives inspection of either side alone.\n  GENERALISES:   Any pipeline where a global check gates a local change.\n\nNS-013  [exit-code]  (self-terminating-action)\n  A teardown script destroys the environment it is executing inside\n  FALSE READING: Several long-running sessions vanish at once with no error output. Conclusion drawn: the tool crashed, or the machine failed.\n  TRUE STATE:    A rebuild script ran `kill-session` against the multiplexer session it was itself running in. It killed its own parent, taking four unrelated sessions with it. There is no crash and no error because the script did exactly what it was told.\n  WHY BLIND:     A process that is killed cannot report that it was killed, and cannot report why. The absence of an error reads as an unexplained crash rather than a successful destructive command.\n  CHECK:         Before any teardown, compare the target against the environment you occupy: for tmux, test whether $TMUX is set and whether its session name equals the target. Refuse if they match.\n  COST:          Work in progress across every session in the environment, lost with no diagnostic trail.\n  GENERALISES:   Any tool that can destroy a container, session, service, or host that it might itself be running inside.\n\nNS-014  [exit-code]  (no-signal-at-all)\n  A privilege prompt with nowhere to appear hangs instead of failing\n  FALSE READING: A deploy step produces no output and does not return. Conclusion drawn: the operation is slow, or the network is stalling.\n  TRUE STATE:    The command needed a password. There is no terminal to prompt on, so it waits indefinitely. No error, no exit code, no timeout.\n  WHY BLIND:     Exit codes only exist for processes that exit. An instrument that reads return status has nothing at all to read, and silence resembles work in progress.\n  CHECK:         Ask whether credentials are needed before running the real command: sudo -n true returns non-zero immediately when a password would be required.\n  COST:          An agent waits on a command that will never return, and a task that needed a human is reported as in progress.\n  MITIGATION:    Wrap anything that might prompt in a timeout, so a hang converts into a failure you can observe.\n  GENERALISES:   Every interactive prompt reached from a non-interactive context: credentials, confirmations, pagers, editors.\n\nNS-015  [exit-code]  (status-from-the-wrong-process)\n  A pipeline returns the status of its last command, not its failing one\n  FALSE READING: `npm test | tee build.log` exits zero and the log file is written. Conclusion drawn: the tests passed.\n  TRUE STATE:    A shell reports the exit status of the last command in a pipeline. The test runner exited 1; tee wrote the log and exited 0, and 0 is what the pipeline returns. `set -e` does not intervene, because the pipeline as a whole succeeded.\n  WHY BLIND:     One number is produced for a chain of processes. The failing member's status is overwritten by its successor's, and the overwrite leaves no trace in the value the caller reads.\n  CHECK:         Read the whole vector rather than the summary: `false | true; echo \"${PIPESTATUS[@]}\"` prints `1 0` where `$?` prints `0`. Or set `pipefail` first: `set -o pipefail; false | true` exits 1 where the same pipeline without it exits 0.\n  COST:          Every failure inside a command piped into tee, grep, jq, head or a formatter is recorded as success. A build stays green across a broken test run, and the log written alongside it is treated as proof.\n  MITIGATION:    `set -euo pipefail` at the top of any script whose exit status will be believed by something else.\n  GENERALISES:   Any composition that collapses several results into one and keeps the last rather than the worst.\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  WHY BLIND:     The exit code describes the transfer, not the response. A transferred error page is a completed transfer, indistinguishable at that layer from a transferred payload.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n  COST:          A downstream step parses an HTML error page as the config, dataset or credential file it expected. The failure surfaces at the parser, far from the request that caused it.\n  GENERALISES:   Every client whose success criterion is that the protocol completed, rather than that the answer was the one asked for.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  WHY BLIND:     An uncollected test produces",
              "tool": "get_instrument"
            },
            {
              "arguments": {
                "id": "NS-017"
              },
              "reply": "NS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  WHY BLIND:     An uncollected test produces no pass line and no fail line. The summary counts what ran; it has no term for what was skipped by never being seen.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n  COST:          The behaviour the test was written to protect is unprotected, and the suite's green status is subsequently cited as evidence that it is protected.\n  GENERALISES:   Any convention-driven runner where registration is implicit and non-registration is silent: test discovery, plugin loaders, autoloaded fixtures, route decorators.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-018"
              },
              "reply": "NS-018  [exit-code]  (test-double-without-a-contract)\n  A bare mock answers to method names the real object no longer has\n  FALSE READING: The suite is green after a collaborator's method is renamed. Conclusion drawn: nothing depended on the old name.\n  TRUE STATE:    `Mock()` manufactures an attribute on first access and returns another Mock, which is callable and truthy. Code calling `client.charge_card(...)` against the double passes although the real class now exposes only `charge`. The test exercises an interface that no longer exists, and will keep passing however far the real object drifts.\n  WHY BLIND:     The assertion is satisfied by the double's auto-created child. Green is a true statement about the mock, and the exit code cannot say which object the statement was about.\n  CHECK:         Derive the double from the real class: `create_autospec(Client)` or `Mock(spec=Client)` raises AttributeError on exactly the call a bare `Mock()` accepted. Observed on 3.12: `Mock().exsits()` returns a truthy Mock; `create_autospec(Real).exsits()` raises AttributeError.\n  COST:          A rename is shipped with a fully green suite whose coverage of the renamed path is zero. The regression appears in production, in code the tests appeared to cover.\n  GENERALISES:   Every test double whose surface is invented rather than derived from the thing it replaces.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-019"
              },
              "reply": "NS-019  [exit-code]  (silent-coercion)\n  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n  FALSE READING: The INSERT returns `Query OK, 1 row affected` and the client exits 0. Conclusion drawn: the row was stored as supplied.\n  TRUE STATE:    With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n  WHY BLIND:     Warnings are a separate channel that must be asked for. Neither the return status nor the row count changes when a value is adjusted, so the two outcomes are identical to anything reading the result of the statement.\n  CHECK:         `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n  COST:          Truncated identifiers and coerced numbers are indistinguishable from real data once written, and the originals are gone. Corruption is discovered by a later join that finds nothing.\n  MITIGATION:    Assert the mode rather than assume it: `SELECT @@SESSION.sql_mode` should contain STRICT_TRANS_TABLES before any load is trusted.\n  GENERALISES:   Any writer that repairs input rather than rejecting it: lenient parsers, schema-on-read stores, spreadsheet imports.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-020"
              },
              "reply": "NS-020  [http-response]  (status-committed-before-outcome)\n  S3 sends 200 OK before it knows whether the upload completed\n  FALSE READING: CompleteMultipartUpload returns HTTP 200. Conclusion drawn: the object is assembled and present.\n  TRUE STATE:    S3 sends the 200 header first, then keeps the connection alive with whitespace while assembly runs, which can take minutes. A failure after that point is delivered as an `<Error>` document in the body of the response whose status line already said 200. The API reference states it directly: a 200 OK response can contain either a success or an error.\n  WHY BLIND:     The status line is written before the outcome is known, so it cannot encode the outcome. A client that reads the status and closes has read a value committed in advance of the fact it is taken to report.\n  CHECK:         Parse the body even on 200 and look for an `<Error>` root element; or confirm independently with HeadObject and compare ContentLength and ETag against what was uploaded. Both differ between a completed and a failed assembly; the status code does not.\n  COST:          An upload pipeline records success for an object that does not exist. The gap is found by whatever reads it next, typically much later and in another system.\n  GENERALISES:   Any protocol that must acknowledge before it can know: streamed responses, long-polling, 202-style accepted work, write-behind caches.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-021"
              },
              "reply": "NS-021  [http-response]  (partial-success-as-success)\n  A batch write returns 200 while handing back the items it did not write\n  FALSE READING: BatchWriteItem returns HTTP 200 and the SDK raises no exception. Conclusion drawn: all 25 items were written.\n  TRUE STATE:    The individual puts and deletes are atomic but the batch is not. Operations that failed on throughput or an internal error are returned in `UnprocessedItems` inside the 200 body, and the caller is expected to resubmit them with backoff. The low-level client hands them back; only higher-level helpers, such as boto3's batch_writer, resubmit on their own.\n  WHY BLIND:     Total success and partial success share a status code, an exception-free return and a well-formed body. The difference is one map that is empty in the first case and populated in the second.\n  CHECK:         Assert the map is empty rather than assuming it: `sum(len(v) for v in resp.get('UnprocessedItems', {}).values()) == 0`. It is 0 on a full write and non-zero whenever items were dropped.\n  COST:          Rows go missing from a bulk load in proportion to how throttled the table was, with no error recorded anywhere, and the load is reported complete.\n  GENERALISES:   Every bulk endpoint that reports transport success while carrying per-item failure in its payload.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-022"
              },
              "reply": "NS-022  [http-response]  (fallback-route-answers-for-everything)\n  A single-page app's catch-all rewrite answers 200 for URLs that do not exist\n  FALSE READING: `curl -o /dev/null -w '%{http_code}' https://site/docs/pricing` returns 200. Conclusion drawn: the page exists and the link is good.\n  TRUE STATE:    The host rewrites every unmatched path to index.html so the client-side router can handle it. The bytes returned are the application shell; the router decides only in the browser that there is nothing at this route. Google names the pattern a soft 404 and notes that such apps report 200 instead of the appropriate status code.\n  WHY BLIND:     The status is produced by the server before any router exists. Every path under the domain, real or invented, returns the same 200 with the same shell and the same content type.\n  CHECK:         Compare against a path that certainly does not exist: `curl -s $BASE/zzz-not-a-real-path | md5sum` and `curl -s $URL | md5sum`. Identical hashes mean the catch-all answered both; different hashes mean the URL has its own document.\n  COST:          Link checks, sitemap validation and 'the page is live' claims all pass against URLs with nothing behind them.\n  GENERALISES:   Any fallback that answers on behalf of everything unmatched: wildcard DNS, default vhosts, permissive proxy routes.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-023"
              },
              "reply": "NS-023  [file-on-disk]  (first-writer-wins)\n  sshd takes the first value for a keyword, so an appended directive loses to an include\n  FALSE READING: /etc/ssh/sshd_config ends with `PasswordAuthentication no`, and sshd reloaded without error. Conclusion drawn: password logins are disabled.\n  TRUE STATE:    The man page states that unless noted otherwise, for each keyword the first obtained value will be used. On a stock Ubuntu image `Include /etc/ssh/sshd_config.d/*.conf` sits at line 12 of a 131-line file, so a drop-in such as 50-cloud-init.conf that sets the same keyword is read first and wins. The line appended at the bottom is parsed and discarded.\n  WHY BLIND:     The file says what was intended, and it is the file that was edited. Precedence is a property of the merge order across several files, and the include that pre-empts the edit sits above it, out of the region being read.\n  CHECK:         `sudo sshd -T | grep -i passwordauthentication` prints the effective merged value the daemon will use, which differs from the authored line whenever an earlier occurrence won. Run it with root privileges: as an unprivileged user it silently omits unreadable drop-ins.\n  COST:          A hardening change is recorded as applied while the setting it was meant to change is untouched, and the evidence for the claim is the file that lost.\n  GENERALISES:   Every first-wins configuration system, which fails in exactly the opposite direction to the last-wins ones and therefore defeats the habit built on them.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-024"
              },
              "reply": "NS-024  [file-on-disk]  (rendering-diverges-from-bytes)\n  Bidirectional control characters make source read differently than it compiles\n  FALSE READING: A reviewer reads the diff and the early return is plainly inside a comment. Conclusion drawn: the change is inert.\n  TRUE STATE:    Unicode bidirectional overrides (U+202A to U+202E, U+2066 to U+2069) reorder the display of tokens without changing their logical order. Compilers and interpreters adhere to the logical ordering of source code, not the visual order, so the code executed is not the code rendered. Catalogued as CVE-2021-42574, with a homoglyph variant as CVE-2021-42694.\n  WHY BLIND:     Reading a file means reading a rendering of it. The terminal, the editor and the diff viewer all apply the same bidi algorithm as the attack, so the instrument and the exploit agree with each other and disagree with the compiler.\n  CHECK:         Search for the characters instead of reading the text: `grep -rlP '[\\x{202A}-\\x{202E}\\x{2066}-\\x{2069}]' path/` names files containing them and prints nothing for files that do not. Verified against a planted sample and a clean file.\n  COST:          Code is reviewed and approved on the strength of behaviour no reviewer ever saw.\n  MITIGATION:    Compilers now detect this where asked: rustc's text_direction_codepoint_in_literal lint and gcc's -Wbidi-chars. Enable them rather than relying on reading.\n  GENERALISES:   Any check performed on a rendering of an artifact rather than on its bytes.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-025"
              },
              "reply": "NS-025  [file-on-disk]  (silent-precision-loss)\n  A JSON integer above 2^53 is silently rounded when parsed as a double\n  FALSE READING: The response contains `\"id\": 10765432100123456789`; the parsed object has an id of the right shape and it round-trips through the code. Conclusion drawn: the identifier was carried through intact.\n  TRUE STATE:    JavaScript parses JSON numbers as IEEE 754 doubles. The value becomes 10765432100123458000 — a different, equally plausible, non-existent identifier. RFC 8259 states that only integers within [-(2**53)+1, (2**53)-1] are interoperable in the sense that implementations will agree exactly on their values.\n  WHY BLIND:     The corrupted value has the same type, similar magnitude and identical formatting. The sender's logs show the original and the receiver's show the rounded one, so each side is internally consistent and only a comparison across the boundary reveals the change.\n  CHECK:         `Number.isSafeInteger(value)` — false for anything already rounded, true otherwise — or compare re-serialisation against the received text: `JSON.stringify(JSON.parse(s)) === s`. Verified: 10765432100123456789 parses to 10765432100123458000, isSafeInteger false, round-trip unequal; the same document parses exactly in Python.\n  COST:          Reads and writes land on the wrong record or on none. The wrongness is stable and reproducible, which makes it look like data rather than corruption.\n  MITIGATION:    Carry large identifiers as strings across the boundary; APIs that learned this the hard way ship both forms, id and id_str.\n  GENERALISES:   Every boundary between systems with different numeric ranges: 64-bit ids into doubles, timestamps into 32-bit seconds, decimals into floats.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-026"
              },
              "reply": "NS-026  [process-list]  (acknowledgement-mistaken-for-readiness)\n  systemd reports a Type=simple unit active before the service binary has been executed\n  FALSE READING: `systemctl start app` returns and `systemctl is-active app` says active. Conclusion drawn: the service is up and accepting connections.\n  TRUE STATE:    For Type=simple the service manager considers the unit started immediately after the main service process has been forked off — after fork() and before the new process has called execve() to invoke the actual service binary. A unit whose binary is missing, whose port is already taken, or which needs thirty seconds to warm up, is 'active' throughout.\n  WHY BLIND:     The process list reports existence and state. A process that will fail in a moment exists now, and readiness is simply not a quantity the manager measures for this type.\n  CHECK:         Ask the socket rather than the manager: `ss -ltnp 'sport = :8000'` returns a listener only when one exists, and is empty while the unit is active but not yet serving. A single request to the port distinguishes the same two states.\n  COST:          Dependent units and deploy scripts proceed against a service that is not listening. The ordering guarantee that was assumed was never offered.\n  MITIGATION:    Type=notify with sd_notify(READY=1) makes activeness mean readiness; Type=exec at least waits for execve() to succeed.\n  GENERALISES:   Every start-up API that acknowledges the request rather than the readiness.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "query": "exit code"
              },
              "reply": "3 of 90 entries match 'exit code':\n\nNS-014  [exit-code]  (no-signal-at-all)\n  A privilege prompt with nowhere to appear hangs instead of failing\n  FALSE READING: A deploy step produces no output and does not return. Conclusion drawn: the operation is slow, or the network is stalling.\n  TRUE STATE:    The command needed a password. There is no terminal to prompt on, so it waits indefinitely. No error, no exit code, no timeout.\n  CHECK:         Ask whether credentials are needed before running the real command: sudo -n true returns non-zero immediately when a password would be required.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n\nNS-042  [http-response]  (status-precedes-the-body)\n  A truncated response arrives with its 200 already delivered\n  FALSE READING: `curl -s -o data.json -w '%{http_code}' URL` prints 200 and data.json holds plausible content. Conclusion drawn: the document was retrieved.\n  TRUE STATE:    The status line is sent before the body. A connection that dies mid-body leaves a response RFC 9112 calls incomplete: 'a message body that uses the chunked transfer coding is incomplete if the zero-sized chunk that terminates the encoding has not been received', and a client that receives one 'MUST record the message as incomplete'. curl does record it, as exit code 18, but the status code stays 200 and the partial bytes stay on disk.\n  CHECK:         Read curl's exit status, not only the code it reports: `curl -s -o data.json -w '%{http_code}\\n' URL; echo $?`. Observed against a local server that sends one chunk and closes the connection: `200` printed, exit status 18, and a 26-byte truncated prefix in data.json. `--fail` does not catch it, and `-s` suppresses the 'transfer closed with outstanding read data remaining' message that would otherwise appear.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "exits 0"
              },
              "reply": "3 of 90 entries match 'exits 0':\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n\nNS-019  [exit-code]  (silent-coercion)\n  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n  FALSE READING: The INSERT returns `Query OK, 1 row affected` and the client exits 0. Conclusion drawn: the row was stored as supplied.\n  TRUE STATE:    With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n  CHECK:         `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "exit-code"
              },
              "reply": "No entries match 'exit-code' in title/false_reading/true_state/class.\nSearchable entries: 90. Try a broader term, or list_instruments to browse by instrument.",
              "tool": "search"
            }
          ],
          "task": "List the available verification instruments, then show the blind spots and full dossier for the exit-code instrument."
        },
        "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": "",
          "done_when": "The transcript shows the instrument list, exit-code blind spots, and its full dossier with recorded failures.",
          "how_it_ended": "turn_limit",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "6 verification instruments (registry v7.2.0, updated 2026-08-24)\n\nscreenshot  —  A rendered image\n  used when: You captured the page and looked at it.\n  recorded failures: 15\n\nexit-code  —  A command's return status\n  used when: The command exited zero, so you moved on.\n  recorded failures: 16\n\nhttp-response  —  A status code\n  used when: You requested the URL and got 200.\n  recorded failures: 16\n\nfile-on-disk  —  The file's contents\n  used when: You read the config, the stylesheet, or the source and confirmed it says the right thing.\n  recorded failures: 14\n\nprocess-list  —  What is running\n  used when: You checked ps, pgrep, or systemctl status.\n  recorded failures: 14\n\nlog-output  —  Logs and stdout\n  used when: You read the output and it looked normal.\n  recorded failures: 15\n\nNext: blind_spots(instrument=<id>) for what it cannot see.",
              "tool": "list_instruments"
            },
            {
              "arguments": {
                "instrument": "exit-code"
              },
              "reply": "exit-code (A command's return status) is blind to:\n  - Semantics. Zero means 'no error', never 'the thing you wanted is now true'.\n  - No-ops. A command whose behaviour depends on current state can succeed by doing nothing.\n  - Partial completion, where early steps left convincing artifacts before a later step aborted.\n  - Which target was acted on, when the argument resolved differently than intended.\n  - Commands that never return at all, which produce no exit code to inspect.\n\n16 recorded failure(s) this instrument missed. get_instrument(id='exit-code') for each one's discriminating check.",
              "tool": "blind_spots"
            },
            {
              "arguments": {
                "id": "exit-code"
              },
              "reply": "INSTRUMENT: exit-code — A command's return status\nUSED WHEN:  The command exited zero, so you moved on.\nCAPTURES:   Whether the process believed it completed the operation it chose to attempt.\n\nBLIND TO:\n  - Semantics. Zero means 'no error', never 'the thing you wanted is now true'.\n  - No-ops. A command whose behaviour depends on current state can succeed by doing nothing.\n  - Partial completion, where early steps left convincing artifacts before a later step aborted.\n  - Which target was acted on, when the argument resolved differently than intended.\n  - Commands that never return at all, which produce no exit code to inspect.\n\nRECORDED FAILURES (16):\n\nNS-005  [exit-code]  (no-op-reported-as-action)\n  enable --now does not restart an already-running unit\n  FALSE READING: The command exits zero and the service is active. Conclusion drawn: the new code is live.\n  TRUE STATE:    systemctl enable --now starts a stopped unit. On a running one it is a no-op. The old process, with the old ExecStart, survives.\n  WHY BLIND:     Exit code zero and `active (running)` are true statements about the wrong process.\n  CHECK:         Compare the unit's ExecStart on disk against the live process: systemctl show -p ExecStart NAME and ps -p $MAINPID -o args=\n  COST:          A deploy is reported as complete twice while the previous binary keeps serving.\n  GENERALISES:   Any idempotent-looking command whose semantics differ by current state.\n\nNS-008  [exit-code]  (unrelated-precondition)\n  set -e aborts a script at a validation step that concerns something else\n  FALSE READING: The install script ran and the config file is in place. Conclusion drawn: the change is active.\n  TRUE STATE:    A validation step covering the whole configuration failed on an unrelated block that needed an environment variable the script did not load. Under set -e the script exited before the reload.\n  WHY BLIND:     The steps before the failure completed and left visible artifacts. Partial success looks like success when only the artifacts are inspected.\n  CHECK:         Ask the running service what it loaded, not the filesystem what it holds. For Caddy: the admin API's live config.\n  COST:          The config is correct on disk and absent from the process, an inconsistency that survives inspection of either side alone.\n  GENERALISES:   Any pipeline where a global check gates a local change.\n\nNS-013  [exit-code]  (self-terminating-action)\n  A teardown script destroys the environment it is executing inside\n  FALSE READING: Several long-running sessions vanish at once with no error output. Conclusion drawn: the tool crashed, or the machine failed.\n  TRUE STATE:    A rebuild script ran `kill-session` against the multiplexer session it was itself running in. It killed its own parent, taking four unrelated sessions with it. There is no crash and no error because the script did exactly what it was told.\n  WHY BLIND:     A process that is killed cannot report that it was killed, and cannot report why. The absence of an error reads as an unexplained crash rather than a successful destructive command.\n  CHECK:         Before any teardown, compare the target against the environment you occupy: for tmux, test whether $TMUX is set and whether its session name equals the target. Refuse if they match.\n  COST:          Work in progress across every session in the environment, lost with no diagnostic trail.\n  GENERALISES:   Any tool that can destroy a container, session, service, or host that it might itself be running inside.\n\nNS-014  [exit-code]  (no-signal-at-all)\n  A privilege prompt with nowhere to appear hangs instead of failing\n  FALSE READING: A deploy step produces no output and does not return. Conclusion drawn: the operation is slow, or the network is stalling.\n  TRUE STATE:    The command needed a password. There is no terminal to prompt on, so it waits indefinitely. No error, no exit code, no timeout.\n  WHY BLIND:     Exit codes only exist for processes that exit. An instrument that reads return status has nothing at all to read, and silence resembles work in progress.\n  CHECK:         Ask whether credentials are needed before running the real command: sudo -n true returns non-zero immediately when a password would be required.\n  COST:          An agent waits on a command that will never return, and a task that needed a human is reported as in progress.\n  MITIGATION:    Wrap anything that might prompt in a timeout, so a hang converts into a failure you can observe.\n  GENERALISES:   Every interactive prompt reached from a non-interactive context: credentials, confirmations, pagers, editors.\n\nNS-015  [exit-code]  (status-from-the-wrong-process)\n  A pipeline returns the status of its last command, not its failing one\n  FALSE READING: `npm test | tee build.log` exits zero and the log file is written. Conclusion drawn: the tests passed.\n  TRUE STATE:    A shell reports the exit status of the last command in a pipeline. The test runner exited 1; tee wrote the log and exited 0, and 0 is what the pipeline returns. `set -e` does not intervene, because the pipeline as a whole succeeded.\n  WHY BLIND:     One number is produced for a chain of processes. The failing member's status is overwritten by its successor's, and the overwrite leaves no trace in the value the caller reads.\n  CHECK:         Read the whole vector rather than the summary: `false | true; echo \"${PIPESTATUS[@]}\"` prints `1 0` where `$?` prints `0`. Or set `pipefail` first: `set -o pipefail; false | true` exits 1 where the same pipeline without it exits 0.\n  COST:          Every failure inside a command piped into tee, grep, jq, head or a formatter is recorded as success. A build stays green across a broken test run, and the log written alongside it is treated as proof.\n  MITIGATION:    `set -euo pipefail` at the top of any script whose exit status will be believed by something else.\n  GENERALISES:   Any composition that collapses several results into one and keeps the last rather than the worst.\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  WHY BLIND:     The exit code describes the transfer, not the response. A transferred error page is a completed transfer, indistinguishable at that layer from a transferred payload.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n  COST:          A downstream step parses an HTML error page as the config, dataset or credential file it expected. The failure surfaces at the parser, far from the request that caused it.\n  GENERALISES:   Every client whose success criterion is that the protocol completed, rather than that the answer was the one asked for.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  WHY BLIND:     An uncollected test produces",
              "tool": "get_instrument"
            },
            {
              "arguments": {
                "id": "NS-017"
              },
              "reply": "NS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  WHY BLIND:     An uncollected test produces no pass line and no fail line. The summary counts what ran; it has no term for what was skipped by never being seen.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n  COST:          The behaviour the test was written to protect is unprotected, and the suite's green status is subsequently cited as evidence that it is protected.\n  GENERALISES:   Any convention-driven runner where registration is implicit and non-registration is silent: test discovery, plugin loaders, autoloaded fixtures, route decorators.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-018"
              },
              "reply": "NS-018  [exit-code]  (test-double-without-a-contract)\n  A bare mock answers to method names the real object no longer has\n  FALSE READING: The suite is green after a collaborator's method is renamed. Conclusion drawn: nothing depended on the old name.\n  TRUE STATE:    `Mock()` manufactures an attribute on first access and returns another Mock, which is callable and truthy. Code calling `client.charge_card(...)` against the double passes although the real class now exposes only `charge`. The test exercises an interface that no longer exists, and will keep passing however far the real object drifts.\n  WHY BLIND:     The assertion is satisfied by the double's auto-created child. Green is a true statement about the mock, and the exit code cannot say which object the statement was about.\n  CHECK:         Derive the double from the real class: `create_autospec(Client)` or `Mock(spec=Client)` raises AttributeError on exactly the call a bare `Mock()` accepted. Observed on 3.12: `Mock().exsits()` returns a truthy Mock; `create_autospec(Real).exsits()` raises AttributeError.\n  COST:          A rename is shipped with a fully green suite whose coverage of the renamed path is zero. The regression appears in production, in code the tests appeared to cover.\n  GENERALISES:   Every test double whose surface is invented rather than derived from the thing it replaces.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-019"
              },
              "reply": "NS-019  [exit-code]  (silent-coercion)\n  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n  FALSE READING: The INSERT returns `Query OK, 1 row affected` and the client exits 0. Conclusion drawn: the row was stored as supplied.\n  TRUE STATE:    With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n  WHY BLIND:     Warnings are a separate channel that must be asked for. Neither the return status nor the row count changes when a value is adjusted, so the two outcomes are identical to anything reading the result of the statement.\n  CHECK:         `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n  COST:          Truncated identifiers and coerced numbers are indistinguishable from real data once written, and the originals are gone. Corruption is discovered by a later join that finds nothing.\n  MITIGATION:    Assert the mode rather than assume it: `SELECT @@SESSION.sql_mode` should contain STRICT_TRANS_TABLES before any load is trusted.\n  GENERALISES:   Any writer that repairs input rather than rejecting it: lenient parsers, schema-on-read stores, spreadsheet imports.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-020"
              },
              "reply": "NS-020  [http-response]  (status-committed-before-outcome)\n  S3 sends 200 OK before it knows whether the upload completed\n  FALSE READING: CompleteMultipartUpload returns HTTP 200. Conclusion drawn: the object is assembled and present.\n  TRUE STATE:    S3 sends the 200 header first, then keeps the connection alive with whitespace while assembly runs, which can take minutes. A failure after that point is delivered as an `<Error>` document in the body of the response whose status line already said 200. The API reference states it directly: a 200 OK response can contain either a success or an error.\n  WHY BLIND:     The status line is written before the outcome is known, so it cannot encode the outcome. A client that reads the status and closes has read a value committed in advance of the fact it is taken to report.\n  CHECK:         Parse the body even on 200 and look for an `<Error>` root element; or confirm independently with HeadObject and compare ContentLength and ETag against what was uploaded. Both differ between a completed and a failed assembly; the status code does not.\n  COST:          An upload pipeline records success for an object that does not exist. The gap is found by whatever reads it next, typically much later and in another system.\n  GENERALISES:   Any protocol that must acknowledge before it can know: streamed responses, long-polling, 202-style accepted work, write-behind caches.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-021"
              },
              "reply": "NS-021  [http-response]  (partial-success-as-success)\n  A batch write returns 200 while handing back the items it did not write\n  FALSE READING: BatchWriteItem returns HTTP 200 and the SDK raises no exception. Conclusion drawn: all 25 items were written.\n  TRUE STATE:    The individual puts and deletes are atomic but the batch is not. Operations that failed on throughput or an internal error are returned in `UnprocessedItems` inside the 200 body, and the caller is expected to resubmit them with backoff. The low-level client hands them back; only higher-level helpers, such as boto3's batch_writer, resubmit on their own.\n  WHY BLIND:     Total success and partial success share a status code, an exception-free return and a well-formed body. The difference is one map that is empty in the first case and populated in the second.\n  CHECK:         Assert the map is empty rather than assuming it: `sum(len(v) for v in resp.get('UnprocessedItems', {}).values()) == 0`. It is 0 on a full write and non-zero whenever items were dropped.\n  COST:          Rows go missing from a bulk load in proportion to how throttled the table was, with no error recorded anywhere, and the load is reported complete.\n  GENERALISES:   Every bulk endpoint that reports transport success while carrying per-item failure in its payload.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-022"
              },
              "reply": "NS-022  [http-response]  (fallback-route-answers-for-everything)\n  A single-page app's catch-all rewrite answers 200 for URLs that do not exist\n  FALSE READING: `curl -o /dev/null -w '%{http_code}' https://site/docs/pricing` returns 200. Conclusion drawn: the page exists and the link is good.\n  TRUE STATE:    The host rewrites every unmatched path to index.html so the client-side router can handle it. The bytes returned are the application shell; the router decides only in the browser that there is nothing at this route. Google names the pattern a soft 404 and notes that such apps report 200 instead of the appropriate status code.\n  WHY BLIND:     The status is produced by the server before any router exists. Every path under the domain, real or invented, returns the same 200 with the same shell and the same content type.\n  CHECK:         Compare against a path that certainly does not exist: `curl -s $BASE/zzz-not-a-real-path | md5sum` and `curl -s $URL | md5sum`. Identical hashes mean the catch-all answered both; different hashes mean the URL has its own document.\n  COST:          Link checks, sitemap validation and 'the page is live' claims all pass against URLs with nothing behind them.\n  GENERALISES:   Any fallback that answers on behalf of everything unmatched: wildcard DNS, default vhosts, permissive proxy routes.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-023"
              },
              "reply": "NS-023  [file-on-disk]  (first-writer-wins)\n  sshd takes the first value for a keyword, so an appended directive loses to an include\n  FALSE READING: /etc/ssh/sshd_config ends with `PasswordAuthentication no`, and sshd reloaded without error. Conclusion drawn: password logins are disabled.\n  TRUE STATE:    The man page states that unless noted otherwise, for each keyword the first obtained value will be used. On a stock Ubuntu image `Include /etc/ssh/sshd_config.d/*.conf` sits at line 12 of a 131-line file, so a drop-in such as 50-cloud-init.conf that sets the same keyword is read first and wins. The line appended at the bottom is parsed and discarded.\n  WHY BLIND:     The file says what was intended, and it is the file that was edited. Precedence is a property of the merge order across several files, and the include that pre-empts the edit sits above it, out of the region being read.\n  CHECK:         `sudo sshd -T | grep -i passwordauthentication` prints the effective merged value the daemon will use, which differs from the authored line whenever an earlier occurrence won. Run it with root privileges: as an unprivileged user it silently omits unreadable drop-ins.\n  COST:          A hardening change is recorded as applied while the setting it was meant to change is untouched, and the evidence for the claim is the file that lost.\n  GENERALISES:   Every first-wins configuration system, which fails in exactly the opposite direction to the last-wins ones and therefore defeats the habit built on them.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-024"
              },
              "reply": "NS-024  [file-on-disk]  (rendering-diverges-from-bytes)\n  Bidirectional control characters make source read differently than it compiles\n  FALSE READING: A reviewer reads the diff and the early return is plainly inside a comment. Conclusion drawn: the change is inert.\n  TRUE STATE:    Unicode bidirectional overrides (U+202A to U+202E, U+2066 to U+2069) reorder the display of tokens without changing their logical order. Compilers and interpreters adhere to the logical ordering of source code, not the visual order, so the code executed is not the code rendered. Catalogued as CVE-2021-42574, with a homoglyph variant as CVE-2021-42694.\n  WHY BLIND:     Reading a file means reading a rendering of it. The terminal, the editor and the diff viewer all apply the same bidi algorithm as the attack, so the instrument and the exploit agree with each other and disagree with the compiler.\n  CHECK:         Search for the characters instead of reading the text: `grep -rlP '[\\x{202A}-\\x{202E}\\x{2066}-\\x{2069}]' path/` names files containing them and prints nothing for files that do not. Verified against a planted sample and a clean file.\n  COST:          Code is reviewed and approved on the strength of behaviour no reviewer ever saw.\n  MITIGATION:    Compilers now detect this where asked: rustc's text_direction_codepoint_in_literal lint and gcc's -Wbidi-chars. Enable them rather than relying on reading.\n  GENERALISES:   Any check performed on a rendering of an artifact rather than on its bytes.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-025"
              },
              "reply": "NS-025  [file-on-disk]  (silent-precision-loss)\n  A JSON integer above 2^53 is silently rounded when parsed as a double\n  FALSE READING: The response contains `\"id\": 10765432100123456789`; the parsed object has an id of the right shape and it round-trips through the code. Conclusion drawn: the identifier was carried through intact.\n  TRUE STATE:    JavaScript parses JSON numbers as IEEE 754 doubles. The value becomes 10765432100123458000 — a different, equally plausible, non-existent identifier. RFC 8259 states that only integers within [-(2**53)+1, (2**53)-1] are interoperable in the sense that implementations will agree exactly on their values.\n  WHY BLIND:     The corrupted value has the same type, similar magnitude and identical formatting. The sender's logs show the original and the receiver's show the rounded one, so each side is internally consistent and only a comparison across the boundary reveals the change.\n  CHECK:         `Number.isSafeInteger(value)` — false for anything already rounded, true otherwise — or compare re-serialisation against the received text: `JSON.stringify(JSON.parse(s)) === s`. Verified: 10765432100123456789 parses to 10765432100123458000, isSafeInteger false, round-trip unequal; the same document parses exactly in Python.\n  COST:          Reads and writes land on the wrong record or on none. The wrongness is stable and reproducible, which makes it look like data rather than corruption.\n  MITIGATION:    Carry large identifiers as strings across the boundary; APIs that learned this the hard way ship both forms, id and id_str.\n  GENERALISES:   Every boundary between systems with different numeric ranges: 64-bit ids into doubles, timestamps into 32-bit seconds, decimals into floats.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "id": "NS-026"
              },
              "reply": "NS-026  [process-list]  (acknowledgement-mistaken-for-readiness)\n  systemd reports a Type=simple unit active before the service binary has been executed\n  FALSE READING: `systemctl start app` returns and `systemctl is-active app` says active. Conclusion drawn: the service is up and accepting connections.\n  TRUE STATE:    For Type=simple the service manager considers the unit started immediately after the main service process has been forked off — after fork() and before the new process has called execve() to invoke the actual service binary. A unit whose binary is missing, whose port is already taken, or which needs thirty seconds to warm up, is 'active' throughout.\n  WHY BLIND:     The process list reports existence and state. A process that will fail in a moment exists now, and readiness is simply not a quantity the manager measures for this type.\n  CHECK:         Ask the socket rather than the manager: `ss -ltnp 'sport = :8000'` returns a listener only when one exists, and is empty while the unit is active but not yet serving. A single request to the port distinguishes the same two states.\n  COST:          Dependent units and deploy scripts proceed against a service that is not listening. The ordering guarantee that was assumed was never offered.\n  MITIGATION:    Type=notify with sd_notify(READY=1) makes activeness mean readiness; Type=exec at least waits for execve() to succeed.\n  GENERALISES:   Every start-up API that acknowledges the request rather than the readiness.",
              "tool": "get_entry"
            },
            {
              "arguments": {
                "query": "exit-code"
              },
              "reply": "No entries match 'exit-code' in title/false_reading/true_state/class.\nSearchable entries: 90. Try a broader term, or list_instruments to browse by instrument.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "exits 0"
              },
              "reply": "3 of 90 entries match 'exits 0':\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n\nNS-019  [exit-code]  (silent-coercion)\n  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n  FALSE READING: The INSERT returns `Query OK, 1 row affected` and the client exits 0. Conclusion drawn: the row was stored as supplied.\n  TRUE STATE:    With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n  CHECK:         `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "exit code"
              },
              "reply": "3 of 90 entries match 'exit code':\n\nNS-014  [exit-code]  (no-signal-at-all)\n  A privilege prompt with nowhere to appear hangs instead of failing\n  FALSE READING: A deploy step produces no output and does not return. Conclusion drawn: the operation is slow, or the network is stalling.\n  TRUE STATE:    The command needed a password. There is no terminal to prompt on, so it waits indefinitely. No error, no exit code, no timeout.\n  CHECK:         Ask whether credentials are needed before running the real command: sudo -n true returns non-zero immediately when a password would be required.\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n\nNS-042  [http-response]  (status-precedes-the-body)\n  A truncated response arrives with its 200 already delivered\n  FALSE READING: `curl -s -o data.json -w '%{http_code}' URL` prints 200 and data.json holds plausible content. Conclusion drawn: the document was retrieved.\n  TRUE STATE:    The status line is sent before the body. A connection that dies mid-body leaves a response RFC 9112 calls incomplete: 'a message body that uses the chunked transfer coding is incomplete if the zero-sized chunk that terminates the encoding has not been received', and a client that receives one 'MUST record the message as incomplete'. curl does record it, as exit code 18, but the status code stays 200 and the partial bytes stay on disk.\n  CHECK:         Read curl's exit status, not only the code it reports: `curl -s -o data.json -w '%{http_code}\\n' URL; echo $?`. Observed against a local server that sends one chunk and closes the connection: `200` printed, exit status 18, and a 26-byte truncated prefix in data.json. `--fail` does not catch it, and `-s` suppresses the 'transfer closed with outstanding read data remaining' message that would otherwise appear.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "exits zero"
              },
              "reply": "17 of 90 entries match 'exits zero':\n\nNS-005  [exit-code]  (no-op-reported-as-action)\n  enable --now does not restart an already-running unit\n  FALSE READING: The command exits zero and the service is active. Conclusion drawn: the new code is live.\n  TRUE STATE:    systemctl enable --now starts a stopped unit. On a running one it is a no-op. The old process, with the old ExecStart, survives.\n  CHECK:         Compare the unit's ExecStart on disk against the live process: systemctl show -p ExecStart NAME and ps -p $MAINPID -o args=\n\nNS-015  [exit-code]  (status-from-the-wrong-process)\n  A pipeline returns the status of its last command, not its failing one\n  FALSE READING: `npm test | tee build.log` exits zero and the log file is written. Conclusion drawn: the tests passed.\n  TRUE STATE:    A shell reports the exit status of the last command in a pipeline. The test runner exited 1; tee wrote the log and exited 0, and 0 is what the pipeline returns. `set -e` does not intervene, because the pipeline as a whole succeeded.\n  CHECK:         Read the whole vector rather than the summary: `false | true; echo \"${PIPESTATUS[@]}\"` prints `1 0` where `$?` prints `0`. Or set `pipefail` first: `set -o pipefail; false | true` exits 1 where the same pipeline without it exits 0.\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n\nNS-053  [exit-code]  (collector-discards-child-status)\n  wait without arguments returns zero however its children exited\n  FALSE READING: A script starts several jobs with `&`, calls `wait`, and exits zero. Conclusion drawn: every job succeeded.\n  TRUE STATE:    The bash manual is explicit: 'If id is not given, wait waits for all running background jobs and the last-executed process substitution, if its process id is the same as $!, and the return status is zero.' The children's statuses are reaped and discarded. Any number of them may have failed.\n  CHECK:         Wait on each recorded PID and keep the statuses: `rc=0; for p in \"${pids[@]}\"; do wait \"$p\" || rc=$?; done; exit $rc`. Observed on bash 5.2.21 with one child exiting 3 and another exiting 7: bare `wait` returned 0, `wait $pid` on the second returned 7, and `wait -n` returned the status of the first job to finish.\n\nNS-054  [exit-code]  (destination-truncated-before-the-source-is-read)\n  Output redirection empties the file before the command reads it\n  FALSE READING: `sort data.txt > data.txt` exits zero and data.txt is still there. Conclusion drawn: the file was sorted in place.\n  TRUE STATE:    The shell performs redirections before running the command, and for output redirection 'if the file does not exist it is created; if it does exist it is truncated to zero size'. sort then opens an empty file, reads nothing and writes nothing, correctly and successfully. The original contents are gone.\n  CHECK:         Compare the line count before and after in the same command. Observed on bash 5.2.21: a three-line data.txt held zero lines after `sort data.txt > data.txt`, with sort exiting 0; `grep -v DEBUG conf.txt > conf.txt` left conf.txt at zero bytes, with grep exiting 1 because it had nothing to match.\n\nNS-055  [exit-code]  (status-excludes-the-delegated-command)\n  find exits zero regardless of what the command it ran returned\n  FALSE READING: `find . -name '*.json' -exec validate {} \\;` exits zero. Conclusion drawn: every file passed validation.\n  TRUE STATE:    find's exit status describes find's own traversal. The manual says it 'exits with status 0 if all files are processed successfully, greater than 0 if errors occur' and calls this 'deliberately a very broad description'. The status of each -exec child is not part of it. All of them may have failed.\n  CHECK:         Dispatch through a tool whose status covers the children: `find . -type f -print0 | xargs -0 -n1 validate`, which exits 123 'if any invocation of the command exited with status 1-125'. Observed on GNU findutils with two matching files: `find f -type f -exec false \\;` exited 0 and `-exec sh -c 'exit 3' \\;` also exited 0, while `find f -type f -print0 | xargs -0 -n1 false` exited 123 and the same pipeline with `true` exited 0.\n\nNS-056  [exit-code]  (argument-resolved-to-a-sibling-path)\n  A source path without a trailing slash adds a directory level at the destination\n  FALSE READING: `rsync -a build /var/www/site/` exits zero and the files are present under /var/www/site. Conclusion drawn: the build was deployed.\n  TRUE STATE:    rsync's manual: 'A trailing slash on the source changes this behavior to avoid creating an additional directory level at the destination.' Without it the directory is copied by name, so the files land in /var/www/site/build/, one level below where the server is configured to look. The previous build continues to be served.\n  CHECK:         List the destination rather than trusting the status: `find /var/www/site -maxdepth 2 -name index.html`. Observed on rsync 3.2.7: `rsync -a rs/src rs/dest/` exited 0 and produced rs/dest/src/index.html, while `rsync -a rs/src/ rs/dest/` exited 0 and produced rs/dest/index.html.\n\nNS-057  [http-response]  (body-stored-still-encoded)\n  A response saved without decompression is stored as its compressed bytes\n  FALSE READING: `curl -H 'Accept-Encoding: gzip' -o data.json URL` reports 200, exits zero, and data.json is the expected size. Conclusion drawn: the document was fetched.\n  TRUE STATE:    curl decompresses only when it negotiated the encoding itself. --compressed 'Request[s] a compressed response using one of the algorithms curl supports, and automatically decompress[es] the content'; a hand-written Accept-Encoding header asks for gzip without arranging for it to be undone. The file on disk begins 1f 8b and is a gzip member, not JSON.\n  CHECK:         Ask what the file is rather than how big it is: `file -b data.json`. Observed on curl 8.5.0 against a local gzip-encoding server: with a hand-set header the file was 'gzip compressed data' and `grep -c alpha data.json` found no match and exited 1; with --compressed the same URL produced 'JSON text data' and the same grep printed 1.\n\nNS-060  [file-on-disk]  (excluded-without-a-message)\n  git add says nothing when a pathspec matches only ignored files\n  FALSE READING: `git add .` exits zero, the commit succeeds, and `git status` afterwards reports a clean tree. Conclusion drawn: everything in the working directory is committed.\n  TRUE STATE:    git-add documents both branches: 'The git add command will not add ignored files by default. You can use the --force option to add ignored files. If you specify the exact filename of an ignored file, git add will fail with a list of ignored files. Otherwise it will silently ignore the file.' A broad pathspec takes the silent branch, and `git status` does not list ignored files, so the tree reads as clean.\n  CHECK:         Ask whether a specific path is excluded, and list what was excluded: `git check-ignore -v path` and `git status --short --ignored`. Observed on git 2.43.0 with a .gitignore containing dist/, *.local and config/*: `git add .` exited 0, `git status --short` listed only .gitignore and app.py, `git ls-files` confirmed two tracked files, and `git status --short --ignored` printed `!! config/`, `!! dist/` and `!! settings.local` for the three that were never staged.\n\nNS",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "green"
              },
              "reply": "2 of 90 entries match 'green':\n\nNS-017  [exit-code]  (silent-non-registration)\n  A test that does not match the discovery pattern is neither run nor reported\n  FALSE READING: pytest exits 0 with a green summary after a new test is added. Conclusion drawn: the new test passes.\n  TRUE STATE:    Collection matches `test_*.py` or `*_test.py` files, and `test`-prefixed functions or methods inside `Test`-prefixed classes. A file named `tests_auth.py`, or a function named `check_expiry`, is never collected. The green result belongs entirely to the other tests. The exit code that signals an empty run, 5, applies only when nothing at all was collected, so any other test in the suite conceals the omission.\n  CHECK:         `pytest --collect-only -q | grep expiry` — prints the node id if the test was collected, prints nothing if it was not. The same command distinguishes the two cases before any test is executed.\n\nNS-018  [exit-code]  (test-double-without-a-contract)\n  A bare mock answers to method names the real object no longer has\n  FALSE READING: The suite is green after a collaborator's method is renamed. Conclusion drawn: nothing depended on the old name.\n  TRUE STATE:    `Mock()` manufactures an attribute on first access and returns another Mock, which is callable and truthy. Code calling `client.charge_card(...)` against the double passes although the real class now exposes only `charge`. The test exercises an interface that no longer exists, and will keep passing however far the real object drifts.\n  CHECK:         Derive the double from the real class: `create_autospec(Client)` or `Mock(spec=Client)` raises AttributeError on exactly the call a bare `Mock()` accepted. Observed on 3.12: `Mock().exsits()` returns a truthy Mock; `create_autospec(Real).exsits()` raises AttributeError.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "status 0"
              },
              "reply": "1 of 90 entries match 'status 0':\n\nNS-055  [exit-code]  (status-excludes-the-delegated-command)\n  find exits zero regardless of what the command it ran returned\n  FALSE READING: `find . -name '*.json' -exec validate {} \\;` exits zero. Conclusion drawn: every file passed validation.\n  TRUE STATE:    find's exit status describes find's own traversal. The manual says it 'exits with status 0 if all files are processed successfully, greater than 0 if errors occur' and calls this 'deliberately a very broad description'. The status of each -exec child is not part of it. All of them may have failed.\n  CHECK:         Dispatch through a tool whose status covers the children: `find . -type f -print0 | xargs -0 -n1 validate`, which exits 123 'if any invocation of the command exited with status 1-125'. Observed on GNU findutils with two matching files: `find f -type f -exec false \\;` exited 0 and `-exec sh -c 'exit 3' \\;` also exited 0, while `find f -type f -print0 | xargs -0 -n1 false` exited 123 and the same pipeline with `true` exited 0.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "successfully"
              },
              "reply": "3 of 90 entries match 'successfully':\n\nNS-016  [exit-code]  (transport-success-as-semantic-success)\n  curl exits zero after successfully downloading an error page\n  FALSE READING: `curl -s -o data.json URL` exits 0 and data.json exists with content in it. Conclusion drawn: the fetch succeeded.\n  TRUE STATE:    The server answered 404 or 500. curl's task — transferring what the server chose to send — completed without fault, so the exit status is 0 and an HTML error page is now sitting in data.json under the name of the expected document.\n  CHECK:         Ask for the status separately, or make curl care about it: `curl -s -o data.json -w '%{http_code}\\n' URL`, or add `--fail`, which converts HTTP >= 400 into exit code 22. Observed on a 404: plain curl exits 0, `--fail` exits 22.\n\nNS-054  [exit-code]  (destination-truncated-before-the-source-is-read)\n  Output redirection empties the file before the command reads it\n  FALSE READING: `sort data.txt > data.txt` exits zero and data.txt is still there. Conclusion drawn: the file was sorted in place.\n  TRUE STATE:    The shell performs redirections before running the command, and for output redirection 'if the file does not exist it is created; if it does exist it is truncated to zero size'. sort then opens an empty file, reads nothing and writes nothing, correctly and successfully. The original contents are gone.\n  CHECK:         Compare the line count before and after in the same command. Observed on bash 5.2.21: a three-line data.txt held zero lines after `sort data.txt > data.txt`, with sort exiting 0; `grep -v DEBUG conf.txt > conf.txt` left conf.txt at zero bytes, with grep exiting 1 because it had nothing to match.\n\nNS-055  [exit-code]  (status-excludes-the-delegated-command)\n  find exits zero regardless of what the command it ran returned\n  FALSE READING: `find . -name '*.json' -exec validate {} \\;` exits zero. Conclusion drawn: every file passed validation.\n  TRUE STATE:    find's exit status describes find's own traversal. The manual says it 'exits with status 0 if all files are processed successfully, greater than 0 if errors occur' and calls this 'deliberately a very broad description'. The status of each -exec child is not part of it. All of them may have failed.\n  CHECK:         Dispatch through a tool whose status covers the children: `find . -type f -print0 | xargs -0 -n1 validate`, which exits 123 'if any invocation of the command exited with status 1-125'. Observed on GNU findutils with two matching files: `find f -type f -exec false \\;` exited 0 and `-exec sh -c 'exit 3' \\;` also exited 0, while `find f -type f -print0 | xargs -0 -n1 false` exited 123 and the same pipeline with `true` exited 0.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "exited 0"
              },
              "reply": "1 of 90 entries match 'exited 0':\n\nNS-015  [exit-code]  (status-from-the-wrong-process)\n  A pipeline returns the status of its last command, not its failing one\n  FALSE READING: `npm test | tee build.log` exits zero and the log file is written. Conclusion drawn: the tests passed.\n  TRUE STATE:    A shell reports the exit status of the last command in a pipeline. The test runner exited 1; tee wrote the log and exited 0, and 0 is what the pipeline returns. `set -e` does not intervene, because the pipeline as a whole succeeded.\n  CHECK:         Read the whole vector rather than the summary: `false | true; echo \"${PIPESTATUS[@]}\"` prints `1 0` where `$?` prints `0`. Or set `pipefail` first: `set -o pipefail; false | true` exits 1 where the same pipeline without it exits 0.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "query": "returns zero"
              },
              "reply": "2 of 90 entries match 'returns zero':\n\nNS-053  [exit-code]  (collector-discards-child-status)\n  wait without arguments returns zero however its children exited\n  FALSE READING: A script starts several jobs with `&`, calls `wait`, and exits zero. Conclusion drawn: every job succeeded.\n  TRUE STATE:    The bash manual is explicit: 'If id is not given, wait waits for all running background jobs and the last-executed process substitution, if its process id is the same as $!, and the return status is zero.' The children's statuses are reaped and discarded. Any number of them may have failed.\n  CHECK:         Wait on each recorded PID and keep the statuses: `rc=0; for p in \"${pids[@]}\"; do wait \"$p\" || rc=$?; done; exit $rc`. Observed on bash 5.2.21 with one child exiting 3 and another exiting 7: bare `wait` returned 0, `wait $pid` on the second returned 7, and `wait -n` returned the status of the first job to finish.\n\nNS-082  [exit-code]  (pattern-survives-as-a-literal)\n  An unmatched pattern is passed through as a literal filename\n  FALSE READING: `for f in releases/*.tar.gz; do verify \"$f\"; done` exits zero and the script reports the release set verified. Conclusion drawn: every archive was checked.\n  TRUE STATE:    bash(1): if no matching filenames are found, and the shell option nullglob is not enabled, the word is left unchanged. The loop therefore runs exactly once, with the variable set to the literal string `releases/*.tar.gz`, which names nothing. Any command that tolerates a missing operand, `rm -f` and `mkdir -p` and `grep -s` among them, returns zero, and so does the loop.\n  CHECK:         Count what the pattern matched instead of what the loop returned: `shopt -s nullglob; files=(releases/*.tar.gz); echo \"${#files[@]}\"`, and fail on zero. Observed on bash 5.2.21 in an empty directory: `for fn in *.log; do echo \"[$fn]\"; done` printed `[*.log]` and exited 0; `rm -f *.log` exited 0 having deleted nothing; the same loop under `shopt -s nullglob` ran zero iterations.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            }
          ],
          "task": "List the available verification instruments, then show the blind spots and full dossier for the exit-code instrument."
        },
        "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 search for **“cache”** returned three matches:\n\n- **NS-007:** Heuristic HTML caching makes a completed deploy invisible to its author.\n- **NS-043:** `curl -I` asks a different question from the GET request users make.\n- **NS-058:** A 200 response with an `Age` header was answered by a cache, not necessarily the origin.\n\nI retrieved the full entry for **NS-007**:\n\n- **Instrument / failure class:** HTTP response / stale observer\n- **False reading:** The old page is still on screen after deployment, so the deploy appears to have failed.\n- **True state:** The origin serves the new bytes, but without `Cache-Control` on the HTML, the browser applies heuristic freshness and retains the previous copy.\n- **Why the instrument is blind:** The deploy author may have visited the URL most often and therefore have the strongest cached copy.\n- **Discriminating check:** Hash the served bytes from a client that has never requested the URL—for example, `curl -s URL | md5sum`—and compare the hash with the file on disk.\n- **Cost of missing it:** The deploy may be repeated, rolled back, or rebuilt to fix a problem that exists only in one cache.\n- **Generalizes to:** Any layer answering on the origin’s behalf, including CDNs, proxies, DNS resolvers, and memoized clients.",
          "done_when": "The transcript shows the cache search results and the full entry for an ID found among them.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "query": "cache"
              },
              "reply": "3 of 90 entries match 'cache':\n\nNS-007  [http-response]  (stale-observer)\n  Heuristic HTML caching makes a completed deploy invisible to its author\n  FALSE READING: The old page is on screen after deploy. Conclusion drawn: the deploy failed.\n  TRUE STATE:    Origin serves the new bytes. With no Cache-Control on the HTML, the browser applies heuristic freshness and holds the previous copy.\n  CHECK:         Hash the served bytes from a client that has never requested it: curl -s URL | md5sum, compared to the file on disk.\n\nNS-043  [http-response]  (probe-takes-a-different-path)\n  curl -I asks a different question from the one users ask\n  FALSE READING: `curl -I https://site/report` returns 200 with a plausible Content-Length. Conclusion drawn: the page is up.\n  TRUE STATE:    -I sends HEAD. A server should send the same header fields it would for GET, but it is not obliged to do the same work: frameworks, proxies and CDNs commonly answer HEAD from metadata or cache without invoking the handler that renders the body. The GET a user or crawler performs can fail on the same URL at the same instant.\n  CHECK:         Request the body and discard it: `curl -s -o /dev/null -w '%{http_code}\\n' URL`. Observed against a local server whose HEAD path returns metadata and whose GET path fails: HEAD 200 and GET 500 on the same URL in the same second, with `curl -I --fail` exiting 0 while `curl --fail` exited 22.\n\nNS-058  [http-response]  (answered-by-an-intermediary-cache)\n  A 200 carrying an Age header was answered by a cache, not by the origin\n  FALSE READING: `curl -sI https://site/` returns 200 and a Date header. Conclusion drawn: the origin is serving this, now.\n  TRUE STATE:    RFC 9111: 'When a stored response is used to satisfy a request without validation, a cache MUST generate an Age header field, replacing any present in the response with a value equal to the stored response's current_age.' A nonzero Age is a shared cache stating how old the body is, and the Date header records when that stored response was generated rather than when the request was made.\n  CHECK:         Read the caching headers alongside the status: `curl -sI URL | grep -iE '^(date|age|x-cache|cf-cache-status):'`. Observed at 20:07:28 UTC: https://vercel.com/ returned `age: 551` with `date: Sun, 23 Aug 2026 19:58:15 GMT`, a body nine minutes old, under `cache-control: public, max-age=0, must-revalidate`; https://developer.mozilla.org/ returned `age: 3066` with `x-cache: MISS, HIT, HIT`; a Cloudflare-fronted origin returned `cf-cache-status: DYNAMIC` and no Age at all.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "id": "NS-007"
              },
              "reply": "NS-007  [http-response]  (stale-observer)\n  Heuristic HTML caching makes a completed deploy invisible to its author\n  FALSE READING: The old page is on screen after deploy. Conclusion drawn: the deploy failed.\n  TRUE STATE:    Origin serves the new bytes. With no Cache-Control on the HTML, the browser applies heuristic freshness and holds the previous copy.\n  WHY BLIND:     The author is the least reliable observer of their own deploy, having visited the URL most often and therefore holding the strongest cache.\n  CHECK:         Hash the served bytes from a client that has never requested it: curl -s URL | md5sum, compared to the file on disk.\n  COST:          The deploy is repeated, rolled back, or rebuilt to fix a problem that exists only in one cache.\n  GENERALISES:   Any layer that answers on the origin's behalf: CDN, proxy, DNS resolver, memoised client.",
              "tool": "get_entry"
            }
          ],
          "task": "Search the failure registry for 'cache', then retrieve the full entry for one matching result."
        },
        "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 registry search for **“cache”** returned three matches:\n\n- **NS-007:** Heuristic HTML caching makes a completed deploy invisible to its author.\n- **NS-043:** `curl -I` can receive a cached or metadata-only HEAD response even when GET fails.\n- **NS-058:** A 200 response with an `Age` header may have come from a cache rather than the origin.\n\n### Full entry: NS-007\n\n- **Instrument / failure class:** HTTP response / stale observer\n- **False reading:** The old page appears after deployment, so the author concludes the deployment failed.\n- **True state:** The origin serves the new bytes, but the browser retains the previous HTML using heuristic freshness because there is no `Cache-Control` header.\n- **Why the instrument is blind:** The author has likely visited the URL most often and therefore may have the strongest cached copy.\n- **Discriminating check:** From a client that has never requested the URL, run `curl -s URL | md5sum` and compare the hash with the file on disk.\n- **Cost of missing it:** The deployment may be repeated, rolled back, or rebuilt to fix a problem that exists only in one cache.\n- **Generalizes to:** Any layer that answers on the origin’s behalf, including CDNs, proxies, DNS resolvers, and memoized clients.",
          "done_when": "The transcript shows the cache search results and the full entry for an ID found among them.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "query": "cache"
              },
              "reply": "3 of 90 entries match 'cache':\n\nNS-007  [http-response]  (stale-observer)\n  Heuristic HTML caching makes a completed deploy invisible to its author\n  FALSE READING: The old page is on screen after deploy. Conclusion drawn: the deploy failed.\n  TRUE STATE:    Origin serves the new bytes. With no Cache-Control on the HTML, the browser applies heuristic freshness and holds the previous copy.\n  CHECK:         Hash the served bytes from a client that has never requested it: curl -s URL | md5sum, compared to the file on disk.\n\nNS-043  [http-response]  (probe-takes-a-different-path)\n  curl -I asks a different question from the one users ask\n  FALSE READING: `curl -I https://site/report` returns 200 with a plausible Content-Length. Conclusion drawn: the page is up.\n  TRUE STATE:    -I sends HEAD. A server should send the same header fields it would for GET, but it is not obliged to do the same work: frameworks, proxies and CDNs commonly answer HEAD from metadata or cache without invoking the handler that renders the body. The GET a user or crawler performs can fail on the same URL at the same instant.\n  CHECK:         Request the body and discard it: `curl -s -o /dev/null -w '%{http_code}\\n' URL`. Observed against a local server whose HEAD path returns metadata and whose GET path fails: HEAD 200 and GET 500 on the same URL in the same second, with `curl -I --fail` exiting 0 while `curl --fail` exited 22.\n\nNS-058  [http-response]  (answered-by-an-intermediary-cache)\n  A 200 carrying an Age header was answered by a cache, not by the origin\n  FALSE READING: `curl -sI https://site/` returns 200 and a Date header. Conclusion drawn: the origin is serving this, now.\n  TRUE STATE:    RFC 9111: 'When a stored response is used to satisfy a request without validation, a cache MUST generate an Age header field, replacing any present in the response with a value equal to the stored response's current_age.' A nonzero Age is a shared cache stating how old the body is, and the Date header records when that stored response was generated rather than when the request was made.\n  CHECK:         Read the caching headers alongside the status: `curl -sI URL | grep -iE '^(date|age|x-cache|cf-cache-status):'`. Observed at 20:07:28 UTC: https://vercel.com/ returned `age: 551` with `date: Sun, 23 Aug 2026 19:58:15 GMT`, a body nine minutes old, under `cache-control: public, max-age=0, must-revalidate`; https://developer.mozilla.org/ returned `age: 3066` with `x-cache: MISS, HIT, HIT`; a Cloudflare-fronted origin returned `cf-cache-status: DYNAMIC` and no Age at all.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "id": "NS-007"
              },
              "reply": "NS-007  [http-response]  (stale-observer)\n  Heuristic HTML caching makes a completed deploy invisible to its author\n  FALSE READING: The old page is on screen after deploy. Conclusion drawn: the deploy failed.\n  TRUE STATE:    Origin serves the new bytes. With no Cache-Control on the HTML, the browser applies heuristic freshness and holds the previous copy.\n  WHY BLIND:     The author is the least reliable observer of their own deploy, having visited the URL most often and therefore holding the strongest cache.\n  CHECK:         Hash the served bytes from a client that has never requested it: curl -s URL | md5sum, compared to the file on disk.\n  COST:          The deploy is repeated, rolled back, or rebuilt to fix a problem that exists only in one cache.\n  GENERALISES:   Any layer that answers on the origin's behalf: CDN, proxy, DNS resolver, memoised client.",
              "tool": "get_entry"
            }
          ],
          "task": "Search the failure registry for 'cache', then retrieve the full entry for one matching result."
        },
        "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 search for **“cache”** returned three matches:\n\n- **NS-007:** Heuristic HTML caching makes a completed deploy invisible to its author.\n- **NS-043:** `curl -I` can take a different path from the GET request users make.\n- **NS-058:** A 200 response with an `Age` header may have been served by a cache rather than the origin.\n\nI retrieved the full entry for **NS-007**:\n\n- **Instrument / failure class:** HTTP response / stale observer\n- **False reading:** The old page appears after deployment, suggesting the deploy failed.\n- **True state:** The origin serves the new bytes, but the browser retains the previous copy through heuristic freshness because the HTML lacks a `Cache-Control` header.\n- **Why the instrument is blind:** The author may be the least reliable observer because their frequent visits make them more likely to hold a cached copy.\n- **Discriminating check:** From a client that has never requested the URL, run `curl -s URL | md5sum` and compare the hash with the file on disk.\n- **Cost of missing it:** Repeating, rolling back, or rebuilding a deploy to fix a problem confined to a cache.\n- **Generalizes to:** Any layer that answers on the origin’s behalf, including CDNs, proxies, DNS resolvers, and memoized clients.",
          "done_when": "The transcript shows the cache search results and the full entry for an ID found among them.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "query": "cache"
              },
              "reply": "3 of 90 entries match 'cache':\n\nNS-007  [http-response]  (stale-observer)\n  Heuristic HTML caching makes a completed deploy invisible to its author\n  FALSE READING: The old page is on screen after deploy. Conclusion drawn: the deploy failed.\n  TRUE STATE:    Origin serves the new bytes. With no Cache-Control on the HTML, the browser applies heuristic freshness and holds the previous copy.\n  CHECK:         Hash the served bytes from a client that has never requested it: curl -s URL | md5sum, compared to the file on disk.\n\nNS-043  [http-response]  (probe-takes-a-different-path)\n  curl -I asks a different question from the one users ask\n  FALSE READING: `curl -I https://site/report` returns 200 with a plausible Content-Length. Conclusion drawn: the page is up.\n  TRUE STATE:    -I sends HEAD. A server should send the same header fields it would for GET, but it is not obliged to do the same work: frameworks, proxies and CDNs commonly answer HEAD from metadata or cache without invoking the handler that renders the body. The GET a user or crawler performs can fail on the same URL at the same instant.\n  CHECK:         Request the body and discard it: `curl -s -o /dev/null -w '%{http_code}\\n' URL`. Observed against a local server whose HEAD path returns metadata and whose GET path fails: HEAD 200 and GET 500 on the same URL in the same second, with `curl -I --fail` exiting 0 while `curl --fail` exited 22.\n\nNS-058  [http-response]  (answered-by-an-intermediary-cache)\n  A 200 carrying an Age header was answered by a cache, not by the origin\n  FALSE READING: `curl -sI https://site/` returns 200 and a Date header. Conclusion drawn: the origin is serving this, now.\n  TRUE STATE:    RFC 9111: 'When a stored response is used to satisfy a request without validation, a cache MUST generate an Age header field, replacing any present in the response with a value equal to the stored response's current_age.' A nonzero Age is a shared cache stating how old the body is, and the Date header records when that stored response was generated rather than when the request was made.\n  CHECK:         Read the caching headers alongside the status: `curl -sI URL | grep -iE '^(date|age|x-cache|cf-cache-status):'`. Observed at 20:07:28 UTC: https://vercel.com/ returned `age: 551` with `date: Sun, 23 Aug 2026 19:58:15 GMT`, a body nine minutes old, under `cache-control: public, max-age=0, must-revalidate`; https://developer.mozilla.org/ returned `age: 3066` with `x-cache: MISS, HIT, HIT`; a Cloudflare-fronted origin returned `cf-cache-status: DYNAMIC` and no Age at all.\n\nget_entry(id=...) for the full account of any of these.",
              "tool": "search"
            },
            {
              "arguments": {
                "id": "NS-007"
              },
              "reply": "NS-007  [http-response]  (stale-observer)\n  Heuristic HTML caching makes a completed deploy invisible to its author\n  FALSE READING: The old page is on screen after deploy. Conclusion drawn: the deploy failed.\n  TRUE STATE:    Origin serves the new bytes. With no Cache-Control on the HTML, the browser applies heuristic freshness and holds the previous copy.\n  WHY BLIND:     The author is the least reliable observer of their own deploy, having visited the URL most often and therefore holding the strongest cache.\n  CHECK:         Hash the served bytes from a client that has never requested it: curl -s URL | md5sum, compared to the file on disk.\n  COST:          The deploy is repeated, rolled back, or rebuilt to fix a problem that exists only in one cache.\n  GENERALISES:   Any layer that answers on the origin's behalf: CDN, proxy, DNS resolver, memoised client.",
              "tool": "get_entry"
            }
          ],
          "task": "Search the failure registry for 'cache', then retrieve the full entry for one matching result."
        },
        "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 registry returned nine failures that can make an API response look successful while its data is wrong or incomplete:\n\n| ID | Recorded failure | Distinguishing check |\n|---|---|---|\n| **NS-020** | S3 sends `200` before an upload assembly finishes; a later failure can appear as an XML `<Error>` body. | Parse the body even on `200`, or independently check the object’s length and ETag. |\n| **NS-021** | A batch write returns `200` but lists failed operations in `UnprocessedItems`. | Assert that `UnprocessedItems` is empty; retry any remaining items with backoff. |\n| **NS-019** | MySQL outside strict mode adjusts invalid values—for example, truncating a string—while reporting a successful statement. | Run `SHOW WARNINGS` immediately after the statement in the same session. |\n| **NS-025** | A JSON integer above JavaScript’s safe-integer range is rounded when parsed as a double. | Check `Number.isSafeInteger(value)` or compare with the original numeric text. |\n| **NS-042** | The connection dies after the `200` status but before the body finishes. | Check curl’s exit status as well as its HTTP status; curl reports exit code `18` for an incomplete transfer. |\n| **NS-045** | A GraphQL response returns `200` with field failures in an `errors` array and possibly `null` data. | Inspect `errors` and validate the expected data fields. |\n| **NS-057** | A response requested with a manually set gzip header is saved as compressed bytes rather than decoded JSON. | Inspect the file type; use curl’s `--compressed` to negotiate and decompress. |\n| **NS-058** | A cache serves an older response with `200`. | Inspect `Age`, `Date`, and cache-status headers. |\n| **NS-075** | An incorrectly short `Content-Length` causes the client to accept a truncated body, potentially even with exit code zero. | Validate the body itself—for example, parse JSON and check expected fields. |\n\n## Preflight after fetching a URL\n\nThe registry’s suggested checks are:\n\n1. **Check transfer status and get a usable ",
          "done_when": "The transcript shows the symptom-based results and the ordered preflight for fetching a URL.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "description": "API returns 200 but the data is wrong"
              },
              "reply": "Symptoms matching 'API returns 200 but the data is wrong':\n\n* The API returned 200 but the data is wrong\n  The status describes the transaction, not the payload.\n\n  NS-020  S3 sends 200 OK before it knows whether the upload completed\n    actually: S3 sends the 200 header first, then keeps the connection alive with whitespace while assembly runs, which can take minutes. A failure after that point is delivered as an `<Error>` document in the body of the response whose status line already said 200. The API reference states it directly: a 200 OK response can contain either a success or an error.\n    CHECK:    Parse the body even on 200 and look for an `<Error>` root element; or confirm independently with HeadObject and compare ContentLength and ETag against what was uploaded. Both differ between a completed and a failed assembly; the status code does not.\n\n  NS-021  A batch write returns 200 while handing back the items it did not write\n    actually: The individual puts and deletes are atomic but the batch is not. Operations that failed on throughput or an internal error are returned in `UnprocessedItems` inside the 200 body, and the caller is expected to resubmit them with backoff. The low-level client hands them back; only higher-level helpers, such as boto3's batch_writer, resubmit on their own.\n    CHECK:    Assert the map is empty rather than assuming it: `sum(len(v) for v in resp.get('UnprocessedItems', {}).values()) == 0`. It is 0 on a full write and non-zero whenever items were dropped.\n\n  NS-019  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n    actually: With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n    CHECK:    `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n\n  NS-025  A JSON integer above 2^53 is silently rounded when parsed as a double\n    actually: JavaScript parses JSON numbers as IEEE 754 doubles. The value becomes 10765432100123458000 — a different, equally plausible, non-existent identifier. RFC 8259 states that only integers within [-(2**53)+1, (2**53)-1] are interoperable in the sense that implementations will agree exactly on their values.\n    CHECK:    `Number.isSafeInteger(value)` — false for anything already rounded, true otherwise — or compare re-serialisation against the received text: `JSON.stringify(JSON.parse(s)) === s`. Verified: 10765432100123456789 parses to 10765432100123458000, isSafeInteger false, round-trip unequal; the same document parses exactly in Python.\n\n  NS-042  A truncated response arrives with its 200 already delivered\n    actually: The status line is sent before the body. A connection that dies mid-body leaves a response RFC 9112 calls incomplete: 'a message body that uses the chunked transfer coding is incomplete if the zero-sized chunk that terminates the encoding has not been received', and a client that receives one 'MUST record the message as incomplete'. curl does record it, as exit code 18, but the status code stays 200 and the partial bytes stay on disk.\n    CHECK:    Read curl's exit status, not only the code it reports: `curl -s -o data.json -w '%{http_code}\\n' URL; echo $?`. Observed against a local server that sends one chunk and closes the connection: `200` printed, exit status 18, and a 26-byte truncated prefix in data.json. `--fail` does not catch it, and `-s` suppresses the 'transfer closed with outstanding read data remaining' message that would otherwise appear.\n\n  NS-045  A GraphQL endpoint returns 200 for a response whose data never arrived\n    actually: Where the operation is executed and no request error is raised, the server should respond with 200 — 'this is the case even if a GraphQL field error is raised' during execution. Field errors are reported in an errors array while the corresponding data fields are null. Servers predating the GraphQL-over-HTTP specification answer 200 for request errors as well, so validation failures arrive the same way.\n    CHECK:    Assert on the payload: `jq -e 'has(\"errors\") | not' resp.json`, and treat null leaves as failures rather than as absent data. Observed against the public countries.trevorblades.com endpoint: a query naming a non-existent field returned http_code 200 with a body containing only an errors array and no data entry; a valid query returned http_code 200 with a data entry.\n\n  NS-057  A response saved without decompression is stored as its compressed bytes\n    actually: curl decompresses only when it negotiated the encoding itself. --compressed 'Request[s] a compressed response using one of the algorithms curl supports, and automatically decompress[es] the content'; a hand-written Accept-Encoding header asks for gzip without arranging for it to be undone. The file on disk begins 1f 8b and is a gzip member, not JSON.\n    CHECK:    Ask what the file is rather than how big it is: `file -b data.json`. Observed on curl 8.5.0 against a local gzip-encoding server: with a hand-set header the file was 'gzip compressed data' and `grep -c alpha data.json` found no match and exited 1; with --compressed the same URL produced 'JSON text data' and the same grep printed 1.\n\n  NS-058  A 200 carrying an Age header was answered by a cache, not by the origin\n    actually: RFC 9111: 'When a stored response is used to satisfy a request without validation, a cache MUST generate an Age header field, replacing any present in the response with a value equal to the stored response's current_age.' A nonzero Age is a shared cache stating how old the body is, and the Date header records when that stored response was generated rather than when the request was made.\n    CHECK:    Read the caching headers alongside the status: `curl -sI URL | grep -iE '^(date|age|x-cache|cf-cache-status):'`. Observed at 20:07:28 UTC: https://vercel.com/ returned `age: 551` with `date: Sun, 23 Aug 2026 19:58:15 GMT`, a body nine minutes old, under `cache-control: public, max-age=0, must-revalidate`; https://developer.mozilla.org/ returned `age: 3066` with `x-cache: MISS, HIT, HIT`; a Cloudflare-fronted origin returned `cf-cache-status: DYNAMIC` and no Age at all.\n\n  NS-075  A Content-Length shorter than the body truncates the response with no error anywhere\n    actually: RFC 9112 makes the declared length authoritative: if a valid Content-Length header field is present without Transfer-Encoding, its decimal value defines the expected message body length in octets. The client reads that many and stops, whatever else is on the connection. The commonest cause is a handler that computes the length in characters and writes the body in UTF-8, so the response is cut short by exactly the number of extra bytes the non-ASCII characters cost. RFC 9112 anticipates the remainder: a user agent MAY discard the remaining data or attempt to determine if that data belongs as part of the prior message body, which might be the case if the prior message's Content-Length value is incorrect.\n    CHECK:    Validate the body on its own terms rather than on the sender's: `curl -s URL | python3 -c 'import sys, json; json.load(sys.stdin)'`. Observed against a local handler serving a 73-byte UTF-8 JSON document under `Content-Length: 67`, the length of the same text in characters: curl reported code=200 size_download=67 and exited 0; the saved file ended `\"ok\":` and json.load raised `JSONDecodeError: Expecting value: line 1 column 62`. The identical handler taking its length from the encoded bytes returned 73 and parsed. A separate server declaring 16 against a 131-byte body gave curl, Python's http.client and Node all the same silent 16-byte pre",
              "tool": "from_symptom"
            },
            {
              "arguments": {
                "task": "fetched a URL"
              },
              "reply": "Before claiming 'fetched a URL' is done:\n\n== I fetched or scraped a resource ==\n   A URL was downloaded, an API called, or a page parsed.\n\n  1. Check the status code came with a body worth having.\n     $ curl -sS --fail --compressed URL >out; echo $?   # 22 on 4xx/5xx, 18 on truncation\n     guards against: NS-016 (curl exits zero after successfully downloading an error page); NS-042 (A 200 can precede a truncated body); NS-057 (A gzip body saved without being decompressed)\n\n  2. Parse the body even on 200. Some APIs report failure inside a success.\n     $ Look for an errors array, an Error root element, or unprocessed items.\n     guards against: NS-045 (GraphQL returns 200 with errors in the body); NS-020 (S3 sends 200 OK before it knows whether the upload completed); NS-021 (A batch write returns 200 with unprocessed items)\n\n  3. Check whether a cache answered.\n     $ curl -sI URL | grep -iE '^(age|x-cache|cf-cache-status):'\n     guards against: NS-058 (A 200 carrying an Age header came from a cache); NS-007 (Heuristic caching hides a deploy from its own author)\n\n  4. Prefer the canonical marker the document declares over any heuristic ranking.\n     $ og:image, rel=canonical, structured data — not 'the largest image on the page'\n     guards against: NS-006 (Scraping the largest image returns a recommendation)\n\n  5. Confirm credentials survived any redirect.\n     $ curl -v shows the Authorization header dropped on a cross-origin hop.\n     guards against: NS-044 (A cross-origin redirect drops credentials)\n\n  6. Check large integers survived the parse.\n     $ Round-trip the value; anything above 2^53 loses precision in a double.\n     guards against: NS-025 (A JSON integer above 2^53 is silently rounded)\n\n  7. Compare the bytes received against the declared length.\n     $ curl -sS -o body -w 'declared=%{size_download}\\n' URL && wc -c < body\n     guards against: NS-075 (A short Content-Length truncates a 200 silently)\n\n  8. Read the final status, not the first status line.\n     $ curl -sS -o /dev/null -w '%{http_code}\\n' URL   # a 103 can precede the answer\n     guards against: NS-078 (The first status line can be a 103, not the answer); NS-079 (HTTP/2 lowercases field names and empties the grep)\n\n== I deployed a static site ==\n   Files copied to a web root, or pushed to a host that serves them.\n\n  1. Hash the served bytes against the file on disk, from a client that has never requested the URL.\n     $ curl -s https://HOST/path | md5sum   # compare to md5sum of the local file\n     guards against: NS-007 (Heuristic caching hides a deploy from its own author); NS-058 (A 200 carrying an Age header came from a cache)\n\n  2. Check which layer answered, not just that something did.\n     $ curl -s -o /dev/null -w 'code=%{http_code} remote=%{remote_ip} age=%header{age}\\n' URL\n     guards against: NS-058 (A 200 carrying an Age header came from a cache); NS-059 (A probe from the origin skips the public path)\n\n  3. Request a path that should not exist. A catch-all will answer 200 for it.\n     $ curl -s -o /dev/null -w '%{http_code}\\n' https://HOST/definitely-not-here\n     guards against: NS-022 (An SPA catch-all returns 200 for URLs that do not exist); NS-043 (HEAD is not the request users make)\n\n  4. Confirm the copy landed where you meant, not one directory deeper.\n     $ ls the destination; rsync without a trailing slash nests the source directory\n     guards against: NS-056 (rsync without a trailing slash nests the source)\n\n  5. Fetch as a client would, following redirects and decompressing.\n     $ curl -sL --compressed --fail URL | head\n     guards against: NS-057 (A gzip body saved without being decompressed); NS-016 (curl exits zero after successfully downloading an error page); NS-042 (A 200 can precede a truncated body)\n\n  6. Confirm the page can be found, not merely fetched.\n     $ Search an exact phrase from the page in quotes; crawler hits in your log prove nothing about the index.\n     guards against: NS-090 (Crawled is not indexed, and neither is ranked)\n\nget_entry(id=...) for any of these in full.",
              "tool": "before_claiming"
            }
          ],
          "task": "What recorded failures could explain an API returning 200 while its data is wrong, and what verification preflight does the registry suggest after fetching a URL?"
        },
        "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 registry identifies ten recorded failures that can make a **200 response misleading**:\n\n| ID | Failure | Discriminating check |\n|---|---|---|\n| **NS-020** | S3 can send 200 before multipart assembly finishes, then put an error in the body. | Parse the body for an `<Error>` root, or independently check the completed object. |\n| **NS-021** | A batch write can return 200 with failed operations in `UnprocessedItems`. | Assert that the map is empty; retry unprocessed items with backoff. |\n| **NS-019** | Outside strict mode, MySQL can adjust invalid values—for example, truncate a string—while reporting success. | Run `SHOW WARNINGS` immediately after the statement in the same session. |\n| **NS-025** | A JSON integer above JavaScript’s safe-integer range can be silently rounded. | Check `Number.isSafeInteger(value)` and compare with the original received value. |\n| **NS-042** | The connection can fail after the 200 status but before the full body arrives. | Check curl’s exit status as well as the HTTP status; curl reports this case as exit code 18. |\n| **NS-045** | GraphQL can return 200 with an `errors` array and null or absent data. | Inspect `errors` and validate the expected data fields. |\n| **NS-057** | A response requested with a manually supplied `Accept-Encoding` header can be saved as compressed bytes rather than decoded JSON. | Check the saved file with `file`; use curl’s `--compressed` when appropriate. |\n| **NS-058** | A cache can return an older body with status 200. | Inspect `Age`, `Date`, and cache-status headers. |\n| **NS-075** | An incorrectly short `Content-Length` can silently truncate the body, even though curl exits zero. | Validate the body itself—for example, parse expected JSON—and compare against an independent expectation. |\n\n## Registry preflight after fetching a URL\n\nThe registry suggests these checks, as applicable:\n\n1. **Check transfer success and obtain a usable body:** `curl -sS --fail --compressed URL >out; echo $?`. This catches HTTP ",
          "done_when": "The transcript shows the symptom-based results and the ordered preflight for fetching a URL.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "description": "API returns 200 but the data is wrong"
              },
              "reply": "Symptoms matching 'API returns 200 but the data is wrong':\n\n* The API returned 200 but the data is wrong\n  The status describes the transaction, not the payload.\n\n  NS-020  S3 sends 200 OK before it knows whether the upload completed\n    actually: S3 sends the 200 header first, then keeps the connection alive with whitespace while assembly runs, which can take minutes. A failure after that point is delivered as an `<Error>` document in the body of the response whose status line already said 200. The API reference states it directly: a 200 OK response can contain either a success or an error.\n    CHECK:    Parse the body even on 200 and look for an `<Error>` root element; or confirm independently with HeadObject and compare ContentLength and ETag against what was uploaded. Both differ between a completed and a failed assembly; the status code does not.\n\n  NS-021  A batch write returns 200 while handing back the items it did not write\n    actually: The individual puts and deletes are atomic but the batch is not. Operations that failed on throughput or an internal error are returned in `UnprocessedItems` inside the 200 body, and the caller is expected to resubmit them with backoff. The low-level client hands them back; only higher-level helpers, such as boto3's batch_writer, resubmit on their own.\n    CHECK:    Assert the map is empty rather than assuming it: `sum(len(v) for v in resp.get('UnprocessedItems', {}).values()) == 0`. It is 0 on a full write and non-zero whenever items were dropped.\n\n  NS-019  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n    actually: With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n    CHECK:    `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n\n  NS-025  A JSON integer above 2^53 is silently rounded when parsed as a double\n    actually: JavaScript parses JSON numbers as IEEE 754 doubles. The value becomes 10765432100123458000 — a different, equally plausible, non-existent identifier. RFC 8259 states that only integers within [-(2**53)+1, (2**53)-1] are interoperable in the sense that implementations will agree exactly on their values.\n    CHECK:    `Number.isSafeInteger(value)` — false for anything already rounded, true otherwise — or compare re-serialisation against the received text: `JSON.stringify(JSON.parse(s)) === s`. Verified: 10765432100123456789 parses to 10765432100123458000, isSafeInteger false, round-trip unequal; the same document parses exactly in Python.\n\n  NS-042  A truncated response arrives with its 200 already delivered\n    actually: The status line is sent before the body. A connection that dies mid-body leaves a response RFC 9112 calls incomplete: 'a message body that uses the chunked transfer coding is incomplete if the zero-sized chunk that terminates the encoding has not been received', and a client that receives one 'MUST record the message as incomplete'. curl does record it, as exit code 18, but the status code stays 200 and the partial bytes stay on disk.\n    CHECK:    Read curl's exit status, not only the code it reports: `curl -s -o data.json -w '%{http_code}\\n' URL; echo $?`. Observed against a local server that sends one chunk and closes the connection: `200` printed, exit status 18, and a 26-byte truncated prefix in data.json. `--fail` does not catch it, and `-s` suppresses the 'transfer closed with outstanding read data remaining' message that would otherwise appear.\n\n  NS-045  A GraphQL endpoint returns 200 for a response whose data never arrived\n    actually: Where the operation is executed and no request error is raised, the server should respond with 200 — 'this is the case even if a GraphQL field error is raised' during execution. Field errors are reported in an errors array while the corresponding data fields are null. Servers predating the GraphQL-over-HTTP specification answer 200 for request errors as well, so validation failures arrive the same way.\n    CHECK:    Assert on the payload: `jq -e 'has(\"errors\") | not' resp.json`, and treat null leaves as failures rather than as absent data. Observed against the public countries.trevorblades.com endpoint: a query naming a non-existent field returned http_code 200 with a body containing only an errors array and no data entry; a valid query returned http_code 200 with a data entry.\n\n  NS-057  A response saved without decompression is stored as its compressed bytes\n    actually: curl decompresses only when it negotiated the encoding itself. --compressed 'Request[s] a compressed response using one of the algorithms curl supports, and automatically decompress[es] the content'; a hand-written Accept-Encoding header asks for gzip without arranging for it to be undone. The file on disk begins 1f 8b and is a gzip member, not JSON.\n    CHECK:    Ask what the file is rather than how big it is: `file -b data.json`. Observed on curl 8.5.0 against a local gzip-encoding server: with a hand-set header the file was 'gzip compressed data' and `grep -c alpha data.json` found no match and exited 1; with --compressed the same URL produced 'JSON text data' and the same grep printed 1.\n\n  NS-058  A 200 carrying an Age header was answered by a cache, not by the origin\n    actually: RFC 9111: 'When a stored response is used to satisfy a request without validation, a cache MUST generate an Age header field, replacing any present in the response with a value equal to the stored response's current_age.' A nonzero Age is a shared cache stating how old the body is, and the Date header records when that stored response was generated rather than when the request was made.\n    CHECK:    Read the caching headers alongside the status: `curl -sI URL | grep -iE '^(date|age|x-cache|cf-cache-status):'`. Observed at 20:07:28 UTC: https://vercel.com/ returned `age: 551` with `date: Sun, 23 Aug 2026 19:58:15 GMT`, a body nine minutes old, under `cache-control: public, max-age=0, must-revalidate`; https://developer.mozilla.org/ returned `age: 3066` with `x-cache: MISS, HIT, HIT`; a Cloudflare-fronted origin returned `cf-cache-status: DYNAMIC` and no Age at all.\n\n  NS-075  A Content-Length shorter than the body truncates the response with no error anywhere\n    actually: RFC 9112 makes the declared length authoritative: if a valid Content-Length header field is present without Transfer-Encoding, its decimal value defines the expected message body length in octets. The client reads that many and stops, whatever else is on the connection. The commonest cause is a handler that computes the length in characters and writes the body in UTF-8, so the response is cut short by exactly the number of extra bytes the non-ASCII characters cost. RFC 9112 anticipates the remainder: a user agent MAY discard the remaining data or attempt to determine if that data belongs as part of the prior message body, which might be the case if the prior message's Content-Length value is incorrect.\n    CHECK:    Validate the body on its own terms rather than on the sender's: `curl -s URL | python3 -c 'import sys, json; json.load(sys.stdin)'`. Observed against a local handler serving a 73-byte UTF-8 JSON document under `Content-Length: 67`, the length of the same text in characters: curl reported code=200 size_download=67 and exited 0; the saved file ended `\"ok\":` and json.load raised `JSONDecodeError: Expecting value: line 1 column 62`. The identical handler taking its length from the encoded bytes returned 73 and parsed. A separate server declaring 16 against a 131-byte body gave curl, Python's http.client and Node all the same silent 16-byte pre",
              "tool": "from_symptom"
            },
            {
              "arguments": {
                "task": "fetched a URL"
              },
              "reply": "Before claiming 'fetched a URL' is done:\n\n== I fetched or scraped a resource ==\n   A URL was downloaded, an API called, or a page parsed.\n\n  1. Check the status code came with a body worth having.\n     $ curl -sS --fail --compressed URL >out; echo $?   # 22 on 4xx/5xx, 18 on truncation\n     guards against: NS-016 (curl exits zero after successfully downloading an error page); NS-042 (A 200 can precede a truncated body); NS-057 (A gzip body saved without being decompressed)\n\n  2. Parse the body even on 200. Some APIs report failure inside a success.\n     $ Look for an errors array, an Error root element, or unprocessed items.\n     guards against: NS-045 (GraphQL returns 200 with errors in the body); NS-020 (S3 sends 200 OK before it knows whether the upload completed); NS-021 (A batch write returns 200 with unprocessed items)\n\n  3. Check whether a cache answered.\n     $ curl -sI URL | grep -iE '^(age|x-cache|cf-cache-status):'\n     guards against: NS-058 (A 200 carrying an Age header came from a cache); NS-007 (Heuristic caching hides a deploy from its own author)\n\n  4. Prefer the canonical marker the document declares over any heuristic ranking.\n     $ og:image, rel=canonical, structured data — not 'the largest image on the page'\n     guards against: NS-006 (Scraping the largest image returns a recommendation)\n\n  5. Confirm credentials survived any redirect.\n     $ curl -v shows the Authorization header dropped on a cross-origin hop.\n     guards against: NS-044 (A cross-origin redirect drops credentials)\n\n  6. Check large integers survived the parse.\n     $ Round-trip the value; anything above 2^53 loses precision in a double.\n     guards against: NS-025 (A JSON integer above 2^53 is silently rounded)\n\n  7. Compare the bytes received against the declared length.\n     $ curl -sS -o body -w 'declared=%{size_download}\\n' URL && wc -c < body\n     guards against: NS-075 (A short Content-Length truncates a 200 silently)\n\n  8. Read the final status, not the first status line.\n     $ curl -sS -o /dev/null -w '%{http_code}\\n' URL   # a 103 can precede the answer\n     guards against: NS-078 (The first status line can be a 103, not the answer); NS-079 (HTTP/2 lowercases field names and empties the grep)\n\n== I deployed a static site ==\n   Files copied to a web root, or pushed to a host that serves them.\n\n  1. Hash the served bytes against the file on disk, from a client that has never requested the URL.\n     $ curl -s https://HOST/path | md5sum   # compare to md5sum of the local file\n     guards against: NS-007 (Heuristic caching hides a deploy from its own author); NS-058 (A 200 carrying an Age header came from a cache)\n\n  2. Check which layer answered, not just that something did.\n     $ curl -s -o /dev/null -w 'code=%{http_code} remote=%{remote_ip} age=%header{age}\\n' URL\n     guards against: NS-058 (A 200 carrying an Age header came from a cache); NS-059 (A probe from the origin skips the public path)\n\n  3. Request a path that should not exist. A catch-all will answer 200 for it.\n     $ curl -s -o /dev/null -w '%{http_code}\\n' https://HOST/definitely-not-here\n     guards against: NS-022 (An SPA catch-all returns 200 for URLs that do not exist); NS-043 (HEAD is not the request users make)\n\n  4. Confirm the copy landed where you meant, not one directory deeper.\n     $ ls the destination; rsync without a trailing slash nests the source directory\n     guards against: NS-056 (rsync without a trailing slash nests the source)\n\n  5. Fetch as a client would, following redirects and decompressing.\n     $ curl -sL --compressed --fail URL | head\n     guards against: NS-057 (A gzip body saved without being decompressed); NS-016 (curl exits zero after successfully downloading an error page); NS-042 (A 200 can precede a truncated body)\n\n  6. Confirm the page can be found, not merely fetched.\n     $ Search an exact phrase from the page in quotes; crawler hits in your log prove nothing about the index.\n     guards against: NS-090 (Crawled is not indexed, and neither is ranked)\n\nget_entry(id=...) for any of these in full.",
              "tool": "before_claiming"
            }
          ],
          "task": "What recorded failures could explain an API returning 200 while its data is wrong, and what verification preflight does the registry suggest after fetching a URL?"
        },
        "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 registry lists nine recorded failures for an API that returns **200 while the data is wrong**:\n\n- **NS-020 — S3 error in a 200 body:** S3 can send the status before upload assembly finishes, then return an `<Error>` document. Parse the body or independently check the completed object.\n- **NS-021 — Partial batch write:** A 200 response can contain `UnprocessedItems`. Assert that the map is empty and retry outstanding items.\n- **NS-019 — MySQL silently adjusts data:** Outside strict mode, MySQL can truncate or coerce a value while reporting success. Run `SHOW WARNINGS` immediately afterward in the same session.\n- **NS-025 — Large JSON integer rounded:** JavaScript can lose precision when parsing integers beyond its safe-integer range. Check `Number.isSafeInteger` or compare with the original representation.\n- **NS-042 — Response truncated after the 200:** A connection can fail mid-body even though the status was already received. Check curl’s exit status as well as the HTTP code.\n- **NS-045 — GraphQL errors inside 200:** Field errors can appear in an `errors` array, with affected data fields set to null. Validate the payload, not just the status.\n- **NS-057 — Compressed bytes saved as data:** Manually requesting gzip without arranging decompression can leave a gzip file where JSON was expected. Inspect it with `file`, or use curl’s `--compressed`.\n- **NS-058 — Cached response:** A 200 can be an older cached response. Inspect `Age`, `Date`, and cache-status headers.\n- **NS-075 — Incorrectly short Content-Length:** A client can accept a truncated body and exit successfully if the sender declares too short a length. Validate the body itself—for example, parse the JSON.\n\n## Preflight after fetching a URL\n\nThe registry suggests these checks, as applicable:\n\n1. **Check the transfer and HTTP status:** `curl -sS --fail --compressed URL >out; echo $?` catches HTTP errors and some incomplete transfers while handling compression.\n2. **Parse the body even on 200:** Look for a",
          "done_when": "The transcript shows the symptom-based results and the ordered preflight for fetching a URL.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "description": "API returns 200 but the data is wrong"
              },
              "reply": "Symptoms matching 'API returns 200 but the data is wrong':\n\n* The API returned 200 but the data is wrong\n  The status describes the transaction, not the payload.\n\n  NS-020  S3 sends 200 OK before it knows whether the upload completed\n    actually: S3 sends the 200 header first, then keeps the connection alive with whitespace while assembly runs, which can take minutes. A failure after that point is delivered as an `<Error>` document in the body of the response whose status line already said 200. The API reference states it directly: a 200 OK response can contain either a success or an error.\n    CHECK:    Parse the body even on 200 and look for an `<Error>` root element; or confirm independently with HeadObject and compare ContentLength and ETag against what was uploaded. Both differ between a completed and a failed assembly; the status code does not.\n\n  NS-021  A batch write returns 200 while handing back the items it did not write\n    actually: The individual puts and deletes are atomic but the batch is not. Operations that failed on throughput or an internal error are returned in `UnprocessedItems` inside the 200 body, and the caller is expected to resubmit them with backoff. The low-level client hands them back; only higher-level helpers, such as boto3's batch_writer, resubmit on their own.\n    CHECK:    Assert the map is empty rather than assuming it: `sum(len(v) for v in resp.get('UnprocessedItems', {}).values()) == 0`. It is 0 on a full write and non-zero whenever items were dropped.\n\n  NS-019  Outside strict mode MySQL stores an adjusted value and calls the statement successful\n    actually: With strict mode absent from sql_mode, MySQL 'inserts adjusted values for invalid or missing values and produces warnings'. A string longer than the column is truncated to fit; `'abc'` into an integer column becomes 0. The statement is not aborted and the affected-row count is the same as for a clean insert.\n    CHECK:    `SHOW WARNINGS` (or `SHOW COUNT(*) WARNINGS`) immediately after the statement, in the same session: it returns rows such as `Data truncated for column ...` only when a value was adjusted, and nothing when it was not.\n\n  NS-025  A JSON integer above 2^53 is silently rounded when parsed as a double\n    actually: JavaScript parses JSON numbers as IEEE 754 doubles. The value becomes 10765432100123458000 — a different, equally plausible, non-existent identifier. RFC 8259 states that only integers within [-(2**53)+1, (2**53)-1] are interoperable in the sense that implementations will agree exactly on their values.\n    CHECK:    `Number.isSafeInteger(value)` — false for anything already rounded, true otherwise — or compare re-serialisation against the received text: `JSON.stringify(JSON.parse(s)) === s`. Verified: 10765432100123456789 parses to 10765432100123458000, isSafeInteger false, round-trip unequal; the same document parses exactly in Python.\n\n  NS-042  A truncated response arrives with its 200 already delivered\n    actually: The status line is sent before the body. A connection that dies mid-body leaves a response RFC 9112 calls incomplete: 'a message body that uses the chunked transfer coding is incomplete if the zero-sized chunk that terminates the encoding has not been received', and a client that receives one 'MUST record the message as incomplete'. curl does record it, as exit code 18, but the status code stays 200 and the partial bytes stay on disk.\n    CHECK:    Read curl's exit status, not only the code it reports: `curl -s -o data.json -w '%{http_code}\\n' URL; echo $?`. Observed against a local server that sends one chunk and closes the connection: `200` printed, exit status 18, and a 26-byte truncated prefix in data.json. `--fail` does not catch it, and `-s` suppresses the 'transfer closed with outstanding read data remaining' message that would otherwise appear.\n\n  NS-045  A GraphQL endpoint returns 200 for a response whose data never arrived\n    actually: Where the operation is executed and no request error is raised, the server should respond with 200 — 'this is the case even if a GraphQL field error is raised' during execution. Field errors are reported in an errors array while the corresponding data fields are null. Servers predating the GraphQL-over-HTTP specification answer 200 for request errors as well, so validation failures arrive the same way.\n    CHECK:    Assert on the payload: `jq -e 'has(\"errors\") | not' resp.json`, and treat null leaves as failures rather than as absent data. Observed against the public countries.trevorblades.com endpoint: a query naming a non-existent field returned http_code 200 with a body containing only an errors array and no data entry; a valid query returned http_code 200 with a data entry.\n\n  NS-057  A response saved without decompression is stored as its compressed bytes\n    actually: curl decompresses only when it negotiated the encoding itself. --compressed 'Request[s] a compressed response using one of the algorithms curl supports, and automatically decompress[es] the content'; a hand-written Accept-Encoding header asks for gzip without arranging for it to be undone. The file on disk begins 1f 8b and is a gzip member, not JSON.\n    CHECK:    Ask what the file is rather than how big it is: `file -b data.json`. Observed on curl 8.5.0 against a local gzip-encoding server: with a hand-set header the file was 'gzip compressed data' and `grep -c alpha data.json` found no match and exited 1; with --compressed the same URL produced 'JSON text data' and the same grep printed 1.\n\n  NS-058  A 200 carrying an Age header was answered by a cache, not by the origin\n    actually: RFC 9111: 'When a stored response is used to satisfy a request without validation, a cache MUST generate an Age header field, replacing any present in the response with a value equal to the stored response's current_age.' A nonzero Age is a shared cache stating how old the body is, and the Date header records when that stored response was generated rather than when the request was made.\n    CHECK:    Read the caching headers alongside the status: `curl -sI URL | grep -iE '^(date|age|x-cache|cf-cache-status):'`. Observed at 20:07:28 UTC: https://vercel.com/ returned `age: 551` with `date: Sun, 23 Aug 2026 19:58:15 GMT`, a body nine minutes old, under `cache-control: public, max-age=0, must-revalidate`; https://developer.mozilla.org/ returned `age: 3066` with `x-cache: MISS, HIT, HIT`; a Cloudflare-fronted origin returned `cf-cache-status: DYNAMIC` and no Age at all.\n\n  NS-075  A Content-Length shorter than the body truncates the response with no error anywhere\n    actually: RFC 9112 makes the declared length authoritative: if a valid Content-Length header field is present without Transfer-Encoding, its decimal value defines the expected message body length in octets. The client reads that many and stops, whatever else is on the connection. The commonest cause is a handler that computes the length in characters and writes the body in UTF-8, so the response is cut short by exactly the number of extra bytes the non-ASCII characters cost. RFC 9112 anticipates the remainder: a user agent MAY discard the remaining data or attempt to determine if that data belongs as part of the prior message body, which might be the case if the prior message's Content-Length value is incorrect.\n    CHECK:    Validate the body on its own terms rather than on the sender's: `curl -s URL | python3 -c 'import sys, json; json.load(sys.stdin)'`. Observed against a local handler serving a 73-byte UTF-8 JSON document under `Content-Length: 67`, the length of the same text in characters: curl reported code=200 size_download=67 and exited 0; the saved file ended `\"ok\":` and json.load raised `JSONDecodeError: Expecting value: line 1 column 62`. The identical handler taking its length from the encoded bytes returned 73 and parsed. A separate server declaring 16 against a 131-byte body gave curl, Python's http.client and Node all the same silent 16-byte pre",
              "tool": "from_symptom"
            },
            {
              "arguments": {
                "task": "fetched a URL"
              },
              "reply": "Before claiming 'fetched a URL' is done:\n\n== I fetched or scraped a resource ==\n   A URL was downloaded, an API called, or a page parsed.\n\n  1. Check the status code came with a body worth having.\n     $ curl -sS --fail --compressed URL >out; echo $?   # 22 on 4xx/5xx, 18 on truncation\n     guards against: NS-016 (curl exits zero after successfully downloading an error page); NS-042 (A 200 can precede a truncated body); NS-057 (A gzip body saved without being decompressed)\n\n  2. Parse the body even on 200. Some APIs report failure inside a success.\n     $ Look for an errors array, an Error root element, or unprocessed items.\n     guards against: NS-045 (GraphQL returns 200 with errors in the body); NS-020 (S3 sends 200 OK before it knows whether the upload completed); NS-021 (A batch write returns 200 with unprocessed items)\n\n  3. Check whether a cache answered.\n     $ curl -sI URL | grep -iE '^(age|x-cache|cf-cache-status):'\n     guards against: NS-058 (A 200 carrying an Age header came from a cache); NS-007 (Heuristic caching hides a deploy from its own author)\n\n  4. Prefer the canonical marker the document declares over any heuristic ranking.\n     $ og:image, rel=canonical, structured data — not 'the largest image on the page'\n     guards against: NS-006 (Scraping the largest image returns a recommendation)\n\n  5. Confirm credentials survived any redirect.\n     $ curl -v shows the Authorization header dropped on a cross-origin hop.\n     guards against: NS-044 (A cross-origin redirect drops credentials)\n\n  6. Check large integers survived the parse.\n     $ Round-trip the value; anything above 2^53 loses precision in a double.\n     guards against: NS-025 (A JSON integer above 2^53 is silently rounded)\n\n  7. Compare the bytes received against the declared length.\n     $ curl -sS -o body -w 'declared=%{size_download}\\n' URL && wc -c < body\n     guards against: NS-075 (A short Content-Length truncates a 200 silently)\n\n  8. Read the final status, not the first status line.\n     $ curl -sS -o /dev/null -w '%{http_code}\\n' URL   # a 103 can precede the answer\n     guards against: NS-078 (The first status line can be a 103, not the answer); NS-079 (HTTP/2 lowercases field names and empties the grep)\n\n== I deployed a static site ==\n   Files copied to a web root, or pushed to a host that serves them.\n\n  1. Hash the served bytes against the file on disk, from a client that has never requested the URL.\n     $ curl -s https://HOST/path | md5sum   # compare to md5sum of the local file\n     guards against: NS-007 (Heuristic caching hides a deploy from its own author); NS-058 (A 200 carrying an Age header came from a cache)\n\n  2. Check which layer answered, not just that something did.\n     $ curl -s -o /dev/null -w 'code=%{http_code} remote=%{remote_ip} age=%header{age}\\n' URL\n     guards against: NS-058 (A 200 carrying an Age header came from a cache); NS-059 (A probe from the origin skips the public path)\n\n  3. Request a path that should not exist. A catch-all will answer 200 for it.\n     $ curl -s -o /dev/null -w '%{http_code}\\n' https://HOST/definitely-not-here\n     guards against: NS-022 (An SPA catch-all returns 200 for URLs that do not exist); NS-043 (HEAD is not the request users make)\n\n  4. Confirm the copy landed where you meant, not one directory deeper.\n     $ ls the destination; rsync without a trailing slash nests the source directory\n     guards against: NS-056 (rsync without a trailing slash nests the source)\n\n  5. Fetch as a client would, following redirects and decompressing.\n     $ curl -sL --compressed --fail URL | head\n     guards against: NS-057 (A gzip body saved without being decompressed); NS-016 (curl exits zero after successfully downloading an error page); NS-042 (A 200 can precede a truncated body)\n\n  6. Confirm the page can be found, not merely fetched.\n     $ Search an exact phrase from the page in quotes; crawler hits in your log prove nothing about the index.\n     guards against: NS-090 (Crawled is not indexed, and neither is ranked)\n\nget_entry(id=...) for any of these in full.",
              "tool": "before_claiming"
            }
          ],
          "task": "What recorded failures could explain an API returning 200 while its data is wrong, and what verification preflight does the registry suggest after fetching a URL?"
        },
        "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": "01M82WNVZSDAKHDX2A8HAN4PA3",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.6,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.62,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.51,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.99,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.98,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.99,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.93,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.93,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.91,
      "question": "w08"
    }
  ]
}
