Skip to content
Closed
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
23 changes: 23 additions & 0 deletions .github/workflows/c2-interval-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Independent c2 interval audit
pull_request:
paths:
- 'reviews/c2_interval_audit_20261001/**'
- 'tools/cbz_c2_oracle_qualification/**'
- '.github/workflows/c2-interval-audit.yml'
workflow_dispatch:

Expand Down Expand Up @@ -39,3 +40,25 @@ jobs:
cmp RESULTS.json "$RUNNER_TEMP/c2-normal.json"
python -B -S verify.py
git diff --exit-code
- name: Qualify the pinned exact oracle and source mutation runner
env:
PYTHONDONTWRITEBYTECODE: '1'
run: |
set -euo pipefail
evidence="$(mktemp -d "$RUNNER_TEMP/c2-oracle-qualification.XXXXXX")"
echo "C2_QUALIFICATION_EVIDENCE=$evidence" >> "$GITHUB_ENV"
mkdir -p "$evidence/source/reviews" "$evidence/source/tools"
cp -R reviews/c2_interval_audit_20261001 "$evidence/source/reviews/"
cp -R tools/cbz_c2_oracle_qualification "$evidence/source/tools/"
python -B -S tools/cbz_c2_oracle_qualification/test_runner.py -v 2>&1 | tee "$evidence/runner-normal.log"
python -B -O -S tools/cbz_c2_oracle_qualification/test_runner.py -v 2>&1 | tee "$evidence/runner-optimized.log"
python -B -S tools/cbz_c2_oracle_qualification/run_mutations.py --evidence-dir "$evidence/normal" 2>&1 | tee "$evidence/cut-normal.log"
python -B -O -S tools/cbz_c2_oracle_qualification/run_mutations.py --evidence-dir "$evidence/optimized" 2>&1 | tee "$evidence/cut-optimized.log"
- name: Retain exact oracle qualification source and evidence
if: always() && env.C2_QUALIFICATION_EVIDENCE != ''
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: c2-oracle-qualification-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ env.C2_QUALIFICATION_EVIDENCE }}
if-no-files-found: error
retention-days: 30
55 changes: 54 additions & 1 deletion .github/workflows/c8-elder-failure-coefficient.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
name: C8 elder-failure coefficient (certified replay)
name: C8 elder-failure replay (A3 quarantine; diagnostics only)

'on':
pull_request:
paths:
- 'frontiers/c8_elder_failure_coefficient_20261001/**'
- '.github/workflows/c8-elder-failure-coefficient.yml'
- 'quarantine/Q-C8-ELDER-FAILURE-BINARY64-20261029.json'
- 'tools/check_c8_quarantine.py'
- 'tools/c8_quarantine_mutations.py'
- 'tools/c8_quarantine_registry.json'
- 'tests/test_c8_quarantine.py'
- 'tests/test_c8_quarantine_mutations.py'
- 'tests/test_c8_quarantine_workflow.py'
- 'docs/cbz/C8_QUARANTINE.md'
- 'PROOF_INDEX.md'
- 'frontiers/c6_cluster_coefficients_numerics_20260930/NOTE.md'
- 'frontiers/c6_cluster_coefficients_numerics_20260930/RESULTS.json'
- 'frontiers/local_elder_geometry_20260930/PROOF.md'
Expand All @@ -17,7 +26,51 @@ permissions:
contents: read

jobs:
quarantine-boundary:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
with:
python-version: '3.11.16'
- name: Enforce the opt-in C8 boundary and test its source guards
run: |
set -euo pipefail
mkdir -p .lake/c8-quarantine
python -B -S -m unittest discover -s tests -p test_c8_quarantine_mutations.py -v
python -B -O -S -m unittest discover -s tests -p test_c8_quarantine_mutations.py -v
python -B -S -m unittest discover -s tests -p test_c8_quarantine_workflow.py -v
python -B -O -S -m unittest discover -s tests -p test_c8_quarantine_workflow.py -v
python -B -S tools/c8_quarantine_mutations.py --output .lake/c8-quarantine/mutations
python -B -S tools/check_c8_quarantine.py > .lake/c8-quarantine/integrity.json
rc=0
python -B -S tools/check_c8_quarantine.py --consume-output /results/k=1/J_fail > .lake/c8-quarantine/denied.json || rc=$?
test "$rc" -eq 1
rc=0
python -B -S tools/check_c8_quarantine.py --consume-output '/results/k=1/parts/E[2T]' > .lake/c8-quarantine/exact-witness.json || rc=$?
test "$rc" -eq 2
python -B -S - <<'PY'
import json, pathlib
root = pathlib.Path('.lake/c8-quarantine')
for name, status in [('integrity', 'QUARANTINE_INTEGRITY_OK'), ('denied', 'REFUSED'), ('exact-witness', 'NOT_COVERED')]:
doc = json.loads((root / (name + '.json')).read_text())
if doc['status'] != status or doc['cbz_certificate_admitted'] is not False:
raise ValueError('invalid nonadmission result: ' + name)
PY
- name: Preserve current and historical boundary evidence
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: c8-quarantine-${{ github.run_id }}-${{ github.run_attempt }}
path: .lake/c8-quarantine/
include-hidden-files: true
if-no-files-found: error
retention-days: 90
certified-replay:
needs: quarantine-boundary
runs-on: ubuntu-latest
timeout-minutes: 150
strategy:
Expand Down
91 changes: 91 additions & 0 deletions .github/workflows/cbz-kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: CBZ native Lean kernel and axiom audit

