Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dispatch_shadow_signal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
BRIDGE_REPOSITORY: ${{ vars.CODEX_AUDIT_BRIDGE_REPOSITORY || 'QuantStrategyLab/CodexAuditBridge' }}
BRIDGE_REPOSITORY: ${{ vars.CODEX_AUDIT_BRIDGE_REPOSITORY || 'QuantStrategyLab/AIAuditBridge' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Scope the app token to the new bridge repo

When CROSS_REPO_GITHUB_APP_ID and CROSS_REPO_GITHUB_APP_PRIVATE_KEY are configured, the workflow creates APP_TOKEN for the hard-coded CodexAuditBridge repository below, but this changed default dispatch target to QuantStrategyLab/AIAuditBridge. The dispatch step prefers APP_TOKEN over CODEX_AUDIT_DISPATCH_TOKEN, so scheduled/default runs in that environment will call the AIAuditBridge workflow with a token scoped to the old repo and fail authorization instead of dispatching the bridge.

Useful? React with 👍 / 👎.

BRIDGE_REF: ${{ vars.CODEX_AUDIT_BRIDGE_REF || 'main' }}
BRIDGE_TASK: long_horizon_signal_shadow
BRIDGE_PROVIDER: ${{ github.event.inputs.provider || 'auto' }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/post_shadow_signal_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def parse_args() -> argparse.Namespace:
parser.add_argument("--repo", required=True)
parser.add_argument("--source-ref", default="main")
parser.add_argument("--provider", default="auto")
parser.add_argument("--bridge-repository", default="QuantStrategyLab/CodexAuditBridge")
parser.add_argument("--bridge-repository", default="QuantStrategyLab/AIAuditBridge")
parser.add_argument("--as-of-date")
parser.add_argument("--context-file", help="Optional JSON context bundle to embed in the issue body")
parser.add_argument("--label", default=DEFAULT_LABEL)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dispatch_shadow_signal_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def test_dispatch_shadow_signal_pins_bridge_ref_via_variable() -> None:

assert "BRIDGE_REF: ${{ vars.CODEX_AUDIT_BRIDGE_REF || 'main' }}" in workflow
assert '"ref": os.environ["BRIDGE_REF"]' in workflow
assert "QuantStrategyLab/CodexAuditBridge" in workflow
assert "QuantStrategyLab/AIAuditBridge" in workflow
2 changes: 1 addition & 1 deletion tests/test_post_shadow_signal_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_build_issue_body_marks_notification_and_shadow_boundary() -> None:
as_of_date="2026-05-29",
source_ref="main",
provider="auto",
bridge_repository="QuantStrategyLab/CodexAuditBridge",
bridge_repository="QuantStrategyLab/AIAuditBridge",
context_bundle={"as_of": "2026-05-29", "price_context": {"QQQ": {"trend": "above_200d"}}},
)

Expand Down
Loading