Skip to content

feat: ReviewSessionMeta for structured review results (closes #455)#456

Merged
RyderFreeman4Logos merged 3 commits intomainfrom
feat/review-auto-fix
Mar 22, 2026
Merged

feat: ReviewSessionMeta for structured review results (closes #455)#456
RyderFreeman4Logos merged 3 commits intomainfrom
feat/review-auto-fix

Conversation

@RyderFreeman4Logos
Copy link
Owner

Summary

  • Add ReviewSessionMeta struct to csa-session — written to {session_dir}/review_meta.json after every csa review run
  • Enables machine-readable access to review results (verdict, decision, tool, scope, exit_code, fix_attempted, fix_rounds, head_sha)
  • Metadata updated after each --fix round for downstream consumers
  • Document --fix workflow and review_meta.json in csa-review and pr-codex-bot skills
  • Issue feat: review-then-fix workflow — reviewer session should fix its own findings #455 author was unaware that --fix already existed — clarified and closed

Key changes

File Change
csa-session/src/state.rs New ReviewSessionMeta struct + write_review_meta()
csa-session/src/state_tests.rs 3 tests: roundtrip, write/read, overwrite-on-fix
cli-sub-agent/src/review_cmd.rs persist_review_meta() called after review + each fix round
csa-review/SKILL.md New "Review-then-Fix via --fix" section with JSON schema
pr-codex-bot/SKILL.md Steps 2, 8 updated for --fix and review_meta.json

Test plan

  • just test — 2766 tests pass
  • just clippy — clean
  • csa review --branch main — PASS
  • ReviewSessionMeta serde roundtrip test
  • ReviewSessionMeta write/read test
  • ReviewSessionMeta overwrite-on-fix test

Closes #455

🤖 Generated with Claude Code

RyderFreeman4Logos and others added 3 commits March 21, 2026 22:02
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…sults

Write machine-readable review metadata (session_id, head_sha, verdict,
decision, tool, scope, exit_code, fix_attempted, fix_rounds) to
{session_dir}/review_meta.json after csa review completes.

Meta is updated after each --fix round, enabling downstream consumers
(pr-codex-bot, commit skill, orchestration scripts) to programmatically
access review results without parsing free-form text output.

Closes part of #455 — provides the structured review session metadata
that enables the reviewer-fixes-own-findings workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…iew and pr-codex-bot

- csa-review: Add "Review-then-Fix via --fix" section documenting the CLI
  --fix flag, review session resume, and review_meta.json format
- pr-codex-bot: Update Steps 2 and 8 to use --fix for reviewer-fixes-own-findings
  pattern, referencing review_meta.json for SHA-verified fast-path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@RyderFreeman4Logos RyderFreeman4Logos merged commit a78c780 into main Mar 22, 2026
3 of 6 checks passed
@RyderFreeman4Logos RyderFreeman4Logos deleted the feat/review-auto-fix branch March 22, 2026 05:39
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: review-then-fix workflow — reviewer session should fix its own findings

1 participant