From 8a073dfe7e8fcc7dfe1acf890760065907346f6c Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Fri, 3 Jul 2026 17:34:59 +0800 Subject: [PATCH] chore: dispatch audits to AIAuditBridge Co-Authored-By: Codex --- .github/workflows/monthly_snapshot_audit.yml | 4 ++-- .../first_snapshot_evidence_bundle.py | 2 +- .../low_vol_dividend_evidence_bundle.py | 2 +- .../monthly_snapshot_audit_issue.py | 4 ++-- tests/test_monthly_snapshot_audit_issue.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/monthly_snapshot_audit.yml b/.github/workflows/monthly_snapshot_audit.yml index e62871e..2317dc0 100644 --- a/.github/workflows/monthly_snapshot_audit.yml +++ b/.github/workflows/monthly_snapshot_audit.yml @@ -174,7 +174,7 @@ jobs: private-key: ${{ secrets.CROSS_REPO_GITHUB_APP_PRIVATE_KEY }} owner: ${{ github.repository_owner }} repositories: | - CodexAuditBridge + AIAuditBridge permission-actions: write - name: Trigger Monthly Snapshot Review Automation @@ -247,7 +247,7 @@ jobs: if status not in (201, 204): raise RuntimeError(f"Unexpected Codex dispatch status: {status}") print( - f"Dispatched CodexAuditBridge HK snapshot review for issue #{os.environ['ISSUE_NUMBER']} " + f"Dispatched AIAuditBridge HK snapshot review for issue #{os.environ['ISSUE_NUMBER']} " f"to {target_repository}" ) PY diff --git a/src/hk_equity_snapshot_pipelines/first_snapshot_evidence_bundle.py b/src/hk_equity_snapshot_pipelines/first_snapshot_evidence_bundle.py index 1821c6b..a502438 100644 --- a/src/hk_equity_snapshot_pipelines/first_snapshot_evidence_bundle.py +++ b/src/hk_equity_snapshot_pipelines/first_snapshot_evidence_bundle.py @@ -114,7 +114,7 @@ def build_first_snapshot_evidence_bundle( "Attach immutable gs://, s3://, or https:// evidence URIs without secret-like query parameters.", "Run survivorship-safe walk-forward backtests with at least three OOS folds and max drawdown <= 30%.", "Run LongBridge and IBKR dry-run order previews before any runtime promotion.", - "Submit the completed evidence through CodexAuditBridge monthly audit before live-enable approval.", + "Submit the completed evidence through AIAuditBridge monthly audit before live-enable approval.", ], "stop_conditions": [ "sample_artifacts_or_synthetic_data_used_as_evidence", diff --git a/src/hk_equity_snapshot_pipelines/low_vol_dividend_evidence_bundle.py b/src/hk_equity_snapshot_pipelines/low_vol_dividend_evidence_bundle.py index cbd514f..36f41ae 100644 --- a/src/hk_equity_snapshot_pipelines/low_vol_dividend_evidence_bundle.py +++ b/src/hk_equity_snapshot_pipelines/low_vol_dividend_evidence_bundle.py @@ -99,7 +99,7 @@ def build_low_vol_dividend_evidence_bundle( "Attach immutable gs://, s3://, or https:// evidence URIs without secret-like query parameters.", "Run survivorship-safe walk-forward backtests with at least three OOS folds and max drawdown <= 30%.", "Run LongBridge and IBKR dry-run order previews before any runtime promotion.", - "Submit the completed evidence through CodexAuditBridge monthly audit before live-enable approval.", + "Submit the completed evidence through AIAuditBridge monthly audit before live-enable approval.", ], "stop_conditions": [ "sample_artifacts_or_synthetic_data_used_as_evidence", diff --git a/src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.py b/src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.py index 0e028b9..d2a0927 100644 --- a/src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.py +++ b/src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.py @@ -83,7 +83,7 @@ def build_monthly_snapshot_audit_issue( f"# {title}", "", "This issue is the monthly AI audit input for HK snapshot-backed strategy scaffolds.", - "It is intended for `CodexAuditBridge` and does not publish artifacts, deploy Cloud Run, or place broker orders.", + "It is intended for `AIAuditBridge` and does not publish artifacts, deploy Cloud Run, or place broker orders.", "", "## Routing", "", @@ -224,7 +224,7 @@ def main(argv: list[str] | None = None) -> int: parser.add_argument( "--codex-audit-repository", default=DEFAULT_CODEX_AUDIT_REPOSITORY, - help="Repository that owns the CodexAuditBridge workflow.", + help="Repository that owns the AIAuditBridge workflow.", ) args = parser.parse_args(argv) payload = write_monthly_snapshot_audit_issue( diff --git a/tests/test_monthly_snapshot_audit_issue.py b/tests/test_monthly_snapshot_audit_issue.py index da2133e..44484ee 100644 --- a/tests/test_monthly_snapshot_audit_issue.py +++ b/tests/test_monthly_snapshot_audit_issue.py @@ -25,7 +25,7 @@ def test_build_monthly_snapshot_audit_issue_scopes_codex_review(): assert payload["issue_title"] == "HK Snapshot Monthly Audit: 2026-06" assert payload["codex_task"] == MONTHLY_SNAPSHOT_AUDIT_TASK assert "QuantStrategyLab/HkEquitySnapshotPipelines" in body - assert "CodexAuditBridge" in body + assert "AIAuditBridge" in body assert "monthly_snapshot_audit" in body assert "hk_low_vol_dividend_quality_snapshot" in body assert "hk_shareholder_yield_quality" in body