diff --git a/capsules/v4/ACL.4th b/capsules/v4/ACL.4th new file mode 100644 index 00000000..9d242357 --- /dev/null +++ b/capsules/v4/ACL.4th @@ -0,0 +1,60 @@ +Block 3984 +\ ACL.4th -- word-level access control: the policy. +\ v3's capsules/ACL.4th, as FORTH source the node compiles. +\ The capsule supplies an entry's fields and the check +\ (acl.f18, compile.f18); what is strict, how long a TTL +\ lasts and what is pinned is decided here. Loading it +\ switches access control on: its last line runs ACL-BOOT. +\ A system that does not load it has none. init.4th loads +\ it after POST (MACHINE.md 1.1: the init turns on security). +\ The xt these words take is what FIND and ['] give. +FORTH DEFINITIONS +1 CONSTANT ACL-STRICT-MODE +0 CONSTANT ACL-TTL-MODE-VAL +\ the TTL of a cold word, tuned 2026-06-15 on v3 +256 CONSTANT ACL-BASE-TTL +65535 CONSTANT ACL-MAX-TTL +--> +Block 3985 +\ ( xt -- xt ) for symmetry: the xt is the entry +: ACL-ENTRY ; +: ACL-STRICT ( xt -- ) + DUP ACL-PINNED? IF DROP EXIT THEN + ACL-STRICT-MODE SWAP ACL-MODE! ; +: ACL-TTL-MODE ( xt -- ) + DUP ACL-PINNED? IF DROP EXIT THEN + ACL-TTL-MODE-VAL SWAP ACL-MODE! ; +\ ( xt -- ttl ) a hotter word earns a longer TTL: +\ heat/4 + 256, at most 65535 +: ACL-TTL-COMPUTE + ACL-HEAT@ 4 / ACL-BASE-TTL + ACL-MAX-TTL MIN ; +--> +Block 3986 +\ ( xt -- ) what the check runs when a word's TTL is 0. +\ STRICT: allow, and leave the TTL 0 so that every use +\ comes back here. TTL: compute a TTL from the word's +\ heat; allow. +: ACL-RECHECK + DUP ACL-PINNED? IF DROP EXIT THEN + DUP ACL-MODE@ ACL-STRICT-MODE = IF + 1 OVER ACL-ALLOW! 0 OVER ACL-TTL! DROP EXIT + THEN + DUP ACL-TTL-COMPUTE OVER ACL-TTL! 1 SWAP ACL-ALLOW! ; +\ the system CA's public key; placeholders, as in v3 +0 CONSTANT ACL-CA-KEY-LO +0 CONSTANT ACL-CA-KEY-HI +--> +Block 3987 +\ ( req-hi req-lo -- allow? ) the fabric asks this word +\ whether a channel may be opened. The default approves +\ every request; a policy edits this. +: HERMES-CHANNEL-OPEN? 2DROP 1 ; +\ ( -- ) default fields on every word; the words that +\ enforce the policy pinned; the recheck switched on +: ACL-BOOT + ACL-INIT-PRIMITIVES + ['] ACL-RECHECK ACL-PIN ['] ACL-INIT-PRIMITIVES ACL-PIN + ['] ACL-RECHECK ACL-HOOK ! + LOG-INFO" ACL: active" ; +' ACL-BOOT ACL-PIN +ACL-BOOT diff --git a/capsules/v4/centre.4th b/capsules/v4/centre.4th index 7a8ad321..5fc76a2f 100644 --- a/capsules/v4/centre.4th +++ b/capsules/v4/centre.4th @@ -38,6 +38,11 @@ Block 3966 : (LINES) ( baddr u -- ) CAPSULE-OPEN 0= IF (FAIL) THEN BEGIN PAD CAPSULE-LINE DUP 0< 0= WHILE PAD SWAP (TELL) REPEAT DROP ; +( a capsule of FORTH blocks into this node: its lowest LOADed ) +: CAPSULE-INCLUDE ( baddr u -- ) + CAPSULE-OPEN 0= IF -1 NODE-ERROR ! EXIT THEN + PAD CAPSULE-LINE 0< IF EXIT THEN + 0 0 PAD 1- CONVERT DROP DROP LOAD ; --> Block 3967 ( Who it is, where its printing goes, which of its ports ) diff --git a/capsules/v4/init.4th b/capsules/v4/init.4th new file mode 100644 index 00000000..175b0e59 --- /dev/null +++ b/capsules/v4/init.4th @@ -0,0 +1,9 @@ +Block 3980 +( init.4th -- the system's init, run after POST and COLD. ) +( MACHINE.md 1.1 and 3, step 5: everything after POST is ) +( init.4th's. docs/v4.0.0/plans/2026-11-18-v4-init.md. ) +( Step 2, security on: the ACL policy, ACL.4th. ) +S" v4:ACL.4th" CAPSULE-INCLUDE +( Step 1, the search order: STARSHIPOS, then FORTH. Last, ) +( since ACL.4th ends in FORTH DEFINITIONS. ) +STARSHIPOS diff --git a/docs/reference/v4-dictionary.tsv b/docs/reference/v4-dictionary.tsv index 2c8df8d0..226743ab 100644 --- a/docs/reference/v4-dictionary.tsv +++ b/docs/reference/v4-dictionary.tsv @@ -389,6 +389,7 @@ BIRTH-AS ( number port childport baddr u -- place ) BIRTH, and given the capsule CAPSULE-CELL ( -- w flag ) The next cell of the capsule of F18 code this node has open, and true; 0 0 at its end. A kernel request. CAPSULE-LINE ( baddr -- u | -1 ) The next line of the capsule of FORTH blocks this node has open, copied to baddr: its length, or -1 at its end. A kernel request. CAPSULE-OPEN ( baddr u -- flag ) Find the named capsule, check its hash and signature, and open it to be read from its start by this node. A kernel request. +CAPSULE-INCLUDE ( baddr u -- ) Load the named capsule of FORTH blocks into this node: CAPSULE-OPEN places its blocks in RAM, block n at n - R, and its lowest block is LOADed; what runs after it is the capsule's own (-->, LOAD, THRU). init.4th loads the ACL policy so. centre.4th. CENTRE ( n -- ) Hera only: a second centre, node n, from its port 6 to Hera's port 6, given centre.4th; it births its own unit, n+1 to n+4. KILL ( n -- ) Hera only: node n is removed, whatever it was doing; every node is told it is gone, and Hera forgets the way to it. NODE-BORN ( number -- place | -1 ) A node is born, empty, and entered in the registry with this node as its parent: its place, or -1 if there is no room. A kernel request. diff --git a/docs/v4.0.0/plans/2026-11-18-v4-init.md b/docs/v4.0.0/plans/2026-11-18-v4-init.md index 3fcbfecf..4fda1728 100644 --- a/docs/v4.0.0/plans/2026-11-18-v4-init.md +++ b/docs/v4.0.0/plans/2026-11-18-v4-init.md @@ -88,3 +88,37 @@ the system capsules. It is the only boot policy, so the loader's one fixed step It may also change what `init.4th` is: a capsule, or not. **Nothing of this design is built until that conversation.** + +## 7. Steps 1 and 2 built (2026-11-19) + +**Ruled:** "ACL at boot", first of the new work after `v4.0.0-alpha.5`. The policy loads "From +init.4th", so `init.4th` comes off hold. The include is to be "Compose[d] in FORTH". Capsules are +ephemeral and placed by block (`2026-11-18-capsule-blocks.md`), which settles the hold. + +**What is built:** +- **`capsules/v4/init.4th`**, at block 3980, so it lands at RAM 1932. It runs + `S" v4:ACL.4th" CAPSULE-INCLUDE` (security on), then `STARSHIPOS` (the search order). The order is + last-first because `ACL.4th` ends in `FORTH DEFINITIONS`. +- **`capsules/v4/ACL.4th`**: the policy, `git mv`ed from `v4/capsule/ACL.fth`. It is reflowed into + four 64×16 blocks chained with `-->` (3984–3987, landing at 1936), and its text is unchanged. +- **`CAPSULE-INCLUDE ( baddr u -- )`** in `centre.4th`, composed from `CAPSULE-OPEN` and + `CAPSULE-LINE`: the capsule is placed, and its lowest block is `LOAD`ed. It has a dictionary entry. +- **The mesh loads `v4:init.4th` after POST and `COLD`,** after the `PARITY:V4_SYSTEM` line, so that + line's `dict_hash` stays the sealed system's. This is the loader's one fixed step there. +- **`test_host_quit`** types `ACL.4th` as it types any capsule, skipping its `Block` and `-->` lines. + +**Test first** (`logs/20261119-init-acl/`): +- `test_mesh_boot`: `init.4th`'s parity line; `DOE` found without naming `STARSHIPOS`; `ACL-BOOT` + and `ACL-RECHECK` pinned. The before-run failed. +- One false pass was found and corrected on the way. The two checks had first been placed after the + test's own `COLD`, where the search-order check passed only because the line before it named + `STARSHIPOS`. They now run straight after the boot. + +**Results:** +- 113 checks pass, with POST 990/990. +- All 52 tests at 64 bits, test-32 and ASan/UBSan pass. +- The dictionary gate passes with 405 words. +- One amd64 kernel session passes 18/18, with "ACL: active" at boot. + +**Still open, one at a time:** `BIRTH` pinned; the countdown "at call"; `CAPSULE-BIRTH`; births by +`init.4th`; the identity gate and the prompt moving from C into `init.4th`. diff --git a/logs/20261119-init-acl/amd64-session.txt b/logs/20261119-init-acl/amd64-session.txt new file mode 100644 index 00000000..eaaf1aa0 --- /dev/null +++ b/logs/20261119-init-acl/amd64-session.txt @@ -0,0 +1,20 @@ +LOG: logs/20261119-115325/amd64/qemu-amd64-20261119-115325.log +PASS: POST: PASSED +PASS: Boot disk: not a StarshipOS stick (an ISO or ESP boot) +PASS: Zuse: genesis minted onto attached thumbdrive (a fresh data stick) +PASS: the Stadium: its cells allocated +PASS: the Stadium: conservation CONSERVED +PASS: the heartbeat: ticking +PASS: the Stadium: Hera's words admitted after POST +PASS: [zuse@Hera] ok> +PASS: 7 ok, and a prompt +PASS: NODE-ME: Hera is at place 0 of the kernel's fabric +PASS: BIRTH: node 11 born from Hera, its parity recorded +PASS: node 11 answers Hera: 42, and its text completed +PASS: KILL: node 11 removed, the Stadium CONSERVED after +PASS: after a kill, 11 is born again +PASS: node 11 is given SPIN +PASS: Hera's line ends, though node 11 runs for ever +PASS: and the prompt answers while it runs: 7 ok +PASS: a node running for ever is killed, the Stadium CONSERVED after +RESULT: PASS diff --git a/logs/20261119-init-acl/build-amd64.log b/logs/20261119-init-acl/build-amd64.log new file mode 100644 index 00000000..e0b0379a --- /dev/null +++ b/logs/20261119-init-acl/build-amd64.log @@ -0,0 +1,265 @@ + V4ROM capsules/v4/rom -> build/amd64/kernel/v4_rom_64.c build/amd64/kernel/v4_map_64.c build/amd64/kernel/v4_mesh_rom_64.c +CC (loader) v4/system/mesh.c +CC (kernel) v3/src/blkio_ram.c +CC (kernel) v3/src/block_subsystem.c +CC (kernel) v3/src/compudynamics.c +CC (kernel) v3/src/dictionary_heat_optimization.c +CC (kernel) v3/src/dictionary_management.c +CC (kernel) v3/src/heartbeat_export.c +CC (kernel) v3/src/inference_engine.c +CC (kernel) v3/src/io.c +CC (kernel) v3/src/math_portable.c +CC (kernel) v3/src/memory_management.c +CC (kernel) v3/src/physics_execution_hooks.c +CC (kernel) v3/src/physics_hotwords_cache.c +CC (kernel) v3/src/physics_metadata.c +CC (kernel) v3/src/physics_pipelining_metrics.c +CC (kernel) v3/src/physics_runtime.c +CC (kernel) v3/src/profiler.c +CC (kernel) v3/src/rolling_window_of_truth.c +CC (kernel) v3/src/ssm_jacquard.c +CC (kernel) v3/src/stack_management.c +CC (kernel) v3/src/vm_api.c +CC (kernel) v3/src/vm_debug.c +CC (kernel) v3/src/word_registry.c +CC (kernel) v3/src/word_source/acl_words.c +CC (kernel) v3/src/word_source/arithmetic_words.c +CC (kernel) v3/src/word_source/block_words.c +CC (kernel) v3/src/word_source/control_words.c +CC (kernel) v3/src/word_source/defer_words.c +CC (kernel) v3/src/word_source/defining_words.c +CC (kernel) v3/src/word_source/dictionary_heat_diagnostic_words.c +CC (kernel) v3/src/word_source/dictionary_manipulation_words.c +CC (kernel) v3/src/word_source/dictionary_words.c +CC (kernel) v3/src/word_source/double_words.c +CC (kernel) v3/src/word_source/editor_words.c +CC (kernel) v3/src/word_source/format_words.c +CC (kernel) v3/src/word_source/framebuffer_words.c +CC (kernel) v3/src/word_source/inference_words.c +CC (kernel) v3/src/word_source/io_words.c +CC (kernel) v3/src/word_source/keyboard_words.c +CC (kernel) v3/src/word_source/lifecycle_words_hosted.c +CC (kernel) v3/src/word_source/log_words.c +CC (kernel) v3/src/word_source/logical_words.c +CC (kernel) v3/src/word_source/memory_words.c +CC (kernel) v3/src/word_source/mixed_arithmetic_words.c +CC (kernel) v3/src/word_source/physics_benchmark_words.c +CC (kernel) v3/src/word_source/physics_diagnostic_words.c +CC (kernel) v3/src/word_source/physics_pipelining_diagnostic_words.c +CC (kernel) v3/src/word_source/physics_freeze_words.c +CC (kernel) v3/src/word_source/q48_words.c +CC (kernel) v3/src/word_source/return_stack_words.c +CC (kernel) v3/src/word_source/scroll_words.c +CC (kernel) v3/src/word_source/stack_words.c +CC (kernel) v3/src/word_source/starforth_words.c +CC (kernel) v3/src/word_source/string_words.c +CC (kernel) v3/src/word_source/system_words.c +CC (kernel) v3/src/word_source/ttf_words.c +CC (kernel) v3/src/word_source/vocabulary_words.c +CC (kernel) v3/src/test_runner/test_common.c +CC (kernel) v3/src/test_runner/test_contracts.c +CC (kernel) v3/src/test_runner/test_runner.c +CC (kernel) v3/src/test_runner/modules/acl_words_test.c +CC (kernel) v3/src/test_runner/modules/arithmetic_words_test.c +CC (kernel) v3/src/test_runner/modules/block_words_test.c +CC (kernel) v3/src/test_runner/modules/control_words_test.c +CC (kernel) v3/src/test_runner/modules/defining_words_tests.c +CC (kernel) v3/src/test_runner/modules/dictionary_manipulation_words_test.c +CC (kernel) v3/src/test_runner/modules/dictionary_words_test.c +CC (kernel) v3/src/test_runner/modules/double_words_test.c +CC (kernel) v3/src/test_runner/modules/format_words_test.c +CC (kernel) v3/src/test_runner/modules/inference_words_test.c +CC (kernel) v3/src/test_runner/modules/integration_tests.c +CC (kernel) v3/src/test_runner/modules/io_words_test.c +CC (kernel) v3/src/test_runner/modules/logical_words_test.c +CC (kernel) v3/src/test_runner/modules/mama_forth_words_test.c +CC (kernel) v3/src/test_runner/modules/memory_words_test.c +CC (kernel) v3/src/test_runner/modules/mixed_arithmetic_words_test.c +CC (kernel) v3/src/test_runner/modules/physics_freeze_words_test.c +CC (kernel) v3/src/test_runner/modules/q48_words_test.c +CC (kernel) v3/src/test_runner/modules/return_stack_words_test.c +CC (kernel) v3/src/test_runner/modules/stack_words_test.c +CC (kernel) v3/src/test_runner/modules/starforth_words_test.c +CC (kernel) v3/src/test_runner/modules/stress_tests.c +CC (kernel) v3/src/test_runner/modules/string_words_test.c +CC (kernel) v3/src/test_runner/modules/system_words_test.c +CC (kernel) v3/src/test_runner/modules/vocabulary_words_test.c +CC (kernel) v4/system/mesh.c + MKCAP capsules -> build/amd64/kernel/capsule_generated.c +mkcapsule: scanning 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 (425 bytes, hash=0x24af6802c576c1c1) + [p] v4:sys:log.f18 (4535 bytes, hash=0x544cd004233dff62) + [p] v4:sys:qmath.f18 (8607 bytes, hash=0xa93783c2c8f9b7db) + [p] v4:sys:map-32.f18 (3162 bytes, hash=0x5bdf8cbbebdd3c8f) + [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 (3201 bytes, hash=0x06cb44832df2b8fd) + [p] v4:sys:codegen.f18 (4999 bytes, hash=0x36d2ae84d2911b90) + [p] v4:sys:acl.f18 (4100 bytes, hash=0x76e7e746befa2733) + [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 (23099 bytes, hash=0xb46bf77ceee7245a) + [p] v4:sys:end.f18 (1452 bytes, hash=0x98fd33b1c431cfe7) + [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) +CC (loader) v3/src/blkio_ram.c + [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 (22886 bytes, hash=0x86df913cdae857c6) + [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 +CC (loader) v3/src/block_subsystem.c +CC (loader) v3/src/compudynamics.c +mkcapsule: wrote build/amd64/kernel/capsule_generated.c + MKCAP capsules -> capsules/BLOCK_MAP.md +mkcapsule: manifest written to capsules/BLOCK_MAP.md (42 capsule(s)) +CC (loader) v3/src/dictionary_heat_optimization.c +CC (loader) v3/src/dictionary_management.c +CC (loader) v3/src/heartbeat_export.c +CC (loader) v3/src/inference_engine.c +CC (loader) v3/src/io.c +CC (loader) v3/src/math_portable.c +CC (loader) v3/src/memory_management.c +CC (loader) v3/src/physics_execution_hooks.c +CC (loader) v3/src/physics_hotwords_cache.c +CC (loader) v3/src/physics_metadata.c +CC (loader) v3/src/physics_pipelining_metrics.c +CC (loader) v3/src/physics_runtime.c +CC (loader) v3/src/profiler.c +CC (loader) v3/src/rolling_window_of_truth.c +CC (loader) v3/src/ssm_jacquard.c +CC (loader) v3/src/stack_management.c +CC (loader) v3/src/vm_api.c +CC (loader) v3/src/vm_debug.c +CC (loader) v3/src/word_registry.c +CC (loader) v3/src/word_source/acl_words.c +CC (loader) v3/src/word_source/arithmetic_words.c +CC (loader) v3/src/word_source/block_words.c +CC (loader) v3/src/word_source/control_words.c +CC (loader) v3/src/word_source/defer_words.c +CC (loader) v3/src/word_source/defining_words.c +CC (loader) v3/src/word_source/dictionary_heat_diagnostic_words.c +CC (loader) v3/src/word_source/dictionary_manipulation_words.c +CC (loader) v3/src/word_source/dictionary_words.c +CC (loader) v3/src/word_source/double_words.c +CC (loader) v3/src/word_source/editor_words.c +CC (loader) v3/src/word_source/format_words.c +CC (loader) v3/src/word_source/framebuffer_words.c +CC (loader) v3/src/word_source/inference_words.c +CC (loader) v3/src/word_source/io_words.c +CC (loader) v3/src/word_source/keyboard_words.c +CC (loader) v3/src/word_source/lifecycle_words_hosted.c +CC (loader) v3/src/word_source/log_words.c +CC (loader) v3/src/word_source/logical_words.c +CC (loader) v3/src/word_source/memory_words.c +CC (loader) v3/src/word_source/mixed_arithmetic_words.c +CC (loader) v3/src/word_source/physics_benchmark_words.c +CC (loader) v3/src/word_source/physics_diagnostic_words.c +CC (loader) v3/src/word_source/physics_freeze_words.c +CC (loader) v3/src/word_source/physics_pipelining_diagnostic_words.c +CC (loader) v3/src/word_source/q48_words.c +CC (loader) v3/src/word_source/return_stack_words.c +CC (loader) v3/src/word_source/scroll_words.c +CC (loader) v3/src/word_source/stack_words.c +CC (loader) v3/src/word_source/starforth_words.c +CC (loader) v3/src/word_source/string_words.c +CC (loader) v3/src/word_source/system_words.c +CC (loader) v3/src/word_source/ttf_words.c +CC (loader) v3/src/word_source/vocabulary_words.c +CC (loader) v3/src/test_runner/test_common.c +CC (loader) v3/src/test_runner/test_contracts.c +CC (loader) v3/src/test_runner/test_runner.c +CC (loader) v3/src/test_runner/modules/acl_words_test.c +CC (loader) v3/src/test_runner/modules/arithmetic_words_test.c +CC (loader) v3/src/test_runner/modules/block_words_test.c +CC (loader) v3/src/test_runner/modules/control_words_test.c +CC (loader) v3/src/test_runner/modules/defining_words_tests.c +CC (loader) v3/src/test_runner/modules/dictionary_manipulation_words_test.c +CC (loader) v3/src/test_runner/modules/dictionary_words_test.c +CC (loader) v3/src/test_runner/modules/double_words_test.c +CC (loader) v3/src/test_runner/modules/format_words_test.c +CC (loader) v3/src/test_runner/modules/inference_words_test.c +CC (loader) v3/src/test_runner/modules/integration_tests.c +CC (loader) v3/src/test_runner/modules/io_words_test.c +CC (loader) v3/src/test_runner/modules/logical_words_test.c +CC (loader) v3/src/test_runner/modules/mama_forth_words_test.c +CC (loader) v3/src/test_runner/modules/memory_words_test.c +CC (loader) v3/src/test_runner/modules/mixed_arithmetic_words_test.c +CC (loader) v3/src/test_runner/modules/physics_freeze_words_test.c +CC (loader) v3/src/test_runner/modules/q48_words_test.c +CC (loader) v3/src/test_runner/modules/return_stack_words_test.c +CC (loader) v3/src/test_runner/modules/stack_words_test.c +CC (loader) v3/src/test_runner/modules/starforth_words_test.c +CC (loader) v3/src/test_runner/modules/stress_tests.c +CC (loader) v3/src/test_runner/modules/string_words_test.c +CC (loader) v3/src/test_runner/modules/system_words_test.c +CC (loader) v3/src/test_runner/modules/vocabulary_words_test.c + CC build/amd64/kernel/capsule_generated.c + CC (kernel) build/amd64/kernel/capsule_generated.c +LD (kernel) build/amd64/kernel/starkernel_kernel.elf +ld: warning: build/amd64/kernel/obj/kernel/arch/amd64/switch.o: missing .note.GNU-stack section implies executable stack +ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker +Kernel built: build/amd64/kernel/starkernel_kernel.elf +LD (loader PE) build/amd64/kernel/starkernel_loader.efi +Loader built: build/amd64/kernel/starkernel_loader.efi +StarKernel built successfully for amd64 + Loader: build/amd64/kernel/starkernel_loader.efi + Kernel: build/amd64/kernel/starkernel_kernel.elf +rc=0 diff --git a/logs/20261119-init-acl/dictionary.log b/logs/20261119-init-acl/dictionary.log new file mode 100644 index 00000000..7cb72f49 --- /dev/null +++ b/logs/20261119-init-acl/dictionary.log @@ -0,0 +1,6 @@ +mkdictionary: docs/reference/v4-dictionary.tsv covers all 405 live words +mkdictionary: build/docs/gen/dictionary-words.md, 405 words + PANDOC build/docs/gen/dictionary-words.md -> build/docs/gen/dictionary-words.tex + LATEXMK docs/book/dictionary.tex -> build/docs/Dictionary.pdf + PDF build/docs/Dictionary.pdf +rc=0 diff --git a/logs/20261119-init-acl/san-mesh-boot.log b/logs/20261119-init-acl/san-mesh-boot.log new file mode 100644 index 00000000..82340217 --- /dev/null +++ b/logs/20261119-init-acl/san-mesh-boot.log @@ -0,0 +1,4 @@ + [ASan+UBSan mesh boot, V4_CELL_BITS=64] +v4 mesh boot: V4_CELL_BITS=64 + PARITY:V4_POST tests=990 pass=990 fail=0 + 113 checks, 0 failures diff --git a/logs/20261119-init-acl/test-32.log b/logs/20261119-init-acl/test-32.log new file mode 100644 index 00000000..036eeff6 --- /dev/null +++ b/logs/20261119-init-acl/test-32.log @@ -0,0 +1,272 @@ + [V4_CELL_BITS=32 run-32-test_asm.c] +v4 asm tests: V4_CELL_BITS=32 + 32 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_cells.c] +v4 single-cell word tests: V4_CELL_BITS=32 + code: 99 of 1024 words + NIP headroom: data 7 below canary, return 7 below its return address + SWAP headroom: data 6 below canary, return 6 below its return address + ROT headroom: data 5 below canary, return 4 below its return address + -ROT headroom: data 5 below canary, return 5 below its return address + ?DUP headroom: data 7 below canary, return 8 below its return address + +! headroom: data 7 below canary, return 8 below its return address + -! headroom: data 7 below canary, return 8 below its return address + 2@ headroom: data 7 below canary, return 8 below its return address + 2! headroom: data 6 below canary, return 6 below its return address + - headroom: data 6 below canary, return 8 below its return address + MIN headroom: data 3 below canary, return 6 below its return address + MAX headroom: data 3 below canary, return 6 below its return address + OR headroom: data 6 below canary, return 8 below its return address + 0> headroom: data 8 below canary, return 8 below its return address + <> headroom: data 7 below canary, return 8 below its return address + < headroom: data 5 below canary, return 7 below its return address + > headroom: data 5 below canary, return 6 below its return address + <= headroom: data 5 below canary, return 6 below its return address + >= headroom: data 5 below canary, return 6 below its return address + U< headroom: data 5 below canary, return 7 below its return address + WITHIN headroom: data 3 below canary, return 5 below its return address + 21420 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_console.c] +v4 console tests: V4_CELL_BITS=32, capture 4096 characters + 312 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_dump.c] +test_dump: 15 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_exec.c] +v4 exec tests: V4_CELL_BITS=32 + 3107 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_fabric.c] +v4 fabric tests: V4_CELL_BITS=32, 8 ports to a node + 334 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_fabric_walk.c] +v4 fabric walk tests + 13 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_foundation.c] +v4 foundation tests: V4_CELL_BITS=32 + code: 949 of 1024 words + Q.+ random cases that overflow Q48.16: 2682 of 20000 + Q.> as written (SWAP D<): 11702 wrong of 20169 + (UQ/) cases run: 8687 + UM* headroom: data 5 below canary, return 6 below its return address + UM/MOD headroom: data 5 below canary, return 6 below its return address + ABS headroom: data 7 below canary, return 7 below its return address + U> headroom: data 5 below canary, return 5 below its return address + D+ headroom: data 5 below canary, return 5 below its return address + DNEGATE headroom: data 6 below canary, return 7 below its return address + DABS headroom: data 6 below canary, return 6 below its return address + M+ headroom: data 5 below canary, return 4 below its return address + M- headroom: data 4 below canary, return 5 below its return address + M* headroom: data 5 below canary, return 4 below its return address + M/MOD headroom: data 4 below canary, return 3 below its return address + MOD headroom: data 4 below canary, return 2 below its return address + */MOD headroom: data 4 below canary, return 2 below its return address + */ headroom: data 4 below canary, return 2 below its return address + D0< headroom: data 7 below canary, return 7 below its return address + D2* headroom: data 6 below canary, return 7 below its return address + D2/ headroom: data 7 below canary, return 7 below its return address + 2ROT headroom: data 2 below canary, return 1 below its return address + D- headroom: data 4 below canary, return 4 below its return address + D0= headroom: data 6 below canary, return 7 below its return address + D= headroom: data 4 below canary, return 3 below its return address + < headroom: data 5 below canary, return 7 below its return address + = headroom: data 7 below canary, return 7 below its return address + D< headroom: data 3 below canary, return 3 below its return address + (D<) headroom: data 2 below canary, return 5 below its return address + 2SWAP headroom: data 4 below canary, return 4 below its return address + 2OVER headroom: data 2 below canary, return 3 below its return address + DMAX headroom: data 2 below canary, return 4 below its return address + DMIN headroom: data 2 below canary, return 4 below its return address + Q.> (2SWAP D<) headroom: data 3 below canary, return 2 below its return address + Q.* headroom: data 2 below canary, return 3 below its return address + (UQ/) headroom: data 3 below canary, return 4 below its return address + Q./ headroom: data 2 below canary, return 3 below its return address + Q.EXP headroom: data 2 below canary, return 2 below its return address + Q.SQRT headroom: data 2 below canary, return 2 below its return address + Q.LOG headroom: data 2 below canary, return 2 below its return address + (Q.REDUCE) headroom: data 4 below canary, return 5 below its return address + Q.SIN headroom: data 2 below canary, return 2 below its return address + Q.COS headroom: data 2 below canary, return 2 below its return address + LSHIFT headroom: data 6 below canary, return 5 below its return address + RSHIFT headroom: data 6 below canary, return 5 below its return address + C@ headroom: data 7 below canary, return 7 below its return address + C! headroom: data 6 below canary, return 7 below its return address + SM/REM headroom: data 4 below canary, return 3 below its return address + /MOD headroom: data 4 below canary, return 2 below its return address + / headroom: data 4 below canary, return 2 below its return address + * headroom: data 5 below canary, return 5 below its return address + 1023754 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_guard.c] +v4 guard tests: V4_CELL_BITS=32, data bound 1, return bound 1 + 60 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_heat.c] +v4 heat tests: V4_CELL_BITS=32 + 67 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_blocks.c] +v4 block request tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + 52 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_codegen.c] +v4 host code generator tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + code: 1728 words + 856 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_compile.c] +v4 host compiler tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + capsule: 4559 words + a line may have 270 values on the stack while the interpreter reads its next word + a word run from the interpreter has 29 return entries to itself + defining and running a word leaves 1017 data cells under it untouched + 1096 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_depth.c] +v4 mesh depth tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + a text that prints 1012..1024 values: works to 1020, then a stack error and nothing else; calls: works to 23 deep; 19 worked, 14 clean errors, 0 failures + SEND 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 26 deep; 20 worked, 13 clean errors, 0 failures + SEND with no way 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 27 deep; 21 worked, 12 clean errors, 0 failures + AWAIT answered 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures + AWAIT ended by a GONE 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures + passing on while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures + AWAIT broken by a line from the console 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures + a refusal while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures + GONE 1012..1024 values: works to 1019, then a stack error and nothing else; calls: works to 26 deep; 21 worked, 12 clean errors, 0 failures + a spent message refused while its text waits 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures + 330 runs: 168 worked, 162 ended in a stack error and nothing else, 0 did neither + 397 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_dict.c] +v4 host dictionary tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + code: 1633 words + 300 entries in 2218 cells + FIND headroom: data 1020 below canary, return 28 below its return address + (') headroom: data 1020 below canary, return 28 below its return address + MAKE headroom: data 1020 below canary, return 28 below its return address + , headroom: data 1020 below canary, return 31 below its return address + ALLOT headroom: data 1020 below canary, return 30 below its return address + 708 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_input.c] +v4 host input tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + code: 1108 words + WORD headroom: data 1020 below canary, return 29 below its return address + NUMBER headroom: data 1016 below canary, return 25 below its return address + EXPECT headroom: data 1020 below canary, return 30 below its return address + ENCLOSE headroom: data 1017 below canary, return 28 below its return address + 6569 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_mesh.c] +v4 mesh tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + the flood: 268 sends tried: 2 refused at once, 121 let go on the way, 145 done; 1 of the two texts that set a node sending let go; (LOST) 122, (REFUSED) 124 + between texts the nucleus used at most 3 cells of the data stack and 4 entries of the return stack + a node removed or a wire cut: 19983 times in all + 244 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_node.c] +v4 host node tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + 45 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_quit.c] +v4 host prompt tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + capsule: 7381 words + from the prompt, words may call each other 30 deep + 1020 values may wait on the stack while the next line is typed and interpreted + defining and running a word from the prompt leaves 1017 data cells under it untouched + .S prints a stack of up to 1018 values; it needs 6 cells free + WORDS: 318 names, longest line 74 columns + 1356 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_asm.c] +test_host_rom_asm: 466 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_in.c] +test_host_rom_in: 26 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_math.c] +v4 ROM math tests: V4_CELL_BITS=32 + the host ROM: 2383 words; the mesh ROM: 265 words + 156 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_nucleus.c] + the ROM assembled the system: 63401381 instructions, 16536684 instruction words, 1.04 s (32-bit cells) +test_host_rom_nucleus: 6 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_num.c] +test_host_rom_num: 31 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_pack.c] +test_host_rom_pack: 7 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_range.c] +test_host_rom_range: 19 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_rom_sym.c] +test_host_rom_sym: 81 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_host_unit.c] +v4 unit tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768 + not run at this width: the capsules are the 64-bit products' + [V4_CELL_BITS=32 run-32-test_iword.c] +v4 iword tests: V4_CELL_BITS=32 + 1763 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_loops.c] +v4 loop tests: V4_CELL_BITS=32 + code: 298 of 1024 words + loops run against C: 3008 (1696 more would run past 63 times and were left out) + DO .. LOOP headroom: data 5 below canary, return 6 below its return address + DO .. +LOOP headroom: data 5 below canary, return 6 below its return address + ?DO .. LOOP headroom: data 5 below canary, return 6 below its return address + DO .. LEAVE .. LOOP headroom: data 5 below canary, return 6 below its return address + nested DO, I and J headroom: data 5 below canary, return 4 below its return address + 3104 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_manage.c] +v4 manage tests: V4_CELL_BITS=32 + 78 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_node.c] +v4 node tests: V4_CELL_BITS=32, 1024 words + node: 1024 words + 52 head + 52 tail boundary (10.2% overhead) + 1078 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_numout.c] +v4 number-output tests: V4_CELL_BITS=32 + code: 382 of 1024 words + SPACES headroom: data 6 below canary, return 7 below its return address + . headroom: data 3 below canary, return 2 below its return address + .R headroom: data 3 below canary, return 2 below its return address + U. headroom: data 3 below canary, return 3 below its return address + U.R headroom: data 3 below canary, return 3 below its return address + D. headroom: data 3 below canary, return 2 below its return address + D.R headroom: data 3 below canary, return 2 below its return address + 25242 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_pictured.c] +v4 pictured-output tests: V4_CELL_BITS=32 + <# #S #> headroom: data 3 below canary, return 3 below its return address + signed picture headroom: data 3 below canary, return 2 below its return address + 4716 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_port.c] +v4 port tests: V4_CELL_BITS=32 + 25 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_printing.c] +v4 printing tests (? Q.PRINT DUMP BASE HLD): V4_CELL_BITS=32 + code: 506 of 1024 words + DECIMAL headroom: data 7 below canary, return 8 below its return address + ? headroom: data 3 below canary, return 2 below its return address + Q.PRINT headroom: data 3 below canary, return 3 below its return address + DUMP headroom: data 3 below canary, return 4 below its return address + 13439 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_stack.c] +v4 stack tests: V4_CELL_BITS=32, data depth 10, return depth 9 + exhaustive: 2046 sequences of length <= 10 + differential: 200000 ops + 730137 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_strings.c] +v4 string tests: V4_CELL_BITS=32 + code: 234 of 1024 words + COUNT headroom: data 6 below canary, return 6 below its return address + CMOVE headroom: data 4 below canary, return 5 below its return address + CMOVE> headroom: data 3 below canary, return 5 below its return address + MOVE headroom: data 5 below canary, return 6 below its return address + FILL headroom: data 4 below canary, return 5 below its return address + BLANK headroom: data 4 below canary, return 5 below its return address + -TRAILING headroom: data 5 below canary, return 6 below its return address + COMPARE headroom: data 3 below canary, return 5 below its return address + SEARCH headroom: data 2 below canary, return 5 below its return address + SCAN headroom: data 4 below canary, return 5 below its return address + SKIP headroom: data 4 below canary, return 5 below its return address + 16729 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_terminal.c] +v4 terminal-output tests: V4_CELL_BITS=32 + KEY headroom: data 8 below canary + EMIT headroom: data 7 below canary, return 8 below its return address + CR headroom: data 7 below canary, return 8 below its return address + TYPE headroom: data 5 below canary, return 6 below its return address + 1212 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_text.c] +v4 text assembler tests: V4_CELL_BITS=32 + 240 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_umul.c] +v4 umul tests: V4_CELL_BITS=32 + 2009 checks, 0 failures + [V4_CELL_BITS=32 run-32-test_wire.c] +v4 wire tests: V4_CELL_BITS=32, 1024 cells to a queue + 112 checks, 0 failures +rc=0 diff --git a/logs/20261119-init-acl/test-64.log b/logs/20261119-init-acl/test-64.log new file mode 100644 index 00000000..55f39bec --- /dev/null +++ b/logs/20261119-init-acl/test-64.log @@ -0,0 +1,273 @@ + [V4_CELL_BITS=64 run-64-test_asm.c] +v4 asm tests: V4_CELL_BITS=64 + 32 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_cells.c] +v4 single-cell word tests: V4_CELL_BITS=64 + code: 99 of 1024 words + NIP headroom: data 7 below canary, return 7 below its return address + SWAP headroom: data 6 below canary, return 6 below its return address + ROT headroom: data 5 below canary, return 4 below its return address + -ROT headroom: data 5 below canary, return 5 below its return address + ?DUP headroom: data 7 below canary, return 8 below its return address + +! headroom: data 7 below canary, return 8 below its return address + -! headroom: data 7 below canary, return 8 below its return address + 2@ headroom: data 7 below canary, return 8 below its return address + 2! headroom: data 6 below canary, return 6 below its return address + - headroom: data 6 below canary, return 8 below its return address + MIN headroom: data 3 below canary, return 6 below its return address + MAX headroom: data 3 below canary, return 6 below its return address + OR headroom: data 6 below canary, return 8 below its return address + 0> headroom: data 8 below canary, return 8 below its return address + <> headroom: data 7 below canary, return 8 below its return address + < headroom: data 5 below canary, return 7 below its return address + > headroom: data 5 below canary, return 6 below its return address + <= headroom: data 5 below canary, return 6 below its return address + >= headroom: data 5 below canary, return 6 below its return address + U< headroom: data 5 below canary, return 7 below its return address + WITHIN headroom: data 3 below canary, return 5 below its return address + 21420 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_console.c] +v4 console tests: V4_CELL_BITS=64, capture 4096 characters + 312 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_dump.c] +test_dump: 15 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_exec.c] +v4 exec tests: V4_CELL_BITS=64 + 3110 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_fabric.c] +v4 fabric tests: V4_CELL_BITS=64, 8 ports to a node + 334 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_fabric_walk.c] +v4 fabric walk tests + 13 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_foundation.c] +v4 foundation tests: V4_CELL_BITS=64 + code: 949 of 1024 words + Q.+ random cases that overflow Q48.16: 2682 of 20000 + Q.> as written (SWAP D<): 12834 wrong of 20169 + (UQ/) cases run: 9000 + UM* headroom: data 5 below canary, return 6 below its return address + UM/MOD headroom: data 5 below canary, return 6 below its return address + ABS headroom: data 7 below canary, return 7 below its return address + U> headroom: data 5 below canary, return 5 below its return address + D+ headroom: data 5 below canary, return 5 below its return address + DNEGATE headroom: data 6 below canary, return 7 below its return address + DABS headroom: data 6 below canary, return 6 below its return address + M+ headroom: data 5 below canary, return 4 below its return address + M- headroom: data 4 below canary, return 5 below its return address + M* headroom: data 5 below canary, return 4 below its return address + M/MOD headroom: data 4 below canary, return 3 below its return address + MOD headroom: data 4 below canary, return 2 below its return address + */MOD headroom: data 4 below canary, return 2 below its return address + */ headroom: data 4 below canary, return 2 below its return address + D0< headroom: data 7 below canary, return 7 below its return address + D2* headroom: data 6 below canary, return 7 below its return address + D2/ headroom: data 7 below canary, return 7 below its return address + 2ROT headroom: data 2 below canary, return 1 below its return address + D- headroom: data 4 below canary, return 4 below its return address + D0= headroom: data 6 below canary, return 7 below its return address + D= headroom: data 4 below canary, return 3 below its return address + < headroom: data 5 below canary, return 7 below its return address + = headroom: data 7 below canary, return 7 below its return address + D< headroom: data 3 below canary, return 3 below its return address + (D<) headroom: data 2 below canary, return 5 below its return address + 2SWAP headroom: data 4 below canary, return 4 below its return address + 2OVER headroom: data 2 below canary, return 3 below its return address + DMAX headroom: data 2 below canary, return 4 below its return address + DMIN headroom: data 2 below canary, return 4 below its return address + Q.> (2SWAP D<) headroom: data 3 below canary, return 2 below its return address + Q.* headroom: data 2 below canary, return 3 below its return address + (UQ/) headroom: data 3 below canary, return 4 below its return address + Q./ headroom: data 2 below canary, return 3 below its return address + Q.EXP headroom: data 2 below canary, return 2 below its return address + Q.SQRT headroom: data 2 below canary, return 2 below its return address + Q.LOG headroom: data 2 below canary, return 2 below its return address + (Q.REDUCE) headroom: data 4 below canary, return 5 below its return address + Q.SIN headroom: data 2 below canary, return 2 below its return address + Q.COS headroom: data 2 below canary, return 2 below its return address + LSHIFT headroom: data 6 below canary, return 5 below its return address + RSHIFT headroom: data 6 below canary, return 5 below its return address + C@ headroom: data 7 below canary, return 7 below its return address + C! headroom: data 6 below canary, return 7 below its return address + SM/REM headroom: data 4 below canary, return 3 below its return address + /MOD headroom: data 4 below canary, return 2 below its return address + / headroom: data 4 below canary, return 2 below its return address + * headroom: data 5 below canary, return 5 below its return address + 1024904 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_guard.c] +v4 guard tests: V4_CELL_BITS=64, data bound 1, return bound 1 + 60 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_heat.c] +v4 heat tests: V4_CELL_BITS=64 + 67 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_blocks.c] +v4 block request tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + 54 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_codegen.c] +v4 host code generator tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + code: 1728 words + 856 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_compile.c] +v4 host compiler tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + capsule: 4559 words + a line may have 270 values on the stack while the interpreter reads its next word + a word run from the interpreter has 29 return entries to itself + defining and running a word leaves 1017 data cells under it untouched + 1096 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_depth.c] +v4 mesh depth tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + a text that prints 1012..1024 values: works to 1020, then a stack error and nothing else; calls: works to 23 deep; 19 worked, 14 clean errors, 0 failures + SEND 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 26 deep; 20 worked, 13 clean errors, 0 failures + SEND with no way 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 27 deep; 21 worked, 12 clean errors, 0 failures + AWAIT answered 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures + AWAIT ended by a GONE 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures + passing on while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures + AWAIT broken by a line from the console 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures + a refusal while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures + GONE 1012..1024 values: works to 1019, then a stack error and nothing else; calls: works to 26 deep; 21 worked, 12 clean errors, 0 failures + a spent message refused while its text waits 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures + 330 runs: 168 worked, 162 ended in a stack error and nothing else, 0 did neither + 397 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_dict.c] +v4 host dictionary tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + code: 1633 words + 300 entries in 2218 cells + FIND headroom: data 1020 below canary, return 28 below its return address + (') headroom: data 1020 below canary, return 28 below its return address + MAKE headroom: data 1020 below canary, return 28 below its return address + , headroom: data 1020 below canary, return 31 below its return address + ALLOT headroom: data 1020 below canary, return 30 below its return address + 708 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_input.c] +v4 host input tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + code: 1108 words + WORD headroom: data 1020 below canary, return 29 below its return address + NUMBER headroom: data 1016 below canary, return 25 below its return address + EXPECT headroom: data 1020 below canary, return 30 below its return address + ENCLOSE headroom: data 1017 below canary, return 28 below its return address + 6569 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_mesh.c] +v4 mesh tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + the flood: 268 sends tried: 2 refused at once, 121 let go on the way, 145 done; 1 of the two texts that set a node sending let go; (LOST) 122, (REFUSED) 124 + between texts the nucleus used at most 3 cells of the data stack and 4 entries of the return stack + a node removed or a wire cut: 26895 times in all + 244 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_node.c] +v4 host node tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + 45 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_quit.c] +v4 host prompt tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + capsule: 7381 words + from the prompt, words may call each other 30 deep + 1020 values may wait on the stack while the next line is typed and interpreted + defining and running a word from the prompt leaves 1017 data cells under it untouched + .S prints a stack of up to 1018 values; it needs 6 cells free + WORDS: 318 names, longest line 74 columns + 1360 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_asm.c] +test_host_rom_asm: 472 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_in.c] +test_host_rom_in: 26 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_math.c] +v4 ROM math tests: V4_CELL_BITS=64 + the host ROM: 2383 words; the mesh ROM: 265 words + 156 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_nucleus.c] + the ROM assembled the system: 63411003 instructions, 16539406 instruction words, 0.97 s (64-bit cells) +test_host_rom_nucleus: 6 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_num.c] +test_host_rom_num: 31 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_pack.c] +test_host_rom_pack: 7 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_range.c] +test_host_rom_range: 19 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_rom_sym.c] +test_host_rom_sym: 81 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_host_unit.c] +v4 unit tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768 + after POST and COLD: 228 of the 8302 cells below HERE differ from before POST (the first at 18); dict_hash differs + the four outer nodes: dict_hash=0x74781d08f32ff33a + 126 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_iword.c] +v4 iword tests: V4_CELL_BITS=64 + 1763 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_loops.c] +v4 loop tests: V4_CELL_BITS=64 + code: 298 of 1024 words + loops run against C: 3008 (1696 more would run past 63 times and were left out) + DO .. LOOP headroom: data 5 below canary, return 6 below its return address + DO .. +LOOP headroom: data 5 below canary, return 6 below its return address + ?DO .. LOOP headroom: data 5 below canary, return 6 below its return address + DO .. LEAVE .. LOOP headroom: data 5 below canary, return 6 below its return address + nested DO, I and J headroom: data 5 below canary, return 4 below its return address + 3104 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_manage.c] +v4 manage tests: V4_CELL_BITS=64 + 78 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_node.c] +v4 node tests: V4_CELL_BITS=64, 1024 words + node: 1024 words + 52 head + 52 tail boundary (10.2% overhead) + 1078 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_numout.c] +v4 number-output tests: V4_CELL_BITS=64 + code: 382 of 1024 words + SPACES headroom: data 6 below canary, return 7 below its return address + . headroom: data 3 below canary, return 2 below its return address + .R headroom: data 3 below canary, return 2 below its return address + U. headroom: data 3 below canary, return 3 below its return address + U.R headroom: data 3 below canary, return 3 below its return address + D. headroom: data 3 below canary, return 2 below its return address + D.R headroom: data 3 below canary, return 2 below its return address + 25242 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_pictured.c] +v4 pictured-output tests: V4_CELL_BITS=64 + <# #S #> headroom: data 3 below canary, return 3 below its return address + signed picture headroom: data 3 below canary, return 2 below its return address + 4716 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_port.c] +v4 port tests: V4_CELL_BITS=64 + 25 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_printing.c] +v4 printing tests (? Q.PRINT DUMP BASE HLD): V4_CELL_BITS=64 + code: 506 of 1024 words + DECIMAL headroom: data 7 below canary, return 8 below its return address + ? headroom: data 3 below canary, return 2 below its return address + Q.PRINT headroom: data 3 below canary, return 3 below its return address + DUMP headroom: data 3 below canary, return 4 below its return address + 13439 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_stack.c] +v4 stack tests: V4_CELL_BITS=64, data depth 10, return depth 9 + exhaustive: 2046 sequences of length <= 10 + differential: 200000 ops + 730137 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_strings.c] +v4 string tests: V4_CELL_BITS=64 + code: 234 of 1024 words + COUNT headroom: data 6 below canary, return 6 below its return address + CMOVE headroom: data 4 below canary, return 5 below its return address + CMOVE> headroom: data 3 below canary, return 5 below its return address + MOVE headroom: data 5 below canary, return 6 below its return address + FILL headroom: data 4 below canary, return 5 below its return address + BLANK headroom: data 4 below canary, return 5 below its return address + -TRAILING headroom: data 5 below canary, return 6 below its return address + COMPARE headroom: data 3 below canary, return 5 below its return address + SEARCH headroom: data 2 below canary, return 5 below its return address + SCAN headroom: data 4 below canary, return 5 below its return address + SKIP headroom: data 4 below canary, return 5 below its return address + 16729 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_terminal.c] +v4 terminal-output tests: V4_CELL_BITS=64 + KEY headroom: data 8 below canary + EMIT headroom: data 7 below canary, return 8 below its return address + CR headroom: data 7 below canary, return 8 below its return address + TYPE headroom: data 5 below canary, return 6 below its return address + 1212 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_text.c] +v4 text assembler tests: V4_CELL_BITS=64 + 240 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_umul.c] +v4 umul tests: V4_CELL_BITS=64 + 2808 checks, 0 failures + [V4_CELL_BITS=64 run-64-test_wire.c] +v4 wire tests: V4_CELL_BITS=64, 1024 cells to a queue + 112 checks, 0 failures diff --git a/logs/20261119-init-acl/test_mesh_boot-after.log b/logs/20261119-init-acl/test_mesh_boot-after.log new file mode 100644 index 00000000..c4ae9237 --- /dev/null +++ b/logs/20261119-init-acl/test_mesh_boot-after.log @@ -0,0 +1,4 @@ + [mesh boot, V4_CELL_BITS=64] +v4 mesh boot: V4_CELL_BITS=64 + PARITY:V4_POST tests=990 pass=990 fail=0 + 113 checks, 0 failures diff --git a/logs/20261119-init-acl/test_mesh_boot-before.log b/logs/20261119-init-acl/test_mesh_boot-before.log new file mode 100644 index 00000000..bb4b1a5a --- /dev/null +++ b/logs/20261119-init-acl/test_mesh_boot-before.log @@ -0,0 +1,6 @@ + [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:134: init.4th, after POST and COLD, with its parity line (MACHINE.md 3, step 5) + 8 checks, 1 failures +make: *** [Makefile:380: mesh-boot] Error 1 diff --git a/v4/capsule/ACL.fth b/v4/capsule/ACL.fth deleted file mode 100644 index da1a55a1..00000000 --- a/v4/capsule/ACL.fth +++ /dev/null @@ -1,57 +0,0 @@ -\ ACL.fth -- word-level access control: the policy. -\ -\ This is v3's capsules/ACL.4th, as FORTH source the node compiles itself. -\ The capsule supplies the fields of an entry and the check (acl.v4, -\ compile.v4); what is strict, how long a TTL lasts and what is pinned is -\ decided here. Loading this file switches access control on: its last -\ line runs ACL-BOOT. A system that does not load it has none. -\ -\ The xt these words take is what FIND and ['] give: the word's code. - -FORTH DEFINITIONS - -1 CONSTANT ACL-STRICT-MODE -0 CONSTANT ACL-TTL-MODE-VAL -\ the TTL of a cold word, tuned 2026-06-15 on v3 -256 CONSTANT ACL-BASE-TTL -65535 CONSTANT ACL-MAX-TTL - -\ ( xt -- xt ) for symmetry: the xt is the entry -: ACL-ENTRY ; - -: ACL-STRICT ( xt -- ) - DUP ACL-PINNED? IF DROP EXIT THEN ACL-STRICT-MODE SWAP ACL-MODE! ; -: ACL-TTL-MODE ( xt -- ) - DUP ACL-PINNED? IF DROP EXIT THEN ACL-TTL-MODE-VAL SWAP ACL-MODE! ; - -\ ( xt -- ttl ) a hotter word earns a longer TTL: heat/4 + 256, at most 65535 -: ACL-TTL-COMPUTE ACL-HEAT@ 4 / ACL-BASE-TTL + ACL-MAX-TTL MIN ; - -\ ( xt -- ) what the check runs when a word's TTL is 0. -\ STRICT: allow, and leave the TTL 0 so that every use comes back here. -\ TTL: compute a TTL from the word's heat; allow. -: ACL-RECHECK - DUP ACL-PINNED? IF DROP EXIT THEN - DUP ACL-MODE@ ACL-STRICT-MODE = IF - 1 OVER ACL-ALLOW! 0 OVER ACL-TTL! DROP EXIT - THEN - DUP ACL-TTL-COMPUTE OVER ACL-TTL! 1 SWAP ACL-ALLOW! ; - -\ the system CA's public key; placeholders, as in v3 -0 CONSTANT ACL-CA-KEY-LO -0 CONSTANT ACL-CA-KEY-HI - -\ ( req-hi req-lo -- allow? ) the fabric asks this word whether a channel -\ may be opened. The default approves every request; a policy edits this. -: HERMES-CHANNEL-OPEN? 2DROP 1 ; - -\ ( -- ) default fields on every word; the words that enforce the policy -\ pinned; the recheck switched on -: ACL-BOOT - ACL-INIT-PRIMITIVES - ['] ACL-RECHECK ACL-PIN ['] ACL-INIT-PRIMITIVES ACL-PIN - ['] ACL-RECHECK ACL-HOOK ! - LOG-INFO" ACL: active" ; -' ACL-BOOT ACL-PIN - -ACL-BOOT diff --git a/v4/system/mesh.c b/v4/system/mesh.c index 5d22fd1d..5f2bfd19 100644 --- a/v4/system/mesh.c +++ b/v4/system/mesh.c @@ -1365,6 +1365,10 @@ static int boot(v4_mesh *ms) say("PARITY:V4_SYSTEM word_count="); v4_boot_say_dec(&bt, v4_boot_word_count(&h->n, ms->im)); say(" dict_hash="); v4_boot_say_hex(&bt, v4_image_dict_hash(&h->n, ms->im)); say("\n"); + + /* the system's init (MACHINE.md 3, step 5; docs/v4.0.0/plans/2026-11-18-v4-init.md): the loader's one fixed + * step after POST. Everything from here is init.4th's -- security on, the search order */ + if (!load(ms, "v4:init.4th")) { say("V4: init.4th did not complete\n"); return 0; } return 1; } diff --git a/v4/tests/test_host_quit.c b/v4/tests/test_host_quit.c index 770f151e..c44b0830 100644 --- a/v4/tests/test_host_quit.c +++ b/v4/tests/test_host_quit.c @@ -482,6 +482,9 @@ static int load_source(const char *name) while (fgets(line, sizeof line, f)) { size_t len = strlen(line); num++; + /* a capsule's blocks, typed at the prompt in order: its headers are not FORTH, and `-->`, which chains + * to the next block when the kernel LOADs it, is an error at the terminal */ + if (strncmp(line, "Block ", 6) == 0 || strcmp(line, "-->\n") == 0) continue; if (len == 0 || line[len - 1] != '\n' || len > 80) { printf(" %s line %u: too long\n", name, num); fclose(f); return 0; } (void)say(line); /* every line is accepted: whatever it printed, it ended with " ok" and never with ERROR */ @@ -1632,9 +1635,9 @@ int main(void) CHECK(is(say("SEE NOSUCH\n"), "SEE: not found\n ok\nok> ") && is(say("SEE\n"), "SEE: not found\n ok\nok> "), "a word that is not there"); CHECK(is(say("(.\")\n"), "(.\"): compile-only\n ERROR\nok> ") && is(say("(S\")\n"), "(S\"): compile-only\n ERROR\nok> "), "the string run-time words have names but cannot be run from the prompt"); - /* ---- access control with its policy loaded: ACL.fth, FORTH source ---- */ + /* ---- access control with its policy loaded: capsules/v4/ACL.4th, FORTH source ---- */ boot_bare(); - CHECK(load_source("ACL.fth"), "ACL.fth compiles, every line of it"); + CHECK(load_source("../../capsules/v4/ACL.4th"), "ACL.4th compiles, every line of it"); CHECK(strstr(out, "\033[32mINFO: \033[0mACL: active\n") == out && n.mem[ACL_HOOK] != 0, "and its last line switches access control on"); CHECK(is(say(": FOO 65 EMIT ; FOO ' FOO ACL-TTL@ . FOO ' FOO ACL-TTL@ .\n"), "A256 A255 ok\nok> "), "a word's first use is rechecked and earns it a TTL, which is then counted down"); CHECK(is(say(": SFOO 66 EMIT ; ' SFOO ACL-STRICT SFOO SFOO ' SFOO ACL-TTL@ .\n"), "BB0 ok\nok> ") && is(say("' SFOO ACL-MODE@ .\n"), "1 ok\nok> "), diff --git a/v4/tests/test_mesh_boot.c b/v4/tests/test_mesh_boot.c index 99561448..d301c570 100644 --- a/v4/tests/test_mesh_boot.c +++ b/v4/tests/test_mesh_boot.c @@ -131,6 +131,7 @@ int main(void) CHECK(strstr(said, "PARITY:V4_CAPSULE name=v4:forth79.4th ") && strstr(said, "PARITY:V4_CAPSULE name=v4:centre.4th ") && strstr(said, "PARITY:V4_CAPSULE name=v4:hera.4th "), "FORTH-79 and the kernel's capsules, each with its parity line"); CHECK(strstr(said, "PARITY:V4_CAPSULE name=v4:starshipos.4th ") != 0, "starshipos.4th, with its parity line"); + CHECK(strstr(said, "PARITY:V4_CAPSULE name=v4:init.4th ") != 0, "init.4th, after POST and COLD, with its parity line (MACHINE.md 3, step 5)"); { /* every case, the kernel's too: Hera has its words (#189 Phase 7) */ char want[64]; const unsigned runs = v4_post_runs(v4_post_cases, v4_post_case_count, 1); @@ -145,6 +146,12 @@ int main(void) CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "7 ") == 0, "a line to Hera: \"%s\" (%d)", r, how); /* the capsules were placed in RAM, block n at n - R, and loaded from there (capsule blocks plan, step 4): * forth79.4th's lowest block, 3948, is RAM block 1900 */ + /* init.4th (docs/v4.0.0/plans/2026-11-18-v4-init.md, steps 1 and 2): security on, then the search order -- + * checked first, before any line below changes the system (the COLD further down takes it all away) */ + r = line(V4_MESH_HERA, "S\" ok\" DOE", &how); + CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "ok") == 0, "init.4th set the search order: DOE is found without naming STARSHIPOS: \"%s\" (%d)", r, how); + r = line(V4_MESH_HERA, "' ACL-BOOT ACL-PINNED? . ' ACL-RECHECK ACL-PINNED? .", &how); + CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "-1 -1 ") == 0, "init.4th turned security on: the ACL policy is loaded, its words pinned: \"%s\" (%d)", r, how); r = line(V4_MESH_HERA, "1900 BLOCK 16 TYPE", &how); CHECK(how == V4_TEXT_COMPLETED && strncmp(r, "( forth79.4th --", 16) == 0, "forth79.4th's lowest block is in RAM block 1900: \"%.20s\" (%d)", r, how); /* starshipos.4th, a system capsule loaded before POST (MACHINE.md 3, step 3; ruled 2026-11-18) */