{"fixture": "P20.c", "kind": "capture-provenance", "recording": "labelled production service harness with controlled adapters", "revision": "bb35b941115a0a9f818e8512eebe67c29ee68355", "session": "P20", "sourceRun": "/tmp/lead-21046-r2/capture/2026-10-28T17-39-45-759Z-branch-reader"}
{"exitCode": 0, "kind": "real-git-detection", "row": "P20", "seq": 26, "stderr": "", "stdout": "true", "variant": "unexpected-real-exit-128"}
{"action": "corrupt HEAD after successful real Git repository detection to force unexpected symbolic-ref exit", "kind": "mutation", "row": "P20", "seq": 27, "variant": "unexpected-real-exit-128"}
{"args": ["symbolic-ref", "--quiet", "HEAD"], "command": "git", "exitCode": 128, "kind": "real-git-execute", "row": "P20", "seq": 28, "stderr": "fatal: not a git repository (or any of the parent directories): .git\n", "stdout": "", "variant": "unexpected-real-exit-128"}
{"argumentCount": 3, "command": "git symbolic-ref", "detail": "Failed to read the checked-out branch.", "exitCode": 128, "kind": "typed-error", "operation": "GitWorkflowService.currentBranch", "row": "P20", "seq": 29, "stderrLength": 69, "stdoutLength": 0, "tag": "GitCommandError", "variant": "unexpected-real-exit-128"}
{"actual": {"exitCode": 128, "tag": "GitCommandError"}, "kind": "assertion", "outcome": "PASS", "row": "P20", "seq": 30, "test": "real symbolic-ref unexpected exit is GitCommandError", "variant": "unexpected-real-exit-128"}
{"exitCode": 0, "kind": "real-git-detection", "row": "P20", "seq": 31, "stderr": "", "stdout": "true", "variant": "process-spawn-failure"}
{"args": ["symbolic-ref", "--quiet", "HEAD"], "command": "missing-git", "exitCode": null, "kind": "real-git-execute", "row": "P20", "seq": 32, "spawnError": "ENOENT", "stderr": "", "stdout": "", "variant": "process-spawn-failure"}
{"detail": "Controlled missing executable fixture", "kind": "typed-error", "operation": "GitWorkflowService.currentBranch", "row": "P20", "seq": 33, "tag": "GitCommandError", "variant": "process-spawn-failure"}
{"actual": "GitCommandError", "kind": "assertion", "outcome": "PASS", "row": "P20", "seq": 34, "test": "process adapter error propagates", "variant": "process-spawn-failure"}
{"exitCode": 0, "kind": "real-git-detection", "row": "P20", "seq": 39, "stderr": "", "stdout": "true", "variant": "controlled-null-exit"}
{"input": {"allowNonZeroExit": true, "args": ["symbolic-ref", "--quiet", "HEAD"], "cwd": "/tmp/lead-21046-r2/capture/2026-10-28T17-39-45-759Z-branch-reader/repo", "operation": "GitWorkflowService.currentBranch", "timeoutMs": 5000}, "kind": "controlled-command-output", "mode": "null-exit", "result": {"exitCode": null, "stderr": "fixture stderr", "stdout": "fixture stdout"}, "row": "P20", "seq": 40, "variant": "controlled-null-exit"}
{"argumentCount": 3, "command": "git symbolic-ref", "kind": "typed-error", "operation": "GitWorkflowService.currentBranch", "row": "P20", "seq": 41, "stderrLength": 14, "stdoutLength": 14, "tag": "GitCommandError", "variant": "controlled-null-exit"}
{"actual": {"_tag": "GitCommandError", "argumentCount": 3, "command": "git symbolic-ref", "cwd": "/tmp/lead-21046-r2/capture/2026-10-28T17-39-45-759Z-branch-reader/repo", "detail": "Failed to read the checked-out branch.", "operation": "GitWorkflowService.currentBranch", "stderrLength": 14, "stdoutLength": 14}, "kind": "assertion", "outcome": "PASS", "row": "P20", "seq": 42, "test": "null-exit-error-without-exitCode", "variant": "controlled-null-exit"}
{"detail": "Failed to detect a VCS repository for this Git workflow.", "kind": "typed-error", "operation": "GitWorkflowService.currentBranch", "row": "P20", "seq": 43, "tag": "GitManagerError", "variant": "controlled-registry-detection-failure"}
{"actual": {"_tag": "GitManagerError", "cause": {}, "cwd": "/tmp/lead-21046-r2/capture/2026-10-28T17-39-45-759Z-branch-reader/repo", "detail": "Failed to detect a VCS repository for this Git workflow.", "operation": "GitWorkflowService.currentBranch"}, "kind": "assertion", "outcome": "PASS", "row": "P20", "seq": 44, "test": "detect-failure-maps-to-GitManagerError", "variant": "controlled-registry-detection-failure"}
