interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / mk / physics0-pd1.mk

28 lines · 2117 bytes Raw Blame History
1# PD-1 development run (Physics-0 Direction 7, aien-dev/physics docs/PD1_MACHINE_LAW_BENCHMARK.md):
2# the UNCHANGED PD-0 learner on the label-free PD1REC1 machine record stream.
3# Not in all/test. Development evidence only (spec PD1 section 4.2); no discovery claim.
4#
5# physics0-pd1-run RECORDS=<pd1-records.bin> [SEED=1] build + run; prints the receipt
6# physics0-pd1-receipt [NOTE="..."] same, and writes evidence/physics0/pd1/PD1_RESULT-dev-<commit>.txt (refuses overwrite, refuses dirty tree)
7ifndef PHYSICS0_PD1_MK
8PHYSICS0_PD1_MK := 1
9include mk/physics0-learner.mk
10.PHONY: physics0-pd1-run physics0-pd1-receipt
11PD1_DIR = $(OUT_DIR)/physics0-pd1
12PD1_SEED ?= 1
13PD1_RECORDS ?= $(RECORDS)
14$(PD1_DIR)/pd1-run: tests/physics0/pd1/pd1_run.c $(P0L_LEARNER_SRCS) $(P0L_VERIFIER_SRCS) src/omega_om_units.c $(P0L_HDRS)
15 @mkdir -p $(PD1_DIR)
16 $(CC) $(P0L_CFLAGS) -o $@ tests/physics0/pd1/pd1_run.c $(P0L_LEARNER_SRCS) $(P0L_VERIFIER_SRCS) src/omega_om_units.c -lm
17physics0-pd1-run: $(PD1_DIR)/pd1-run
18 @test -n "$(PD1_RECORDS)" || { echo "set RECORDS=<pd1-records.bin> (tools/physics0/pd1-convert: make run OUT=...)"; exit 2; }
19 @mkdir -p $(PD1_DIR)/out
20 $(PD1_DIR)/pd1-run "$(PD1_RECORDS)" $(PD1_DIR)/out $(PD1_SEED) | tee $(PD1_DIR)/pd1-run.out
21physics0-pd1-receipt: $(PD1_DIR)/pd1-run
22 @test -n "$(PD1_RECORDS)" || { echo "set RECORDS=<pd1-records.bin>"; exit 2; }
23 @test -z "$$(git status --porcelain)" || { echo "refusing: working tree dirty"; exit 2; }
24 @mkdir -p $(PD1_DIR)/out evidence/physics0/pd1
25 @c=$$(git rev-parse --short=12 HEAD); f=evidence/physics0/pd1/PD1_RESULT-dev-$$c.txt; test ! -e $$f || { echo "refusing: $$f exists"; exit 2; }; \
26 { echo "receipt_kind: PD1_RESULT development run (spec section 8 recommendation; not the blind run)"; echo "commit: $$c"; test -z "$(NOTE)" || echo "note: $(NOTE)"; echo "records_sha256: $$(sha256sum "$(PD1_RECORDS)" | cut -c1-64)"; echo "cc: $$($(CC) --version | head -1)"; echo "date_utc: $$(date -u +%Y-%m-%dT%H:%M:%SZ)"; \
27 $(PD1_DIR)/pd1-run "$(PD1_RECORDS)" $(PD1_DIR)/out $(PD1_SEED); echo "exit: $$?"; } > $$f; tail -1 $$f; echo "wrote $$f"
28endif