streaming_card reply delivery.bot-channel-continuous; this
change does not alter desktop desktop-continuous or mobile
web-remote-replayable recovery semantics.turn.steerQueued and turn.steerDrained.Feishu card writes are best-effort. A provider failure must not block task lifecycle events, but repeated stream events must not turn one provider rejection into an HTTP request storm.
task stream event
|
v
card sync requested -- before nextAttemptAt --> suppress request
|
+-- circuit open ----------------------> suppress request
|
v
Feishu create/update
| success
+------------------> reset failure state
|
| failure
v
failure 1 -- wait 1s --> failure 2 -- wait 2s --> failure 3
|
v
open circuit
The circuit opens after three consecutive failures in the same inbound turn. It has no timer-based half-open transition: stale events arriving minutes later cannot restart writes for that turn. A new inbound user message creates a new turn-local state and may attempt delivery again.
The backoff is event-driven; no retry timer is created. A request is attempted only when another task event arrives after the current delay. Forced terminal/tool syncs also obey failure backoff and the open circuit.
Feishu Card JSON 2.0 rejects cards that exceed 200 components or elements with
230099/11310 and element exceeds the limit. The provider therefore owns a
conservative budget of 180 tagged elements per streaming card, including nested
elements and the running/completed status line. The budget is checked before every
create or update request.
Official reference: Send messages - error code 11310.
When the next timeline block would exceed that budget, the current card is sealed with the largest fitting prefix and retained in the conversation. Remaining blocks start a new card, which becomes the only card updated by later stream events.
timeline blocks
|
v
rendered element budget <= 180 ---- yes ----> update active card
|
no
v
seal largest fitting prefix -> retain old card -> create next card for suffix
The service tracks the first block owned by the active card, so segmentation does
not resend sealed content. If Feishu still returns 230099/11310 despite the
conservative local budget, normal backoff and circuit breaking apply; the service
must not create an unbounded card loop from an unexpected provider rejection.
Production logs retain only failed write attempts, not every suppressed stream event:
This evidence distinguishes a late task event from a timer or autonomous retry. In
particular, an update observed long after /停止 must carry the task event that
requested it. High-volume per-chunk and per-suppression traces stay out of production
logs.