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/dual.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 / dual.mk` 70 lines ยท 3497 bytes Raw Blame History 1 # DUAL, constraint pricing for soft resource budgets (ADR 0031 / ARCH-0031). 2 # Standalone pure seeded OM-2 module: src/dual/rx_dual.om + tests/dual/test_dual_*.om. 3 # Picked up by `-include mk/*.mk`; not part of `all` or `test`. Nothing in 4 # src/runtime/ includes or links it. DUAL is scarcity information: it never 5 # authorizes, never promotes, never decides validity. 6 # 7 # test-dual-types DUAL-0a contract: validation, refusal, canonical encoding, digests, properties 8 # test-dual-bind DUAL-0b binding to ESTIMATION records and freshness classification 9 # test-dual-update DUAL-1a reference price update: analytic, property and refusal checks 10 # test-dual-replay DUAL-1b deterministic replay, golden digests, R15 recorded CSV traces, negative control 11 # dual-purity source scan of src/dual/rx_dual.om against authority / promotion / process symbols 12 # test-dual everything above 13 ifndef DUAL_MK 14 DUAL_MK := 1 15 .PHONY: test-dual-types test-dual-bind test-dual-update test-dual-replay dual-purity test-dual 16 OMC ?= seed/out/omc 17 DUAL_DIR = $(OUT_DIR)/tests-dual 18 DUAL_OM = src/dual/rx_dual.om 19 # A price is information, not authority: no capability, promotion, generation 20 # administration, World, ARGUS, AEGIS, memory-mapping or process symbol. 21 DUAL_FORBIDDEN = 'aienos_|rx_gen_|rx_cap|rx_world|rx_js|argus_|forge_|aegis|mmap|mprotect|fork|exec|dlopen|system|socket|fopen|\bopen\b' 22 23 dual-purity: $(DUAL_OM) 24 @if sed -E '/^[[:space:]]*note([[:space:]].*)?$$/d' $(DUAL_OM) | grep -E $(DUAL_FORBIDDEN) ; then \ 25 echo "dual module references an operation a pricing module must not have"; exit 1; fi 26 @echo "dual-purity: $(DUAL_OM) references no authority, promotion or process symbol" 27 28 $(DUAL_DIR)/test_dual_types: $(DUAL_OM) tests/dual/test_dual_types.om 29 @mkdir -p $(DUAL_DIR) 30 cat $(DUAL_OM) tests/dual/test_dual_types.om > $(DUAL_DIR)/test_dual_types.om 31 $(OMC) < $(DUAL_DIR)/test_dual_types.om > $@ 32 chmod +x $@ 33 34 $(DUAL_DIR)/test_dual_bind: $(DUAL_OM) tests/dual/test_dual_bind.om 35 @mkdir -p $(DUAL_DIR) 36 cat $(DUAL_OM) tests/dual/test_dual_bind.om > $(DUAL_DIR)/test_dual_bind.om 37 $(OMC) < $(DUAL_DIR)/test_dual_bind.om > $@ 38 chmod +x $@ 39 40 $(DUAL_DIR)/test_dual_update: $(DUAL_OM) tests/dual/test_dual_update.om 41 @mkdir -p $(DUAL_DIR) 42 cat $(DUAL_OM) tests/dual/test_dual_update.om > $(DUAL_DIR)/test_dual_update.om 43 $(OMC) < $(DUAL_DIR)/test_dual_update.om > $@ 44 chmod +x $@ 45 46 $(DUAL_DIR)/test_dual_replay: $(DUAL_OM) tests/dual/test_dual_replay.om 47 @mkdir -p $(DUAL_DIR) 48 cat $(DUAL_OM) tests/dual/test_dual_replay.om > $(DUAL_DIR)/test_dual_replay.om 49 $(OMC) < $(DUAL_DIR)/test_dual_replay.om > $@ 50 chmod +x $@ 51 52 test-dual-types: $(DUAL_DIR)/test_dual_types 53 ./$(DUAL_DIR)/test_dual_types 54 @echo "test-dual-types: DUAL-0a contract checks pass (pure seeded OM-2)" 55 56 test-dual-bind: $(DUAL_DIR)/test_dual_bind 57 ./$(DUAL_DIR)/test_dual_bind 58 @echo "test-dual-bind: DUAL-0b binding and staleness checks pass (pure seeded OM-2)" 59 60 test-dual-update: $(DUAL_DIR)/test_dual_update 61 ./$(DUAL_DIR)/test_dual_update 62 @echo "test-dual-update: DUAL-1a reference update passes analytic, property and refusal checks (pure seeded OM-2)" 63 64 test-dual-replay: $(DUAL_DIR)/test_dual_replay 65 ./$(DUAL_DIR)/test_dual_replay 66 @echo "test-dual-replay: DUAL-1b replay, pre-registered measures and negative control pass (pure seeded OM-2, all inputs UNCALIBRATED)" 67 68 test-dual: dual-purity test-dual-types test-dual-bind test-dual-update test-dual-replay 69 @echo "test-dual: DUAL standalone module passes" 70 endif