{
  "schema_version": "adversarial-fuzzing/v1",
  "campaign": {
    "campaign_id": "20261115-1-fuzz-report",
    "worktree_path": "/Users/randlee/github/sc-compose-worktrees/sprint/w-6-adversarial-fuzz",
    "target": "repour/pour",
    "max_workers": 1,
    "seeds": [
      24034,
      24035,
      24036,
      24037,
      25000,
      25001,
      42,
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16,
      17,
      18,
      19,
      20,
      21,
      22,
      23,
      24,
      25,
      26,
      27,
      28,
      29
    ],
    "bd_version": "1.3.4 dev fork",
    "bd_sha256": "ce9fc82fe6b4b002fea817cc7a92febbfa73fa60a7066fc0b980a8dd57c975cd",
    "dolt_version": "2.3.1",
    "execution": "serial; one throwaway server at a time",
    "findings_found": {
      "harness": 1,
      "product": 0
    },
    "findings_fixed": {
      "harness": 1,
      "product": 0
    },
    "limitations": "Replay scripts contain host-specific absolute paths and require adapting for another machine. Refusal stdout was not retained.",
    "tested_revision": "200f1945c9bd9c052d24e13c17bfee48e0495eef",
    "comparison": "No baseline differential comparison was performed.",
    "worker_method": "The primary agent directed an adversarial-fuzz coordinator; it assigned focused deep, larger, refusal and partial probes serially. Follow-on forty-node and retitle runs used controlled serial probe scripts; a report agent rendered evidence. No probes ran concurrently.",
    "historical_probe_limit": "The earlier *-probe.py files are historical evidence, with absolute host-specific paths and raw unsorted dependency comparisons. They are not portable, reproducible CI tests.",
    "sources": "Frozen forty-node generator, guard and v2/v3 controllers and their hashes are in forty-node-evidence.zip and forty_node_gap.cases. Retitle sources and hashes are in retitle-evidence.zip and retitle_churn.hashes. Replacement sources in replacement-campaign-evidence.zip changed during the run: the final sources cannot exactly replay all earlier cases; retained per-case logs contain actual inputs and commands.",
    "scale_status": "PARTIAL: five of the 30 forty-node, ten-revision seeds ran. Rand accepted the reduced budget of 90 cases plus five forty-node, ten-revision seeds on 2026-11-16 (\"accept\"). Source: comp-w-6.fuzz-campaign bead note, 2026-11-16. The lead reduced the budget under Rand’s no-load rule; the remaining 25 forty-node seeds are not required.",
    "shared_server": "Five initial 40-node setup attempts and the first replacement-run setup attempted the shared :3308 endpoint; access was denied. The lead checked and reported no shared beads were added. Historical server checks and current pgrep are recorded in forty_node_gap.post_run_servers.",
    "coverage_gaps": "Only the second mutation position was fault injected; embedded-mode, crash and concurrent probes were not performed. Retained trace is absent for 3 earlier refusal cases.",
    "archive_verification": "Archive evidence review by Codex subagent evidence_verifier at bf2f50fd: all three ZIP integrity checks passed; 90 replacement case assertions completed, 64 structural plus 30 refusal conflict responses = 94, 30 dangling, 30 dirty, 30 partial responses, five 40-node logs with 50 revision events, and four retitle revision events. Assertion relationships rely on imported integration_repour_fuzz.py and were not independently replayed. Four earlier logs have PASS markers; the three earlier refusal cases have no trace.",
    "denominator_exclusions": "Earlier structural seeds 25000 and 25001 and prior seeded-run seeds 24034 and 24035 are outside the 103-case denominator; HARNESS-25001 is an earlier structural finding.",
    "archive_verifier": "Codex subagent evidence_verifier; read-only archive review at bf2f50fd, not an independent replay.",
    "forty_archive_member_sha256": {
      "sc-forty-campaign-v2/case.py": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
      "sc-forty-campaign-v2/run.py": "1be3b0698a69d2fecd30e2275b4aae303fd738e9ac78d86f2ab728929fff8afc",
      "sc-forty-campaign-v3/run.py": "c508f2b959ad50c91f51ccb698cdb797c0e124c121d387bcdea50dffb05cfc84"
    }
  },
  "workers": [
    {
      "correlation_id": "deep-revision-probe",
      "status": "success",
      "cases_run": 1,
      "passed": 1,
      "seed": 24036,
      "description": "8-node chain; 4 plans and 3 revisions",
      "assertions": "3 changed-pour refusals, 3 preview/apply comparisons and 3 replay no-ops; runtime state and two external edges",
      "reproducer": "deep-revision-probe-probe.py",
      "trace": "deep-revision-probe-result.log",
      "finding_ids": [],
      "error": null
    },
    {
      "correlation_id": "larger-revision-probe",
      "status": "success",
      "cases_run": 1,
      "passed": 1,
      "seed": 24037,
      "description": "16-node chain; 7 plans and 6 revisions",
      "assertions": "6 changed-pour refusals, 6 preview/apply comparisons and 6 replay no-ops; runtime state and two external edges",
      "reproducer": "larger-revision-probe-probe.py",
      "trace": "larger-revision-probe-result.log",
      "finding_ids": [],
      "error": null
    },
    {
      "correlation_id": "refusal-probe",
      "status": "unverified",
      "cases_run": 3,
      "passed": 0,
      "seed": null,
      "description": "Changed pour, missing dependency, and dirty graph refusals",
      "assertions": "Three cases were reported as passing, but stdout was not retained; all three remain unverified.",
      "reproducer": "refusal-probe-probe.py",
      "trace": null,
      "finding_ids": [],
      "error": "No retained result trace",
      "unverified": 3
    },
    {
      "correlation_id": "partial-apply-probe",
      "status": "success",
      "cases_run": 1,
      "passed": 1,
      "seed": null,
      "description": "Partial apply and resume",
      "assertions": "A wrapper injected a failure on the second mutation; actual database and recovery use real bd",
      "reproducer": "partial-apply-probe-probe.py",
      "trace": "partial-apply-probe-result.log",
      "finding_ids": [],
      "error": null
    },
    {
      "correlation_id": "rename-probe",
      "status": "success",
      "cases_run": 1,
      "passed": 1,
      "seed": null,
      "description": "Step ID rename and dependency behavior",
      "assertions": "Old-to-new ID rename retargets the dependent edge; preview matches apply, replay preserves state, runtime fields remain intact",
      "reproducer": "rename-probe-probe.py",
      "trace": "rename-probe-result.log",
      "finding_ids": [],
      "error": null
    },
    {
      "correlation_id": "replacement-structural",
      "cases_run": 30,
      "passed": 30,
      "seed": "0–29",
      "description": "Structural mutations and revisions",
      "assertions": "64/64 revisions: changed-pour conflict, preview no writes, preview/apply changes, replay no-op, identity/state/edge/runtime and external-edge preservation. Seed 12: 20 nodes, six revisions. Seed 5: conditional variable 1/1 and request attach/repour 1/1.",
      "status": "success",
      "finding_ids": [],
      "error": null,
      "evidence_archive": "replacement-campaign-evidence.zip"
    },
    {
      "correlation_id": "replacement-refusal",
      "cases_run": 30,
      "passed": 30,
      "seed": "0–29",
      "description": "Conflict, dangling and dirty refusals",
      "assertions": "Each refusal and unchanged-state oracle passed 30/30. Seed 5 additionally tested cycle refusal without writes 1/1.",
      "status": "success",
      "finding_ids": [],
      "error": null,
      "evidence_archive": "replacement-campaign-evidence.zip"
    },
    {
      "correlation_id": "replacement-partial",
      "cases_run": 30,
      "passed": 30,
      "seed": "0–29",
      "description": "Partial apply and resume",
      "assertions": "Applied/pending result and real-bd resume passed 30/30; one injected fault location, the second mutation, varied case text.",
      "status": "success",
      "finding_ids": [],
      "error": null,
      "evidence_archive": "replacement-campaign-evidence.zip"
    },
    {
      "correlation_id": "forty-node-gap",
      "status": "success",
      "cases_run": 5,
      "passed": 5,
      "seed": "0–4",
      "description": "40 nodes, 38-deep chain, ten revisions per seed",
      "assertions": "50/50 revisions preview no-write, preview/apply equality and replay unchanged; 5/5 rename-onto-removed original ID through revisions 1–4.",
      "evidence_archive": "forty-node-evidence.zip",
      "finding_ids": [],
      "error": null
    },
    {
      "correlation_id": "retitle-churn",
      "status": "success",
      "cases_run": 1,
      "passed": 1,
      "seed": 42,
      "description": "Four sequential retitles on the same node",
      "assertions": "4/4 previews no-write and equal apply; stable ID and runtime status/notes/label preserved; replay no-op. Inputs: Unicode, quotes, newline, Unicode.",
      "evidence_archive": "retitle-evidence.zip",
      "finding_ids": [],
      "error": null
    }
  ],
  "findings": [
    {
      "finding_id": "HARNESS-25001",
      "classification": "harness_bug",
      "seed": 25001,
      "worker_correlation_id": "earlier-structural",
      "minimal_input": {
        "first": {
          "id": "root",
          "dependencies": [
            {
              "id": "a"
            },
            {
              "id": "b"
            }
          ]
        },
        "reordered": {
          "id": "root",
          "dependencies": [
            {
              "id": "b"
            },
            {
              "id": "a"
            }
          ]
        },
        "edges": [
          {
            "id": "a",
            "type": "blocks"
          },
          {
            "id": "b",
            "type": "blocks"
          }
        ]
      },
      "expected_oracle": "Equivalent dependency and edge order must compare equal, while a changed edge remains unequal.",
      "observed_result": "Order-sensitive snapshot comparison flagged a mismatch when dependency order changed; this was a harness defect, not a confirmed product defect.",
      "fix_commit": "4485e85417b480a1f488f480dc12521e5739153c",
      "fix": "scripts/integration_repour.py canonical_snapshot_entry; deterministic regression in scripts/tests/test_integration_repour.py",
      "trace": "replacement-campaign-evidence.zip!earlier-structural/25001.log"
    }
  ],
  "promoted_tests": [],
  "unresolved_candidates": [],
  "summary": {
    "all_successful": false,
    "status": "partial",
    "cases_run": 103,
    "cases_verified_passed": 100,
    "cases_unverified": 3,
    "confirmed_product_bugs": 0,
    "confirmed_harness_bugs": 1,
    "harness_bugs_fixed": 1,
    "intentional_boundaries": 0,
    "inconclusive": 3,
    "failed_workers": 0,
    "owner_acceptance": "accepted",
    "owner_acceptance_detail": "Rand: \"accept\", 2026-11-16; reduced budget of 90 cases plus five forty-node, ten-revision seeds."
  },
  "replacement_campaign": {
    "cases_run": 90,
    "cases_passed": 90,
    "seeds": "0–29 for each of three families",
    "oracles": {
      "structural_revisions_each": {
        "passed": 64,
        "tried": 64
      },
      "changed_pour_conflict_total": {
        "passed": 94,
        "tried": 94
      },
      "dangling_refusal": {
        "passed": 30,
        "tried": 30
      },
      "dirty_refusal": {
        "passed": 30,
        "tried": 30
      },
      "partial_apply_resume": {
        "passed": 30,
        "tried": 30
      },
      "conditional_var": {
        "passed": 1,
        "tried": 1
      },
      "request_attach_repour": {
        "passed": 1,
        "tried": 1
      },
      "cycle_refusal": {
        "passed": 1,
        "tried": 1
      }
    },
    "product_findings": 0,
    "harness_defects": 1,
    "harness_defect": "Earlier seed 25001 exposed an order-sensitive dependency snapshot; this is a flaky test-harness oracle, not a confirmed product defect. Fixed in scripts/integration_repour.py with unit coverage.",
    "initial_run": "Initial shared-server run stopped on a formula-name harness setup error; a replacement server and database were started for the 90-case run. The initial error log was not retained.",
    "coverage_limits": "The lead reduced the scale budget under the owner no-load rule; Rand accepted it on 2026-11-16: 30 seeds per generator, up to 40 nodes and 10 revisions. Replacement achieved 90 cases across structural, refusal and partial families, with a maximum structural case of 20 nodes and 6 revisions; the later gap round achieved five 40-node, 10-revision seeds. Only the second mutation was fault-injected. Embedded-mode, crash and concurrency probes were not performed.",
    "evidence_note": "Per-case inputs and command stdout/stderr captured in the zip; unrelated process-list records removed from orchestration and earlier structural logs. Final scripts changed during the run and cannot exactly reproduce every earlier case; earlier source versions unavailable. Host-specific paths and a historical deadline require adaptation.",
    "evidence_archive": "replacement-campaign-evidence.zip",
    "workers": [
      {
        "correlation_id": "replacement-structural",
        "cases_run": 30,
        "passed": 30,
        "seed": "0–29",
        "description": "Structural mutations and revisions",
        "assertions": "64/64 revisions: changed-pour conflict, preview no writes, preview/apply changes, replay no-op, identity/state/edge/runtime and external-edge preservation. Seed 12: 20 nodes, six revisions. Seed 5: conditional variable 1/1 and request attach/repour 1/1.",
        "status": "success",
        "finding_ids": [],
        "error": null,
        "evidence_archive": "replacement-campaign-evidence.zip"
      },
      {
        "correlation_id": "replacement-refusal",
        "cases_run": 30,
        "passed": 30,
        "seed": "0–29",
        "description": "Conflict, dangling and dirty refusals",
        "assertions": "Each refusal and unchanged-state oracle passed 30/30. Seed 5 additionally tested cycle refusal without writes 1/1.",
        "status": "success",
        "finding_ids": [],
        "error": null,
        "evidence_archive": "replacement-campaign-evidence.zip"
      },
      {
        "correlation_id": "replacement-partial",
        "cases_run": 30,
        "passed": 30,
        "seed": "0–29",
        "description": "Partial apply and resume",
        "assertions": "Applied/pending result and real-bd resume passed 30/30; one injected fault location, the second mutation, varied case text.",
        "status": "success",
        "finding_ids": [],
        "error": null,
        "evidence_archive": "replacement-campaign-evidence.zip"
      }
    ]
  },
  "forty_node_gap": {
    "cases": [
      {
        "seed": 0,
        "status": "PASS",
        "nodes": 40,
        "chain_depth": 38,
        "revisions": 10,
        "generator_sha256": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
        "guard_sha256": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
        "controller": "v2/run.py",
        "controller_sha256": "1be3b0698a69d2fecd30e2275b4aae303fd738e9ac78d86f2ab728929fff8afc",
        "log": "sc-forty-campaign-v2/forty-0.log",
        "original_id": "it-3eq",
        "replacement_id": "it-kt0",
        "revision_1": "original marked removed",
        "revision_2": "original restored using same ID",
        "revision_3": "original removed and replacement created",
        "revision_4": "replacement removed and original restored using same ID",
        "trace": "forty-node-evidence.zip!sc-forty-campaign-v2/forty-0.log"
      },
      {
        "seed": 1,
        "status": "PASS",
        "nodes": 40,
        "chain_depth": 38,
        "revisions": 10,
        "generator_sha256": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
        "guard_sha256": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
        "controller": "v2/run.py",
        "controller_sha256": "1be3b0698a69d2fecd30e2275b4aae303fd738e9ac78d86f2ab728929fff8afc",
        "log": "sc-forty-campaign-v2/forty-1.log",
        "original_id": "it-puv",
        "replacement_id": "it-ods",
        "revision_1": "original marked removed",
        "revision_2": "original restored using same ID",
        "revision_3": "original removed and replacement created",
        "revision_4": "replacement removed and original restored using same ID",
        "trace": "forty-node-evidence.zip!sc-forty-campaign-v2/forty-1.log"
      },
      {
        "seed": 2,
        "status": "PASS",
        "nodes": 40,
        "chain_depth": 38,
        "revisions": 10,
        "generator_sha256": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
        "guard_sha256": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
        "controller": "v3/run.py",
        "controller_sha256": "c508f2b959ad50c91f51ccb698cdb797c0e124c121d387bcdea50dffb05cfc84",
        "log": "sc-forty-campaign-v3/forty-2.log",
        "original_id": "it-srv",
        "replacement_id": "it-jf0",
        "revision_1": "original marked removed",
        "revision_2": "original restored using same ID",
        "revision_3": "original removed and replacement created",
        "revision_4": "replacement removed and original restored using same ID",
        "trace": "forty-node-evidence.zip!sc-forty-campaign-v3/forty-2.log"
      },
      {
        "seed": 3,
        "status": "PASS",
        "nodes": 40,
        "chain_depth": 38,
        "revisions": 10,
        "generator_sha256": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
        "guard_sha256": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
        "controller": "v3/run.py",
        "controller_sha256": "c508f2b959ad50c91f51ccb698cdb797c0e124c121d387bcdea50dffb05cfc84",
        "log": "sc-forty-campaign-v3/forty-3.log",
        "original_id": "it-sis",
        "replacement_id": "it-lpw",
        "revision_1": "original marked removed",
        "revision_2": "original restored using same ID",
        "revision_3": "original removed and replacement created",
        "revision_4": "replacement removed and original restored using same ID",
        "trace": "forty-node-evidence.zip!sc-forty-campaign-v3/forty-3.log"
      },
      {
        "seed": 4,
        "status": "PASS",
        "nodes": 40,
        "chain_depth": 38,
        "revisions": 10,
        "generator_sha256": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
        "guard_sha256": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
        "controller": "v3/run.py",
        "controller_sha256": "c508f2b959ad50c91f51ccb698cdb797c0e124c121d387bcdea50dffb05cfc84",
        "log": "sc-forty-campaign-v3/forty-4.log",
        "original_id": "it-nsd",
        "replacement_id": "it-1pi",
        "revision_1": "original marked removed",
        "revision_2": "original restored using same ID",
        "revision_3": "original removed and replacement created",
        "revision_4": "replacement removed and original restored using same ID",
        "trace": "forty-node-evidence.zip!sc-forty-campaign-v3/forty-4.log"
      }
    ],
    "case_count": 5,
    "revision_checks": 50,
    "worktree_head_during_run": "4485e85417b480a1f488f480dc12521e5739153c",
    "binary_sha256_during_run": "990b69db342a557a9e057a24c22044adf4b8c9c7b17fe64638ab0d6e4cf5a63a",
    "binary_hash_caveat": "Measured during run, not proven unchanged across all cases.",
    "hashes": {
      "case.py": "663ca13d864faf61c609fe38206b2dc5c86f055b200d95a5f7e9e7e212aca963",
      "guard.py": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
      "v2/run.py": "1be3b0698a69d2fecd30e2275b4aae303fd738e9ac78d86f2ab728929fff8afc",
      "v3/run.py": "c508f2b959ad50c91f51ccb698cdb797c0e124c121d387bcdea50dffb05cfc84"
    },
    "failed_initial_setup": "The unguarded setup targeted shared port 3308 and failed with access denied; the lead checked that no shared beads were added. Five initial attempts failed setup; they are not included in passes. Guard added; 5/5 guard unit tests reported passing.",
    "interrupted_attempt": "v2 seed 2 timed out against its deadline and was rerun from scratch under v3; its incomplete log is retained but excluded from completed counts.",
    "limitation": "Two controllers, sequential isolated servers and databases; absolute paths and deadline require adaptation for replay. Evidence omits server output and process-list records.",
    "evidence_archive": "forty-node-evidence.zip",
    "worker": {
      "correlation_id": "forty-node-gap",
      "status": "success",
      "cases_run": 5,
      "passed": 5,
      "seed": "0–4",
      "description": "40 nodes, 38-deep chain, ten revisions per seed",
      "assertions": "50/50 revisions preview no-write, preview/apply equality and replay unchanged; 5/5 rename-onto-removed original ID through revisions 1–4.",
      "evidence_archive": "forty-node-evidence.zip",
      "finding_ids": [],
      "error": null
    },
    "post_run_servers": {
      "v2": "816 /opt/homebrew/bin/dolt sql-server --config /Users/randlee/.beads/shared-server/dolt/config.yaml",
      "v3": "816 /opt/homebrew/bin/dolt sql-server --config /Users/randlee/.beads/shared-server/dolt/config.yaml",
      "current_pgrep": "816 /opt/homebrew/bin/dolt sql-server --config /Users/randlee/.beads/shared-server/dolt/config.yaml",
      "command": "pgrep -fl 'dolt sql-server'"
    },
    "guard_test_sources": {
      "guard.py": {
        "path": "forty-guard-sources/guard.py",
        "sha256": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707"
      },
      "test_guard.py": {
        "path": "forty-guard-sources/test_guard.py",
        "sha256": "ca34e018f0e1692d5d34cc78f89a175539af4ca19832f4a8a5b1ef2f27f1a046"
      }
    },
    "guard_test_validation": "not recorded (the original test-output log was not retained).",
    "tested_revision": "4485e85417b480a1f488f480dc12521e5739153c"
  },
  "retitle_churn": {
    "worker": {
      "correlation_id": "retitle-churn",
      "status": "success",
      "cases_run": 1,
      "passed": 1,
      "seed": 42,
      "description": "Four sequential retitles on the same node",
      "assertions": "4/4 previews no-write and equal apply; stable ID and runtime status/notes/label preserved; replay no-op. Inputs: Unicode, quotes, newline, Unicode.",
      "evidence_archive": "retitle-evidence.zip",
      "finding_ids": [],
      "error": null
    },
    "hashes": {
      "case.py": "9309dfd4bf927b682ff88f41a6497ab96fa36b46ef470e7b2fc4b4fe627f6d81",
      "guard.py": "4a1740b1812710107145113ecab4a35984db782f7c28f6b1f16b9a41206a0707",
      "run.py": "4814729a61f6349bd621777fda18a1ff97bdbd21c4afd237d915019b500d4c01"
    },
    "revisions": 4,
    "replay_checks": 4,
    "trace": "retitle-evidence.zip!retitle-42.log",
    "post_run_servers": "816 /opt/homebrew/bin/dolt sql-server --config /Users/randlee/.beads/shared-server/dolt/config.yaml"
  },
  "validation": {
    "tested_revision": "d8933f9634364eff501f9aa130a8de7555083b31",
    "note": "Python tests ran at tested_revision. At dcda76ef83fb09f944297ad3f88d84913c265de9, html-validate, xmllint and just lint also passed; later edits changed only the report HTML and JSON. Controlled tests include expected simulated failure output.",
    "commands": [
      {
        "command": "python3 -m unittest discover -s scripts/tests",
        "exit_code": 0,
        "log": "validation/python-unittest.log"
      },
      {
        "command": "python3 -m unittest discover -s site/reports/20261115-1-fuzz-report/forty-guard-sources",
        "exit_code": 0,
        "log": "validation/guard-unittest.log"
      },
      {
        "command": "just lint",
        "exit_code": 0,
        "log": "validation/just-lint.log"
      },
      {
        "command": "html-validate site/reports/20261115-1-fuzz-report.html",
        "exit_code": 0,
        "log": "validation/html-validate.log"
      },
      {
        "command": "xmllint --noout site/reports/20261115-1-fuzz-report/*.xhtml",
        "exit_code": 0,
        "log": "validation/xmllint.log"
      }
    ],
    "report_checks_revision": "dcda76ef83fb09f944297ad3f88d84913c265de9"
  }
}
