Skip to content

fix(send): do not claim delivery after dissolved gist - #527

Merged
joelteply merged 1 commit into
canaryfrom
codex/send-gone-no-success
May 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
codex/send-gone-no-success

Conversation

@joelteply

@joelteply joelteply commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • make gh 404/gone sends exit non-zero instead of falling through to the delivered arrow
  • show queued sends as queued instead of using the delivered arrow
  • make recv-side gh 404 stop the bearer stream and record last_error instead of continuing fresh heartbeats against a dissolved gist
  • teach airc status to report bearer last_error as degraded
  • add hermetic integration + unit regression coverage

Validation

  • bash -n lib/airc_bash/cmd_send.sh lib/airc_bash/cmd_status.sh test/integration.sh
  • ./test/integration.sh send_gone_gist_does_not_claim_delivery
  • python3 test/test_bearer.py

Context

Caught from the vHSM -> authenticator DM failure. The bearer correctly classified the dissolved gist as gone, but cmd_send still printed → @authenticator-448f on #general. Follow-up inspection found vHSM's recv log repeatedly polling a 404 gist while status reported fresh heartbeat; this PR fixes both the false send success and the false recv health.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes airc msg’s user-facing send confirmation so it no longer reports “delivered” when the underlying GitHub gist destination has been dissolved (HTTP 404 / gone) or when the send outcome is queued (e.g., transient failures / secondary rate limits). It also adds an integration regression scenario to ensure both the exit status and stdout banners reflect the true delivery state.

Changes:

  • Make gone/404 send outcomes return non-zero (both joiner and host send paths), preventing fall-through to the success footer.
  • Introduce a delivery-state flag so queued outcomes print a queued banner (↻ queued ...) instead of the delivered arrow (→ ...).
  • Add a hermetic integration scenario that stubs bearer_cli send to assert: 404 does not print delivered output and exits non-zero; transient failures queue and print the queued banner.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/integration.sh Adds send_gone_gist_does_not_claim_delivery scenario and wires it into the mode dispatch + all run list.
lib/airc_bash/cmd_send.sh Ensures gone returns non-zero and uses a shared _airc_delivery_state to print queued vs delivered confirmations correctly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joelteply
joelteply force-pushed the codex/send-gone-no-success branch from ea500cd to 4e2da02 Compare May 6, 2026 14:39
@joelteply
joelteply merged commit 8697994 into canary May 6, 2026
6 checks passed
@joelteply
joelteply deleted the codex/send-gone-no-success branch May 6, 2026 14:42
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.

2 participants