Skip to content

Commit 20618fa

Browse files
Merge branch 'main' into codex/design-ai-governance-and-assurance-stack
Signed-off-by: ๐Ž๐ง๐ž ๐…๐ข๐ง๐ž ๐’๐ญ๐š๐ซ๐ฌ๐ญ๐ฎ๐Ÿ๐Ÿ <onefinestarstuff@gmail.com>
2 parents 294e768 + ae4ef87 commit 20618fa

49 files changed

Lines changed: 4518 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Governance Artifacts Validate
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'governance_artifacts/**'
8+
- '.github/workflows/governance-artifacts-validate.yml'
9+
pull_request:
10+
paths:
11+
- 'governance_artifacts/**'
12+
- '.github/workflows/governance-artifacts-validate.yml'
13+
14+
jobs:
15+
validate:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install pyyaml
30+
31+
- name: Validate governance artifacts
32+
run: python3 governance_artifacts/validate_artifacts.py --quiet
33+
34+
- name: Validate governance artifacts JSON output file
35+
run: |
36+
mkdir -p artifacts
37+
python3 governance_artifacts/validate_artifacts.py --quiet --output artifacts/validator-output.json
38+
python3 -c "import json; p=json.load(open('artifacts/validator-output.json')); assert p.get('status')=='PASS', p; print('validator-output.json status=PASS')"
39+
40+
- name: Validate CLI metadata contracts
41+
run: |
42+
python3 -c "import json,subprocess; out=subprocess.check_output(['python3','governance_artifacts/validate_artifacts.py','--version','--json'], text=True); p=json.loads(out); assert 'version' in p and isinstance(p['version'], str), p; print('version contract OK')"
43+
python3 -c "import json,subprocess; out=subprocess.check_output(['python3','governance_artifacts/validate_artifacts.py','--list-checks','--json'], text=True); p=json.loads(out); assert isinstance(p.get('checks'), list) and p['checks'], p; print('list-checks contract OK')"
44+
45+
- name: Run validator unit tests
46+
run: python3 -m unittest discover -s tests -p "test_validate_artifacts.py"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Governance Artifact Validation
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
validate-governance-artifacts:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install dependencies
23+
run: python -m pip install -r requirements-governance.txt pytest
24+
25+
- name: Validate BBOM/ARRE artifacts
26+
run: python tools/validate_ai_governance_artifacts.py --report-file .reports/governance-validation.json
27+
28+
- name: Run validator tests
29+
run: pytest -q tests/test_governance_validator.py
30+
31+
- name: Upload governance validation report
32+
if: always()
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: governance-validation-report
36+
path: .reports/governance-validation.json
37+
if-no-files-found: ignore
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: regulator-blueprint-validation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'docs/reports/REGULATOR_READY_AGI_ASI_BLUEPRINT_2026_2030.md'
7+
- 'docs/reports/artifacts/**'
8+
- 'scripts/validate_regulator_blueprint_artifacts.py'
9+
- 'scripts/run_blueprint_artifact_checks.sh'
10+
- 'tests/test_validate_regulator_blueprint_artifacts.py'
11+
- 'tests/test_run_blueprint_artifact_checks.py'
12+
- 'Makefile'
13+
push:
14+
branches: [ main ]
15+
paths:
16+
- 'docs/reports/REGULATOR_READY_AGI_ASI_BLUEPRINT_2026_2030.md'
17+
- 'docs/reports/artifacts/**'
18+
- 'scripts/validate_regulator_blueprint_artifacts.py'
19+
- 'scripts/run_blueprint_artifact_checks.sh'
20+
- 'tests/test_validate_regulator_blueprint_artifacts.py'
21+
- 'tests/test_run_blueprint_artifact_checks.py'
22+
- 'Makefile'
23+
24+
jobs:
25+
validate-regulator-blueprint:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: '3.11'
35+
36+
- name: Install validator deps
37+
run: |
38+
python -m pip install --upgrade pip
39+
python -m pip install -r scripts/requirements-blueprint-validator.txt
40+
41+
- name: Run regulator validator (human-readable)
42+
run: python scripts/validate_regulator_blueprint_artifacts.py
43+
44+
- name: Run regulator validator (json)
45+
run: |
46+
python scripts/validate_regulator_blueprint_artifacts.py --json > regulator-blueprint-validation.json
47+
python -m json.tool regulator-blueprint-validation.json > /dev/null
48+
49+
- name: Run targeted tests
50+
run: pytest -q tests/test_validate_regulator_blueprint_artifacts.py tests/test_run_blueprint_artifact_checks.py tests/test_validate_blueprint_artifacts.py
51+
52+
- name: Run combined artifact checks
53+
run: bash scripts/run_blueprint_artifact_checks.sh --skip-install --skip-pytest
54+
55+
- name: Run Makefile regulator targets
56+
run: |
57+
make validate-regulator-blueprint-artifacts
58+
make test-regulator-blueprint-artifacts
59+
60+
- name: Upload validator report
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: regulator-blueprint-validation
64+
path: regulator-blueprint-validation.json

0 commit comments

Comments
ย (0)