Skip to content

fix(frontdoor): log every exit and replace a door its watchdog ended - #444

Merged
Mearman merged 1 commit into
mainfrom
fix/frontdoor-exit-reason
Oct 14, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/frontdoor-exit-reason

Conversation

@Mearman

@Mearman Mearman commented Oct 14, 2026

Copy link
Copy Markdown
Member

A door exited at an unknown time with nothing in the log, leaving sessions on a refused port until a manual start. Every exit path now logs its reason, and a watchdog stall on a door that had served long enough starts a replacement that waits for the stalled pid before binding. Covered by watchdog and supervisor tests; typecheck, lint and the full suite pass.

A door that left silently looked, from outside, like one that was never
there: SIGTERM, SIGINT and the watchdog's SIGKILL wrote nothing to the
log, so the next launch found a dead door with no explanation.

Each exit path now writes its reason to the log first. When the watchdog
ends a stalled door that had served at least the idle shutdown window,
it also starts a replacement that waits for the stalled pid to exit
before binding the sticky ports, so sessions are not left on a refused
port until the next launch. A door that stalls sooner than that is left
to the next launch's ensure, so a deterministic stall cannot loop.
@Mearman
Mearman marked this pull request as ready for review October 14, 2026 06:47
@Mearman

Mearman commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-14T06:51:32.615463Z c1a25f9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: c1a25f95fb

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Mearman
Mearman merged commit 61fd5fd into main Oct 14, 2026
32 checks passed
@Mearman
Mearman deleted the fix/frontdoor-exit-reason branch October 14, 2026 06:52
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