8000 Rebuild MathOS against the binding 1.0 specification by Mnehmos · Pull Request #11 · Mnehmos/MathOS · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b74f901
docs: establish binding MathOS product contract
Mnehmos Jul 19, 2026
a917061
feat: establish governed Rust storage foundation
Mnehmos Jul 19, 2026
d69f13d
feat: add immutable canonical record versions
Mnehmos Jul 19, 2026
c7e2c11
feat: enforce typed version-bound graph edges
Mnehmos Jul 19, 2026
db9d888
docs: advance ledger to hash-chained runs
Mnehmos Jul 19, 2026
b65333b
feat: preserve hash-chained run history
Mnehmos Jul 19, 2026
6027f55
feat: add bounded version-aware graph traversal
Mnehmos Jul 19, 2026
d618c1a
feat: enforce source and claim schema boundaries
Mnehmos Jul 19, 2026
32c6da6
docs: advance ledger to formalization schemas
Mnehmos Jul 19, 2026
2b49d13
fix: decouple Lean availability from Lake
Mnehmos Jul 19, 2026
b96cd2d
feat: preserve exact concept and formalization identities
Mnehmos Jul 19, 2026
d3d6856
feat: route canonical entities through one app service
Mnehmos Jul 19, 2026
4b0d76e
feat: route research traces and graph through app service
Mnehmos Jul 19, 2026
c9c7de8
test: freeze shared application CLI contracts
Mnehmos Jul 19, 2026
505f5c8
docs: fix the MCP adapter trust boundary
Mnehmos Jul 19, 2026
a7c6d08
feat: add real MCP lifecycle and query surface
Mnehmos Jul 19, 2026
8b4228d
feat: add controlled MCP mutation families
Mnehmos Jul 19, 2026
4fd91a0
test: reject unknown MCP actions explicitly
Mnehmos Jul 19, 2026
9c8d2c9
feat: define canonical Lean environment identity
Mnehmos Jul 19, 2026
4db8c53
feat: persist and resolve Lean environments
Mnehmos Jul 19, 2026
e94d2da
feat: make verifier artifacts canonical
Mnehmos Jul 19, 2026
f0ee1e0
feat: persist durable verifier intent
Mnehmos Jul 19, 2026
c74376f
feat: contain non-authoritative Lean execution
Mnehmos Jul 19, 2026
8cf576f
fix: select the pinned Lean toolchain explicitly
Mnehmos Jul 19, 2026
33811e0
feat: define immutable evidence identity
Mnehmos Jul 19, 2026
c71983a
feat: bind diagnostics to exact verifier attempts
Mnehmos Jul 19, 2026
f5d4edd
feat: record local proof-closure and axiom audits
Mnehmos Jul 19, 2026
2196692
docs: advance the ledger to fidelity review
Mnehmos Jul 19, 2026
23ceedd
feat: define role-separated fidelity review contracts
Mnehmos Jul 19, 2026
dbcb67a
feat: establish role-separated fidelity evidence
Mnehmos Jul 19, 2026
64104ae
docs: advance the ledger to publication authority
Mnehmos Jul 19, 2026
bb9cff8
feat: define attested publication authority contracts
Mnehmos Jul 19, 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
102 changes: 79 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,96 @@ concurrency:
cancel-in-progress: true

jobs:
verify:
rust:
name: Rust (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Check out source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Report pinned toolchain
run: rustup show active-toolchain
- name: Check formatting
run: cargo fmt --check
- name: Lint with warnings denied
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
- name: Run unit and integration tests
run: cargo test --workspace

storage-smoke:
name: Real storage smoke test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Initialize instance
run: cargo run -- --root "${{ runner.temp }}/mcl-ci" --json init --actor github-actions --idempotency-key phase1-storage-smoke
- name: Check storage health
run: cargo run -- --root "${{ runner.temp }}/mcl-ci" --json health

lean-toolchain:
name: Pinned Lean availability
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install repository-pinned Lean
shell: bash
run: |
set -euo pipefail
archive="${RUNNER_TEMP}/elan.tar.gz"
curl --fail --location --proto '=https' --tlsv1.2 \
--output "${archive}" \
https://github.com/leanprover/elan/releases/download/v4.2.3/elan-x86_64-unknown-linux-gnu.tar.gz
echo "df0b2b3a439961ffcbb3985214365ffe40f49bc871df04dff268c7d8e21ca8b2 ${archive}" \
| sha256sum --check --strict
tar --extract --gzip --file "${archive}" --directory "${RUNNER_TEMP}"
"${RUNNER_TEMP}/elan-init" -y --default-toolchain none --no-modify-path
echo "${HOME}/.elan/bin" >> "${GITHUB_PATH}"
"${HOME}/.elan/bin/elan" toolchain install "$(cat lean-toolchain)"
- name: Report exact Lean version
shell: bash
run: |
set -euo pipefail
lean --version | tee "${RUNNER_TEMP}/lean-version.txt"
grep --fixed-strings "Lean (version 4.32.0," "${RUNNER_TEMP}/lean-version.txt"
- name: Run real contained Lean worker integration
shell: bash
env:
MCL_RUN_LEAN_INTEGRATION: "1"
run: cargo test --test lean_worker -- --nocapture

legacy-python-regression:
name: Legacy Python regression evidence
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Check out source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@v5
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
cache: pip
- name: Install MathOS
- name: Install legacy package
run: python -m pip install -e .
- name: Compile and test
- name: Compile and test legacy slice
env:
PYTHONWARNINGS: error::ResourceWarning
run: |
python -m compileall -q src tests
python -m unittest discover -s tests -v
- name: Run canonical vertical slice
run: mathos demo --workspace .ci-demo --reset
- name: Validate every RL export
run: |
for trajectory in .ci-demo/exports/*.json; do
mathos validate-export --input "$trajectory"
done
- name: Build wheel
run: python -m pip wheel --no-deps --wheel-dir dist .
- name: Smoke test installed wheel
run: |
python -m venv .wheel-venv
.wheel-venv/bin/python -m pip install --no-index dist/*.whl
.wheel-venv/bin/mathos demo --workspace .wheel-demo --reset
for trajectory in .wheel-demo/exports/*.json; do
.wheel-venv/bin/mathos validate-export --input "$trajectory"
done
.wheel-venv/bin/python -m pip check
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ lake-packages/
# Rust
target/
**/*.rs.bk
.toolchains/

# Mathematical Claim Engine local state
.mcl/

# Jupyter
.ipynb_checkpoints/
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

All notable changes are recorded here. The project follows Semantic Versioning after the `1.0.0` release.

## Unreleased

- Adopt the binding product and implementation specification at the repository root.
- Begin the canonical Rust `mcl` modular monolith.
- Reclassify the earlier Python finite-domain implementation as migration input rather than a finished product.
- Add immutable pinned Lean environments and canonical verifier artifacts.
- Add durable, idempotent Lean verifier requests with lease recovery and CLI inspection.
Loading
Loading
0