English · 简体中文
For a first run, start with the README. To change the project, find the relevant code below and run the checks for that part. The documentation index links to subsystem guides; AGENTS.md describes the runtime boundaries.
Run commands from the repository root. The project pins Bun 1.4.0; CI also uses Node.js 22.
bun install --frozen-lockfileNative proof checks need Lean. On Linux x86_64 or aarch64, install-elan.sh installs the pinned elan manager without selecting a toolchain. Use the Lean release pinned by the project or fixture you are checking. Local development checks do not need model credentials; do not call a live model or change global Codex configuration to validate a change.
| Area | Start here |
|---|---|
| CLI and proof runs | CLI entry, solver. Start with run.ts for the run lifecycle and evaluation.ts for final acceptance. |
| Mathematics and model sessions | Mathematics services own formalization, retrieval and verification; runtime owns model connections. |
| Web workbench | apps/web/ contains the optional service and its client. The CLI and mathematics services must work without it. |
| Public website | Source and build instructions are in the product repository. |
| Tests | Backend tests live in tests/. The browser tests are in the product repository. |
| Research and proof tools | skills/ contains pinned research instructions, resources/ contains proof environments and library inputs, and research/ holds protocols and decisions. See examples/ for worked runs and adapters. |
Pull requests to main must pass three GitHub Actions checks: verify (including type checks and the CLI build), verify-solver (4.34.1) and verify-solver (4.36.0) (native Lean tests). If you rename a required job or change the Lean matrix, update the main branch rules as part of the change.
During development, run the closest test file, for example bunx vitest run tests/webFonts.test.ts. Before submitting code, run:
bun run checkThis checks local Markdown file links in the main guides, checks formatting, type-checks the CLI, workbench and website, then runs Vitest. For a documentation edit, run bun run check:docs; append a Markdown path to check just that page. This does not check external sites or section anchors. Use bun run format to apply Prettier to the source paths listed in package.json. Builds, native solver checks and browser scenarios have separate commands:
| When the change affects… | Additional check |
|---|---|
| CLI or solver runtime boundaries | Run the affected tests and bun run build (headless CLI bundle). |
| Solver reliability with native Lean | bun run test:solver-reliability. See the verify-solver job in CI for the Lean versions and Linux sandbox prerequisites. |
| Workbench behavior | bun run build:web, then the relevant Playwright scenario, for example bun run test:web-login. Install the test browser with bunx playwright install chromium if needed. |
| Public website | Source and build instructions are in the product repository. |
CI runs selected Vitest suites, builds, native checks and browser scenarios. Extended browser suites run on manual dispatch or when a calling workflow requests the full set. When adding a browser scenario, put it in scripts/e2e/, reuse the scenario helpers and add a corresponding test script to package.json.
- Keep published archive paths and bytes stable:
accepted/,submitted/,in-progress/,results/andtheoremos-review/. Keep existing proofs, notes, run records, and the paths and versions quoted in historical documents intact. - Keep
tests/fixtures/,docs/assets/and the evidence inexamples/knowledge-reuse/out of formatting passes. The format exclusions also protect generated sources and byte-compared CSS. The frontend styles and browser regression tests are maintained in the product repository.
For maintenance, reproduce issues in isolation and fix the shared mechanism. Leave active proofs, researcher assignments, run progress and submissions to the solver unless explicitly authorized. Keep credentials out of commits.
Use the private reporting instructions for suspected vulnerabilities.
Before upgrading, check GitHub Releases for tagged versions. The v0.1.0 notes describe the research preview and the CLI names retained after the project was renamed. For a workbench deployment, consult the dated release records for the relevant build.