Skip to content

Commit e5b3bbd

Browse files
Pigbibicodex
andcommitted
chore(governance): harden review gate and qsl metadata
Co-Authored-By: Codex <noreply@openai.com>
1 parent 2284ad8 commit e5b3bbd

7 files changed

Lines changed: 45 additions & 7 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Pigbibi

.github/codex_auto_merge_policy.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
],
4545
"timeout_minutes": 20,
4646
"max_diff_lines": 2400,
47-
"block_on_review_failure": false
47+
"auto_converge_after": 3,
48+
"block_on_review_failure": true
4849
}
4950
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Codex PR Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
id-token: write
10+
issues: write
11+
pull-requests: write
12+
13+
concurrency:
14+
group: codex-pr-review-${{ github.event.pull_request.number }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
review:
19+
uses: QuantStrategyLab/AIAuditBridge/.github/workflows/codex_pr_review.yml@main
20+
with:
21+
caller_concurrency_key: pr-${{ github.event.pull_request.number || github.run_id }}
22+
allow_unconfigured_backend: false
23+
api_fallback_enabled: "false"
24+
direct_api_primary_enabled: "false"
25+
secrets: inherit
26+
permissions:
27+
contents: read
28+
id-token: write
29+
issues: write
30+
pull-requests: write

.github/workflows/invoke-cloud-run.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
default: false
1515
type: boolean
1616

17+
permissions:
18+
contents: read
19+
1720
env:
1821
GCP_PROJECT_ID: firstradequant
1922
GCP_WORKLOAD_IDENTITY_PROVIDER: projects/1088907247379/locations/global/workloadIdentityPools/github-actions/providers/github-main

.github/workflows/sync-cloud-run-env.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches: [main]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
GCP_PROJECT_ID: firstradequant
1215
GCP_PROJECT_NUMBER: "1088907247379"

qsl.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[qsl]
22
repo = "FirstradePlatform"
3-
tier = "runtime-platform"
4-
ring = 3
3+
tier = "runtime"
4+
upgrade_ring = "ring_d"
55
allow_legacy = false
66

77
[qsl.requires]
88
quant_platform_kit = "69a0256934d081b5ef309a885384b9eb9f62cf90"
99
us_equity_strategies = "17ddb86c72d44b2c7b78ba7a10d8f71b21180166"
1010

1111
[qsl.compat]
12-
bundle = "2026.07.2"
12+
bundle = "2026.07.3"

tests/test_qsl_metadata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ def test_qsl_metadata_has_runtime_platform_fields() -> None:
99
with qsl_path.open("rb") as f:
1010
qsl = tomllib.load(f)["qsl"]
1111

12-
assert qsl["tier"] == "runtime-platform"
13-
assert qsl["ring"] == 3
12+
assert qsl["tier"] == "runtime"
13+
assert qsl["upgrade_ring"] == "ring_d"
1414
assert qsl.get("repo") == "FirstradePlatform"
15-
assert qsl["compat"]["bundle"] == "2026.07.2"
15+
assert qsl["compat"]["bundle"] == "2026.07.3"
1616
requires = qsl["requires"]
1717
assert "quant_platform_kit" in requires
1818
assert "us_equity_strategies" in requires

0 commit comments

Comments
 (0)