From 43f8687f70a220cbbf5ee3e890df59fa281a828b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Nov 2026 15:12:33 +0000 Subject: [PATCH] v4: L8-CARD@ ( -- card changes ), and its POST case; POST 991 (#189, Phase 7 Task 9, part A) Request -41, served by the kernel from the node's L8 state; the word in physics.4th. test_mesh_boot checks it against the kernel's own values, changes more than 0: failed first (UNKNOWN WORD), now 142 checks pass. POST.md takes only the new case and the counts: the two cells that differ run to run are #199's. POST_FLOOR 990 -> 991. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm --- capsules/v4/physics.4th | 1 + docs/v4.0.0/POST.md | 5 +- logs/20261120-task9/l8card-after.txt | 90 ++++++++++++++++++++++++++ logs/20261120-task9/l8card-before.txt | 93 +++++++++++++++++++++++++++ logs/20261120-task9/l8card-post.txt | 10 +++ logs/20261120-task9/post79.txt | 87 +++++++++++++++++++++++++ v4/include/v4/mesh.h | 1 + v4/system/POST_FLOOR | 2 +- v4/system/mesh.c | 8 ++- v4/system/post_cases.c | 4 +- v4/tests/test_mesh_boot.c | 9 +++ v4/tools/post79_rules.py | 3 + 12 files changed, 308 insertions(+), 5 deletions(-) create mode 100644 logs/20261120-task9/l8card-after.txt create mode 100644 logs/20261120-task9/l8card-before.txt create mode 100644 logs/20261120-task9/l8card-post.txt create mode 100644 logs/20261120-task9/post79.txt diff --git a/capsules/v4/physics.4th b/capsules/v4/physics.4th index a1b35a9f..5c40ab9b 100644 --- a/capsules/v4/physics.4th +++ b/capsules/v4/physics.4th @@ -23,6 +23,7 @@ Block 3973 -32 KERNEL-WORD INFER-VARIANCE@ ( -- d ) -33 KERNEL-WORD INFER-FIT@ ( -- d ) -34 KERNEL-WORD INFER-EARLY-EXIT@ ( -- flag ) +-41 KERNEL-WORD L8-CARD@ ( -- card changes ) ( v3's DECAY_RATE_PER_US_Q16, its compile-time constant ) 1 CONSTANT DECAY-RATE@ --> diff --git a/docs/v4.0.0/POST.md b/docs/v4.0.0/POST.md index 5c1ba7f9..34058344 100644 --- a/docs/v4.0.0/POST.md +++ b/docs/v4.0.0/POST.md @@ -6,7 +6,7 @@ the standard first -- FORTH-79, FORTH-83, ANS 1994 -- then v3's table, not v3's The cases are `v4/system/post_cases.c`; those of the words `capsules/v4/physics.4th` defines need the kernel and are not run by the hosted product. -POST runs 990 cases. 783 are v3's, with what the hosted v3 binary did as the +POST runs 991 cases. 783 are v3's, with what the hosted v3 binary did as the expected result. This file lists every other case, and why. ## 1. Rewritten: the standard's result, or v3's table's (159) @@ -206,7 +206,7 @@ printed unless an address is printed; the values are not. | `LIST.basic` | `1 LIST` | values left only | | `SCR.after_list` | `1 LIST SCR @ . CR` | values left only | -## 3. Written by hand (28) +## 3. Written by hand (29) For required words v3 has no case for. The expected results are the standard's; no v3 run stands behind them. @@ -241,6 +241,7 @@ standard's; no v3 run stands behind them. | `WORD.delimiter` | `: W2 44 WORD COUNT TYPE ; W2 A B,` | stack `empty`, prints `A B` | | `WORD.count` | `: W3 BL WORD C@ . ; W3 ABC` | stack `empty`, prints `3 ` | | `WORD.skips_leading` | `: W4 BL WORD COUNT TYPE ; W4 X` | stack `empty`, prints `X` | +| `L8-CARD@.basic` | `L8-CARD@ 0< . 64 U< . CR` | stack `empty`, prints `0 -1 \n` | ## 4. v3 cases left out (52) diff --git a/logs/20261120-task9/l8card-after.txt b/logs/20261120-task9/l8card-after.txt new file mode 100644 index 00000000..9ee447c7 --- /dev/null +++ b/logs/20261120-task9/l8card-after.txt @@ -0,0 +1,90 @@ +/home/user/LithosAnanke/v4/build/mkcapsule /home/user/LithosAnanke/capsules /home/user/LithosAnanke/v4/build/capsule_generated.c +mkcapsule: scanning /home/user/LithosAnanke/capsules + [p] zuse.4th (1684 bytes, hash=0x490ded9be257a90b) + [p] font.4th (17688 bytes, hash=0x3f305911500c78f6) + [p] MANIFEST_AUTO.md (11687 bytes, hash=0xe022545a0755960f) + [p] multiuser-doe.4th (3942 bytes, hash=0x22140588ee7c39e6) + [p] hestia:init.4th (891 bytes, hash=0x64e111990fbc45ff) + [p] contrib:README.md (1855 bytes, hash=0x4212e52b927793e7) + [p] ACL.4th (4318 bytes, hash=0xf8890c05c0d8f921) + [p] workload-3.4th (2189 bytes, hash=0x62b7a71576ad1041) + [p] init-l8-diverse.4th (430 bytes, hash=0xaa293201a6c91838) + [p] user-font-demo.4th (1674 bytes, hash=0xce1fd7d1b581a56d) + [p] workload-9.4th (1321 bytes, hash=0x3f2bec73142aa424) + [p] lib.4th (619 bytes, hash=0x4b216635c359ef73) + [p] workload-calib1.4th (304 bytes, hash=0x3b9f2d17b554fabc) + [m] init.4th (669 bytes, hash=0xd09db9461b336431) + [p] workload-1-lite.4th (540 bytes, hash=0x44a7a7e3176dcc8d) + [p] init-l8-stable.4th (278 bytes, hash=0xdc3830f189063a9a) + [p] v4:physics.4th (3003 bytes, hash=0x64d86ec4883d2cdd) + [p] v4:forth79.4th (1216 bytes, hash=0x4609d6ef54166ef8) + [p] v4:ACL.4th (2103 bytes, hash=0xdba5690fb0ee12a4) + [p] v4:init.4th (756 bytes, hash=0x13fe8932fa4d2934) + [p] v4:sys:log.f18 (4535 bytes, hash=0x544cd004233dff62) + [p] v4:sys:qmath.f18 (8607 bytes, hash=0xa93783c2c8f9b7db) + [p] v4:sys:map-32.f18 (3215 bytes, hash=0x17ad313814d028ff) + [p] v4:sys:blocks.f18 (6112 bytes, hash=0x09d361dbe6174236) + [p] v4:sys:input.f18 (10692 bytes, hash=0x0f13c3f9d5fd07fc) + [p] v4:sys:dict.f18 (13816 bytes, hash=0xe3453808afd5a0af) + [p] v4:sys:forth.f18 (12617 bytes, hash=0xc4c0ad315c95eda4) + [p] v4:sys:quit.f18 (32141 bytes, hash=0x7fa7a7668b6bf1ed) + [p] v4:sys:map-64.f18 (3254 bytes, hash=0x81bda2bfcf496f6a) + [p] v4:sys:codegen.f18 (4999 bytes, hash=0x36d2ae84d2911b90) + [p] v4:sys:acl.f18 (5303 bytes, hash=0x5ceb5b43b0c5fbb1) + [p] v4:sys:core.f18 (24370 bytes, hash=0x0f415502fccc3fba) + [p] v4:sys:system.f18 (10189 bytes, hash=0xfe257eb084c43a5d) + [p] v4:sys:numout.f18 (6641 bytes, hash=0xca0fb0f9c1589e20) + [p] v4:sys:words.f18 (9642 bytes, hash=0x2f4e5f7f3e7f736f) + [p] v4:sys:compile.f18 (23381 bytes, hash=0xbef95acf00cb404a) + [p] v4:sys:end.f18 (1604 bytes, hash=0x22eea18b132f8faf) + [p] v4:starshipos.4th (706 bytes, hash=0x1734a8f4fe7483a5) + [p] v4:hera.4th (1376 bytes, hash=0x78730b1d6effe892) + [p] v4:rom:sym.f18 (5610 bytes, hash=0xbbad5748f5bbf863) + [p] v4:rom:main.f18 (2284 bytes, hash=0x6994f1f1d567e163) + [p] v4:rom:math.f18 (5108 bytes, hash=0x9be63ad87934622f) + [p] v4:rom:dir.f18 (5112 bytes, hash=0x51b069f0623ded16) + [p] v4:rom:num.f18 (2634 bytes, hash=0x08b76f1b058cac17) + [p] v4:rom:pack.f18 (4583 bytes, hash=0x65a944d8eb7de7f2) + [p] v4:rom:word.f18 (12966 bytes, hash=0x9210d6c2ac424d11) + [p] v4:rom:in.f18 (4230 bytes, hash=0x65798bed38a09f0f) + [p] v4:rom:mesh.f18 (449 bytes, hash=0x83723d76b9620c2c) + [p] v4:centre.4th (4140 bytes, hash=0x53b1e3df644e8e25) + [p] README.md (2305 bytes, hash=0x09a684ebdfbeb01c) + [p] block-acl.4th (980 bytes, hash=0xf6cc2a59e3a6734e) + [p] sdk.4th (2295 bytes, hash=0x008fdbbb62c94a3a) + [p] pki:starshipos-intermediate.der (408 bytes, hash=0xb40aab540c19f877) + [p] init-l8-omni.4th (1986 bytes, hash=0x5979e314d6452045) + [p] acl-std79.4th (5040 bytes, hash=0x773bf9209df191d1) + [p] doe-campaign.4th (2369 bytes, hash=0x26fb485e5c9dc6ff) + [p] init-l8-volatile.4th (718 bytes, hash=0x98caabbbd92abac4) + [p] doe.4th (3244 bytes, hash=0xf154616d248e861f) + [p] fabric.4th (10359 bytes, hash=0x9d9489cbeca4099b) + [p] workload-4.4th (469 bytes, hash=0x099619264e650b1c) + [p] init-l8-temporal.4th (363 bytes, hash=0x51abd4c138246651) + [p] workload-5.4th (480 bytes, hash=0x526964c7c9506a11) + [p] fonts:README.md (1846 bytes, hash=0xf628c2b7a49f4d46) + [p] fonts:JetBrainsMono-Regular.ttf (270224 bytes, hash=0xf4b7077dab274e6b) + [p] init-l8-transition.4th (529 bytes, hash=0xbcc1a81976f0a4c9) + [p] workload-2.4th (1321 bytes, hash=0xf113b3d0bcccae47) + [p] workload-1.4th (1041 bytes, hash=0x63e251adb0a03613) + [p] workload-5-lite.4th (468 bytes, hash=0xea0303f38824f254) + [p] workload-0.4th (290 bytes, hash=0x93f86f60aeba8feb) + [p] artemis:init.4th (16782 bytes, hash=0x7ba120e2a6aab239) + [p] MANIFEST.md (35813 bytes, hash=0x9d3a6fdb7415d224) + [p] workload-7.4th (206 bytes, hash=0x02862291387eb7ac) + [p] BLOCK_MAP.md (23272 bytes, hash=0x581b8bf06779c914) + [p] turtle.4th (3254 bytes, hash=0x4d470418ca543365) + [p] workload-8.4th (172 bytes, hash=0x56b7f2f0efa000df) + [p] workload-6.4th (1986 bytes, hash=0x06fc0ce1e369ef5a) +mkcapsule: 76 capsule(s) collected +mkcapsule: wrote /home/user/LithosAnanke/v4/build/capsule_generated.c +cc -std=c99 -Wall -Wextra -Wpedantic -Werror -O2 -g -D_POSIX_C_SOURCE=200809L -I/home/user/LithosAnanke/v4/include -isystem /home/user/LithosAnanke/v3/include -isystem /home/user/LithosAnanke/kernel/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -DTRAIN_F18A='"/home/user/LithosAnanke/v4/build/train-place-64.f18a"' -c /home/user/LithosAnanke/v4/tests/test_mesh_boot.c -o /home/user/LithosAnanke/v4/build/test_mesh_boot.o +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v4/system/mesh.c -o /home/user/LithosAnanke/v4/build/mesh-64.o +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v4/system/inference.c -o /home/user/LithosAnanke/v4/build/inference-64.o +cd /home/user/LithosAnanke/v4/build/v3o-mesh && cc -std=gnu99 -Wall -O2 -g -I/home/user/LithosAnanke/v3/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v4/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v3/src/block_subsystem.c /home/user/LithosAnanke/v3/src/blkio_ram.c /home/user/LithosAnanke/v3/src/blkio_file.c /home/user/LithosAnanke/v3/src/log.c /home/user/LithosAnanke/v3/src/platform/platform_init.c /home/user/LithosAnanke/v3/src/platform/linux/time.c /home/user/LithosAnanke/v4/system/blocks.c +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 /home/user/LithosAnanke/v4/build/test_mesh_boot.o /home/user/LithosAnanke/v4/build/mesh-64.o /home/user/LithosAnanke/v4/build/inference-64.o /home/user/LithosAnanke/v4/src/manage.c /home/user/LithosAnanke/v4/src/place.c /home/user/LithosAnanke/v4/src/artifact.c /home/user/LithosAnanke/v4/src/effect.c /home/user/LithosAnanke/v4/build/mesh-rom-64.c /home/user/LithosAnanke/v4/build/rom-64.c /home/user/LithosAnanke/v4/build/v4_map_64.c /home/user/LithosAnanke/v4/build/capsule_generated.c /home/user/LithosAnanke/v4/src/node.c /home/user/LithosAnanke/v4/src/exec.c /home/user/LithosAnanke/v4/src/stack.c /home/user/LithosAnanke/v4/src/iword.c /home/user/LithosAnanke/v4/src/heat.c /home/user/LithosAnanke/v4/src/guard.c /home/user/LithosAnanke/v4/src/image.c /home/user/LithosAnanke/v4/src/fabric.c /home/user/LithosAnanke/v4/src/capsule.c /home/user/LithosAnanke/v4/src/message.c /home/user/LithosAnanke/v4/src/wire.c /home/user/LithosAnanke/v4/system/boot.c /home/user/LithosAnanke/v4/system/post.c /home/user/LithosAnanke/v4/system/post_cases.c /home/user/LithosAnanke/kernel/src/capsule/capsule_find.c /home/user/LithosAnanke/kernel/src/capsule/capsule_validate.c /home/user/LithosAnanke/kernel/src/capsule/capsule_sig.c /home/user/LithosAnanke/kernel/src/capsule/capsule_blocks.c /home/user/LithosAnanke/kernel/src/hash/xxhash64.c /home/user/LithosAnanke/kernel/src/crypto/x509_ed25519.c /home/user/LithosAnanke/kernel/src/crypto/ed25519.c /home/user/LithosAnanke/kernel/src/crypto/fe25519.c /home/user/LithosAnanke/kernel/src/crypto/scalar25519.c /home/user/LithosAnanke/kernel/src/crypto/sha512.c /home/user/LithosAnanke/v4/build/v3o-mesh/*.o -o /home/user/LithosAnanke/v4/build/test_mesh_boot + [mesh boot, V4_CELL_BITS=64] +v4 mesh boot: V4_CELL_BITS=64 + PARITY:V4_POST tests=990 pass=990 fail=0 + 142 checks, 0 failures +exit 0 diff --git a/logs/20261120-task9/l8card-before.txt b/logs/20261120-task9/l8card-before.txt new file mode 100644 index 00000000..ae2a8df6 --- /dev/null +++ b/logs/20261120-task9/l8card-before.txt @@ -0,0 +1,93 @@ +/home/user/LithosAnanke/v4/build/mkcapsule /home/user/LithosAnanke/capsules /home/user/LithosAnanke/v4/build/capsule_generated.c +mkcapsule: scanning /home/user/LithosAnanke/capsules + [p] zuse.4th (1684 bytes, hash=0x490ded9be257a90b) + [p] font.4th (17688 bytes, hash=0x3f305911500c78f6) + [p] MANIFEST_AUTO.md (11687 bytes, hash=0xe022545a0755960f) + [p] multiuser-doe.4th (3942 bytes, hash=0x22140588ee7c39e6) + [p] hestia:init.4th (891 bytes, hash=0x64e111990fbc45ff) + [p] contrib:README.md (1855 bytes, hash=0x4212e52b927793e7) + [p] ACL.4th (4318 bytes, hash=0xf8890c05c0d8f921) + [p] workload-3.4th (2189 bytes, hash=0x62b7a71576ad1041) + [p] init-l8-diverse.4th (430 bytes, hash=0xaa293201a6c91838) + [p] user-font-demo.4th (1674 bytes, hash=0xce1fd7d1b581a56d) + [p] workload-9.4th (1321 bytes, hash=0x3f2bec73142aa424) + [p] lib.4th (619 bytes, hash=0x4b216635c359ef73) + [p] workload-calib1.4th (304 bytes, hash=0x3b9f2d17b554fabc) + [m] init.4th (669 bytes, hash=0xd09db9461b336431) + [p] workload-1-lite.4th (540 bytes, hash=0x44a7a7e3176dcc8d) + [p] init-l8-stable.4th (278 bytes, hash=0xdc3830f189063a9a) + [p] v4:physics.4th (2953 bytes, hash=0x5b0195fc30828bde) + [p] v4:forth79.4th (1216 bytes, hash=0x4609d6ef54166ef8) + [p] v4:ACL.4th (2103 bytes, hash=0xdba5690fb0ee12a4) + [p] v4:init.4th (756 bytes, hash=0x13fe8932fa4d2934) + [p] v4:sys:log.f18 (4535 bytes, hash=0x544cd004233dff62) + [p] v4:sys:qmath.f18 (8607 bytes, hash=0xa93783c2c8f9b7db) + [p] v4:sys:map-32.f18 (3215 bytes, hash=0x17ad313814d028ff) + [p] v4:sys:blocks.f18 (6112 bytes, hash=0x09d361dbe6174236) + [p] v4:sys:input.f18 (10692 bytes, hash=0x0f13c3f9d5fd07fc) + [p] v4:sys:dict.f18 (13816 bytes, hash=0xe3453808afd5a0af) + [p] v4:sys:forth.f18 (12617 bytes, hash=0xc4c0ad315c95eda4) + [p] v4:sys:quit.f18 (32141 bytes, hash=0x7fa7a7668b6bf1ed) + [p] v4:sys:map-64.f18 (3254 bytes, hash=0x81bda2bfcf496f6a) + [p] v4:sys:codegen.f18 (4999 bytes, hash=0x36d2ae84d2911b90) + [p] v4:sys:acl.f18 (5303 bytes, hash=0x5ceb5b43b0c5fbb1) + [p] v4:sys:core.f18 (24370 bytes, hash=0x0f415502fccc3fba) + [p] v4:sys:system.f18 (10189 bytes, hash=0xfe257eb084c43a5d) + [p] v4:sys:numout.f18 (6641 bytes, hash=0xca0fb0f9c1589e20) + [p] v4:sys:words.f18 (9642 bytes, hash=0x2f4e5f7f3e7f736f) + [p] v4:sys:compile.f18 (23381 bytes, hash=0xbef95acf00cb404a) + [p] v4:sys:end.f18 (1604 bytes, hash=0x22eea18b132f8faf) + [p] v4:starshipos.4th (706 bytes, hash=0x1734a8f4fe7483a5) + [p] v4:hera.4th (1376 bytes, hash=0x78730b1d6effe892) + [p] v4:rom:sym.f18 (5610 bytes, hash=0xbbad5748f5bbf863) + [p] v4:rom:main.f18 (2284 bytes, hash=0x6994f1f1d567e163) + [p] v4:rom:math.f18 (5108 bytes, hash=0x9be63ad87934622f) + [p] v4:rom:dir.f18 (5112 bytes, hash=0x51b069f0623ded16) + [p] v4:rom:num.f18 (2634 bytes, hash=0x08b76f1b058cac17) + [p] v4:rom:pack.f18 (4583 bytes, hash=0x65a944d8eb7de7f2) + [p] v4:rom:word.f18 (12966 bytes, hash=0x9210d6c2ac424d11) + [p] v4:rom:in.f18 (4230 bytes, hash=0x65798bed38a09f0f) + [p] v4:rom:mesh.f18 (449 bytes, hash=0x83723d76b9620c2c) + [p] v4:centre.4th (4140 bytes, hash=0x53b1e3df644e8e25) + [p] README.md (2305 bytes, hash=0x09a684ebdfbeb01c) + [p] block-acl.4th (980 bytes, hash=0xf6cc2a59e3a6734e) + [p] sdk.4th (2295 bytes, hash=0x008fdbbb62c94a3a) + [p] pki:starshipos-intermediate.der (408 bytes, hash=0xb40aab540c19f877) + [p] init-l8-omni.4th (1986 bytes, hash=0x5979e314d6452045) + [p] acl-std79.4th (5040 bytes, hash=0x773bf9209df191d1) + [p] doe-campaign.4th (2369 bytes, hash=0x26fb485e5c9dc6ff) + [p] init-l8-volatile.4th (718 bytes, hash=0x98caabbbd92abac4) + [p] doe.4th (3244 bytes, hash=0xf154616d248e861f) + [p] fabric.4th (10359 bytes, hash=0x9d9489cbeca4099b) + [p] workload-4.4th (469 bytes, hash=0x099619264e650b1c) + [p] init-l8-temporal.4th (363 bytes, hash=0x51abd4c138246651) + [p] workload-5.4th (480 bytes, hash=0x526964c7c9506a11) + [p] fonts:README.md (1846 bytes, hash=0xf628c2b7a49f4d46) + [p] fonts:JetBrainsMono-Regular.ttf (270224 bytes, hash=0xf4b7077dab274e6b) + [p] init-l8-transition.4th (529 bytes, hash=0xbcc1a81976f0a4c9) + [p] workload-2.4th (1321 bytes, hash=0xf113b3d0bcccae47) + [p] workload-1.4th (1041 bytes, hash=0x63e251adb0a03613) + [p] workload-5-lite.4th (468 bytes, hash=0xea0303f38824f254) + [p] workload-0.4th (290 bytes, hash=0x93f86f60aeba8feb) + [p] artemis:init.4th (16782 bytes, hash=0x7ba120e2a6aab239) + [p] MANIFEST.md (35813 bytes, hash=0x9d3a6fdb7415d224) + [p] workload-7.4th (206 bytes, hash=0x02862291387eb7ac) + [p] BLOCK_MAP.md (23272 bytes, hash=0x581b8bf06779c914) + [p] turtle.4th (3254 bytes, hash=0x4d470418ca543365) + [p] workload-8.4th (172 bytes, hash=0x56b7f2f0efa000df) + [p] workload-6.4th (1986 bytes, hash=0x06fc0ce1e369ef5a) +mkcapsule: 76 capsule(s) collected +mkcapsule: wrote /home/user/LithosAnanke/v4/build/capsule_generated.c +cc -std=c99 -Wall -Wextra -Wpedantic -Werror -O2 -g -D_POSIX_C_SOURCE=200809L -I/home/user/LithosAnanke/v4/include -isystem /home/user/LithosAnanke/v3/include -isystem /home/user/LithosAnanke/kernel/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -DTRAIN_F18A='"/home/user/LithosAnanke/v4/build/train-place-64.f18a"' -c /home/user/LithosAnanke/v4/tests/test_mesh_boot.c -o /home/user/LithosAnanke/v4/build/test_mesh_boot.o +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v4/system/mesh.c -o /home/user/LithosAnanke/v4/build/mesh-64.o +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v4/system/inference.c -o /home/user/LithosAnanke/v4/build/inference-64.o +cd /home/user/LithosAnanke/v4/build/v3o-mesh && cc -std=gnu99 -Wall -O2 -g -I/home/user/LithosAnanke/v3/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v4/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v3/src/block_subsystem.c /home/user/LithosAnanke/v3/src/blkio_ram.c /home/user/LithosAnanke/v3/src/blkio_file.c /home/user/LithosAnanke/v3/src/log.c /home/user/LithosAnanke/v3/src/platform/platform_init.c /home/user/LithosAnanke/v3/src/platform/linux/time.c /home/user/LithosAnanke/v4/system/blocks.c +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 /home/user/LithosAnanke/v4/build/test_mesh_boot.o /home/user/LithosAnanke/v4/build/mesh-64.o /home/user/LithosAnanke/v4/build/inference-64.o /home/user/LithosAnanke/v4/src/manage.c /home/user/LithosAnanke/v4/src/place.c /home/user/LithosAnanke/v4/src/artifact.c /home/user/LithosAnanke/v4/src/effect.c /home/user/LithosAnanke/v4/build/mesh-rom-64.c /home/user/LithosAnanke/v4/build/rom-64.c /home/user/LithosAnanke/v4/build/v4_map_64.c /home/user/LithosAnanke/v4/build/capsule_generated.c /home/user/LithosAnanke/v4/src/node.c /home/user/LithosAnanke/v4/src/exec.c /home/user/LithosAnanke/v4/src/stack.c /home/user/LithosAnanke/v4/src/iword.c /home/user/LithosAnanke/v4/src/heat.c /home/user/LithosAnanke/v4/src/guard.c /home/user/LithosAnanke/v4/src/image.c /home/user/LithosAnanke/v4/src/fabric.c /home/user/LithosAnanke/v4/src/capsule.c /home/user/LithosAnanke/v4/src/message.c /home/user/LithosAnanke/v4/src/wire.c /home/user/LithosAnanke/v4/system/boot.c /home/user/LithosAnanke/v4/system/post.c /home/user/LithosAnanke/v4/system/post_cases.c /home/user/LithosAnanke/kernel/src/capsule/capsule_find.c /home/user/LithosAnanke/kernel/src/capsule/capsule_validate.c /home/user/LithosAnanke/kernel/src/capsule/capsule_sig.c /home/user/LithosAnanke/kernel/src/capsule/capsule_blocks.c /home/user/LithosAnanke/kernel/src/hash/xxhash64.c /home/user/LithosAnanke/kernel/src/crypto/x509_ed25519.c /home/user/LithosAnanke/kernel/src/crypto/ed25519.c /home/user/LithosAnanke/kernel/src/crypto/fe25519.c /home/user/LithosAnanke/kernel/src/crypto/scalar25519.c /home/user/LithosAnanke/kernel/src/crypto/sha512.c /home/user/LithosAnanke/v4/build/v3o-mesh/*.o -o /home/user/LithosAnanke/v4/build/test_mesh_boot + [mesh boot, V4_CELL_BITS=64] +v4 mesh boot: V4_CELL_BITS=64 + PARITY:V4_POST tests=990 pass=990 fail=0 +FAIL /home/user/LithosAnanke/v4/tests/test_mesh_boot.c:360: L8-CARD@ leaves the card and its changes, more than 0: "UNKNOWN WORD: 'L8-CARD@' +", the kernel's "8 7 " + 142 checks, 1 failures +make: *** [Makefile:406: mesh-boot] Error 1 +exit 2 diff --git a/logs/20261120-task9/l8card-post.txt b/logs/20261120-task9/l8card-post.txt new file mode 100644 index 00000000..a7128437 --- /dev/null +++ b/logs/20261120-task9/l8card-post.txt @@ -0,0 +1,10 @@ +cc -std=c99 -Wall -Wextra -Wpedantic -Werror -O2 -g -D_POSIX_C_SOURCE=200809L -I/home/user/LithosAnanke/v4/include -isystem /home/user/LithosAnanke/v3/include -isystem /home/user/LithosAnanke/kernel/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -DTRAIN_F18A='"/home/user/LithosAnanke/v4/build/train-place-64.f18a"' -c /home/user/LithosAnanke/v4/tests/test_mesh_boot.c -o /home/user/LithosAnanke/v4/build/test_mesh_boot.o +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v4/system/mesh.c -o /home/user/LithosAnanke/v4/build/mesh-64.o +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v4/system/inference.c -o /home/user/LithosAnanke/v4/build/inference-64.o +cd /home/user/LithosAnanke/v4/build/v3o-mesh && cc -std=gnu99 -Wall -O2 -g -I/home/user/LithosAnanke/v3/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v4/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 -c /home/user/LithosAnanke/v3/src/block_subsystem.c /home/user/LithosAnanke/v3/src/blkio_ram.c /home/user/LithosAnanke/v3/src/blkio_file.c /home/user/LithosAnanke/v3/src/log.c /home/user/LithosAnanke/v3/src/platform/platform_init.c /home/user/LithosAnanke/v3/src/platform/linux/time.c /home/user/LithosAnanke/v4/system/blocks.c +cc -std=c99 -Wall -Wextra -O2 -g -I/home/user/LithosAnanke/v4/include -I/home/user/LithosAnanke/kernel/include -I/home/user/LithosAnanke/v3/include -DV4_CELL_BITS=64 -DV4_NODE_WORDS=32768 -DV4_DATA_RING=1022 -DV4_RET_RING=31 -DV4_ROM_WORDS=4096 /home/user/LithosAnanke/v4/build/test_mesh_boot.o /home/user/LithosAnanke/v4/build/mesh-64.o /home/user/LithosAnanke/v4/build/inference-64.o /home/user/LithosAnanke/v4/src/manage.c /home/user/LithosAnanke/v4/src/place.c /home/user/LithosAnanke/v4/src/artifact.c /home/user/LithosAnanke/v4/src/effect.c /home/user/LithosAnanke/v4/build/mesh-rom-64.c /home/user/LithosAnanke/v4/build/rom-64.c /home/user/LithosAnanke/v4/build/v4_map_64.c /home/user/LithosAnanke/v4/build/capsule_generated.c /home/user/LithosAnanke/v4/src/node.c /home/user/LithosAnanke/v4/src/exec.c /home/user/LithosAnanke/v4/src/stack.c /home/user/LithosAnanke/v4/src/iword.c /home/user/LithosAnanke/v4/src/heat.c /home/user/LithosAnanke/v4/src/guard.c /home/user/LithosAnanke/v4/src/image.c /home/user/LithosAnanke/v4/src/fabric.c /home/user/LithosAnanke/v4/src/capsule.c /home/user/LithosAnanke/v4/src/message.c /home/user/LithosAnanke/v4/src/wire.c /home/user/LithosAnanke/v4/system/boot.c /home/user/LithosAnanke/v4/system/post.c /home/user/LithosAnanke/v4/system/post_cases.c /home/user/LithosAnanke/kernel/src/capsule/capsule_find.c /home/user/LithosAnanke/kernel/src/capsule/capsule_validate.c /home/user/LithosAnanke/kernel/src/capsule/capsule_sig.c /home/user/LithosAnanke/kernel/src/capsule/capsule_blocks.c /home/user/LithosAnanke/kernel/src/hash/xxhash64.c /home/user/LithosAnanke/kernel/src/crypto/x509_ed25519.c /home/user/LithosAnanke/kernel/src/crypto/ed25519.c /home/user/LithosAnanke/kernel/src/crypto/fe25519.c /home/user/LithosAnanke/kernel/src/crypto/scalar25519.c /home/user/LithosAnanke/kernel/src/crypto/sha512.c /home/user/LithosAnanke/v4/build/v3o-mesh/*.o -o /home/user/LithosAnanke/v4/build/test_mesh_boot + [mesh boot, V4_CELL_BITS=64] +v4 mesh boot: V4_CELL_BITS=64 + PARITY:V4_POST tests=991 pass=991 fail=0 + 142 checks, 0 failures +exit 0 diff --git a/logs/20261120-task9/post79.txt b/logs/20261120-task9/post79.txt new file mode 100644 index 00000000..083c837d --- /dev/null +++ b/logs/20261120-task9/post79.txt @@ -0,0 +1,87 @@ +make: Entering directory '/home/user/LithosAnanke/v4' +make --no-print-directory -C /home/user/LithosAnanke -f v3/Makefile build/amd64/standard/starforth +Generating version header... + CC v3/src/cli.c + CC v3/src/main.c + CC v3/src/word_source/starforth_words.c +🔗 Linking build/amd64/standard/starforth... +gcc -std=c99 -Wall -Werror -Iv3/include -Ikernel/include -Iv3/src/word_source -Iv3/src/test_runner/include -DSTRICT_PTR=1 -DENABLE_HOTWORDS_CACHE=0 -DENABLE_PIPELINING=0 -DROLLING_WINDOW_SIZE=4096 -DTRANSITION_WINDOW_SIZE=8 -DSPECULATION_THRESHOLD_Q48=0x8000 -DSPECULATION_DEPTH=1 -DMIN_SAMPLES_FOR_SPECULATION=10 -DMISPREDICTION_COST_Q48=0x190000 -DMINIMUM_PREFETCH_ROI=0x1199A -DADAPTIVE_SHRINK_RATE=50 -DADAPTIVE_MIN_WINDOW_SIZE=256 -DADAPTIVE_CHECK_FREQUENCY=512 -DADAPTIVE_GROWTH_THRESHOLD=5 -DINITIAL_DECAY_SLOPE_Q48=21845 -DDECAY_RATE_PER_US_Q16=1 -DHEARTBEAT_THREAD_ENABLED=1 -DHEARTBEAT_TICK_NS=10000 -DHEARTBEAT_INFERENCE_FREQUENCY=1000 -DHEARTBEAT_CHECK_FREQUENCY=256 -DHEARTBEAT_WINDOW_TUNING_FREQUENCY=1000 -DHEARTBEAT_SLOPE_VALIDATION_FREQUENCY=5000 -DEMERGENCY_CONSOLE_ENABLED=1 -DSSM_ENTROPY_HIGH_THRESHOLD=0.75 -DSSM_CV_HIGH_THRESHOLD=0.15 -DSSM_TEMPORAL_DECAY_THRESHOLD=0.5 -DSSM_TEMPORAL_DECAY_LOW_THRESHOLD=0.3 -DSSM_HYSTERESIS_TICKS=5 -pthread -march=native -DARCH_X86_64=1 -O2 -flto=auto -fuse-linker-plugin -DNDEBUG -DUSE_ASM_OPT=1 -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-strict-aliasing -o build/amd64/standard/starforth build/amd64/standard/blkio_factory.o build/amd64/standard/blkio_file.o build/amd64/standard/blkio_ram.o build/amd64/standard/block_subsystem.o build/amd64/standard/cli.o build/amd64/standard/compudynamics.o build/amd64/standard/dictionary_heat_optimization.o build/amd64/standard/dictionary_management.o build/amd64/standard/doe_metrics.o build/amd64/standard/heartbeat_export.o build/amd64/standard/inference_engine.o build/amd64/standard/io.o build/amd64/standard/log.o build/amd64/standard/main.o build/amd64/standard/math_portable.o build/amd64/standard/memory_management.o build/amd64/standard/physics_execution_hooks.o build/amd64/standard/physics_hotwords_cache.o build/amd64/standard/physics_metadata.o build/amd64/standard/physics_pipelining_metrics.o build/amd64/standard/physics_runtime.o build/amd64/standard/profiler.o build/amd64/standard/repl.o build/amd64/standard/rolling_window_of_truth.o build/amd64/standard/ssm_jacquard.o build/amd64/standard/stack_management.o build/amd64/standard/vm.o build/amd64/standard/vm_api.o build/amd64/standard/vm_bootstrap.o build/amd64/standard/vm_debug.o build/amd64/standard/vm_time.o build/amd64/standard/word_registry.o build/amd64/standard/word_source/acl_words.o build/amd64/standard/word_source/arithmetic_words.o build/amd64/standard/word_source/block_words.o build/amd64/standard/word_source/control_words.o build/amd64/standard/word_source/defer_words.o build/amd64/standard/word_source/defining_words.o build/amd64/standard/word_source/dictionary_heat_diagnostic_words.o build/amd64/standard/word_source/dictionary_manipulation_words.o build/amd64/standard/word_source/dictionary_words.o build/amd64/standard/word_source/double_words.o build/amd64/standard/word_source/editor_words.o build/amd64/standard/word_source/format_words.o build/amd64/standard/word_source/framebuffer_words.o build/amd64/standard/word_source/inference_words.o build/amd64/standard/word_source/io_words.o build/amd64/standard/word_source/keyboard_words.o build/amd64/standard/word_source/lifecycle_words_hosted.o build/amd64/standard/word_source/log_words.o build/amd64/standard/word_source/logical_words.o build/amd64/standard/word_source/memory_words.o build/amd64/standard/word_source/mixed_arithmetic_words.o build/amd64/standard/word_source/physics_benchmark_words.o build/amd64/standard/word_source/physics_diagnostic_words.o build/amd64/standard/word_source/physics_freeze_words.o build/amd64/standard/word_source/physics_pipelining_diagnostic_words.o build/amd64/standard/word_source/q48_16_words.o build/amd64/standard/word_source/q48_words.o build/amd64/standard/word_source/return_stack_words.o build/amd64/standard/word_source/scroll_words.o build/amd64/standard/word_source/stack_words.o build/amd64/standard/word_source/starforth_words.o build/amd64/standard/word_source/string_words.o build/amd64/standard/word_source/system_words.o build/amd64/standard/word_source/ttf_words.o build/amd64/standard/word_source/vocabulary_words.o build/amd64/standard/test_runner/test_common.o build/amd64/standard/test_runner/test_contracts.o build/amd64/standard/test_runner/test_runner.o build/amd64/standard/test_runner/modules/acl_words_test.o build/amd64/standard/test_runner/modules/arithmetic_words_test.o build/amd64/standard/test_runner/modules/block_words_test.o build/amd64/standard/test_runner/modules/break_me_tests.o build/amd64/standard/test_runner/modules/control_words_test.o build/amd64/standard/test_runner/modules/defining_words_tests.o build/amd64/standard/test_runner/modules/dictionary_manipulation_words_test.o build/amd64/standard/test_runner/modules/dictionary_words_test.o build/amd64/standard/test_runner/modules/double_words_test.o build/amd64/standard/test_runner/modules/format_words_test.o build/amd64/standard/test_runner/modules/inference_words_test.o build/amd64/standard/test_runner/modules/integration_tests.o build/amd64/standard/test_runner/modules/io_words_test.o build/amd64/standard/test_runner/modules/logical_words_test.o build/amd64/standard/test_runner/modules/mama_forth_words_test.o build/amd64/standard/test_runner/modules/memory_words_test.o build/amd64/standard/test_runner/modules/mixed_arithmetic_words_test.o build/amd64/standard/test_runner/modules/physics_freeze_words_test.o build/amd64/standard/test_runner/modules/q48_words_test.o build/amd64/standard/test_runner/modules/return_stack_words_test.o build/amd64/standard/test_runner/modules/stack_words_test.o build/amd64/standard/test_runner/modules/starforth_words_test.o build/amd64/standard/test_runner/modules/stress_tests.o build/amd64/standard/test_runner/modules/string_words_test.o build/amd64/standard/test_runner/modules/system_words_test.o build/amd64/standard/test_runner/modules/vocabulary_words_test.o build/amd64/standard/platform/linux/time.o build/amd64/standard/platform/linux/io.o build/amd64/standard/platform/platform_init.o build/amd64/standard/platform/threading.o build/amd64/standard/platform/alloc_host.o -Wl,--gc-sections -s -flto=auto -fuse-linker-plugin -static -pthread +python3 /home/user/LithosAnanke/v4/tools/mkpost.py --all --v3 /home/user/LithosAnanke/build/amd64/standard/starforth +POST cases: 991, in v4/system/post_cases.c + from v3 unchanged: 783 + from v3, address-dependent (post79_rules.ADDRESS): 20 + rewritten or dropped for FORTH-79 (post79_rules.STANDARD): 196, of which dropped 37 + written by hand (post79_rules.EXTRA): 29 +Required words with at least one case: 260 of 130 +Required words with no case: KEY EXPECT QUERY QUIT + +Left out (52): + EXPECT.zero_length reads the keyboard + EXPECT.one_item reads the keyboard + EXPECT.empty_stack reads the keyboard + FORGET.nonexistent forgets a word of the system + FORGET.protected forgets a word of the system + CONTEXT.modify damages the system on purpose + CURRENT.protect damages the system on purpose + QUIT.in_definition v3 did not get through it in one session + :.nested v3 did not get through it in one session + ].basic v3 did not get through it in one session + ['].not_found v3 did not get through it in one session + ELSE.double v3 did not get through it in one session + THEN.extra v3 did not get through it in one session + DATA_STRUCTURES.linked_list v3 did not get through it in one session + ALGORITHMS.gcd v3 did not get through it in one session + C!.basic OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + C!.zero OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + C!.high_byte OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + C!.truncation OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + C@.after_cstore OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + C@.zero_byte OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + FILL.basic OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + FILL.zero_byte OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + DABS.one_item ANS Forth 8.6.1.1160 DABS / 8.6.1.1220 DMIN: given too few values, stack underflow is an ambiguous condition (ANS 4.1.2); no standard asks for an error. + DMIN.three_items ANS Forth 8.6.1.1160 DABS / 8.6.1.1220 DMIN: given too few values, stack underflow is an ambiguous condition (ANS 4.1.2); no standard asks for an error. + COUNT.string_bounds OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + CMOVE.overlap OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + CMOVE.bounds moves 1000 bytes over the system; v3 refuses by a bounds rule FORTH-79 has not got + CMOVE>.bounds ANS Forth 17.6.1.0920 CMOVE> raises no error for a count past a buffer; 1000 bytes at PAD (84 bytes or more) is in v4's memory and writes over what the system keeps above PAD. v3's error is v3's own bounds check, which no standard asks for; there is nothing to expect. + TYPE.single_char OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + COUNT.zero_addr_plus_one OPEN: HERE is a cell address on v4 and this word takes a byte address (D-1): the case wrote to or read from the nucleus's code at cell HERE/4 + WORD.empty_input v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.space_delim v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.newline_delim v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.tab_delim v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.comma_delim v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.skip_leading v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.single_char v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.long_word v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.zero_delim v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.high_ascii v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.count_format v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.count_value v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + WORD.multi_delim v3's WORD does not take the next word from the input, as FORTH-79's does; see the WORD cases written by hand + THRU.negative_end FORTH-83 THRU takes block numbers, unsigned: -3 is not one (ANS 15.6.2.2280: an ambiguous condition); v3's error is its own, which no standard asks for. + PAD.usable OPEN: PAD 42 OVER ! faults on v4 -- PAD is a byte address and ! takes a cell address (D-1) + SP@.depth_effect SP@ and SP! are no standard's; no stack pointer is visible to code (DECOMPOSITION.md D-2), ruled to stand (Captain Bob, 2026-11-14: "D-2 for SP@"). + SP@.empty_stack SP@ and SP! are no standard's; no stack pointer is visible to code (DECOMPOSITION.md D-2), ruled to stand (Captain Bob, 2026-11-14: "D-2 for SP@"). + SP@.multiple_items SP@ and SP! are no standard's; no stack pointer is visible to code (DECOMPOSITION.md D-2), ruled to stand (Captain Bob, 2026-11-14: "D-2 for SP@"). + SP!.basic_restore SP@ and SP! are no standard's; no stack pointer is visible to code (DECOMPOSITION.md D-2), ruled to stand (Captain Bob, 2026-11-14: "D-2 for SP@"). + STACK_MGMT.sp_round_trip SP@ and SP! are no standard's; no stack pointer is visible to code (DECOMPOSITION.md D-2), ruled to stand (Captain Bob, 2026-11-14: "D-2 for SP@"). + STACK_MGMT.depth_preservation SP@ and SP! are no standard's; no stack pointer is visible to code (DECOMPOSITION.md D-2), ruled to stand (Captain Bob, 2026-11-14: "D-2 for SP@"). + +v3 did not do what its own table expects (14): + +!.basic v3's table says no error, v3 raised one + +!.by_zero v3's table says no error, v3 raised one + +!.negative v3's table says no error, v3 raised one + +!.accumulate v3's table says no error, v3 raised one + -!.basic v3's table says no error, v3 raised one + -!.by_zero v3's table says no error, v3 raised one + -!.negative v3's table says no error, v3 raised one + 2!.basic v3's table says no error, v3 raised one + 2!.zeros v3's table says no error, v3 raised one + 2!.negative v3's table says no error, v3 raised one + HERE.after_comma~2 v3's table says no error, v3 raised one + CREATE.long_name v3's table says error, v3 raised none + COMPLETE_PROGRAMS.array_sum v3's table says no error, v3 raised one + DATA_STRUCTURES.stack_min_max v3's table says no error, v3 raised one +make: Leaving directory '/home/user/LithosAnanke/v4' diff --git a/v4/include/v4/mesh.h b/v4/include/v4/mesh.h index 717075a2..c8c6c90d 100644 --- a/v4/include/v4/mesh.h +++ b/v4/include/v4/mesh.h @@ -76,6 +76,7 @@ #define V4_REQ_HOT_COUNT (-38) /* ( -- n ): words with heat */ #define V4_REQ_HOT_NTH (-39) /* ( i -- xt heat ): the i-th hottest, as v3's TOP-WORDS orders them; 0 0 past them */ #define V4_REQ_XT_HEAT (-40) /* ( xt -- n ): a word's heat, 0 for what is not one */ +#define V4_REQ_L8_CARD (-41) /* ( -- card changes ): L8's card on this node, and how often it has changed (Phase 7 Task 9) */ typedef struct { v4_uheat_t calls; /* every call since the word was defined */ v4_uheat_t since; /* calls since the owner last charged them */ diff --git a/v4/system/POST_FLOOR b/v4/system/POST_FLOOR index 61f84975..47f05528 100644 --- a/v4/system/POST_FLOOR +++ b/v4/system/POST_FLOOR @@ -1,3 +1,3 @@ -990 +991 # v4 POST: the fewest tests an accepted boot may report (#173). Raise it when POST grows; # never lower it without Captain Bob. scripts/nightly.sh post-count reads the first line. diff --git a/v4/system/mesh.c b/v4/system/mesh.c index 6b762b7a..4d0352be 100644 --- a/v4/system/mesh.c +++ b/v4/system/mesh.c @@ -986,7 +986,13 @@ static int physics_serve(unsigned place, v4_node *n, v4_cell value) v4_cell u, a, xt; v4_mesh_account *r; const uint64_t *d; - if (value > V4_REQ_FREEZE_WORD || value < V4_REQ_XT_HEAT) return 0; + if (value > V4_REQ_FREEZE_WORD || value < V4_REQ_L8_CARD) return 0; + if (value == V4_REQ_L8_CARD) { /* ( -- card changes ), for acceptance (Task 9) */ + if (n->ds.depth + 2u > V4_DATA_DEPTH) return 0; + v4_dstack_push(&n->ds, p ? (v4_cell)p->l8.current_card : 0); + v4_dstack_push(&n->ds, p ? (v4_cell)p->l8.changes : 0); + return 1; + } if (value <= V4_REQ_ENTROPY_FETCH) return entropy_serve(place, n, value); switch (value) { case V4_REQ_FREEZE_WORD: case V4_REQ_UNFREEZE_WORD: case V4_REQ_FROZEN: case V4_REQ_HEAT_FETCH: case V4_REQ_HEAT_STORE: diff --git a/v4/system/post_cases.c b/v4/system/post_cases.c index 729d13c9..a74098ce 100644 --- a/v4/system/post_cases.c +++ b/v4/system/post_cases.c @@ -1020,6 +1020,7 @@ static const char *const l986[] = { ": W1 BL WORD COUNT TYPE ; W1 HELLO" }; static const char *const l987[] = { ": W2 44 WORD COUNT TYPE ; W2 A B," }; static const char *const l988[] = { ": W3 BL WORD C@ . ; W3 ABC" }; static const char *const l989[] = { ": W4 BL WORD COUNT TYPE ; W4 X" }; +static const char *const l990[] = { "L8-CARD@ 0< . 64 U< . CR" }; const v4_post_case v4_post_cases[] = { { "DUP.basic", l0, 1u, V4_POST_STACK | V4_POST_SUITE, 0, 0u, "5 5 \012", 5u }, @@ -2012,6 +2013,7 @@ const v4_post_case v4_post_cases[] = { { "WORD.delimiter", l987, 1u, V4_POST_STACK, 0, 0u, "A B", 3u }, { "WORD.count", l988, 1u, V4_POST_STACK, 0, 0u, "3 ", 2u }, { "WORD.skips_leading", l989, 1u, V4_POST_STACK, 0, 0u, "X", 1u }, + { "L8-CARD@.basic", l990, 1u, V4_POST_STACK | V4_POST_KERNEL | V4_POST_SUITE, 0, 0u, "0 -1 \012", 6u }, }; -const unsigned v4_post_case_count = 990u; +const unsigned v4_post_case_count = 991u; diff --git a/v4/tests/test_mesh_boot.c b/v4/tests/test_mesh_boot.c index 85478eb9..04abfc52 100644 --- a/v4/tests/test_mesh_boot.c +++ b/v4/tests/test_mesh_boot.c @@ -351,6 +351,15 @@ int main(void) && p->l7_adaptive_heartrate == 1u, "the gates are the current card's (%u), through card_bits", p->l8.current_card); CHECK(p->l1_cache == (ENABLE_HOTWORDS_CACHE && (b & 0x40u)) && p->l4_pipelining == (ENABLE_PIPELINING && (b & 0x08u)), "and L1 and L4 within the build's ceilings"); + /* L8-CARD@ ( -- card changes ), for acceptance (Phase 7 Task 9, rulings 2 and 2a): the node's card, and how + * often it has changed -- more than 0 once L8 has run, which a boot without the physics never shows */ + { + char want[64]; + r = line(V4_MESH_HERA, "L8-CARD@ . .", &how); + snprintf(want, sizeof want, "%lu %u ", (unsigned long)p->l8.changes, (unsigned)p->l8.current_card); + CHECK(how == V4_TEXT_COMPLETED && strcmp(r, want) == 0 && p->l8.changes > 0, + "L8-CARD@ leaves the card and its changes, more than 0: \"%s\", the kernel's \"%s\"", r, want); + } v4_mesh_l8_force(&ms, 0, 0u, 1); r = line(V4_MESH_HERA, ": L8T 300 0 DO 3 DUP * DROP LOOP ; L8T", &how); CHECK(p->l8.current_card == 0 && !p->l2_window && !p->l3_decay && !p->l1_cache && !p->l4_pipelining diff --git a/v4/tools/post79_rules.py b/v4/tools/post79_rules.py index 5bc12a50..744321d9 100644 --- a/v4/tools/post79_rules.py +++ b/v4/tools/post79_rules.py @@ -197,4 +197,7 @@ EXTRA = [ dict(label="WORD.delimiter", text=": W2 44 WORD COUNT TYPE ; W2 A B,", out="A B"), dict(label="WORD.count", text=": W3 BL WORD C@ . ; W3 ABC", out="3 "), dict(label="WORD.skips_leading", text=": W4 BL WORD COUNT TYPE ; W4 X", out="X"), + # v4's own, not v3's: L8's card and its changes, for acceptance (Phase 7 Task 9, ruled 2026-11-20). + # Their values come of the run; the case holds what any run has: changes not negative, the card one of 64 + dict(label="L8-CARD@.basic", text="L8-CARD@ 0< . 64 U< . CR", out="0 -1 \n"), ]