Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/mk/physics0-pd1.mk # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers 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= [SEED=1] build + run; prints the receipt 6 # physics0-pd1-receipt [NOTE="..."] same, and writes evidence/physics0/pd1/PD1_RESULT-dev-.txt (refuses overwrite, refuses dirty tree) 7 ifndef PHYSICS0_PD1_MK 8 PHYSICS0_PD1_MK := 1 9 include mk/physics0-learner.mk 10 .PHONY: physics0-pd1-run physics0-pd1-receipt 11 PD1_DIR = $(OUT_DIR)/physics0-pd1 12 PD1_SEED ?= 1 13 PD1_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 17 physics0-pd1-run: $(PD1_DIR)/pd1-run 18 @test -n "$(PD1_RECORDS)" || { echo "set RECORDS= (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 21 physics0-pd1-receipt: $(PD1_DIR)/pd1-run 22 @test -n "$(PD1_RECORDS)" || { echo "set RECORDS="; 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" 28 endif