fix: make Codex delivery resilient to sandbox DNS - #4983
Draft
Greg-Moskalenko wants to merge 3 commits into
Draft
Conversation
Honor the adapter network capability at startup and broker exact signed events through the harness when the sandboxed CLI cannot reach the relay. Preserve direct delivery as the primary path and verify relay acceptance plus exact readback for both paths. Co-authored-by: Greg Moskalenko <greg1mosk@gmail.com> Signed-off-by: Greg Moskalenko <greg1mosk@gmail.com>
Co-authored-by: Greg Moskalenko <greg1mosk@gmail.com> Signed-off-by: Greg Moskalenko <greg1mosk@gmail.com>
Co-authored-by: Greg Moskalenko <greg1mosk@gmail.com> Signed-off-by: Greg Moskalenko <greg1mosk@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
Codex turns could compose valid Buzz replies while normal
buzz messages sendcalls ran inside a workspace-write sandbox whose per-turn policy disabled network access. Delivery then depended on a model-selected elevated retry.A separate scheduler edge also let a managed agent appear online while native heartbeat ticks were dropped: lazy-pool startup left
pool_ready=false, the heartbeat branch skipped unready pools, and a heartbeat did not itself create wake demand.This change makes the intended workspace-write network policy explicit, adds a signed-event delivery contract outside the model sandbox, and turns a heartbeat that arrives during lazy sleep into bounded deferred work rather than silently discarding it.
Safety properties
Validation
Exact head:
d815befc9321f24ac1afa572d17eea183fd3297b(merged with upstream9213090f6076bf3b7667b9b984752b3e47ef8f2f).env -u BUZZ_ACP_LAZY_POOL just ci— full repository CI passedbuzz-acppackage validation passed: 714 unit tests and 9 lifecycle testsDependency and merge gate
Paired adapter change: agentclientprotocol/codex-acp#368.
Keep this PR draft. Do not merge until the compatible adapter is available to the Buzz package/runtime, required upstream review and checks pass for the exact head, the Apps manual merge gate is explicitly cleared, and the next normal-cadence production heartbeat confirms the end-to-end notification behavior without duplicate routing or checkpoint drift.