Skip to content

feat(raw): include analysis attempts in the review capture - #2155

Merged
lizhengfeng101 merged 3 commits into
mainfrom
feat/2149-unified-analysis-raw
Dec 1, 2026
Merged

lizhengfeng101 merged 3 commits into
mainfrom
feat/2149-unified-analysis-raw

Conversation

@lizhengfeng101

Copy link
Copy Markdown
Contributor

Description

Capture every HTTP attempt from ocr review --analysis in the review's existing raw/<encoded-repo>/<session-id>.jsonl. Collectors can follow one file without missing Analysis requests or their SDK retries. Analysis keeps its own retry report, trace, and budget; only the raw writer is shared.

Use analysis_task for Analysis main requests, including the final submission round. Review main requests remain main_task, and both branches retain memory_compression_task for compression. Raw capture remains opt-in.

How Has This Been Tested?

  • make check passed.
  • make test passed with the race detector across all 29 packages.
  • The combined-run HTTP test matches each JSONL record to a distinct server attempt, including a 503 and its successful retry. It also covers review-only runs, disabled logging, and analysis failure.
  • The pre-commit OCR review completed with no findings across the seven selected production files.

AI Disclosure

OpenAI Codex CLI (gpt-6.2-astra) assisted with implementation, tests, documentation, and this PR description. OpenCodeReview (gpt-6.2-astra) performed the pre-commit review.

Closes #2149.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

OpenCodeReview · Complete review: 7 of 7 selected files covered

0 findings.

Review info

Reviewed commits: 979e4eb8ad04794f5bac32baad45667f70c90fb4 → b173f15098dcebb58fcec3624afd8e3b9ac04a5d

File Result
internal/session/history.go Reviewed
cmd/opencodereview/shared.go Reviewed
internal/session/raw_writer.go Reviewed
cmd/opencodereview/analysis.go Reviewed
internal/behaviortask/runner.go Reviewed
internal/llmloop/task.go Reviewed
internal/llmloop/loop.go Reviewed

@css521 css521 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MuoDoo MuoDoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit af97d1e into main Dec 1, 2026
15 checks passed
@lizhengfeng101
lizhengfeng101 deleted the feat/2149-unified-analysis-raw branch December 1, 2026 13:32
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.

feat(raw): include analysis HTTP attempts in the review capture and identify analysis tasks

3 participants