{
  "schemaVersion": 1,
  "id": "coding-test-driven-development-2026-10-04",
  "skillSlug": "test-driven-development",
  "title": "Integer validator: two recorded red/green cycles",
  "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": "Wrote a zero behavior assertion with only an empty API scaffold, ran it to observe the intended failure, added the minimum behavior, expanded the contract, observed the next failures, and implemented the final predicate.",
  "checks": [
    "The first test actually failed on undefined !== true; the runner and import setup worked.",
    "The minimal true implementation passed the zero test, then failed four newly added rejection cases.",
    "The final full contract suite passed all six cases."
  ],
  "limitations": [
    "The six fixtures cover the requested contract; they do not prove all future requirements or JavaScript edge cases.",
    "The exercise was isolated from the application and did not compare the agent with a no-skill baseline.",
    "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": "test-driven-development",
      "repository": "obra/superpowers",
      "revision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
      "url": "https://raw.githubusercontent.com/obra/superpowers/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/test-driven-development/SKILL.md",
      "sha256": "64b03fce4aee5a97a93160cea8111f3ba13a17b7c001db4bd5836d67fd10705d"
    },
    {
      "path": "test-driven-development/writing-good-tests.md",
      "repository": "obra/superpowers",
      "revision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
      "url": "https://raw.githubusercontent.com/obra/superpowers/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/test-driven-development/writing-good-tests.md",
      "sha256": "51471c853306ff92ca8bb41dcaea05f31c0e46b03651f8f3c99754b7172f4ae1"
    },
    {
      "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": "test-driven-development",
    "sourceUrl": "https://github.com/obra/superpowers/blob/8ca22dba9a94f28898bbce59f2537ff4d87c747d/skills/test-driven-development/SKILL.md",
    "sourceRevision": "8ca22dba9a94f28898bbce59f2537ff4d87c747d",
    "firstTask": "Implement a non-negative integer validator through failing and passing tests.",
    "firstPrompt": "Use test-driven-development in a scratch JavaScript project to implement isNonNegativeInteger(value). It must accept 0 and 7, and reject -1, 1.5, null and the string \"7\". Write one behavior test first, run it and record the failure, then implement only enough to pass. Add the remaining cases, run the full suite, and show the red/green command results. Keep the exercise isolated from my application.",
    "expectedResult": "A small validator and a test record that shows an actual failing behavior assertion followed by passing checks.",
    "acceptanceCriteria": [
      "The first failure is the intended missing behavior, not an unrelated test-runner setup error.",
      "All six contract cases are checked and the final suite passes.",
      "The report includes executed command results rather than a simulated red/green transcript."
    ]
  },
  "manifestUrl": "/examples/runs/test-driven-development/manifest.json",
  "artifacts": [
    {
      "label": "Run report",
      "href": "/examples/runs/test-driven-development/report.md"
    },
    {
      "label": "Sources, snapshots and original evidence (ZIP)",
      "href": "/examples/runs/test-driven-development/source-and-evidence.zip"
    },
    {
      "label": "Executed command ledger",
      "href": "/examples/runs/test-driven-development/commands.jsonl"
    },
    {
      "label": "First observed red",
      "href": "/examples/runs/test-driven-development/logs/red-zero.stdout.txt"
    },
    {
      "label": "First observed green",
      "href": "/examples/runs/test-driven-development/logs/green-zero.stdout.txt"
    },
    {
      "label": "Expanded contract red",
      "href": "/examples/runs/test-driven-development/logs/red-contract.stdout.txt"
    },
    {
      "label": "Final six passing cases",
      "href": "/examples/runs/test-driven-development/logs/green-contract.stdout.txt"
    },
    {
      "label": "Final validator",
      "href": "/examples/runs/test-driven-development/validator.mjs.txt"
    }
  ],
  "commands": [
    {
      "label": "red-zero",
      "command": [
        "node",
        "--test",
        "--test-reporter=tap",
        "contract.test.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/test-driven-development",
      "startedAt": "2026-10-04T14:45:14.897354+00:00",
      "finishedAt": "2026-10-04T14:45:15.533338+00:00",
      "exitCode": 1,
      "expectedExit": 1,
      "expectationMet": true,
      "stdout": "logs/red-zero.stdout.txt",
      "stderr": "logs/red-zero.stderr.txt",
      "stdoutSha256": "6d21de19b4617d0792a9db1a94e2b4bb193251dbb6d253edef0a9fbcb744220f",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "label": "green-zero",
      "command": [
        "node",
        "--test",
        "--test-reporter=tap",
        "contract.test.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/test-driven-development",
      "startedAt": "2026-10-04T14:46:15.392278+00:00",
      "finishedAt": "2026-10-04T14:46:15.573605+00:00",
      "exitCode": 0,
      "expectedExit": 0,
      "expectationMet": true,
      "stdout": "logs/green-zero.stdout.txt",
      "stderr": "logs/green-zero.stderr.txt",
      "stdoutSha256": "9ed88d190f1bca9fa908539071bc5d73e9afab45ec89ae2e942c88f68254f935",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "label": "red-contract",
      "command": [
        "node",
        "--test",
        "--test-reporter=tap",
        "contract.test.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/test-driven-development",
      "startedAt": "2026-10-04T14:46:51.899217+00:00",
      "finishedAt": "2026-10-04T14:46:52.179077+00:00",
      "exitCode": 1,
      "expectedExit": 1,
      "expectationMet": true,
      "stdout": "logs/red-contract.stdout.txt",
      "stderr": "logs/red-contract.stderr.txt",
      "stdoutSha256": "fba78ab72fb9f94488238a401a15aa134f07f2eb5fbae698a737bbe5041c23ea",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "label": "green-contract",
      "command": [
        "node",
        "--test",
        "--test-reporter=tap",
        "contract.test.mjs"
      ],
      "cwd": "/tmp/opx-coding-skill-runs/test-driven-development",
      "startedAt": "2026-10-04T14:47:25.365150+00:00",
      "finishedAt": "2026-10-04T14:47:25.583051+00:00",
      "exitCode": 0,
      "expectedExit": 0,
      "expectationMet": true,
      "stdout": "logs/green-contract.stdout.txt",
      "stderr": "logs/green-contract.stderr.txt",
      "stdoutSha256": "88623357e9d35d90084b7b1fd017369ad9ca404e249ebb6570158464c51d6664",
      "stderrSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    }
  ],
  "startedAt": "2026-10-04T14:45:14.897354+00:00",
  "executedAt": "2026-10-04T14:47:25.583051+00:00",
  "files": [
    {
      "path": "commands.jsonl",
      "bytes": 2272,
      "sha256": "ad206ea123f69293a68ada0403de3a8585362ae5a991135651cafc8c61876715"
    },
    {
      "path": "contract.test.mjs.txt",
      "bytes": 491,
      "sha256": "662d6f255b2798f73fc6579f4097a1e2fbb20114caa39e5f5392d104799c0daa"
    },
    {
      "path": "logs/green-contract.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/green-contract.stdout.txt",
      "bytes": 754,
      "sha256": "88623357e9d35d90084b7b1fd017369ad9ca404e249ebb6570158464c51d6664"
    },
    {
      "path": "logs/green-zero.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/green-zero.stdout.txt",
      "bytes": 266,
      "sha256": "9ed88d190f1bca9fa908539071bc5d73e9afab45ec89ae2e942c88f68254f935"
    },
    {
      "path": "logs/red-contract.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/red-contract.stdout.txt",
      "bytes": 3978,
      "sha256": "fba78ab72fb9f94488238a401a15aa134f07f2eb5fbae698a737bbe5041c23ea"
    },
    {
      "path": "logs/red-zero.stderr.txt",
      "bytes": 0,
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "logs/red-zero.stdout.txt",
      "bytes": 956,
      "sha256": "6d21de19b4617d0792a9db1a94e2b4bb193251dbb6d253edef0a9fbcb744220f"
    },
    {
      "path": "recipe.json",
      "bytes": 1198,
      "sha256": "0ec85d95e57b7feea98b842f495b27c0058ce1c84d33bcc96b08a3fa829b3c6e"
    },
    {
      "path": "report.md",
      "bytes": 1985,
      "sha256": "de85042e5f8425e108d97a4bbac017c5315c6f11b9a42a5a05d3d5c1c84e897c"
    },
    {
      "path": "snapshots/green-zero/contract.test.mjs.txt",
      "bytes": 238,
      "sha256": "cd171543e74cf7a83229fb1212e59d552ad1b77edb9a461c95d1e18c36f5be5c"
    },
    {
      "path": "snapshots/green-zero/validator.mjs.txt",
      "bytes": 63,
      "sha256": "0366c3c9cc1f83b467f623b42cc34e7acb9c856b7f9d614488203f640bd107db"
    },
    {
      "path": "snapshots/red-contract/contract.test.mjs.txt",
      "bytes": 491,
      "sha256": "662d6f255b2798f73fc6579f4097a1e2fbb20114caa39e5f5392d104799c0daa"
    },
    {
      "path": "snapshots/red-contract/validator.mjs.txt",
      "bytes": 63,
      "sha256": "0366c3c9cc1f83b467f623b42cc34e7acb9c856b7f9d614488203f640bd107db"
    },
    {
      "path": "snapshots/red-zero/contract.test.mjs.txt",
      "bytes": 238,
      "sha256": "cd171543e74cf7a83229fb1212e59d552ad1b77edb9a461c95d1e18c36f5be5c"
    },
    {
      "path": "snapshots/red-zero/validator.mjs.txt",
      "bytes": 108,
      "sha256": "8500ca77a8491365307de763d62e7e8c9450b01e54a16f7e0b147a1e54ed6f06"
    },
    {
      "path": "source-and-evidence.zip",
      "bytes": 7887,
      "sha256": "44a94d6b8ed533d9877ddaed87a27b8abbde7f05860cf6e821efa4e12ee8b8aa"
    },
    {
      "path": "sources.json",
      "bytes": 1181,
      "sha256": "86d76f6d38ff3ddcb79411bb896fda43adb591a51813f26c68a99babc843ced0"
    },
    {
      "path": "validator.mjs.txt",
      "bytes": 96,
      "sha256": "70230e475b3eddf3e7144739629f464b77225c6e0da5aabd0c3687b9653fea8b"
    }
  ]
}
