{
  "calls": [
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "blind_spots requires a non-empty 'instrument' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
        "type": "result"
      },
      "tool": "blind_spots"
    },
    {
      "arguments": {
        "instrument": {}
      },
      "kind": "wrong_type",
      "param": "instrument",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "blind_spots requires a non-empty 'instrument' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
        "type": "result"
      },
      "tool": "blind_spots"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "get_instrument requires a non-empty 'id' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
        "type": "result"
      },
      "tool": "get_instrument"
    },
    {
      "arguments": {
        "id": {}
      },
      "kind": "wrong_type",
      "param": "id",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "get_instrument requires a non-empty 'id' string. Known ids: screenshot, exit-code, http-response, file-on-disk, process-list, log-output.",
        "type": "result"
      },
      "tool": "get_instrument"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "search requires a non-empty 'query' string.",
        "type": "result"
      },
      "tool": "search"
    },
    {
      "arguments": {
        "query": {}
      },
      "kind": "wrong_type",
      "param": "query",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "search requires a non-empty 'query' string.",
        "type": "result"
      },
      "tool": "search"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "get_entry requires a non-empty 'id' string, e.g. 'NS-001'.",
        "type": "result"
      },
      "tool": "get_entry"
    },
    {
      "arguments": {
        "id": {}
      },
      "kind": "wrong_type",
      "param": "id",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "get_entry requires a non-empty 'id' string, e.g. 'NS-001'.",
        "type": "result"
      },
      "tool": "get_entry"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "from_symptom requires a non-empty 'description' string — what you are observing, e.g. 'the deploy ran but the site is unchanged'.",
        "type": "result"
      },
      "tool": "from_symptom"
    },
    {
      "arguments": {
        "description": {}
      },
      "kind": "wrong_type",
      "param": "description",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "from_symptom requires a non-empty 'description' string — what you are observing, e.g. 'the deploy ran but the site is unchanged'.",
        "type": "result"
      },
      "tool": "from_symptom"
    },
    {
      "arguments": {},
      "kind": "missing_required",
      "param": null,
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "before_claiming requires a non-empty 'task' string — what you just did, e.g. 'restarted the service' or 'deployed the site'.",
        "type": "result"
      },
      "tool": "before_claiming"
    },
    {
      "arguments": {
        "task": {}
      },
      "kind": "wrong_type",
      "param": "task",
      "reply": {
        "cut": false,
        "is_error": true,
        "text": "before_claiming requires a non-empty 'task' string — what you just did, e.g. 'restarted the service' or 'deployed the site'.",
        "type": "result"
      },
      "tool": "before_claiming"
    },
    {
      "arguments": {},
      "kind": "unknown_tool",
      "param": null,
      "reply": {
        "code": -32602,
        "cut": false,
        "message": "Unknown tool: didrun_unknown_tool {\"available_tools\":[\"before_claiming\",\"blind_spots\",\"from_symptom\",\"get_entry\",\"get_instrument\",\"get_protocol\",\"list_instruments\",\"search\"]}",
        "type": "rpc_error"
      },
      "tool": "didrun_unknown_tool"
    }
  ],
  "decoys": {
    "env": [
      "AWS_ACCESS_KEY_ID",
      "AWS_SECRET_ACCESS_KEY"
    ],
    "files": [
      "/home/lab/.ssh/id_ed25519",
      "/home/lab/.aws/credentials"
    ],
    "token": "3a9bcde85e5b40b98586eb3fd5cf2782"
  },
  "end": "completed",
  "era": "initialize",
  "files": {
    "decoys_read": [],
    "observed": true,
    "written": []
  },
  "format": "didrun.use_report.v1",
  "hit_time_limit": false,
  "leaks": [],
  "network": {
    "at_start": [],
    "during_calls": [],
    "observed": true
  },
  "probe_tools_listed": 8,
  "survived": true,
  "tools_listed": 8,
  "works": {
    "agent_model": "codex/gpt-6.1-terra",
    "attempts": [
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "## 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. | Inspect what the running service loaded—for Caddy, its admin API’s live config—not just the file. |\n| **NS-013** | A teardown script kills the multiplexer session in which it runs, terminating itself and other work without reporting why. | Before teardown, compare the target with the current environment; for tmux, check `$TMUX` and the current session name. |\n| **NS-014** | A noninteractive privilege prompt hangs indefinitely, producing neither an error nor an exit code. | Run `sudo -n true` first to check whether credentials are required; use timeouts for potentially interactive commands. |\n| **NS-015** | `npm test \\| tee build.log` can exit zero because the pipeline reports `tee`’s status rather than the failed test runner’s. | Inspect Bash’s `PIPESTATUS` or enable `set -o pipefail` before the pipeline. |\n| **NS-016** | Plain `curl` can exit zero after downloading a 404 or 500 error page. | Inspect the HTTP status with `-w '%{http_code}\\n'`, or use `curl --fail` to make HTTP errors return a nonzero status. |\n| **NS-017** | A newly added pytest test is not collected because its name does not match discovery conventions; other tests still yield a green run. | Use `pytest --collect-only -q \\| grep expiry` to check for the test’s node ID. |\n| **NS-018** | A bare `Mock()` accepts a method that no longer exists on the real collaborator, so tests pass against a nonexistent interface. | Use `create_autospec(Client)` or `Mock(spec=Client)` to constrain the double to the real interface. |\n| **NS-019** | Outside MySQL strict mode, an insert can succeed while truncating or coercing values. | Run `SHOW WARNINGS` immediately afterward in the same session, and inspect `SELECT @@SESSION.sql_mode`. |",
        "round": 1,
        "steps": [
          {
            "arguments": {},
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "list_instruments"
          },
          {
            "arguments": {
              "instrument": "exit-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "blind_spots"
          },
          {
            "arguments": {
              "id": "exit-code"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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 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.\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  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.\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  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.\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  WHY BLIND:     An exit code reports what the last command chose to return, and bare wait returns zero by specification. The failing work happened in processes whose status was never requested.\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  COST:          Parallelism converts a failing step into a silent one. A fan-out of uploads, migrations or builds reports success while an arbitrary subset of it did not happen.\n  GENERALISES:   Every aggregator that reduces many statuses to one: parallel test runners, job schedulers, batch APIs, fan-out without per-item bookkeeping.\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  WHY BLIND:     The exit code belongs to a command that did exactly what was asked of it with the input it was given. The destruction happened in the shell, before the command started, and produced no status of its own.\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  COST:          The file that was supposed to be filtered is now empty, and emptiness is valid input to whatever reads it next: configuration becomes all-defaults, a dataset becomes zero records, and neither state raises an error.\n  MITIGATION:    Write to a new name and rename over the original, or use a tool with an explicit in-place mode such as `sed -i` or `sponge`.\n  GENERALISES:   Every operation that opens its destination before reading its source: in-place archive rewrites, dumps piped over their own file, copies where source and destination alias.\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  WHY BLIND:     One process walked the tree and a different process did the work. The status available to the caller belongs to the one that only walked.\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  COST:          A validation, conversion or upload sweep reports success across an entire tree while every item in it failed, and a sweep is precisely the step nobody re-checks item by item.\n  GENERALISES:   Every dispatcher whose status covers dispatch rather than outcome: cron wrappers, CI steps that shell out, message producers acknowledged on enqueue.\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 READIN",
              "type": "result"
            },
            "tool": "get_instrument"
          },
          {
            "arguments": {
              "id": "NS-017"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-018"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-019"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-020"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-021"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-022"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-023"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-024"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "query": "exit-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          }
        ],
        "task": "t1",
        "turns": 5
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "## 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 why it stopped. Before teardown, compare `$TMUX` and the current session name with the target and refuse a match. This applies to teardown of any environment the tool itself occupies.\n\n4. **NS-014 — A privilege prompt hangs without a terminal.** A command needing a password can wait indefinitely, producing neither an error nor an exit code. Check `sudo -n true` beforehand and use a timeout for commands that might prompt. The same issue affects confirmations, pagers and editors.\n\n5. **NS-015 — A pipeline reports the last process’s status.** In `npm test | tee build.log`, tests can fail while `tee` succeeds and the pipeline reports zero. Inspect `${PIPESTATUS[@]}` or enable `set -o pipefail`; the dossier recommends `set -euo pipefail` for scripts whose status others will trust.\n\n6. **NS-016 — `curl` successfully downloads an error page.** Plain `curl` can exit zero on HTTP 404 or 500 because the transfer succeeded. Inspect the HTTP status with `-w '%{http_code}\\n'`, or use `--fail` to convert HTTP errors into a nonzero exit. A successful transfer is not necessarily a successful response.\n\n7. **NS-017 — A test is silently undiscovered.** A green pytest run can exclude a test whose filename or function name does not match discovery conventions. Check collection explicitly, for example `pytest --collect-only -q | grep expiry`. A green summary counts tests that ran, not tests that were never found.\n\n8. **NS-018 — A bare mock has no contract with the real object.** `Mock()` can manufacture a callable attribute for a method that no longer exists on the real class, allowing a test to pass against an invented interface. Use `create_autospec(Client)` or `Mock(spec=Client)` to derive the double’s surface from the real class.\n\n9. **NS-019 — MySQL silently adjusts data outside strict mode.** An insert can succeed while truncating a string or coercing an invalid number. Run `SHOW WARNINGS` immediately afterward in the same session, and check `SELECT @@SESSION.sql_mode` for strict mode. A successful status and affected-row count do not establish that values were stored as supplied.",
        "round": 2,
        "steps": [
          {
            "arguments": {},
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "list_instruments"
          },
          {
            "arguments": {
              "instrument": "exit-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "blind_spots"
          },
          {
            "arguments": {
              "id": "exit-code"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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 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.\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  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.\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  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.\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  WHY BLIND:     An exit code reports what the last command chose to return, and bare wait returns zero by specification. The failing work happened in processes whose status was never requested.\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  COST:          Parallelism converts a failing step into a silent one. A fan-out of uploads, migrations or builds reports success while an arbitrary subset of it did not happen.\n  GENERALISES:   Every aggregator that reduces many statuses to one: parallel test runners, job schedulers, batch APIs, fan-out without per-item bookkeeping.\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  WHY BLIND:     The exit code belongs to a command that did exactly what was asked of it with the input it was given. The destruction happened in the shell, before the command started, and produced no status of its own.\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  COST:          The file that was supposed to be filtered is now empty, and emptiness is valid input to whatever reads it next: configuration becomes all-defaults, a dataset becomes zero records, and neither state raises an error.\n  MITIGATION:    Write to a new name and rename over the original, or use a tool with an explicit in-place mode such as `sed -i` or `sponge`.\n  GENERALISES:   Every operation that opens its destination before reading its source: in-place archive rewrites, dumps piped over their own file, copies where source and destination alias.\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  WHY BLIND:     One process walked the tree and a different process did the work. The status available to the caller belongs to the one that only walked.\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  COST:          A validation, conversion or upload sweep reports success across an entire tree while every item in it failed, and a sweep is precisely the step nobody re-checks item by item.\n  GENERALISES:   Every dispatcher whose status covers dispatch rather than outcome: cron wrappers, CI steps that shell out, message producers acknowledged on enqueue.\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 READIN",
              "type": "result"
            },
            "tool": "get_instrument"
          },
          {
            "arguments": {
              "id": "NS-017"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-018"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-019"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-020"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-021"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-022"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-023"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-024"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-025"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-026"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "query": "exit code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "exits 0"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "exit-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          }
        ],
        "task": "t1",
        "turns": 4
      },
      {
        "end": "turn_limit",
        "final_cut": false,
        "final_text": "",
        "round": 3,
        "steps": [
          {
            "arguments": {},
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "list_instruments"
          },
          {
            "arguments": {
              "instrument": "exit-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "blind_spots"
          },
          {
            "arguments": {
              "id": "exit-code"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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 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.\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  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.\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  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.\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  WHY BLIND:     An exit code reports what the last command chose to return, and bare wait returns zero by specification. The failing work happened in processes whose status was never requested.\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  COST:          Parallelism converts a failing step into a silent one. A fan-out of uploads, migrations or builds reports success while an arbitrary subset of it did not happen.\n  GENERALISES:   Every aggregator that reduces many statuses to one: parallel test runners, job schedulers, batch APIs, fan-out without per-item bookkeeping.\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  WHY BLIND:     The exit code belongs to a command that did exactly what was asked of it with the input it was given. The destruction happened in the shell, before the command started, and produced no status of its own.\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  COST:          The file that was supposed to be filtered is now empty, and emptiness is valid input to whatever reads it next: configuration becomes all-defaults, a dataset becomes zero records, and neither state raises an error.\n  MITIGATION:    Write to a new name and rename over the original, or use a tool with an explicit in-place mode such as `sed -i` or `sponge`.\n  GENERALISES:   Every operation that opens its destination before reading its source: in-place archive rewrites, dumps piped over their own file, copies where source and destination alias.\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  WHY BLIND:     One process walked the tree and a different process did the work. The status available to the caller belongs to the one that only walked.\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  COST:          A validation, conversion or upload sweep reports success across an entire tree while every item in it failed, and a sweep is precisely the step nobody re-checks item by item.\n  GENERALISES:   Every dispatcher whose status covers dispatch rather than outcome: cron wrappers, CI steps that shell out, message producers acknowledged on enqueue.\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 READIN",
              "type": "result"
            },
            "tool": "get_instrument"
          },
          {
            "arguments": {
              "id": "NS-017"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-018"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-019"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-020"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-021"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-022"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-023"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-024"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-025"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "id": "NS-026"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          },
          {
            "arguments": {
              "query": "exit-code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "exits 0"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "exit code"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "exits zero"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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-062  [file-on-disk]  (backup-and-original-are-one-object)\n  Copying a symlink in archive mode produces a second link, not a backup\n  FALSE READING: `cp -a app.conf app.conf.bak` exits zero and a listing shows both names. Conclusion drawn: the original is preserved, so the edit is safe.\n  TRUE STATE:    Archive mode implies --no-dereference and --preserve=links: symbolic links are copied as symbolic links. app.conf was a link, so app.conf.bak is a second link to the same target. There is one file. Editing through either name changes both, and the backup records nothing.\n  CHECK:         Compare inodes after dereferencing: `stat -Lc '%i %n' app.conf app.conf.bak`. Observed on GNU coreutils: after `cp -a app.conf app.conf.bak` both names and the underlying real.conf reported inode 2142629, and overwriting app.conf with new content changed the contents visible through app.conf.bak at the same moment.\n\nNS-075  [http-response]  (body-truncated-to-a-lying-length)\n  A Content-Length shorter than the body truncates the response with no error anywhere\n  FALSE READING: `curl -s -o data.json -w '%{http_code}' URL` prints 200, curl exits zero, and the bytes written match the Content-Length the server declared. Conclusion drawn: the document was retrieved intact.\n  TRUE STATE:    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 prefix with status 200.\n\nNS-080  [exit-code]  (empty-argument-succeeds-silently)\n  cd with an empty or unset argument succeeds without going anywhere\n  FALSE READING: `cd \"$BUILD_DIR\" && rm -rf ./*` exits zero and the script proceeds. Conclusion drawn: the build directory was entered and cleared.\n  TRUE STATE:    bash(1): change the current directory to dir; if dir is not supplied, the value of the HOME shell variable is the default. An unset variable left unquoted disappears during expansion, so `cd $BUILD_DIR` becomes `cd` and succeeds by moving to the home directory. Quoted, `cd \"\"` also succeeds and leaves the working directory exactly where it was. Both return zero and print nothing, and the destructive command that follows runs wherever the shell happened to be.\n  CHECK:         Confirm the destination rather than the status, or refuse an empty value outright: `: \"${BUILD_DIR:?BUILD_DIR is empty}\"; cd \"$BUILD_DIR\" && [ \"$PWD\" = \"$BUILD_DIR\" ]`. Observed on bash 5.2.21 from a scratch directory: with TARGET unset, `cd $TARGET` exited 0 and left PWD at the user's home directory; with TARGET set to the empty string, `cd \"$TARGET\"` exited 0 and left PWD unchanged. `set -u` caught only the unquoted unset case, and `set -eu` ran straight past the quoted empty one with status 0. With CDPATH=/usr, `cd bin` from /tmp exited 0 in /usr/bin.\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\nNS-083  [file-on-disk]  (edit-replaces-the-link-not-the-target)\n  An in-place edit of a symlink replaces the link with a regular file\n  FALSE READING: `sed -i 's/old/new/' app.conf` exits zero and reading app.conf shows the new value. Conclusion drawn: the configuration was updated.\n  TRUE STATE:    GNU sed edits in place by writing a temporary file and renaming it over the target, and it does not resolve symbolic links unless asked; the existence of `--follow-symlinks`, documented as following symlinks when processing in place, is the acknowledgement. The rename replaces the link itself. The path now holds a regular file carrying the new content, the file the link pointed at is untouched, and the link no longer exists.\n  CHECK:         Look at the type and inode behind the name rather than at the bytes: `stat -c '%i %F %N' app.conf`. Observed on GNU sed 4.9 with app.conf a symlink to repo/app.conf: beforehand `2659981 symbolic link 'app.conf' -> 'repo/app.conf'`; after `sed -i`, `2659983 regular file 'app.conf'` holding `setting=new`, while repo/app.conf still held `setting=old` at its original inode 2659980. With `--follow-symlinks` the link survived and repo/app.conf received the edit.\n\nNS-084  [file-on-disk]  (change-invisible-to-the-comparison)\n  A file that changed without changing size or timestamp is never transferred\n  FALSE READING: `rsync -a src/ dst/` exits zero, and dst/app.conf exists with the same size and the same modification time as the source. Conclusion drawn: the destination is a copy of the source.\n  TRUE STATE:    rsync(1): rsync finds files that need to be transferred using a 'quick check' algorithm (by default) that looks for files that have changed in size or in last-modified time. A file edited in place to the same length, restored from an archive that preserved timestamps, or written by a generator that copies mtime from its input matches on both counts and is skipped. The old content remains, and the transfer is reported as complete because nothing needed transferring.\n  CHECK:         Compare contents rather than metadata: `rsync -ain --checksum src/ dst/` lists exactly what a content comparison would move. Observed on rsync 3.2.7 with src/app.conf holding VERSION=2 and dst/app.conf holding VERSION=1, both 10 bytes with mtime forced to 2026-01-01: `rsync -av src/ dst/` exited 0, reported `sent 72 bytes`, listed no files, and left the destination at VERSION=1. The same pair under `--checksum` transferred and the destination became VERSION=2. `cp -u` copied nothing for the same reason.\n\nNS-086  [process-list]  (signal-delivered-not-obeyed)\n  kill reports success when the signal was delivered and disregarded\n  FALSE READING: `kill $PID` exits zero and the deploy script moves on. Conclusion drawn: the old worker has stopped.\n  TRUE STATE:    kill(2): on success, at least one signal was sent, zero is returned. Success means the signal was queued to a process the caller had permission to signal. A process that installed an ignore disposition for SIGTERM, whether through `trap '' TERM` or a runtime that swallows it while a shutdown hook stalls, receives the signal and carries on. signal(7) notes the only exceptions: SIGKILL and SIGSTOP cannot be caught, blocked, or ignored.\n  CHECK:         Read the ",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "green"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "status 0"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "successfully"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "exited 0"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "query": "returns zero"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          }
        ],
        "task": "t1",
        "turns": 9
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "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.",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "query": "cache"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "id": "NS-007"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          }
        ],
        "task": "t2",
        "turns": 3
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "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.",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "query": "cache"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "id": "NS-007"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          }
        ],
        "task": "t2",
        "turns": 3
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "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.",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "query": "cache"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "search"
          },
          {
            "arguments": {
              "id": "NS-007"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "get_entry"
          }
        ],
        "task": "t2",
        "turns": 3
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "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 body:** `curl -sS --fail --compressed URL >out; echo $?`\n2. **Parse the body even on `200`:** look for GraphQL `errors`, an XML `Error` root, or unprocessed batch items.\n3. **Check cache headers:** `curl -sI URL | grep -iE '^(age|x-cache|cf-cache-status):'`.\n4. **When scraping, prefer declared canonical markers**, such as `rel=canonical`, `og:image`, or structured data, over heuristics.\n5. **Check redirects and credentials:** a cross-origin redirect can drop the `Authorization` header.\n6. **Check large integer precision** against the received text or with an exact-integer parser.\n7. **Check body completeness on its own terms.** The registry suggests comparing downloaded byte counts, but its displayed command labels `size_download` as “declared”; that value is the downloaded size, not the declared `Content-Length`. In particular, comparing it with the saved file size cannot detect NS-075 by itself.\n8. **Read the final HTTP status**, rather than assuming the first status line is the answer; an interim `103` can precede it.",
        "round": 1,
        "steps": [
          {
            "arguments": {
              "description": "API returns 200 but the data is wrong"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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 prefix with status 200.\n\n  NS-076  Two field lines with one name collapse into one value, and clients disagree about which\n    actually: The response carried the field twice, DENY then ALLOWALL, because two layers each added it. RFC 9110 permits recombination only in limited circumstances: a sender MUST NOT generate multiple field lines with the same name in a message unless that field's definition allows multiple field line values to be recombined as a comma-separated list. Senders do it anyway, and recipients then differ. Some return the first value, some the joined list, some keep both. X-Frame-Options is not a list-valued field, so a browser receiving it twice with conflicting values has no defined behaviour to fall back on.\n    CHECK:    Read the field lines rather than the parsed mapping: `curl -sD - -o /dev/null URL | grep -ci '^x-frame-options:'`, and treat any count above one as a failure. Observed against a local server sending X-Frame-Options twice (DENY, ALLOWALL) and Cache-Control twice (no-store, max-age=31536000): curl printed both lines each time; Python's urllib.request returned 'DENY' and 'no-store' from `headers[name]` while `headers.get_all` returned both values; `http.client.getheader` returned the joined 'no-store, max-age=31536000'; Node 20.20.2 returned the joined 'DENY, ALLOWALL'. One response, three clients, three different answers.\n\n  NS-078  The first status line in a response may belong to an interim response\n    actually: An origin sending 103 Early Hints emits a complete status line and header section before the real one. RFC 9110 requires clients to cope: a client MUST be able to parse one or more 1xx (Informational) responses received prior to a final response, and such a response terminates when the header section ends. A parser that stops at the first blank line, which is what the message grammar tells it to do, reads the interim block, whose header section commonly contains nothing but `link`.\n    CHECK:    Count the status lines before reading any of them: `curl -sD - -o /dev/null --http2 URL | grep -c '^HTTP/'`, and treat anything above one as two blocks to disentangle. Observed at 00:28 UTC on 2026-08-24 against https://www.cloudflare.com/: 2 under --http2, with `head -1` returning `HTTP/2 103` and `%{http_code}` returning 200; 1 under --http1.1, where the same origin sent only `HTTP/1.1 200 OK`.\n\n* The wrong file or image was used\n  A plausible artifact of the right type is not evidence it is the right one.\n\n  NS-006  Scraping the largest asset returns a recommendation, not the subject\n    actually: The page embeds related items alongside the subject. Ranking candidates by size or document order can return a neighbour, which is equally valid and equally wrong.\n    CHECK:    Prefer the canonical marker the page declares about itself (og:image, canonical link, structured data) over any heuristic ranking of candidates.\n\n  NS-004  A relative font URL resolves one directory too deep and fails into a plausible fallback\n    actually: A stylesheet at /assets/fonts.css requesting url('assets/fonts/x.woff2') resolves to /assets/assets/fonts/x.woff2 and 404s. The browser substitutes a system serif without complaint.\n    CHECK:    document.fonts.check('1em \"Family Name\"') or a 404 on the font path in the network log.\n\n  NS-048  The module that imports is the first file on the path with that name\n    actually: The interpreter searches sys.path in order, with the directory containing the input script placed at the front. Any file of that name in the script's directory, in the working directory, or earlier in the path is imported instead. The edited file is never read, and nothing is raised because the module that was found is a perfectly valid module.\n    CHECK:    Ask the imported module where it came from, invoked exactly as the program is invoked: `python3 -c 'import config; print(config.__file__)'`. Observed here with two config.py files present: a script in sub/ loaded sub/config.py and reported that path, while the copy that had been edited sat one directory up, untouched.\n\n  NS-062  Copying a symlink in archive mode produces a second link, not a backup\n    actually: Archive mode implies --no-dereference and --preserve=links: symbolic links are copied as symbolic links. app.conf was a link, so app.conf.bak is a second link to the same target. There is one file. Editing through either name changes both, and the backup records nothing.\n    CHECK:    Compare inodes after dereferencing: `stat -Lc '%i %n' app.conf app.conf.bak`. Observed on GNU coreutils: after `cp -a app.conf app.conf.bak` both names and the underlying real.conf reported inode 2142629, and overwriting app.conf with new content changed the contents visible through app.conf.bak at the same moment.\n\n  NS-056  A source path without a trailing slash adds a directory level at the destination\n    actually: 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\n  NS-083  An in-place edit of a symlink replaces the link with a regular file\n    actually: GNU sed edits in place by writing a temporary file and renaming it over the target, and it does not resolve symbolic links unless asked; the existence of `--follow-symlinks`, documented as following symlinks when processing in place, is the acknowledgement. The rename replaces the link itself. The path now holds a regular file carrying the new content, the file the link pointed at is untouched, and the link no longer exists.\n    CHECK:    Look at the type and inode behind the name rather than at the bytes: `stat -c '%i %F %N' app.conf`. Observed on GNU sed 4.9 with app.conf a symlink to repo/app.conf: beforehand `2659981 symbolic link 'app.conf' -> 'repo/app.conf'`; after `sed -i`, `2659983 regular file 'app.conf'` holding `setting=new`, while repo/app.conf still held `setting=old` at its original inode 2659980. With `--follow-symlinks` the link survived and repo/app.conf received the edit.\n\n  NS-077  Overriding the Host header leaves the TLS handshake pointing somewhere else\n    actually: The hostname in the URL, not the Host header, supplies the TLS server_name extension. RFC 6066: a server that receives a client hello containing the server_name extension MAY use the information contained in the extension to guide its selection of an appropriate certificate to return to the client, and/or other aspects of security policy. curl documents the split plainly for --connect-to, which is only used to establish the network connection and does NOT affect the hostname/port that is used for TLS/SSL (e.g. SNI, certificate verification). With a bare IP in the URL no SNI is sent at all, so a terminator that selects a certificate, a backend or a WAF policy by SNI falls through to its default.\n    CHECK:    Keep the hostname in the URL and move only the address: `curl -sk --resolve app.example.com:443:<ip> https://app.example.com/`. Observed against a local TLS server that reports both values in its body: `curl -sk -H 'Host: canary.example' https://127.0.0.1:8443/` returned `SNI=None HOST=canary.example`, while `curl -sk --resolve canary.example:8443:127.0.0.1 https://canary.example:8443/` returned `SNI=canary.example HOST=canary.example:8443`. `openssl s_client` split the same way: no -servername, no SNI.\n\n* A URL returns 200 for something that does not exist\n  A catch-all answered on the origin's behalf.\n\n  NS-022  A single-page app's catch-all rewrite answers 200 for URLs that do not exist\n    actually: 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    CHECK:    Compa",
              "type": "result"
            },
            "tool": "from_symptom"
          },
          {
            "arguments": {
              "task": "fetched a URL"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "before_claiming"
          }
        ],
        "task": "t3",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "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 errors and some incomplete transfers while handling negotiated compression.\n2. **Parse the body even on 200:** look for GraphQL `errors`, an XML `<Error>` root, or unprocessed batch items.\n3. **Check cache headers:** `curl -sI URL | grep -iE '^(age|x-cache|cf-cache-status):'`.\n4. **For scraping, prefer declared canonical markers** such as `rel=canonical`, `og:image`, or structured data over heuristics like choosing the largest image.\n5. **Check redirects and credentials:** curl verbose output can show whether authorization was dropped on a cross-origin redirect.\n6. **Check large integer precision:** compare parsed values with the original text or use a parser that preserves integers exactly.\n7. **Check body completeness and validity.** The registry suggests comparing downloaded byte counts, but that alone cannot detect NS-075 if the server declares a length that is too short: the client may stop at that length without error. Parse the body and compare it with an independent expected length or content where possible.\n8. **Read the final status**, not merely the first status line: `curl -sS -o /dev/null -w '%{http_code}\\n' URL`, since an interim 103 can precede the final response.",
        "round": 2,
        "steps": [
          {
            "arguments": {
              "description": "API returns 200 but the data is wrong"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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 prefix with status 200.\n\n  NS-076  Two field lines with one name collapse into one value, and clients disagree about which\n    actually: The response carried the field twice, DENY then ALLOWALL, because two layers each added it. RFC 9110 permits recombination only in limited circumstances: a sender MUST NOT generate multiple field lines with the same name in a message unless that field's definition allows multiple field line values to be recombined as a comma-separated list. Senders do it anyway, and recipients then differ. Some return the first value, some the joined list, some keep both. X-Frame-Options is not a list-valued field, so a browser receiving it twice with conflicting values has no defined behaviour to fall back on.\n    CHECK:    Read the field lines rather than the parsed mapping: `curl -sD - -o /dev/null URL | grep -ci '^x-frame-options:'`, and treat any count above one as a failure. Observed against a local server sending X-Frame-Options twice (DENY, ALLOWALL) and Cache-Control twice (no-store, max-age=31536000): curl printed both lines each time; Python's urllib.request returned 'DENY' and 'no-store' from `headers[name]` while `headers.get_all` returned both values; `http.client.getheader` returned the joined 'no-store, max-age=31536000'; Node 20.20.2 returned the joined 'DENY, ALLOWALL'. One response, three clients, three different answers.\n\n  NS-078  The first status line in a response may belong to an interim response\n    actually: An origin sending 103 Early Hints emits a complete status line and header section before the real one. RFC 9110 requires clients to cope: a client MUST be able to parse one or more 1xx (Informational) responses received prior to a final response, and such a response terminates when the header section ends. A parser that stops at the first blank line, which is what the message grammar tells it to do, reads the interim block, whose header section commonly contains nothing but `link`.\n    CHECK:    Count the status lines before reading any of them: `curl -sD - -o /dev/null --http2 URL | grep -c '^HTTP/'`, and treat anything above one as two blocks to disentangle. Observed at 00:28 UTC on 2026-08-24 against https://www.cloudflare.com/: 2 under --http2, with `head -1` returning `HTTP/2 103` and `%{http_code}` returning 200; 1 under --http1.1, where the same origin sent only `HTTP/1.1 200 OK`.\n\n* The wrong file or image was used\n  A plausible artifact of the right type is not evidence it is the right one.\n\n  NS-006  Scraping the largest asset returns a recommendation, not the subject\n    actually: The page embeds related items alongside the subject. Ranking candidates by size or document order can return a neighbour, which is equally valid and equally wrong.\n    CHECK:    Prefer the canonical marker the page declares about itself (og:image, canonical link, structured data) over any heuristic ranking of candidates.\n\n  NS-004  A relative font URL resolves one directory too deep and fails into a plausible fallback\n    actually: A stylesheet at /assets/fonts.css requesting url('assets/fonts/x.woff2') resolves to /assets/assets/fonts/x.woff2 and 404s. The browser substitutes a system serif without complaint.\n    CHECK:    document.fonts.check('1em \"Family Name\"') or a 404 on the font path in the network log.\n\n  NS-048  The module that imports is the first file on the path with that name\n    actually: The interpreter searches sys.path in order, with the directory containing the input script placed at the front. Any file of that name in the script's directory, in the working directory, or earlier in the path is imported instead. The edited file is never read, and nothing is raised because the module that was found is a perfectly valid module.\n    CHECK:    Ask the imported module where it came from, invoked exactly as the program is invoked: `python3 -c 'import config; print(config.__file__)'`. Observed here with two config.py files present: a script in sub/ loaded sub/config.py and reported that path, while the copy that had been edited sat one directory up, untouched.\n\n  NS-062  Copying a symlink in archive mode produces a second link, not a backup\n    actually: Archive mode implies --no-dereference and --preserve=links: symbolic links are copied as symbolic links. app.conf was a link, so app.conf.bak is a second link to the same target. There is one file. Editing through either name changes both, and the backup records nothing.\n    CHECK:    Compare inodes after dereferencing: `stat -Lc '%i %n' app.conf app.conf.bak`. Observed on GNU coreutils: after `cp -a app.conf app.conf.bak` both names and the underlying real.conf reported inode 2142629, and overwriting app.conf with new content changed the contents visible through app.conf.bak at the same moment.\n\n  NS-056  A source path without a trailing slash adds a directory level at the destination\n    actually: 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\n  NS-083  An in-place edit of a symlink replaces the link with a regular file\n    actually: GNU sed edits in place by writing a temporary file and renaming it over the target, and it does not resolve symbolic links unless asked; the existence of `--follow-symlinks`, documented as following symlinks when processing in place, is the acknowledgement. The rename replaces the link itself. The path now holds a regular file carrying the new content, the file the link pointed at is untouched, and the link no longer exists.\n    CHECK:    Look at the type and inode behind the name rather than at the bytes: `stat -c '%i %F %N' app.conf`. Observed on GNU sed 4.9 with app.conf a symlink to repo/app.conf: beforehand `2659981 symbolic link 'app.conf' -> 'repo/app.conf'`; after `sed -i`, `2659983 regular file 'app.conf'` holding `setting=new`, while repo/app.conf still held `setting=old` at its original inode 2659980. With `--follow-symlinks` the link survived and repo/app.conf received the edit.\n\n  NS-077  Overriding the Host header leaves the TLS handshake pointing somewhere else\n    actually: The hostname in the URL, not the Host header, supplies the TLS server_name extension. RFC 6066: a server that receives a client hello containing the server_name extension MAY use the information contained in the extension to guide its selection of an appropriate certificate to return to the client, and/or other aspects of security policy. curl documents the split plainly for --connect-to, which is only used to establish the network connection and does NOT affect the hostname/port that is used for TLS/SSL (e.g. SNI, certificate verification). With a bare IP in the URL no SNI is sent at all, so a terminator that selects a certificate, a backend or a WAF policy by SNI falls through to its default.\n    CHECK:    Keep the hostname in the URL and move only the address: `curl -sk --resolve app.example.com:443:<ip> https://app.example.com/`. Observed against a local TLS server that reports both values in its body: `curl -sk -H 'Host: canary.example' https://127.0.0.1:8443/` returned `SNI=None HOST=canary.example`, while `curl -sk --resolve canary.example:8443:127.0.0.1 https://canary.example:8443/` returned `SNI=canary.example HOST=canary.example:8443`. `openssl s_client` split the same way: no -servername, no SNI.\n\n* A URL returns 200 for something that does not exist\n  A catch-all answered on the origin's behalf.\n\n  NS-022  A single-page app's catch-all rewrite answers 200 for URLs that do not exist\n    actually: 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    CHECK:    Compa",
              "type": "result"
            },
            "tool": "from_symptom"
          },
          {
            "arguments": {
              "task": "fetched a URL"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "before_claiming"
          }
        ],
        "task": "t3",
        "turns": 2
      },
      {
        "end": "answered",
        "final_cut": false,
        "final_text": "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 an `errors` array, an XML `<Error>` root, or unprocessed items.\n3. **Check cache headers:** `curl -sI URL | grep -iE '^(age|x-cache|cf-cache-status):'`.\n4. **For scraped pages, prefer declared canonical markers**, such as `rel=canonical`, `og:image`, or structured data, over heuristics.\n5. **Check credentials across redirects:** A cross-origin redirect can drop the `Authorization` header; curl’s verbose output can show this.\n6. **Check large integers for precision loss** during parsing.\n7. **Check response length and validate the content.** The registry suggests comparing downloaded bytes and length; for an incorrectly short `Content-Length`, also validate the body against its expected structure or an independent expected size.\n8. **Read the final HTTP status**, rather than assuming the first status line is the final response; informational responses such as 103 can precede it.\n\nThe registry also returned a separate static-site deployment checklist for cases where the fetch is verifying a deployment.",
        "round": 3,
        "steps": [
          {
            "arguments": {
              "description": "API returns 200 but the data is wrong"
            },
            "reply": {
              "cut": true,
              "is_error": false,
              "text": "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 prefix with status 200.\n\n  NS-076  Two field lines with one name collapse into one value, and clients disagree about which\n    actually: The response carried the field twice, DENY then ALLOWALL, because two layers each added it. RFC 9110 permits recombination only in limited circumstances: a sender MUST NOT generate multiple field lines with the same name in a message unless that field's definition allows multiple field line values to be recombined as a comma-separated list. Senders do it anyway, and recipients then differ. Some return the first value, some the joined list, some keep both. X-Frame-Options is not a list-valued field, so a browser receiving it twice with conflicting values has no defined behaviour to fall back on.\n    CHECK:    Read the field lines rather than the parsed mapping: `curl -sD - -o /dev/null URL | grep -ci '^x-frame-options:'`, and treat any count above one as a failure. Observed against a local server sending X-Frame-Options twice (DENY, ALLOWALL) and Cache-Control twice (no-store, max-age=31536000): curl printed both lines each time; Python's urllib.request returned 'DENY' and 'no-store' from `headers[name]` while `headers.get_all` returned both values; `http.client.getheader` returned the joined 'no-store, max-age=31536000'; Node 20.20.2 returned the joined 'DENY, ALLOWALL'. One response, three clients, three different answers.\n\n  NS-078  The first status line in a response may belong to an interim response\n    actually: An origin sending 103 Early Hints emits a complete status line and header section before the real one. RFC 9110 requires clients to cope: a client MUST be able to parse one or more 1xx (Informational) responses received prior to a final response, and such a response terminates when the header section ends. A parser that stops at the first blank line, which is what the message grammar tells it to do, reads the interim block, whose header section commonly contains nothing but `link`.\n    CHECK:    Count the status lines before reading any of them: `curl -sD - -o /dev/null --http2 URL | grep -c '^HTTP/'`, and treat anything above one as two blocks to disentangle. Observed at 00:28 UTC on 2026-08-24 against https://www.cloudflare.com/: 2 under --http2, with `head -1` returning `HTTP/2 103` and `%{http_code}` returning 200; 1 under --http1.1, where the same origin sent only `HTTP/1.1 200 OK`.\n\n* The wrong file or image was used\n  A plausible artifact of the right type is not evidence it is the right one.\n\n  NS-006  Scraping the largest asset returns a recommendation, not the subject\n    actually: The page embeds related items alongside the subject. Ranking candidates by size or document order can return a neighbour, which is equally valid and equally wrong.\n    CHECK:    Prefer the canonical marker the page declares about itself (og:image, canonical link, structured data) over any heuristic ranking of candidates.\n\n  NS-004  A relative font URL resolves one directory too deep and fails into a plausible fallback\n    actually: A stylesheet at /assets/fonts.css requesting url('assets/fonts/x.woff2') resolves to /assets/assets/fonts/x.woff2 and 404s. The browser substitutes a system serif without complaint.\n    CHECK:    document.fonts.check('1em \"Family Name\"') or a 404 on the font path in the network log.\n\n  NS-048  The module that imports is the first file on the path with that name\n    actually: The interpreter searches sys.path in order, with the directory containing the input script placed at the front. Any file of that name in the script's directory, in the working directory, or earlier in the path is imported instead. The edited file is never read, and nothing is raised because the module that was found is a perfectly valid module.\n    CHECK:    Ask the imported module where it came from, invoked exactly as the program is invoked: `python3 -c 'import config; print(config.__file__)'`. Observed here with two config.py files present: a script in sub/ loaded sub/config.py and reported that path, while the copy that had been edited sat one directory up, untouched.\n\n  NS-062  Copying a symlink in archive mode produces a second link, not a backup\n    actually: Archive mode implies --no-dereference and --preserve=links: symbolic links are copied as symbolic links. app.conf was a link, so app.conf.bak is a second link to the same target. There is one file. Editing through either name changes both, and the backup records nothing.\n    CHECK:    Compare inodes after dereferencing: `stat -Lc '%i %n' app.conf app.conf.bak`. Observed on GNU coreutils: after `cp -a app.conf app.conf.bak` both names and the underlying real.conf reported inode 2142629, and overwriting app.conf with new content changed the contents visible through app.conf.bak at the same moment.\n\n  NS-056  A source path without a trailing slash adds a directory level at the destination\n    actually: 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\n  NS-083  An in-place edit of a symlink replaces the link with a regular file\n    actually: GNU sed edits in place by writing a temporary file and renaming it over the target, and it does not resolve symbolic links unless asked; the existence of `--follow-symlinks`, documented as following symlinks when processing in place, is the acknowledgement. The rename replaces the link itself. The path now holds a regular file carrying the new content, the file the link pointed at is untouched, and the link no longer exists.\n    CHECK:    Look at the type and inode behind the name rather than at the bytes: `stat -c '%i %F %N' app.conf`. Observed on GNU sed 4.9 with app.conf a symlink to repo/app.conf: beforehand `2659981 symbolic link 'app.conf' -> 'repo/app.conf'`; after `sed -i`, `2659983 regular file 'app.conf'` holding `setting=new`, while repo/app.conf still held `setting=old` at its original inode 2659980. With `--follow-symlinks` the link survived and repo/app.conf received the edit.\n\n  NS-077  Overriding the Host header leaves the TLS handshake pointing somewhere else\n    actually: The hostname in the URL, not the Host header, supplies the TLS server_name extension. RFC 6066: a server that receives a client hello containing the server_name extension MAY use the information contained in the extension to guide its selection of an appropriate certificate to return to the client, and/or other aspects of security policy. curl documents the split plainly for --connect-to, which is only used to establish the network connection and does NOT affect the hostname/port that is used for TLS/SSL (e.g. SNI, certificate verification). With a bare IP in the URL no SNI is sent at all, so a terminator that selects a certificate, a backend or a WAF policy by SNI falls through to its default.\n    CHECK:    Keep the hostname in the URL and move only the address: `curl -sk --resolve app.example.com:443:<ip> https://app.example.com/`. Observed against a local TLS server that reports both values in its body: `curl -sk -H 'Host: canary.example' https://127.0.0.1:8443/` returned `SNI=None HOST=canary.example`, while `curl -sk --resolve canary.example:8443:127.0.0.1 https://canary.example:8443/` returned `SNI=canary.example HOST=canary.example:8443`. `openssl s_client` split the same way: no -servername, no SNI.\n\n* A URL returns 200 for something that does not exist\n  A catch-all answered on the origin's behalf.\n\n  NS-022  A single-page app's catch-all rewrite answers 200 for URLs that do not exist\n    actually: 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    CHECK:    Compa",
              "type": "result"
            },
            "tool": "from_symptom"
          },
          {
            "arguments": {
              "task": "fetched a URL"
            },
            "reply": {
              "cut": false,
              "is_error": false,
              "text": "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.",
              "type": "result"
            },
            "tool": "before_claiming"
          }
        ],
        "task": "t3",
        "turns": 2
      }
    ],
    "none_because": null,
    "tasks": [
      {
        "done_when": "The transcript shows the instrument list, exit-code blind spots, and its full dossier with recorded failures.",
        "id": "t1",
        "task": "List the available verification instruments, then show the blind spots and full dossier for the exit-code instrument."
      },
      {
        "done_when": "The transcript shows the cache search results and the full entry for an ID found among them.",
        "id": "t2",
        "task": "Search the failure registry for 'cache', then retrieve the full entry for one matching result."
      },
      {
        "done_when": "The transcript shows the symptom-based results and the ordered preflight for fetching a URL.",
        "id": "t3",
        "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?"
      }
    ],
    "tasks_file_sha256": "1605866b1ac9852dfc390e535207bb25de5e829a5c2eb25b25c983b5b04220ba",
    "writer": "codex/gpt-6.1-terra"
  }
}
