Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/bar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: verified bar

# Runs the Proven Commons bar check on the Lean project in formal/.
# The workflow and the checker are both pinned to one commit of
# Proven-Commons/mission.

on:
push:
pull_request:
# Rerun when a spec reviewer approves, or an approval is dismissed.
pull_request_review:
types: [submitted, dismissed]

jobs:
bar:
# pull-requests: read lets the check confirm a spec approval on GitHub.
permissions:
contents: read
pull-requests: read
uses: Proven-Commons/mission/.github/workflows/verified-bar.yml@7b22e542f0db0f3013ab1439cf5d1947676a5083
with:
project-dir: formal
bar-ref: 7b22e542f0db0f3013ab1439cf5d1947676a5083
28 changes: 28 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: verify

# Reruns the verifier and fails if the committed certificate differs.
# A green run shows that the certificate follows from the pinned inputs.
# It does not show that the upstream models describe a real building.

on:
push:
pull_request:

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install sympy==1.14.0
- run: python3 verify.py
- name: The generated documents are up to date
run: |
python3 tools/render_map.py
git diff --exit-code -- docs
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
*.pyc
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Changelog

Machine-checked milestones for `aska-physical/optifab`.

## [0.2.0] - 2026-11-17

Status: claimed. Prepared by an AI agent; not reviewed by a person. Nothing is called verified.

### Added

- **`formal/`**: a Lean 4 project with no dependencies, in the Proven Commons layout. An exact integer gate,
the generation step and the loop over any list of proposals, with eight theorems. `lake comparator
--paranoid` accepts them under six kernels. 300,000 differential tests against the Python oracle agree. The
Proven Commons bar check reports items 2 to 6 PASS and item 1 OPEN (`formal/BAR-REPORT.md`).
- **`loop.py`**: the improvement loop. Three hardware genes, two software genes and the proposer's own step
scale, changed one gated step at a time. On the scenario in the file: 50 proposals, 45 admitted (30
hardware, 15 software), objective 0.914228 to 0.919009.
- **`results/ledger.json`** and **`results/formal.json`**: the hash-chained record of every decision, and the
record of the last formal run. `verify.py --formal` rebuilds the proofs and replays the ledger in Lean
(50 decisions, 0 mismatches). The plain verifier fails if that record does not match the current Lean
sources and ledger.
- **`docs/VISION.md`**: how close this is to a formally verified system that improves its own hardware and
software, part by part. **`docs/PROPOSALS.md`**: eight systems for the open gaps.
- **Licences**: PolyForm Noncommercial 1.0.0 for code, CC BY-NC 4.0 for text and data.
- **Two workflows**: the Proven Commons bar check on `formal/`, and a rerun of `verify.py`.
- Five must-fail controls (24 in all). The unit now has 30 elements and 10 loop interfaces, 4 of them checked.

## [0.1.0] - 2026-11-17

First version. Status: claimed. Prepared by an AI agent; not reviewed by a person.

### Added

- **`verify.py` and `results/certificate.json`.** One command recomputes every figure from pinned inputs and
runs 19 must-fail controls. Five identities are checked symbolically with SymPy.
- **`docs/STRUCTURE.md` and `data/unit.json`**: one structure. Every repository on the map is placed in the
physical unit or listed as having no place: 32 placed, 9 not. The loop between structure and intelligence has
9 interfaces, of which 3 are checked. The idea comes from the Terrafab documents named in issue 1.
- **Plant frame**: the contract's state in the 64-byte layout of Weft's telemetry frame, with a contract check
that reads one frame.
- **Loop timing**: the two latencies quoted in the Terrafab documents, tried on the four plant vibration tones
in funi-frame's isolation model.
- **Plant envelope**, from the funi-frame certificate and the literals in its verifier:
- extra IT load at a fixed utility supply: 2.854 to 2.959 MW, against 3.06 MW of freed utility power;
- recooling limit of the sorption stage: 41.5 °C at 18 °C chilled water, 40.1 °C at 15 °C;
- load floor for self-cooling: 0.564 MW with the certified wall, 0.850 MW with a steel-pinned wall;
- thermal budget: 2,500 kWh_th, with the load to shed for outages of 10 to 60 minutes.
- **Margin vector** of 12 limit states from funi-frame, funi-floors and venturi-collars (11 certified upstream,
1 derived here), and the plant radius 0.1989 set by the floor punching collar.
- **`plant_gate`**, a re-implementation of the Weft I3 predicate. It passes Weft's 15 weight-update vectors,
agrees with Weft's own function on 100,000 generated cases, and is run on five plant cases.
- **Interface checks** on six values repeated by hand across repositories.
- **`data/graph.json`**: 41 repositories and 43 cited links across aska-physical, Foundation-0,
Moissanite-Labs and Proven-Commons, with lineage checked to be acyclic and within Weft's depth bound of 12.
The first links in repository contents between aska-physical and Moissanite-Labs.
- **`data/pins.json` and `data/sources.json`**: 48 pins and the commits of 36 repositories with the hashes of
every cited file.
`verify.py --upstream ROOT` re-reads every cited line.
- **`docs/MODEL.md`**, **`docs/CONVERGENCE.md`** (generated), **`HANDOFF.md`**, **`NOTICE`**, and the tools
`fetch_upstream.py` and `render_map.py`.
Loading
Loading