Review follow-up on the watchdog rewrite: - Register the deadline reaction inside `next()` and detach it when the demand settles. Racing against one watchdog-lifetime promise kept every settled race reachable through that promise's reactions, retaining each resolved `StreamChunk` for the length of the stream: a 10,000-value probe kept 100/100 sampled values before this change and 0/100 after. - Take the neighboring stall case's 1,000ms idle budget in the new transport-recovery case: the retry performs a real local HTTP/SSE round trip, and a 50ms budget would let coverage-lane scheduling decide it. - Document the contract where it is described: `packages/util/timeout/README` (both languages) and the bounded-recovery and timeout-library notes no longer claim that only the transport observes the watchdog signal.
29 lines
1.6 KiB
YAML
29 lines
1.6 KiB
YAML
# Bilingual-pair consistency record for 2026-07-06-timeout-deadline-library.md (docs/i18n/README.md): per heading
|
|
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
# After editing either side, bring the other along and re-record with:
|
|
# pnpm run verify-translation-pairing --write .agents/notes/implemented/architecture/2026-07-06-timeout-deadline-library.md
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability:
|
|
en: 4a9921fef5e65cc8
|
|
zh: 672cd27d68310cb1
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/problem:
|
|
en: f3fb995aaf40ac76
|
|
zh: 95bbc4d7d79e558c
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/decision:
|
|
en: 18645d82d9e40107
|
|
zh: 73e510f1ed1106e6
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/decision/the-library-api:
|
|
en: c62681afef60a0db
|
|
zh: 69827b4b3165b3da
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/decision/the-division-of-labor:
|
|
en: 263c8e17bbc87ba0
|
|
zh: d75a74f47713e79f
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/decision/how-each-capability-consumes-it:
|
|
en: 333eab4967d753ec
|
|
zh: dd7537bb82cc717f
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/consequences:
|
|
en: 0f723f16456c343d
|
|
zh: 52b7aab9a6c4f7be
|
|
/agent-note-a-shared-timeout-deadline-primitive-with-hard-kill-left-to-each-capability/alternatives-considered:
|
|
en: 0f3e3ecfa399c81a
|
|
zh: 951c2ee71047b11a
|