|
| 1 | +name: PR126 v4 final parser review |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [agent/panel-p1-stage-c-covariance] |
| 6 | + paths: |
| 7 | + - 'dev/pr126_v4_final_parser_hardening.py' |
| 8 | + - '.github/workflows/pr126-v4-final-parser-review.yml' |
| 9 | + |
| 10 | +permissions: |
| 11 | + contents: write |
| 12 | + |
| 13 | +jobs: |
| 14 | + parser-review: |
| 15 | + runs-on: ubuntu-24.04 |
| 16 | + timeout-minutes: 20 |
| 17 | + steps: |
| 18 | + - uses: actions/checkout@v4 |
| 19 | + with: |
| 20 | + ref: agent/panel-p1-stage-c-covariance |
| 21 | + fetch-depth: 0 |
| 22 | + - uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version: '3.11' |
| 25 | + - name: Apply post-promotion review fixes |
| 26 | + run: python dev/pr126_v4_final_parser_hardening.py |
| 27 | + - name: Install parser validation dependencies |
| 28 | + run: | |
| 29 | + python -m pip install --upgrade pip |
| 30 | + python -m pip install pytest 'jsonschema[format]' |
| 31 | + - name: Run v4 parser and maintained canonical matrix |
| 32 | + run: | |
| 33 | + python -m pytest -q \ |
| 34 | + dev/tests/test_panel_stage_c_identifiability_frontend_source.py \ |
| 35 | + dev/tests/test_benchmark_frontend_data.py \ |
| 36 | + dev/tests/test_benchmark_catalog.py \ |
| 37 | + dev/tests/test_benchmark_inventory_v2.py \ |
| 38 | + dev/tests/test_frontend_contracts.py \ |
| 39 | + dev/tests/test_frontend_domain_coverage.py \ |
| 40 | + dev/tests/test_panel_stage_c_frontend_source.py |
| 41 | + - name: Strict deterministic generator check |
| 42 | + run: | |
| 43 | + python dev/benchmarks/generate_benchmark_data.py --check --strict-sources |
| 44 | + - name: Static and exact-source applicability gates |
| 45 | + run: | |
| 46 | + python -m compileall -q \ |
| 47 | + dev/benchmarks/frontend_data/parsers/panel_stage_c_identifiability.py \ |
| 48 | + dev/tests/test_panel_stage_c_identifiability_frontend_source.py |
| 49 | + git diff --check |
| 50 | + changed="$(git diff --name-only a99726e19c535dfcd0a94711bbc8be6aac437584...HEAD; git diff --name-only)" |
| 51 | + if printf '%s\n' "$changed" | grep -E '^(statgpu/panel/|dev/benchmarks/validate_panel_stage_c_gpu.py$|dev/benchmarks/benchmark_panel_stage_c_covariance.py$|results/pr126_p100/panel_stage_c_(gpu_validation|performance)_a99726e1.json$)' ; then |
| 52 | + echo 'Exact-source applicability violated by post-promotion review.' |
| 53 | + exit 1 |
| 54 | + fi |
| 55 | + - name: Commit validated parser hardening |
| 56 | + run: | |
| 57 | + git config user.name 'github-actions[bot]' |
| 58 | + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' |
| 59 | + git rm -f \ |
| 60 | + .github/workflows/pr126-v4-final-parser-review.yml \ |
| 61 | + dev/pr126_v4_final_parser_hardening.py |
| 62 | + git add \ |
| 63 | + dev/benchmarks/frontend_data/parsers/panel_stage_c_identifiability.py \ |
| 64 | + dev/tests/test_panel_stage_c_identifiability_frontend_source.py \ |
| 65 | + dev/reviews/pr126_round4_autofix_review_2026-08-12.md |
| 66 | + git diff --cached --check |
| 67 | + git commit -m 'test: harden PR126 v4 immutable parser contract' |
| 68 | + git push origin HEAD:agent/panel-p1-stage-c-covariance |
0 commit comments