Skip to content

fix: preserve sanitized relay worker diagnostics - #49

Merged
abruption merged 1 commit into
mainfrom
fix/security-observability-v0.6
Oct 26, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/security-observability-v0.6

Conversation

@abruption

Copy link
Copy Markdown
Owner

Problem

The research monitor reported only transport_failed when its child failed after a Python runtime replacement. That concealed whether the child raised an import error, exited, failed to start, or returned invalid data.

Changes

  • An explicit bounded IPC envelope separates JSON results from sanitized worker errors.
  • Fixed allowlisted error kinds and exit codes are returned without exception text, URLs, credentials, interpreter paths or environment values.
  • Relay health and transition logs include worker diagnostics plus a runtime-prefix presence flag and numeric Python version.
  • Successful delivery clears current errors; restoration logs retain the previous sanitized failure.
  • Existing transport classifications, credentials, claim policy and retry deadlines remain unchanged.

Verification

179 existing research tests completed locally (one Linux-only test skipped); 30 focused tests passed. Additional bounded in-memory checks exercised an import error with a secret-bearing message, process exit code, oversized results, an envelope-shaped generic value and a missing runtime prefix. No raw exception message was exposed.

The operator-authorized Mac relay copy was updated with code-only backups and restarted; diagnostic fields are present, runtime prefix exists, and subscription/health remain normal. Production broker and installed Dots package sources are unchanged by this PR. Separate private access-audit collection/alert tooling is being prepared operationally and is not claimed as implemented here.

Related #43; v0.6.0 follow-up. No release or merge is performed by this change.

@abruption abruption added this to the v0.6.0 milestone Oct 26, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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
📝 Code Review ✅ Completed 2026-10-26T00:35:58.808721Z 42f5643 PR opened
🔒 Security Review ✅ Completed 2026-10-26T00:36:37.729280Z 42f5643 PR opened
ℹ️ 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.

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