{
  "schemaVersion": 1,
  "id": "coding-systematic-debugging-2026-10-04",
  "skillSlug": "systematic-debugging",
  "title": "Zero-value bug: observed failure, hypothesis and fix",
  "environment": "Codex agent; Node.js 24.13.0, Python 3.12.3, Linux 7.0.0-1010-aws. Exact model version not exposed.",
  "executor": {
    "agent": "/root/data_review",
    "product": "Codex",
    "exactModelVersion": null,
    "sourceUse": "Pinned instructions read and explicitly applied in this agent session; automatic skill selection was not tested."
  },
  "method": "Executed the zero case against Boolean(value), traced the result to truthiness, compared one numeric-domain hypothesis against six fixtures, then changed one expression and reran the contract suite.",
  "checks": [
    "Before the patch, the intended zero assertion failed with false !== true.",
    "The observed hypothesis output shows Boolean truthiness differs from the specified non-negative-integer contract.",
    "After the narrow fix, all six cases passed: 0, 7, -1, 1.5, null and string 7."
  ],
  "limitations": [
    "This is a tiny deterministic synthetic function, not an intermittent, distributed or production incident.",
    "The checks cover the stated contract cases; no no-skill control or broader model benchmark was run.",
    "The executor was Codex in this conversation; the exact model version was not exposed.",
    "These examples do not represent independent human users, customer outcomes or a compatibility certification."
  ],
  "sources": [
    {
      "skill": "systematic-debugging",
      "repository": "obra/superpowers",
      "revision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
      "url": "https://raw.githubusercontent.com/obra/superpowers/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/systematic-debugging/SKILL.md",
      "sha256": "808fc5717aa88ad65efff312b11c186294d3e6ee301afb584e2f86599b137787"
    },
    {
      "path": "systematic-debugging/root-cause-tracing.md",
      "repository": "obra/superpowers",
      "revision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
      "url": "https://raw.githubusercontent.com/obra/superpowers/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/systematic-debugging/root-cause-tracing.md",
      "sha256": "75b933b6a8c40bdb2031b10f21654395b56ec6ab6bc7b018c18d3fe57aeb7fb8"
    },
    {
      "path": "verification-before-completion/SKILL.md",
      "repository": "obra/superpowers",
      "revision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
      "url": "https://raw.githubusercontent.com/obra/superpowers/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/verification-before-completion/SKILL.md",
      "sha256": "2befe7fc55bcadaa3d97dd9e8efeb633d2561c0ebe74c5a8b17c4d9e7e4520b3"
    }
  ],
  "recipe": {
    "slug": "systematic-debugging",
    "sourceUrl": "https://github.com/obra/superpowers/blob/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/systematic-debugging/SKILL.md",
    "sourceRevision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
    "firstTask": "Find why a function rejects a valid zero value.",
    "firstPrompt": "Use systematic-debugging on this JavaScript behavior in a scratch project: function hasStock(value) { return Boolean(value); }. The intended contract is true for every non-negative integer, including 0, and false otherwise. Reproduce the zero case, trace the root cause, test one hypothesis, then propose the smallest fix with regression checks for 0, 7, -1, 1.5, null and the string \"7\". Show commands and observed results.",
    "expectedResult": "A trace from the failing zero example to truthiness, followed by a narrow fix and boundary checks.",
    "acceptanceCriteria": [
      "The report shows the zero case failing before the patch and passing afterward.",
      "Both 0 and 7 are accepted; negative, fractional, null, and string values are rejected.",
      "The cause is supported by an observed result and the final checks use the same contract."
    ]
  },
  "manifestUrl": "/examples/runs/systematic-debugging/manifest.json",
  "artifacts": [
    {
      "label": "Run report",
      "href": "/examples/runs/systematic-debugging/report.md"
    },
    {
      "label": "Sources, snapshots and original evidence (ZIP)",
      "href": "/examples/runs/systematic-debugging/source-and-evidence.zip"
    },
    {
      "label": "Executed command ledger",
      "href": "/examples/runs/systematic-debugging/commands.jsonl"
    },
    {
      "label": "Observed failing assertion",
      "href": "/examples/runs/systematic-debugging/logs/reproduce-zero.stdout.txt"
    },
    {
      "label": "Observed hypothesis output",
      "href": "/examples/runs/systematic-debugging/logs/trace-and-hypothesis.stdout.txt"
    },
    {
      "label": "Passing contract output",
      "href": "/examples/runs/systematic-debugging/logs/green-contract.stdout.txt"
    },
    {
      "label": "Final function",
      "href": "/examples/runs/systematic-debugging/stock.mjs.txt"
    }
  ],
  "commands": [
    {
      "label": "reproduce-zero",
      "command": [
        "node",
        "--test",
        "--test-reporter=tap",
        "--test-name-pattern",
        "zero",
        "contract.test.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/systematic-debugging",
      "startedAt": "2026-10-04T14:46:17.605018+00:00",
      "finishedAt": "2026-10-04T14:46:17.826453+00:00",
      "exitCode": 1,
      "expectedExit": 1,
      "expectationMet": true,
      "stdout": "logs/reproduce-zero.stdout.txt",
      "stderr": "logs/reproduce-zero.stderr.txt",
      "stdoutSha256": "4a5cc08a6bf405cccf46a52108a5df722d61fd334dc9210f9fca2cefc0e3b666",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "label": "trace-and-hypothesis",
      "command": [
        "node",
        "hypothesis.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/systematic-debugging",
      "startedAt": "2026-10-04T14:47:27.305114+00:00",
      "finishedAt": "2026-10-04T14:47:27.352195+00:00",
      "exitCode": 0,
      "expectedExit": 0,
      "expectationMet": true,
      "stdout": "logs/trace-and-hypothesis.stdout.txt",
      "stderr": "logs/trace-and-hypothesis.stderr.txt",
      "stdoutSha256": "837df1c03d6b61c97cecf0ef3b0d8be6e87d0cbd818bc8359c6570f5ea55ee21",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "label": "green-contract",
      "command": [
        "node",
        "--test",
        "--test-reporter=tap",
        "contract.test.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/systematic-debugging",
      "startedAt": "2026-10-04T14:48:16.901039+00:00",
      "finishedAt": "2026-10-04T14:48:17.148893+00:00",
      "exitCode": 0,
      "expectedExit": 0,
      "expectationMet": true,
      "stdout": "logs/green-contract.stdout.txt",
      "stderr": "logs/green-contract.stderr.txt",
      "stdoutSha256": "bea2f0764e14213236c531e632b0d5f9c80bb15b81603e06e842a70d3ef554d5",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    }
  ],
  "startedAt": "2026-10-04T14:46:17.605018+00:00",
  "executedAt": "2026-10-04T14:48:17.148893+00:00",
  "files": [
    {
      "path": "commands.jsonl",
      "bytes": 1735,
      "sha256": "8d4a1c7d6ae1bd42b29f8c60b0a089052de26cc004f380e6ab1c7793451ea899"
    },
    {
      "path": "contract.test.mjs.txt",
      "bytes": 463,
      "sha256": "894de8213969532e6c1a5b7c211380874c7f9b57628b58a6244c235ae3e63058"
    },
    {
      "path": "hypothesis.mjs.txt",
      "bytes": 670,
      "sha256": "0f551ad42f69ffe5d57b9f478ac843715679b1844895486c9524c48dbb1b1387"
    },
    {
      "path": "logs/green-contract.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/green-contract.stdout.txt",
      "bytes": 755,
      "sha256": "bea2f0764e14213236c531e632b0d5f9c80bb15b81603e06e842a70d3ef554d5"
    },
    {
      "path": "logs/reproduce-zero.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/reproduce-zero.stdout.txt",
      "bytes": 883,
      "sha256": "4a5cc08a6bf405cccf46a52108a5df722d61fd334dc9210f9fca2cefc0e3b666"
    },
    {
      "path": "logs/trace-and-hypothesis.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/trace-and-hypothesis.stdout.txt",
      "bytes": 614,
      "sha256": "837df1c03d6b61c97cecf0ef3b0d8be6e87d0cbd818bc8359c6570f5ea55ee21"
    },
    {
      "path": "recipe.json",
      "bytes": 1179,
      "sha256": "09f91ada6ca81fbc5f9af9e5d0760316ea6bd5a32940e4693ce4775f3d040883"
    },
    {
      "path": "report.md",
      "bytes": 2026,
      "sha256": "e46b0ef28ac2012ed4bf1666daadbc89ac68a8bfd4d5e59e3034cc581a3005de"
    },
    {
      "path": "snapshots/before/contract.test.mjs.txt",
      "bytes": 463,
      "sha256": "894de8213969532e6c1a5b7c211380874c7f9b57628b58a6244c235ae3e63058"
    },
    {
      "path": "snapshots/before/hypothesis.mjs.txt",
      "bytes": 653,
      "sha256": "78dfcc557edffbf5a08df8402530f7a32a609b17306f2fb7049852713c850b6c"
    },
    {
      "path": "snapshots/before/stock.mjs.txt",
      "bytes": 61,
      "sha256": "fd82c55fceb36c18a88037d767af4768ab0c4fabdf3d7aee6a46f03dada7dad2"
    },
    {
      "path": "source-and-evidence.zip",
      "bytes": 6831,
      "sha256": "d26333d3c0b0658665b8cd307389a5dd0babffaf1ebd584568e0952eb5139339"
    },
    {
      "path": "sources.json",
      "bytes": 1169,
      "sha256": "8460cb2656e1875f6aa99d30d3f9e3a8eda48444c9d6b455126bf4c2c5db30ce"
    },
    {
      "path": "stock.mjs.txt",
      "bytes": 84,
      "sha256": "f5a9d5a126aa196fef61d0e2f31f13e50ef9de1a6d8e09df832cf2ae3f80da91"
    }
  ]
}
