Skip to content

feat(delivery): release scope と owner 承認権限の不整合を検出する評価・手順を追加 (#141) - #196

Merged
rebuildup merged 2 commits into
release-0-13-0from
141
Nov 23, 2026
Merged

rebuildup merged 2 commits into
release-0-13-0from
141

Conversation

@rebuildup

Copy link
Copy Markdown
Owner

Linked Issue: #141
Target Release: 次期 release(v0.13.0 carry-over。v0.12.0 candidate freeze 中のため release-0-12-0 へは自律 landing せず、v0.12.0 公開後に release-0-13-0 へ retarget して統合する / ADR-0032)

概要

  • skills/github-delivery/references/scope-authority-reconciliation.md を追加し、adaptive-release-batching.md から接続(github-delivery/SKILL.md の context-budget を増やさない構成)。
  • evals/scope-authority/grade.mts および grade.test.mts を追加し、以下すべての正例・負例を検証:
    • Aulymo #108/#59/#102 vs PR #137/#136 の単一 PR による未承認 4.0.0 前倒しを BLOCK(単なる設計調査 / 4.1.0 Draft は PASS)。
    • Aulymo #59 追記の最新 owner 判断(#145〜#149 の 4.0.0 維持)を無視する stale snapshot を検出・防止し、最新 revision 整合済みは PASS。
    • 進捗保持(preserve-progress)・release 統合(land-to-release)・release blocker 化(release-blocker) を分離し、進捗記述だけで #112 を必須化するケースを BLOCK。
    • my-web-2026 #720 型の agent 自己申告承認(agent-self-attested)を BLOCK。
    • xyt-media #191 型の release branch 集約と release -> main 完了の混同を BLOCK。
  • .github/workflows/eval-controls.yml へ bun run test:scope-authority を接続。

検証

  • bun run typecheck: PASS
  • bun run quality:structure: PASS(findings: 0)
  • bun run test:scope-authority: PASS(7/7 test cases)
  • bun evals/policy-evaluation/controls.mts: PASS(context-budget PASS)

Refs #141(release-0-13-0 への retarget・統合完了後に close)

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c6e32e5 and 19eaf03.

Files selected for processing: 28

  • .github/workflows/eval-controls.yml
  • evals/scope-authority/controls.mts
  • evals/scope-authority/fixtures/negative-agent-revision-bump-staleness-bypass.json
  • evals/scope-authority/fixtures/negative-aulymo-unapproved-scope-drift.json
  • evals/scope-authority/fixtures/negative-bulk-close-unimplemented.json
  • evals/scope-authority/fixtures/negative-draft-blocker-escalation.json
  • evals/scope-authority/fixtures/negative-draft-cross-release-bypass.json
  • evals/scope-authority/fixtures/negative-future-decision-revision.json
  • evals/scope-authority/fixtures/negative-invalid-evidence-url-sha.json
  • evals/scope-authority/fixtures/negative-release-complete-commits-ahead.json
  • evals/scope-authority/fixtures/negative-release-complete-unmerged-main.json
  • evals/scope-authority/fixtures/negative-release-ready-open-blockers.json
  • evals/scope-authority/fixtures/negative-same-release-intent-escalation.json
  • evals/scope-authority/fixtures/negative-self-attested-approval.json
  • evals/scope-authority/fixtures/negative-stale-owner-snapshot.json
  • evals/scope-authority/fixtures/negative-unknown-scope-intent.json
  • evals/scope-authority/fixtures/negative-unreconciled-single-source.json
  • evals/scope-authority/fixtures/positive-bulk-close-with-evidence.json
  • evals/scope-authority/fixtures/positive-design-research-draft.json
  • evals/scope-authority/fixtures/positive-reconciled-owner-decision.json
  • evals/scope-authority/fixtures/positive-release-complete-merged.json
  • evals/scope-authority/fixtures/positive-release-ready-clean.json
  • evals/scope-authority/grade.mts
  • evals/scope-authority/grade.test.mts
  • package.json
  • skills/github-delivery/SKILL.md
  • skills/github-delivery/references/adaptive-release-batching.md
  • skills/github-delivery/references/scope-authority-reconciliation.md
  • 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

@rebuildup

Copy link
Copy Markdown
Owner Author

独立レビューの P0/P1 指摘をすべて修正しました(commit: 19eaf0339b19f87f54aa76c53ae0864301971f7c)。

主な修正内容

  • design-research-draft の無条件バイパス廃止(P0): 同一 canonicalTargetRelease かつ preserve-progress の場合のみ pass-through とし、別 release 指定や land-to-release / release-blocker 昇格は権限照合で fail closed としました。
  • 同一 release 内 intent 昇格・厳格ランタイム検証(P0): move-feature-to-release / promote-to-blocker の同一 release 内昇格や claim-release-complete / mark-release-ready / close-issue-batch の自己申告承認を捕捉し、未知の ScopeIntent / ChangeClass / ApprovalProvenance・空文字・不正 revision(< 1 / 非整数 / 欠落)をすべて INVALID_INPUT_SCHEMA で fail closed としました。
  • Issue feat(delivery): release scope/authority driftを検出し未承認のscope拡大を止める #141 Comment 2 再発モード追加(P0): my-web-2026 #741(個別完了証跡・owner 承認なしの大量 Issue クローズ)と my-web-2026 #679(open blocker / 未マージ Ready PR / 未承認 scope drop を残した release Ready・完了宣言)の評価ロジックおよび正例・負例 fixture を追加しました。
  • dead field 解消と provenance 強化(P1): sourceKind(単一 PR/文書・agent 要約での未照合承認をブロック)、releaseBranchCommitsAhead(merge 後 drift 検出)、最新 human revision 算出からの agent-self-attested 除外、未来 revision 拒否、evidenceUrl / evidenceSha 形式検証を実装しました。
  • routing pointer と CLI fixture 検証(P1): skills/github-delivery/SKILL.md へ scope-authority-reconciliation.md への導線を追加しつつ周辺表現を圧縮して net -62 bytes(31,178 bytes)とし、checked-in JSON fixture 20 件を検証する evals/scope-authority/controls.mts と CLI テストを追加しました。

検証

  • bun run typecheck: PASS
  • bun run quality:structure: PASS(findings: 0)
  • bun run test:scope-authority: PASS(19/19 unit+CLI tests + 20/20 JSON fixtures)
  • bun evals/policy-evaluation/controls.mts: PASS(context-budget PASS)

@rebuildup
rebuildup changed the base branch from release-0-12-0 to release-0-13-0 November 23, 2026 15:29
@rebuildup
rebuildup merged commit 21318a8 into release-0-13-0 Nov 23, 2026
2 checks passed
@rebuildup
rebuildup deleted the 141 branch November 23, 2026 15: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.

1 participant