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.
feat(butler): 管家骨架——唤醒矩阵前三行+审计日志+dead-man fail-closed(W1-C5 #168,ADR-0057) #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
feat(butler): 管家骨架——唤醒矩阵前三行+审计日志+dead-man fail-closed(W1-C5 #168,ADR-0057) #173
Changes from all commits
53516e339b7b9aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. Automerge revoke incomplete
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
在任何 auto-merge 未撤销时判定 trip 失败。
gh pr list失败时,进程替换会向循环提供空输入。脚本不会增加INFRA。DELETE请求失败时,脚本也会静默继续。--limit 200还会遗漏第 201 个及之后的 open PR。因此,工作流可能输出“auto-merge 撤销完成”,并以
tripped结束,但仍有 PR 可以自动合并。请使用可检查退出码的分页查询。每次删除失败时调用
infra。只有清单完整且所有删除成功时,才记录撤销完成。🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
所有仓库写操作必须使用
cloudbrid-agent身份。 两个工作流当前分别使用github.token和GOVERNANCE_TOKEN执行仓库写操作。.github/workflows/butler-reconcile.yml#L43-L50: 使用scripts/gh-app-token.sh生成 App 令牌,并将其传给GH_WRITE_TOKEN。.github/workflows/butler-deadman-trip.yml#L43-L46: 增加独立的 App 令牌环境变量;组织管理令牌只用于组织变量操作。.github/workflows/butler-deadman-trip.yml#L77-L100: 使用 App 令牌撤销 auto-merge、创建 label 和查询 issue。.github/workflows/butler-deadman-trip.yml#L112-L129: 使用 App 令牌创建和评论 P0 issue。按编码规范,“agent 写仓库身份 = GitHub App
cloudbrid-agent(AG-1);令牌经 scripts/gh-app-token.sh,单仓作用域、1h 过期”。📍 Affects 2 files
.github/workflows/butler-reconcile.yml#L43-L50(this comment).github/workflows/butler-deadman-trip.yml#L43-L46.github/workflows/butler-deadman-trip.yml#L77-L100.github/workflows/butler-deadman-trip.yml#L112-L129🤖 Prompt for AI Agents
Source: Coding guidelines
Uh oh!
There was an error while loading. Please reload this page.