Repository navigation
Description
What happened
A request letter keeps waiting_answer: true until its recipient replies or its sender cancels.
Nothing else ends that wait: not the delivery deadline once the letter was taken in, not the end of either party's registration, and not the pane closing.
Letter::open() counts such a letter as open, and the mailbox refuses every new letter with capacity once 1024 letters are open (OPEN_LIMIT).
So unanswered requests accumulate without bound, and once they reach the cap every agent's hide request send fails, including the replies and reports that would have closed other waits.
Measured on the operator's delivery ledger on 2026-10-08 at 08:15 KST, with 0.1.0-main.0eff40b7 installed:
- 313 letters had
waiting_answer: true; the median age was 5.8 h and the oldest was 50 h. - 76 of them had a local sender or recipient whose pane
herdr agent listno longer lists, so no reply or cancel can come from that side. - 292 of the 313 were created in the previous 24 h, during an overnight multi-agent run.
- The open-letter count, reconstructed from each letter's created and finished timestamps (approximate), rose from about 380 at 00:00 to above 1024 between 06:00 and 08:00.
Agents' own letters from that window report relays that were "capacity-rejected".
Part of that peak came from a separate defect that #753 already fixed on main: the installed build did not take an agent's hide request ack as its receipt, so 674 acknowledged letters also stayed open.
Even with #753, the unanswered requests alone would reach the cap in about two to three days at this run's rate (about 290 new unanswered requests per day).
Confirmed by reading herdr-core/src/delivery/{ledger,mailbox}.rs at fac7f0e: waiting_answer becomes false only on a reply, a cancel, or a pending letter's expiry to undelivered.
Not confirmed: whether the recipients ignored these requests or answered another way, for example with a --kind report letter instead of hide request reply.
What you expected
An unanswered request should not hold an open-letter slot forever, and its sender should be able to see that the wait ended without an answer.
Candidate directions, not decided:
- End the answer wait when the registration of either party ends, on the same transition that already ends watches (
agent.endedwithpane_leftorpane_absent). - Give the answer wait its own deadline, after which the letter closes as unanswered.
- Count only letters awaiting intake against the open cap, and bound answer waits separately.
docs/delivery.md ("a letter is open while it awaits intake or a reply") changes with whichever rule is chosen.
Steps to reproduce
- From agent A,
hide request send B --intent q1 --body 'question'. - Let B take the letter in (a bell turn, or
hide request ack) and never reply, or close B's pane. - The ledger keeps the letter with
waiting_answer: trueindefinitely. - With 1024 such letters open, the next
hide request sendfrom any agent is refused withcapacity.
Versions
- hide: 0.1.0-main.0eff40b7 (measured); the rule is unchanged on
mainat fac7f0e - Herdr: 0.9.3
- macOS: 15.1
Diagnostics
A capacity refusal is returned to the caller but not written to the core diagnostic log, so the refusals between 06:00 and 08:00 are known only from the agents' own letters.
Activity