Skip to content

feat(zeronym): record the diverted migration's txid in the shim log - #32

Open
judah-caruso wants to merge 1 commit into
mainfrom
zeronym/shim-divert-log-txid
Open

feat(zeronym): record the diverted migration's txid in the shim log#32
judah-caruso wants to merge 1 commit into
mainfrom
zeronym/shim-divert-log-txid

Conversation

@judah-caruso

Copy link
Copy Markdown
Collaborator

The divert path currently logs only whether the hub accepted the transaction. That tells you a migration went through, but not which one, so lining a shim log up against the hub's own record while chasing a stuck migration comes down to matching timestamps.

The hub's SendResponse already carries the txid in error_message on the success arms, so the value is already in hand where the log line is emitted — no extra call, no extra state.

Field name is txid to match what the hub logs on its side.

The divert path logged only whether the hub accepted the transaction, which
is enough to know something was diverted but not enough to line a shim log up
against the hub's own record when an operator is chasing a stuck migration.
Correlating the two currently means matching on timestamps alone.

The hub's SendResponse already carries the txid in `error_message` on success,
so the value is in hand at the point of logging and needs no extra call.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@blacksmith-sh

blacksmith-sh Bot commented Aug 14, 2026

Copy link
Copy Markdown

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
this host disagrees with the PUBLISHED hash./
this host disagrees with the PUBLISHED hash.
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@judah-caruso

Copy link
Copy Markdown
Collaborator Author

For human eyes only

This is a test PR to see how good our little robot friend is at reviewing code

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