Repository navigation
docs: execution-bug meta-analysis + target-arch result-contract tightenings - #1087
Merged
Merged
Conversation
…-contract tightenings Meta-analysis of ~80 orchestration/execution issues (#56→#1085): 11 per-family forensic analyses + cross-cutting synthesis. Headline finding — every family traces to two co-original-sins: PUSH_DISPATCH_BLOCKING (backend holds an HTTP connection for the whole agent turn → no completion signal) and the SPLIT_STATE_AUTHORITY it forces (is-running split across Redis ZSET + SQL row + agent RAM). The cleanup pyramid, slot-TTL math, circuit breakers, and the canary harness are all compensation; #1081 pull is the only structural cure. Folds three residual seams pull does NOT close into TARGET_ARCHITECTURE.md (coordination model unchanged): - typed terminal-reason on the reply envelope (kills the auth-substring classifier re-patched 5+ times across 3 hand-synced copies) — §Message Envelope, #945 - agent-owned out-of-band result record, not parsed stdout (#548/#333) — §Agent Runtime - credential rotation via hot-reload, not container recreate (#1037) — §Agent Runtime New report: docs/planning/ORCHESTRATION_BUG_META_ANALYSIS_2026-06.md Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Jun 6, 2026
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.
Summary
Meta-analysis of ~80 orchestration/execution issues (#56→#1085) — 11 per-family forensic analyses (each adversarially verified) + 4 cross-cutting synthesis lenses. New report at
docs/planning/ORCHESTRATION_BUG_META_ANALYSIS_2026-06.md.Headline finding: every bug family traces to two co-original-sins —
The cleanup pyramid, slot-TTL math, circuit breakers, and the canary harness are all compensation for those two. #1081 pull/work-stealing is the only structural cure.
Target-architecture changes (coordination model unchanged)
Folds three residual seams pull alone does not close into
TARGET_ARCHITECTURE.md:replyenvelope — the agent emits{status, error_code, …}; the backend never infers failure from exit codes/substrings. Kills the MISCLASSIFIED_FAILURE class (auth-substring classifier re-patched 5+ times across 3 hand-synced copies). Pins part of spec: message envelope payload schema (pull coordination) #945.stdout(which Claude's grandchildren inherit on fd 1 and corrupt before the POST — bug: child processes inherit agent-server stdout pipe → reader thread stuck, false '0 tool calls' failures #548/bug: agent-server.py develops futex spin loop after days of uptime #333)./api/credentials/update; recreate reserved for image/template changes (bug: subscription auto-switch (SUB-003) recreates agent container without draining in-flight executions, killing them (RemoteProtocolError) #1037).Follow-up issue sync (separate)
Tracker-truth corrections (#408↔#1083, #429 blocked-on-#307), reprioritization (#1022→P1), and two new issues (classifier unification, credential hot-reload rotation) are being handled via
/roadmap-plan+ issue comments — not in this PR.🤖 Generated with Claude Code