Make duplicate reciept#1583
Conversation
6a5041c to
34206dc
Compare
|
Format your code |
|
Can I delete the branches and start the task afresh, I think it will be
okay that way
…On Mon, Jul 20, 2026, 5:13 PM Uthaimin ***@***.***> wrote:
*kryputh* left a comment (Stellar-Mail/stealth#1583)
<#1583 (comment)>
Format your code
—
Reply to this email directly, view it on GitHub
<#1583?email_source=notifications&email_token=BMBZJ5AFSHFANXYY55JOHZT5FZAMBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBSGQ2DINJTGAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5024445301>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BMBZJ5B5G7XEK5XDXYXJQN35FZAMBAVCNFSNUABGKJSXA33TNF2G64TZHMYTEMZQGQ3DGOJYGA5US43TOVSTWNBZGIZTMOBTG42DLILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BMBZJ5E4X62UR7FJWOEIE3D5FZAMBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBSGQ2DINJTGAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BMBZJ5GHNG6VOJDRJXZBYRD5FZAMBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBSGQ2DINJTGAY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
96b483f to
6ed7d83
Compare
|
@Chigybillionz tell your agent to run bun command with prettier to format the code Then check ✅ it again with bun after with bun prettier check ✅... That the case for all your issues. If you have CODEX try using it or just connect your GitHub with GPT and use chatGPT work with the GitHub mcp It should also solve it |
|
@Chigybillionz tell your agent to run bun command with prettier to format the code Then check ✅ it again with bun after with bun prettier check ✅... That the case for all your issues. If you have CODEX try using it or just connect your GitHub with GPT and use chatGPT work with the GitHub mcp It should also solve it |
|
Alright let me see..
I'll send feedback back
…On Mon, Jul 20, 2026, 10:54 PM Uthaimin ***@***.***> wrote:
*kryputh* left a comment (Stellar-Mail/stealth#1583)
<#1583 (comment)>
@Chigybillionz <https://github.com/Chigybillionz> tell your agent to run
bun command with prettier to format the code
Then check ✅ it again with bun after with bun prettier check ✅...
That the case for all your issues. If you have CODEX try using it or just
connect your GitHub with GPT and use chatGPT work with the GitHub mcp
It should also solve it
—
Reply to this email directly, view it on GitHub
<#1583?email_source=notifications&email_token=BMBZJ5GJLNARH6L4UBTNE235F2IJFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBSG43DKNBSGY32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5027654267>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BMBZJ5EDH2CTJHAUXWIYCHT5F2IJFAVCNFSNUABGKJSXA33TNF2G64TZHMYTEMZQGQ3DGOJYGA5US43TOVSTWNBZGIZTMOBTG42DLILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BMBZJ5F3ON6G7V2DP2NIXBD5F2IJFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBSG43DKNBSGY32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/BMBZJ5EQAH6P5JB5FU23VNL5F2IJFA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBSG43DKNBSGY32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
First which AI agent are you using second is how good is your prompt techniques because this CI is almost getting impossible for you to solve |
|
I have not worked it out...
Am about to do it
Am using antigravity
I'll do this afternoon
…On Tue, Jul 21, 2026, 7:39 AM Uthaimin ***@***.***> wrote:
*kryputh* left a comment (Stellar-Mail/stealth#1583)
<#1583 (comment)>
First which AI agent are you using second is how good is your prompt
techniques because this CI is almost getting impossible for you to solve
—
Reply to this email directly, view it on GitHub
<#1583?email_source=notifications&email_token=BMBZJ5DLBDC5WL2FTOEREC35F4F27A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBTGA4TCMZWGYZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5030913663>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BMBZJ5DKUJGFEBTZR35SWGL5F4F27AVCNFSNUABGKJSXA33TNF2G64TZHMYTEMZQGQ3DGOJYGA5US43TOVSTWNBZGIZTMOBTG42DLILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BMBZJ5GJY5LO3MSIGUH6SUT5F4F27A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBTGA4TCMZWGYZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/BMBZJ5EMCOGYACGVXIQDWDL5F4F27A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBTGA4TCMZWGYZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Close #1549
Summary of the issue
Receipt publication was not deterministic for duplicate delivery and read receipt calls. Clients that retried after timeouts could receive conflicts for otherwise identical duplicate requests, and concurrent retries could race on timestamp assignment.
Root cause
The receipt service performed duplicate handling with separate read-then-write logic. Duplicate delivery receipts were rejected with
409, and duplicate read receipts were rejected after the first read transition. Because timestamp assignment happened outside an atomic receipt transition, concurrent retries could observe stale state and attempt repeated receipt writes.Solution implemented
This PR makes receipt publication idempotent and documents timestamp precedence:
deliveredAttimestamp wins.readAttimestamp wins.messageIdwith different participants still return409 conflict.Key changes made
createReceiptIfAbsentmarkReceiptReadStealthCoordinator.Trade-offs or considerations
The API now treats identical duplicate delivery/read publication as successful replay instead of conflict. Conflicting participant claims for an existing
messageIdremain conflicts to avoid silently changing receipt ownership.Testing steps
Run focused unit tests:
npm test -- --run tests/unit/api/receipt-service.test.ts tests/unit/api/stealth-coordinator.test.ts tests/unit/api/kv-repository.test.ts tests/unit/api/health.test.tsRun the full unit suite:
npm testOptional API verification:
messageIdbut different participants and confirm409 conflict.readAttimestamp is preserved.Please kindly review this task. If there are any corrections, improvements, adjustments, or merge conflicts that you notice regarding my implementation, I'd really appreciate your feedback. I'd also love to hear your overall review of my work on this branch.Thank you!