'on':
workflow_dispatch:
workflow_call:
pull_request:
paths:
- 'formal/**'
- 'specifications/lean_statements_20261010/**'
- 'specifications/lean_statement_proofs_20261011/**'
- 'frontiers/cap_first_exit_lean_20261002/**'
- 'frontiers/determinant_moment_20261025/**'
- 'frontiers/source_smooth_realization_20261011/**'
- 'frontiers/source_lifetime_realization_20261017/**'
- 'frontiers/source_derivative_gaussian_20261025/**'
- 'tools/cbz_kernel_gate.py'
- 'tools/cbz_kernel_registry.json'
- 'tools/cbz_kernel_mutations.py'
- 'tests/test_cbz_kernel_gate.py'
- 'tests/test_cbz_kernel_mutations.py'
- '.github/workflows/cbz-kernel.yml'
push:
branches: [main]
paths:
- 'formal/**'
- 'specifications/lean_statements_20261010/**'
- 'specifications/lean_statement_proofs_20261011/**'
- 'frontiers/cap_first_exit_lean_20261002/**'
- 'frontiers/determinant_moment_20261025/**'
- 'frontiers/source_smooth_realization_20261011/**'
- 'frontiers/source_lifetime_realization_20261017/**'
- 'frontiers/source_derivative_gaussian_20261025/**'
- 'tools/cbz_kernel_gate.py'
- 'tools/cbz_kernel_registry.json'
- 'tools/cbz_kernel_mutations.py'
- 'tests/test_cbz_kernel_gate.py'
- 'tests/test_cbz_kernel_mutations.py'
- '.github/workflows/cbz-kernel.yml'

permissions:
contents: read

concurrency:
group: cbz-kernel-${{ github.ref }}
cancel-in-progress: false

jobs:
native-kernel-audit:
runs-on: ubuntu-24.04
timeout-minutes: 330
env:
LEAN_NUM_THREADS: '2'
PYTHONDONTWRITEBYTECODE: '1'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
with:
python-version: '3.11.16'
- name: Refusal tests and exact native source inventory
run: |
python3 -B -S -m unittest discover -s tests -p test_cbz_kernel_mutations.py -v
python3 -B -O -S -m unittest discover -s tests -p test_cbz_kernel_mutations.py -v
python3 -B -S tools/cbz_kernel_mutations.py --output .lake/cbz-kernel/mutations
python3 -B -S tools/cbz_kernel_gate.py --inventory
- name: Install exact Lean once and retrieve shared pinned Mathlib dependencies
uses: leanprover/lean-action@24581d74d674803a25a81b10b059c5c0cdd344c6
with:
lake-package-directory: formal
auto-config: 'false'
build: 'false'
test: 'false'
lint: 'false'
use-mathlib-cache: 'true'
use-github-cache: 'false'
- name: Fresh native builds, every-module replay, raw imported-record census and compiled refusal controls
run: >-
python3 -B -S tools/cbz_kernel_gate.py --execute
--expected-commit "${{ github.sha }}"
--timeout 1800
- name: Retain exact commands, current sources, object hashes and actual terminal outcomes
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: cbz-native-kernel-${{ github.run_id }}-${{ github.run_attempt }}
path: .lake/cbz-kernel/
include-hidden-files: true
if-no-files-found: error
retention-days: 90

20 changes: 17 additions & 3 deletions .github/workflows/cusp-coefficient-certified.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Cusp coefficient c1 (certified replay)
name: Cusp coefficient c1 (diagnostic replay; A3 quarantined)

'on':
pull_request:
paths:
- 'frontiers/cusp_coefficient_certified_20261001/**'
- '.github/workflows/cusp-coefficient-certified.yml'
- 'quarantine/Q-CUSP-BINARY64-20261029.json'
- 'tools/check_cusp_quarantine.py'
- 'tests/test_cusp_quarantine.py'
- 'PROOF_INDEX.md'
- 'coefficients/side24_v1/PROOF.md'
- 'coefficients/side24_v1/ENCLOSURE.json'
- 'imports/lifetime_parent_20260925/UNIFORM_MATRIX_CAP_AND_LIFETIME.md'
Expand All @@ -16,6 +20,7 @@ permissions:

jobs:
certified-replay:
name: Diagnostic replay (${{ matrix.flags }}); A3 quarantined
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
Expand All @@ -29,7 +34,16 @@ jobs:
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
with:
python-version: '3.11.16'
- name: Verify manifest and main-resident pins
- name: Quarantine integrity and nonconsumption controls
run: |
set -euo pipefail
python -B -S -m unittest discover -s tests -p 'test_cusp_quarantine.py' -v
python -B -O -S -m unittest discover -s tests -p 'test_cusp_quarantine.py' -v
python -B -S tools/check_cusp_quarantine.py
rc=0
python -B -S tools/check_cusp_quarantine.py --consume frontiers/cusp_coefficient_certified_20261001/certificate.py || rc=$?
test "$rc" -eq 1
- name: Verify preserved diagnostic manifest and main-resident pins
env:
PYTHONDONTWRITEBYTECODE: '1'
run: |
Expand Down Expand Up @@ -59,7 +73,7 @@ jobs:
raise ValueError('consumed source identity mismatch on this tree: ' + entry['path'])
print('manifest and pins verified')
PY
- name: Self-test, full replay against RESULTS.json, mutants
- name: Diagnostic self-test, full replay against RESULTS.json, mutants
env:
PYTHONDONTWRITEBYTECODE: '1'
FLAGS: ${{ matrix.flags }}
Expand Down
Loading
Loading