Skip to content

fix(work): parse Claude Code stream-json reply before threading it downstream - #546

Merged
getappz merged 1 commit into
masterfrom
task/489-sdd-loop-judge-reply-deterministically-m
Aug 18, 2026
Merged

fix(work): parse Claude Code stream-json reply before threading it downstream#546
getappz merged 1 commit into
masterfrom
task/489-sdd-loop-judge-reply-deterministically-m

Conversation

@getappz

@getappz getappz commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • cargo test -p agentflare --bin agentflare agent_launch:: — 19 passed
  • cargo test -p agentflare --bin agentflare work_item_pipeline:: — 39 passed, including a reproduction test (uncleaned_claude_stream_json_transcript_breaks_judge_parsing) confirming the exact missing field \action` failure signature, and a fix-verification test (clean_agent_reply_fixes_claude_stream_json_so_judge_parsing_succeeds`)
  • cargo clippy -p agentflare --bin agentflare -- -A unsafe_code -A clippy::pedantic — clean
  • cargo fmt --check -p agentflare — clean

…wnstream

real_agent_send_hook fed every role's raw --output-format stream-json
transcript (one JSON object per line: system init, tool_use, ..., final
result) straight into role_reply, since #498 deleted the old coder step's
transcript parsing without giving sdd_loop's shared hook an equivalent.
For the judge specifically, parse_judge_decision then parsed the
transcript's first line -- a valid-but-action-less system/init event --
instead of the judge's actual decision on the last line, hard-failing
every judge turn with "missing field `action`" (items #478/#502/#503).

Restore transcript parsing (parse_claude_reply, agent_launch.rs) and
apply it to every Claude Code role's reply via clean_agent_reply, not
just the judge's, since role_reply also gets embedded verbatim into
build_judge_prompt.

Agentflare-Agent: claude-code
Agentflare-Branch: task/489-sdd-loop-judge-reply-deterministically-m
Agentflare-Item: 489
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 13 minutes

Limit details: You’ve used all 1 included review currently available under your plan. You completed 60 included PR reviews in the past 7 days; at that activity level, included reviews refill at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8378fd00-f31b-49fb-aaa1-a6b702dbdfae

📥 Commits

Reviewing files that changed from the base of the PR and between d11023e and 031e65c.

📒 Files selected for processing (2)
  • src/agent_launch.rs
  • src/work_item_pipeline.rs

Comment @coderabbitai help to get the list of available commands.

@getappz
getappz merged commit f5b1a96 into master Aug 18, 2026
17 checks passed
@getappz
getappz deleted the task/489-sdd-loop-judge-reply-deterministically-m branch August 18, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant