Skip to content

feat(agent): review結果へ model と spec 識別子を記録する (#231) - #232

Merged
rebuildup merged 1 commit into
release/rex-remotefrom
231
Nov 23, 2026
Merged

rebuildup merged 1 commit into
release/rex-remotefrom
231

Conversation

@rebuildup

@rebuildup rebuildup commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • AgyReviewResult に model(--model 指定値、未指定は null)と specSha256(spec 本文の SHA-256)を追加
  • deferred / quota-exhausted の早期 return、local、Herdr 内側 run-file の全経路で記録(run-file は request.json から spec/model を復元するため同一値になる)
  • 契約 version は変更なし。フィールド追加のみ
  • design-skills#199 / project-init#192 の「再現可能な証跡」要件の前提

Test plan

  • bun test script/agent.agy-review.test.ts — 33 pass(model/specSha256 記録の新規テスト含む)
  • bunx tsc --noEmit clean
  • ./script/test ./script/test-workflow ./script/check-secrets pass

Generated with Devin

Summary by CodeRabbit

  • New Features
    • Review results now include the selected model, or indicate when no model was specified.
    • Review results also include a SHA-256 hash of the exact review specification, including newline characters.

The result JSON carried only the contract version, so a stored review
could not be traced back to the model and criteria that produced it.
Record the --model value (null for agy default) and the SHA-256 of the
spec text on every result, including deferred/quota-exhausted paths and
the Herdr inner run-file, which reconstructs spec and model from the
materialized request.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The agy review result now includes the selected model and the SHA-256 digest of the review specification. Deferred, quota-exhausted, local, and Herdr result paths populate both fields. Tests cover explicit and unspecified models.

Changes: Agy review result metadata

Layer / File(s) Summary
Result metadata contract and calculation
script/agent/agy-review.ts
AgyReviewResult adds model and specSha256. reviewMeta captures the requested model and hashes the specification text.
Populate and test result metadata
script/agent/agy-review.ts, script/agent.agy-review.test.ts
Deferred, quota-exhausted, local, and Herdr results pass metadata to baseResult. Tests check the explicit model, the null model when unspecified, and the specification digest.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related issues

Possibly related PRs

Merge Risk: Minimal · up to cdb30

This change adds the selected model and a spec digest to review results. It is additive and does not change the contract version. No concrete merge risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says the change records a model and a spec identifier in the review result. The raw summary confirms that AgyReviewResult gains model and specSha256 fields, populated on all result paths, wi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says the change records a model and a spec identifier in the review result. The raw summary confirms that AgyReviewResult gains model and specSha256 fields, populated on all result paths, with tests added. The title matches the main change. The title is in Japanese, which is acceptable for this repository, and it includes the PR number (#231), while the objectives reference #232. That mismatch does not affect the title's relevance to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7145e9f and cdb30e7.

Files selected for processing: 2

  • script/agent.agy-review.test.ts
  • script/agent/agy-review.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@rebuildup
rebuildup merged commit 8e4f698 into release/rex-remote Nov 23, 2026
4 checks passed
@rebuildup
rebuildup deleted the 231 branch November 23, 2026 11:21
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