2026-11-10T10:49:18.505+00:00 +0.026352 MANIFEST {"id": "P21", "case": "write-error-W", "side": "after", "sha": "965b08b3060575186415df240c898a50c8736c5d", "environment": "Ubuntu 24.04.4 LTS Linux x86_64; kernel 6.8.0-117-generic; dash 0.5.12-6ubuntu5 or bash 5.2.21 --posix; curl 8.5.0; GNU wget 1.21.4; BusyBox 1.36.1; Node v26.12.1; PowerShell 7.4.6 Core on Linux (helpers only)", "selected": {"surface": "P", "shell": null, "transport": null, "path": null, "mech": "W", "pty": false}, "selected_transport_version": "curl 8.5.0", "command": "/tmp/lead-32913-r1/evidence-capture/powershell-7.4.6/pwsh -NoLogo -NoProfile -File /tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/observe.ps1", "env": {"HOME": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/home", "T3CODE_HOME": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/home/t3", "T3CODE_INSTALL_BIN_DIR": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/bin", "TMPDIR": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/tmp", "TMP": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/tmp", "TEMP": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/tmp", "TERM": "dumb", "LANG": "C.UTF-8", "LC_ALL": "C.UTF-8", "NO_COLOR": "1", "CAPTURE_TRANSPORT": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/transport.jsonl", "T3CODE_VERSION": "1.2.3", "T3CODE_RELEASE_BASE_URL": "http://127.0.0.1:37695", "PROCESSOR_ARCHITECTURE": "AMD64", "DOTNET_CLI_HOME": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/home", "POWERSHELL_TELEMETRY_OPTOUT": "1", "PATH": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/path", "CAPTURE_STAGING": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/helper-staging", "CAPTURE_URL": "http://127.0.0.1:37695/v1.2.3/SHA256SUMS", "CAPTURE_DEST": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/nonexistent/destination", "CAPTURE_SCRIPT": "/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/install.ps1"}, "original_source_sha256": "d24dd0357bd107d3643aeeb1e80eaebf2cb8d84928a5bbed3682a9a6b491f92c", "executed_source_sha256": "8ff88f0dd6145bc398bd914ef2aad7b42faec91c54339de5076e265a686ef658", "transforms": ["Set-PSDebug -Trace 1 observes execution of exact helper source, including disposal and request commands", "verbatim prologue and helper slice; real-HTTP synthetic caller; discovery origins only remapped"], "steps": "Start fixture; run command; deliver terminal Ctrl-C only when specified precondition is observed; capture exit, requests, install state, tracked PIDs."}
2026-11-10T10:49:18.505+00:00 +0.027146 SPAWN {"pid": 617162, "pty": false, "stdin": "noninteractive"}
2026-11-10T10:49:18.869+00:00 +0.391333 OUTPUT "DEBUG:    2+  >>>> & $env:CAPTURE_SCRIPT\n\n"
2026-11-10T10:49:18.952+00:00 +0.473337 OUTPUT "DEBUG:   16+  >>>> $ErrorActionPreference = \"Stop\"\n\nDEBUG:   17+  >>>> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\n\n"
2026-11-10T10:49:18.955+00:00 +0.476770 OUTPUT "DEBUG:   19+  >>>> $repo = \"pingdotgg/t3code\"\n\n"
2026-11-10T10:49:18.955+00:00 +0.476955 OUTPUT "DEBUG:   20+  >>>> $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd(\"/\") } else { \"http://127.0.0.1:37695/$repo/releases/download\" }\n"
2026-11-10T10:49:18.955+00:00 +0.477271 OUTPUT "\n"
2026-11-10T10:49:18.956+00:00 +0.477390 OUTPUT "DEBUG:   20+ $baseUrl = if ( >>>> $env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd(\"/\") } else { \"http://127.0.0.1:37695/$repo/releases/download\" }\n"
2026-11-10T10:49:18.956+00:00 +0.477413 OUTPUT "\n"
2026-11-10T10:49:18.958+00:00 +0.479689 OUTPUT "DEBUG:   20+ $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) {  >>>> $env:T3CODE_RELEASE_BASE_URL.TrimEnd(\"/\") } else { \"http://127.0.0.1:37695/$repo/releases/download\" }\n"
2026-11-10T10:49:18.958+00:00 +0.479838 OUTPUT "\n"
2026-11-10T10:49:18.969+00:00 +0.491182 OUTPUT "DEBUG:   21+  >>>> $t3Home = if ($env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME \".t3\" }\n\nDEBUG:   21+ $t3Home = if ( >>>> $env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME \".t3\" }\n\nDEBUG:   21+ $t3Home = if ($env:T3CODE_HOME) {  >>>> $env:T3CODE_HOME } else { Join-Path $HOME \".t3\" }\n\nDEBUG:   22+  >>>> $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME \".local\\bin\" }\n\nDEBUG:   22+ $binDir = if ( >>>> $env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME \".local\\bin\" }\n\nDEBUG:   22+ $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) {  >>>> $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME \".local\\bin\" }\n\nDEBUG:   24+  >>>> $binDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($binDir)\n\n"
2026-11-10T10:49:18.977+00:00 +0.498686 OUTPUT "DEBUG:   31+  >>>> $terminal = -not [Console]::IsErrorRedirected -and $env:TERM -ne \"dumb\"\n\n"
2026-11-10T10:49:18.979+00:00 +0.500371 OUTPUT "DEBUG:   32+  >>>> $interactive = $terminal -and $Host.UI.SupportsVirtualTerminal\n\nDEBUG:   33+ if ( >>>> $interactive) {\n\nDEBUG:   39+  >>>> $esc = [char]27\n\n"
2026-11-10T10:49:18.979+00:00 +0.500767 OUTPUT "DEBUG:   40+  >>>> $reset = $bold = $muted = $accent = $green = \"\"\n"
2026-11-10T10:49:18.979+00:00 +0.500817 OUTPUT "\nDEBUG:   40+ $reset =  >>>> $bold = $muted = $accent = $green = \"\"\n\nDEBUG:   40+ $reset = $bold =  >>>> $muted = $accent = $green = \"\"\n\nDEBUG:   40+ $reset = $bold = $muted =  >>>> $accent = $green = \"\"\n\nDEBUG:   40+ $reset = $bold = $muted = $accent =  >>>> $green = \"\"\n\nDEBUG:   41+ if ( >>>> $interactive -and -not $env:NO_COLOR) {\n\n"
2026-11-10T10:49:18.979+00:00 +0.500923 OUTPUT "DEBUG:  120+  >>>> [Console]::Error.WriteLine(\"CAPTURE_DISPATCH terminal=$terminal interactive=$interactive mechanism=W encoding=$([Console]::Error.Encoding.WebName)\")\n\n"
2026-11-10T10:49:18.981+00:00 +0.502550 OUTPUT "DEBUG:  120+ [Console]::Error.WriteLine(\"CAPTURE_DISPATCH terminal=$terminal interactive=$interactive mechanism=W encoding=$( >>>> [Console]::Error.Encoding.WebName)\")\n\n"
2026-11-10T10:49:18.989+00:00 +0.510595 OUTPUT "CAPTURE_DISPATCH terminal=False interactive=False mechanism=W encoding=utf-8\nDEBUG:  122+  >>>> Fetch $env:CAPTURE_URL $env:CAPTURE_DEST\n\n"
2026-11-10T10:49:18.999+00:00 +0.521147 OUTPUT "DEBUG:   80+ function Fetch([string] $uri, [string] $destination, [switch] $progress)  >>>> {\n"
2026-11-10T10:49:19.000+00:00 +0.521406 OUTPUT "\nDEBUG:   81+   if ( >>>> -not $progress -or -not $interactive) {\n\n"
2026-11-10T10:49:19.001+00:00 +0.522385 OUTPUT "DEBUG:   82+      >>>> $ProgressPreference = if ($progress -and $terminal) { \"Continue\" } else { \"SilentlyContinue\" }\n\nDEBUG:   82+     $ProgressPreference = if ( >>>> $progress -and $terminal) { \"Continue\" } else { \"SilentlyContinue\" }\n\n"
2026-11-10T10:49:19.002+00:00 +0.523315 OUTPUT "DEBUG:   82+     $ProgressPreference = if ($progress -and $terminal) { \"Continue\" } else {  >>>> \"SilentlyContinue\" }\n\nDEBUG:   83+      >>>> Invoke-Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\n"
2026-11-10T10:49:19.004+00:00 +0.525444 OUTPUT "DEBUG:   74+ function Invoke-Retrying([scriptblock] $request)  >>>> {\n"
2026-11-10T10:49:19.004+00:00 +0.525743 OUTPUT "\nDEBUG:   75+   for ( >>>> $attempt = 1; ; $attempt++) {\n\nDEBUG:   76+     try { return  >>>> & $request }\n\n"
2026-11-10T10:49:19.005+00:00 +0.526309 OUTPUT "DEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n"
2026-11-10T10:49:19.005+00:00 +0.526471 OUTPUT "\nDEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\n"
2026-11-10T10:49:19.274+00:00 +0.795863 SERVER {"request_t": 0.79465, "event": "request", "path": "/v1.2.3/SHA256SUMS", "endpoint": "sums", "attempt": 1, "status": 200, "behavior": 200, "accept": null}
2026-11-10T10:49:19.278+00:00 +0.799466 SERVER {"event": "body_complete", "endpoint": "sums", "bytes": 181}
2026-11-10T10:49:19.278+00:00 +0.799660 SERVER {"event": "request_handler_end", "endpoint": "sums"}
2026-11-10T10:49:19.332+00:00 +0.853671 OUTPUT "DEBUG:   77+     catch { if ( >>>> -not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) { throw } }\n\n"
2026-11-10T10:49:19.362+00:00 +0.883653 OUTPUT "DEBUG:   69+ function Wait-Retry([int] $status, [int] $attempt)  >>>> {\n\nDEBUG:   70+   if ( >>>> $attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return $false }\n\n"
2026-11-10T10:49:19.368+00:00 +0.890177 OUTPUT "DEBUG:   71+    >>>> Start-Sleep -Seconds ([Math]::Pow(2, $attempt - 1))\n\n"
2026-11-10T10:49:20.404+00:00 +1.925354 OUTPUT "DEBUG:   72+   return  >>>> $true\n\nDEBUG:   73+  >>>> }\n\nDEBUG:   75+   for ($attempt = 1; ;  >>>> $attempt++) {\n\nDEBUG:   76+     try { return  >>>> & $request }\n\nDEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\nDEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\n"
2026-11-10T10:49:20.410+00:00 +1.931579 SERVER {"event": "SENTINEL_OR_EXTRA_REQUEST", "endpoint": "sums", "attempt": 2}
2026-11-10T10:49:20.410+00:00 +1.931705 SERVER {"request_t": 1.930555, "event": "request", "path": "/v1.2.3/SHA256SUMS", "endpoint": "sums", "attempt": 2, "status": 200, "behavior": 200, "accept": null}
2026-11-10T10:49:20.410+00:00 +1.931966 SERVER {"event": "body_complete", "endpoint": "sums", "bytes": 181}
2026-11-10T10:49:20.410+00:00 +1.931998 SERVER {"event": "request_handler_end", "endpoint": "sums"}
2026-11-10T10:49:20.437+00:00 +1.958741 OUTPUT "DEBUG:   77+     catch { if ( >>>> -not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) { throw } }\n\nDEBUG:   69+ function Wait-Retry([int] $status, [int] $attempt)  >>>> {\n\nDEBUG:   70+   if ( >>>> $attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return $false }\n\nDEBUG:   71+    >>>> Start-Sleep -Seconds ([Math]::Pow(2, $attempt - 1))\n\n"
2026-11-10T10:49:22.420+00:00 +3.941908 OUTPUT "DEBUG:   72+   return  >>>> $true\n\nDEBUG:   73+  >>>> }\n\nDEBUG:   75+   for ($attempt = 1; ;  >>>> $attempt++) {\n\n"
2026-11-10T10:49:22.425+00:00 +3.947086 OUTPUT "DEBUG:   76+     try { return  >>>> & $request }\n\n"
2026-11-10T10:49:22.433+00:00 +3.955157 OUTPUT "DEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\nDEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\n"
2026-11-10T10:49:22.485+00:00 +4.006469 SERVER {"event": "SENTINEL_OR_EXTRA_REQUEST", "endpoint": "sums", "attempt": 3}
2026-11-10T10:49:22.485+00:00 +4.006697 SERVER {"request_t": 4.005512, "event": "request", "path": "/v1.2.3/SHA256SUMS", "endpoint": "sums", "attempt": 3, "status": 200, "behavior": 200, "accept": null}
2026-11-10T10:49:22.485+00:00 +4.007077 SERVER {"event": "body_complete", "endpoint": "sums", "bytes": 181}
2026-11-10T10:49:22.485+00:00 +4.007120 SERVER {"event": "request_handler_end", "endpoint": "sums"}
2026-11-10T10:49:22.489+00:00 +4.010494 OUTPUT "DEBUG:   77+     catch { if ( >>>> -not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) { throw } }\n\n"
2026-11-10T10:49:22.489+00:00 +4.011280 OUTPUT "DEBUG:   69+ function Wait-Retry([int] $status, [int] $attempt)  >>>> {\n"
2026-11-10T10:49:22.490+00:00 +4.011826 OUTPUT "\nDEBUG:   70+   if ( >>>> $attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return $false }\n\nDEBUG:   71+    >>>> Start-Sleep -Seconds ([Math]::Pow(2, $attempt - 1))\n\n"
2026-11-10T10:49:26.512+00:00 +8.033717 OUTPUT "DEBUG:   72+   return  >>>> $true\n\nDEBUG:   73+  >>>> }\n\nDEBUG:   75+   for ($attempt = 1; ;  >>>> $attempt++) {\n\nDEBUG:   76+     try { return  >>>> & $request }\n\nDEBUG:   83+     Invoke-Retrying  >>>> { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\nDEBUG:   83+     Invoke-Retrying {  >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing }\n\n"
2026-11-10T10:49:26.520+00:00 +8.041513 SERVER {"event": "SENTINEL_OR_EXTRA_REQUEST", "endpoint": "sums", "attempt": 4}
2026-11-10T10:49:26.526+00:00 +8.047368 SERVER {"request_t": 8.046107, "event": "request", "path": "/v1.2.3/SHA256SUMS", "endpoint": "sums", "attempt": 4, "status": 200, "behavior": 200, "accept": null}
2026-11-10T10:49:26.528+00:00 +8.050296 SERVER {"event": "body_complete", "endpoint": "sums", "bytes": 181}
2026-11-10T10:49:26.529+00:00 +8.050398 SERVER {"event": "request_handler_end", "endpoint": "sums"}
2026-11-10T10:49:26.533+00:00 +8.054365 OUTPUT "DEBUG:   77+     catch { if ( >>>> -not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) { throw } }\n"
2026-11-10T10:49:26.538+00:00 +8.060254 OUTPUT "\nDEBUG:   69+ function Wait-Retry([int] $status, [int] $attempt)  >>>> {\n\nDEBUG:   70+   if ( >>>> $attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return $false }\n\nDEBUG:   70+   if ($attempt -ge 4 -or ($status -ge 400 -and $status -lt 500 -and $status -ne 408 -and $status -ne 429)) { return  >>>> $false }\n\nDEBUG:   73+  >>>> }\n\nDEBUG:   77+     catch { if (-not (Wait-Retry ([int]$_.Exception.Response.StatusCode) $attempt)) {  >>>> throw } }\n\nDEBUG:  127+    >>>> [Console]::Error.WriteLine(\"EXCEPTION_TYPE=$($_.Exception.GetType().FullName)\")\n\nDEBUG:  127+   [Console]::Error.WriteLine(\"EXCEPTION_TYPE=$( >>>> $_.Exception.GetType().FullName)\")\n\n"
2026-11-10T10:49:26.562+00:00 +8.083838 OUTPUT "EXCEPTION_TYPE=System.IO.DirectoryNotFoundException\nDEBUG:  128+    >>>> [Console]::Error.WriteLine(\"ORIGINAL_STATUS=$([int]$_.Exception.Response.StatusCode)\")\n\n"
2026-11-10T10:49:26.564+00:00 +8.086187 OUTPUT "DEBUG:  128+   [Console]::Error.WriteLine(\"ORIGINAL_STATUS=$( >>>> [int]$_.Exception.Response.StatusCode)\")\n\n"
2026-11-10T10:49:26.573+00:00 +8.094479 OUTPUT "ORIGINAL_STATUS=0\nDEBUG:  129+    >>>> [Console]::Error.WriteLine(\"STATUS_VALUE=$($_.Exception.Response.StatusCode.value__)\")\n\nDEBUG:  129+   [Console]::Error.WriteLine(\"STATUS_VALUE=$( >>>> $_.Exception.Response.StatusCode.value__)\")\n\n"
2026-11-10T10:49:26.576+00:00 +8.097576 OUTPUT "STATUS_VALUE=\n"
2026-11-10T10:49:26.578+00:00 +8.100197 OUTPUT "DEBUG:  130+    >>>> [Console]::Error.WriteLine(\"EXCEPTION=$($_.Exception.Message)\")\n\n"
2026-11-10T10:49:26.579+00:00 +8.101058 OUTPUT "DEBUG:  130+   [Console]::Error.WriteLine(\"EXCEPTION=$( >>>> $_.Exception.Message)\")\n\n"
2026-11-10T10:49:26.592+00:00 +8.114687 OUTPUT "EXCEPTION=Could not find a part of the path '/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/nonexistent/destination'.\nDEBUG:  131+    >>>> throw\n\n"
2026-11-10T10:49:26.597+00:00 +8.118638 OUTPUT "DEBUG:  132+ } finally {  >>>> [Console]::Error.WriteLine(\"CAPTURE_CALLER_FINALLY\") }\n\n"
2026-11-10T10:49:26.604+00:00 +8.125340 OUTPUT "CAPTURE_CALLER_FINALLY\n"
2026-11-10T10:49:26.812+00:00 +8.334244 OUTPUT "Invoke-WebRequest: /tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/install.ps1:83\nLine |\n  83 |  … -Retrying { Invoke-WebRequest -Uri $uri -OutFile $destination -UseBas …\n     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
2026-11-10T10:49:26.813+00:00 +8.334468 OUTPUT "     | Could not find a part of the path\n     | '/tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P21-write-error-W/after/nonexistent/destination'.\n"
2026-11-10T10:49:26.911+00:00 +8.432805 SERVER_STATE_BEFORE_DRIVER_CLEANUP {"active_handlers": 0}
2026-11-10T10:49:26.914+00:00 +8.435490 RESULT {"exit_code": 1, "elapsed_seconds": 8.432706, "requests": 4, "interrupt_sent": false, "timeout": false, "state": {"marker": false, "files": [{"path": "home/.cache/powershell/StartupProfileData-NonInteractive", "bytes": 94572, "symlink": null}], "helper_outputs": [], "staging": [], "sidecars": [], "tracked_downloader_pids": [], "remaining_tracked_downloaders": []}, "symlink_executable_check": null}
