fix: evidence-query 源缺席判定兼容 "No ref found" 404 报文形态(W2-C3 实测缺陷) - #436
Conversation
波次通道实测(W2-C3 AC-9a/9b,run 33243560655)抓出:butler-ledger 分支 未建时 contents API 404 报文为 "No ref found for ..."(不含 "not found"), 被误判"非 404 拉取失败"→ INFRA exit 2——源缺席本应是合法过渡态(W1-B2)。 fail-closed 方向无误(未盲熔断、cost-infra issue #435 已开出),仅缺席 判定面修复。回归用例入 test-evidence-shadow.sh(GH_STUB_BUTLER_MISSING=2)。 ADR-0103 / IR-0006 W2-C3 / BEH-03
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughChanges整体变更扩展 GitHub 源缺席处理,并新增对应回归测试。同时更新三个子模块提交指针。 证据源缺席处理
子模块提交指针更新
Suggested labels: Merge Risk: ⚪ Minimal · up to The change recognizes the supported "No ref found" 404 response as a valid source-absence state, preventing an unnecessary fatal failure while preserving failure handling for other errors. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 1 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
PR Summary by Qodo修复 evidence-query 对 “No ref found” 404 的源缺席判定
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Missing ADR-NNNN reference
|
| # 404 两种报文都算源缺席:路径不存在="Not Found";ref(分支)不存在= | ||
| # "No ref found for ..."(不含 "not found" 字样——2026-08-29 波次通道实测抓出: | ||
| # butler-ledger 分支未建被误判"非 404 拉取失败"→ INFRA exit 2,源缺席本应合法跳过) | ||
| if grep -qiE 'not found|no ref found' "$TMP/api.err" 2>/dev/null; then |
There was a problem hiding this comment.
1. Missing adr-nnnn reference 📘 Rule violation § Compliance
This PR modifies files under the C1 governance/ path, but neither its title nor description contains an ADR-NNNN reference. Add the applicable ADR identifier to the PR metadata to satisfy the governance-path requirement.
Agent Prompt
## Issue description
The PR changes C1 governance paths but its title and description contain no reference matching `ADR-[0-9]{4}`.
## Issue Context
Compliance rule 2778538 requires at least one applicable `ADR-NNNN` reference in the PR title or description whenever a file under `governance/` is modified. Update the PR metadata rather than the implementation unless a code comment is also desirable.
## Fix Focus Areas
- governance/evidence-query.sh[47-47]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
bb1bc0e to
9a54b28
Compare
Card: #414
ADR-0103
问题(W2-C3 波次通道实测 run 33243560655 抓出)
butler-ledger 分支未建时,contents API 404 报文为
No ref found for "butler-ledger" ...——不含not found字样,被evidence-query.shfetch_file 误判为"非 404 拉取失败" → FATAL exit 2 → cost-check INFRA exit 2(cost-infra issue #435 已开出,fail-closed 方向正确:未盲熔断)。源缺席(账本分支未建/尚无影子记录)本应是合法过渡态(W1-B2 / BEH-03 / ADR-0103)。
修复
grep 'not found'→grep -iE 'not found|no ref found'GH_STUB_BUTLER_MISSING=2(No ref found 报文形态)→ 断言跳过非红验证
bash governance/tests/test-evidence-shadow.shPASS(含新增回归用例)make gates-pr全绿