Skip to content

fix: retain sanitized keepalive failure stages - #144

Merged
Pigbibi merged 1 commit into
mainfrom
codex/ibkr-remote-stage-diagnostic-20260912
Sep 12, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
codex/ibkr-remote-stage-diagnostic-20260912

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Scheduled keepalive can fail after SSH is restored but before the recovery script emits a stage. Those failures were reported only as REMOTE_COMMAND_OR_TRANSPORT_FAILED, preventing attribution from the retained workflow log.

Add allowlisted stage markers to the existing remote keepalive command and consume them in the existing sanitized classifier. Preserve recovery-stage precedence and the generic fallback for transport/unknown errors. Keep raw command output private and transient; preserve the original watcher cleanup activation point, maintenance commands, retries and failure exit status.

Validation: focused shell regression passed (confirmed RED on the old base), including stage classification/redaction, transport fallback, pipe failure, successful exit, and original watcher cleanup timing/exit status. Actionlint, Python test (1 passed) and diff checks passed. Seven other shell test scripts passed. The recovery shell test fails on both unchanged base and this branch in the local macOS environment, which lacks flock/timeout; required Linux CI must pass before merge. No manual maintenance, VM reset, authentication or broker operation was triggered for this patch. A later natural run is required to identify the production failure stage; this change does not claim Gateway recovery.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 9b60bc4 into main Sep 12, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the codex/ibkr-remote-stage-diagnostic-20260912 branch September 12, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant