NotASithLord / NotASithLord/peerd

A2A ask can lose fast replies and ignore Stop during send

Open
#455 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
410
Forks
45
Avg merge
11d 5h
Merged PRs (30d)
1

Description

Problem

The A2A ask path registers its reply correlation after it waits for sendDm. A fast peer reply can arrive first and be dropped. A stalled send can also keep dispatch() pending after the reply timeout or Stop clears the correlation.

Expected

  • Register the correlation before send.
  • Let send and reply handling run together.
  • Let a reply, timeout, or Stop settle the call while the transport is pending.
  • Ignore late transport settlement after the ask has settled.
  • Keep peer identity checks and cleanup unchanged.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the A2A ask path and its dispatch() flow, then trace sendDm and reply-correlation registration. Confirm that correlation is registered before sending and that reply, timeout, or Stop can settle the call while transport remains pending; verify peer identity checks and cleanup stay unchanged and late transport settlement is ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.