Skip to content

docs(status): complete phase 5 after second audit #6

docs(status): complete phase 5 after second audit

docs(status): complete phase 5 after second audit #6

Workflow file for this run

name: CI
on:
push:
paths:
- ".github/workflows/ci.yml"
- ".project/**"
- "docs/**"
- "open-core/**"
- "AGENTS.md"
- "README.md"
pull_request:
paths:
- ".github/workflows/ci.yml"
- ".project/**"
- "docs/**"
- "open-core/**"
- "AGENTS.md"
- "README.md"
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
package-unit:
name: Package and unit (${{ matrix.os }}, Python ${{ matrix.python }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ["3.12"]
include:
- os: ubuntu-latest
python: "3.11"
- os: ubuntu-latest
python: "3.13"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install -e "./open-core[test]"
- run: python -c "import secure_eval_wrapper; import secure_eval_wrapper.execution; import secure_eval_wrapper.backtesting"
- name: Dedicated Phase 5 second-audit regression suite
run: python -m unittest discover -s open-core/tests -p "test_phase5_second_audit.py" -v
- name: Anti-lookahead and future-invariance suite
run: python -m unittest discover -s open-core/tests -p "test_phase5_invariance.py" -v
- run: secure-eval-backtest
- run: secure-eval-validate
postgres-integration:
name: PostgreSQL 16 integration
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: secure_eval_wrapper
POSTGRES_USER: phase5_ci
POSTGRES_PASSWORD: phase5_ci_only
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U phase5_ci -d secure_eval_wrapper"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: "5432"
POSTGRES_DB: secure_eval_wrapper
POSTGRES_USER: phase5_ci
POSTGRES_PASSWORD: phase5_ci_only
POSTGRES_SSLMODE: disable
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: python -m pip install -e "./open-core[postgres,test]"
- name: Clean migration install 0001 through 0010
run: python open-core/scripts/apply_postgres_migrations.py
- name: Migration hashes and Phase 5 second-audit catalog
run: |
python open-core/scripts/verify_postgres_schema.py --migration-only
python open-core/scripts/verify_phase5_postgres_schema.py
- name: Real repository, all-writer conflicts, bundle idempotency, constraints, and rollback
env:
RUN_POSTGRES_INTEGRATION: "true"
run: python -m unittest discover -s open-core/tests -p "test_phase5_postgres_integration.py" -v
- name: Seeded 0009 to 0010 upgrade with existing Phase 5 rows
run: |
python open-core/scripts/apply_postgres_migrations.py --database secure_eval_upgrade --create-database --through 0009 --seed-phase5
python open-core/scripts/apply_postgres_migrations.py --database secure_eval_upgrade --from-migration 0010
POSTGRES_DB=secure_eval_upgrade python open-core/scripts/verify_postgres_schema.py
POSTGRES_DB=secure_eval_upgrade python open-core/scripts/verify_phase5_postgres_schema.py
boundary:
name: Public/private and runtime boundary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python open-core/src/secure_eval_wrapper/validation.py --skip-tests