Repository navigation
release: v0.13.7 — stop the execution progress event storm - #69
Merged
Merged
Conversation
Every line of CLI agent output appended an execution.progressed domain
event, a receipt per consumer, an Attention resolve and an SSE frame, and
every open browser refetched Project lists and analytics for each frame.
On a busy host this saturated IO and the SQLite write lock, which also made
POST /tasks/{id}/recover take 15-18s.
- last_progress_at advances at most once per second for CLI and daemon
executions; execution.progressed is stored only when progress clears a
stall warning. V146 deletes the stored per-line events.
- domain_event.committed frames carry domain_event_type/domain_entity_id;
the web client refreshes only the affected Task for liveness events.
- Project-scoped frames refresh the exact Project summary/list, don't
cancel in-flight refreshes, and coalesce bursts to one per 500ms.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A running Task flooded the server: every CLI agent log line appended an
execution.progresseddomain event (plus a receipt row per consumer, an Attention resolve, and an SSE frame). Measured on the host: ~300 events/min, 392k receipt rows (~165 MB), 57% iowait, 512 slow-statement warnings in a day (PK updates taking 7 s). Browsers refetched Project lists/analytics per frame (~600 req/min).POST /tasks/{id}/recovertook 15–18 s because its write transaction queued behind this; normal latency is ~0.5 s.Changes
record_progressonly updateslast_progress_at; it appendsexecution.progressedonly when progress ends a warned stall epoch (that event resolves the Attention item).execution.progressedevents not referenced by other durable rows.domain_event.committedSSE frames adddomain_event_type/domain_entity_id; the web client refreshes only the owning Task for liveness events.docs/diagnostics/).Verification
Focused: db lease/migration tests, services liveness + attention + daemon throttle tests, api event_publication_audit, web sse.test.ts (30), typecheck, eslint, clippy
-D warnings, fmt. V146 SQL checked against a copy of a dev DB.🤖 Generated with Claude Code