Skip to content

fix: backport Doctor validation diagnostics to 2026.10.2 - #166855

Closed
RomneyDa wants to merge 1366 commits into
release/2026.10.2from
backport/release-2026.10.2-frv-doctor-diagnostics
Closed

RomneyDa wants to merge 1366 commits into
release/2026.10.2from
backport/release-2026.10.2-frv-doctor-diagnostics

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

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 cd3346e5a90aec8f3ce72f391087e7c68585fd7b onto frozen C e4c6c8714da4f3d910c81c673ba8863ded3d7892; stable patch IDs match. No unrelated production fixes are included.

Evidence

  • 60/60 focused cases passed on this exact backport: 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.
  • Main regression failed before the repair and passed after: the original exit 37 remains unchanged while its redirected Doctor error becomes visible on stderr.
  • The added Doctor lint outputs remain redacted and bounded; the stale-attempt reset is exercised by the existing capture owner suite.
  • Bash syntax, changed-file formatting, and git diff --check passed. 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.
  • Original beta FRV remains bound to its original C/Q. The local exact-payload Docker replay is diagnostic-only, not release qualification.

Both release/2026.10.1 and release/2026.9.9 have 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 37694088337 is blocked_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 final doctor --lint --json completed. 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-restart after 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 and timeout --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 Docker OOMKilled=false does 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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.