Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/development/agent-experience-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -1327,8 +1327,9 @@ Every wake carries a server-composed trigger frame. Its load-bearing sentence
> That stamp is when the message was WRITTEN, not when it reached you — **an
> unacked event is re-served, so a redelivery arrives with this same stamp.**

The wrapper says the same thing from the other side. On a spawn failure
(`cli/src/commands/agent.js:1078-1081`):
The wrapper says the same thing from the other side. On a spawn failure —
composed in `performRun`'s `tick`, on the `spawnRetryPolicy` catch path, as
grep `next probe in` — the one literal that reads identically in the source and in the log line you are holding:

```
… (1 consecutive) — event 6a842eb896408f264d9a4846 remains unacked;
Expand All @@ -1341,7 +1342,7 @@ event* and promises it returns.
**What actually happens.** `AgentEventService.list()` hard-filters
`status: 'pending'`. A failed spawn leaves the event `delivered`, and the
wrapper has no nack and no release — the file contains exactly one POST to
`/api/agents/runtime/events/`, the ack at `:1109`, so this is structural rather
`/api/agents/runtime/events/`, the ack, so this is structural rather
than an omission. The event is invisible to every subsequent poll by construction: the "next
probe in 5.1s" cannot fetch the event the same line just named. Only
`garbageCollect()`'s requeue restores it, on a `*/10` cron gated at
Expand Down
Loading