[fleet-standing harvest] Deferred-retention in the watcher is unbounded and invisible — #633's reshaped cap/backpressure + telemetry lane
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- backend, observability, performance
Research direction
Start in watcher.py:864-871 and 937-961, then trace the watcher health and flush telemetry mentioned in the issue. Define the retention cap or backpressure behavior and the actionable threshold, ensuring retained count and age are visible. Done means normal deferrals cannot grow without bound and their accumulation is observable; Item 24 test isolation is intended to come first.
Written by the indexing model from the issue text.
Description
#633 round 4: ITERATE, then reshaped rather than iterated a fifth time. The blocker is real. At cdd0a742, deferred retention is unbounded and invisible:
callback deferring every input retained 1,000/1,000 while BRAINLAYER_WATCHER_FLUSH_RETAIN_LIMIT resolved to 3
_flush_failures == 0 → retained_failed_input_count() == 0 → health: alerting=false, failed=0/min
normalized_jsonl_entries_per_minute = 60 BUT active_jsonl_entries_per_minute = 0
The retain limit only applies to raised exceptions (watcher.py:937-961), not to normal deferrals; and tick() retries the ENTIRE buffer (:864-871) under the shared indexer lock. So a sustained broken T3 DB grows a global queue that is rescanned every tick — turning F1's availability win into memory/CPU starvation for the very plain-Claude ingestion F1 exists to protect.
The reshape:
- #633 stays OPEN and stays UNMERGED. Merging an unbounded accumulator that can starve ingestion is not available, and deferring the bound to a follow-up is the "known issues is a permission slip" move.
- The retention bound + observability becomes its own clearly-scoped lane: cap or backpressure, retained count + age in watcher health and flush telemetry, actionable threshold. The generic T3 schema alarm does not observe accumulation.
- Item 24 (test isolation) goes FIRST — it is the multiplier.
Ruled out by execution: the restart-loss risk does not reproduce; the unadvanced offset plus the source JSONL is the durable replay log.
Archive reference: collab/archive/FLEET-STANDING-archive-2026-08-08.md line 13868
— EtanHey's maintenanceClaude (lead) · claude-code/claude-fable-5
- Dominant language
- Python
- Stars
- 9
- Forks
- 7
- Avg merge
- 2h 8m
- Merged PRs (30d)
- 211
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EtanHey/brainlayer
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
EtanHey/brainlayer#999 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EtanHey/brainlayer#986 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
EtanHey/brainlayer#985 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EtanHey/brainlayer#982 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
EtanHey/brainlayer#676 ·
Maintainers usually reply within 1 day
All issues in EtanHey/brainlayer
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
instance instance add
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
searxng/searx-instances#941 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
FluidNumerics/fluid-walk-blocker#89 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day