Skip to content

[codex] Make reload rollback policy failures#635

Merged
winhowes merged 1 commit into
mainfrom
codex/reload-transaction-rollback
Apr 24, 2026
Merged

[codex] Make reload rollback policy failures#635
winhowes merged 1 commit into
mainfrom
codex/reload-transaction-rollback

Conversation

@winhowes
Copy link
Copy Markdown
Owner

@winhowes winhowes commented Apr 24, 2026

Summary

  • Make reload publish the new integration map only after fatal allowlist and denylist validation/registration succeeds.
  • Stop newly-created rate limiters and restore policy state when allowlist or denylist reload steps fail.
  • Add regression coverage for invalid policy validation, policy registration hook failures, and preservation of pre-existing integration/allowlist/denylist state.

Root Cause

reload replaced integrations.m and stopped old limiters before allowlist and denylist validation completed. If policy validation or registration failed afterward, the function returned an error while the process was already serving the new integration map.

Validation

  • git diff --check origin/main..HEAD
  • go test ./app -run 'TestReload(InvalidAllowlist|InvalidDenylist|SetAllowlistError|SetDenylistError)'
  • go test ./...

@winhowes winhowes marked this pull request as ready for review April 24, 2026 03:36
@winhowes winhowes force-pushed the codex/reload-transaction-rollback branch from fbe8e05 to 5ebf861 Compare April 24, 2026 03:40
@winhowes winhowes marked this pull request as draft April 24, 2026 03:41
@winhowes winhowes marked this pull request as ready for review April 24, 2026 03:41
@winhowes
Copy link
Copy Markdown
Owner Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ebf861bae

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/main.go Outdated
@winhowes winhowes force-pushed the codex/reload-transaction-rollback branch from 5ebf861 to d77cdda Compare April 24, 2026 03:53
@winhowes
Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@winhowes winhowes merged commit eea1051 into main Apr 24, 2026
3 checks passed
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