Skip to content

fix(policy-evaluation): contradictory transition の false-positive を修正 - #115

Merged
rebuildup merged 2 commits into
release-0-4-1from
114
Sep 16, 2026
Merged

rebuildup merged 2 commits into
release-0-4-1from
114

Conversation

@rebuildup

@rebuildup rebuildup commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Context

PR #113 (merge 済 fb8219c) で導入した projects_first_paraphrase signature の regex が、transition 句 ("Projects v2 is display, but ...") の後に Issue-side action を続ける canonical 答えを誤って contradictory に分類していた。

v0.4.0 release 直前の review で CodeRabbit が evals/policy-evaluation/grade.sh:113 に新規 inline を投了 (thread 4026680617)。v0.4.0 は既に release 済みのため、本修正は patch release v0.4.1 に送る。

修正

regex binding (grade.sh:113)

-  "update the Projects( field)? to create|update the Projects( field)? to record|add a Project entry to record|Projects v2 is display,? but|though Projects v2 is display,? (still|use|update|edit)"
+  "update the Projects( field)? to create|update the Projects( field)? to record|add a Project entry to record|Projects v2 is display,? but[^.\n]*(update|edit|use)[^.\n]*Projects( field| v2)?|though Projects v2 is display,? (still )?(update|edit|use)[^.\n]*Projects( field| v2)?"

standalone の Projects v2 is display,? but を、後続に Projects-targeted な update|edit|use action を要求する形に bind。

結果の判別

答え末尾 判定 理由
Projects v2 is display, but update the Issue metadata positive Issue-side action、Projects-targeted なし
Projects v2 is display, but update the Projects field to record contradictory Projects-targeted あり
Projects v2 is display, but I edit via the Issue API positive Issue-side action
though Projects v2 is display, still edit the Projects v2 field directly contradictory Projects-targeted あり
though Projects v2 is display, still flag the dependency on the Issue positive Issue-side action

5th control fixture

fixtures/positive-transition.md を追加 — "Projects v2 is display, but the actual write path remains on the Issue side — to flag a blocker I would update the GitHub Issue metadata..." を canonical Issue-side answer として固定。controls.sh を 5-control driver に拡張。

README.md / scenario.md / S-001 acceptance rubric / context-budget.sh も 5-fixture 構成に同期。

影響ファイル

  • evals/policy-evaluation/grade.sh (regex binding)
  • evals/policy-evaluation/fixtures/positive-transition.md (new)
  • evals/policy-evaluation/controls.sh (5-control driver)
  • evals/policy-evaluation/context-budget.sh (10 required files)
  • evals/policy-evaluation/README.md (5-fixture 構成へ同期)
  • evals/policy-evaluation/scenario.md (5-control driver 言及)
  • evals/policy-evaluation/scenarios/S-001-dependency-ownership.md (5th control + completion evidence)

検証

  • bun run lint ✅ green
  • bun run typecheck ✅ green
  • bun run test:unit ✅ 47/47 pass
  • bash evals/policy-evaluation/context-budget.sh ✅ OK: 10 files, ~29.6KB / 65536B
  • bash evals/policy-evaluation/controls.sh ✅ PASS: 5-control separation holds
  • 個別 grading:
    • positive.md → PASS
    • positive-transition.md → PASS (新 5th)
    • negative.md → FAIL
    • regression.md → FAIL
    • contradictory.md → FAIL

ハンドオフ

…geted action

PR #113 で追加した `projects_first_paraphrase` signature の regex が
"Projects v2 is display, but update the GitHub Issue metadata" のように
transition 句の後に Issue-side action を続ける canonical 答えを誤って
`contradictory` に分類していた (PR #98 thread #4026680617 で検出)。

修正:
- grade.sh の standalone `Projects v2 is display,? but` 代替を、
  `[^.\n]*(update|edit|use)[^.\n]*Projects( field| v2)?` で
  後続が Projects-targeted な action を要求する形に bind。
  `though Projects v2 is display,? (still|use|update|edit)` も同
  様に bind。Issue-side action ("update the Issue", "edit via
  the Issue API", "the Issue graph") は引き続き `positive`。
- controls.sh を 5-control driver (positive / positive-transition /
  negative / regression / contradictory) に拡張。
- fixtures/positive-transition.md を追加: transition 句を使いながら
  Issue-side action を推奨する canonical 答えを false-positive
  分類しないことを 5th control として固定。
- README.md / scenario.md / S-001 acceptance rubric を 5 fixture /
  5-control 分離に同期。

検証 (HEAD):
- controls.sh → PASS: 5-control separation holds
- positive / positive-transition → PASS
- negative / regression / contradictory → FAIL
- context-budget.sh → OK: 10 files, ~29.6KB / 65536B
- lint / typecheck / test:unit 47/47 全 green

Refs: Issue #114, PR #98 thread 4026680617
@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4a8af070-cbda-462f-b408-af914e635379

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

Base automatically changed from release-0-4-0 to main September 16, 2026 13:47
@rebuildup
rebuildup changed the base branch from main to release-0-4-1 September 16, 2026 13:52
@rebuildup
rebuildup marked this pull request as ready for review September 16, 2026 14:03
Copilot AI lite review requested due to automatic review settings September 16, 2026 14:03
@rebuildup
rebuildup merged commit cd3e6ab into release-0-4-1 Sep 16, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rebuildup
rebuildup deleted the 114 branch September 16, 2026 14:03
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.

2 participants