Repository navigation
fix(policy-evaluation): contradictory transition の false-positive を修正 - #115
Merged
Merged
Conversation
…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
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
PR #113 (merge 済
fb8219c) で導入したprojects_first_paraphrasesignature の 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 を投了 (thread4026680617)。v0.4.0 は既に release 済みのため、本修正は patch release v0.4.1 に送る。修正
regex binding (
grade.sh:113)standalone の
Projects v2 is display,? butを、後続にProjects-targetedなupdate|edit|useaction を要求する形に bind。結果の判別
Projects v2 is display, but update the Issue metadatapositiveProjects v2 is display, but update the Projects field to recordcontradictoryProjects v2 is display, but I edit via the Issue APIpositivethough Projects v2 is display, still edit the Projects v2 field directlycontradictorythough Projects v2 is display, still flag the dependency on the Issuepositive5th 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✅ greenbun run typecheck✅ greenbun run test:unit✅ 47/47 passbash evals/policy-evaluation/context-budget.sh✅OK: 10 files, ~29.6KB / 65536Bbash evals/policy-evaluation/controls.sh✅PASS: 5-control separation holdspositive.md→ PASSpositive-transition.md→ PASS (新 5th)negative.md→ FAILregression.md→ FAILcontradictory.md→ FAILハンドオフ
release-0-4-1114はrelease-0-4-1(b6c5add) を merge-parent として同期済み。current HEAD:d8b9cd4、base に対して behind 0 / intended 7-file diff のみ286106cに付いていたrelease-source-checkfailure は base=main 時点の stale run。同期後 HEADd8b9cd4では ticket PR (114→release-0-4-1) としてciのみ再実行release-0-4-1の release PR は meaningful integrated difference が入った時点で作成する