← Back to Pull requests

fix(release): recover lost macOS ticket connections #6097

Closed
unknown closed this pull request without merging on Oct 14, 2026 07:42 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 05:08 UTC
Author

Summary

Desktop Nightly 38513006217 stopped on both macOS architectures after Apple accepted their DMG notarizations. stapler staple lost the CloudKit ticket connection (NSURLErrorDomain Code=-1005) and exited 68, so the complete Desktop publication was blocked despite successful notarization. The earlier Intel Host startup check passed in this run.

Nightly and formal Desktop workflows now use one stapling entry point. It retries only exit 68 with that observed transport error, at most three attempts with 10/20-second waits and a two-minute command bound. Each attempt remains visible in the logs; other failures stop immediately. Successful stapling must pass stapler validate before packaging verification and publication continue. The formal workflow's duplicate validation moves into this shared gate. Release identity, signing, notarization, Gatekeeper assessment and final package verification remain enforced.

The existing one-shot calls could not recover this confirmed network failure. A shared script keeps that recovery rule out of duplicated workflow shell blocks. The separate Intel Host startup timeout is not changed.

CI also exposed a pre-existing inventory drift on main: the Astryx path/table already listed 335 files, while its generated Markdown summary still counted 334. Regenerate only that summary line through the existing generator so the required CI gate can validate this release repair.

Verification

  • The captured exit-68/network-loss regression fails with a one-shot stapler call and passes with recovery, followed by validation of the same artifact. Persistent network loss fails after three attempts; missing tickets, other exit codes and validation failures remain fatal.

  • Both publication workflow callers are checked to invoke the shared gate after notarization completes.

  • A command-level probe ran the actual CLI entry point with an external xcrun fixture: the first staple exited 68 with the captured network error; after the real 10-second wait, the second staple and validation succeeded against the identical path. This verifies launcher and subprocess error handling, not Apple service availability.

  • Clean dependency install and build passed. All 219 release checks, 85 scoped recovery/workflow/planner checks, format, lint and whitespace checks passed locally.

  • The inventory check reproduced main's stale summary. Regeneration changed only the count line; inventory verification and all 23 existing inventory tests then passed.

  • The network failure is from a native macOS runner. Recovery tests control the external xcrun boundary; a fresh native Nightly after review and merge is still required to confirm the complete publication path. No live Apple credentials or release artifacts were used in these local recovery tests.
  • AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: Codex investigated the failed publication, implemented the shared recovery gate and regressions, and ran local checks.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — described under Summary above

  • No
  • Diff: 419 lines (+314 / -105) across 5 files Reviewer: Astro-Han Review duration: 153m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 419 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.361
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6097"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.5% · Safe to merge
    19.5%
    Repository