Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
a0d711d
feat(check): add fail-closed OMM Lean claim evidence bridge
heathsanchez Nov 4, 2026
89d3003
Check OMM: qualify pinned Artin claims with native Lean and authentic…
heathsanchez Nov 4, 2026
51f58ce
Check OMM: project native receipts into neutral GitHub App Check prev…
heathsanchez Nov 4, 2026
3776ab8
Check OMM: qualify and read back neutral registered-App checks on own…
heathsanchez Nov 4, 2026
c7c0482
Check OMM: remove preview-only wording from published App Check summary
heathsanchez Nov 4, 2026
6a236fa
test(omm): qualify owned App exact-head withdrawal lifecycle
heathsanchez Nov 4, 2026
ac7ab4d
feat(omm): admit owner-only claim requests without execution or publi…
heathsanchez Nov 4, 2026
803fdf3
test(omm): add no-secret, unprivileged Lean sandbox qualification smoke
heathsanchez Nov 4, 2026
c502c62
fix(omm): forcibly reap timed-out Lean containers and fail closed on …
heathsanchez Nov 4, 2026
cb84909
test(check): qualify real first-party OMM claim opt-in through native…
heathsanchez Nov 5, 2026
3230827
fix(check): preserve HTTP method and body in OMM owned App publisher
heathsanchez Nov 5, 2026
90348a5
docs(check): record OMM real-comment and App idempotence evidence
heathsanchez Nov 5, 2026
9a202e3
feat(check): accept canonical OMM /check without changing legacy routes
heathsanchez Nov 5, 2026
079f0a6
feat(check): qualify isolated first-party OMM slash-comment events
heathsanchez Nov 5, 2026
2b496bb
Bind OMM Artin evidence to the compiled artifacts
heathsanchez Nov 8, 2026
924a725
test(check): add bounded OMM scope-contract research controls
heathsanchez Nov 15, 2026
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
144 changes: 144 additions & 0 deletions .github/workflows/check-omm-artin-native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
name: MathGraph OMM fixed Artin native qualification
on:
push:
branches: ['feature/check-omm-claim-bridge-v1-20261105']
paths:
- '.github/workflows/check-omm-artin-native.yml'
- 'integrations/mathgraph-check-github/omm-v1/**'
- 'integrations/mathgraph-check-github/mention-artin-control-v1.mjs'
workflow_dispatch:
permissions:
contents: read
jobs:
frozen-source-preflight:
runs-on: ubuntu-24.04
timeout-minutes: 8
strategy:
fail-fast: false
matrix:
pr: [239, 240]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Check exact public PR heads and source bytes
env:
GITHUB_TOKEN: ${{ github.token }}
run: node integrations/mathgraph-check-github/omm-v1/artin-preflight.mjs '${{ matrix.pr }}' "$RUNNER_TEMP/omm-artin-${{ matrix.pr }}"
- name: Carry authenticated, public, frozen inputs into isolated job
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: omm-artin-bound-input-${{ matrix.pr }}
path: ${{ runner.temp }}/omm-artin-${{ matrix.pr }}/
if-no-files-found: error
retention-days: 14

