Repository navigation
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Backports the main diagnostic repair so release validation preserves redirected Doctor failure output and the two existing Doctor lint artifacts.
User Impact
Diagnostics only: no production runtime/configuration change, exception, timeout expansion, version bump, changelog change, or candidate recut. The original Doctor/update failures remain unresolved. Keep this backport draft while the source PR is unmerged and until its review/CI gates are complete.
Why This Change Was Made
Use the existing stderr-preserving failure handler, bounded host redaction/capture, stale-attempt reset, and real process cleanup owner. This is an exact clean cherry-pick of
cd3346e5a90aec8f3ce72f391087e7c68585fd7bonto frozen Ce4c6c8714da4f3d910c81c673ba8863ded3d7892; stable patch IDs match. No unrelated production fixes are included.Evidence
pnpm test test/scripts/npm-onboard-channel-agent-shell.test.ts test/scripts/upgrade-survivor-migration-diagnostics.test.ts --maxWorkers=1; 55.10 s wrapper / 48.16 s Vitest.git diff --checkpassed. Full release-backport type/check gates are not claimed; source main local gates passed except the documented, byte-identical inherited catalog-script unused export. CI timing remains pending.Both
release/2026.10.1andrelease/2026.9.9have the same diagnostic faults and existing shared handler; applicability is source-reviewed, not executed on those branches. No merge requested.Artifact compatibility: this changes only fixed-name log capture and attempt reset, not an operator data model, schema, config, migration, or installed updater. Existing report structure and optional-log behavior are unchanged. The source main repair also completed the full existing Slack Docker onboarding flow locally with the exact frozen tarball/registry, unchanged Doctor cap, agent turn, and Gateway restart assertions; this is diagnostic replay on source main, not backport release qualification.
Source diagnostic conclusion
Source-local published 2026.9.8-to-frozen-C root-managed Docker replay completed automatic failure collection: update-candidate exited 124 at the unchanged 900-second command cap, both candidate Doctor invocations exited 0/status ok, config validation passed, and installedVersion was 2026.10.2-beta.1. Update finalization was incomplete; restart/survivor assertions were not reached. This diagnostic evidence is not backport or frozen-FRV qualification and establishes no new timeout repair. Source exact-head required CI and refreshed ClawSweeper review have completed with no findings/blockers; this backport remains draft while source is unmerged.
Drained-parent timeout attribution
The terminal diagnostic manifest for parent
37694088337isblocked_complete, with no active children, collector errors, or requested child cancellations. The parent verifier fails on the selected failed child jobs, not a new orchestration error.Legacy-operator artifacts distinguish process and container status: the retained phase is
legacy-operator-doctor-clean, with exitStatus 143 / SIGTERM, while the Docker lane reports 124, after 2318 seconds wall time against its 2280-second whole-container cap (including host setup/cleanup). Three earlier captured candidate Doctor invocations exited 0/status ok; they do not prove the finaldoctor --lint --jsoncompleted. Its redirected lint files were omitted by the old capture owner, so the reason the final command failed to finish remains unestablished.Update-auth reached
recovery-update-restartafter the first-hop migration, Doctor/config checks, survival, pairing, and auth preparation. It reports 137, after 3470 seconds wall time, with a configured 3420-second whole-container cap andtimeout --kill-after=30s. That timing and the exact timeout owner make deadline enforcement a concrete explanation to investigate, rather than treating 137 alone as proof of OOM. There is no retained timeout signal receipt or kernel OOM record, and DockerOOMKilled=falsedoes not exclude a killed child. The underlying second-hop stall and precise kill attribution remain unresolved; no budget, assertion, candidate, or timeout policy was changed.These are diagnostic refinements, not repairs or release qualification. Original failures and all source/backport holds remain.