Skip to content

Commit 34bacf9

Browse files
authored
chore: dispatch audits to AIAuditBridge
1 parent b91549b commit 34bacf9

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/monthly_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
private-key: ${{ secrets.CROSS_REPO_GITHUB_APP_PRIVATE_KEY }}
204204
owner: ${{ github.repository_owner }}
205205
repositories: |
206-
CodexAuditBridge
206+
AIAuditBridge
207207
permission-actions: write
208208

209209
- name: Trigger Monthly Review Automation
@@ -283,7 +283,7 @@ jobs:
283283
if status not in (201, 204):
284284
raise RuntimeError(f"Unexpected Codex dispatch status: {status}")
285285
print(
286-
f"Dispatched CodexAuditBridge review for issue #{os.environ['ISSUE_NUMBER']} "
286+
f"Dispatched AIAuditBridge review for issue #{os.environ['ISSUE_NUMBER']} "
287287
f"to {target_repository}"
288288
)
289289

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Live-pool artifact 的作用是让策略判断可复现:包括 ranking 输入
3232

3333
## 月度 review 自动化
3434

35-
月度 publish workflow 通过 `CodexAuditBridge` 触发自动 review 和 remediation;`CODEX_AUDIT_PROVIDER` 默认走 `auto`,优先调用 CodexAuditBridge 的 HTTPS/443 service-backed Codex 路径,再按桥接仓库配置 fallback 到 API reviewer。`OPENAI_API_KEY``ANTHROPIC_API_KEY` 等 provider secret 配置在 `CodexAuditBridge`,本仓库不直接读取这些 provider key。可通过 `CODEX_AUDIT_BRIDGE_REF` pin 到指定 bridge ref,默认 `main`
35+
月度 publish workflow 通过 `AIAuditBridge` 触发自动 review 和 remediation;`CODEX_AUDIT_PROVIDER` 默认走 `auto`,优先调用 AIAuditBridge 的 HTTPS/443 service-backed Codex 路径,再按桥接仓库配置 fallback 到 API reviewer。`OPENAI_API_KEY``ANTHROPIC_API_KEY` 等 provider secret 配置在 `AIAuditBridge`,本仓库不直接读取这些 provider key。可通过 `CODEX_AUDIT_BRIDGE_REF` pin 到指定 bridge ref,默认 `main`
3636

37-
生产发布目标如 GCP project、GCS bucket 和 Firestore document 必须从 GitHub variable 读取。本仓库不再保留 source-local `ai_review.yml`;旧的本仓库本地 API review workflow 已移除,provider 选择和 fallback 逻辑集中在 `CodexAuditBridge`
37+
生产发布目标如 GCP project、GCS bucket 和 Firestore document 必须从 GitHub variable 读取。本仓库不再保留 source-local `ai_review.yml`;旧的本仓库本地 API review workflow 已移除,provider 选择和 fallback 逻辑集中在 `AIAuditBridge`
3838

3939
## 仓库结构
4040

docs/operator_runbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Boundary rules:
8282

8383
## Monthly Codex Remediation
8484

85-
The monthly publish workflow creates a `monthly-review` issue, then dispatches `CodexAuditBridge` as the automated review and remediation path. The bridge owns provider selection through `CODEX_AUDIT_PROVIDER`: `auto` is the default and calls the service-backed Codex path first, falls back to the configured API reviewers when Codex service execution fails, and fails loudly when no API fallback key is configured. `codex` disables API fallback; `api` posts a combined API review; `openai` and `anthropic` post a single-provider API review only. Set `CODEX_AUDIT_BRIDGE_REF` to pin the bridge workflow ref; the default is `main`.
85+
The monthly publish workflow creates a `monthly-review` issue, then dispatches `AIAuditBridge` as the automated review and remediation path. The bridge owns provider selection through `CODEX_AUDIT_PROVIDER`: `auto` is the default and calls the service-backed Codex path first, falls back to the configured API reviewers when Codex service execution fails, and fails loudly when no API fallback key is configured. `codex` disables API fallback; `api` posts a combined API review; `openai` and `anthropic` post a single-provider API review only. Set `CODEX_AUDIT_BRIDGE_REF` to pin the bridge workflow ref; the default is `main`.
8686

87-
If the bridge dispatch fails, the monthly publish workflow fails loudly. Source-local legacy AI review workflows are intentionally removed; provider fallback lives in `CodexAuditBridge`.
87+
If the bridge dispatch fails, the monthly publish workflow fails loudly. Source-local legacy AI review workflows are intentionally removed; provider fallback lives in `AIAuditBridge`.
8888

8989
## Standard Monthly Flow
9090

tests/test_monthly_publish_workflow_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_monthly_review_issue_creation_does_not_require_gh_cli(self) -> None:
5151
self.assertIn("CROSS_REPO_GITHUB_APP_ID", workflow)
5252
self.assertIn("CROSS_REPO_GITHUB_APP_PRIVATE_KEY", workflow)
5353
self.assertIn("actions/create-github-app-token@v3", workflow)
54-
self.assertIn("CodexAuditBridge", workflow)
54+
self.assertIn("AIAuditBridge", workflow)
5555
self.assertIn("permission-actions: write", workflow)
5656
self.assertIn("APP_TOKEN", workflow)
5757
self.assertIn("Trigger Monthly Review Automation", workflow)
@@ -91,11 +91,11 @@ def test_source_local_legacy_ai_workflows_are_removed(self) -> None:
9191
def test_chinese_readme_matches_current_monthly_review_defaults(self) -> None:
9292
readme = README_ZH_PATH.read_text(encoding="utf-8")
9393

94-
self.assertIn("CodexAuditBridge", readme)
94+
self.assertIn("AIAuditBridge", readme)
9595
self.assertIn("CODEX_AUDIT_PROVIDER", readme)
9696
self.assertIn("OPENAI_API_KEY", readme)
9797
self.assertIn("ANTHROPIC_API_KEY", readme)
98-
self.assertIn("配置在 `CodexAuditBridge`", readme)
98+
self.assertIn("配置在 `AIAuditBridge`", readme)
9999
self.assertIn("必须从 GitHub variable 读取", readme)
100100
self.assertIn("本仓库不再保留 source-local `ai_review.yml`", readme)
101101
self.assertNotIn("只配置 `ANTHROPIC_API_KEY`", readme)

0 commit comments

Comments
 (0)