native-original-target-replay:
needs: frozen-source-preflight
runs-on: ubuntu-24.04
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
pr: [239, 240]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Obtain exact-head public inputs from separate preflight job
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
with:
name: omm-artin-bound-input-${{ matrix.pr }}
path: ${{ runner.temp }}/omm-artin-${{ matrix.pr }}
- name: Acquire checked Lean 4.28.0 distribution
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/lean-428"
curl --proto '=https' --tlsv1.2 -fL --retry 2 https://github.com/leanprover/lean4/releases/download/v4.28.0/lean-4.28.0-linux.tar.zst -o "$RUNNER_TEMP/lean-428.tar.zst"
echo "ceb3a3f844f7aebf63245e2b51c28d5b0ed38942c19f93cf3febd520302160bd $RUNNER_TEMP/lean-428.tar.zst" | sha256sum -c -
tar --zstd -xf "$RUNNER_TEMP/lean-428.tar.zst" --strip-components=1 -C "$RUNNER_TEMP/lean-428"
echo "$RUNNER_TEMP/lean-428/bin" >> "$GITHUB_PATH"
- name: Build pinned Mathlib environment with no App or LLM secrets
working-directory: ${{ runner.temp }}/omm-artin-${{ matrix.pr }}
run: |
set -euo pipefail
printf '%s\n' 'leanprover/lean4:v4.28.0' > lean-toolchain
cat > lakefile.lean <<'LEAN'
import Lake
open Lake DSL
package MathGraphArtinControls where
require mathlib from git "https://github.com/leanprover-community/mathlib4.git" @ "8f9d9cff6bd728b17a24e163c9402775d9e6a365"
lean_lib Candidate where
LEAN
lake update
node --input-type=module -e "import fs from 'node:fs';const d=JSON.parse(fs.readFileSync('lake-manifest.json'));if(d.packages.find(p=>p.name==='mathlib')?.rev!=='8f9d9cff6bd728b17a24e163c9402775d9e6a365')throw Error('MATHLIB_REVISION_MISMATCH')"
lake exe cache get
- name: Replay candidate, original statement consumer and axiom audit
env:
LEAN_NUM_THREADS: '1'
run: node integrations/mathgraph-check-github/omm-v1/artin-native-cli.mjs "$RUNNER_TEMP/omm-artin-${{ matrix.pr }}"
- name: Preserve evidence, negative controls and unknowns
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: omm-artin-native-${{ matrix.pr }}
path: |
${{ runner.temp }}/omm-artin-${{ matrix.pr }}/request.json
${{ runner.temp }}/omm-artin-${{ matrix.pr }}/published-exercise.lean.txt
${{ runner.temp }}/omm-artin-${{ matrix.pr }}/candidate.lean.txt
${{ runner.temp }}/omm-artin-${{ matrix.pr }}/lake-manifest.json
${{ runner.temp }}/omm-artin-${{ matrix.pr }}/output/*
retention-days: 30
if-no-files-found: warn

publish-first-party-app-check:
needs: native-original-target-replay
runs-on: ubuntu-24.04
timeout-minutes: 10
concurrency:
group: mathgraph-omm-owned-artin-app-publication-${{ matrix.pr }}
cancel-in-progress: false
strategy:
fail-fast: false
matrix:
pr: [239, 240]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Load no-secret qualified native receipt for this exact workflow run
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
with:
name: omm-artin-native-${{ matrix.pr }}
path: ${{ runner.temp }}/omm-app-${{ matrix.pr }}
- name: Mint Check-only token from existing registered MathGraph App
id: app-token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349
with:
app-id: 5308912
private-key: ${{ secrets.MATHGRAPH_CHECK_APP_PRIVATE_KEY }}
owner: metalogiclabs
repositories: mathgraph
permission-checks: write
permission-pull-requests: read
- name: Verify original Artin obligation then publish neutral, exact-head App Check
env:
MATHGRAPH_APP_INSTALLATION_TOKEN: ${{ steps.app-token.outputs.token }}
run: node integrations/mathgraph-check-github/omm-v1/app-owned-publish.mjs '${{ matrix.pr }}' "$RUNNER_TEMP/omm-app-${{ matrix.pr }}"
- name: Record registered-App readback if available
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: omm-app-publication-${{ matrix.pr }}
path: ${{ runner.temp }}/omm-app-${{ matrix.pr }}/output/app-publish-receipt.json
if-no-files-found: warn
retention-days: 30
31 changes: 31 additions & 0 deletions .github/workflows/check-omm-claim-bridge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: MathGraph OMM claim bridge — additive qualification
on:
push:
branches: [feature/check-omm-claim-bridge-v1-20261105]
pull_request:
paths:
- 'integrations/mathgraph-check-github/omm-v1/**'
- '.github/workflows/check-omm-claim-bridge.yml'
permissions:
contents: read
jobs:
contracts:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: OMM source/receipt/report RED-GREEN controls
run: node --test integrations/mathgraph-check-github/omm-v1/*.test.mjs
- name: Existing MathGraph Check contract regression
run: node --test integrations/mathgraph-check-github/*.test.mjs integrations/mathgraph-check-github/pr-pilot-v1/*.test.mjs integrations/mathgraph-check-github/cloudflare/*.test.mjs
- name: Existing L4YAML runtime and page unchanged from selected pilot
run: |
git diff --exit-code b5bf21db259c595dfdd731bdec8837c4d165578a HEAD -- \
integrations/mathgraph-check-github/pr-pilot-v1 \
integrations/mathgraph-check-github/cloudflare
45 changes: 45 additions & 0 deletions .github/workflows/check-omm-intake-lifecycle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: MathGraph OMM exact-head App lifecycle — first-party qualification
on:
push:
branches: [feature/check-omm-claim-bridge-v1-20261105]
paths:
- '.github/workflows/check-omm-intake-lifecycle.yml'
- 'integrations/mathgraph-check-github/omm-v1/**'
permissions:
contents: read
jobs:
publish-owned-unknown-and-withdraw-previous:
if: >-
github.repository == 'metalogiclabs/mathgraph' &&
github.ref == 'refs/heads/feature/check-omm-claim-bridge-v1-20261105' &&
github.actor_id == 32909488
runs-on: ubuntu-24.04
timeout-minutes: 10
concurrency:
group: mathgraph-omm-intake-lifecycle-pr270
cancel-in-progress: false
queue: max
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Verify fail-closed transition contract before any App credentials
run: node --test integrations/mathgraph-check-github/omm-v1/lifecycle-check.test.mjs
- name: Mint Check-only token for installed MathGraph GitHub App
id: app-token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349
with:
app-id: 5308912
private-key: ${{ secrets.MATHGRAPH_CHECK_APP_PRIVATE_KEY }}
owner: metalogiclabs
repositories: mathgraph
permission-checks: write
permission-pull-requests: read
- name: Independent PR270 SHA readback, predecessor withdrawal and UNKNOWN App Check
env:
MATHGRAPH_APP_INSTALLATION_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_ACTOR_ID: ${{ github.actor_id }}
run: node integrations/mathgraph-check-github/omm-v1/lifecycle-check.mjs
52 changes: 52 additions & 0 deletions .github/workflows/check-omm-native-sandbox-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: MathGraph OMM unprivileged Lean sandbox — owned controls only
on:
push:
branches: [feature/check-omm-claim-bridge-v1-20261105]
paths:
- '.github/workflows/check-omm-native-sandbox-smoke.yml'
- 'integrations/mathgraph-check-github/omm-v1/sandbox-*.mjs'
permissions:
contents: read
jobs:
no-secrets-no-network-owned-fixtures:
if: >-
github.repository == 'metalogiclabs/mathgraph' &&
github.ref == 'refs/heads/feature/check-omm-claim-bridge-v1-20261105' &&
github.actor_id == 32909488
runs-on: ubuntu-24.04
timeout-minutes: 25
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: '24'
- name: Verify isolation policy and success/failure classification before container build
run: node --test integrations/mathgraph-check-github/omm-v1/sandbox-*.test.mjs
- name: Obtain SHA-256-verified Lean 4.28.0 runtime without private credentials
run: |
set -euo pipefail
mkdir -p "$RUNNER_TEMP/omm-lean-image/lean"
curl --proto '=https' --tlsv1.2 -fL --retry 2 https://github.com/leanprover/lean4/releases/download/v4.28.0/lean-4.28.0-linux.tar.zst -o "$RUNNER_TEMP/omm-lean-428.tar.zst"
echo "ceb3a3f844f7aebf63245e2b51c28d5b0ed38942c19f93cf3febd520302160bd $RUNNER_TEMP/omm-lean-428.tar.zst" | sha256sum -c -
tar --zstd -xf "$RUNNER_TEMP/omm-lean-428.tar.zst" --strip-components=1 -C "$RUNNER_TEMP/omm-lean-image/lean"
- name: Build distinct unprivileged image from existing read-only Lean Dockerfile
run: |
set -euo pipefail
docker build --pull -t mathgraph-lean-sandbox:omm-v1 -f integrations/mathgraph-check-github/Dockerfile.native-demo "$RUNNER_TEMP/omm-lean-image"
docker image inspect --format '{{.Id}}' mathgraph-lean-sandbox:omm-v1 > "$RUNNER_TEMP/omm-sandbox-image-id.txt"
- name: Execute owned positive/negative Lean fixtures and real filesystem/network isolation probe
env:
GITHUB_ACTOR_ID: ${{ github.actor_id }}
run: node integrations/mathgraph-check-github/omm-v1/sandbox-smoke.mjs
- name: Retain bounded smoke receipt, environment identity and negative controls
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: omm-native-sandbox-smoke-${{ github.run_id }}
path: |
${{ runner.temp }}/omm-sandbox-smoke.json
${{ runner.temp }}/omm-sandbox-image-id.txt
if-no-files-found: warn
retention-days: 30
Loading
Loading